]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdbserver: remove support for Tile
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
96c16e2b
SM
12020-06-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * Makefile.in (SFILES): linux-tile-low.cc.
4 * configure.srv: Remove tilegx case.
5 * linux-tile-low.cc: Remove.
6
bd1467ae
SM
72020-06-12 Simon Marchi <simon.marchi@efficios.com>
8
9 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
10 * configure.srv: Remove m32r case.
11 * linux-m32r-low.cc: Remove.
12
7b46bf6f
SM
132020-06-12 Simon Marchi <simon.marchi@efficios.com>
14
15 * Makefile.in (SFILES): Remove linux-cris-low.c.
16 * configure.srv: Remove cris cases.
17 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
18
1fa29f56
SM
192020-06-12 Simon Marchi <simon.marchi@efficios.com>
20
21 * Makefile.in (SFILES): Remove linux-bfin-low.c.
22 * configure.srv: Remove bfin case.
23 * linux-bfin-low.cc: Remove.
24 * linux-low.cc: Remove BFIN-conditional code.
25
613f149a
SM
262020-06-12 Simon Marchi <simon.marchi@efficios.com>
27
28 * configure: Re-generate.
29 * configure.ac: Remove srv_qnx test.
30 * configure.srv: Remove nto case.
31 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
32 * remote-utils.c: Remove __QNX__-guarded code.
33
fdb95bf5
SM
342020-06-12 Simon Marchi <simon.marchi@efficios.com>
35
36 * configure: Re-generate.
37 * configure.ac: Remove srv_lynxos test.
38 * configure.srv: Remove lynxos cases.
39 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
40 Remove.
41
c00094dc
SM
422020-06-12 Simon Marchi <simon.marchi@efficios.com>
43
44 * README: Fix a few outdated or incoherent things.
45
6479bf85
HD
462020-05-27 Hannes Domani <ssbssa@yahoo.de>
47
48 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
49 (win32_clear_inferiors): Use open_process_used.
50 (get_child_debug_event): Likewise.
51
bea571eb
MW
522020-05-25 Michael Weghorn <m.weghorn@posteo.de>
53
54 PR gdbserver/25893
55 * linux-low.cc (linux_process_target::create_inferior),
56 lynx-low.cc (lynx_process_target::create_inferior),
57 win32-low.cc (win32_process_target::create_inferior): Use
58 construct_inferior_arguments instead of stringify_argv
59 to get string representation which properly escapes
60 special characters.
61 * server.cc (handle_v_run): Just pass empty program arg
62 as such, since any further processing is now handled via
63 construct_inferior_arguments.
64
ace6b919
MW
652020-05-25 Michael Weghorn <m.weghorn@posteo.de>
66
67 * nto-low.cc (nto_process_target::create_inferior): Pass
68 argv to spawnp function as char **.
69
b69ca137
MW
702020-05-25 Michael Weghorn <m.weghorn@posteo.de>
71
72 * server.cc (captured_main), (handle_v_run): No longer
73 insert extra NULL element to args vector.
74
51e2cfa2
PA
752020-05-23 Pedro Alves <palves@redhat.com>
76
77 * gdb-safe-ctype.h: New.
78
8bbf0394
TBA
792020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
80
81 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
82 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
83 (ia64_target::low_breakpoint_at): Ditto.
84
01370779
HD
852020-05-15 Hannes Domani <ssbssa@yahoo.de>
86
87 * win32-i386-low.cc (i386_supports_z_point_type): Handle
88 Z_PACKET_HW_BP z_type.
89 (i386_insert_point): Handle raw_bkpt_type type.
90 (i386_remove_point): Likewise.
91
7d186bc0
HD
922020-04-30 Hannes Domani <ssbssa@yahoo.de>
93
94 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
95 Add arch/i386.o.
96 * win32-arm-low.cc (arm_num_regs): New function.
97 (struct win32_target_ops): Use arm_num_regs.
98 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
99 processes.
100 (i386_get_thread_context): Likewise.
101 (i386_prepare_to_resume): Likewise.
102 (i386_thread_added): Likewise.
103 (i386_single_step): Likewise.
104 (i386_fetch_inferior_register): Likewise.
105 (i386_store_inferior_register): Likewise.
106 (i386_arch_setup): Likewise.
107 (i386_win32_num_regs): New function.
108 (struct win32_target_ops): Use i386_win32_num_regs.
109 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
110 processes.
111 (win32_require_context): Likewise.
112 (child_add_thread): Likewise.
113 (do_initial_child_stuff): Likewise.
114 (continue_one_thread): Likewise.
115 (win32_process_target::resume): Likewise.
116 (load_psapi): Likewise.
117 (win32_add_all_dlls): Likewise.
118 (maybe_adjust_pc): Likewise.
119 (win32_process_target::qxfer_siginfo): Likewise.
120 (initialize_low): Likewise.
121 * win32-low.h (struct win32_target_ops): Change num_regs to
122 callback function.
123
1eb39914
SM
1242020-04-27 Simon Marchi <simon.marchi@efficios.com>
125
126 * configure.ac: Remove check for fs_base/gs_base in
127 user_regs_struct.
128 * configure: Re-generate.
129 * config.in: Re-generate.
130 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
131 x86_store_gregset): Adjust.
132
51ac8e22
HD
1332020-04-22 Hannes Domani <ssbssa@yahoo.de>
134
135 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
136 comparison.
137
a010605f
TT
1382020-04-16 Tom Tromey <tromey@adacore.com>
139
140 * win32-low.cc (windows_nat::handle_access_violation): New
141 function.
142
e2275c6e
SM
1432020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * win32-low.cc (get_child_debug_event): Fix format string warning.
146
73944e9f
TT
1472020-04-13 Tom Tromey <tom@tromey.com>
148
149 * server.h (gdb_fildes_t): Remove typedef.
150 * remote-utils.c (remote_desc, list_desc): Now int.
151 (INVALID_DESCRIPTOR): Remove.
152 (gdb_connected, remote_close)
153 (check_remote_input_interrupt_request): Update.
154 * utils.h (pfildes): Don't declare.
155 * utils.c (pfildes): Remove.
156
55d7aec8
TT
1572020-04-13 Tom Tromey <tom@tromey.com>
158
159 * server.h (handle_serial_event, handle_target_event): Update.
160 * server.c: Don't call initialize_event_loop.
161 (keep_processing_events): New global.
162 (handle_serial_event): Return void. Set keep_processing_events.
163 (handle_target_event): Return void.
164 (start_event_loop): Move from event-loop.c. Rewrite.
165 * remote-utils.c (handle_accept_event): Return void.
166 (reset_readchar): Use delete_timer.
167 (process_remaining): Return void.
168 (reschedule): Use create_timer.
169 * event-loop.h: Remove.
170 * event-loop.cc: Remove.
171 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
172
e487f994
TT
1732020-04-13 Tom Tromey <tom@tromey.com>
174
175 * server.c (invoke_async_signal_handlers)
176 (check_async_event_handlers, flush_streams, gdb_select): New
177 functions.
178
8ae8e197
TT
1792020-04-13 Tom Tromey <tom@tromey.com>
180
181 * configure: Rebuild.
182 * config.in: Rebuild.
183
360ad8b3
TT
1842020-04-08 Tom Tromey <tromey@adacore.com>
185
186 PR gdb/22992
187 * win32-low.c (child_continue): Call matching_pending_stop.
188 (get_child_debug_event): Call fetch_pending_stop. Push pending
189 stop when needed.
190
523d4f80
TT
1912020-04-08 Tom Tromey <tromey@adacore.com>
192
193 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
194 (win32_process_target::supports_stopped_by_sw_breakpoint):
195 Declare.
196 * win32-low.c (win32_supports_z_point_type): Always handle
197 Z_PACKET_SW_BP.
198 (win32_insert_point): Call insert_memory_breakpoint when needed.
199 (win32_remove_point): Call remove_memory_breakpoint when needed.
200 (win32_process_target::stopped_by_sw_breakpoint)
201 (win32_process_target::supports_stopped_by_sw_breakpoint): New
202 methods.
203 (win32_target_ops): Update.
204 (maybe_adjust_pc): New function.
205 (win32_wait): Call maybe_adjust_pc.
206
e54e5929
TT
2072020-04-08 Tom Tromey <tromey@adacore.com>
208
209 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
210 field.
211 * win32-i386-low.c (the_low_target): Update.
212 * win32-arm-low.c (the_low_target): Update.
213
d6225aff
TT
2142020-04-08 Tom Tromey <tromey@adacore.com>
215
216 * win32-low.h (win32_process_target::read_pc)
217 (win32_process_target::write_pc): Declare.
218 * win32-low.c (win32_process_target::read_pc)
219 (win32_process_target::write_pc): New methods.
220 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
221 functions.
222 (the_low_target): Update.
223 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
224 functions.
225 (the_low_target): Update.
226
2c1d95e8
TT
2272020-04-08 Tom Tromey <tromey@adacore.com>
228
229 * win32-low.c (win32_kill, get_child_debug_event): Use
230 wait_for_debug_event.
231
e758e19c
TT
2322020-04-08 Tom Tromey <tromey@adacore.com>
233
234 * win32-low.c (child_continue): Call continue_last_debug_event.
235
8d30e395
TT
2362020-04-08 Tom Tromey <tromey@adacore.com>
237
238 * win32-low.c (handle_exception): Remove.
239 (windows_nat::handle_ms_vc_exception): New function.
240 (get_child_debug_event): Add "continue_status" parameter.
241 Update.
242 (win32_wait): Update.
243
a816ba18
TT
2442020-04-08 Tom Tromey <tromey@adacore.com>
245
246 * win32-low.c (windows_nat::handle_load_dll): Rename from
247 handle_load_dll. No longer static.
248 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
249 No longer static.
250
d41b524f
TT
2512020-04-08 Tom Tromey <tromey@adacore.com>
252
253 * win32-low.c (handle_output_debug_string): Add parameter. Change
254 return type.
255 (win32_kill, get_child_debug_event): Update.
256
3c76026d
TT
2572020-04-08 Tom Tromey <tromey@adacore.com>
258
259 * win32-low.c (current_process_handle, current_process_id)
260 (main_thread_id, last_sig, current_event, siginfo_er): Move to
261 nat/windows-nat.c.
262
9d8679cc
TT
2632020-04-08 Tom Tromey <tromey@adacore.com>
264
265 * win32-low.c (get_image_name): Remove.
266 (handle_load_dll): Update.
267
28688adf
TT
2682020-04-08 Tom Tromey <tromey@adacore.com>
269
270 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
271 No longer static. Change parameters.
272 (child_add_thread, child_fetch_inferior_registers)
273 (child_store_inferior_registers, win32_resume)
274 (win32_get_tib_address): Update.
275
4834dad0
TT
2762020-04-08 Tom Tromey <tromey@adacore.com>
277
278 * win32-low.h (struct win32_target_ops): Use qualified names where
279 needed.
280 * win32-i386-low.c: Add "using namespace".
281 * win32-low.c: Add "using namespace".
282 * win32-arm-low.c: Add "using namespace".
283
65bafd5b
TT
2842020-04-08 Tom Tromey <tromey@adacore.com>
285
286 * win32-low.c (delete_thread_info): Don't call CloseHandle.
287
98a03287
TT
2882020-04-08 Tom Tromey <tromey@adacore.com>
289
290 * win32-low.c (win32_require_context, suspend_one_thread): Use
291 windows_thread_info::suspend.
292 (continue_one_thread): Use windows_thread_info::resume.
293 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
294
62fe396b
TT
2952020-04-08 Tom Tromey <tromey@adacore.com>
296
297 * win32-i386-low.c (update_debug_registers)
298 (i386_prepare_to_resume, i386_thread_added): Update.
299
e9534bd2
TT
3002020-04-08 Tom Tromey <tromey@adacore.com>
301
302 * win32-low.c (child_add_thread): Use new.
303 (delete_thread_info): Use delete.
304
ae1f8880
TT
3052020-04-08 Tom Tromey <tromey@adacore.com>
306
307 * win32-low.h (struct windows_thread_info): Remove.
308
e56f8ccb
TT
3092020-04-08 Tom Tromey <tromey@adacore.com>
310
311 * win32-low.h (struct windows_thread_info): Rename from
312 win32_thread_info. Remove typedef.
313 (struct win32_target_ops, win32_require_context): Update.
314 * win32-low.c (win32_get_thread_context)
315 (win32_set_thread_context, win32_prepare_to_resume)
316 (win32_require_context, thread_rec, child_add_thread)
317 (delete_thread_info, continue_one_thread)
318 (child_fetch_inferior_registers, child_store_inferior_registers)
319 (win32_resume, suspend_one_thread, win32_get_tib_address):
320 Update.
321 * win32-i386-low.c (update_debug_registers)
322 (win32_get_current_dr, i386_get_thread_context)
323 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
324 (i386_fetch_inferior_register, i386_store_inferior_register):
325 Update.
326 * win32-arm-low.c (arm_get_thread_context)
327 (arm_fetch_inferior_register, arm_store_inferior_register):
328 Update.
329
0dd7b52e
TBA
3302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
331
332 * linux-low.h (struct linux_target_ops): Remove.
333 (the_low_target): Remove.
334 * linux-x86-low.cc (the_low_target): Remove.
335 * linux-aarch64-low.cc (the_low_target): Ditto.
336 * linux-arm-low.cc (the_low_target): Ditto.
337 * linux-bfin-low.cc (the_low_target): Ditto.
338 * linux-cris-low.cc (the_low_target): Ditto.
339 * linux-crisv32-low.cc (the_low_target): Ditto.
340 * linux-ia64-low.cc (the_low_target): Ditto.
341 * linux-m32r-low.cc (the_low_target): Ditto.
342 * linux-m68k-low.cc (the_low_target): Ditto.
343 * linux-mips-low.cc (the_low_target): Ditto.
344 * linux-nios2-low.cc (the_low_target): Ditto.
345 * linux-ppc-low.cc (the_low_target): Ditto.
346 * linux-riscv-low.cc (the_low_target): Ditto.
347 * linux-s390-low.cc (the_low_target): Ditto.
348 * linux-sh-low.cc (the_low_target): Ditto.
349 * linux-sparc-low.cc (the_low_target): Ditto.
350 * linux-tic6x-low.cc (the_low_target): Ditto.
351 * linux-tile-low.cc (the_low_target): Ditto.
352 * linux-xtensa-low.cc (the_low_target): Ditto.
353
fc5ecdb6
TBA
3542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
355
356 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
357 linux target define the op by overriding the declaration in
358 process_stratum_target.
359
360 * linux-low.h (struct linux_target_ops): Remove the op.
361 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
362 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
363 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
364 (x86_get_ipa_tdesc_idx): Turn into...
365 (x86_target::get_ipa_tdesc_idx): ...this.
366 (the_low_target): Remove the op field.
367 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
368 (ppc_get_ipa_tdesc_idx): Turn into...
369 (ppc_target::get_ipa_tdesc_idx): ...this.
370 (the_low_target): Remove the op field.
371 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
372 (s390_get_ipa_tdesc_idx): Turn into...
373 (s390_target::get_ipa_tdesc_idx): ...this.
374 (the_low_target): Remove the op field.
375
9eedd27d
TBA
3762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
377
378 Turn the 'get_syscall_trapinfo' linux target op into a method
379 of process_stratum_target.
380
381 * linux-low.h (struct linux_target_ops): Remove the op.
382 (class linux_process_target) <get_syscall_trapinfo>
383 <gdb_catch_this_syscall>
384 <low_supports_catch_syscall>
385 <low_get_syscall_trapinfo>: Declare.
386 * linux-low.cc (get_syscall_trapinfo): Turn into...
387 (linux_process_target::get_syscall_trapinfo): ...this.
388 (linux_process_target::low_get_syscall_trapinfo): Define.
389 (gdb_catch_this_syscall_p): Turn into...
390 (linux_process_target::gdb_catch_this_syscall): ...this.
391 (linux_process_target::low_supports_catch_syscall): Define.
392
393 Update the callers below.
394
395 (linux_process_target::wait_1)
396 (linux_process_target::supports_catch_syscall)
397
398 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
399 <low_get_syscall_trapinfo>: Declare.
400 (x86_target::low_supports_catch_syscall): Define.
401 (x86_get_syscall_trapinfo): Turn into...
402 (x86_target::low_get_syscall_trapinfo): ...this.
403 (the_low_target): Remove the op field.
404 * linux-aarch64-low.cc (class aarch64_target)
405 <low_supports_catch_syscall>
406 <low_get_syscall_trapinfo>: Declare.
407 (aarch64_target::low_supports_catch_syscall): Define.
408 (aarch64_get_syscall_trapinfo): Turn into...
409 (aarch64_target::low_get_syscall_trapinfo): ...this.
410 (the_low_target): Remove the op field.
411 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
412 <low_get_syscall_trapinfo>: Declare.
413 (arm_target::low_supports_catch_syscall): Define.
414 (arm_get_syscall_trapinfo): Turn into...
415 (arm_target::low_get_syscall_trapinfo): ...this.
416 (the_low_target): Remove the op field.
417 * linux-ppc-low.cc (the_low_target): Remove the op field.
418 * linux-s390-low.cc (the_low_target): Remove the op field.
419
b31cdfa6
TBA
4202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421
422 Remove the 'supports_hardware_single_step' linux target op and
423 override the process_stratum_target's op definition in
424 linux_process_target to return true.
425
426 * linux-low.h (struct linux_target_ops): Remove the op.
427 (class linux_process_target) <finish_step_over>
428 <maybe_hw_step>: Declare.
429 * linux-low.cc (can_hardware_single_step): Remove.
430 (maybe_hw_step): Turn into...
431 (linux_process_target::maybe_hw_step): ...this.
432 (finish_step_over): Turn into...
433 (linux_process_target::finish_step_over): ...this.
434 (linux_process_target::supports_hardware_single_step): Update
435 to return true.
436
437 Update the callers below.
438
439 (linux_process_target::single_step)
440 (linux_process_target::resume_one_lwp_throw)
441
442 * linux-arm-low.cc (class arm_target)
443 <supports_hardware_single_step>: Declare.
444 (arm_supports_hardware_single_step): Turn into...
445 (arm_target::supports_hardware_single_step): ...this.
446 (the_low_target): Remove the op field.
447 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
448 (the_low_target): Remove the op field.
449 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
450 Remove.
451 (the_low_target): Remove the op field.
452 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
453 (the_low_target): Remove the op field.
454 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
455 (the_low_target): Remove the op field.
456 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
457 (the_low_target): Remove the op field.
458 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
459 (the_low_target): Remove the op field.
460 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
461 (the_low_target): Remove the op field.
462 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
463 (the_low_target): Remove the op field.
464 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
465 (the_low_target): Remove the op field.
466 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
467 (the_low_target): Remove the op field.
468 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
469 (the_low_target): Remove the op field.
470 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
471 Remove.
472 (the_low_target): Remove the op field.
473
9cfd8715
TBA
4742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
475
476 Turn the 'supports_range_stepping' linux target op into a method
477 of linux_process_target.
478
479 * linux-low.h (struct linux_target_ops): Remove the op.
480 (class linux_process_target) <low_supports_range_stepping>: Declare.
481 * linux-low.cc (linux_process_target::low_supports_range_stepping):
482 Define.
483 (linux_process_target::supports_range_stepping): Update the call
484 site.
485 * linux-x86-low.cc (class x86_target)
486 <low_supports_range_stepping>: Declare.
487 (x86_supports_range_stepping): Turn into...
488 (x86_target::low_supports_range_stepping): ...this.
489 (the_low_target): Remove the op field.
490 * linux-aarch64-low.cc (class aarch64_target)
491 <low_supports_range_stepping>: Declare.
492 (aarch64_supports_range_stepping): Turn into...
493 (aarch64_target::low_supports_range_stepping): ...this.
494 (the_low_target): Remove the op field.
495 * linux-arm-low.cc (the_low_target): Remove the op field.
496 * linux-bfin-low.cc (the_low_target): Ditto.
497 * linux-crisv32-low.cc (the_low_target): Ditto.
498 * linux-m32r-low.cc (the_low_target): Ditto.
499 * linux-m68k-low.cc (the_low_target): Ditto.
500 * linux-ppc-low.cc (the_low_target): Ditto.
501 * linux-s390-low.cc (the_low_target): Ditto.
502 * linux-sh-low.cc (the_low_target): Ditto.
503 * linux-tic6x-low.cc (the_low_target): Ditto.
504 * linux-tile-low.cc (the_low_target): Ditto.
505 * linux-xtensa-low.cc (the_low_target): Ditto.
506
ab64c999
TBA
5072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
508
509 Remove the 'emit_ops' linux target ops and let the concrete
510 linux target define the op by overriding the declaration of
511 process_stratum_target.
512
513 * linux-low.h (struct linux_target_ops): Remove the op.
514 (class linux_process_target) <emit_ops>: Remove.
515 * linux-low.cc (linux_process_target::emit_ops): Remove.
516 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
517 (x86_emit_ops): Turn into...
518 (x86_target::emit_ops): ...this.
519 (the_low_target): Remove the op field.
520 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
521 (aarch64_emit_ops): Turn into...
522 (aarch64_target::emit_ops): ...this.
523 (the_low_target): Remove the op field.
524 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
525 (ppc_emit_ops): Turn into...
526 (ppc_target::emit_ops): ...this.
527 (the_low_target): Remove the op field.
528 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
529 (s390_emit_ops): Turn into...
530 (s390_target::emit_ops): ...this.
531 (the_low_target): Remove the op field.
532 * linux-arm-low.cc (the_low_target): Remove the op field.
533 * linux-bfin-low.cc (the_low_target): Ditto.
534 * linux-crisv32-low.cc (the_low_target): Ditto.
535 * linux-m32r-low.cc (the_low_target): Ditto.
536 * linux-m68k-low.cc (the_low_target): Ditto.
537 * linux-sh-low.cc (the_low_target): Ditto.
538 * linux-tic6x-low.cc (the_low_target): Ditto.
539 * linux-tile-low.cc (the_low_target): Ditto.
540 * linux-xtensa-low.cc (the_low_target): Ditto.
541
809a0c35
TBA
5422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
543
544 Remove the 'install_fast_tracepoint_jump_pad' and
545 'get_min_fast_tracepoint_insn_len' linux target ops to let the
546 concrete linux target define the ops by overriding the declarations
547 of process_stratum_target.
548
549 * linux-low.h (struct linux_target_ops): Remove the ops.
550 (class linux_process_target) <supports_fast_tracepoints>
551 <install_fast_tracepoint_jump_pad>
552 <get_min_fast_tracepoint_insn_len>: Remove.
553 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
554 (linux_process_target::install_fast_tracepoint_jump_pad)
555 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
556 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
557 <install_fast_tracepoint_jump_pad>
558 <get_min_fast_tracepoint_insn_len>: Declare.
559 (x86_target::supports_fast_tracepoints): Define.
560 (x86_install_fast_tracepoint_jump_pad): Turn into...
561 (x86_target::install_fast_tracepoint_jump_pad): ...this.
562 (x86_get_min_fast_tracepoint_insn_len): Turn into...
563 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
564 (the_low_target): Remove the op fields.
565 * linux-aarch64-low.cc (class aarch64_target)
566 <supports_fast_tracepoints>
567 <install_fast_tracepoint_jump_pad>
568 <get_min_fast_tracepoint_insn_len>: Declare.
569 (aarch64_target::supports_fast_tracepoints): Define.
570 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
571 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
572 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
573 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
574 (the_low_target): Remove the op fields.
575 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
576 <install_fast_tracepoint_jump_pad>
577 <get_min_fast_tracepoint_insn_len>: Declare.
578 (ppc_target::supports_fast_tracepoints): Define.
579 (ppc_install_fast_tracepoint_jump_pad): Turn into...
580 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
581 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
582 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
583 (the_low_target): Remove the op fields.
584 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
585 <install_fast_tracepoint_jump_pad>
586 <get_min_fast_tracepoint_insn_len>: Declare.
587 (s390_target::supports_fast_tracepoints): Define.
588 (s390_install_fast_tracepoint_jump_pad): Turn into...
589 (s390_target::install_fast_tracepoint_jump_pad): ...this.
590 (s390_get_min_fast_tracepoint_insn_len): Turn into...
591 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
592 (the_low_target): Remove the op fields.
593 * linux-arm-low.cc (the_low_target): Remove the op fields.
594 * linux-bfin-low.cc (the_low_target): Ditto.
595 * linux-crisv32-low.cc (the_low_target): Ditto.
596 * linux-m32r-low.cc (the_low_target): Ditto.
597 * linux-m68k-low.cc (the_low_target): Ditto.
598 * linux-sh-low.cc (the_low_target): Ditto.
599 * linux-tic6x-low.cc (the_low_target): Ditto.
600 * linux-tile-low.cc (the_low_target): Ditto.
601 * linux-xtensa-low.cc (the_low_target): Ditto.
602
13e567af
TBA
6032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
604
605 Turn the 'get_thread_area' linux target op into a method of
606 process_stratum_target.
607
608 * linux-low.h (struct linux_target_ops): Remove the op.
609 (class linux_process_target) <stuck_in_jump_pad>
610 <linux_fast_tracepoint_collecting>
611 <low_get_thread_area>: Declare.
612 * linux-low.cc (supports_fast_tracepoints): Remove.
613 (linux_fast_tracepoint_collecting): Turn into...
614 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
615 (linux_process_target::low_get_thread_area): Define.
616 (stuck_in_jump_pad_callback): Turn into...
617 (linux_process_target::stuck_in_jump_pad): ...this.
618
619 Update the caller below.
620
621 (linux_process_target::stabilize_threads)
622
623 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
624 Declare.
625 (x86_get_thread_area): Turn into...
626 (x86_target::low_get_thread_area): ...this.
627 (the_low_target): Remove the op field.
628 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
629 Declare.
630 (aarch64_get_thread_area): Turn into...
631 (aarch64_target::low_get_thread_area): ...this.
632 (the_low_target): Remove the op field.
633 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
634 Declare.
635 (ppc_get_thread_area): Turn into...
636 (ppc_target::low_get_thread_area): ...this.
637 (the_low_target): Remove the op field.
638 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
639 Declare.
640 (s390_get_thread_area): Turn into...
641 (s390_target::low_get_thread_area): ...this.
642 (the_low_target): Remove the op field.
643 * linux-arm-low.cc (the_low_target): Remove the op field.
644 * linux-bfin-low.cc (the_low_target): Ditto.
645 * linux-crisv32-low.cc (the_low_target): Ditto.
646 * linux-m32r-low.cc (the_low_target): Ditto.
647 * linux-m68k-low.cc (the_low_target): Ditto.
648 * linux-sh-low.cc (the_low_target): Ditto.
649 * linux-tic6x-low.cc (the_low_target): Ditto.
650 * linux-tile-low.cc (the_low_target): Ditto.
651 * linux-xtensa-low.cc (the_low_target): Ditto.
652
47f70aa7
TBA
6532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
654
655 Remote the 'supports_tracepoints' linux target op and let the
656 concrete linux target define it by overriding the op declared in
657 process_stratum_target.
658
659 * linux-low.h (struct linux_target_ops): Remove the op.
660 (class linux_process_target) <supports_tracepoints>: Remove.
661 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
662 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
663 Declare.
664 (x86_supports_tracepoints): Turn into...
665 (x86_target::supports_tracepoints): ...this.
666 (the_low_target): Remove the op field.
667 * linux-aarch64-low.cc (class aarch64_target)
668 <supports_tracepoints>: Declare.
669 (aarch64_supports_tracepoints): Turn into...
670 (aarch64_target::supports_tracepoints): ...this.
671 (the_low_target): Remove the op field.
672 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
673 Declare.
674 (ppc_supports_tracepoints): Turn into...
675 (ppc_target::supports_tracepoints): ...this.
676 (the_low_target): Remove the op field.
677 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
678 Declare.
679 (s390_supports_tracepoints): Turn into...
680 (s390_target::supports_tracepoints): ...this.
681 (the_low_target): Remove the op field.
682 * linux-arm-low.cc (the_low_target): Remove the op field.
683 * linux-bfin-low.cc (the_low_target): Ditto.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
691
a5b5da92
TBA
6922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693
694 Remove the 'process_qsupported' linux target op and let a concrete
695 linux target define the op by overriding the op declaration in
696 process_stratum_target.
697
698 * linux-low.h (struct linux_target_ops): Remove the op.
699 (class linux_process_target) <process_qsupported>: Remove.
700 * linux-low.cc (linux_process_target::process_qsupported): Remove.
701 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
702 (x86_linux_process_qsupported): Turn into...
703 (x86_target::process_qsupported): ...this.
704 (the_low_target): Remove the op field.
705 * linux-aarch64-low.cc (the_low_target): Remove the op
706 field.
707 * linux-arm-low.cc (the_low_target): Ditto.
708 * linux-bfin-low.cc (the_low_target): Ditto.
709 * linux-crisv32-low.cc (the_low_target): Ditto.
710 * linux-m32r-low.cc (the_low_target): Ditto.
711 * linux-m68k-low.cc (the_low_target): Ditto.
712 * linux-ppc-low.cc (the_low_target): Ditto.
713 * linux-s390-low.cc (the_low_target): Ditto.
714 * linux-sh-low.cc (the_low_target): Ditto.
715 * linux-tic6x-low.cc (the_low_target): Ditto.
716 * linux-tile-low.cc (the_low_target): Ditto.
717 * linux-xtensa-low.cc (the_low_target): Ditto.
718
d7599cc0
TBA
7192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
720
721 Turn the 'prepare_to_resume' linux target op into a method of
722 linux_process_target.
723
724 * linux-low.h (struct linux_target_ops): Remove the op.
725 (class linux_process_target) <low_prepare_to_resume>: Declare.
726 * linux-low.cc (linux_process_target::low_prepare_to_resume):
727 Define.
728
729 Update the callers below:
730
731 (linux_process_target::resume_one_lwp_throw)
732 (linux_process_target::low_prepare_to_resume)
733
734 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
735 Declare.
736 (x86_target::low_prepare_to_resume): Define.
737 (the_low_target): Remove the op field.
738 * linux-aarch64-low.cc (class aarch64_target)
739 <low_prepare_to_resume>: Declare.
740 (aarch64_target::low_prepare_to_resume): Define.
741 (the_low_target): Remove the op field.
742 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
743 Declare.
744 (arm_prepare_to_resume): Turn into...
745 (arm_target::low_prepare_to_resume): ...this.
746 (the_low_target): Remove the op field.
747 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
748 Declare.
749 (mips_linux_prepare_to_resume): Turn into...
750 (mips_target::low_prepare_to_resume): ...this.
751 (the_low_target): Remove the op field.
752 * linux-bfin-low.cc (the_low_target): Remove the op field.
753 * linux-crisv32-low.cc (the_low_target): Ditto.
754 * linux-m32r-low.cc (the_low_target): Ditto.
755 * linux-m68k-low.cc (the_low_target): Ditto.
756 * linux-ppc-low.cc (the_low_target): Ditto.
757 * linux-s390-low.cc (the_low_target): Ditto.
758 * linux-sh-low.cc (the_low_target): Ditto.
759 * linux-tic6x-low.cc (the_low_target): Ditto.
760 * linux-tile-low.cc (the_low_target): Ditto.
761 * linux-xtensa-low.cc (the_low_target): Ditto.
762
fd000fb3
TBA
7632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
764
765 Turn the 'new_process', 'delete_process', 'new_thread',
766 'delete_thread', and 'new_fork' linux target ops into methods
767 of linux_process_target.
768
769 * linux-low.h (struct linux_target_ops): Remove the ops.
770 (class linux_process_target) <add_linux_process>
771 <add_lwp>
772 <delete_lwp>
773 <attach_lwp>
774 <detach_one_lwp>
775 <check_zombie_leaders>
776 <filter_exit_event>
777 <low_new_process>
778 <low_delete_process>
779 <low_new_thread>
780 <low_delete_thread>
781 <low_new_fork>: Declare.
782 * linux-low.cc (delete_lwp): Turn into...
783 (linux_process_target::delete_lwp): ...this.
784 (linux_process_target::low_delete_thread): Define.
785 (linux_add_process): Turn into...
786 (linux_process_target::add_linux_process): ...this.
787 (linux_process_target::low_new_process): Define.
788 (linux_process_target::low_delete_process): Define.
789 (linux_process_target::low_new_fork): Define.
790 (add_lwp): Turn into...
791 (linux_process_target::add_lwp): ...this.
792 (linux_process_target::low_new_thread): Define.
793 (linux_attach_lwp): Turn into...
794 (linux_process_target::attach_lwp): ...this.
795 (linux_detach_one_lwp): Turn into...
796 (linux_process_target::detach_one_lwp): ...this.
797 (linux_detach_lwp_callback): Remove and inline...
798 (linux_process_target::detach): ...here.
799 (check_zombie_leaders): Turn into...
800 (linux_process_target::check_zombie_leaders): ...this.
801 (filter_exit_event): Turn into...
802 (linux_process_target::filter_exit_event): ...this.
803
804 Update the callers below.
805
806 (linux_process_target::handle_extended_wait)
807 (linux_process_target::create_inferior)
808 (attach_proc_task_lwp_callback)
809 (linux_process_target::attach)
810 (linux_process_target::detach)
811 (linux_process_target::mourn)
812 * thread-db.cc (attach_thread)
813
814 * linux-x86-low.cc (class x86_target) <low_new_process>
815 <low_delete_process>
816 <low_new_thread>
817 <low_delete_thread>
818 <low_new_fork>: Declare.
819 (x86_linux_new_process): Turn into...
820 (x86_target::low_new_process): ...this.
821 (x86_linux_delete_process): Turn into...
822 (x86_target::low_delete_process): ...this.
823 (x86_target::low_new_thread): Define.
824 (x86_target::low_delete_thread): Define.
825 (x86_linux_new_fork): Turn into...
826 (x86_target::low_new_fork): ...this.
827 (the_low_target): Remove the op fields.
828 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
829 <low_delete_process>
830 <low_new_thread>
831 <low_delete_thread>
832 <low_new_fork>: Declare.
833 (aarch64_linux_new_process): Turn into...
834 (aarch64_target::low_new_process): ...this.
835 (aarch64_linux_delete_process): Turn into...
836 (aarch64_target::low_delete_process): ...this.
837 (aarch64_target::low_new_thread): Define.
838 (aarch64_target::low_delete_thread): Define.
839 (aarch64_linux_new_fork): Turn into...
840 (aarch64_target::low_new_fork): ...this.
841 (the_low_target): Remove the op fields.
842 * linux-arm-low.cc (class arm_target) <low_new_process>
843 <low_delete_process>
844 <low_new_thread>
845 <low_delete_thread>
846 <low_new_fork>: Declare.
847 (arm_new_process): Turn into...
848 (arm_target::low_new_process): ...this.
849 (arm_delete_process): Turn into...
850 (arm_target::low_delete_process): ...this.
851 (arm_new_thread): Turn into...
852 (arm_target::low_new_thread): ...this.
853 (arm_delete_thread): Turn into...
854 (arm_target::low_delete_thread): ...this.
855 (arm_new_fork): Turn into...
856 (arm_target::low_new_fork): ...this.
857 (the_low_target): Remove the op fields.
858 * linux-mips-low.cc (class mips_target) <low_new_process>
859 <low_delete_process>
860 <low_new_thread>
861 <low_delete_thread>
862 <low_new_fork>: Declare.
863 (mips_linux_new_process): Turn into...
864 (mips_target::low_new_process): ...this.
865 (mips_linux_delete_process): Turn into...
866 (mips_target::low_delete_process): ...this.
867 (mips_linux_new_thread): Turn into...
868 (mips_target::low_new_thread): ...this.
869 (mips_linux_delete_thread): Turn into...
870 (mips_target::low_delete_thread): ...this.
871 (mips_linux_new_fork): Turn into...
872 (mips_target::low_new_fork): ...this.
873 (the_low_target): Remove the op fields.
874 * linux-bfin-low.cc (the_low_target): Remove the op fields.
875 * linux-crisv32-low.cc (the_low_target): Ditto.
876 * linux-m32r-low.cc (the_low_target): Ditto.
877 * linux-m68k-low.cc (the_low_target): Ditto.
878 * linux-ppc-low.cc (the_low_target): Ditto.
879 * linux-s390-low.cc (the_low_target): Ditto.
880 * linux-sh-low.cc (the_low_target): Ditto.
881 * linux-tic6x-low.cc (the_low_target): Ditto.
882 * linux-tile-low.cc (the_low_target): Ditto.
883 * linux-xtensa-low.cc (the_low_target): Ditto.
884
cb63de7c
TBA
8852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
886
887 Turn the 'siginfo_fixup' linux target op into a method of
888 linux_process_target.
889
890 * linux-low.h (struct linux_target_ops): Remove the op.
891 (class linux_process_target) <siginfo_fixup>
892 <low_siginfo_fixup>: Declare.
893 * linux-low.cc (siginfo_fixup): Turn into...
894 (linux_process_target::siginfo_fixup): ...this.
895 (linux_process_target::low_siginfo_fixup): Define.
896 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
897 (x86_siginfo_fixup): Turn into...
898 (x86_target::low_siginfo_fixup): ...this.
899 (the_low_target): Remove the op field.
900 * linux-aarch64-low.cc (class aarch64_target):
901 <low_siginfo_fixup>: Declare.
902 (aarch64_linux_siginfo_fixup): Turn into...
903 (aarch64_target::low_siginfo_fixup): ...this.
904 (the_low_target): Remove the op field.
905 * linux-arm-low.cc (the_low_target): Remove the op field.
906 * linux-bfin-low.cc (the_low_target): Ditto.
907 * linux-crisv32-low.cc (the_low_target): Ditto.
908 * linux-m32r-low.cc (the_low_target): Ditto.
909 * linux-m68k-low.cc (the_low_target): Ditto.
910 * linux-mips-low.cc (the_low_target): Ditto.
911 * linux-ppc-low.cc (the_low_target): Ditto.
912 * linux-s390-low.cc (the_low_target): Ditto.
913 * linux-sh-low.cc (the_low_target): Ditto.
914 * linux-tic6x-low.cc (the_low_target): Ditto.
915 * linux-tile-low.cc (the_low_target): Ditto.
916 * linux-xtensa-low.cc (the_low_target): Ditto.
917
b35db733
TBA
9182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
919
920 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
921 linux target ops into methods of linux_process_target.
922
923 * linux-low.h (struct linux_target_ops): Remove the ops.
924 (class linux_process_target) <low_collect_ptrace_register>
925 <low_store_ptrace_register>: Declare.
926 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
927 (linux_process_target::low_supply_ptrace_register): Define.
928
929 Update the callers below.
930
931 (linux_process_target::fetch_register)
932 (linux_process_target::store_register)
933
934 * linux-x86-low.cc (the_low_target): Remove the op fields.
935 * linux-aarch64-low.cc (the_low_target): Ditto.
936 * linux-arm-low.cc (the_low_target): Ditto.
937 * linux-bfin-low.cc (the_low_target): Ditto.
938 * linux-crisv32-low.cc (the_low_target): Ditto.
939 * linux-m32r-low.cc (the_low_target): Ditto.
940 * linux-m68k-low.cc (the_low_target): Ditto.
941 * linux-sh-low.cc (the_low_target): Ditto.
942 * linux-sparc-low.cc (the_low_target): Ditto.
943 * linux-tic6x-low.cc (the_low_target): Ditto.
944 * linux-tile-low.cc (the_low_target): Ditto.
945 * linux-xtensa-low.cc (the_low_target): Ditto.
946 * linux-mips-low.cc (class mips_target)
947 <low_collect_ptrace_register>
948 <low_supply_ptrace_register>: Declare.
949 (mips_collect_ptrace_register): Turn into ...
950 (mips_target::low_collect_ptrace_register): ...this.
951 (mips_supply_ptrace_register): Turn into...
952 (mips_target::low_supply_ptrace_register): ...this.
953 (the_low_target): Remove the op fields.
954 * linux-ppc-low.cc (class ppc_target)
955 <low_collect_ptrace_register>
956 <low_supply_ptrace_register>: Declare.
957 (ppc_collect_ptrace_register): Turn into ...
958 (ppc_target::low_collect_ptrace_register): ...this.
959 (ppc_supply_ptrace_register): Turn into ...
960 (ppc_target::low_supply_ptrace_register): ...this.
961 (ppc_fill_gregset): Update for the calls to
962 low_collect_ptrace_register.
963 (the_low_target): Remove the op fields.
964 * linux-s390-low.cc (class s390_target)
965 <low_collect_ptrace_register>
966 <low_supply_ptrace_register>: Declare.
967 (s390_collect_ptrace_register): Turn into ...
968 (s390_target::low_collect_ptrace_register): ...this.
969 (s390_supply_ptrace_register): Turn into ...
970 (s390_target::low_supply_ptrace_register): ...this.
971 (s390_fill_gregset): Update for the calls to
972 low_collect_ptrace_register.
973 (the_low_target): Remove the op fields.
974
ac1bbaca
TBA
9752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
978 target ops into methods of linux_process_target.
979
980 * linux-low.h (struct linux_target_ops): Remove the ops.
981 (class linux_process_target) <check_stopped_by_watchpoint>
982 <low_stopped_by_watchpoint>
983 <low_stopped_data_address>: Declare.
984 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
985 (linux_process_target::check_stopped_by_watchpoint): ...this.
986 (linux_process_target::low_stopped_by_watchpoint): Define.
987 (linux_process_target::low_stopped_data_address): Define.
988 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
989 <low_stopped_data_address>: Declare.
990 (x86_stopped_by_watchpoint): Turn into...
991 (x86_target::low_stopped_by_watchpoint): ...this.
992 (x86_stopped_data_address): Turn into...
993 (x86_target::low_stopped_data_address): ...this.
994 (the_low_target): Remove the op fields.
995 * linux-aarch64-low.cc (class aarch64_target)
996 <low_stopped_by_watchpoint>
997 <low_stopped_data_address>: Declare.
998 (aarch64_stopped_by_watchpoint): Turn into...
999 (aarch64_target::low_stopped_by_watchpoint): ...this.
1000 (aarch64_stopped_data_address): Turn into...
1001 (aarch64_target::low_stopped_data_address): ...this.
1002 (the_low_target): Remove the op fields.
1003 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1004 <low_stopped_data_address>: Declare.
1005 (arm_stopped_by_watchpoint): Turn into...
1006 (arm_target::low_stopped_by_watchpoint): ...this.
1007 (arm_stopped_data_address): Turn into...
1008 (arm_target::low_stopped_data_address): ...this.
1009 (the_low_target): Remove the op fields.
1010 * linux-crisv32-low.cc (class crisv32_target)
1011 <low_stopped_by_watchpoint>
1012 <low_stopped_data_address>: Declare.
1013 (cris_stopped_by_watchpoint): Turn into...
1014 (crisv32_target::low_stopped_by_watchpoint): ...this.
1015 (cris_stopped_data_address): Turn into...
1016 (crisv32_target::low_stopped_data_address): ...this.
1017 (the_low_target): Remove the op fields.
1018 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1019 <low_stopped_data_address>: Declare.
1020 (mips_stopped_by_watchpoint): Turn into...
1021 (mips_target::low_stopped_by_watchpoint): ...this.
1022 (mips_stopped_data_address): Turn into...
1023 (mips_target::low_stopped_data_address): ...this.
1024 (the_low_target): Remove the op fields.
1025 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1026 * linux-m32r-low.cc (the_low_target): Ditto.
1027 * linux-m68k-low.cc (the_low_target): Ditto.
1028 * linux-ppc-low.cc (the_low_target): Ditto.
1029 * linux-s390-low.cc (the_low_target): Ditto.
1030 * linux-sh-low.cc (the_low_target): Ditto.
1031 * linux-sparc-low.cc (the_low_target): Ditto.
1032 * linux-tic6x-low.cc (the_low_target): Ditto.
1033 * linux-tile-low.cc (the_low_target): Ditto.
1034 * linux-xtensa-low.cc (the_low_target): Ditto.
1035
9db9aa23
TBA
10362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1037
1038 Turn the 'insert_point' and 'remove_point' linux target ops into
1039 methods of linux_process_target.
1040
1041 * linux-low.h (struct linux_target_ops): Remove the ops.
1042 (class linux_process_target) <low_insert_point>
1043 <low_remove_point>: Declare.
1044 * linux-low.cc (linux_process_target::low_insert_point)
1045 (linux_process_target::low_remove_point): Define.
1046 (linux_process_target::insert_point)
1047 (linux_process_target::remove_point): Update for calls to
1048 low_insert_point and low_remove_point.
1049 * linux-x86-low.cc (class x86_target) <low_insert_point>
1050 <low_remove_point>: Declare.
1051 (x86_insert_point): Turn into...
1052 (x86_target::low_insert_point): ...this.
1053 (x86_remove_point): Turn into...
1054 (x86_target::low_remove_point): ...this.
1055 (the_low_target): Remove the op fields.
1056 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1057 <low_remove_point>: Declare.
1058 (aarch64_insert_point): Turn into...
1059 (aarch64_target::low_insert_point): ...this.
1060 (aarch64_remove_point): Turn into...
1061 (aarch64_target::low_remove_point): ...this.
1062 (the_low_target): Remove the op fields.
1063 * linux-arm-low.cc (class arm_target) <low_insert_point>
1064 <low_remove_point>: Declare.
1065 (arm_insert_point): Turn into...
1066 (arm_target::low_insert_point): ...this.
1067 (arm_remove_point): Turn into...
1068 (arm_target::low_remove_point): ...this.
1069 (the_low_target): Remove the op fields.
1070 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1071 <low_remove_point>: Declare.
1072 (crisv32_insert_point): Turn into...
1073 (crisv32_target::low_insert_point): ...this.
1074 (crisv32_remove_point): Turn into...
1075 (crisv32_target::low_remove_point): ...this.
1076 (the_low_target): Remove the op fields.
1077 * linux-mips-low.cc (class mips_target) <low_insert_point>
1078 <low_remove_point>: Declare.
1079 (mips_insert_point): Turn into...
1080 (mips_target::low_insert_point): ...this.
1081 (mips_remove_point): Turn into...
1082 (mips_target::low_remove_point): ...this.
1083 (the_low_target): Remove the op fields.
1084 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1085 <low_remove_point>: Declare.
1086 (ppc_insert_point): Turn into...
1087 (ppc_target::low_insert_point): ...this.
1088 (ppc_remove_point): Turn into...
1089 (ppc_target::low_remove_point): ...this.
1090 (the_low_target): Remove the op fields.
1091 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1092 * linux-m32r-low.cc (the_low_target): Ditto.
1093 * linux-m68k-low.cc (the_low_target): Ditto.
1094 * linux-s390-low.cc (the_low_target): Ditto.
1095 * linux-sh-low.cc (the_low_target): Ditto.
1096 * linux-sparc-low.cc (the_low_target): Ditto.
1097 * linux-tic6x-low.cc (the_low_target): Ditto.
1098 * linux-tile-low.cc (the_low_target): Ditto.
1099 * linux-xtensa-low.cc (the_low_target): Ditto.
1100
007c9b97
TBA
11012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1102
1103 Remove the 'supports_z_point_type' linux target op and let the
1104 concrete linux target define it by overriding the op declared in
1105 process_stratum_target.
1106
1107 * linux-low.cc (linux_process_target::supports_z_point_type):
1108 Remove.
1109 * linux-low.h (struct linux_target_ops): Remove the op.
1110 (class linux_process_target) <supports_z_point_type>: Remove.
1111 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1112 Declare.
1113 (x86_supports_z_point_type): Turn into...
1114 (x86_target::supports_z_point_type): ...this.
1115 (the_low_target): Remove the op field.
1116 * linux-aarch64-low.cc (class aarch64_target)
1117 <supports_z_point_type>: Declare.
1118 (aarch64_supports_z_point_type): Turn into...
1119 (aarch64_target::supports_z_point_type): ...this.
1120 (the_low_target): Remove the op field.
1121 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1122 Declare.
1123 (arm_supports_z_point_type): Turn into...
1124 (arm_target::supports_z_point_type): ...this.
1125 (the_low_target): Remove the op field.
1126 * linux-crisv32-low.cc (class crisv32_target)
1127 <supports_z_point_type>: Declare.
1128 (cris_supports_z_point_type): Turn into...
1129 (crisv32_target::supports_z_point_type): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1132 Declare.
1133 (mips_supports_z_point_type): Turn into...
1134 (mips_target::supports_z_point_type): ...this.
1135 (the_low_target): Remove the op field.
1136 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1137 Declare.
1138 (ppc_supports_z_point_type): Turn into...
1139 (ppc_target::supports_z_point_type): ...this.
1140 (the_low_target): Remove the op field.
1141 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1142 Declare.
1143 (s390_supports_z_point_type): Turn into...
1144 (s390_target::supports_z_point_type): ...this.
1145 (the_low_target): Remove the op field.
1146 * linux-bfin-low.cc (the_low_target): Remove the op field.
1147 * linux-m32r-low.cc (the_low_target): Ditto.
1148 * linux-m68k-low.cc (the_low_target): Ditto.
1149 * linux-sh-low.cc (the_low_target): Ditto.
1150 * linux-sparc-low.cc (the_low_target): Ditto.
1151 * linux-tic6x-low.cc (the_low_target): Ditto.
1152 * linux-tile-low.cc (the_low_target): Ditto.
1153 * linux-xtensa-low.cc (the_low_target): Ditto.
1154
d7146cda
TBA
11552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1156
1157 Turn the 'breakpoint_at' linux target op into a method of
1158 linux_process_target.
1159
1160 * linux-low.h (struct linux_target_ops): Remove the op.
1161 (class linux_process_target) <low_breakpoint_at>: Declare.
1162
1163 Update the callers below:
1164
1165 * linux-low.cc (linux_process_target::save_stop_reason)
1166 (linux_process_target::thread_still_has_status_pending)
1167 (linux_process_target::wait_1)
1168
1169 * linux-x86-low.cc (class x86_target)
1170 <low_breakpoint_at>: Declare.
1171 (x86_breakpoint_at): Turn into...
1172 (x86_target::low_breakpoint_at): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-aarch64-low.cc (class aarch64_target)
1175 <low_breakpoint_at>: Declare.
1176 (aarch64_breakpoint_at): Turn into...
1177 (aarch64_target::low_breakpoint_at): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-arm-low.cc (class arm_target)
1180 <low_breakpoint_at>: Declare.
1181 (arm_target::low_breakpoint_at): Define.
1182 (the_low_target): Remove the op field.
1183 * linux-bfin-low.cc (class bfin_target)
1184 <low_breakpoint_at>: Declare.
1185 (bfin_breakpoint_at): Turn into...
1186 (bfin_target::low_breakpoint_at): ...this.
1187 (the_low_target): Remove the op field.
1188 * linux-cris-low.cc (class cris_target)
1189 <low_breakpoint_at>: Declare.
1190 (cris_breakpoint_at): Turn into...
1191 (cris_target::low_breakpoint_at): ...this.
1192 (the_low_target): Remove the op field.
1193 * linux-crisv32-low.cc (class crisv32_target)
1194 <low_breakpoint_at>: Declare.
1195 (crisv32_breakpoint_at): Turn into...
1196 (crisv32_target::low_breakpoint_at): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-ia64-low.cc (class ia64_target)
1199 <low_breakpoint_at>: Declare.
1200 (ia64_target::low_breakpoint_at): Define.
1201 * linux-m32r-low.cc (class m32r_target)
1202 <low_breakpoint_at>: Declare.
1203 (m32r_breakpoint_at): Turn into...
1204 (m32r_target::low_breakpoint_at): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-m68k-low.cc (class m68k_target)
1207 <low_breakpoint_at>: Declare.
1208 (m68k_breakpoint_at): Turn into...
1209 (m68k_target::low_breakpoint_at): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-mips-low.cc (class mips_target)
1212 <low_breakpoint_at>: Declare.
1213 (mips_breakpoint_at): Turn into...
1214 (mips_target::low_breakpoint_at): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-nios2-low.cc (class nios2_target)
1217 <low_breakpoint_at>: Declare.
1218 (nios2_breakpoint_at): Turn into...
1219 (nios2_target::low_breakpoint_at): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-ppc-low.cc (class ppc_target)
1222 <low_breakpoint_at>: Declare.
1223 (ppc_breakpoint_at): Turn into...
1224 (ppc_target::low_breakpoint_at): ...this.
1225 (the_low_target): Remove the op field.
1226 * linux-riscv-low.cc (class riscv_target)
1227 <low_breakpoint_at>: Declare.
1228 (riscv_breakpoint_at): Turn into...
1229 (riscv_target::low_breakpoint_at): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-s390-low.cc (class s390_target)
1232 <low_breakpoint_at>: Declare.
1233 (s390_breakpoint_at): Turn into...
1234 (s390_target::low_breakpoint_at): ...this.
1235 (the_low_target): Remove the op field.
1236 * linux-sh-low.cc (class sh_target)
1237 <low_breakpoint_at>: Declare.
1238 (sh_breakpoint_at): Turn into...
1239 (sh_target::low_breakpoint_at): ...this.
1240 (the_low_target): Remove the op field.
1241 * linux-sparc-low.cc (class sparc_target)
1242 <low_breakpoint_at>: Declare.
1243 (sparc_breakpoint_at): Turn into...
1244 (sparc_target::low_breakpoint_at): ...this.
1245 (the_low_target): Remove the op field.
1246 * linux-tic6x-low.cc (class tic6x_target)
1247 <low_breakpoint_at>: Declare.
1248 (tic6x_breakpoint_at): Turn into...
1249 (tic6x_target::low_breakpoint_at): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-tile-low.cc (class tile_target)
1252 <low_breakpoint_at>: Declare.
1253 (tile_breakpoint_at): Turn into...
1254 (tile_target::low_breakpoint_at): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-xtensa-low.cc (class xtensa_target)
1257 <low_breakpoint_at>: Declare.
1258 (xtensa_breakpoint_at): Turn into...
1259 (xtensa_target::low_breakpoint_at): ...this.
1260 (the_low_target): Remove the op field.
1261
d4807ea2
TBA
12622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1263
1264 Turn the 'decr_pc_after_break' linux_target_ops field into
1265 a method of linux_process_target.
1266
1267 * linux-low.h (struct linux_target_ops)
1268 <decr_pc_after_break>: Remove.
1269 (class linux_process_target) <low_decr_pc_after_break>: New method
1270 declaration.
1271 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1272 New method implementation.
1273
1274 Update the users below.
1275
1276 (linux_process_target::save_stop_reason)
1277 (linux_process_target::wait_1)
1278 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1279 New declaration.
1280 (x86_target::low_decr_pc_after_break): New method implementation.
1281 (the_low_target): Remove the field.
1282 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1283 New declaration.
1284 (bfin_target::low_decr_pc_after_break): New method implementation.
1285 (the_low_target): Remove the field.
1286 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1287 New declaration.
1288 (m68k_target::low_decr_pc_after_break): New method implementation.
1289 (the_low_target): Remove the field.
1290 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1291 New declaration.
1292 (s390_target::low_decr_pc_after_break): New method implementation.
1293 (the_low_target): Remove the field.
1294 * linux-aarch64-low.cc (the_low_target): Remove the field.
1295 * linux-arm-low.cc (the_low_target): Remove the field.
1296 * linux-cris-low.cc (the_low_target): Remove the field.
1297 * linux-crisv32-low.cc (the_low_target): Remove the field.
1298 * linux-m32r-low.cc (the_low_target): Remove the field.
1299 * linux-mips-low.cc (the_low_target): Remove the field.
1300 * linux-nios2-low.cc (the_low_target): Remove the field.
1301 * linux-ppc-low.cc (the_low_target): Remove the field.
1302 * linux-riscv-low.cc (the_low_target): Remove the field.
1303 * linux-sh-low.cc (the_low_target): Remove the field.
1304 * linux-sparc-low.cc (the_low_target): Remove the field.
1305 * linux-tic6x-low.cc (the_low_target): Remove the field.
1306 * linux-tile-low.cc (the_low_target): Remove the field.
1307 * linux-xtensa-low.cc (the_low_target): Remove the field.
1308
7582c77c
TBA
13092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1310
1311 Remove the 'supports_software_single_step' linux target op and let
1312 the concrete linux target define it by overriding the op in
1313 process_stratum_target.
1314 Turn the 'get_next_pcs' linux target op into a method of
1315 linux_process_target.
1316
1317 * linux-low.h (struct linux_target_ops): Remove the ops.
1318 (class linux_process_target) <supports_software_single_step>:
1319 Remove.
1320 <low_get_next_pcs>: Declare.
1321 * linux-low.cc (can_software_single_step): Remove.
1322 (linux_process_target::low_get_next_pcs): Define.
1323 (linux_process_target::supports_software_single_step): Remove.
1324
1325 Update the callers below.
1326
1327 (linux_process_target::handle_extended_wait)
1328 (linux_process_target::wait_1)
1329 (linux_process_target::install_software_single_step_breakpoints)
1330 (linux_process_target::single_step)
1331 (linux_process_target::thread_needs_step_over)
1332 (linux_process_target::proceed_one_lwp)
1333 (linux_process_target::supports_range_stepping)
1334
1335 * linux-x86-low.cc (the_low_target): Remove the op field.
1336 * linux-aarch64-low.cc (the_low_target): Ditto.
1337 * linux-bfin-low.cc (the_low_target): Ditto.
1338 * linux-cris-low.cc (the_low_target): Ditto.
1339 * linux-crisv32-low.cc (the_low_target): Ditto.
1340 * linux-m32r-low.cc (the_low_target): Ditto.
1341 * linux-m68k-low.cc (the_low_target): Ditto.
1342 * linux-mips-low.cc (the_low_target): Ditto.
1343 * linux-nios2-low.cc (the_low_target): Ditto.
1344 * linux-ppc-low.cc (the_low_target): Ditto.
1345 * linux-riscv-low.cc (the_low_target): Ditto.
1346 * linux-s390-low.cc (the_low_target): Ditto.
1347 * linux-sh-low.cc (the_low_target): Ditto.
1348 * linux-sparc-low.cc (the_low_target): Ditto.
1349 * linux-tic6x-low.cc (the_low_target): Ditto.
1350 * linux-tile-low.cc (the_low_target): Ditto.
1351 * linux-xtensa-low.cc (the_low_target): Ditto.
1352 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1353 <supports_software_single_step>: Declare.
1354 (arm_target::supports_software_single_step): Define.
1355 (arm_gdbserver_get_next_pcs): Turn into...
1356 (arm_target::low_get_next_pcs): ...this.
1357 (the_low_target): Remove the op field.
1358
3ca4edb6
TBA
13592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1360
1361 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1362 the concrete linux target define it by overriding the op
1363 in process_stratum_target.
1364
1365 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1366 Remove.
1367 * linux-low.h (struct linux_target_ops): Remove the op.
1368 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1369 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1370 Declare.
1371 (x86_sw_breakpoint_from_kind): Turn into...
1372 (x86_target::sw_breakpoint_from_kind): ...this.
1373 (the_low_target): Remove the op field.
1374 * linux-aarch64-low.cc (class aarch64_target)
1375 <sw_breakpoint_from_kind>: Declare.
1376 (aarch64_sw_breakpoint_from_kind): Turn into...
1377 (aarch64_target::sw_breakpoint_from_kind): ...this.
1378 (the_low_target): Remove the op field.
1379 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1380 Declare.
1381 (arm_target::sw_breakpoint_from_kind): Define.
1382 (the_low_target): Remove the op field.
1383 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1384 Declare.
1385 (bfin_sw_breakpoint_from_kind): Turn into...
1386 (bfin_target::sw_breakpoint_from_kind): ...this.
1387 (the_low_target): Remove the op field.
1388 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1389 Declare.
1390 (cris_sw_breakpoint_from_kind): Turn into...
1391 (cris_target::sw_breakpoint_from_kind): ...this.
1392 (the_low_target): Remove the op field.
1393 * linux-crisv32-low.cc (class crisv32_target)
1394 <sw_breakpoint_from_kind>: Declare.
1395 (cris_sw_breakpoint_from_kind): Turn into...
1396 (crisv32_target::sw_breakpoint_from_kind): ...this.
1397 (the_low_target): Remove the op field.
1398 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1399 Declare.
1400 (ia64_target::sw_breakpoint_from_kind): Define.
1401 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1402 Declare.
1403 (m32r_sw_breakpoint_from_kind): Turn into...
1404 (m32r_target::sw_breakpoint_from_kind): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1407 Declare.
1408 (m68k_sw_breakpoint_from_kind): Turn into...
1409 (m68k_target::sw_breakpoint_from_kind): ...this.
1410 (the_low_target): Remove the op field.
1411 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1412 Declare.
1413 (mips_sw_breakpoint_from_kind): Turn into...
1414 (mips_target::sw_breakpoint_from_kind): ...this.
1415 (the_low_target): Remove the op field.
1416 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1417 Declare.
1418 (nios2_sw_breakpoint_from_kind): Turn into...
1419 (nios2_target::sw_breakpoint_from_kind): ...this.
1420 (the_low_target): Remove the op field.
1421 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1422 Declare.
1423 (ppc_sw_breakpoint_from_kind): Turn into...
1424 (ppc_target::sw_breakpoint_from_kind): ...this.
1425 (the_low_target): Remove the op field.
1426 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1427 Declare.
1428 (riscv_sw_breakpoint_from_kind): Turn into...
1429 (riscv_target::sw_breakpoint_from_kind): ...this.
1430 (the_low_target): Remove the op field.
1431 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1432 Declare.
1433 (s390_sw_breakpoint_from_kind): Turn into...
1434 (s390_target::sw_breakpoint_from_kind): ...this.
1435 (the_low_target): Remove the op field.
1436 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1437 Declare.
1438 (sh_sw_breakpoint_from_kind): Turn into...
1439 (sh_target::sw_breakpoint_from_kind): ...this.
1440 (the_low_target): Remove the op field.
1441 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1442 Declare.
1443 (sparc_sw_breakpoint_from_kind): Turn into...
1444 (sparc_target::sw_breakpoint_from_kind): ...this.
1445 (the_low_target): Remove the op field.
1446 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1447 Declare.
1448 (tic6x_sw_breakpoint_from_kind): Turn into...
1449 (tic6x_target::sw_breakpoint_from_kind): ...this.
1450 (the_low_target): Remove the op field.
1451 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1452 Declare.
1453 (tile_sw_breakpoint_from_kind): Turn into...
1454 (tile_target::sw_breakpoint_from_kind): ...this.
1455 (the_low_target): Remove the op field.
1456 * linux-xtensa-low.cc (class xtensa_target)
1457 <sw_breakpoint_from_kind>: Declare.
1458 (xtensa_sw_breakpoint_from_kind): Turn into...
1459 (xtensa_target::sw_breakpoint_from_kind): ...this.
1460 (the_low_target): Remove the op field.
1461
06250e4e
TBA
14622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1463
1464 Remove the 'breakpoint_kind_from_pc' and
1465 'breakpoint_kind_from_current_state' linux target ops, and let the
1466 concrete linux target define them by overriding the ops of
1467 process_stratum_target.
1468
1469 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1470 Remove.
1471 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1472 * linux-low.h (struct linux_target_ops): Remove ops.
1473 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1474 <breakpoint_kind_from_current_state>: Remove.
1475 * linux-x86-low.cc (the_low_target): Remove the op fields.
1476 * linux-bfin-low.cc (the_low_target): Ditto.
1477 * linux-cris-low.cc (the_low_target): Ditto.
1478 * linux-crisv32-low.cc (the_low_target): Ditto.
1479 * linux-m32r-low.cc (the_low_target): Ditto.
1480 * linux-m68k-low.cc (the_low_target): Ditto.
1481 * linux-mips-low.cc (the_low_target): Ditto.
1482 * linux-nios2-low.cc (the_low_target): Ditto.
1483 * linux-ppc-low.cc (the_low_target): Ditto.
1484 * linux-s390-low.cc (the_low_target): Ditto.
1485 * linux-sh-low.cc (the_low_target): Ditto.
1486 * linux-sparc-low.cc (the_low_target): Ditto.
1487 * linux-tic6x-low.cc (the_low_target): Ditto.
1488 * linux-tile-low.cc (the_low_target): Ditto.
1489 * linux-xtensa-low.cc (the_low_target): Ditto.
1490 * linux-aarch64-low.cc (class aarch64_target)
1491 <breakpoint_kind_from_pc>
1492 <breakpoint_kind_from_current_state>: Declare.
1493 (aarch64_breakpoint_kind_from_pc): Turn into...
1494 (aarch64_target::breakpoint_kind_from_pc): ...this.
1495 (aarch64_breakpoint_kind_from_current_state): Turn into...
1496 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1497 (the_low_target): Remove the op fields.
1498 * linux-arm-low.cc (class arm_target):
1499 <breakpoint_kind_from_pc>
1500 <breakpoint_kind_from_current_state>: Declare.
1501 (arm_target::breakpoint_kind_from_pc): Define.
1502 (arm_target::breakpoint_kind_from_current_state): Define.
1503 (the_low_target): Remove the op fields.
1504 * linux-riscv-low.cc (class riscv_target):
1505 <breakpoint_kind_from_pc>: Declare.
1506 (riscv_breakpoint_kind_from_pc): Turn into...
1507 (riscv_target::breakpoint_kind_from_pc): ...this.
1508 (the_low_target): Remove the op fields.
1509
bf9ae9d8
TBA
15102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1511
1512 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1513 of linux_process_target.
1514
1515 * linux-low.h (struct linux_target_ops): Remove the ops.
1516 (class linux_process_target) <low_supports_breakpoints>
1517 <low_get_pc>
1518 <low_set_pc>: Declare.
1519 * linux-low.cc (supports_breakpoints): Turn into...
1520 (linux_process_target::low_supports_breakpoints): ...this.
1521 (linux_process_target::low_get_pc): Define.
1522 (linux_process_target::low_set_pc): Define.
1523
1524 Update the callers below.
1525
1526 (linux_process_target::get_pc)
1527 (linux_process_target::save_stop_reason)
1528 (linux_process_target::maybe_move_out_of_jump_pad)
1529 (linux_process_target::wait_1)
1530 (linux_process_target::resume_one_lwp_throw)
1531 (linux_process_target::resume)
1532 (linux_process_target::proceed_all_lwps)
1533 (linux_process_target::read_pc)
1534 (linux_process_target::write_pc)
1535
1536 * linux-x86-low.cc (class linux_process_target)
1537 <low_supports_breakpoints>
1538 <low_get_pc>
1539 <low_set_pc>: Declare.
1540 (x86_target::low_supports_breakpoints): Define.
1541 (x86_get_pc): Turn into...
1542 (x86_target::low_get_pc): ...this.
1543 (x86_set_pc): Turn into...
1544 (x86_target::low_set_pc): ...this.
1545 (the_low_target): Remove the op fields.
1546 * linux-arm-low.cc (class arm_target)
1547 <low_supports_breakpoints>
1548 <low_get_pc>
1549 <low_set_pc>: Declare.
1550 (arm_target::low_supports_breakpoints)
1551 (arm_target::low_get_pc)
1552 (arm_target::low_set_pc): Define.
1553 (the_low_target): Remove the op fields.
1554 * linux-bfin-low.cc (class bfin_target)
1555 <low_supports_breakpoints>
1556 <low_get_pc>
1557 <low_set_pc>: Declare.
1558 (bfin_target::low_supports_breakpoints)
1559 (bfin_target::low_get_pc)
1560 (bfin_target::low_set_pc): Define.
1561 (the_low_target): Remove the op fields.
1562 * linux-cris-low.cc (class cris_target)
1563 <low_supports_breakpoints>
1564 <low_get_pc>
1565 <low_set_pc>: Declare.
1566 (cris_target::low_supports_breakpoints)
1567 (cris_target::low_get_pc)
1568 (cris_target::low_set_pc): Define.
1569 (the_low_target): Remove the op fields.
1570 * linux-crisv32-low.cc (class crisv32_target)
1571 <low_supports_breakpoints>
1572 <low_get_pc>
1573 <low_set_pc>: Declare.
1574 (crisv32_target::low_supports_breakpoints)
1575 (crisv32_target::low_get_pc)
1576 (crisv32_target::low_set_pc): Define.
1577 (the_low_target): Remove the op fields.
1578 * linux-m32r-low.cc (class m32r_target)
1579 <low_supports_breakpoints>
1580 <low_get_pc>
1581 <low_set_pc>: Declare.
1582 (m32r_target::low_supports_breakpoints)
1583 (m32r_target::low_get_pc)
1584 (m32r_target::low_set_pc): Define.
1585 (the_low_target): Remove the op fields.
1586 * linux-m68k-low.cc (class m68k_target)
1587 <low_supports_breakpoints>
1588 <low_get_pc>
1589 <low_set_pc>: Declare.
1590 (m68k_target::low_supports_breakpoints)
1591 (m68k_target::low_get_pc)
1592 (m68k_target::low_set_pc): Define.
1593 (the_low_target): Remove the op fields.
1594 * linux-nios2-low.cc (class nios2_target)
1595 <low_supports_breakpoints>
1596 <low_get_pc>
1597 <low_set_pc>: Declare.
1598 (nios2_target::low_supports_breakpoints)
1599 (nios2_target::low_get_pc)
1600 (nios2_target::low_set_pc): Define.
1601 (the_low_target): Remove the op fields.
1602 * linux-sh-low.cc (class sh_target)
1603 <low_supports_breakpoints>
1604 <low_get_pc>
1605 <low_set_pc>: Declare.
1606 (sh_target::low_supports_breakpoints)
1607 (sh_target::low_get_pc)
1608 (sh_target::low_set_pc): Define.
1609 (the_low_target): Remove the op fields.
1610 * linux-xtensa-low.cc (class xtensa_target)
1611 <low_supports_breakpoints>
1612 <low_get_pc>
1613 <low_set_pc>: Declare.
1614 (xtensa_target::low_supports_breakpoints)
1615 (xtensa_target::low_get_pc)
1616 (xtensa_target::low_set_pc): Define.
1617 (the_low_target): Remove the op fields.
1618 * linux-sparc-low.cc (class sparc_target)
1619 <low_supports_breakpoints>
1620 <low_get_pc>: Declare.
1621 (sparc_target::low_supports_breakpoints)
1622 (sparc_target::low_get_pc): Define.
1623 (the_low_target): Remove the op fields.
1624 * linux-tile-low.cc (class tile_target)
1625 <low_supports_breakpoints>
1626 <low_get_pc>
1627 <low_set_pc>: Declare.
1628 (tile_target::low_supports_breakpoints)
1629 (tile_target::low_get_pc)
1630 (tile_target::low_set_pc): Define.
1631 (the_low_target): Remove the op fields.
1632 * linux-aarch64-low.cc (class aarch64_target)
1633 <low_supports_breakpoints>
1634 <low_get_pc>
1635 <low_set_pc>: Declare.
1636 (aarch64_target::low_supports_breakpoints): Define.
1637 (aarch64_get_pc): Turn into...
1638 (aarch64_target::low_get_pc): ...this.
1639 (aarch64_set_pc): Turn into...
1640 (aarch64_target::low_set_pc): ...this.
1641 (the_low_target): Remove the op fields.
1642 * linux-mips-low.cc (class mips_target)
1643 <low_supports_breakpoints>
1644 <low_get_pc>
1645 <low_set_pc>: Declare.
1646 (mips_target::low_supports_breakpoints): Define.
1647 (mips_get_pc): Turn into...
1648 (mips_target::low_get_pc): ...this.
1649 (mips_set_pc): Turn into...
1650 (mips_target::low_set_pc): ...this.
1651 (the_low_target): Remove the op fields.
1652 * linux-ppc-low.cc (class ppc_target)
1653 <low_supports_breakpoints>
1654 <low_get_pc>
1655 <low_set_pc>: Declare.
1656 (ppc_target::low_supports_breakpoints): Define.
1657 (ppc_get_pc): Turn into...
1658 (ppc_target::low_get_pc): ...this.
1659 (ppc_set_pc): Turn into...
1660 (ppc_target::low_set_pc): ...this.
1661 (the_low_target): Remove the op fields.
1662 * linux-riscv-low.cc (class riscv_target)
1663 <low_supports_breakpoints>
1664 <low_get_pc>
1665 <low_set_pc>: Declare.
1666 (riscv_target::low_supports_breakpoints): Define.
1667 (riscv_get_pc): Turn into...
1668 (riscv_target::low_get_pc): ...this.
1669 (riscv_set_pc): Turn into...
1670 (riscv_target::low_set_pc): ...this.
1671 (the_low_target): Remove the op fields.
1672 * linux-s390-low.cc (class s390_target)
1673 <low_supports_breakpoints>
1674 <low_get_pc>
1675 <low_set_pc>: Declare.
1676 (s390_target::low_supports_breakpoints): Define.
1677 (s390_get_pc): Turn into...
1678 (s390_target::low_get_pc): ...this.
1679 (s390_set_pc): Turn into...
1680 (s390_target::low_set_pc): ...this.
1681 (the_low_target): Remove the op fields.
1682 * linux-tic6x-low.cc (class tic6x_target)
1683 <low_supports_breakpoints>
1684 <low_get_pc>
1685 <low_set_pc>: Declare.
1686 (tic6x_target::low_supports_breakpoints): Define.
1687 (tic6x_get_pc): Turn into...
1688 (tic6x_target::low_get_pc): ...this.
1689 (tic6x_set_pc): Turn into...
1690 (tic6x_target::low_set_pc): ...this.
1691 (the_low_target): Remove the op fields.
1692
df95181f
TBA
16932020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1694
1695 Turn some more static methods in linux-low into private methods
1696 of linux_process_target.
1697
1698 * linux-low.cc (get_pc): Turn into...
1699 (linux_process_target::get_pc): ...this.
1700 (save_stop_reason): Turn into...
1701 (linux_process_target::save_stop_reason): ...this.
1702 (thread_still_has_status_pending_p): Turn into...
1703 (linux_process_target::thread_still_has_status_pending): ...this.
1704 (status_pending_p_callback): Turn into...
1705 (linux_process_target::status_pending_p_callback): ...this.
1706 (resume_stopped_resumed_lwps): Turn into...
1707 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1708 (install_software_single_step_breakpoints): Turn into...
1709 (linux_process_target::install_software_single_step_breakpoints):
1710 ...this.
1711 (single_step): Turn into...
1712 (linux_process_target::single_step): ...this.
1713 (linux_resume_one_lwp_throw): Turn into...
1714 (linux_process_target::resume_one_lwp_throw): ...this.
1715 (linux_resume_one_lwp): Turn into...
1716 (linux_process_target::resume_one_lwp): ...this.
1717 (resume_status_pending_p): Turn into...
1718 (linux_process_target::resume_status_pending): ...this.
1719 (need_step_over_p): Turn into...
1720 (linux_process_target::thread_needs_step_over): ...this.
1721 (linux_resume_one_thread): Turn into...
1722 (linux_process_target::resume_one_thread): ...this.
1723 (proceed_one_lwp): Turn into...
1724 (linux_process_target::proceed_one_lwp): ...this.
1725 (unsuspend_and_proceed_one_lwp): Turn into...
1726 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1727
1728 Update the calls/references to the above functions below.
1729
1730 (linux_process_target::handle_extended_wait)
1731 (linux_process_target::filter_event)
1732 (linux_process_target::wait_for_event_filtered)
1733 (linux_process_target::wait_1)
1734 (linux_process_target::move_out_of_jump_pad)
1735 (linux_process_target::start_step_over)
1736 (linux_process_target::resume)
1737 (linux_process_target::proceed_all_lwps)
1738 (regsets_store_inferior_registers)
1739 (linux_process_target::store_register)
1740
1741 * linux-low.h (class linux_process_target)
1742 <get_pc>
1743 <save_stop_reason>
1744 <thread_still_has_status_pending>
1745 <status_pending_p_callback>
1746 <resume_stopped_resumed_lwps>
1747 <install_software_single_step_breakpoints>
1748 <single_step>
1749 <resume_one_lwp_throw>
1750 <resume_one_lwp>
1751 <resume_status_pending>
1752 <thread_needs_step_over>
1753 <resume_one_thread>
1754 <proceed_one_lwp>
1755 <unsuspend_and_proceed_one_lwp>: Declare.
1756
bd70b1f2
TBA
17572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1758
1759 Turn the 'fetch_register' linux target op into a method of
1760 linux_process_target.
1761
1762 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1763 (class linux_process_target) <low_fetch_register>: Declare.
1764 * linux-x86-low.cc (the_low_target)
1765 * linux-aarch64-low.cc (the_low_target)
1766 * linux-arm-low.cc (the_low_target)
1767 * linux-bfin-low.cc (the_low_target)
1768 * linux-cris-low.cc (the_low_target)
1769 * linux-crisv32-low.cc (the_low_target)
1770 * linux-m32r-low.cc (the_low_target)
1771 * linux-m68k-low.cc (the_low_target)
1772 * linux-nios2-low.cc (the_low_target)
1773 * linux-ppc-low.cc (the_low_target)
1774 * linux-s390-low.cc (the_low_target)
1775 * linux-sh-low.cc (the_low_target)
1776 * linux-sparc-low.cc (the_low_target)
1777 * linux-tic6x-low.cc (the_low_target)
1778 * linux-tile-low.cc (the_low_target)
1779 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1780 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1781 Declare.
1782 (ia64_fetch_register): Turn into...
1783 (ia64_target::low_fetch_register): ...this.
1784 (the_low_target): Remove the op field.
1785 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1786 Declare.
1787 (mips_fetch_register): Turn into...
1788 (mips_target::low_fetch_register): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1791 Declare.
1792 (riscv_fetch_register): Turn into...
1793 (riscv_target::low_fetch_register): ...this.
1794 (the_low_target): Remove the op field.
1795
1796 Update the callers below.
1797
1798 * linux-low.cc (linux_process_target::fetch_registers)
1799 (linux_process_target::low_fetch_register)
1800
daca57a7
TBA
18012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1802
1803 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1804 linux target ops into methods of linux_process_target.
1805
1806 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1807 (class linux_process_target) <fetch_register>
1808 <store_register>
1809 <usr_fetch_inferior_registers>
1810 <usr_store_inferior_registers>
1811 <low_cannot_fetch_register>
1812 <low_cannot_fetch_register> Declare.
1813 * linux-low.cc (fetch_register): Turn into...
1814 (linux_process_target::fetch_register): ...this.
1815 (store_register): Turn into ...
1816 (linux_process_target::store_register): ...this.
1817 (usr_fetch_inferior_registers): Turn into...
1818 (linux_process_target::usr_fetch_inferior_registers): ...this.
1819 (usr_store_inferior_registers): Turn into...
1820 (linux_process_target::usr_store_inferior_registers): ...this.
1821 * linux-x86-low.cc (class x86_target)
1822 <low_cannot_fetch_register>
1823 <low_cannot_store_register>: Declare.
1824 (x86_cannot_store_register): Turn into...
1825 (x86_target::low_cannot_store_register): ...this.
1826 (x86_cannot_fetch_register): Turn into...
1827 (x86_target::low_cannot_fetch_register): ...this.
1828 (the_low_target): Remove the target op fields.
1829 * linux-aarch64-low.cc (class aarch64_target)
1830 <low_cannot_fetch_register>
1831 <low_cannot_store_register>: Declare.
1832 (aarch64_target::low_cannot_fetch_register)
1833 (aarch64_target::low_cannot_store_register): Define.
1834 (the_low_target): Remove the op fields.
1835 * linux-arm-low.cc (class arm_target)
1836 <low_cannot_fetch_register>
1837 <low_cannot_store_register>: Declare.
1838 (arm_cannot_fetch_register): Turn into...
1839 (arm_target::low_cannot_fetch_register): ...this.
1840 (arm_cannot_store_register): Turn into...
1841 (arm_target::low_cannot_store_register): ...this.
1842 (the_low_target): Remove the op fields.
1843 * linux-bfin-low.cc (class bfin_target)
1844 <low_cannot_fetch_register>
1845 <low_cannot_store_register>: Declare.
1846 (bfin_cannot_fetch_register): Turn into...
1847 (bfin_target::low_cannot_fetch_register): ...this.
1848 (bfin_cannot_store_register): Turn into...
1849 (bfin_target::low_cannot_store_register): ...this.
1850 (the_low_target): Remove the op fields.
1851 * linux-cris-low.cc (class cris_target)
1852 <low_cannot_fetch_register>
1853 <low_cannot_store_register>: Declare.
1854 (cris_cannot_fetch_register): Turn into...
1855 (cris_target::low_cannot_fetch_register): ...this.
1856 (cris_cannot_store_register): Turn into...
1857 (cris_target::low_cannot_store_register): ...this.
1858 (the_low_target): Remove the op fields.
1859 * linux-crisv32-low.cc (class crisv32_target)
1860 <low_cannot_fetch_register>
1861 <low_cannot_store_register>: Declare.
1862 (crisv32_target::low_cannot_fetch_register)
1863 (crisv32_target::low_cannot_store_register): Define.
1864 (the_low_target): Remove the op fields.
1865 * linux-ia64-low.cc (class ia64_target)
1866 <low_cannot_fetch_register>
1867 <low_cannot_store_register>: Declare.
1868 (ia64_cannot_fetch_register): Turn into...
1869 (ia64_target::low_cannot_fetch_register): ...this.
1870 (ia64_cannot_store_register): Turn into...
1871 (ia64_target::low_cannot_store_register): ...this.
1872 (the_low_target): Remove the op fields.
1873 * linux-m32r-low.cc (class m32r_target)
1874 <low_cannot_fetch_register>
1875 <low_cannot_store_register>: Declare.
1876 (m32r_cannot_fetch_register): Turn into...
1877 (m32r_target::low_cannot_fetch_register): ...this.
1878 (m32r_cannot_store_register): Turn into...
1879 (m32r_target::low_cannot_store_register): ...this.
1880 (the_low_target): Remove the op fields.
1881 * linux-m68k-low.cc (class m68k_target)
1882 <low_cannot_fetch_register>
1883 <low_cannot_store_register>: Declare.
1884 (m68k_cannot_fetch_register): Turn into...
1885 (m68k_target::low_cannot_fetch_register): ...this.
1886 (m68k_cannot_store_register): Turn into...
1887 (m68k_target::low_cannot_store_register): ...this.
1888 (the_low_target): Remove the op fields.
1889 * linux-mips-low.cc (class mips_target)
1890 <low_cannot_fetch_register>
1891 <low_cannot_store_register>: Declare.
1892 (mips_cannot_fetch_register): Turn into...
1893 (mips_target::low_cannot_fetch_register): ...this.
1894 (mips_cannot_store_register): Turn into...
1895 (mips_target::low_cannot_store_register): ...this.
1896 (get_usrregs_info): Inline at the call sites in
1897 low_cannot_fetch_register and low_cannot_store_register,
1898 and remove.
1899 (the_low_target): Remove the op fields.
1900 * linux-nios2-low.cc (class nios2_target)
1901 <low_cannot_fetch_register>
1902 <low_cannot_store_register>: Declare.
1903 (nios2_cannot_fetch_register): Turn into...
1904 (nios2_target::low_cannot_fetch_register): ...this.
1905 (nios2_cannot_store_register): Turn into...
1906 (nios2_target::low_cannot_store_register): ...this.
1907 (the_low_target): Remove the op fields.
1908 * linux-ppc-low.cc (class ppc_target)
1909 <low_cannot_fetch_register>
1910 <low_cannot_store_register>: Declare.
1911 (ppc_cannot_fetch_register): Turn into...
1912 (ppc_target::low_cannot_fetch_register): ...this.
1913 (ppc_cannot_store_register): Turn into...
1914 (ppc_target::low_cannot_store_register): ...this.
1915 (the_low_target): Remove the op fields.
1916 * linux-riscv-low.cc (class riscv_target)
1917 <low_cannot_fetch_register>
1918 <low_cannot_store_register>: Declare.
1919 (riscv_target::low_cannot_fetch_register)
1920 (riscv_target::low_cannot_store_register): Define.
1921 (the_low_target): Remove the op fields.
1922 * linux-s390-low.cc (class s390_target)
1923 <low_cannot_fetch_register>
1924 <low_cannot_store_register>: Declare.
1925 (s390_cannot_fetch_register): Turn into...
1926 (s390_target::low_cannot_fetch_register): ...this.
1927 (s390_cannot_store_register): Turn into...
1928 (s390_target::low_cannot_store_register): ...this.
1929 (the_low_target): Remove the op fields.
1930 * linux-sh-low.cc (class sh_target)
1931 <low_cannot_fetch_register>
1932 <low_cannot_store_register>: Declare.
1933 (sh_cannot_fetch_register): Turn into...
1934 (sh_target::low_cannot_fetch_register): ...this.
1935 (sh_cannot_store_register): Turn into...
1936 (sh_target::low_cannot_store_register): ...this.
1937 (the_low_target): Remove the op fields.
1938 * linux-sparc-low.cc (class sparc_target)
1939 <low_cannot_fetch_register>
1940 <low_cannot_store_register>: Declare.
1941 (sparc_cannot_fetch_register): Turn into...
1942 (sparc_target::low_cannot_fetch_register): ...this.
1943 (sparc_cannot_store_register): Turn into...
1944 (sparc_target::low_cannot_store_register): ...this.
1945 (the_low_target): Remove the op fields.
1946 * linux-tic6x-low.cc (class tic6x_target)
1947 <low_cannot_fetch_register>
1948 <low_cannot_store_register>: Declare.
1949 (tic6x_cannot_fetch_register): Turn into...
1950 (tic6x_target::low_cannot_fetch_register): ...this.
1951 (tic6x_cannot_store_register): Turn into...
1952 (tic6x_target::low_cannot_store_register): ...this.
1953 (the_low_target): Remove the op fields.
1954 * linux-tile-low.cc (class tile_target)
1955 <low_cannot_fetch_register>
1956 <low_cannot_store_register>: Declare.
1957 (tile_cannot_fetch_register): Turn into...
1958 (tile_target::low_cannot_fetch_register): ...this.
1959 (tile_cannot_store_register): Turn into...
1960 (tile_target::low_cannot_store_register): ...this.
1961 (the_low_target): Remove the op fields.
1962 * linux-xtensa-low.cc (class xtensa_target)
1963 <low_cannot_fetch_register>
1964 <low_cannot_store_register>: Declare.
1965 (xtensa_target::low_cannot_fetch_register)
1966 (xtensa_target::low_cannot_store_register): Define.
1967 (the_low_target): Remove the op fields.
1968
aa8d21c9
TBA
19692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1970
1971 Turn the 'regs_info' linux target op into a method of
1972 linux_process_target.
1973
1974 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1975 (class linux_process_target) <get_regs_info>: Define.
1976
1977 Update the callers below.
1978
1979 * linux-low.cc (linux_process_target::fetch_registers)
1980 (linux_process_target::store_registers)
1981 * proc-service.cc (gregset_info)
1982
1983 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1984 (x86_linux_regs_info): Turn into ...
1985 (x86_target::get_regs_info): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1988 Declare.
1989 (aarch64_regs_info): Turn into ...
1990 (aarch64_target::get_regs_info): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1993 (arm_regs_info): Turn into ...
1994 (arm_target::get_regs_info): ...this.
1995 (the_low_target): Remove the op field.
1996 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1997 (bfin_regs_info): Turn into ...
1998 (bfin_target::get_regs_info): ...this.
1999 (the_low_target): Remove the op field.
2000 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2001 (cris_regs_info): Turn into ...
2002 (cris_target::get_regs_info): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2005 Declare.
2006 (crisv32_regs_info): Turn into ...
2007 (crisv32_target::get_regs_info): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2010 (ia64_regs_info): Turn into ...
2011 (ia64_target::get_regs_info): ...this.
2012 (the_low_target): Remove the op field.
2013 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2014 (m32r_regs_info): Turn into ...
2015 (m32r_target::get_regs_info): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2018 (m68k_regs_info): Turn into ...
2019 (m68k_target::get_regs_info): ...this.
2020 (the_low_target): Remove the op field.
2021 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2022 (mips_regs_info): Turn into ...
2023 (mips_target::get_regs_info): ...this.
2024 (the_low_target): Remove the op field.
2025 (get_usrregs_info): Update the call to the op.
2026 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2027 (nios2_regs_info): Turn into ...
2028 (nios2_target::get_regs_info): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2031 (ppc_regs_info): Turn into ...
2032 (ppc_target::get_regs_info): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2035 (riscv_regs_info): Turn into ...
2036 (riscv_target::get_regs_info): ...this.
2037 (the_low_target): Remove the op field.
2038 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2039 (s390_regs_info): Turn into ...
2040 (s390_target::get_regs_info): ...this.
2041 (the_low_target): Remove the op field.
2042 (s390_collect_ptrace_register)
2043 (s390_supply_ptrace_register)
2044 (s390_fill_gregset): Update the call to the op.
2045 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2046 (sh_regs_info): Turn into ...
2047 (sh_target::get_regs_info): ...this.
2048 (the_low_target): Remove the op field.
2049 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2050 (sparc_regs_info): Turn into ...
2051 (sparc_target::get_regs_info): ...this.
2052 (the_low_target): Remove the op field.
2053 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2054 (tic6x_regs_info): Turn into ...
2055 (tic6x_target::get_regs_info): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2058 (tile_regs_info): Turn into ...
2059 (tile_target::get_regs_info): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2062 Declare.
2063 (xtensa_regs_info): Turn into ...
2064 (xtensa_target::get_regs_info): ...this.
2065 (the_low_target): Remove the op field.
2066
797bcff5
TBA
20672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2068
2069 Turn the 'arch_setup' linux target op into a method of
2070 linux_process_target.
2071
2072 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2073 (class linux_process_target) <arch_setup_thread>
2074 <low_arch_setup>: New declarations.
2075 * linux-low.cc (linux_arch_setup): Delete.
2076 (linux_arch_setup_thread): Turn into...
2077 (linux_process_target::arch_setup_thread): ... this.
2078
2079 Update the callers below.
2080
2081 (linux_process_target::handle_extended_wait)
2082 (linux_process_target::post_create_inferior)
2083 (linux_process_target::filter_event)
2084
2085 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2086 declaration.
2087 (x86_linux_update_xmltarget): Turn into...
2088 (x86_target::update_xmltarget): ...this.
2089 (x86_linux_process_qsupported): Update the call to
2090 x86_linux_update_xmltarget.
2091 (x86_arch_setup): Turn into ...
2092 (x86_target::low_arch_setup): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2095 declaration.
2096 (aarch64_arch_setup): Turn into ...
2097 (aarch64_target::low_arch_setup): ...this.
2098 (the_low_target): Remove the op field.
2099 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2100 declaration.
2101 (arm_arch_setup): Turn into ...
2102 (arm_target::low_arch_setup): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2105 declaration.
2106 (bfin_arch_setup): Turn into ...
2107 (bfin_target::low_arch_setup): ...this.
2108 (the_low_target): Remove the op field.
2109 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2110 declaration.
2111 (cris_arch_setup): Turn into ...
2112 (cris_target::low_arch_setup): ...this.
2113 (the_low_target): Remove the op field.
2114 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2115 declaration.
2116 (crisv32_arch_setup): Turn into ...
2117 (crisv32_target::low_arch_setup): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2120 declaration.
2121 (ia64_arch_setup): Turn into ...
2122 (ia64_target::low_arch_setup): ...this.
2123 (the_low_target): Remove the op field.
2124 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2125 declaration.
2126 (m32r_arch_setup): Turn into ...
2127 (m32r_target::low_arch_setup): ...this.
2128 (the_low_target): Remove the op field.
2129 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2130 declaration.
2131 (m68k_arch_setup): Turn into ...
2132 (m68k_target::low_arch_setup): ...this.
2133 (the_low_target): Remove the op field.
2134 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2135 declaration.
2136 (mips_arch_setup): Turn into ...
2137 (mips_target::low_arch_setup): ...this.
2138 (the_low_target): Remove the op field.
2139 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2140 declaration.
2141 (nios2_arch_setup): Turn into ...
2142 (nios2_target::low_arch_setup): ...this.
2143 (the_low_target): Remove the op field.
2144 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2145 declaration.
2146 (ppc_arch_setup): Turn into ...
2147 (ppc_target::low_arch_setup): ...this.
2148 (the_low_target): Remove the op field.
2149 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2150 declaration.
2151 (riscv_arch_setup): Turn into ...
2152 (riscv_target::low_arch_setup): ...this.
2153 (the_low_target): Remove the op field.
2154 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2155 declaration.
2156 (s390_arch_setup): Turn into ...
2157 (s390_target::low_arch_setup): ...this.
2158 (the_low_target): Remove the op field.
2159 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2160 declaration.
2161 (sh_arch_setup): Turn into ...
2162 (sh_target::low_arch_setup): ...this.
2163 (the_low_target): Remove the op field.
2164 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2165 declaration.
2166 (sparc_arch_setup): Turn into ...
2167 (sparc_target::low_arch_setup): ...this.
2168 (the_low_target): Remove the op field.
2169 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2170 declaration.
2171 (tic6x_arch_setup): Turn into ...
2172 (tic6x_target::low_arch_setup): ...this.
2173 (the_low_target): Remove the op field.
2174 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2175 declaration.
2176 (tile_arch_setup): Turn into ...
2177 (tile_target::low_arch_setup): ...this.
2178 (the_low_target): Remove the op field.
2179 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2180 declaration.
2181 (xtensa_arch_setup): Turn into ...
2182 (xtensa_target::low_arch_setup): ...this.
2183 (the_low_target): Remove the op field.
2184
ef0478f6
TBA
21852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2186
2187 * linux-low.h (the_linux_target): New extern declaration.
2188 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2189 'the_target'.
2190 (the_linux_target): Remove.
2191 * linux-x86-low.cc (class x86_target): New class.
2192 (the_x86_target): New static object.
2193 (the_linux_target): Define as pointer to the_x86_target.
2194 * linux-aarch64-low.cc (class aarch64_target): New class.
2195 (the_aarch64_target): New static object.
2196 (the_linux_target): Define as pointer to the_aarch64_target.
2197 * linux-arm-low.cc (class arm_target): New class.
2198 (the_arm_target): New static object.
2199 (the_linux_target): Define as pointer to the_arm_target.
2200 * linux-bfin-low.cc (class bfin_target): New class.
2201 (the_bfin_target): New static object.
2202 (the_linux_target): Define as pointer to the_bfin_target.
2203 * linux-cris-low.cc (class cris_target): New class.
2204 (the_cris_target): New static object.
2205 (the_linux_target): Define as pointer to the_cris_target.
2206 * linux-crisv32-low.cc (class crisv32_target): New class.
2207 (the_crisv32_target): New static object.
2208 (the_linux_target): Define as pointer to the_crisv32_target.
2209 * linux-ia64-low.cc (class ia64_target): New class.
2210 (the_ia64_target): New static object.
2211 (the_linux_target): Define as pointer to the_ia64_target.
2212 * linux-m32r-low.cc (class m32r_target): New class.
2213 (the_m32r_target): New static object.
2214 (the_linux_target): Define as pointer to the_m32r_target.
2215 * linux-m68k-low.cc (class m68k_target): New class.
2216 (the_m68k_target): New static object.
2217 (the_linux_target): Define as pointer to the_m68k_target.
2218 * linux-mips-low.cc (class mips_target): New class.
2219 (the_mips_target): New static object.
2220 (the_linux_target): Define as pointer to the_mips_target.
2221 * linux-nios2-low.cc (class nios2_target): New class.
2222 (the_nios2_target): New static object.
2223 (the_linux_target): Define as pointer to the_nios2_target.
2224 * linux-ppc-low.cc (class ppc_target): New class.
2225 (the_ppc_target): New static object.
2226 (the_linux_target): Define as pointer to the_ppc_target.
2227 * linux-riscv-low.cc (class riscv_target): New class.
2228 (the_riscv_target): New static object.
2229 (the_linux_target): Define as pointer to the_riscv_target.
2230 * linux-s390-low.cc (class s390_target): New class.
2231 (the_s390_target): New static object.
2232 (the_linux_target): Define as pointer to the_s390_target.
2233 * linux-sh-low.cc (class sh_target): New class.
2234 (the_sh_target): New static object.
2235 (the_linux_target): Define as pointer to the_sh_target.
2236 * linux-sparc-low.cc (class sparc_target): New class.
2237 (the_sparc_target): New static object.
2238 (the_linux_target): Define as pointer to the_sparc_target.
2239 * linux-tic6x-low.cc (class tic6x_target): New class.
2240 (the_tic6x_target): New static object.
2241 (the_linux_target): Define as pointer to the_tic6x_target.
2242 * linux-tile-low.cc (class tile_target): New class.
2243 (the_tile_target): New static object.
2244 (the_linux_target): Define as pointer to the_tile_target.
2245 * linux-xtensa-low.cc (class xtensa_target): New class.
2246 (the_xtensa_target): New static object.
2247 (the_linux_target): Define as pointer to the_xtensa_target.
2248
d16f3f6c
TBA
22492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2250
2251 Turn some static functions in linux-low.cc into private methods of
2252 linux_process_target.
2253
2254 * linux-low.cc (handle_extended_wait): Turn into ...
2255 (linux_process_target::handle_extended_wait): ...this. Call
2256 'mourn' on 'this' object instead of 'the_target'.
2257 (maybe_move_out_of_jump_pad): Turn into...
2258 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2259 (linux_low_filter_event): Turn into...
2260 (linux_process_target::filter_event): ...this.
2261 (linux_wait_for_event_filtered): Turn into...
2262 (linux_process_target::wait_for_event_filtered): ...this.
2263 (linux_wait_for_event): Turn into...
2264 (linux_process_target::wait_for_event): ...this.
2265 (linux_wait_1): Turn into...
2266 (linux_process_target::wait_1): ...this.
2267 (wait_for_sigstop): Turn into...
2268 (linux_process_target::wait_for_sigstop): ...this.
2269 (move_out_of_jump_pad_callback): Turn into...
2270 (linux_process_target::move_out_of_jump_pad): ...this.
2271 (stop_all_lwps): Turn into...
2272 (linux_process_target::stop_all_lwps): ...this.
2273 (start_step_over): Turn into...
2274 (linux_process_target::start_step_over): ...this.
2275 (complete_ongoing_step_over): Turn into...
2276 (linux_process_target::complete_ongoing_step_over): ...this.
2277 (proceed_all_lwps): Turn into...
2278 (linux_process_target::proceed_all_lwps): ...this.
2279 (unstop_all_lwps): Turn into...
2280 (linux_process_target::unstop_all_lwps): ...this.
2281
2282 * linux-low.h (class linux_process_target)
2283 <handle_extended_wait>
2284 <maybe_move_out_of_jump_pad>
2285 filter_event>
2286 <wait_for_event_filtered>
2287 <wait_for_event>
2288 <wait_1>
2289 <wait_for_sigstop>
2290 <move_out_of_jump_pad>
2291 <stop_all_lwps>
2292 <start_step_over>
2293 <complete_ongoing_step_over>
2294 <proceed_all_lwps>
2295 <unstop_all_lwps>: Declare.
2296
2297 Update the callers below.
2298
2299 * linux-low.cc (linux_process_target::attach): Update.
2300 (linux_process_target::stabilize_threads): Ditto.
2301 (linux_process_target::wait): Ditto.
2302
a5863204
TBA
23032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2304
2305 * linux-low.h (struct linux_target_ops): Update the comment for
2306 'cannot_store_register' to return 0 or 1.
2307 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2308 of 2.
2309
c884cc46
SM
23102020-03-20 Simon Marchi <simon.marchi@efficios.com>
2311
2312 * config.in: Re-generate.
2313 * configure: Re-generate.
2314
5a82b8a1
KR
23152020-03-17 Kamil Rytarowski <n54@gmx.com>
2316
2317 * regcache.cc (find_register_by_number): Update.
2318 * tdesc.cc (init_target_desc): Likewise.
2319 * tdesc.h (target_desc::reg_defs): Likewise.
2320
4635ff97
TT
23212020-03-12 Tom Tromey <tom@tromey.com>
2322
2323 * configure: Rebuild.
2324 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2325 (WIN32APILIBS): New subst.
2326 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2327 gdbsupport files.
2328 (gdbsupport/%.o): Remove target.
2329 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2330 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2331 (WIN32APILIBS): New variable.
2332 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2333 (gdbreplay$(EXEEXT)): Likewise.
2334
9a665d62
TT
23352020-03-12 Tom Tromey <tom@tromey.com>
2336
2337 * config.in, configure: Rebuild.
2338 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2339 * acinclude.m4: Include gettext-sister.m4.
2340 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2341 variables.
2342 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2343 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2344
272cd5a3
SM
23452020-03-12 Simon Marchi <simon.marchi@efficios.com>
2346
2347 * acinclude.m4: Update path to selftest.m4.
2348
db6878ac
SM
23492020-03-12 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * configure.ac: Don't source bfd/development.sh, move
2352 GDB_AC_COMMON higher.
2353 * configure: Re-generate.
2354
4d696a5c
SM
23552020-03-12 Simon Marchi <simon.marchi@efficios.com>
2356
2357 * configure: Re-generate.
2358
a0761e34
SM
23592020-03-11 Simon Marchi <simon.marchi@efficios.com>
2360
2361 * configure: Re-generate.
2362
20ea4a60
AB
23632020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 * .dir-locals.el: New file.
2366
842806cb
TBA
23672020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2368
2369 * .gitattributes: New file.
2370
442131c1
AB
23712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2372
2373 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2374 reply into an S reply.
2375 * server.cc (disable_packet_T): New global.
2376 (captured_main): Set new global when appropriate.
2377 * server.h (disable_packet_T): Declare.
2378
dda42c0b
TT
23792020-02-21 Tom Tromey <tom@tromey.com>
2380
2381 * Makefile.in (mostlyclean): New target.
2382
52405d85
TBA
23832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2384
2385 * target.h (struct process_stratum_target): Remove.
2386 (class process_target): Rename to ...
2387 (class process_stratum_target): ... this.
2388 * linux-low.h (class linux_process_target): Derive from
2389 'process_stratum_target'.
2390 * linux-low.cc (linux_target_ops): Remove.
2391 (initialize_low): Set the_target to the singleton instance of
2392 linux_process_target.
2393 * lynx-low.h (class lynx_process_target): Derive from
2394 'process_stratum_target'.
2395 * lynx-low.cc (lynx_target_ops): Remove.
2396 (initialize_low): Set the_target to the singleton instance of
2397 lynx_process_target.
2398 * nto-low.h (class nto_process_target): Derive from
2399 'process_stratum_target'.
2400 * nto-low.cc (nto_target_ops): Remove.
2401 (initialize_low): Set the_target to the singleton instance of
2402 nto_process_target.
2403 * win32-low.h (class win32_process_target): Derive from
2404 'process_stratum_target'.
2405 * win32-low.cc (win32_target_ops): Remove.
2406 (initialize_low): Set the_target to the singleton instance of
2407 win32_process_target.
2408
2409 Replace 'the_target->pt' with 'the_target' in the uses below.
2410
2411 * hostio.cc (hostio_error)
2412 (handle_setfs)
2413 (handle_open)
2414 (handle_unlink)
2415 (handle_readlink)
2416 * linux-aarch32-low.cc (arm_breakpoint_at)
2417 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2418 * linux-arm-low.cc (arm_sigreturn_next_pc)
2419 (arm_get_hwcap)
2420 (arm_get_syscall_trapinfo)
2421 * linux-cris-low.cc (cris_breakpoint_at)
2422 * linux-crisv32-low.cc (cris_breakpoint_at)
2423 * linux-low.cc (handle_extended_wait)
2424 (linux_wait_1)
2425 (linux_read_memory)
2426 (linux_process_target::breakpoint_kind_from_pc)
2427 (linux_get_auxv)
2428 * linux-m32r-low.cc (m32r_breakpoint_at)
2429 * linux-mips-low.cc (mips_breakpoint_at)
2430 * linux-nios2-low.cc (nios2_breakpoint_at)
2431 * linux-ppc-low.cc (ppc_breakpoint_at)
2432 * linux-s390-low.cc (s390_get_hwcap)
2433 * linux-sh-low.cc (sh_breakpoint_at)
2434 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2435 (sparc_store_gregset_from_stack)
2436 (sparc_breakpoint_at)
2437 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2438 * linux-tile-low.cc (tile_breakpoint_at)
2439 * linux-x86-low.cc (x86_breakpoint_at)
2440 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2441 * mem-break.cc (bp_size)
2442 (bp_opcode)
2443 (insert_memory_breakpoint)
2444 (set_raw_breakpoint_at)
2445 (delete_raw_breakpoint)
2446 (z_type_supported)
2447 (uninsert_raw_breakpoint)
2448 (reinsert_raw_breakpoint)
2449 (validate_inserted_breakpoint)
2450 * regcache.cc (regcache_read_pc)
2451 (regcache_write_pc)
2452 * remote-utils.cc (putpkt_binary_1)
2453 (input_interrupt)
2454 (getpkt)
2455 (prepare_resume_reply)
2456 * server.cc (handle_general_set)
2457 (handle_detach)
2458 (handle_qxfer_auxv)
2459 (handle_qxfer_exec_file)
2460 (handle_qxfer_libraries_svr4)
2461 (handle_qxfer_osdata)
2462 (handle_qxfer_siginfo)
2463 (handle_qxfer_fdpic)
2464 (handle_query)
2465 (resume)
2466 (handle_v_requests)
2467 (queue_stop_reply_callback)
2468 (captured_main)
2469 * target.cc (prepare_to_access_memory)
2470 (done_accessing_memory)
2471 (read_inferior_memory)
2472 (target_write_memory)
2473 (target_stop_and_wait)
2474 (target_wait)
2475 (target_mourn_inferior)
2476 (target_continue_no_signal)
2477 (target_continue)
2478 (target_supports_multi_process)
2479 (kill_inferior)
2480 * target.h
2481 (target_create_inferior)
2482 (target_post_create_inferior)
2483 (myattach)
2484 (target_supports_fork_events)
2485 (target_supports_vfork_events)
2486 (target_supports_exec_events)
2487 (target_handle_new_gdb_connection)
2488 (detach_inferior)
2489 (mythread_alive)
2490 (fetch_inferior_registers)
2491 (store_inferior_registers)
2492 (join_inferior)
2493 (target_supports_non_stop)
2494 (target_async)
2495 (target_process_qsupported)
2496 (target_supports_catch_syscall)
2497 (target_get_ipa_tdesc_idx)
2498 (target_supports_tracepoints)
2499 (target_supports_fast_tracepoints)
2500 (target_get_min_fast_tracepoint_insn_len)
2501 (target_thread_stopped)
2502 (target_pause_all)
2503 (target_unpause_all)
2504 (target_stabilize_threads)
2505 (target_install_fast_tracepoint_jump_pad)
2506 (target_emit_ops)
2507 (target_supports_disable_randomization)
2508 (target_supports_agent)
2509 (target_enable_btrace)
2510 (target_disable_btrace)
2511 (target_read_btrace)
2512 (target_read_btrace_conf)
2513 (target_supports_range_stepping)
2514 (target_supports_stopped_by_sw_breakpoint)
2515 (target_stopped_by_sw_breakpoint)
2516 (target_supports_stopped_by_hw_breakpoint)
2517 (target_supports_hardware_single_step)
2518 (target_stopped_by_hw_breakpoint)
2519 (target_breakpoint_kind_from_pc)
2520 (target_breakpoint_kind_from_current_state)
2521 (target_supports_software_single_step)
2522 (target_core_of_thread)
2523 (target_thread_name)
2524 (target_thread_handle)
2525 * win32-low.cc (do_initial_child_stuff)
2526
2527 Rename target op default definitions listed below.
2528
2529 * target.cc (process_target::post_create_inferior): Rename as ...
2530 (process_stratum_target::post_create_inferior): ... this.
2531 (process_target::prepare_to_access_memory): Rename as ...
2532 (process_stratum_target::prepare_to_access_memory): ... this.
2533 (process_target::done_accessing_memory): Rename as ...
2534 (process_stratum_target::done_accessing_memory): ... this.
2535 (process_target::look_up_symbols): Rename as ...
2536 (process_stratum_target::look_up_symbols): ... this.
2537 (process_target::supports_read_auxv): Rename as ...
2538 (process_stratum_target::supports_read_auxv): ... this.
2539 (process_target::read_auxv): Rename as ...
2540 (process_stratum_target::read_auxv): ... this.
2541 (process_target::supports_z_point_type): Rename as ...
2542 (process_stratum_target::supports_z_point_type): ... this.
2543 (process_target::insert_point): Rename as ...
2544 (process_stratum_target::insert_point): ... this.
2545 (process_target::remove_point): Rename as ...
2546 (process_stratum_target::remove_point): ... this.
2547 (process_target::stopped_by_sw_breakpoint): Rename as ...
2548 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2549 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2550 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2551 (process_target::stopped_by_hw_breakpoint): Rename as ...
2552 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2553 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2554 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2555 (process_target::supports_hardware_single_step): Rename as ...
2556 (process_stratum_target::supports_hardware_single_step): ... this.
2557 (process_target::stopped_by_watchpoint): Rename as ...
2558 (process_stratum_target::stopped_by_watchpoint): ... this.
2559 (process_target::stopped_data_address): Rename as ...
2560 (process_stratum_target::stopped_data_address): ... this.
2561 (process_target::supports_read_offsets): Rename as ...
2562 (process_stratum_target::supports_read_offsets): ... this.
2563 (process_target::read_offsets): Rename as ...
2564 (process_stratum_target::read_offsets): ... this.
2565 (process_target::supports_get_tls_address): Rename as ...
2566 (process_stratum_target::supports_get_tls_address): ... this.
2567 (process_target::get_tls_address): Rename as ...
2568 (process_stratum_target::get_tls_address): ... this.
2569 (process_target::hostio_last_error): Rename as ...
2570 (process_stratum_target::hostio_last_error): ... this.
2571 (process_target::supports_qxfer_osdata): Rename as ...
2572 (process_stratum_target::supports_qxfer_osdata): ... this.
2573 (process_target::qxfer_osdata): Rename as ...
2574 (process_stratum_target::qxfer_osdata): ... this.
2575 (process_target::supports_qxfer_siginfo): Rename as ...
2576 (process_stratum_target::supports_qxfer_siginfo): ... this.
2577 (process_target::qxfer_siginfo): Rename as ...
2578 (process_stratum_target::qxfer_siginfo): ... this.
2579 (process_target::supports_non_stop): Rename as ...
2580 (process_stratum_target::supports_non_stop): ... this.
2581 (process_target::async): Rename as ...
2582 (process_stratum_target::async): ... this.
2583 (process_target::start_non_stop): Rename as ...
2584 (process_stratum_target::start_non_stop): ... this.
2585 (process_target::supports_multi_process): Rename as ...
2586 (process_stratum_target::supports_multi_process): ... this.
2587 (process_target::supports_fork_events): Rename as ...
2588 (process_stratum_target::supports_fork_events): ... this.
2589 (process_target::supports_vfork_events): Rename as ...
2590 (process_stratum_target::supports_vfork_events): ... this.
2591 (process_target::supports_exec_events): Rename as ...
2592 (process_stratum_target::supports_exec_events): ... this.
2593 (process_target::handle_new_gdb_connection): Rename as ...
2594 (process_stratum_target::handle_new_gdb_connection): ... this.
2595 (process_target::handle_monitor_command): Rename as ...
2596 (process_stratum_target::handle_monitor_command): ... this.
2597 (process_target::core_of_thread): Rename as ...
2598 (process_stratum_target::core_of_thread): ... this.
2599 (process_target::supports_read_loadmap): Rename as ...
2600 (process_stratum_target::supports_read_loadmap): ... this.
2601 (process_target::read_loadmap): Rename as ...
2602 (process_stratum_target::read_loadmap): ... this.
2603 (process_target::process_qsupported): Rename as ...
2604 (process_stratum_target::process_qsupported): ... this.
2605 (process_target::supports_tracepoints): Rename as ...
2606 (process_stratum_target::supports_tracepoints): ... this.
2607 (process_target::read_pc): Rename as ...
2608 (process_stratum_target::read_pc): ... this.
2609 (process_target::write_pc): Rename as ...
2610 (process_stratum_target::write_pc): ... this.
2611 (process_target::supports_thread_stopped): Rename as ...
2612 (process_stratum_target::supports_thread_stopped): ... this.
2613 (process_target::thread_stopped): Rename as ...
2614 (process_stratum_target::thread_stopped): ... this.
2615 (process_target::supports_get_tib_address): Rename as ...
2616 (process_stratum_target::supports_get_tib_address): ... this.
2617 (process_target::get_tib_address): Rename as ...
2618 (process_stratum_target::get_tib_address): ... this.
2619 (process_target::pause_all): Rename as ...
2620 (process_stratum_target::pause_all): ... this.
2621 (process_target::unpause_all): Rename as ...
2622 (process_stratum_target::unpause_all): ... this.
2623 (process_target::stabilize_threads): Rename as ...
2624 (process_stratum_target::stabilize_threads): ... this.
2625 (process_target::supports_fast_tracepoints): Rename as ...
2626 (process_stratum_target::supports_fast_tracepoints): ... this.
2627 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2628 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2629 (process_target::emit_ops): Rename as ...
2630 (process_stratum_target::emit_ops): ... this.
2631 (process_target::supports_disable_randomization): Rename as ...
2632 (process_stratum_target::supports_disable_randomization): ... this.
2633 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2634 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2635 (process_target::qxfer_libraries_svr4): Rename as ...
2636 (process_stratum_target::qxfer_libraries_svr4): ... this.
2637 (process_target::supports_agent): Rename as ...
2638 (process_stratum_target::supports_agent): ... this.
2639 (process_target::enable_btrace): Rename as ...
2640 (process_stratum_target::enable_btrace): ... this.
2641 (process_target::disable_btrace): Rename as ...
2642 (process_stratum_target::disable_btrace): ... this.
2643 (process_target::read_btrace): Rename as ...
2644 (process_stratum_target::read_btrace): ... this.
2645 (process_target::read_btrace_conf): Rename as ...
2646 (process_stratum_target::read_btrace_conf): ... this.
2647 (process_target::supports_range_stepping): Rename as ...
2648 (process_stratum_target::supports_range_stepping): ... this.
2649 (process_target::supports_pid_to_exec_file): Rename as ...
2650 (process_stratum_target::supports_pid_to_exec_file): ... this.
2651 (process_target::pid_to_exec_file): Rename as ...
2652 (process_stratum_target::pid_to_exec_file): ... this.
2653 (process_target::supports_multifs): Rename as ...
2654 (process_stratum_target::supports_multifs): ... this.
2655 (process_target::multifs_open): Rename as ...
2656 (process_stratum_target::multifs_open): ... this.
2657 (process_target::multifs_unlink): Rename as ...
2658 (process_stratum_target::multifs_unlink): ... this.
2659 (process_target::multifs_readlink): Rename as ...
2660 (process_stratum_target::multifs_readlink): ... this.
2661 (process_target::breakpoint_kind_from_pc): Rename as ...
2662 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2663 (process_target::breakpoint_kind_from_current_state): Rename as ...
2664 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2665 (process_target::thread_name): Rename as ...
2666 (process_stratum_target::thread_name): ... this.
2667 (process_target::thread_handle): Rename as ...
2668 (process_stratum_target::thread_handle): ... this.
2669 (process_target::supports_software_single_step): Rename as ...
2670 (process_stratum_target::supports_software_single_step): ... this.
2671 (process_target::supports_catch_syscall): Rename as ...
2672 (process_stratum_target::supports_catch_syscall): ... this.
2673 (process_target::get_ipa_tdesc_idx): Rename as ...
2674 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2675
478f9adf
PA
26762020-02-20 Pedro Alves <palves@redhat.com>
2677
2678 * target.cc (set_target_ops): Simply copy the given target pointer
2679 instead of creating a copy of the pointed object.
2680
d633e831
TBA
26812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2682
2683 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2684 of process_target.
2685
2686 * target.h (struct process_stratum_target): Remove the target op.
2687 (class process_target): Add the target op.
2688 (target_get_ipa_tdesc_idx): Update the macro.
2689 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2690
2691 Update the derived classes and callers below.
2692
2693 * linux-low.cc (linux_target_ops): Update.
2694 (linux_get_ipa_tdesc_idx): Turn into ...
2695 (linux_process_target::get_ipa_tdesc_idx): ... this.
2696 * linux-low.h (class linux_process_target): Update.
2697 * lynx-low.cc (lynx_target_ops): Update.
2698 * nto-low.cc (nto_target_ops): Update.
2699 * win32-low.cc (win32_target_ops): Update.
2700
bc8d3ae4
TBA
27012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2702
2703 Turn process_stratum_target's supports_catch_syscall op into a
2704 method of process_target.
2705
2706 * target.h (struct process_stratum_target): Remove the target op.
2707 (class process_target): Add the target op.
2708 (target_supports_catch_syscall): Update the macro.
2709 * target.cc (process_target::supports_catch_syscall): Define.
2710
2711 Update the derived classes and callers below.
2712
2713 * linux-low.cc (linux_target_ops): Update.
2714 (linux_supports_catch_syscall): Turn into ...
2715 (linux_process_target::supports_catch_syscall): ... this.
2716 * linux-low.h (class linux_process_target): Update.
2717 * lynx-low.cc (lynx_target_ops): Update.
2718 * nto-low.cc (nto_target_ops): Update.
2719 * win32-low.cc (win32_target_ops): Update.
2720
5303a34f
TBA
27212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2722
2723 Turn process_stratum_target's supports_software_single_step op
2724 into a method of process_target.
2725
2726 * target.h (struct process_stratum_target): Remove the target op.
2727 (class process_target): Add the target op.
2728 (target_supports_software_single_step): Update the macro.
2729 * target.cc (process_target::supports_software_single_step): Define.
2730
2731 Update the derived classes and callers below.
2732
2733 * linux-low.cc (linux_target_ops): Update.
2734 (linux_supports_software_single_step): Turn into ...
2735 (linux_process_target::supports_software_single_step): ... this.
2736 * linux-low.h (class linux_process_target): Update.
2737 * lynx-low.cc (lynx_target_ops): Update.
2738 * nto-low.cc (nto_target_ops): Update.
2739 * win32-low.cc (win32_target_ops): Update.
2740
7f63b89b
TBA
27412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742
2743 Turn process_stratum_target's thread_name and thread_handle ops
2744 into methods of process_target.
2745
2746 * target.h (struct process_stratum_target): Remove the target ops.
2747 (class process_target): Add the target ops.
2748 (target_thread_name): Update the macro.
2749 (target_thread_handle): Update the macro.
2750 * target.cc (process_target::thread_name): Define.
2751 (process_target::thread_handle): Define.
2752
2753 Update the derived classes and callers below.
2754
2755 * linux-low.cc (linux_target_ops): Update.
2756 (linux_process_target::thread_name): Define.
2757 (linux_process_target::thread_handle): Define.
2758 * linux-low.h (class linux_process_target): Update.
2759 * lynx-low.cc (lynx_target_ops): Update.
2760 * nto-low.cc (nto_target_ops): Update.
2761 * win32-low.cc (win32_target_ops): Update.
2762
d367006f
TBA
27632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2764
2765 Turn process_stratum_target's breakpoint_kind_from_pc,
2766 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2767 ops into methods of process_target.
2768
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op.
2771 (target_breakpoint_kind_from_pc): Update the macro.
2772 (target_breakpoint_kind_from_current_state): Update the macro.
2773 (default_breakpoint_kind_from_pc): Remove declaration.
2774 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2775 (process_target::breakpoint_kind_from_pc): ... this.
2776 (process_target::breakpoint_kind_from_current_state): Define.
2777
2778 Update the derived classes and callers below.
2779
2780 * mem-break.cc (bp_size): Update.
2781 (bp_opcode): Update.
2782 * linux-low.cc (linux_target_ops): Update.
2783 (linux_wait_1): Update.
2784 (linux_breakpoint_kind_from_pc): Turn into ...
2785 (linux_process_target::breakpoint_kind_from_pc): ... this.
2786 (linux_sw_breakpoint_from_kind): Turn into ...
2787 (linux_process_target::sw_breakpoint_from_kind): ... this.
2788 (linux_breakpoint_kind_from_current_state): Turn into ...
2789 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2790 * linux-low.h (class linux_process_target): Update.
2791 * lynx-low.cc (lynx_target_ops): Update.
2792 (lynx_process_target::sw_breakpoint_from_kind): Define.
2793 * lynx-low.h (class lynx_process_target): Update.
2794 * nto-low.cc (nto_target_ops): Update.
2795 (nto_sw_breakpoint_from_kind): Turn into ...
2796 (nto_process_target::sw_breakpoint_from_kind): ... this.
2797 * nto-low.h (class nto_process_target): Update.
2798 * win32-low.cc (win32_target_ops): Update.
2799 (win32_sw_breakpoint_from_kind): Turn into ...
2800 (win32_process_target::sw_breakpoint_from_kind): ... this.
2801 * win32-low.h (class win32_process_target): Update.
2802
c9b7b804
TBA
28032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2804
2805 Turn process_stratum_target's multifs_open, multifs_readlink,
2806 multifs_unlink ops into methods of process_target.
2807
2808 * target.h (struct process_stratum_target): Remove the target ops.
2809 (class process_target): Add the target ops. Also add
2810 'supports_multifs'.
2811 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2812 "sys/stat.h".
2813 (process_target::supports_multifs): Define.
2814 (process_target::multifs_open): Define.
2815 (process_target::multifs_readlink): Define.
2816 (process_target::multifs_unlink): Define.
2817
2818 Update the derived classes and callers below.
2819
2820 * hostio.cc (handle_setfs): Update.
2821 (handle_open): Update.
2822 (handle_unlink): Update.
2823 (handle_readlink): Update.
2824 * linux-low.cc (linux_target_ops): Update.
2825 (linux_process_target::supports_multifs): Define.
2826 (linux_process_target::multifs_open): Define.
2827 (linux_process_target::multifs_readlink): Define.
2828 (linux_process_target::multifs_unlink): Define.
2829 * linux-low.h (class linux_process_target): Update.
2830 * lynx-low.cc (lynx_target_ops): Update.
2831 * nto-low.cc (nto_target_ops): Update.
2832 * win32-low.cc (win32_target_ops): Update.
2833
8247b823
TBA
28342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2835
2836 Turn process_stratum_target's pid_to_exec_file op into a method
2837 of process_target.
2838
2839 * target.h (struct process_stratum_target): Remove the target op.
2840 (class process_target): Add the target op. Also add
2841 'supports_pid_to_exec_file'.
2842 * target.cc (process_target::pid_to_exec_file): Define.
2843 (process_target::supports_pid_to_exec_file): Define.
2844
2845 Update the derived classes and callers below.
2846
2847 * server.cc (handle_qxfer_exec_file): Update.
2848 (handle_query): Update.
2849 * linux-low.cc (linux_target_ops): Update.
2850 (linux_process_target::supports_pid_to_exec_file): Define.
2851 (linux_process_target::pid_to_exec_file): Define.
2852 * linux-low.h (class linux_process_target): Update.
2853 * lynx-low.cc (lynx_target_ops): Update.
2854 * nto-low.cc (nto_target_ops): Update.
2855 * win32-low.cc (win32_target_ops): Update.
2856
2526e0cd
TBA
28572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858
2859 Turn process_stratum_target's supports_range_stepping op into a
2860 method of process_target.
2861
2862 * target.h (struct process_stratum_target): Remove the target op.
2863 (class process_target): Add the target op.
2864 (target_supports_range_stepping): Update the macro.
2865 * target.cc (process_target::supports_range_stepping): Define.
2866
2867 Update the derived classes and callers below.
2868
2869 * linux-low.cc (linux_target_ops): Update.
2870 (linux_supports_range_stepping): Turn into ...
2871 (linux_process_target::supports_range_stepping): ... this.
2872 * linux-low.h (class linux_process_target): Update.
2873 * lynx-low.cc (lynx_target_ops): Update.
2874 * nto-low.cc (nto_target_ops): Update.
2875 * win32-low.cc (win32_target_ops): Update.
2876
79597bdd
TBA
28772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2878
2879 Turn process_stratum_target's btrace-related ops (enable_btrace,
2880 disable_btrace, read_btrace, read_btrace_conf) into methods of
2881 process_target.
2882
2883 * target.h (struct process_stratum_target): Remove the target ops.
2884 (class process_target): Add the target ops.
2885 (target_enable_btrace): Update.
2886 (target_disable_btrace): Update.
2887 (target_read_btrace): Update.
2888 (target_read_btrace_conf): Update.
2889 * target.cc (process_target::enable_btrace): Define.
2890 (process_target::disable_btrace): Define.
2891 (process_target::read_btrace): Define.
2892 (process_target::read_btrace_conf): Define.
2893
2894 Update the derived classes and callers below.
2895
2896 * linux-low.cc (linux_target_ops): Update.
2897 (linux_process_target:enable_btrace): Define as a wrapper around
2898 linux_enable_btrace.
2899 (linux_low_disable_btrace): Turn into ...
2900 (linux_process_target::disable_btrace): ... this.
2901 (linux_low_read_btrace): Turn into ...
2902 (linux_process_target::read_btrace): ... this.
2903 (linux_low_btrace_conf): Turn into ...
2904 (linux_process_target::read_btrace_conf): ... this.
2905 * linux-low.h (class linux_process_target): Update.
2906 * lynx-low.cc (lynx_target_ops): Update.
2907 * nto-low.cc (nto_target_ops): Update.
2908 * win32-low.cc (win32_target_ops): Update.
2909
c0245cb9
TBA
29102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2911
2912 Turn process_stratum_target's supports_agent op into a method of
2913 process_target.
2914
2915 * target.h (struct process_stratum_target): Remove the target op.
2916 (class process_target): Add the target op.
2917 (target_supports_agent): Update the macro.
2918 * target.cc (process_target::supports_agent): Define.
2919
2920 Update the derived classes and callers below.
2921
2922 * linux-low.cc (linux_target_ops): Update.
2923 (linux_supports_agent): Turn into ...
2924 (linux_process_target::supports_agent): ... this.
2925 * linux-low.h (class linux_process_target): Update.
2926 * lynx-low.cc (lynx_target_ops): Update.
2927 * nto-low.cc (nto_target_ops): Update.
2928 * win32-low.cc (win32_target_ops): Update.
2929
974387bb
TBA
29302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2931
2932 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2933 method of process_target.
2934
2935 * target.h (struct process_stratum_target): Remove the target op.
2936 (class process_target): Add the target op. Also add
2937 'supports_qxfer_libraries_svr4'.
2938 * target.cc (process_target::qxfer_libraries_svr4): Define.
2939 (process_target::supports_qxfer_libraries_svr4): Define.
2940
2941 Update the derived classes and callers below.
2942
2943 * server.cc (handle_qxfer_libraries_svr4): Update.
2944 (handle_query): Update.
2945 * linux-low.cc (linux_target_ops): Update.
2946 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2947 (linux_qxfer_libraries_svr4): Turn into ...
2948 (linux_process_target::qxfer_libraries_svr4): ... this.
2949 * linux-low.h (class linux_process_target): Update.
2950 * lynx-low.cc (lynx_target_ops): Update.
2951 * nto-low.cc (nto_target_ops): Update.
2952 * win32-low.cc (win32_target_ops): Update.
2953
c756403b
TBA
29542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955
2956 Turn process_stratum_target's supports_disable_randomization op
2957 into a method of process_target.
2958
2959 * target.h (struct process_stratum_target): Remove the target op.
2960 (class process_target): Add the target op.
2961 (target_supports_disable_randomization): Update the macro.
2962 * target.cc (process_target::supports_disable_randomization): Define.
2963
2964 Update the derived classes and callers below.
2965
2966 * linux-low.cc (linux_target_ops): Update.
2967 (linux_supports_disable_randomization): Turn into ...
2968 (linux_process_target::supports_disable_randomization): ... this.
2969 * linux-low.h (class linux_process_target): Update.
2970 * lynx-low.cc (lynx_target_ops): Update.
2971 * nto-low.cc (nto_target_ops): Update.
2972 * win32-low.cc (win32_target_ops): Update.
2973
345dafad
TBA
29742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2975
2976 Turn process_stratum_target's emit_ops op into a method of
2977 process_target.
2978
2979 * target.h (struct process_stratum_target): Remove the target op.
2980 (class process_target): Add the target op.
2981 (target_emit_ops): Update the macro.
2982 * target.cc (process_target::emit_ops): Define.
2983
2984 Update the derived classes and callers below.
2985
2986 * linux-low.cc (linux_target_ops): Update.
2987 (linux_emit_ops): Turn into ...
2988 (linux_process_target::emit_ops): ... this.
2989 * linux-low.h (class linux_process_target): Update.
2990 * lynx-low.cc (lynx_target_ops): Update.
2991 * nto-low.cc (nto_target_ops): Update.
2992 * win32-low.cc (win32_target_ops): Update.
2993
c23c9391
TBA
29942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2995
2996 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2997 and get_min_fast_tracepoint_insn_len ops into methods of
2998 process_target.
2999
3000 * target.h (struct process_stratum_target): Remove the target ops.
3001 (class process_target): Add the target ops. Also add
3002 'supports_fast_tracepoints'.
3003 (target_supports_fast_tracepoints): Update the macro.
3004 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3005 (install_fast_tracepoint_jump_pad): Update and rename the macro
3006 to ...
3007 (target_install_fast_tracepoint_jump_pad): ... this.
3008 * target.cc (process_target::supports_fast_tracepoints): Define.
3009 (process_target::install_fast_tracepoint_jump_pad): Define.
3010 (process_target::get_min_fast_tracepoint_insn_len): Define.
3011
3012 Update the derived classes and callers below.
3013
3014 * tracepoint.cc (install_fast_tracepoint): Update.
3015 * linux-low.cc (linux_target_ops): Update.
3016 (linux_process_target::supports_fast_tracepoints): Define.
3017 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3018 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3019 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3020 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3021 * linux-low.h (class linux_process_target): Update.
3022 * lynx-low.cc (lynx_target_ops): Update.
3023 * nto-low.cc (nto_target_ops): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3025
5c9eb2f2
TBA
30262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3027
3028 Turn process_stratum_target's stabilize_threads op into a
3029 method of process_target.
3030
3031 * target.h (struct process_stratum_target): Remove the target op.
3032 (class process_target): Add the target op.
3033 (target_stabilize_threads): Update the macro.
3034 * target.cc (process_target::stabilize_threads): Define.
3035
3036 Update the derived classes and callers below.
3037
3038 * server.cc (handle_status): Update.
3039 * tracepoint.cc (cmd_qtdp): Update.
3040 (cmd_qtstart): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_stabilize_threads): Turn into ...
3043 (linux_process_target::stabilize_threads): ... this.
3044 (linux_wait_1): Update.
3045 * linux-low.h (class linux_process_target): Update.
3046 * lynx-low.cc (lynx_target_ops): Update.
3047 * nto-low.cc (nto_target_ops): Update.
3048 * win32-low.cc (win32_target_ops): Update.
3049
29e8dc09
TBA
30502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3051
3052 Turn process_stratum_target's pause_all and unpause_all ops
3053 into methods of process_target.
3054
3055 * target.h (struct process_stratum_target): Remove the target ops.
3056 (class process_target): Add the target ops.
3057 (pause_all): Update the macro and rename to...
3058 (target_pause_all): ... this.
3059 (unpause_all): Update the macro and rename to...
3060 (target_unpause_all): ... this.
3061 * target.cc (process_target::pause_all): Define.
3062 (process_target::unpause_all): Define.
3063
3064 Update the derived classes and callers below.
3065
3066 * server.cc (handle_status): Update.
3067 * tracepoint.cc (clear_installed_tracepoints): Update.
3068 (cmd_qtdp): Update.
3069 (cmd_qtstart): Update.
3070 (stop_tracing): Update.
3071 (cmd_qtstatus): Update.
3072 (upload_fast_traceframes): Update.
3073 (run_inferior_command): Update.
3074 * linux-low.cc (linux_target_ops): Update.
3075 (linux_pause_all): Turn into ...
3076 (linux_process_target::pause_all): ... this.
3077 (linux_unpause_all): Turn into ...
3078 (linux_process_target::unpause_all): ... this.
3079 (linux_process_target::prepare_to_access_memory): Update.
3080 (linux_process_target::done_accessing_memory): Update.
3081 * linux-low.h (class linux_process_target): Update.
3082 * lynx-low.cc (lynx_target_ops): Update.
3083 * nto-low.cc (nto_target_ops): Update.
3084 * win32-low.cc (win32_target_ops): Update.
3085
4e2e869c
TBA
30862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3087
3088 Turn process_stratum_target's get_tib_address op into a method of
3089 process_target.
3090
3091 * target.h (struct process_stratum_target): Remove the target op.
3092 (class process_target): Add the target op. Also add
3093 'supports_get_tib_address'.
3094 * target.cc (process_target::get_tib_address): Define.
3095 (process_target::supports_get_tib_address): Define.
3096
3097 Update the derived classes and callers below.
3098
3099 * server.cc (handle_query): Update.
3100 * linux-low.cc (win32_target_ops): Update.
3101 * lynx-low.cc (lynx_target_ops): Update.
3102 * nto-low.cc (nto_target_ops): Update.
3103 * win32-low.cc (win32_target_ops): Update.
3104 (win32_process_target::supports_get_tib_address): Define.
3105 (win32_get_tib_address): Turn into ...
3106 (win32_process_target::get_tib_address): ... this.
3107 * win32-low.h (class win32_process_target): Update.
3108
68119632
TBA
31092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3110
3111 Turn process_stratum_target's thread_stopped op into a method of
3112 process_target.
3113
3114 * target.h (struct process_stratum_target): Remove the target op.
3115 (class process_target): Add the target op. Also add
3116 'supports_thread_stopped'.
3117 (target_thread_stopped): Update the macro.
3118 * target.cc (process_target::thread_stopped): Define.
3119 (process_target::supports_thread_stopped): Define.
3120 (prepare_to_access_memory): Update.
3121
3122 Update the derived classes and callers below.
3123
3124 * server.cc (queue_stop_reply_callback): Update.
3125 * linux-low.cc (linux_target_ops): Update.
3126 (linux_process_target::supports_thread_stopped): Define.
3127 (linux_thread_stopped): Turn into ...
3128 (linux_process_target::thread_stopped): ... this.
3129 * linux-low.h (class linux_process_target): Update.
3130 * lynx-low.cc (lynx_target_ops): Update.
3131 * nto-low.cc (nto_target_ops): Update.
3132 * win32-low.cc (win32_target_ops): Update.
3133
770d8f6a
TBA
31342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3135
3136 Turn process_stratum_target's read_pc and write_pc ops into
3137 methods of process_target.
3138
3139 * target.h (struct process_stratum_target): Remove the target ops.
3140 (class process_target): Add the target ops.
3141 * target.cc (process_target::read_pc): Define.
3142 (process_target::write_pc): Define.
3143
3144 Update the derived classes and callers below.
3145
3146 * regcache.cc (regcache_read_pc): Update.
3147 (regcache_write_pc): Update.
3148 * linux-low.cc (linux_target_ops): Update.
3149 (linux_read_pc): Turn into ...
3150 (linux_process_target::read_pc): ... this.
3151 (linux_write_pc): Turn into ...
3152 (linux_process_target::write_pc): ... this.
3153 * linux-low.h (class linux_process_target): Update.
3154 * lynx-low.cc (lynx_target_ops): Update.
3155 * nto-low.cc (nto_target_ops): Update.
3156 * win32-low.cc (win32_target_ops): Update.
3157
290732bf
TBA
31582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3159
3160 Turn process_stratum_target's supports_tracepoints op into a
3161 method of process_target.
3162
3163 * target.h (struct process_stratum_target): Remove the target op.
3164 (class process_target): Add the target op.
3165 (target_supports_tracepoints): Update the macro.
3166 * target.cc (process_target::supports_tracepoints): Define.
3167
3168 Update the derived classes and callers below.
3169
3170 * linux-low.cc (linux_target_ops): Update.
3171 (linux_supports_tracepoints): Turn into ...
3172 (linux_process_target::supports_tracepoints): ... this.
3173 * linux-low.h (class linux_process_target): Update.
3174 * lynx-low.cc (lynx_target_ops): Update.
3175 * nto-low.cc (nto_target_ops): Update.
3176 * win32-low.cc (win32_target_ops): Update.
3177
0df28b1b
TBA
31782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3179
3180 Turn process_stratum_target's process_qsupported op into a method
3181 of process_target.
3182
3183 * target.h (struct process_stratum_target): Remove the target op.
3184 (class process_target): Add the target op.
3185 (target_process_qsupported): Update the macro.
3186 * target.cc (process_target::process_qsupported): Define.
3187
3188 Update the derived classes and callers below.
3189
3190 * linux-low.cc (linux_target_ops): Update.
3191 (linux_process_qsupported): Turn into ...
3192 (linux_process_target::process_qsupported): ... this.
3193 * linux-low.h (class linux_process_target): Update.
3194 * lynx-low.cc (lynx_target_ops): Update.
3195 * nto-low.cc (nto_target_ops): Update.
3196 * win32-low.cc (win32_target_ops): Update.
3197
9da41fda
TBA
31982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199
3200 Turn process_stratum_target's read_loadmap op into a method of
3201 process_target.
3202
3203 * target.h (struct process_stratum_target): Remove the target op.
3204 (class process_target): Add the target op. Also add
3205 'supports_read_loadmap'.
3206 * target.cc (process_target::read_loadmap): Define.
3207 (process_target::supports_read_loadmap): Define.
3208
3209 Update the derived classes and callers below.
3210
3211 * server.cc (handle_qxfer_fdpic): Update.
3212 (handle_query): Update.
3213 * linux-low.cc (linux_target_ops): Update.
3214 (linux_process_target::supports_read_loadmap): Define.
3215 (linux_read_loadmap): Turn into ...
3216 (linux_process_target::read_loadmap): ... this.
3217 * linux-low.h (class linux_process_target): Update.
3218 * lynx-low.cc (lynx_target_ops): Update.
3219 * nto-low.cc (nto_target_ops): Update.
3220 * win32-low.cc (win32_target_ops): Update.
3221
95a45fc1
TBA
32222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3223
3224 Turn process_stratum_target's core_of_thread op into a method of
3225 process_target.
3226
3227 * target.h (struct process_stratum_target): Remove the target op.
3228 (class process_target): Add the target op.
3229 (target_core_of_thread): Update the macro.
3230 * target.cc (process_target::core_of_thread): Define.
3231
3232 Update the derived classes and callers below.
3233
3234 * linux-low.cc (linux_target_ops): Update.
3235 (linux_process_target::core_of_thread): Define.
3236 * linux-low.h (class linux_process_target): Update.
3237 * lynx-low.cc (lynx_target_ops): Update.
3238 * nto-low.cc (nto_target_ops): Update.
3239 * win32-low.cc (win32_target_ops): Update.
3240
55cf3021
TBA
32412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3242
3243 Turn process_stratum_target's handle_monitor_command op into a
3244 method of process_target.
3245
3246 * target.h (struct process_stratum_target): Remove the target op.
3247 (class process_target): Add the target op.
3248 (target_handle_monitor_command): Update the macro.
3249 * target.cc (process_target::handle_monitor_command): Define.
3250
3251 Update the derived classes and callers below.
3252
3253 * server.cc (handle_query): Update.
3254 * linux-low.cc (linux_target_ops): Update.
3255 (linux_process_target::handle_monitor_command): Define.
3256 * linux-low.h (class linux_process_target): Update.
3257 * lynx-low.cc (lynx_target_ops): Update.
3258 * nto-low.cc (nto_target_ops): Update.
3259 * win32-low.cc (win32_target_ops): Update.
3260
fb00dfce
TBA
32612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3262
3263 Turn process_stratum_target's handle_new_gdb_connection op into a
3264 method of process_target.
3265
3266 * target.h (struct process_stratum_target): Remove the target op.
3267 (class process_target): Add the target op.
3268 (target_handle_new_gdb_connection): Update the macro.
3269 * target.cc (process_target::handle_new_gdb_connection): Define.
3270
3271 Update the derived classes and callers below.
3272
3273 * linux-low.cc (linux_target_ops): Update.
3274 (linux_handle_new_gdb_connection): Turn into ...
3275 (linux_process_target::handle_new_gdb_connection): ... this.
3276 * linux-low.h (class linux_process_target): Update.
3277 * lynx-low.cc (lynx_target_ops): Update.
3278 * nto-low.cc (nto_target_ops): Update.
3279 * win32-low.cc (win32_target_ops): Update.
3280
9690a72a
TBA
32812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3282
3283 Turn process_stratum_target's supports_fork_events,
3284 supports_vfork_events, and supports_exec_events ops into methods
3285 of process_target.
3286
3287 * target.h (struct process_stratum_target): Remove the target ops.
3288 (class process_target): Add the target ops.
3289 (target_supports_fork_events): Update the macro.
3290 (target_supports_vfork_events): Update the macro.
3291 (target_supports_exec_events): Update the macro.
3292 * target.cc (process_target::supports_fork_events): Define.
3293 (process_target::supports_vfork_events): Define.
3294 (process_target::supports_exec_events): Define.
3295
3296 Update the derived classes and callers below.
3297
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_supports_fork_events): Turn into ...
3300 (linux_process_target::supports_fork_events): ... this.
3301 (linux_supports_vfork_events): Turn into ...
3302 (linux_process_target::supports_vfork_events): ... this.
3303 (linux_supports_exec_events): Turn into ...
3304 (linux_process_target::supports_exec_events): ... this.
3305 * linux-low.h (class linux_process_target): Update.
3306 * lynx-low.cc (lynx_target_ops): Update.
3307 * nto-low.cc (nto_target_ops): Update.
3308 * win32-low.cc (win32_target_ops): Update.
3309
652aef77
TBA
33102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3311
3312 Turn process_stratum_target's supports_multi_process op into a
3313 method of process_target.
3314
3315 * target.h (struct process_stratum_target): Remove the target op.
3316 (class process_target): Add the target op.
3317 * target.cc (process_target::supports_multi_process): Define.
3318 (target_supports_multi_process): Update.
3319
3320 Update the derived classes and callers below.
3321
3322 * linux-low.cc (linux_target_ops): Update.
3323 (linux_supports_multi_process): Turn into ...
3324 (linux_process_target::supports_multi_process): ... this.
3325 * linux-low.h (class linux_process_target): Update.
3326 * lynx-low.cc (lynx_target_ops): Update.
3327 * nto-low.cc (nto_target_ops): Update.
3328 * win32-low.cc (win32_target_ops): Update.
3329
0dc587d4
TBA
33302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331
3332 Turn process_stratum_target's supports_non_stop, async, and
3333 start_non_stop ops into methods of process_target.
3334
3335 * target.h (struct process_stratum_target): Remove the target ops.
3336 (class process_target): Add the target ops.
3337 (target_supports_non_stop): Update the macro.
3338 (target_async): Update the macro.
3339 (start_non_stop): Remove declaration.
3340 * target.cc (process_target::supports_non_stop): Define.
3341 (process_target::async): Define.
3342 (process_target::start_non_stop): Define.
3343 (start_non_stop): Remove.
3344
3345 Update the derived classes and callers below.
3346
3347 * server.cc (handle_qxfer_siginfo): Update.
3348 (handle_query): Update.
3349 * linux-low.cc (linux_target_ops): Update.
3350 (linux_supports_non_stop): Turn into ...
3351 (linux_process_target::supports_non_stop): ... this.
3352 (linux_async): Turn into ...
3353 (linux_process_target::async): ... this.
3354 (linux_start_non_stop): Turn into ...
3355 (linux_process_target::start_non_stop): ... this.
3356 * linux-low.h (class linux_process_target): Update.
3357 * lynx-low.cc (lynx_target_ops): Update.
3358 * nto-low.cc (nto_target_ops): Update.
3359 (nto_supports_non_stop): Remove; rely on the default behavior
3360 instead.
3361 * win32-low.cc (win32_target_ops): Update.
3362
d7abedf7
TBA
33632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3364
3365 Turn process_stratum_target's qxfer_siginfo op into a method of
3366 process_target.
3367
3368 * target.h (struct process_stratum_target): Remove the target op.
3369 (class process_target): Add the target op. Also add
3370 'supports_qxfer_siginfo'.
3371 * target.cc (process_target::qxfer_siginfo): Define.
3372 (process_target::supports_qxfer_siginfo): Define.
3373
3374 Update the derived classes and callers below.
3375
3376 * server.cc (handle_qxfer_siginfo): Update.
3377 (handle_query): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_process_target::supports_qxfer_siginfo): Define.
3380 (linux_xfer_siginfo): Turn into ...
3381 (linux_process_target::qxfer_siginfo): ... this.
3382 * linux-low.h (class linux_process_target): Update.
3383 * lynx-low.cc (lynx_target_ops): Update.
3384 * nto-low.cc (nto_target_ops): Update.
3385 * win32-low.cc (win32_target_ops): Update.
3386
2d0795ee
TBA
33872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3388
3389 Turn process_stratum_target's qxfer_osdata op into a method of
3390 process_target.
3391
3392 * target.h (struct process_stratum_target): Remove the target op.
3393 (class process_target): Add the target op. Also add
3394 'supports_qxfer_osdata'.
3395 * target.cc (process_target::qxfer_osdata): Define.
3396 (process_target::supports_qxfer_osdata): Define.
3397
3398 Update the derived classes and callers below.
3399
3400 * server.cc (handle_qxfer_osdata): Update.
3401 (handle_query): Update.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_target::supports_qxfer_osdata): Define.
3404 (linux_qxfer_osdata): Turn into ...
3405 (linux_process_target::qxfer_osdata): ... this.
3406 * linux-low.h (class linux_process_target): Update.
3407 * lynx-low.cc (lynx_target_ops): Update.
3408 * nto-low.cc (nto_target_ops): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3410
ea06bbaa
TBA
34112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412
3413 Turn process_stratum_target's hostio_last_error op into a
3414 method of process_target.
3415
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3418 * target.cc: Add "hostio.h" to includes.
3419 (process_target::hostio_last_error): Define.
3420
3421 Update the derived classes and callers below.
3422
3423 * hostio.cc (hostio_error): Update.
3424 * linux-low.cc: Remove "hostio.h" from includes.
3425 (linux_target_ops): Update.
3426 * lynx-low.cc (lynx_target_ops): Update.
3427 * nto-low.cc (nto_target_ops): Update.
3428 * win32-low.h (class win32_process_target): Update.
3429 * win32-low.cc (win32_target_ops): Update.
3430 (wince_hostio_last_error): Turn into ...
3431 (win32_process_target::hostio_last_error): ... this.
3432
6e3fd7e9
TBA
34332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434
3435 Turn process_stratum_target's get_tls_address op into a method of
3436 process_target.
3437
3438 * target.h (struct process_stratum_target): Remove the target op.
3439 (class process_target): Add the target op. Also add
3440 'supports_get_tls_address'.
3441 * target.cc (process_target::get_tls_address): Define.
3442 (process_target::supports_get_tls_address): Define.
3443
3444 Update the derived classes and callers below.
3445
3446 * server.cc (handle_query): Update.
3447 * linux-low.cc (linux_target_ops): Update.
3448 (linux_process_target::supports_get_tls_address): Define.
3449 (linux_process_target::get_tls_address): Define.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 * nto-low.cc (nto_target_ops): Update.
3453 * win32-low.cc (win32_target_ops): Update.
3454
5203ae1e
TBA
34552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3456
3457 Turn process_stratum_target's read_offsets op into a method of
3458 process_target.
3459
3460 * target.h (struct process_stratum_target): Remove the target op.
3461 (class process_target): Add the target op. Also add
3462 'supports_read_offsets'.
3463 * target.cc (process_target::read_offsets): Define.
3464 (process_target::supports_read_offsets): Define.
3465
3466 Update the derived classes and callers below.
3467
3468 * server.cc (handle_query): Update.
3469 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3470 (linux_target_ops): Update.
3471 (linux_process_target::supports_read_offsets): Define.
3472 (linux_read_offsets): Turn into ...
3473 (linux_process_target::read_offsets): ... this.
3474 * linux-low.h (class linux_process_target): Update.
3475 * lynx-low.cc (lynx_target_ops): Update.
3476 * nto-low.cc (nto_target_ops): Update.
3477 * win32-low.cc (win32_target_ops): Update.
3478
6eeb5c55
TBA
34792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3480
3481 Turn process_stratum_target's stopped_by_watchpoint and
3482 stopped_data_address ops into methods of process_target.
3483
3484 * target.h (struct process_stratum_target): Remove the target ops.
3485 (class process_target): Add the target ops.
3486 * target.cc (process_target::stopped_by_watchpoint): Define.
3487 (process_target::stopped_data_address): Define.
3488
3489 Update the derived classes and callers below.
3490
3491 * remote-utils.cc (prepare_resume_reply): Update.
3492 * linux-low.cc (linux_target_ops): Update.
3493 (linux_stopped_by_watchpoint): Turn into ...
3494 (linux_process_target::stopped_by_watchpoint): ... this.
3495 (linux_stopped_data_address): Turn into ...
3496 (linux_process_target::stopped_data_address): ... this.
3497 * linux-low.h (class linux_process_target): Update.
3498 * lynx-low.cc (lynx_target_ops): Update.
3499 * nto-low.cc (nto_target_ops): Update.
3500 (nto_stopped_by_watchpoint): Turn into ...
3501 (nto_process_target::stopped_by_watchpoint): ... this.
3502 (nto_stopped_data_address): Turn into ...
3503 (nto_process_target::stopped_data_address): ... this.
3504 * nto-low.h (class nto_process_target): Update.
3505 * win32-low.cc (win32_target_ops): Update.
3506 (win32_stopped_by_watchpoint): Turn into ...
3507 (win32_process_target::stopped_by_watchpoint): ... this.
3508 (win32_stopped_data_address): Turn into ...
3509 (win32_process_target::stopped_data_address): ... this.
3510 * win32-low.h (class win32_process_target): Update.
3511
22aa6223
TBA
35122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3513
3514 Turn process_stratum_target's supports_hardware_single_step op into
3515 a method of process_target.
3516
3517 * target.h (struct process_stratum_target): Remove the target op.
3518 (class process_target): Add the target op.
3519 (target_supports_hardware_single_step): Update the macro.
3520 (target_can_do_hardware_single_step): Remove declaration.
3521 * target.cc (process_target::supports_hardware_single_step): Define.
3522 (target_can_do_hardware_single_step): Remove.
3523
3524 Update the derived classes and callers below.
3525
3526 * linux-low.h (class linux_process_target): Update.
3527 * linux-low.cc (linux_target_ops): Update.
3528 (linux_supports_hardware_single_step): Turn into ...
3529 (linux_process_target::supports_hardware_single_step): ... this.
3530 * lynx-low.h (class lynx_process_target): Update.
3531 * lynx-low.cc (lynx_target_ops): Update.
3532 (lynx_process_target::supports_hardware_single_step): Define.
3533 * nto-low.h (class nto_process_target): Update.
3534 * nto-low.cc (nto_target_ops): Update.
3535 (nto_process_target::supports_hardware_single_step): Define.
3536 * win32-low.h (class win32_process_target): Update.
3537 * win32-low.cc (win32_target_ops): Update.
3538 (win32_process_target::supports_hardware_single_step): Define.
3539
93fe88b2
TBA
35402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3541
3542 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3543 ops into methods of process_target.
3544
3545 * target.h (struct process_stratum_target): Remove the target ops.
3546 (class process_target): Add the target ops.
3547 (target_stopped_by_hw_breakpoint): Update the macro.
3548 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3549 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3550 (process_target::supports_stopped_by_hw_breakpoint): Define.
3551
3552 Update the derived classes and callers below.
3553
3554 * linux-low.cc (linux_target_ops): Update.
3555 (linux_stopped_by_hw_breakpoint): Turn into ...
3556 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3557 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3558 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3559 * linux-low.h (class linux_process_target): Update.
3560 * lynx-low.cc (lynx_target_ops): Update.
3561 * nto-low.cc (nto_target_ops): Update.
3562 * win32-low.cc (win32_target_ops): Update.
3563
84320c4e
TBA
35642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3565
3566 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3567 ops into methods of process_target.
3568
3569 * target.h (struct process_stratum_target): Remove the target ops.
3570 (class process_target): Add the target ops.
3571 (target_stopped_by_sw_breakpoint): Update the macro.
3572 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3573 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3574 (process_target::supports_stopped_by_sw_breakpoint): Define.
3575
3576 Update the derived classes and callers below.
3577
3578 * linux-low.cc (linux_target_ops): Update.
3579 (linux_stopped_by_sw_breakpoint): Turn into ...
3580 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3581 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3582 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3583 * linux-low.h (class linux_process_target): Update.
3584 * lynx-low.cc (lynx_target_ops): Update.
3585 * nto-low.cc (nto_target_ops): Update.
3586 * win32-low.cc (win32_target_ops): Update.
3587
7e0bde70
TBA
35882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3589
3590 Turn process_stratum_target's insert_point and remove_point ops
3591 into methods of process_target.
3592
3593 * target.h (struct process_stratum_target): Remove the target ops.
3594 (class process_target): Add the target ops.
3595 * target.cc (process_target::insert_point): Define.
3596 (process_target::remove_point): Define.
3597
3598 Update the derived classes and callers below.
3599
3600 * mem-break.cc (set_raw_breakpoint_at): Update.
3601 (delete_raw_breakpoint): Update.
3602 (uninsert_raw_breakpoint): Update.
3603 (reinsert_raw_breakpoint): Update.
3604 * linux-low.cc (linux_target_ops): Update.
3605 (linux_insert_point): Turn into ...
3606 (linux_process_target::insert_point): ... this.
3607 (linux_remove_point): Turn into ...
3608 (linux_process_target::remove_point): ... this.
3609 * linux-low.h (class linux_process_target): Update.
3610 * lynx-low.cc (lynx_target_ops): Update.
3611 * nto-low.cc (nto_target_ops): Update.
3612 (nto_insert_point): Turn into ...
3613 (nto_process_target::insert_point): ... this.
3614 (nto_remove_point): Turn into ...
3615 (nto_process_target::remove_point): ... this.
3616 * nto-low.h (class nto_process_target): Update.
3617 * win32-low.cc (win32_target_ops): Update.
3618 (win32_insert_point): Turn into ...
3619 (win32_process_target::insert_point): ... this.
3620 (win32_remove_point): Turn into ...
3621 (win32_process_target::remove_point): ... this.
3622 * win32-low.h (class win32_process_target): Update.
3623
a2b2297a
TBA
36242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3625
3626 Turn process_stratum_target's supports_z_point_type op into a
3627 method of process_target.
3628
3629 * target.h (struct process_stratum_target): Remove the target op.
3630 (class process_target): Add the target op.
3631 * target.cc (process_target::supports_z_point_type): Define.
3632
3633 Update the derived classes and callers below.
3634
3635 * mem-break.cc (z_type_supported): Update.
3636 * linux-low.cc (linux_target_ops): Update.
3637 (linux_supports_z_point_type): Turn into ...
3638 (linux_process_target::supports_z_point_type): ... this.
3639 * linux-low.h (class linux_process_target): Update.
3640 * lynx-low.cc (lynx_target_ops): Update.
3641 * nto-low.cc (nto_target_ops): Update.
3642 (nto_supports_z_point_type): Turn into ...
3643 (nto_process_target::supports_z_point_type): ... this.
3644 * nto-low.h (class nto_process_target): Update.
3645 * win32-low.cc (win32_target_ops): Update.
3646 (win32_supports_z_point_type): Turn into ...
3647 (win32_process_target::supports_z_point_type): ... this.
3648 * win32-low.h (class win32_process_target): Update.
3649
eac215cc
TBA
36502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3651
3652 Turn process_stratum_target's read_auxv op into a method of
3653 process_target.
3654
3655 * target.h (class process_stratum_target): Remove the target op.
3656 (struct process_target): Add the target op. Also add
3657 'supports_read_auxv'.
3658 * target.cc (process_target::read_auxv): Define.
3659 (process_target::supports_read_auxv): Define.
3660
3661 Update the derived classes and callers below.
3662
3663 * server.cc (handle_qxfer_auxv): Update.
3664 (handle_query): Update.
3665 * linux-low.cc (linux_target_ops): Update.
3666 (linux_process_target::supports_read_auxv): Define.
3667 (linux_read_auxv): Turn into ...
3668 (linux_process_target::read_auxv): ... this.
3669 * linux-low.h (class linux_process_target): Update.
3670 * lynx-low.cc (lynx_target_ops): Update.
3671 * nto-low.cc (nto_target_ops): Update.
3672 (nto_process_target::supports_read_auxv): Define.
3673 (nto_read_auxv): Turn into ...
3674 (nto_process_target::read_auxv): ... this.
3675 * nto-low.h (class nto_process_target): Update.
3676 * win32-low.cc (win32_target_ops): Update.
3677
eb497a2a
TBA
36782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3679
3680 Turn process_stratum_target's request_interrupt op into a method of
3681 process_target.
3682
3683 * target.h (struct process_stratum_target): Remove the target op.
3684 (class process_target): Add the target op.
3685
3686 Update the derived classes and callers below.
3687
3688 * remote-utils.cc (putpkt_binary_1): Update.
3689 (input_interrupt): Update.
3690 (getpkt): Update.
3691 * server.cc (handle_v_requests): Update.
3692 * linux-low.cc (linux_target_ops): Update.
3693 (linux_request_interrupt): Turn into ...
3694 (linux_process_target::request_interrupt): ... this.
3695 * linux-low.h (class linux_process_target): Update.
3696 * lynx-low.cc (lynx_target_ops): Update.
3697 (lynx_request_interrupt): Turn into ...
3698 (lynx_process_target::request_interrupt): ... this.
3699 * lynx-low.h (class lynx_process_target): Update.
3700 * nto-low.cc (nto_target_ops): Update.
3701 (nto_request_interrupt): Turn into ...
3702 (nto_process_target::request_interrupt): ... this.
3703 * nto-low.h (class nto_process_target): Update.
3704 * win32-low.cc (win32_target_ops): Update.
3705 (win32_request_interrupt): Turn into ...
3706 (win32_process_target::request_interrupt): ... this.
3707 * win32-low.h (class win32_process_target): Update.
3708
2a31c7aa
TBA
37092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3710
3711 Turn process_stratum_target's look_up_symbols op into a method of
3712 process_target.
3713
3714 * target.h (struct process_stratum_target): Remove the target op.
3715 (class process_target): Add the target op.
3716 * target.cc (process_target::look_up_symbols): Define.
3717
3718 Update the derived classes and callers below.
3719
3720 * server.cc (handle_query): Update.
3721 * linux-low.cc (linux_target_ops): Update.
3722 (linux_look_up_symbols): Turn into ...
3723 (linux_process_target::look_up_symbols): ... this.
3724 * linux-low.h (class linux_process_target): Update.
3725 * lynx-low.cc (lynx_target_ops): Update.
3726 * nto-low.cc (nto_target_ops): Update.
3727 * win32-low.cc (win32_target_ops): Update.
3728
e2558df3
TBA
37292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3730
3731 Turn process_stratum_target's read_memory and write_memory
3732 ops into methods of process_target.
3733
3734 * target.h (struct process_stratum_target): Remove the target ops.
3735 (class process_target): Add the target ops.
3736
3737 Update the derived classes and callers below.
3738
3739 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3740 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3741 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3742 (arm_get_syscall_trapinfo): Update.
3743 * linux-cris-low.cc (cris_breakpoint_at): Update.
3744 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3745 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3746 * linux-mips-low.cc (mips_breakpoint_at): Update.
3747 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3748 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3749 * linux-sh-low.cc (sh_breakpoint_at): Update.
3750 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3751 (sparc_store_gregset_from_stack): Update.
3752 (sparc_breakpoint_at): Update.
3753 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3754 * linux-tile-low.cc (tile_breakpoint_at): Update.
3755 * linux-x86-low.cc (x86_breakpoint_at): Update.
3756 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3757 * mem-brea.cc (insert_memory_breakpoint): Update.
3758 (validate_inserted_breakpoint): Update.
3759 * target.cc (read_inferior_memory): Update.
3760 (target_write_memory): Update.
3761 * linux-low.cc (linux_target_ops): Update.
3762 (linux_read_memory): Make a wrapper around the read_memory target
3763 op call.
3764 (linux_process_target::read_memory): Rename from linux_read_memory.
3765 (linux_write_memory): Turn into ...
3766 (linux_process_target::write_memory): ... this.
3767 * linux-low.h (class linux_process_target): Update.
3768 * lynx-low.cc (lynx_target_ops): Update.
3769 (lynx_read_memory): Turn into ...
3770 (lynx_process_target::read_memory): ... this.
3771 (lynx_write_memory): Turn into ...
3772 (lynx_process_target::write_memory): ... this.
3773 * lynx-low.h (class lynx_process_target): Update.
3774 * nto-low.cc (nto_target_ops): Update.
3775 (nto_read_memory): Turn into ...
3776 (nto_process_target::read_memory): ... this.
3777 (nto_write_memory): Turn into ...
3778 (nto_process_target::write_memory): ... this.
3779 * nto-low.h (class nto_process_target): Update.
3780 * win32-low.cc (win32_target_ops): Update.
3781 (win32_read_inferior_memory): Turn into ...
3782 (win32_process_target::read_memory): ... this.
3783 (win32_write_inferior_memory): Turn into ...
3784 (win32_process_target::write_memory): ... this.
3785 * win32-low.h (class win32_process_target): Update.
3786
79b44087
TBA
37872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788
3789 Turn process_stratum_target's prepare_to_access_memory and
3790 done_accessing_memory ops into methods of process_target.
3791
3792 * target.h (struct process_stratum_target): Remove the target ops.
3793 (class process_target): Add the target ops.
3794 * target.cc (process_target::prepare_to_access_memory): Define.
3795 (process_target::done_accessing_memory): Define.
3796 (prepare_to_access_memory): Update.
3797 (done_accessing_memory): Update.
3798
3799 Update the derived classes and callers below.
3800
3801 * linux-low.cc (linux_target_ops): Update.
3802 (linux_prepare_to_access_memory): Turn into ...
3803 (linux_process_target::prepare_to_access_memory): ... this.
3804 (linux_done_accessing_memory): Turn into ...
3805 (linux_process_target::done_accessing_memory): ... this.
3806 * linux-low.h (class linux_process_target): Update.
3807 * lynx-low.cc (lynx_target_ops): Update.
3808 * nto-low.cc (nto_target_ops): Update.
3809 * win32-low.cc (win32_target_ops): Update.
3810
a5a4d4cd
TBA
38112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3812
3813 Turn process_stratum_target's fetch_registers and store_registers
3814 ops into methods of process_target.
3815
3816 * target.h (struct process_stratum_target): Remove the target ops.
3817 (class process_target): Add the target ops.
3818 (fetch_inferior_registers): Update the macro.
3819 (store_inferior_registers): Update the macro.
3820
3821 Update the derived classes and callers below.
3822
3823 * linux-low.cc (linux_target_ops): Update.
3824 (linux_fetch_registers): Turn into ...
3825 (linux_process_target::fetch_registers): ... this.
3826 (linux_store_registers): Turn into ...
3827 (linux_process_target::store_registers): ... this.
3828 * linux-low.h (class linux_process_target): Update.
3829 * lynx-low.cc (lynx_target_ops): Update.
3830 (lynx_fetch_registers): Turn into ...
3831 (lynx_process_target::fetch_registers): ... this.
3832 (lynx_store_registers): Turn into ...
3833 (lynx_process_target::store_registers): ... this.
3834 * lynx-low.h (class lynx_process_target): Update.
3835 * nto-low.cc (nto_target_ops): Update.
3836 (nto_fetch_registers): Turn into ...
3837 (nto_process_target::fetch_registers): ... this.
3838 (nto_store_registers): Turn into ...
3839 (nto_process_target::store_registers): ... this.
3840 * nto-low.h (class nto_process_target): Update.
3841 * win32-low.cc (win32_target_ops): Update.
3842 (win32_fetch_inferior_registers): Turn into ...
3843 (win32_process_target::fetch_registers): ... this.
3844 (win32_store_inferior_registers): Turn into ...
3845 (win32_process_target::store_registers): ... this.
3846 * win32-low.h (class win32_process_target): Update.
3847
6532e7e3
TBA
38482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3849
3850 Turn process_stratum_target's wait op into a method of
3851 process_target.
3852
3853 * target.h (struct process_stratum_target): Remove the target op.
3854 (class process_target): Add the target op.
3855
3856 Update the derived classes and callers below.
3857
3858 * target.cc (target_wait): Update.
3859 * linux-low.cc (linux_target_ops): Update.
3860 (linux_wait): Turn into ...
3861 (linux_process_target::wait): ... this.
3862 * linux-low.h (class linux_process_target): Update.
3863 * lynx-low.cc (lynx_target_ops): Update.
3864 (lynx_wait): Turn into ...
3865 (lynx_process_target::wait): ... this.
3866 * lynx-low.h (class lynx_process_target): Update.
3867 * nto-low.cc (nto_target_ops): Update.
3868 (nto_wait): Turn into ...
3869 (nto_process_target::wait): ... this.
3870 * nto-low.h (class nto_process_target): Update.
3871 * win32-low.cc (win32_target_ops): Update.
3872 (win32_wait): Turn into ...
3873 (win32_process_target::wait): ... this.
3874 (do_initial_child_stuff): Update.
3875 * win32-low.h (class win32_process_target): Update.
3876
0e4d7e35
TBA
38772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3878
3879 Turn process_stratum_target's resume op into a method of
3880 process_target.
3881
3882 * target.h (struct process_stratum_target): Remove the target op.
3883 (class process_target): Add the target op.
3884
3885 Update the derived classes and callers below.
3886
3887 * server.cc (resume): Update.
3888 * target.cc (target_stop_and_wait): Update.
3889 (target_continue_no_signal): Update.
3890 (target_continue): Update.
3891 * linux-low.cc (linux_target_ops): Update.
3892 (linux_resume): Turn into ...
3893 (linux_process_target::resume): ... this.
3894 * linux-low.h (class linux_process_target): Update.
3895 * lynx-low.cc (lynx_target_ops): Update.
3896 (lynx_resume): Turn into ...
3897 (lynx_process_target::resume): ... this.
3898 * lynx-low.h (class lynx_process_target): Update.
3899 * nto-low.cc (nto_target_ops): Update.
3900 (nto_resume): Turn into ...
3901 (nto_process_target::resume): ... this.
3902 * nto-low.h (class nto_process_target): Update.
3903 * win32-low.cc (win32_target_ops): Update.
3904 (win32_resume): Turn into ...
3905 (win32_process_target::resume): ... this.
3906 (win32_process_target::detach): Update.
3907 (do_initial_child_stuff): Update.
3908 * win32-low.h (class win32_process_target): Update.
3909
13d3d99b
TBA
39102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3911
3912 Turn process_stratum_target's thread_alive op into a method of
3913 process_target.
3914
3915 * target.h (struct process_stratum_target): Remove the target op.
3916 (class process_target): Add the target op.
3917 (mythread_alive): Update the macro.
3918
3919 Update the derived classes and callers below.
3920
3921 * linux-low.cc (linux_target_ops): Update.
3922 (linux_thread_alive): Turn into ...
3923 (linux_process_target::thread_alive): ... this.
3924 (wait_for_sigstop): Update.
3925 * linux-low.h (class linux_process_target): Update.
3926 * lynx-low.cc (lynx_target_ops): Update.
3927 (lynx_thread_alive): Turn into ...
3928 (lynx_process_target::thread_alive): ... this.
3929 * lynx-low.h (class lynx_process_target): Update.
3930 * nto-low.cc (nto_target_ops): Update.
3931 (nto_thread_alive): Turn into ...
3932 (nto_process_target::thread_alive): ... this.
3933 * nto-low.h (class nto_process_target): Update.
3934 * win32-low.cc (win32_target_ops): Update.
3935 (win32_thread_alive): Turn into ...
3936 (win32_process_target::thread_alive): ... this.
3937 * win32-low.h (class win32_process_target): Update.
3938
95a49a39
TBA
39392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3940
3941 Turn process_stratum_target's join op into a method of
3942 process_target.
3943
3944 * target.h (struct process_stratum_target): Remove the target op.
3945 (class process_target): Add the target op.
3946 (join_inferior): Update the macro.
3947
3948 Update the derived classes and callers below.
3949
3950 * linux-low.cc (linux_target_ops): Update.
3951 (linux_join): Turn into ...
3952 (linux_process_target::join): ... this.
3953 * linux-low.h (class linux_process_target): Update.
3954 * lynx-low.cc (lynx_target_ops): Update.
3955 (lynx_join): Turn into ...
3956 (lynx_process_target::join): ... this.
3957 * lynx-low.h (class lynx_process_target): Update.
3958 * nto-low.cc (nto_target_ops): Update.
3959 (nto_process_target::join): Define.
3960 * nto-low.h (class nto_process_target): Update.
3961 * win32-low.cc (win32_target_ops): Update.
3962 (win32_join): Turn into ...
3963 (win32_process_target::join): ... this.
3964 * win32-low.h (class win32_process_target): Update.
3965
8adb37b9
TBA
39662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3967
3968 Turn process_stratum_target's mourn op into a method of
3969 process_target.
3970
3971 * target.h (struct process_stratum_target): Remove the target op.
3972 (class process_target): Add the target op.
3973
3974 Update the derived classes and callers below.
3975
3976 * target.cc (target_mourn_inferior): Update.
3977 * linux-low.cc (linux_target_ops): Update.
3978 (linux_mourn): Turn into ...
3979 (linux_process_target::mourn): ... this.
3980 (handle_extended_wait): Update.
3981 (linux_process_target::kill): Update.
3982 (linux_process_target::detach): Update.
3983 * linux-low.h (class linux_process_target): Update.
3984 * lynx-low.cc (lynx_target_ops): Update.
3985 (lynx_mourn): Turn into ...
3986 (lynx_process_target::mourn): ... this.
3987 * lynx-low.h (class lynx_process_target): Update.
3988 * nto-low.cc (nto_target_ops): Update.
3989 (nto_mourn): Turn into ...
3990 (nto_process_target::mourn): ... this.
3991 * nto-low.h (class nto_process_target): Update.
3992 * win32-low.cc (win32_target_ops): Update.
3993 (win32_mourn): Turn into ...
3994 (win32_process_target::mourn): ... this.
3995 * win32-low.h (class win32_process_target): Update.
3996
9061c9cf
TBA
39972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3998
3999 Turn process_stratum_target's detach op into a method of
4000 process_target.
4001
4002 * target.h (struct process_stratum_target): Remove the target op.
4003 (class process_target): Add the target op.
4004 (detach_inferior): Update the macro.
4005
4006 Update the derived classes and callers below.
4007
4008 * linux-low.cc (linux_target_ops): Update.
4009 (linux_detach): Turn into ...
4010 (linux_process_target::detach): ... this.
4011 * linux-low.h (class linux_process_target): Update.
4012 * lynx-low.cc (lynx_target_ops): Update.
4013 (lynx_detach): Turn into ...
4014 (lynx_process_target::detach): ... this.
4015 * lynx-low.h (class lynx_process_target): Update.
4016 * nto-low.cc (nto_target_ops): Update.
4017 (nto_detach): Turn into ...
4018 (nto_process_target::detach): ... this.
4019 * nto-low.h (class nto_process_target): Update.
4020 * win32-low.cc (win32_target_ops): Update.
4021 (win32_detach): Turn into ...
4022 (win32_process_target::detach): ... this.
4023 * win32-low.h (class win32_process_target): Update.
4024
c6885a57
TBA
40252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4026
4027 Turn process_stratum_target's kill op into a method of
4028 process_target.
4029
4030 * target.h (struct process_stratum_target): Remove the target op.
4031 (class process_target): Add the target op.
4032
4033 Update the derived classes and callers below.
4034
4035 * target.cc (kill_inferior): Update.
4036 * linux-low.cc (linux_target_ops): Update.
4037 (linux_kill): Turn into ...
4038 (linux_process_target::kill): ... this.
4039 * linux-low.h (class linux_process_target): Update.
4040 * lynx-low.cc (lynx_target_ops): Update.
4041 (lynx_kill): Turn into ...
4042 (lynx_process_target::kill): ... this.
4043 * lynx-low.h (class lynx_process_target): Update.
4044 * nto-low.cc (nto_target_ops): Update.
4045 (nto_kill): Turn into ...
4046 (nto_process_target::kill): ... this.
4047 * nto-low.h (class nto_process_target): Update.
4048 * win32-low.cc (win32_target_ops): Update.
4049 (win32_kill): Turn into ...
4050 (win32_process_target::kill): ... this.
4051 * win32-low.h (class win32_process_target): Update.
4052
ef03dad8
TBA
40532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4054
4055 Turn process_stratum_target's attach op into a method of
4056 process_target.
4057
4058 * target.h (struct process_stratum_target): Remove the target op.
4059 (class process_target): Add the target op.
4060 (myattach): Update the macro.
4061
4062 Update the derived classes and callers below.
4063
4064 * linux-low.cc (linux_target_ops): Update.
4065 (linux_attach): Turn into ...
4066 (linux_process_target::attach): ... this.
4067 * linux-low.h (class linux_process_target): Update.
4068 * lynx-low.cc (lynx_target_ops): Update.
4069 (lynx_attach): Turn into ...
4070 (lynx_process_target::attach): ... this.
4071 * lynx-low.h (class lynx_process_target): Update.
4072 * nto-low.cc (nto_target_ops): Update.
4073 (nto_attach): Turn into ...
4074 (nto_process_target::attach): ... this.
4075 * nto-low.h (class nto_process_target): Update.
4076 * win32-low.cc (win32_target_ops): Update.
4077 (win32_attach): Turn into ...
4078 (win32_process_target::attach): ... this.
4079 * win32-low.h (class win32_process_target): Update.
4080
6dee9afb
TBA
40812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4082
4083 Turn process_stratum_target's post_create_inferior op into a method
4084 of process_target.
4085
4086 * target.h (struct process_stratum_target): Remove the target op.
4087 (class process_target): Add the target op.
4088 (target_post_create_inferior): Update the macro.
4089 * target.cc (process_target::post_create_inferior): Define.
4090
4091 Update the derived classes and callers below.
4092
4093 * linux-low.cc (linux_target_ops): Update.
4094 (linux_post_create_inferior): Turn into ...
4095 (linux_process_target::post_create_inferior): ... this.
4096 * linux-low.h (class linux_process_target): Update.
4097 * lynx-low.cc (lynx_target_ops): Update.
4098 * nto-low.cc (nto_target_ops): Update.
4099 * win32-low.cc (win32_target_ops): Update.
4100
15295543
TBA
41012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4102
4103 Turn process_stratum_target's create_inferior op into a method of
4104 process_target.
4105
4106 * target.h (struct process_stratum_target): Remove the target op.
4107 (class process_target): Add the target op.
4108 (create_inferior): Rename the macro to ...
4109 (target_create_inferior): ... this.
4110
4111 Update the derived classes and callers below.
4112
4113 * server.cc (handle_v_run): Update.
4114 (captured_main): Update.
4115 (process_serial_event): Update.
4116 * linux-low.cc (linux_target_ops): Update.
4117 (linux_create_inferior): Turn into ...
4118 (linux_process_target::create_inferior): ... this.
4119 * linux-low.h (class linux_process_target): Update.
4120 * lynx-low.cc (lynx_target_ops): Update.
4121 (lynx_create_inferior): Turn into ...
4122 (lynx_process_target::create_inferior): ... this.
4123 * lynx-low.h (class lynx_process_target): Update.
4124 * nto-low.cc (nto_target_ops): Update.
4125 (nto_create_inferior): Turn into ...
4126 (nto_process_target::create_inferior): ... this.
4127 * nto-low.h (class nto_process_target): Update.
4128 * win32-low.cc (win32_target_ops): Update.
4129 (win32_create_inferior): Turn into ...
4130 (win32_process_target::create_inferior): ... this.
4131 * win32-low.h (class win32_process_target): Update.
4132
5ef9273d
TBA
41332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4134
4135 * target.h (class process_target): New class definition.
4136 (struct process_stratum_target) <pt>: New field with type
4137 'process_target*'.
4138 * linux-low.h (class linux_process_target): Define as a derived
4139 class of 'process_target'.
4140 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4141 as the 'pt' field.
4142 * lynx-low.h (class lynx_process_target): Define as a derived
4143 class of 'process_target'.
4144 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4145 as the 'pt' field.
4146 * nto-low.h (class nto_process_target): Define as a derived
4147 class of 'process_target'.
4148 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4149 as the 'pt' field.
4150 * win32-low.h (class win32_process_target): Define as a derived
4151 class of 'process_target'.
4152 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4153 as the 'pt' field.
4154
9f1528a1
AB
41552020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4156
4157 * configure: Regenerate.
4158
bf84f706
MR
41592020-02-19 Maciej W. Rozycki <macro@wdc.com>
4160 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * linux-riscv-low.cc: New file.
4163 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4164 and nat/riscv-linux-tdesc.c.
4165 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4166 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4167 Define.
4168
1a627e7e
TT
41692020-02-14 Tom Tromey <tom@tromey.com>
4170
4171 * acinclude.m4: Don't include acx_configure_dir.m4.
4172 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4173 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4174 (all, install-only, uninstall, clean-info, clean)
4175 (maintainer-clean): Don't recurse.
4176 (subdir_do, all-lib): Remove.
4177 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4178 (GNULIB_H): Remove.
4179 (generated_files): Update.
4180 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4181 * configure: Rebuild.
4182 * configure.ac: Don't configure gnulib or libiberty.
4183 (GNULIB): Update.
4184
a9b34532
EZ
41852020-02-14 Eli Zaretskii <eliz@gnu.org>
4186
4187 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4188 preparing the command line for CreateProcess.
4189 (win32_create_inferior): Reflect the program name in debugging
4190 output that shows the process and its command line.
4191
feacfcac
SM
41922020-02-13 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * Makefile.in: Rename source files from .c to .cc.
4195 * %.c: Rename to %.cc.
4196 * configure.ac: Rename server.c to server.cc.
4197 * configure: Re-generate.
4198
06b3c5bd
SM
41992020-02-13 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4202
052793ad
HD
42032020-02-12 Hannes Domani <ssbssa@yahoo.de>
4204
4205 * win32-low.c (win32_create_inferior): Set signal_pid.
4206
f20e3e82
MR
42072020-02-12 Maciej W. Rozycki <macro@wdc.com>
4208 Pedro Alves <palves@redhat.com>
4209
4210 Skip building gdbserver in a cross-configuration.
4211 * configure.srv: Set $gdbserver_host depending on whether $target
4212 is $host. Use $gdbserver_host instead of $host.
4213
8ddd8e0e
SM
42142020-02-11 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * configure: Re-generate.
4217
898e7f60
SM
42182020-02-11 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * configure: Re-generate.
4221
58df732b
SM
42222020-02-11 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * acinclude.m4: Update warning.m4 path.
4225
7928d571
HD
42262020-02-09 Hannes Domani <ssbssa@yahoo.de>
4227
4228 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4229 (handle_exception): Set siginfo_er.
4230 (win32_xfer_siginfo): New function.
4231
919adfe8
TT
42322020-02-07 Tom Tromey <tom@tromey.com>
4233 Pedro Alves <palves@redhat.com>
4234
4235 * README: Update build documentation.
4236 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4237 host, not target.
4238 * configure.ac: Update paths.
4239 * configure: Rebuild.
4240 * acinclude.m4: Update paths.
4241 * Makefile.in: Update include paths.
4242 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4243 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4244 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4245 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4246 (%-generated.c): Update paths.
4247 * Move entire directory from ../gdb/gdbserver.
4248
287c844a
MR
42492020-01-29 Maciej W. Rozycki <macro@wdc.com>
4250
4251 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4252
548a204f
PFC
42532020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4254
4255 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4256 assignment instead of srv_linux_obj.
4257
a2236a08
HD
42582020-01-28 Hannes Domani <ssbssa@yahoo.de>
4259
4260 * server.c (handle_qxfer_libraries): Write segment-address with
4261 paddress.
4262
bdaed379
HD
42632020-01-24 Hannes Domani <ssbssa@yahoo.de>
4264
4265 * Makefile.in (install-strip): New target.
4266 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4267 * aclocal.m4: Regenerate.
4268 * configure: Regenerate.
4269 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4270
42cd72aa
MR
42712020-01-24 Maciej W. Rozycki <macro@wdc.com>
4272
4273 * Makefile.in (SFILES): Adjust paths to point to real files.
4274 (OBS): Move waitstatus.o to target/waitstatus.o.
4275 (TAGS): Transform paths appropriately.
4276 (%.o): Rename to...
4277 (nat/%.o): ... this pattern rule.
4278 (%.o): Rename to...
4279 (target/%.o): ... this pattern rule.
4280 * configure.srv: Adjust paths throughout to include nat/ prefix
4281 with the revant files.
4282 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4283 * configure: Regenerate.
4284
42ba50ec
MR
42852020-01-24 Maciej W. Rozycki <macro@wdc.com>
4286
4287 * Makefile.in (TAGS): Remove config files from the recipe.
4288
05ea2a05
TT
42892020-01-14 Tom Tromey <tom@tromey.com>
4290
4291 * configure: Rebuild.
4292 * configure.ac: Remove any checks that were added to common.m4.
4293 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4294 lib-link.m4.
4295
01027315
TT
42962020-01-14 Tom Tromey <tom@tromey.com>
4297
4298 * server.h: Include config.h.
4299 * gdbreplay.c: Include config.h.
4300 * configure: Rebuild.
4301 * configure.ac: Don't source common.host.
4302 * acinclude.m4: Update path.
4303 * Makefile.in (INCSUPPORT): New variable.
4304 (INCLUDE_CFLAGS): Add INCSUPPORT.
4305 (SFILES): Update paths.
4306 (version-generated.c): Update path to create-version.sh.
4307 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4308
b2ceabe8
TT
43092020-01-14 Tom Tromey <tom@tromey.com>
4310
4311 * configure.ac (LIBS): Use WIN32APILIBS.
4312 (USE_WIN32API): Don't define.
4313 * configure: Rebuild.
4314
25c51f71
TT
43152020-01-14 Tom Tromey <tom@tromey.com>
4316
4317 * configure: Rebuild.
4318
c0bd321d
SM
43192020-01-13 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * Makefile.in (%-generated.c): Remove rule for files from
4322 regformats/i386.
4323
bb564c58
SM
43242020-01-13 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * configure: Re-generate.
4327
6e37c371
SM
43282020-01-13 Simon Marchi <simon.marchi@efficios.com>
4329
4330 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4331 Define to static.
4332 * tracepoint.c (stop_tracing, flush_trace_buffer,
4333 about_to_request_buffer_space, get_trace_state_variable_value,
4334 set_trace_state_variable_value, gdb_collect): Add declaration.
4335
df4a0200
SM
43362020-01-13 Simon Marchi <simon.marchi@efficios.com>
4337
4338 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4339 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4340 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4341 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4342 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4343 static.
4344
89e94ec9
SM
43452020-01-13 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * inferiors.c: Include gdbsupport/common-inferior.h.
4348
2552728a
SM
43492020-01-13 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * hostio-errno.c: Include hostio.h.
4352
4025fa09
SM
43532020-01-13 Simon Marchi <simon.marchi@efficios.com>
4354
4355 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4356 prerequisite.
4357
c0b0a142
SM
43582020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4359
4360 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4361 * linux-arm-tdesc.h: Include arch/arm.h.
4362
bb1183e2
SM
43632020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4364
4365 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4366
f5df0b5f
SM
43672020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4370 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4371
5b6d1e4f
PA
43722020-01-10 Pedro Alves <palves@redhat.com>
4373
4374 * fork-child.c (post_fork_inferior): Pass target down to
4375 startup_inferior.
4376 * inferiors.c (switch_to_thread): Add process_stratum_target
4377 parameter.
4378 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4379 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4380 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4381 * remote-utils.c (prepare_resume_reply): Pass the target to
4382 switch_to_thread.
4383 * target.c (the_target): Now a process_stratum_target.
4384 (done_accessing_memory): Pass the target to switch_to_thread.
4385 (set_target_ops): Ajust to use process_stratum_target.
4386 * target.h (struct target_ops): Rename to ...
4387 (struct process_stratum_target): ... this.
4388 (the_target, set_target_ops): Adjust.
4389 (prepare_to_access_memory): Adjust comment.
4390 * win32-low.c (child_xfer_memory): Adjust to use
4391 process_stratum_target.
4392 (win32_target_ops): Now a process_stratum_target.
4393
559e7e50
EZ
43942020-01-06 Eli Zaretskii <eliz@gnu.org>
4395 Pedro Alves <palves@redhat.com>
4396
4397 * win32-low.c (get_child_debug_event): Extract the fatal exception
4398 from the exit status and convert to the equivalent Posix signal
4399 number.
4400 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4401 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4402
48189bec
HD
44032020-01-01 Hannes Domani <ssbssa@yahoo.de>
4404
4405 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4406
5dd8bf88
JB
44072020-01-01 Joel Brobecker <brobecker@adacore.com>
4408
4409 * server.c (gdbserver_version): Change copyright year to 2020.
4410 * gdbreplay.c (gdbreplay_version): Likewise.
4411
0ad6b8ee
CB
44122019-12-19 Christian Biesinger <cbiesinger@google.com>
4413
4414 * configure: Regenerate.
4415 * configure.ac: Quote variable arguments of test.
4416
1ee7b812
BE
44172019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4418
4419 * Makefile.in: Fix build with GNU Make 3.81
4420
d9fa87f4
TT
44212019-12-16 Tom Tromey <tromey@adacore.com>
4422
4423 * server.c (get_exec_file): Constify result.
4424
ab7d13f0
CB
44252019-12-10 Christian Biesinger <cbiesinger@google.com>
4426
4427 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4428 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4429 * config.in: Regenerate.
4430 * configure: Regenerate.
4431 * configure.ac: Don't check for strerror.
4432 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4433 Call safe_strerror instead of strerror.
4434 * server.h (strerror): Remove this now-unnecessary declaration.
4435 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4436 strerror.
4437 (gdb_agent_helper_thread): Likewise.
4438 * utils.c (perror_with_name): Likewise.
4439
4da8c3a8
TT
44402019-11-26 Tom Tromey <tom@tromey.com>
4441
4442 * configure, config.in: Rebuild.
4443
21987b9c
TT
44442019-11-26 Tom Tromey <tom@tromey.com>
4445
4446 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4447 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4448 gdb_sigmask.
4449 * configure, config.in: Rebuild.
4450
5e030278
TT
44512019-11-26 Tom Tromey <tom@tromey.com>
4452
4453 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4454 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4455 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4456 * acinclude.m4: Include ax_pthread.m4.
4457 * config.in, configure: Rebuild.
4458
6d91ce9a
CB
44592019-11-26 Christian Biesinger <cbiesinger@google.com>
4460
4461 * debug.c (debug_set_output): Call safe_strerror instead of
4462 strerror.
4463 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4464 (linux_kill_one_lwp): Likewise.
4465 (linux_detach_one_lwp): Likewise.
4466 (linux_wait_for_event_filtered): Likewise.
4467 (store_register): Likewise.
4468 * lynx-low.c (lynx_attach): Likewise.
4469 * mem-break.c (insert_memory_breakpoint): Likewise.
4470 (remove_memory_breakpoint): Likewise.
4471 (delete_fast_tracepoint_jump): Likewise.
4472 (set_fast_tracepoint_jump): Likewise.
4473 (uninsert_fast_tracepoint_jumps_at): Likewise.
4474 (reinsert_fast_tracepoint_jumps_at): Likewise.
4475 * nto-low.c (nto_xfer_memory): Likewise.
4476 (nto_resume): Likewise.
4477
6cdd651f
LM
44782019-11-20 Luis Machado <luis.machado@linaro.org>
4479
4480 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4481 instead of register count.
4482 * tdesc.c (tdesc_contains_feature): New function.
4483 * tdesc.h (tdesc_contains_feature): New prototype.
4484
cd850b40
CB
44852019-11-15 Christian Biesinger <cbiesinger@google.com>
4486
4487 * Makefile.in: Add safe-strerror.c.
4488 * configure: Regenerate.
4489 * configure.ac: Don't source common.host.
4490
5abebf3c
CB
44912019-11-15 Christian Biesinger <cbiesinger@google.com>
4492
4493 * config.in: Regenerate.
4494 * configure: Regenerate.
4495
e06f3d6e
AB
44962019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * ax.c (ax_printf): Handle size_t_arg.
4499
ca3a04f6
CB
45002019-11-06 Christian Biesinger <cbiesinger@google.com>
4501
4502 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4503 * mi/mi-main.c (output_cores): Likewise.
4504 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4505 (linux_xfer_osdata_modules): Likewise.
4506 * remote.c (register_remote_support_xml): Likewise.
4507 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4508 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4509
e48f6033
CB
45102019-11-01 Christian Biesinger <cbiesinger@google.com>
4511
4512 * configure: Regenerate.
4513 * configure.ac: Remove check for strerror_r.
4514
e7e97a2e
CB
45152019-10-31 Christian Biesinger <cbiesinger@google.com>
4516
4517 * config.in: Regenerate.
4518 * configure: Regenerate.
4519 * configure.ac: Also check for strerror_r.
4520
75cafaa6
CB
45212019-10-31 Christian Biesinger <cbiesinger@google.com>
4522
4523 * ax.h (debug_agent): Remove duplicate declaration.
4524
30baf67b
TV
45252019-10-26 Tom de Vries <tdevries@suse.de>
4526
4527 * linux-aarch64-low.c: Fix typos in comments.
4528 * linux-arm-low.c: Same.
4529 * linux-low.c: Same.
4530 * linux-ppc-low.c: Same.
4531 * proc-service.c: Same.
4532 * regcache.h: Same.
4533 * server.c: Same.
4534 * tracepoint.c: Same.
4535 * win32-low.c: Same.
4536
52c64cf7
TT
45372019-10-25 Tom Tromey <tromey@adacore.com>
4538
4539 * utils.c (xstrdup): Remove.
4540
c12d372d
TT
45412019-10-23 Tom Tromey <tom@tromey.com>
4542
4543 * configure, config.in: Rebuild.
4544
4d0b984b
TT
45452019-10-23 Tom Tromey <tom@tromey.com>
4546
4547 * configure: Rebuild.
4548 * acinclude.m4: Use m4_include, not sinclude.
4549
c5adaa19
TT
45502019-10-17 Tom Tromey <tromey@adacore.com>
4551
4552 * configure: Rebuild.
4553 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4554 in AC_CONFIG_FILES invocation.
4555 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4556 invocation.
4557
fec4e896
CB
45582019-10-16 Christian Biesinger <cbiesinger@google.com>
4559
4560 * server.c: Include xml-builtin.h.
4561 (get_xml_features): Don't declare xml_builtins here.
4562
00975ff6
AB
45632019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * Makefile.in: Remove references to vec-ipa.o.
4566
0dc32745
AB
45672019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * Makefile.in: Remove references to vec.c.
4570
3e6ec53a
CB
45712019-10-02 Christian Biesinger <cbiesinger@google.com>
4572
4573 * server.c (server_waiting): Change to bool.
4574 (extended_protocol): Likewise.
4575 (response_needed): Likewise.
4576 (exit_requested): Likewise.
4577 (run_once): Likewise.
4578 (report_no_resumed): Likewise.
4579 (non_stop): Likewise.
4580 (disable_packet_vCont): Likewise.
4581 (disable_packet_Tthread): Likewise.
4582 (disable_packet_qC): Likewise.
4583 (disable_packet_qfThreadInfo): Likewise.
4584 (handle_general_set): Update.
4585 (handle_detach): Update.
4586 (handle_monitor_command): Update.
4587 (handle_query): Update.
4588 (captured_main): Update.
4589 (process_serial_event): Update.
4590 * server.h (server_waiting): Change to bool.
4591 (disable_packet_vCont): Likewise.
4592 (disable_packet_Tthread): Likewise.
4593 (disable_packet_qC): Likewise.
4594 (disable_packet_qfThreadInfo): Likewise.
4595 (run_once): Likewise.
4596 (non_stop): Likewise.
4597 * target.c (target_stop_and_wait): Update.
4598
80fd2826
TT
45992019-10-02 Tom Tromey <tromey@adacore.com>
4600
4601 * Makefile.in (SFILES): Add common-inferior.c.
4602 (OBS): Add common-inferior.o.
4603 * server.c (startup_with_shell): Don't define.
4604
46f29a9a
AB
46052019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 * linux-low.c (linux_low_read_btrace): Update for change to
4608 std::vector.
4609
f9d949fb
CB
46102019-09-20 Christian Biesinger <cbiesinger@google.com>
4611
4612 * debug.c (debug_threads): Remove comment in favor of the header.
4613 * debug.h (using_threads): Add declaration.
4614 (debug_threads): Add comment.
4615 * linux-aarch64-low.c: Include debug.h and remove declaration of
4616 debug_threads.
4617 * nto-low.c: Likewise.
4618 * remote-utils.c: Likewise.
4619 * thread-db.c: Likewise.
4620
abf516c6
UW
46212019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4622
4623 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4624 and powerpc-cell64l-ipa.o.
4625 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4626 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4627 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4628 (spu*-*-*): Remove.
4629
4630 * spu-low.c: Remove file.
4631
4632 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4633 (parse_spufs_run): Remove.
4634 (ppc_get_pc): Remove Cell/B.E. support.
4635 (ppc_set_pc): Likewise.
4636 (ppc_breakpoint_at): Likewise.
4637 (ppc_arch_setup): Likewise.
4638 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4639 tdesc_powerpc_cell32l.
4640 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4641 or init_registers_powerpc_cell32l.
4642 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4643 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4644 or init_registers_powerpc_cell32l.
4645 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4646 (init_registers_powerpc_cell32l): Remove prototype.
4647 (init_registers_powerpc_cell64l): Likewise.
4648
4649 * target.h (struct target_ops): Remove qxfer_spu member.
4650 * server.c (handle_qxfer_spu): Remove.
4651 (qxfer_packets): Remove entry for "spu".
4652 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4653 * linux-low.c (SPUFS_MAGIC): Remove.
4654 (spu_enumerate_spu_ids): Remove.
4655 (linux_qxfer_spu): Remove.
4656 (linux_target_ops): Remove qxfer_spu member.
4657 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4658 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4659 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4660
2d41fa11
SDJ
46612019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4662
4663 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4664 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4665 * config.in: Regenerate.
4666 * configure: Regenerate.
4667
d59b55f0
TT
46682019-08-15 Tom Tromey <tromey@adacore.com>
4669
4670 * target.c (target_write_memory): Use gdb::byte_vector.
4671
4196ab2a
TT
46722019-08-15 Tom Tromey <tromey@adacore.com>
4673
4674 * tracepoint.c (write_inferior_data_pointer)
4675 (write_inferior_integer, write_inferior_int8)
4676 (write_inferior_uinteger, m_tracepoint_action_download)
4677 (r_tracepoint_action_download, x_tracepoint_action_download)
4678 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4679 (download_agent_expr, download_tracepoint_1)
4680 (download_trace_state_variables, upload_fast_traceframes): Update.
4681 * server.c (gdb_write_memory): Update.
4682 * remote-utils.c (relocate_instruction): Update.
4683 * proc-service.c (ps_pdwrite): Update.
4684 * mem-break.c (remove_memory_breakpoint)
4685 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4686 (uninsert_fast_tracepoint_jumps_at)
4687 (reinsert_fast_tracepoint_jumps_at): Update.
4688 * linux-x86-low.c (append_insns)
4689 (i386_install_fast_tracepoint_jump_pad)
4690 (amd64_write_goto_address, i386_write_goto_address): Update.
4691 * linux-s390-low.c (append_insns, s390_write_goto_address):
4692 Update.
4693 * linux-ppc-low.c (ppc_relocate_instruction)
4694 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4695 (ppc_write_goto_address): Update.
4696 * linux-aarch64-low.c (append_insns): Update.
4697 * target.h (struct target_ops): Update.
4698 (write_inferior_memory): Don't declare.
4699 * target.c (target_write_memory): Rename from
4700 write_inferior_memory. Remove old target_write_memory.
4701
c6778d00
TT
47022019-08-15 Tom Tromey <tromey@adacore.com>
4703
4704 * target.c (write_inferior_memory): Use std::vector.
4705
404f2902
FCE
47062019-08-06 Frank Ch. Eigler <fche@redhat.com>
4707
4708 PR build/24886
4709 * configure.ac: Drop enable-libmcheck support.
4710 * configure, config.in: Rebuild.
4711 * acinclude.m4: Don't include it.
4712
4c5aa8e0
AH
47132019-07-19 Alan Hayward <alan.hayward@arm.com>
4714
4715 * configure.srv: Remove Arm xml files.
4716
7cc17433
AH
47172019-07-19 Alan Hayward <alan.hayward@arm.com>
4718
4719 * configure.srv: Add new files. Remove xml generated files.
4720 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4721 registers.
4722 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4723 * linux-aarch32-tdesc.c: New file.
4724 * linux-aarch32-tdesc.h: New file.
4725 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4726 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4727 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4728 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4729 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4730 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4731 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4732 (arm_read_description): Call arm_linux_read_description.
4733 (initialize_low_arch): Don't init registers.
4734 * linux-arm-tdesc.c: New file.
4735 * linux-arm-tdesc.h: New file.
4736
166a82be
AH
47372019-07-10 Alan Hayward <alan.hayward@arm.com>
4738
4739 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4740 Move counter inside for.
4741 (arm_read_description): Check ptrace earlier.
4742 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4743
268a13a5
TT
47442019-07-09 Tom Tromey <tom@tromey.com>
4745
4746 * configure: Rebuild.
4747 * configure.ac: Change common to gdbsupport.
4748 * acinclude.m4: Change common to gdbsupport.
4749 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4750 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4751 common to gdbsupport.
4752 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4753 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4754 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4755 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4756 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4757 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4758 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4759 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4760 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4761 common to gdbsupport.
4762
350fab54
AH
47632019-07-04 Alan Hayward <alan.hayward@arm.com>
4764
4765 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4766 defines.
4767 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4768
2b40fda7
AH
47692019-07-04 Alan Hayward <alan.hayward@arm.com>
4770
4771 * configure.srv: Remove legacy xml.
4772 * linux-aarch64-low.c (initialize_low_arch): Remove
4773 initialize_low_tdesc call.
4774 * linux-aarch64-tdesc-selftest.c: Remove file.
4775 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4776 * linux-x86-low.c (initialize_low_arch): Remove
4777 initialize_low_tdesc call.
4778 * linux-x86-tdesc-selftest.c: Remove file.
4779 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4780
7d10623d
TV
47812019-06-20 Tom de Vries <tdevries@suse.de>
4782
4783 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4784 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4785
8d6a48df
TV
47862019-06-19 Tom de Vries <tdevries@suse.de>
4787
4788 * debug.h (debug_write): Change return type to ssize_t.
4789 * debug.c (debug_write): Same.
4790
73cc7272
TT
47912019-06-14 Tom Tromey <tom@tromey.com>
4792
4793 * configure.ac: Use new path to gnulib.
4794 * configure: Rebuild.
4795 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4796 to gnulib.
4797
08f10e02
TT
47982019-06-11 Tom Tromey <tom@tromey.com>
4799
4800 * Makefile.in (SFILES): Add alloc.c.
4801 (OBS): Add alloc.o.
4802 (IPA_OBJS): Add alloc-ipa.o.
4803 (alloc-ipa.o): New target.
4804 (%.o: ../%.c): New pattern rule.
4805
422186a9
TT
48062019-06-10 Tom Tromey <tromey@adacore.com>
4807
4808 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4809 end warning with a newline.
4810 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4811 newline.
4812 * thread-db.c (attach_thread): Don't end warning with a newline.
4813 (thread_db_notice_clone): Likewise.
4814 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4815 newline.
4816 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4817 end warning with a newline.
4818
b02f78f9
PA
48192019-06-04 Pedro Alves <palves@redhat.com>
4820
4821 * server.c (captured_main): Use make_unique_xstrdup.
4822
88ed7edb
TT
48232019-06-02 Tom Tromey <tom@tromey.com>
4824
4825 * gdbreplay.c (fromhex): Remove.
4826 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4827
33a6bc35
TT
48282019-05-29 Tom Tromey <tromey@adacore.com>
4829
4830 * configure: Rebuild.
4831
e90a813d
KB
48322019-05-06 Kevin Buettner <kevinb@redhat.com>
4833
4834 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4835 sign extension code on 32-bit builds.
4836
353ea2d1
EZ
48372019-05-03 Eli Zaretskii <eliz@gnu.org>
4838
4839 * remote-utils.c:
4840 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4841
b494cdff
TT
48422019-04-19 Tom Tromey <tom@tromey.com>
4843
4844 * server.c (struct vstop_notif): Derive from notif_event.
4845 <base>: Remove.
4846 (queue_stop_reply): Update.
4847 (remove_all_on_match_ptid): Change type. Rewrite.
4848 (discard_queued_stop_replies): Rewrite.
4849 (in_queued_stop_replies_ptid): Change type.
4850 (in_queued_stop_replies): Rewrite.
4851 (notif_stop): Update.
4852 (queue_stop_reply_callback): Update.
4853 (captured_main): Don't call initialize_notif.
4854 (push_stop_notification): Update.
4855 * notif.c (notif_write_event, handle_notif_ack)
4856 (notif_event_enque, notif_push): Update.
4857 (notif_event_xfree, initialize_notif): Remove.
4858 * notif.h (struct notif_event): Include <list>, not
4859 "common/queue.h".
4860 (struct notif_server) <queue>: Now a std::list.
4861 (notif_event_p): Remove typedef.
4862 (initialize_notif): Don't declare.
4863 (struct notif_event): Add virtual destructor.
4864
a7e559cc
AH
48652019-04-17 Alan Hayward <alan.hayward@arm.com>
4866
4867 * ax.c (ax_vdebug): Call debug_printf.
4868 * debug.c (debug_write): New function.
4869 * debug.h (debug_write): New declaration.
4870 * linux-low.c (sigchld_handler): Call debug_write.
4871
aeb2e706
AH
48722019-04-17 Alan Hayward <alan.hayward@arm.com>
4873
4874 * debug.c (debug_set_output): New function.
4875 (debug_vprintf): Send output to debug_file.
4876 (debug_flush): Likewise.
4877 * debug.h (debug_set_output): New declaration.
4878 * server.c (handle_monitor_command): Add debug-file option.
4879 (captured_main): Likewise.
4880
c1bc0935
AH
48812019-04-17 Alan Hayward <alan.hayward@arm.com>
4882
4883 * debug.c (remote_debug): Add definition.
4884 * debug.h (remote_debug): Add declaration.
4885 * hostio.c (remote_debug): Remove declaration.
4886 * remote-utils.c (struct ui_file): Likewise.
4887 (remote_debug): Likewise.
4888 * remote-utils.h (remote_debug): Likewise,
4889 * server.c (remote_debug): Remove definition.
4890
3f52fdbc
KB
48912019-04-10 Kevin Buettner <kevinb@redhat.com>
4892
4893 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4894 when using a 64-bit gdbserver.
4895
b0319eaa
TT
48962019-04-09 Tom Tromey <tromey@adacore.com>
4897
4898 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4899
eedc3f4f
TT
49002019-04-08 Tom Tromey <tom@tromey.com>
4901
4902 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4903 throw.
4904 (linux_resume_one_lwp): Likewise.
4905
230d2906
TT
49062019-04-08 Tom Tromey <tom@tromey.com>
4907
4908 * gdbreplay.c: Update.
4909 * linux-low.c: Update.
4910 * server.c: Update.
4911
a70b8144
TT
49122019-04-08 Tom Tromey <tom@tromey.com>
4913
4914 * server.c: Use C++ exception handling.
4915 * linux-low.c: Use C++ exception handling.
4916 * gdbreplay.c: Use C++ exception handling.
4917
3d6e9d23
TT
49182019-04-08 Tom Tromey <tom@tromey.com>
4919
4920 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4921 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4922 (captured_main, main): Update.
4923 * gdbreplay.c (main): Update.
4924
0570503d
PFC
49252019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4926
4927 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4928 value in argument pointer, return 1 if the entry is found and 0
4929 otherwise. Move comment.
4930 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4931 * linux-low.h (linux_get_auxv): Declare.
4932 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4933
227a9e65
TT
49342019-04-05 Tom Tromey <tromey@adacore.com>
4935
4936 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4937 variables.
4938
69f4c9cc
AH
49392019-03-28 Alan Hayward <alan.hayward@arm.com>
4940
4941 * linux-low.c (AT_HWCAP2): Add define if not already included.
4942
974c89e0
AH
49432019-03-26 Alan Hayward <alan.hayward@arm.com>
4944
4945 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4946 (aarch64_arch_setup): Call linux_get_hwcap.
4947 * linux-arm-low.c (arm_get_hwcap): Remove function.
4948 (arm_read_description): Call linux_get_hwcap.
4949 * linux-low.c (linux_get_auxv): New function.
4950 (linux_get_hwcap): Likewise.
4951 (linux_get_hwcap2): Likewise.
4952 * linux-low.h (linux_get_hwcap): New declaration.
4953 (linux_get_hwcap2): Likewise.
4954 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4955 (ppc_arch_setup): Call linux_get_hwcap.
4956 * linux-s390-low.c (s390_get_hwcap): Remove function.
4957 (s390_arch_setup): Call linux_get_hwcap.
4958
1ef53e6b
AH
49592019-03-22 Alan Hayward <alan.hayward@arm.com>
4960 Jiong Wang <jiong.wang@arm.com>
4961
4962 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4963 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4964 to fail.
4965 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4966
ee4fbcfa
AH
49672019-03-22 Alan Hayward <alan.hayward@arm.com>
4968 Jiong Wang <jiong.wang@arm.com>
4969
4970 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4971 (aarch64_get_hwcap): New function.
4972 (aarch64_arch_setup): Read APIA hwcap.
4973
6dc0ebde
AH
49742019-03-22 Alan Hayward <alan.hayward@arm.com>
4975 Jiong Wang <jiong.wang@arm.com>
4976
4977 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4978 (initialize_low_tracepoint): Likewise.
4979 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4980 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4981 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4982 (aarch64_linux_read_description): Likewise.
4983 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4984
1163a4b7
JB
49852019-03-12 John Baldwin <jhb@FreeBSD.org>
4986
4987 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4988 i386_create_target_description for 'segments' parameter.
4989 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4990 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4991 * win32-i386-low.c (i386_arch_setup): Likewise.
4992
d3a70e03
TT
49932019-03-12 Tom Tromey <tromey@adacore.com>
4994
4995 * linux-low.c (iterate_over_lwps): Update.
4996
37991b4f
TT
49972019-03-06 Tom Tromey <tom@tromey.com>
4998
4999 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5000 (captured_main): Use SCOPE_EXIT.
5001
45950eb6
SDJ
50022019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5003
5004 * configure.srv: Use '$enable_unittest' instead of '$development'
5005 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5006 case.
5007
43ac54fc
TT
50082019-02-27 Tom Tromey <tromey@adacore.com>
5009
5010 * gdbreplay.c (logchar): Handle \r\n.
5011
df0da8a2
AH
50122019-02-07 Alan Hayward <alan.hayward@arm.com>
5013
5014 * linux-low.c (linux_attach): Add process before lwp.
5015 * server.c (attach_inferior): Check if already attached.
5016
1a5c2598
TT
50172019-02-07 Tom Tromey <tom@tromey.com>
5018
5019 * x86-tdesc.h: Rename include guard.
5020 * x86-low.h: Add include guard.
5021 * wincecompat.h: Rename include guard.
5022 * win32-low.h: Add include guard.
5023 * utils.h: Rename include guard.
5024 * tracepoint.h: Rename include guard.
5025 * tdesc.h: Rename include guard.
5026 * target.h: Rename include guard.
5027 * server.h: Rename include guard.
5028 * remote-utils.h: Rename include guard.
5029 * regcache.h: Rename include guard.
5030 * nto-low.h: Rename include guard.
5031 * notif.h: Add include guard.
5032 * mem-break.h: Rename include guard.
5033 * lynx-low.h: Add include guard.
5034 * linux-x86-tdesc.h: Add include guard.
5035 * linux-s390-tdesc.h: Add include guard.
5036 * linux-ppc-tdesc-init.h: Add include guard.
5037 * linux-low.h: Add include guard.
5038 * linux-aarch64-tdesc.h: Add include guard.
5039 * linux-aarch32-low.h: Add include guard.
5040 * inferiors.h: Rename include guard.
5041 * i387-fp.h: Rename include guard.
5042 * hostio.h: Rename include guard.
5043 * gdbthread.h: Rename include guard.
5044 * gdb_proc_service.h: Rename include guard.
5045 * event-loop.h: Rename include guard.
5046 * dll.h: Rename include guard.
5047 * debug.h: Rename include guard.
5048 * ax.h: Rename include guard.
5049
956cc47c
SN
50502018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5051
5052 PR gdb/23985
5053 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5054 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5055
a0707f3c
TT
50562019-01-25 Tom Tromey <tom@tromey.com>
5057
5058 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5059
0747795c
TT
50602019-01-25 Tom Tromey <tom@tromey.com>
5061
5062 * win32-low.c: Fix common/ includes.
5063 * win32-i386-low.c: Fix common/ includes.
5064 * tracepoint.c: Fix common/ includes.
5065 * thread-db.c: Fix common/ includes.
5066 * target.h: Fix common/ includes.
5067 * symbol.c: Fix common/ includes.
5068 * spu-low.c: Fix common/ includes.
5069 * server.h: Fix common/ includes.
5070 * server.c: Fix common/ includes.
5071 * remote-utils.c: Fix common/ includes.
5072 * regcache.h: Fix common/ includes.
5073 * regcache.c: Fix common/ includes.
5074 * nto-x86-low.c: Fix common/ includes.
5075 * notif.h: Fix common/ includes.
5076 * mem-break.h: Fix common/ includes.
5077 * lynx-low.c: Fix common/ includes.
5078 * lynx-i386-low.c: Fix common/ includes.
5079 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5080 * linux-x86-low.c: Fix common/ includes.
5081 * linux-low.c: Fix common/ includes.
5082 * inferiors.h: Fix common/ includes.
5083 * i387-fp.c: Fix common/ includes.
5084 * hostio.c: Fix common/ includes.
5085 * hostio-errno.c: Fix common/ includes.
5086 * gdbthread.h: Fix common/ includes.
5087 * gdbreplay.c: Fix common/ includes.
5088 * fork-child.c: Fix common/ includes.
5089 * event-loop.c: Fix common/ includes.
5090 * ax.c:
5091 (enum gdb_agent_op): Fix common/ includes.
5092
be6d4f74
TT
50932019-01-21 Tom Tromey <tom@tromey.com>
5094
5095 * tracepoint.c: Fix includes.
5096 * remote-utils.c: Fix includes.
5097 * linux-x86-low.c: Fix includes.
5098
66d91b39
JB
50992019-01-01 Joel Brobecker <brobecker@adacore.com>
5100
5101 * gdbreplay.c (gdbreplay_version): Update copyright year in
5102 version message.
5103 * server.c (gdbserver_version): Likewise.
5104
754e3168
AH
51052018-12-05 Alan Hayward <alan.hayward@arm.com>
5106
5107 * linux-low.c (add_lwp): Switch ordering.
5108
d105de22
TT
51092018-11-29 Tom Tromey <tom@tromey.com>
5110
5111 * win32-low.c (win32_join): Take pid, not process.
5112 * target.h (struct target_ops) <join>: Change argument type.
5113 (join_inferior): Change argument name.
5114 * spu-low.c (spu_join): Take pid, not process.
5115 * server.c (handle_detach): Preserve pid before destroying
5116 process.
5117 * lynx-low.c (lynx_join): Take pid, not process.
5118 * linux-low.c (linux_join): Take pid, not process.
5119
50138245
AH
51202018-11-23 Alan Hayward <alan.hayward@arm.com>
5121
5122 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5123 (aarch64_cannot_fetch_register): Likewise.
5124 (struct linux_target_ops): Update references.
5125
64f57f3d
PFC
51262018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5127
5128 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5129
8d619c01
EBM
51302018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5131
5132 * configure.srv (ipa_ppc_linux_regobj): Add
5133 powerpc-isa207-htm-vsx32l-ipa.o and
5134 powerpc-isa207-htm-vsx64l-ipa.o.
5135 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5136 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5137 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5138 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5139 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5140 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5141 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5142 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5143 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5144 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5145 (init_registers_powerpc_isa207_htm_vsx32l)
5146 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5147 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5148 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5149 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5150 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5151 (ppc_store_tm_ctarregset): New functions.
5152 (ppc_regsets): Add entries for HTM regsets.
5153 (ppc_arch_setup): Set htm in features struct when needed. Set
5154 sizes for the HTM regsets.
5155 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5156 (initialize_low_arch): Call
5157 init_registers_powerpc_isa207_htm_vsx32l and
5158 init_registers_powerpc_isa207_htm_vsx64l.
5159 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5160 PPC_TDESC_ISA207_HTM_VSX.
5161 (initialize_low_tracepoint): Call
5162 init_registers_powerpc_isa207_htm_vsx32l and
5163 init_registers_powerpc_isa207_htm_vsx64l.
5164
232bfb86
EBM
51652018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5166
5167 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5168 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5169 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5170 (ppc_store_pmuregset): New functions.
5171 (ppc_regsets): Add entries for ebb and pmu regsets.
5172 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5173 pmu regsets are available. Set sizes for these regsets.
5174
f2cf6173
EBM
51752018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5176
5177 * configure.srv (ipa_ppc_linux_regobj): Add
5178 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5179 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5180 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5181 rs6000/powerpc-isa207-vsx32l.xml, and
5182 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5183 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5184 <PPC_TDESC_ISA207_VSX>: New enum value.
5185 (init_registers_powerpc_isa207_vsx32l): Declare.
5186 (init_registers_powerpc_isa207_vsx64l): Declare.
5187 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5188 (ppc_store_tarregset): New function.
5189 (ppc_regsets): Add entry for the TAR regset.
5190 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5191 size for the TAR regsets.
5192 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5193 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5194 and init_registers_powerpc_isa207_vsx64l.
5195 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5196 (initialize_low_tracepoint): Call
5197 init_registers_powerpc_isa207_vsx32l and
5198 init_registers_powerpc_isa207_vsx64l.
5199
7ca18ed6
EBM
52002018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5201 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5202
5203 * configure.srv (ipa_ppc_linux_regobj): Add
5204 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5205 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5206 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5207 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5208 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5209 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5210 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5211 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5212 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5213 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5214 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5215 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5216 (ppc_hwcap): Add comment.
5217 (ppc_hwcap2): New global.
5218 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5219 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5220 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5221 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5222 when needed. Set sizes for the the DSCR and PPR regsets.
5223 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5224 (initialize_low_arch): Call
5225 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5226 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5227 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5228 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5229 (initialize_low_tracepoint): Call
5230 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5231 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5232
5c849b22
PFC
52332018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5234
5235 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5236
8ecfd7bd
SDJ
52372018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5238 Simon Marchi <simark@simark.ca>
5239
5240 * acinclude.m4: Include "../selftest.m4".
5241 * configure: Regenerate.
5242 * configure.ac: Use "GDB_AC_SELFTEST".
5243 * configure.srv: Use "$enable_unittests" instead of
5244 "$development" when checking whether unit tests have been
5245 enabled.
5246 * server.c (captured_main): Update message informing that
5247 selftests have been disabled.
5248
96643e35
TT
52492018-10-04 Tom Tromey <tom@tromey.com>
5250
5251 * configure: Rebuild.
5252
da4ae14a
TT
52532018-10-04 Tom Tromey <tom@tromey.com>
5254
5255 * server.c (handle_status): Rename inner "thread".
5256 (process_serial_event): Declare "res" in 'm' case.
5257 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5258 (iterate_over_lwps): Rename inner "thread".
5259 (linux_qxfer_libraries_svr4): Rename inner "len".
5260 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5261
7c619dbd
GB
52622018-10-01 Gary Benson <gbenson@redhat.com>
5263
5264 * gdb_proc_service.h: Moved common code to
5265 common/gdb_proc_service.h.
5266
3795e814
GB
52672018-10-01 Gary Benson <gbenson@redhat.com>
5268
5269 * gdb_proc_service.h: Synchronize comments and whitespace with
5270 GDB's version of this file.
5271
49b036f1
TT
52722018-09-25 Tom Tromey <tom@tromey.com>
5273
5274 * configure: Rebuild.
5275 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5276
8ff03f0b
SM
52772018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5278
5279 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5280 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5281 ($(IPA_LIB)): Sort IPA_OBJS.
5282
a1cd91dc
SM
52832018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5284
5285 * Makefile.in: Remove references to $(ADD_DEPS).
5286
752312ba
TT
52872018-09-16 Tom Tromey <tom@tromey.com>
5288
5289 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5290 variables.
5291 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5292 variables.
5293
f1628857
TT
52942018-09-05 Tom Tromey <tom@tromey.com>
5295
5296 * configure: Rebuild.
5297
ad202fcc
SM
52982018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5299
5300 PR build/23399
5301 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5302
d3d8724a
TT
53032018-08-27 Tom Tromey <tom@tromey.com>
5304
5305 PR build/23087:
5306 * configure: Rebuild.
5307
b4f183d2
TT
53082018-08-27 Tom Tromey <tom@tromey.com>
5309
5310 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5311 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5312 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5313 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5314 (s390x_emit_stack_adjust): Add casts to unsigned char.
5315
4e2aa472
SM
53162018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5317
5318 PR gdb/23374
5319 PR gdb/23375
5320 * server.h (struct client_state) <disable_randomization>:
5321 Initialize to 1.
5322
cf4088a9
SM
53232018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5324
5325 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5326 variable.
5327 (mips_supply_ptrace_register): Likewise.
5328
a0de763e
TT
53292018-07-22 Tom Tromey <tom@tromey.com>
5330
5331 * configure: Rebuild.
5332
b0a7723d
TT
53332018-07-22 Tom Tromey <tom@tromey.com>
5334
5335 * win32-low.c (win32_create_inferior): Remove unused variables.
5336 * gdbreplay.c (remote_open): Remove unused variable.
5337 * remote-utils.c (remote_prepare): Remove unused variable.
5338 * x86-tdesc.h (X86_TDESC_H): Define.
5339 (amd64_expedite_regs): Define conditionally.
5340 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5341 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5342 * remote-utils.c (readchar): Remove unused variable.
5343
a780ef4f
PA
53442018-07-13 Pedro Alves <palves@redhat.com>
5345
5346 * linux-low.c (linux_kill): Change parameter to process_info
5347 pointer instead of pid. Adjust.
5348 * lynx-low.c (lynx_kill): Likewise.
5349 * nto-low.c (nto_kill): Likewise.
5350 * spu-low.c (spu_kill): Likewise.
5351 * win32-low.c (win32_kill): Likewise.
5352 * server.c (handle_v_kill, kill_inferior_callback)
5353 (detach_or_kill_for_exit): Adjust.
5354 * target.c (kill_inferior): Change parameter to process_info
5355 pointer instead of pid. Adjust.
5356 * target.h (struct target_ops) <kill>: Change parameter to
5357 process_info pointer instead of pid. Adjust all implementations
5358 and callers.
5359 (kill_inferior): Likewise.
5360
ef2ddb33
PA
53612018-07-13 Pedro Alves <palves@redhat.com>
5362
5363 * linux-low.c (linux_detach, linux_join): Change parameter to
5364 process_info pointer instead of pid. Adjust.
5365 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5366 * nto-low.c (nto_detach): Likewise.
5367 * spu-low.c (spu_detach, spu_join): Likewise.
5368 * win32-low.c (win32_detach, win32_join): Likewise.
5369 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5370 * target.h (struct target_ops) <detach, join>: Change parameter to
5371 process_info pointer instead of pid. Adjust all implementations
5372 and callers.
5373 (detach_inferior, join_inferior): Rename 'pid' parameter to
5374 'proc'.
5375
c7ab0aef
SDJ
53762018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5377 Jan Kratochvil <jan.kratochvil@redhat.com>
5378 Paul Fertser <fercerpav@gmail.com>
5379 Tsutomu Seki <sekiriki@gmail.com>
5380
5381 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5382 (OBS): Add 'common/netstuff.o'.
5383 (GDBREPLAY_OBS): Likewise.
5384 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5385 (remote_open): Implement support for IPv6
5386 connections.
5387 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5388 and 'wspiapi.h'.
5389 (handle_accept_event): Accept connections from IPv6 sources.
5390 (remote_prepare): Handle IPv6-style hostnames; implement
5391 support for IPv6 connections.
5392 (remote_open): Implement support for printing connections from
5393 IPv6 sources.
5394
31445d10
PA
53952018-07-11 Pedro Alves <palves@redhat.com>
5396
5397 PR gdb/23377
5398 * mem-break.c (any_persistent_commands): Add process_info
5399 parameter and use it instead of relying on the current process.
5400 Change return type to bool.
5401 * mem-break.h (any_persistent_commands): Add process_info
5402 parameter and change return type to bool.
5403 * server.c (handle_detach): Remove require_running_or_return call.
5404 Look up the process_info for the process we're about to detach.
5405 If not found, return back error to GDB. Adjust
5406 any_persistent_commands call to pass down a process pointer.
5407
cb197132
PA
54082018-07-11 Pedro Alves <palves@redhat.com>
5409
5410 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5411 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5412 instead of collect_register_by_name.
5413 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5414 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5415
1b919490
VB
54162018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5417 Pedro Alves <palves@redhat.com>
5418
5419 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5420
d7e15655
TT
54212018-07-03 Tom Tromey <tom@tromey.com>
5422
5423 * linux-low.c: Update.
5424 * lynx-low.c: Update.
5425 * mem-break.c: Update.
5426 * nto-low.c: Update.
5427 * remote-utils.c: Update.
5428 * server.c: Update.
5429 * spu-low.c: Update.
5430 * target.c: Update.
5431 * win32-low.c: Update.
5432
26a57c92
TT
54332018-07-03 Tom Tromey <tom@tromey.com>
5434
5435 * server.c: Update.
5436
0e998d96
TT
54372018-07-03 Tom Tromey <tom@tromey.com>
5438
5439 * linux-low.c: Update.
5440
cc6bcb54
TT
54412018-07-03 Tom Tromey <tom@tromey.com>
5442
5443 * target.c: Update.
5444
e38504b3
TT
54452018-07-03 Tom Tromey <tom@tromey.com>
5446
5447 * linux-low.c: Update.
5448 * linux-mips-low.c: Update.
5449 * lynx-low.c: Update.
5450 * nto-low.c: Update.
5451 * remote-utils.c: Update.
5452 * server.c: Update.
5453 * spu-low.c: Update.
5454 * target.c: Update.
5455 * thread-db.c: Update.
5456
e99b03dc
TT
54572018-07-03 Tom Tromey <tom@tromey.com>
5458
5459 * linux-low.c: Update.
5460 * linux-mips-low.c: Update.
5461 * lynx-low.c: Update.
5462 * mem-break.c: Update.
5463 * nto-low.c: Update.
5464 * remote-utils.c: Update.
5465 * server.c: Update.
5466 * spu-low.c: Update.
5467 * target.c: Update.
5468 * tracepoint.c: Update.
5469
f2907e49
TT
54702018-07-03 Tom Tromey <tom@tromey.com>
5471
5472 * linux-low.c: Update.
5473 * linux-ppc-low.c: Update.
5474 * linux-x86-low.c: Update.
5475 * proc-service.c: Update.
5476 * server.c: Update.
5477 * spu-low.c: Update.
5478 * thread-db.c: Update.
5479 * win32-low.c: Update.
5480
fd79271b
TT
54812018-07-03 Tom Tromey <tom@tromey.com>
5482
5483 * linux-low.c: Update.
5484 * lynx-low.c: Update.
5485 * nto-low.c: Update.
5486 * remote-utils.c: Update.
5487 * spu-low.c: Update.
5488 * thread-db.c: Update.
5489 * win32-low.c: Update.
5490
c0867626
SDJ
54912018-06-29 Joel Brobecker <brobecker@adacore.com>
5492
5493 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5494 parameter in call to 'amd64_create_target_description'.
5495
2512d7ef
JK
54962018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5497
5498 * x86-tdesc.h: Remove executable permission flag.
5499
d0ac1c44
SM
55002018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5501
5502 * configure.ac: Remove AC_PREREQ, add missing quoting.
5503 * configure: Re-generate.
5504 * config.in: Re-generate.
5505 * aclocal.m4: Re-generate.
5506
c4eb05ff
SM
55072018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5508
5509 * tracepoint.h (current_traceframe): Remove declaration.
5510
02895270
AH
55112018-06-18 Alan Hayward <alan.hayward@arm.com>
5512
5513 * linux-aarch64-low.c (is_sve_tdesc): New function.
5514 (aarch64_sve_regs_copy_to_regcache): Likewise.
5515 (aarch64_sve_regs_copy_from_regcache): Likewise.
5516 (aarch64_regs_info): Add SVE checks.
5517 (initialize_low_arch): Initialize SVE.
5518
e9902bfc
AH
55192018-06-18 Alan Hayward <alan.hayward@arm.com>
5520
5521 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5522
fefa175e
AH
55232018-06-11 Alan Hayward <alan.hayward@arm.com>
5524
5525 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5526 (initialize_low_tracepoint): Likewise
5527 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5528 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5529 param.
5530 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5531 checks.
5532 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5533
b91ad3ff
AH
55342018-06-11 Alan Hayward <alan.hayward@arm.com>
5535
5536 * server.h (PBUFSIZ): Increase size
5537
f868386e
AH
55382018-06-11 Alan Hayward <alan.hayward@arm.com>
5539
5540 * regcache.c (regcache::raw_compare): New function.
5541 * regcache.h (regcache::raw_compare): New declaration.
5542
9c861883
AH
55432018-06-11 Alan Hayward <alan.hayward@arm.com>
5544
5545 * regcache.c (new_register_cache): Use new.
5546 (free_register_cache): Use delete.
5547 (register_data): Use const.
5548 (supply_register): Move body inside regcache.
5549 (regcache::raw_supply): New override function.
5550 (collect_register): Move body inside regcache.
5551 (regcache::raw_collect): New override function.
5552 (regcache::get_register_status): New override function.
5553 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5554
40591844
TT
55552018-06-09 Tom Tromey <tom@tromey.com>
5556
5557 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5558 declare queue.
5559 (event_queue): Use std::queue.
5560 (gdb_event_xfree): Remove.
5561 (initialize_event_loop, process_event, wait_for_event): Update.
5562
6341380d
SC
55632018-06-08 Stan Cox <scox@redhat.com>
5564
5565 * win32-low.c (win32_create_inferior): last_ptid and last_status
5566 moved to client_state.
5567
03349c93
PA
55682018-06-08 Pedro Alves <palves@redhat.com>
5569
5570 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5571 common/common-exceptions.o, common/common-utils.o,
5572 common/errors.o, common/print-utils.o and utils.o.
5573 * gdbreplay.c: Include "common-defs.h" instead of the two
5574 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5575 string.h or alloca.h.
5576 (perror_with_name): Delete.
5577 (remote_open): Use xstrdup instead of strdup.
5578 (main): Rename to ...
5579 (captured_main): ... this.
5580 (main): New.
5581
8dcc53b3
TT
55822018-06-08 Tom Tromey <tom@tromey.com>
5583
5584 * linux-low.c (linux_low_read_btrace): Update.
5585
c12a5089
SC
55862018-06-04 Stan Cox <scox@redhat.com>
5587
5588 * server.h (struct client_state): New.
5589 * server.c (cont_thread, general_thread, multi_process)
5590 (report_fork_events, report_vfork_events, report_exec_events)
5591 (report_thread_events, swbreak_feature, hwbreak_feature)
5592 (vCont_supported, disable_randomization, pass_signals)
5593 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5594 Moved to client_state.
5595 * remote-utils.c (remote_debug, noack_mode)
5596 (transport_is_reliable): Moved to client_state.
5597 * tracepoint.c (current_traceframe): Moved to client_state.
5598
5599 Update all callers.
5600 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5601 linux-low.c, remote-utils.h, target.c: Use client_state.
5602
122394f1
AH
56032018-05-31 Alan Hayward <alan.hayward@arm.com>
5604
5605 * configure.srv: Add new c/h file.
5606
95228a0d
AH
56072018-05-31 Alan Hayward <alan.hayward@arm.com>
5608
5609 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5610 null VQ.
5611
d8dab6c3
MR
56122018-05-25 Maciej W. Rozycki <macro@mips.com>
5613
5614 * gdb.arch/mips-fpregset-core.exp: New test.
5615 * gdb.arch/mips-fpregset-core.c: New test source.
5616
81e25b7c
EK
56172018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5618
5619 PR server/23198
5620 * hostio.c (require_int): Do not report overflow for integers
5621 between 0xfffffff and 0x7fffffff.
5622
7e947ad3
MR
56232018-05-22 Maciej W. Rozycki <macro@mips.com>
5624
5625 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5626 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5627 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5628 functions.
5629 (the_low_target): Wire them.
5630
1d75a658
PFC
56312018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5632
5633 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5634 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5635 mode. Call collect_register_by_name with vscr using
5636 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5637 (ppc_store_vrregset): Add and set vscr_offset variable as in
5638 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5639 vscr_offset.
5640
d078308a
PFC
56412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5642
5643 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5644 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5645 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5646
7273b5fc
PFC
56472018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5648
5649 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5650 (ppc_store_vsxregset): Likewise.
5651 (ppc_fill_vrregset): Likewise.
5652 (ppc_store_vrregset): Likewise.
5653 (ppc_fill_evrregset): Likewise.
5654 (ppc_store_evrregset): Likewise.
5655 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5656 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5657 needed.
5658
2e077f5e
PFC
56592018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5660
5661 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5662 wordsize of the inferior. Call ppc_linux_target_wordsize.
5663
bd64614e
PFC
56642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5665
5666 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5667 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5668 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5669 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5670 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5671 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5672 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5673 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5674 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5675 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5676 (tdesc_powerpc_e500l): Remove.
5677 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5678 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5679 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5680 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5681 linux-ppc-tdesc.h.
5682 (ppc_arch_setup): Remove target description matching code. Fill a
5683 ppc_linux_features struct and call ppc_linux_match_description
5684 with it.
5685
75d74cca
MR
56862018-05-22 Maciej W. Rozycki <macro@mips.com>
5687
5688 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5689 width of the requested register exceeds the width of the
5690 `ptrace' data type.
5691 (mips_cannot_store_register): Likewise.
5692
e4439e43
MR
56932018-05-21 Maciej W. Rozycki <macro@mips.com>
5694
5695 * linux-mips-low.c (mips_fetch_register): New function. Update
5696 preceding comment.
5697 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5698 (the_low_target): Wire `mips_fetch_register'.
5699
55271bf9
JB
57002018-05-10 Joel Brobecker <brobecker@adacore.com>
5701
5702 * lynx-i386-low.c (LYNXOS_178): New macro.
5703 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5704 the layout on LynxOS-178.
5705 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5706 handle floating point registers that are not supported by
5707 LynxOS-178.
5708
1a34f210
TT
57092018-05-10 Tom Tromey <tom@tromey.com>
5710
5711 * configure: Rebuild.
5712
190852c8
JB
57132018-05-10 Joel Brobecker <brobecker@adacore.com>
5714
5715 PR server/23158:
5716 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5717 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5718 Use it to set the expedite_regs field in the given tdesc.
5719 * x86-tdesc.h: New file.
5720 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5721 Adjust following the addition of the new expedite_regs parameter
5722 to init_target_desc.
5723 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5724 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5725 (i386_linux_read_description, amd64_linux_read_description):
5726 Adjust following the addition of the new expedite_regs parameter
5727 to init_target_desc.
5728 * lynx-i386-low.c: #include "x86-tdesc.h".
5729 (lynx_i386_arch_setup): Adjust following the addition of the new
5730 expedite_regs parameter to init_target_desc.
5731 * nto-x86-low.c: #include "x86-tdesc.h".
5732 (nto_x86_arch_setup): Adjust following the addition of the new
5733 expedite_regs parameter to init_target_desc.
5734 * win32-i386-low.c: #include "x86-tdesc.h".
5735 (i386_arch_setup): Adjust following the addition of the new
5736 expedite_regs parameter to init_target_desc.
5737
7dbac825
JB
57382018-05-10 Joel Brobecker <brobecker@adacore.com>
5739
5740 PR server/23158:
5741 * win32-low.c (win32_create_inferior): Add call to my_wait
5742 setting last_status global.
5743
906994d9
JB
57442018-05-10 Joel Brobecker <brobecker@adacore.com>
5745
5746 PR server/23158:
5747 * win32-low.c (create_process): Only call gdb_tilde_expand if
5748 inferior_cwd is not NULL.
5749
8ee22052
AB
57502018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5751
5752 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5753 registers to the cache if their values have changed.
5754 (i387_xsave_to_cache): Provide default values for x87 control
5755 registers when these features are available, but disabled.
5756 * regcache.c (supply_register_by_name_zeroed): New function.
5757 * regcache.h (supply_register_by_name_zeroed): Declare new
5758 function.
5759
aff689d3
TT
57602018-05-07 Tom Tromey <tom@tromey.com>
5761
5762 * configure: Rebuild.
5763
85e26832
TT
57642018-05-04 Tom Tromey <tom@tromey.com>
5765
5766 * configure: Rebuild.
5767
a3b60e45
JK
57682018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5769 Pedro Alves <palves@redhat.com>
5770
5771 * linux-aarch64-low.c (aarch64_stopped_data_address):
5772 Likewise.
5773
632e107b
TT
57742018-04-27 Tom Tromey <tom@tromey.com>
5775
5776 * configure: Rebuild.
5777
458412c3
TT
57782018-04-23 Tom Tromey <tom@tromey.com>
5779
5780 * configure: Rebuild.
5781
f31c089e
SM
57822018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5783
5784 * Makefile.in (depcomp): Add "..".
5785 (all_deps_files): New and use it.
5786
b319b098
AH
57872018-04-18 Alan Hayward <alan.hayward@arm.com>
5788
5789 * configure.srv (aarch64*-*-linux*): Don't include xml.
5790 (i[34567]86-*-cygwin*): Likewise.
5791 (i[34567]86-*-linux*): Likewise.
5792 (i[34567]86-*-lynxos*): Likewise.
5793 (i[34567]86-*-mingw32ce*): Likewise.
5794 (i[34567]86-*-mingw*): Likewise.
5795 (i[34567]86-*-nto*): Likewise.
5796 (tic6x-*-uclinux): Likewise.
5797 (x86_64-*-linux*): Likewise.
5798 (x86_64-*-mingw*): Likewise.
5799 (x86_64-*-cygwin*): Likewise.
5800
3b74854b
AH
58012018-04-18 Alan Hayward <alan.hayward@arm.com>
5802
5803 * tdesc.c: Remove xml parameter.
5804
e98577a9
AH
58052018-04-18 Alan Hayward <alan.hayward@arm.com>
5806
5807 * server.c (get_features_xml): Remove cast.
5808 * tdesc.c (void target_desc::accept): Fill in function.
5809 (tdesc_get_features_xml): Remove old xml creation.
5810 (print_xml_feature::visit_pre): Add xml vistor.
5811 * tdesc.h (struct target_desc): Make xmltarget mutable.
5812 (tdesc_get_features_xml): Remove declaration.
5813
d278f585
AH
58142018-04-18 Alan Hayward <alan.hayward@arm.com>
5815
5816 * tdesc.c (tdesc_architecture_name): Add new function.
5817 (tdesc_osabi_name): Likewise.
5818 (tdesc_get_features_xml): Use new functions.
5819
eee8a18d
AH
58202018-04-18 Alan Hayward <alan.hayward@arm.com>
5821
5822 * tdesc.c (tdesc_create_flags): Remove.
5823 (tdesc_add_flag): Likewise.
5824 (tdesc_named_type): Likewise.
5825 (tdesc_create_union): Likewise.
5826 (tdesc_create_struct): Likewise.
5827 (tdesc_create_vector): Likewise.
5828 (tdesc_add_bitfield): Likewise.
5829 (tdesc_add_field): Likewise.
5830 (tdesc_set_struct_size): Likewise.
5831
82ec9bc7
AH
58322018-04-18 Alan Hayward <alan.hayward@arm.com>
5833
5834 * tdesc.c (~target_desc): Remove implictly deleted items.
5835 (init_target_desc): Iterate all features.
5836 (tdesc_get_features_xml): Use vector.
5837 (tdesc_create_feature): Create feature.
5838 * tdesc.h (tdesc_feature) Remove
5839 (target_desc): Add features.
5840
ea3e7d71
AH
58412018-04-18 Alan Hayward <alan.hayward@arm.com>
5842
5843 * Makefile.in: Add common/tdesc.c
5844 * tdesc.c (init_target_desc): init all reg_defs from register
5845 vector.
5846 (tdesc_create_reg): Create tdesc_reg.
5847 * tdesc.h (tdesc_feature): Add register vector.
5848
17d08cd4
SM
58492018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5850
5851 * tdesc.h (struct target_desc) <features>: Change type to
5852 std::vector<std::string>.
5853 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5854 changes.
5855 (tdesc_get_features_xml): Likewise.
5856 (tdesc_create_feature): Likewise.
5857
5cd3e386
AH
58582018-03-26 Alan Hayward <alan.hayward@arm.com>
5859
5860 * regcache.c (find_register_by_number): Return a ref.
5861 (find_regno): Use references.
5862 (register_size): Likewise.
5863 (register_data): Likewise.
5864 * tdesc.c (target_desc::~target_desc): Remove free calls.
5865 (target_desc::operator==): Use std::vector compare.
5866 (init_target_desc): Use reference.
5867 (tdesc_create_reg): Use reg constructors.
5868 * tdesc.h (struct target_desc): Replace pointer with object.
5869
dff7492c
AH
58702018-03-23 Alan Hayward <alan.hayward@arm.com>
5871
5872 * regcache.c (find_register_by_number): Make static.
5873 (find_regno): Use find_register_by_number
5874 * regcache.h (struct reg): Remove declaration.
5875
d80e5242
AH
58762018-03-23 Alan Hayward <alan.hayward@arm.com>
5877
5878 * tdesc.c (target_desc::~target_desc): Move to here.
5879 (target_desc::operator==): Likewise.
5880 * tdesc.h (target_desc::~target_desc): Move from here.
5881 (target_desc::operator==): Likewise.
5882
f69c5afb
AA
58832018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5884
5885 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5886
ce29f843
AA
58872018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5888
5889 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5890 S390_TDESC_GS.
5891 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5892 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5893 and init_registers_s390_gs_linux64.
5894
c49bd90b
AA
58952018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5896
5897 * linux-s390-low.c (s390_fill_gs): Remove function.
5898 (s390_fill_gsbc): Remove function.
5899 (s390_regsets): Set fill functions for the guarded storage regsets
5900 to NULL.
5901
7edb9bd3
AA
59022018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5903
5904 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5905 the word size. Add comment.
5906 (s390_get_wordsize): New function.
5907 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5908 pswm with it. Instead, use s390_get_wordsize to determine the
5909 word size first and derive the correct tdesc from that directly.
5910
39be3c7e
SM
59112018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * Makefile.in: Include silent-rules.mk.
5914 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5915 (COMPILE): Add ECHO_CXX.
5916 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5917 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5918 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5919 (version-generated.c): Add ECHO_GEN.
5920 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5921 (IPAGENT_COMPILE): Add ECHO_CXX.
5922 (%-generated.c): Add ECHO_REGDAT.
5923
3ae9ce5d
TT
59242018-03-14 Tom Tromey <tom@tromey.com>
5925
5926 PR cli/14977:
5927 * ax.c (ax_printf): Special case for NULL.
5928
e6a58aa8
SM
59292018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5930
5931 * linux-low.c (linux_qxfer_libraries_svr4): Use
5932 xml_escape_text_append.
5933
f6e8a41e
SM
59342018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5937
b9671caf
SM
59382018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * server.c (handle_general_set): Remove unnecessary xstrdup.
5941
e80aaf61
SM
59422018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * server.c (parse_debug_format_options): Adjust to
5945 delim_string_to_char_ptr_vec changes.
5946 * thread-db.c (thread_db_load_search): Adjust to
5947 dirnames_to_char_ptr_vec changes.
5948
b1223e78
MM
59492018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5950
5951 * target.h (target_enable_btrace, target_disable_btrace)
5952 (target_read_btrace, target_read_btrace_conf): Turn macro into
5953 inline function. Throw error if target method is not defined.
5954 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5955 check for btrace target method. Be prepared to handle exceptions
5956 from btrace target methods.
5957
81561546
SDJ
59582018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5959
5960 * server.c (captured_main): Change order of error message printed
5961 when the current working directory cannot be found.
5962
25e3c82c
SDJ
59632018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5964
5965 * server.c: Include "filenames.h" and "pathstuff.h".
5966 (program_name): Delete variable.
5967 (program_path): New anonymous class.
5968 (get_exec_wrapper): Use "program_path" instead of
5969 "program_name".
5970 (handle_v_run): Likewise.
5971 (captured_main): Likewise.
5972 (process_serial_event): Likewise.
5973
b4987c95
SDJ
59742018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5975
5976 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5977 (OBJS): Add "pathstuff.o".
5978 * server.c (current_directory): New global variable.
5979 (captured_main): Initialize "current_directory".
5980
f46cd62a
AH
59812018-02-26 Alan Hayward <alan.hayward@arm.com>
5982
5983 * tdesc.c: Use common/tdesc.h.
5984 * tdesc.h: Likewise.
5985
a543c5ca
AH
59862018-02-20 Alan Hayward <alan.hayward@arm.com>
5987 Simon Marchi <simon.marchi@ericsson.com>
5988
5989 * Makefile.in: Switch order of make rules.
5990
b5884fa7
AH
59912018-02-19 Alan Hayward <alan.hayward@arm.com>
5992
5993 * Makefile.in: Add common directory in build.
5994 * configure.ac: Add common reference.
5995 * configure: Regenerate.
5996
de6242d3
MM
59972018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5998
5999 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6000 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6001 * spu-low.c (spu_target_ops): Likewise.
6002 * win32-low.c (win32_target_ops): Likewise.
6003 * server.c (supported_btrace_packets): Report packets unconditionally.
6004 * target.h (target_ops) <supports_btrace>: Remove.
6005 (target_supports_btrace): Remove.
6006
9ee23a85
MM
60072018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6008
6009 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6010 (handle_btrace_disable): Change return type to void. Use exceptions
6011 to report errors.
6012 (handle_btrace_general_set): Catch exception and copy message to
6013 return message.
6014
8ce47547
TT
60152018-02-08 Tom Tromey <tom@tromey.com>
6016
6017 * linux-low.c (install_software_single_step_breakpoints): Use
6018 make_scoped_restore.
6019 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6020 (do_restore_current_thread_cleanup): Remove.
6021 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6022 declare.
6023
45dd3607
TT
60242018-02-08 Tom Tromey <tom@tromey.com>
6025
6026 * mem-break.c (set_raw_breakpoint_at): Use
6027 gdb::unique_xmalloc_ptr.
6028
e671cd59
PA
60292018-01-30 Pedro Alves <palves@redhat.com>
6030
6031 PR gdb/13211
6032 * target.c (target_terminal::terminal_state): Rename to ...
6033 (target_terminal::m_terminal_state): ... this.
6034
a0aad537
JC
60352018-01-19 James Clarke <jrtc27@jrtc27.com>
6036
6037 * linux-low.c (handle_extended_wait): Surround call to
6038 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6039
4d9b86e1
SM
60402018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6041
6042 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6043 linux_ptrace_attach_fail_reason_string now returning an
6044 std::string.
6045 (linux_attach): Likewise.
6046 * thread-db.c (attach_thread): Likewise.
6047
f517c180
EA
60482018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6049
6050 PR gdb/21559
6051 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6052 checking for fs_base/gs_base fields in struct user_regs_struct.
6053 * configure: Regenerate.
6054
9a70f35c
YQ
60552018-01-16 Yao Qi <yao.qi@linaro.org>
6056
6057 PR gdb/18749
6058 * linux-low.c (fetch_register): Call supply_register instead of
6059 error.
6060
605fd3c6
YQ
60612018-01-08 Yao Qi <yao.qi@linaro.org>
6062 Simon Marchi <simon.marchi@ericsson.com>
6063
6064 * Makefile.in (OBS): Remove selftest.o.
6065 * configure.ac: Set srv_selftest_objs if $development is true.
6066 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6067 * configure: Re-generated.
6068 * server.c (captured_main): Wrap variable selftest_filter with
6069 GDB_SELF_TEST.
6070
2cc05030
SM
60712018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6072
6073 * server.c (parse_debug_format_options): Return std::string.
6074 (handle_monitor_command, captured_main): Adjust.
6075
e379cee6
PA
60762018-01-05 Pedro Alves <palves@redhat.com>
6077
6078 PR gdb/18653
6079 * server.c (captured_main): Pass quiet=false to
6080 save_original_signals_state.
6081
82e1e79a
JB
60822018-01-01 Joel Brobecker <brobecker@adacore.com>
6083
6084 * gdbreplay.c (gdbreplay_version): Update copyright year in
6085 version message.
6086 * server.c (gdbserver_version): Likewise.
6087
8e481c3b
TT
60882017-12-08 Tom Tromey <tom@tromey.com>
6089
6090 * ax.c (ax_printf): Update.
6091
a8806230
YQ
60922017-12-07 Yao Qi <yao.qi@linaro.org>
6093
6094 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6095 aarch64_linux_read_description.
6096 * linux-amd64-ipa.c (idx2mask): New array.
6097 (get_ipa_tdesc): Move idx2mask out.
6098 (initialize_low_tracepoint): Initialize target descriptions.
6099 * linux-i386-ipa.c (idx2mask): New array.
6100 (get_ipa_tdesc): Move idx2mask out.
6101 (initialize_low_tracepoint): Initialize target descriptions.
6102
d4a0e8b5
SM
61032017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * tdesc.c (struct tdesc_type): Change return type.
6106 (tdesc_add_flag): Change parameter type.
6107 (tdesc_add_bitfield): Likewise.
6108 (tdesc_add_field): Likewise.
6109 (tdesc_set_struct_size): Likewise.
6110
798a7429
SM
61112017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6112
6113 * regcache.c (registers_to_string): Remove unused variable.
6114
c0e15c9b
SM
61152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6116
6117 * inferiors.c (for_each_inferior_with_data): Remove.
6118 * inferiors.h (for_each_inferior_with_data): Remove.
6119 * server.c (handle_qxfer_threads_worker): Change parameter type.
6120 (handle_qxfer_threads_proper): Use for_each_thread.
6121
f0045347
SM
61222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6123
6124 * inferiors.c (for_each_inferior): Remove.
6125 (clear_inferiors): Use for_each_thread.
6126 * inferiors.h (for_each_inferior): Remove.
6127 * linux-low.c (linux_wait_for_event_filtered): Use
6128 for_each_thread.
6129 (linux_stabilize_threads): Likewise.
6130 * regcache.c (regcache_release): Likewise.
6131 * server.c (gdb_wants_all_threads_stopped): Likewise.
6132 (clear_pending_status_callback): Remove.
6133 (handle_status): Use for_each_thread.
6134 (captured_main): Likewise.
6135 * win32-low.c (child_init_thread_list): Likewise.
6136 (win32_clear_inferiors): Likewise.
6137 (fake_breakpoint_event): Likewise.
6138
9521758b
SM
61392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6140
6141 * inferiors.h (find_inferior): Remove.
6142 * inferiors.c (find_inferior): Remove.
6143
8f86d7aa
SM
61442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6145
6146 * linux-low.c (resume_status_pending_p): Update comment.
6147 (need_step_over_p): Update comment.
6148
e2b44075
SM
61492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6150
6151 * linux-low.c (proceed_one_lwp): Return void, change parameter
6152 type.
6153 (unsuspend_and_proceed_one_lwp): Likewise.
6154 (proceed_all_lwps): Use for_each_thread.
6155 (unstop_all_lwps): Likewise.
6156
c80825ff
SM
61572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * linux-low.c (linux_resume_one_thread): Return void, take
6160 parameter directly.
6161 (linux_resume): Use for_each_thread.
6162
df3e4dbe
SM
61632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6164
6165 * linux-low.c (send_sigstop_callback): Return void, change
6166 parameter type. Rename to...
6167 (send_sigstop): ... this.
6168 (suspend_and_send_sigstop_callback): Return void, change parameter
6169 type. Rename to...
6170 (suspend_and_send_sigstop): ... this.
6171 (stop_all_lwps): Use for_each_thread.
6172
5a6b0a41
SM
61732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6174
6175 * linux-low.c (lwp_running): Return bool, remove unused
6176 argument.
6177 (linux_stabilize_threads): Use find_thread.
6178
39a64da5
SM
61792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * linux-low.c (select_singlestep_lwp_callback): Remove.
6182 (count_events_callback): Remove.
6183 (select_event_lwp_callback): Remove.
6184 (select_event_lwp): Use find_thread/for_each_thread.
6185
a1385b7b
SM
61862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6187
6188 * linux-low.c (not_stopped_callback): Return bool, take filter
6189 argument directly.
6190 (linux_wait_for_event_filtered): Use find_thread.
6191 (linux_wait_1): Likewise.
6192
454296a2
SM
61932017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6194
6195 * linux-low.c (same_lwp): Remove.
6196 (find_lwp_pid): Use find_thread.
6197
6b2a85da
SM
61982017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6199
6200 * linux-low.c (delete_lwp_callback): Remove.
6201 (linux_mourn): Use for_each_thread.
6202
798a38e8
SM
62032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6206 args parameter, don't check for pid.
6207 (linux_detach): Use for_each_thread.
6208
e4eb0dec
SM
62092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6210
6211 * linux-low.c (struct counter): Remove.
6212 (second_thread_of_pid_p): Remove.
6213 (last_thread_of_process_p): Use find_thread.
6214
83e1b6c1
SM
62152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6216
6217 * inferiors.c (find_inferior_in_random): Remove.
6218 * inferiors.h (find_inferior_in_random): Remove.
6219 * linux-low.c (status_pending_p_callback): Return bool, accept
6220 parameter ptid directly.
6221 (linux_wait_for_event_filtered): Use find_thread_in_random.
6222 (linux_wait_1): Likewise.
6223
8dc7b443
SM
62242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6225
6226 * inferiors.c (find_inferior_id): Remove.
6227 (find_thread_ptid): Move implemention from find_inferior_id to
6228 here.
6229 * inferiors.h (find_inferior_id): Remove.
6230 * server.c (handle_status): Use find_thread_ptid.
6231 (process_serial_event): Likewise.
6232 * thread-db.c (find_one_thread): Likewise.
6233 (thread_db_thread_handle): Likewise.
6234 * win32-low.c (thread_rec): Likewise.
6235 (child_delete_thread): Likewise.
6236 (win32_thread_alive): Likewise.
6237 (get_child_debug_event): Likewise.
6238
da25033c
SM
62392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6240
6241 * linux-mips-low.c (update_watch_registers_callback): Return
6242 void, remove pid_p parameter, don't check for pid.
6243 (mips_insert_point, mips_remove_point): Use for_each_thread.
6244
c91bb56b
SM
62452017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * lynx.low (lynx_delete_thread_callback): Remove.
6248 (lynx_mourn): Use for_each_thread.
6249
634a3254
SM
62502017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * regcache.c (regcache_invalidate_one): Remove.
6253 (regcache_invalidate_pid): use for_each_thread.
6254
41272101
TT
62552017-11-26 Tom Tromey <tom@tromey.com>
6256
6257 * linux-low.c (linux_create_inferior): Update.
6258
f5291a6f
UW
62592017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6260
6261 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6262
6654d750
AH
62632017-11-24 Alan Hayward <alan.hayward@arm.com>
6264
6265 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6266 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6267 * linux-aarch64-tdesc-selftest.c: New file.
6268 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6269
62702017-11-24 Alan Hayward <alan.hayward@arm.com>
6271
6272 * configure.srv: Add new file.
6273 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6274 * linux-aarch64-tdesc-selftest.c: New file.
6275 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6276
49bdb7ee
AH
62772017-11-24 Alan Hayward <alan.hayward@arm.com>
6278
6279 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6280 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6281 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6282
d6d7ce56
AH
62832017-11-24 Alan Hayward <alan.hayward@arm.com>
6284
6285 * configure.srv: Add new files.
6286 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6287 aarch64_linux_read_description.
6288 * linux-aarch64-low.c (aarch64_linux_read_description):
6289 Merge with aarch64_arch_setup.
6290 (aarch64_arch_setup): Call aarch64_linux_read_description.
6291 * linux-aarch64-tdesc.c: New file.
6292 * linux-aarch64-tdesc.h: New file.
6293
506fe5f4
YQ
62942017-11-24 Yao Qi <yao.qi@linaro.org>
6295
6296 * configure.srv: Set $srv_regobj for tic6x-linux.
6297 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6298 (tic6x_read_description): Move some code to tic6x_arch_setup.
6299 (tic6x_tdesc_test): New function.
6300 (initialize_low_arch): Call selftests::register_test.
6301
29f9a567
YQ
63022017-11-22 Yao Qi <yao.qi@linaro.org>
6303
6304 * remote-utils.c (prepare_resume_reply): Use memcpy.
6305
578290ec
SM
63062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6307
6308 * linux-low.c (kill_one_lwp_callback): Return void, take
6309 argument directly, don't filter on pid.
6310 (linux_kill): Use for_each_thread.
6311
eca55aec
SM
63122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6313
6314 * linux-low.c (need_step_over_p): Return bool, remove dummy
6315 argument.
6316 (linux_resume, proceed_all_lwps): Use find_thread.
6317
25c28b4d
SM
63182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6319
6320 * linux-low.c (resume_status_pending_p): Return bool, remove
6321 flag_p argument.
6322 (linux_resume): Use find_thread.
6323
5fdda392
SM
63242017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6325
6326 * linux-low.c (struct thread_resume_array): Remove.
6327 (linux_set_resume_request): Return void, take arguments
6328 directly.
6329 (linux_resume): Use for_each_thread.
6330
fcb056a5
SM
63312017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6332
6333 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6334 return bool, remove data argument.
6335 (linux_stabilize_threads): Use find_thread.
6336
139720c5
SM
63372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6338
6339 * linux-low.c (unsuspend_one_lwp): Remove.
6340 (unsuspend_all_lwps): Use for_each_thread, inline code from
6341 unsuspend_one_lwp.
6342
6d1e5673
SM
63432017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6344
6345 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6346 * linux-low.c (struct iterate_over_lwps_args): Remove.
6347 (iterate_over_lwps_filter): Remove.
6348 (iterate_over_lwps): Use find_thread.
6349
bbf550d5
SM
63502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6351
6352 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6353 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6354 code from reset_lwp_ptrace_options_callback.
6355
00192f77
SM
63562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6357
6358 * linux-arm-low.c (struct update_registers_data): Remove.
6359 (update_registers_callback): Return void, take arguments
6360 directly, don't check thread's pid.
6361 (arm_insert_point, arm_remove_point): Use for_each_thread.
6362
2bee2b6c
SM
63632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6364
6365 * win32-low.c (continue_one_thread): Return void, take argument
6366 directly.
6367 (child_continue): Use for_each_thread.
6368
0b360f19
SM
63692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6370
6371 * win32-i386-low.c (update_debug_registers_callback): Rename
6372 to ...
6373 (update_debug_registers): ... this, return void, remove pid_p arg.
6374 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6375
f27866ba
SM
63762017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * inferiors.h (struct process_info): Add constructor, initialize
6379 fields..
6380 <syscalls_to_catch>: Change type to std::vector<int>.
6381 * inferiors.c (add_process): Allocate process_info with new.
6382 (remove_process): Free process_info with delete.
6383 * linux-low.c (handle_extended_wait): Adjust.
6384 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6385 * server.c (handle_general_set): Adjust.
6386
e849ea89
PA
63872017-11-16 Pedro Alves <palves@redhat.com>
6388
6389 * remote-utils.c (remote_close): Block SIGIO signals instead of
6390 uninstalling the SIGIO handler.
6391
1d0aa65c
AH
63922017-11-16 Alan Hayward <alan.hayward@arm.com>
6393
6394 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6395
3491a34c
YQ
63962017-11-16 Yao Qi <yao.qi@linaro.org>
6397
6398 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6399 (tic6x_store_gregset): Likewise.
6400 (tic6x_usrregs_info): Move it up.
6401
a602f924
AH
64022017-11-15 Alan Hayward <alan.hayward@arm.com>
6403
6404 * Makefile.in: Update arch rules.
6405 * configure.srv: Explicitly mark arch/ files.
6406
5616b6c3
AS
64072017-11-13 Andreas Schwab <schwab@suse.de>
6408
6409 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6410 function.
6411 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6412
d1928160
PA
64132017-11-06 Pedro Alves <palves@redhat.com>
6414
6415 * config.in, configure: Regenerate.
6416
bac608e7
SM
64172017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6418
6419 * target.c (struct thread_search): Remove.
6420 (thread_search_callback): Remove.
6421 (prepare_to_access_memory): Use for_each_thread instead of
6422 find_inferior. Inline code from thread_search_callback.
6423
eaddb425
SM
64242017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6425
6426 * server.c (struct visit_actioned_threads_data): Remove.
6427 (visit_actioned_threads): Change prototype to take arguments
6428 directly.
6429 (resume): Use find_thread instead of find_inferior.
6430
99078d34
SM
64312017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6432
6433 * server.c (queue_stop_reply_callback): Change prototype, return
6434 void.
6435 (find_status_pending_thread_callback): Remove.
6436 (handle_status): Replace find_inferior with find_thread and
6437 for_each_thread.
6438
cc628f3d
AH
64392017-10-25 Alan Hayward <alan.hayward@arm.com>
6440
6441 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6442 with REGNO.
6443 (aarch64_store_gregset): Likewise.
6444 (aarch64_fill_fpregset): Likewise.
6445 (aarch64_store_fpregset): Likewise.
6446
4d3bb80e
SM
64472017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6448
6449 * gdbthread.h (find_thread, for_each_thread): New functions.
6450 * inferiors.c (thread_of_pid): Remove.
6451 (find_any_thread_of_pid): Use find_thread.
6452 * linux-low.c (num_lwps): Use for_each_thread.
6453
7a7cdfa0
YQ
64542017-10-17 Yao Qi <yao.qi@linaro.org>
6455
6456 * Makefile.in: Remove one rule.
6457 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6458
e675d170
YQ
64592017-10-17 Yao Qi <yao.qi@linaro.org>
6460
6461 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6462 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6463
7eb4e0f9
YQ
64642017-10-17 Yao Qi <yao.qi@linaro.org>
6465
6466 * configure.srv: Rename arm.o with arch/arm.o.
6467
60d6cfc9
YQ
64682017-10-17 Yao Qi <yao.qi@linaro.org>
6469
6470 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6471 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6472 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6473 (arch-i386.o, arch-amd64.o): Remove rules.
6474 (arch/%.o): New rule.
6475 Update POSTCOMPILE and COMPILE.pre.
6476 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6477 * configure: Re-generated.
6478 * configure.srv: Replace arch-i386.o with arch/i386.o.
6479 Replace arch-amd64.o with arch/amd64.o.
6480
5bfda255
YQ
64812017-10-16 Yao Qi <yao.qi@linaro.org>
6482
6483 * configure: Regenerated.
6484
9c80ecd6
SM
64852017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6486
6487 * inferiors.h: (struct inferior_list): Remove.
6488 (struct inferior_list_entry); Remove.
6489 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6490 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6491 get_first_inferior): Remove.
6492 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6493 find_inferior_id, find_inferior_in_random): Change signature.
6494 * inferiors.c (all_threads): Change type to
6495 std::list<thread_info *>.
6496 (get_thread): Remove macro.
6497 (find_inferior, find_inferior_id): Change signature, implement
6498 using find_thread.
6499 (find_inferior_in_random): Change signature, implement using
6500 find_thread_in_random.
6501 (for_each_inferior, for_each_inferior_with_data): Change
6502 signature, implement using for_each_thread.
6503 (add_inferior_to_list, remove_inferior): Remove.
6504 (add_thread, get_first_thread, thread_of_pid,
6505 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6506 (get_first_inferior, one_inferior_p, clear_inferior_list):
6507 Remove.
6508 (clear_inferiors, get_thread_process): Update.
6509 * gdbthread.h: Include <list>.
6510 (struct thread_info) <entry>: Remove field.
6511 <id>: New field.
6512 (all_threads): Change type to std::list<thread_info *>.
6513 (get_first_inferior): Add doc.
6514 (find_thread, for_each_thread, find_thread_in_random): New
6515 functions.
6516 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6517 * linux-arm-low.c (update_registers_callback): Update.
6518 * linux-low.c (second_thread_of_pid_p): Update.
6519 (kill_one_lwp_callback, linux_detach_lwp_callback,
6520 delete_lwp_callback, status_pending_p_callback, same_lwp,
6521 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6522 iterate_over_lwps, not_stopped_callback,
6523 resume_stopped_resumed_lwps, count_events_callback,
6524 select_singlestep_lwp_callback, select_event_lwp_callback,
6525 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6526 suspend_and_send_sigstop_callback, wait_for_sigstop,
6527 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6528 lwp_running, linux_set_resume_request, resume_status_pending_p,
6529 need_step_over_p, start_step_over, linux_resume_one_thread,
6530 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6531 reset_lwp_ptrace_options_callback): Update.
6532 * linux-mips-low.c (update_watch_registers_callback): Update.
6533 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6534 Update.
6535 (free_register_cache_thread_one): Remove.
6536 (regcache_release): Update.
6537 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6538 handle_qxfer_threads_worker): Update.
6539 (handle_query): Update, use list iterator.
6540 (visit_actioned_threads, handle_pending_status,
6541 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6542 clear_pending_status_callback, set_pending_status_callback,
6543 find_status_pending_thread_callback, handle_status,
6544 process_serial_event): Update.
6545 * target.c (thread_search_callback): Update.
6546 * thread-db.c (thread_db_get_tls_address): Update.
6547 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6548 Update.
6549 * win32-i386-low.c (update_debug_registers_callback): Update.
6550 * win32-low.c (delete_thread_info, child_delete_thread,
6551 continue_one_thread, suspend_one_thread,
6552 get_child_debug_event): Adjust.
6553
9179355e
SM
65542017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6555
6556 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6557 * inferiors.h: Include <list>.
6558 (struct process_info) <entry>: Remove field.
6559 <pid>: New field.
6560 (pid_of): Change macro to function.
6561 (ptid_of, lwpid_of): Remove macro.
6562 (all_processes): Change type to std::list<process_info *>.
6563 (ALL_PROCESSES): Remove macro.
6564 (for_each_process, find_process): New function.
6565 * inferiors.c (all_processes): Change type to
6566 std::list<process_info *>.
6567 (find_thread_process): Adjust.
6568 (add_process): Likewise.
6569 (remove_process): Likewise.
6570 (find_process_pid): Likewise.
6571 (get_first_process): Likewise.
6572 (started_inferior_callback): Remove.
6573 (have_started_inferiors_p): Adjust.
6574 (attached_inferior_callback): Remove.
6575 (have_attached_inferiors_p): Adjust.
6576 * linux-low.c (check_zombie_leaders): Likewise.
6577 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6578 (x86_linux_update_xmltarget): Adjust.
6579 * server.c (handle_query): Likewise.
6580 (gdb_reattached_process): Remove.
6581 (handle_status): Adjust.
6582 (kill_inferior_callback): Likewise.
6583 (detach_or_kill_inferior): Remove.
6584 (print_started_pid): Likewise.
6585 (print_attached_pid): Likewise.
6586 (detach_or_kill_for_exit): Update.
6587 (process_serial_event): Likewise.
6588 * linux-arm-low.c (arm_new_fork): Likewise.
6589
c9cb8905
SM
65902017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6591
6592 * dll.h: Include <list>.
6593 (struct dll_info): Add constructor.
6594 <entry>: Remove field.
6595 (all_dlls): Change type to std::list<dll_info>.
6596 * dll.c: Include <algorithm>.
6597 (get_dll): Remove macro.
6598 (all_dlls): Change type to std::list<dll_info *>.
6599 (free_one_dll): Remove.
6600 (match_dll): Likewise.
6601 (loaded_dll): Adjust.
6602 (unloaded_dll): Adjust to all_dlls type change, use
6603 std::find_if. Inline code from match_dll.
6604 (clear_dlls): Adjust to all_dlls type change.
6605 * server.c (emit_dll_description): Remove.
6606 (handle_qxfer_libraries): Adjust to all_dlls type change,
6607 integrate emit_dll_description's functionality.
6608
04ec7890
SM
66092017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * linux-low.h (struct linux_target_ops) <delete_process>: New
6612 field.
6613 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6614 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6615 (struct linux_target_ops): Add delete_process callback.
6616 * linux-arm-low.c (arm_delete_process): New.
6617 (struct linux_target_ops): Add delete_process callback.
6618 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6619 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6620 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6621 * linux-mips-low.c (mips_linux_delete_process): New.
6622 (struct linux_target_ops): Add delete_process callback.
6623 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6624 * linux-s390-low.c (struct linux_target_ops): Likewise.
6625 * linux-sh-low.c (struct linux_target_ops): Likewise.
6626 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6627 * linux-tile-low.c (struct linux_target_ops): Likewise.
6628 * linux-x86-low.c (x86_linux_delete_process): New.
6629 (struct linux_target_ops): Add delete_process callback.
6630 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6631
466eecee
SM
66322017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6633
6634 * linux-aarch64-low.c (the_low_target): Add thread delete
6635 callback.
6636 * linux-arm-low.c (arm_delete_thread): New function.
6637 (the_low_target): Add thread delete callback.
6638 * linux-bfin-low.c (the_low_target): Likewise.
6639 * linux-crisv32-low.c (the_low_target): Likewise.
6640 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6641 set.
6642 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6643 field.
6644 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6645 * linux-mips-low.c (mips_linux_delete_thread): New function.
6646 (the_low_target): Add thread delete callback.
6647 * linux-ppc-low.c (the_low_target): Likewise.
6648 * linux-s390-low.c (the_low_target): Likewise.
6649 * linux-sh-low.c (the_low_target): Likewise.
6650 * linux-tic6x-low.c (the_low_target): Likewise.
6651 * linux-tile-low.c (the_low_target): Likewise.
6652 * linux-x86-low.c (the_low_target): Likewise.
6653 * linux-xtensa-low.c (the_low_target): Likewise.
6654
b79f7801
YZ
66552017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6656
6657 * win32-low.c: Include "common-inferior.h".
6658
bc3b087d
SDJ
66592017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6660
6661 * inferiors.c (set_inferior_cwd): New function.
6662 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6663 (handle_query): Inform that QSetWorkingDir is supported.
6664 * win32-low.c (create_process): Pass the inferior's cwd to
6665 CreateProcess.
6666
d092c5a2
SDJ
66672017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6668
6669 * inferiors.c (current_inferior_cwd): New global variable.
6670 (get_inferior_cwd): New function.
6671 * inferiors.h (struct process_info) <cwd>: New field.
6672
7da0a886
SDJ
66732017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6674
6675 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6676 (OBS): Add gdb_tilde_expand.o.
6677
289a6840
SM
66782017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6679
6680 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6681 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6682
256642e8
PA
66832017-09-29 Pedro Alves <palves@redhat.com>
6684
6685 * ax.c (gdb_parse_agent_expr): Constify.
6686 * ax.h (gdb_parse_agent_expr): Constify.
6687 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6688 Constify.
6689 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6690 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6691 * remote-utils.h (read_ptid): Constify.
6692 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6693 (process_point_options, process_serial_event): Constify.
6694 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6695 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6696 (cmd_qtbuffer): Constify.
6697
5b9ca4d4
PA
66982017-09-29 Pedro Alves <palves@redhat.com>
6699
6700 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6701 fails.
6702
94c207e0
PA
67032017-09-29 Pedro Alves <palves@redhat.com>
6704
6705 * linux-low.c (handle_extended_wait): Pass parent thread instead
6706 of process to thread_db_notice_clone.
6707 * linux-low.h (thread_db_notice_clone): Replace parent process
6708 parameter with parent thread parameter.
6709 * thread-db.c (find_one_thread): Add comment.
6710 (thread_db_notice_clone): Replace parent process parameter with
6711 parent thread parameter. Temporarily switch to the parent thread.
6712
75352e28
SDJ
67132017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6714
6715 * gdbthread.h: Include "common-gdbthread.h".
6716 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6717 "if" when validating the ptid.
6718 * remote-utils.c: Include "gdbthread.h".
6719 (prepare_resume_reply): Use "switch_to_thread".
6720 * target.c (done_accessing_memory): Likewise.
6721
ad339634
AA
67222017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6723
6724 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6725 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6726 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6727 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6728 s390x-gs-linux64-ipa.o to ipa_obj.
6729 * linux-s390-low.c (HWCAP_S390_GS): New define.
6730 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6731 New functions.
6732 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6733 (s390_arch_setup): Check for guarded-storage support and choose
6734 appropriate tdesc.
6735 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6736 init_registers_s390x_gs_linux64.
6737 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6738 enum value.
6739 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6740 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6741
cc4d742f
SM
67422017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6743
6744 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6745
f6327dcb
KB
67462017-09-21 Kevin Buettner <kevinb@redhat.com>
6747
6748 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6749 (thread_db_thread_handle): Declare.
6750 * linux-low.c (linux_target_ops): Initialize thread_handle.
6751 * server.c (handle_qxfer_threads_worker): Add support for
6752 "handle" attribute.
6753 * target.h (struct target_ops): Add new function pointer,
6754 thread_handle.
6755 (target_thread_handle): Define.
6756 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6757 field in lwp.
6758 (thread_db_thread_handle): New function.
6759
86299109
KB
67602017-09-21 Kevin Buettner <kevinb@redhat.com>
6761
6762 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6763 * linux-low.h (thread_db_notice_clone): Declare.
6764 * thread-db.c (thread_db_notice_clone): New function.
6765
f557a88a
PA
67662017-09-21 Pedro Alves <palves@redhat.com>
6767
6768 * server.c (gdb_read_memory, handle_status, process_serial_event)
6769 (handle_serial_event, handle_target_event): Adjust to
6770 set_desired_thread prototype change.
6771 * target.c (set_desired_thread): Remove 'use_general' parameter
6772 and adjust.
6773 * target.h (set_desired_thread): Remove 'use_general' parameter.
6774
223ffa71
TT
67752017-09-20 Tom Tromey <tom@tromey.com>
6776
6777 * target.c (target_terminal::terminal_state): Define.
6778 (target_terminal::init): Rename from target_terminal_init.
6779 (target_terminal::inferior): Rename from
6780 target_terminal_inferior.
6781 (target_terminal::ours): Rename from target_terminal_ours.
6782 (target_terminal::ours_for_output, target_terminal::info): New.
6783
04fd3ba9
SM
67842017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6785
6786 * server.c (accumulate_file_name_length): Remove.
6787 (emit_dll_description): Adjust to std::string change.
6788 (handle_qxfer_libraries): Use std::string to hold document.
6789
5e187554
SM
67902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6791
6792 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6793 return type of xml_escape_text.
6794 * server.c (emit_dll_description): Likewise.
6795
1526853e
SM
67962017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6797
6798 * server.c (captured_main): Accept argument for --selftest.
6799 Update run_tests call.
6800 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6801 when registering selftests.
6802
c4dfafab
SDJ
68032017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6804
6805 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6806 instead of "VEC" for "target_desc.reg_defs".
6807 (regcache_cpy): Likewise.
6808 (registers_to_string): Likewise.
6809 (registers_from_string): Likewise.
6810 (find_regno): Likewise.
6811 (supply_regblock): Likewise.
6812 (regcache_raw_read_unsigned): Likewise.
6813 * tdesc.c (init_target_desc): Likewise.
6814 (tdesc_create_reg): Likewise.
6815 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6816 (struct target_desc) <reg_defs>: Convert to "std::vector".
6817 (target_desc): Do not initialize "reg_defs".
6818 (~target_desc): Update code to use "std::vector" instead of "VEC"
6819 for "target_desc.reg_defs".
6820 (operator==): Likewise.
6821
124aceb4
SM
68222017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6823
6824 * inferiors.h (thread_to_gdb_id): Remove.
6825 * inferiors.c (thread_to_gdb_id): Remove.
6826 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6827 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6828 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6829 Likewise.
6830 * nto-low.c (nto_fetch_registers, nto_store_registers,
6831 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6832
96cde54f
SM
68332017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6834
6835 * inferiors.h (gdb_id_to_thread_id): Remove.
6836 * inferiors.c (gdb_id_to_thread_id): Remove.
6837 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6838 removal. Move pid declaration closer to where it's used.
6839
e8ca139e
SM
68402017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6841
6842 * server.c (handle_detach): New function.
6843 (process_serial_event): Move code out, call handle_detach.
6844
f8a4e119
SM
68452017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6846
6847 * server.c (require_running): Rename to ...
6848 (require_running_or_return): ... this ...
6849 (require_running_or_break): ... and this.
6850 (handle_query, process_serial_event): Adjust.
6851
0eb0a407
SM
68522017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6853
6854 * linux-low.c (linux_set_resume_request): Remove unused
6855 variables.
6856
785922a5
SM
68572017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6858
6859 * server.c (first_thread_of): Remove.
6860 (process_serial_event): Replace usage of first_thread_of with
6861 find_any_thread_of_pid.
6862 * tracepoint.c (same_process_p): Remove.
6863 (gdb_agent_about_to_close): Replace usage of same_process_p with
6864 find_any_thread_of_pid.
6865 * linux-x86-low.c (same_process_callback): Remove.
6866 (x86_arch_setup_process_callback): Replace usage of
6867 same_process_callback with find_any_thread_of_pid.
6868 * thread-db.c (any_thread_of): Remove.
6869 (switch_to_process): Replace usage of any_thread_of with
6870 find_any_thread_of_pid.
6871 * inferiors.c (thread_pid_matches_callback): Remove.
6872 (find_thread_process): Adjust to use find_any_thread_of_pid.
6873
a059f00c
SDJ
68742017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6875
6876 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6877 with "!VEC_empty".
a059f00c 6878
cc397f3a
SDJ
68792017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6880
6881 * linux-low.c (handle_extended_wait): Use
6882 "allocate_target_description" instead of "XNEW".
6883 * linux-x86-low.c (initialize_low_arch): Likewise.
6884
22916b07
YQ
68852017-09-05 Yao Qi <yao.qi@linaro.org>
6886
6887 * configure.srv (srv_i386_regobj): Remove.
6888 (srv_amd64_regobj): Remove.
6889 (srv_regobj): Set it to "" for x86 non-linux targets.
6890 * linux-x86-tdesc.c (i386_linux_read_description):
6891 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6892 (init_registers_i386): Remove the declaration.
6893 (tdesc_i386): Remove the declaration.
6894 (lynx_i386_arch_setup): Call i386_create_target_description.
6895 * nto-x86-low.c: Likewise.
6896 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6897 [!__x86_64__]: include arch/i386.h.
6898 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6899
38602d55
YQ
69002017-09-05 Yao Qi <yao.qi@linaro.org>
6901
6902 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6903 i386/amd64-XXX-linux from it.
6904
44b886ff
YQ
69052017-09-05 Yao Qi <yao.qi@linaro.org>
6906
6907 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6908 false.
6909 (ipa_amd64_linux_regobj): Remove.
6910 (ipa_x32_linux_regobj): Remove.
6911
b4570e4b
YQ
69122017-09-05 Yao Qi <yao.qi@linaro.org>
6913
6914 * Makefile.in (arch-amd64.o): New rule.
6915 * configure.srv: Append arch-amd64.o.
6916 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6917 (get_ipa_tdesc): Call amd64_linux_read_description.
6918 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6919 and init_registers_amd64_XXX.
6920 * linux-x86-low.c (x86_linux_read_description): Call
6921 amd64_linux_read_description.
6922 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6923 (initialize_low_arch): Don't call init_registers_x32_XXX and
6924 init_registers_amd64_XXX.
6925 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6926 and tdesc_amd64_XXX.
6927 [__x86_64__] (amd64_tdesc_test): New function.
6928 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6929 and init_registers_amd64_XXX.
6930 * linux-x86-tdesc.c: Include arch/amd64.h.
6931 (xcr0_to_tdesc_idx): New function.
6932 (i386_linux_read_description): New function.
6933 (amd64_get_ipa_tdesc_idx): New function.
6934 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6935 (amd64_get_ipa_tdesc): Declare.
6936
d1f28ea2
YQ
69372017-09-05 Yao Qi <yao.qi@linaro.org>
6938
6939 * configure.srv (srv_i386_linux_xmlfiles): Remove
6940 i386/i386-XXX-linux.xml from it.
6941
25a93583
YQ
69422017-09-05 Yao Qi <yao.qi@linaro.org>
6943
6944 * configure.srv: Set srv_i386_linux_regobj empty if $development
6945 is false.
6946 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6947 initialize_low_tdesc.
6948 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6949 with #if initialize_low_tdesc.
6950 * linux-x86-tdesc-selftest.c: New file.
6951 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6952
5f035c07
YQ
69532017-09-05 Yao Qi <yao.qi@linaro.org>
6954
6955 * Makefile.in (arch-i386.o): New rule.
6956 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6957 (x86_64-*-linux*): Likewise.
6958 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6959 include arch/i386.h.
6960 (i386_linux_read_description): Remove code and call
6961 i386_create_target_description.
6962 * tdesc.c (allocate_target_description): New function.
6963 * tdesc.h (set_tdesc_architecture): Remove declaration.
6964 (set_tdesc_osabi): Likewise.
6965
0abe8a89
YQ
69662017-09-05 Yao Qi <yao.qi@linaro.org>
6967
6968 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6969 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6970 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6971 .xmltarget.
6972 * server.c (get_features_xml): Call tdesc_get_features_xml.
6973 * tdesc.c (set_tdesc_architecture): New function.
6974 (set_tdesc_osabi): New function.
6975 (tdesc_get_features_xml): New function.
6976 (tdesc_create_feature): Add an argument.
6977 * tdesc.h (struct target_desc) <features>: New field.
6978 <arch, osabi>: New field.
6979 (~target_desc): xfree features, arch, and osabi.
6980 (target_desc::oerator==): Don't compare .xmltarget.
6981 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6982 (set_tdesc_osabi): Likewise.
6983 (tdesc_get_features_xml): Likewise.
6984
0a188386
YQ
69852017-09-05 Yao Qi <yao.qi@linaro.org>
6986
6987 * linux-x86-tdesc.c: Include selftest.h.
6988 (i386_tdesc_test): New function.
6989 (initialize_low_tdesc): Call selftests::register_test.
6990 * tdesc.h: Include regdef.h.
6991 (target_desc): Override operator == and !=.
6992
f49ff000
YQ
69932017-09-05 Yao Qi <yao.qi@linaro.org>
6994
6995 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6996 (ipa_obj): Likewise.
6997 * linux-i386-ipa.c: Include common/x86-xstate.h
6998 (get_ipa_tdesc): Call i386_linux_read_description.
6999 (initialize_low_tracepoint): Don't call init_registers_XXX
7000 functions, call initialize_low_tdesc instead.
7001 * linux-x86-low.c (x86_linux_read_description): Call
7002 i386_linux_read_description.
7003 (initialize_low_arch): Don't call init_registers_i386_XXX
7004 functions, call initialize_low_tdesc.
7005 * linux-x86-tdesc.c: New file.
7006 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7007 (i386_get_ipa_tdesc_idx): Declare.
7008 (i386_get_ipa_tdesc): Declare.
7009 (initialize_low_tdesc): Declare.
7010
2b68ef2f
YQ
70112017-09-05 Yao Qi <yao.qi@linaro.org>
7012
7013 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7014 instead of 0.
7015
f7000548
YQ
70162017-09-05 Yao Qi <yao.qi@linaro.org>
7017
7018 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7019 * regcache.c (get_thread_regcache): Use VEC_length.
7020 (init_register_cache): Likewise.
7021 (regcache_cpy): Likewise.
7022 (registers_to_string): Iterate reg_defs via VEC_iterate.
7023 (find_regno): Likewise.
7024 (find_register_by_number): Use VEC_index.
7025 (register_size): Call find_register_by_number.
7026 (register_data): Call find_register_by_number.
7027 (supply_regblock): Use VEC_length.
7028 (regcache_raw_read_unsigned): Likewise.
7029 * tdesc.c (init_target_desc): Iterate reg_defs via
7030 VEC_iterate.
7031 (default_description): Update initializer.
7032 (copy_target_description): Don't update field num_registers.
7033 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7034 <num_registers>: Remove.
7035
50a421ac
SM
70362017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7037
7038 * Makefile.in (.SECONDARY): Define target.
7039
23fdd69e
SM
70402017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7041
7042 * linux-low.c (linux_wait_1): Adjust.
7043 * server.c (queue_stop_reply_callback): Adjust.
7044
0a2dde4a
SDJ
70452017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7046
7047 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7048 QEnvironmentUnset and QEnvironmentReset packets.
7049 (handle_query): Inform remote that QEnvironmentHexEncoded,
7050 QEnvironmentUnset and QEnvironmentReset are supported.
7051
6afd337d
SM
70522017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7053
7054 * inferiors.h (inferior_target_data): Rename to ...
7055 (thread_target_data): ... this.
7056 (inferior_regcache_data): Rename to ...
7057 (thread_regcache_data): ... this.
7058 (set_inferior_regcache_data): Rename to ...
7059 (set_thread_regcache_data): ... this.
7060 * inferiors.c (inferior_target_data): Rename to ...
7061 (thread_target_data): ... this.
7062 (inferior_regcache_data): Rename to ...
7063 (thread_regcache_data): ... this.
7064 (set_inferior_regcache_data): Rename to ...
7065 (set_thread_regcache_data): ... this.
7066 (free_one_thread): Update.
7067 * linux-low.h (get_thread_lwp): Update.
7068 * regcache.c (get_thread_regcache): Update.
7069 (regcache_invalidate_thread): Update.
7070 (free_register_cache_thread): Update.
7071 * win32-i386-low.c (update_debug_registers_callback): Update.
7072 (win32_get_current_dr): Update.
7073 * win32-low.c (thread_rec): Update.
7074 (delete_thread_info): Update.
7075 (continue_one_thread): Update.
7076 (suspend_one_thread): Update.
7077
a160cc46
SM
70782017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7079
7080 * inferiors.c (set_inferior_target_data): Remove.
7081 * inferiors.h (set_inferior_target_data): Remove.
7082
6d580b63
YQ
70832017-08-18 Yao Qi <yao.qi@linaro.org>
7084
7085 * Makefile.in (OBS): Add selftest.o.
7086 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7087 * configure, config.in: Re-generated.
7088 * server.c: Include common/sefltest.h.
7089 (captured_main): Handle option --selftest.
7090
f5a29eb0
YQ
70912017-08-09 Yao Qi <yao.qi@linaro.org>
7092
7093 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7094 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7095 i386-avx-mpx.o and i386-mmx.o.
7096 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7097 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7098 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7099 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7100 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7101 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7102 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7103 i386/amd64-avx-mpx.xml.
7104
57757c2f
YQ
71052017-08-09 Yao Qi <yao.qi@linaro.org>
7106
7107 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7108 and x32-avx-avx512.o.
7109 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7110 i386/x32-avx-avx512.xml.
7111
229d26fc
SM
71122017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7113
7114 * tracepoint.h (enum class fast_tpoint_collect_result): New
7115 enumeration.
7116 (fast_tracepoint_collecting): Change return type to
7117 fast_tpoint_collect_result.
7118 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7119 * linux-low.h: Include tracepoint.h.
7120 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7121 fast_tpoint_collect_result.
7122 * linux-low.c (handle_tracepoints): Adjust.
7123 (linux_fast_tracepoint_collecting): Change return type to
7124 fast_tpoint_collect_result.
7125 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7126 linux_wait_1, stuck_in_jump_pad_callback,
7127 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7128 proceed_one_lwp): Adjust to type change.
7129
2e1e43e1
YQ
71302017-07-10 Yao Qi <yao.qi@linaro.org>
7131
7132 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7133
adc764e7
YQ
71342017-06-29 Yao Qi <yao.qi@linaro.org>
7135
7136 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7137 Remove.
7138 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7139
a206891a
SM
71402017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7141
7142 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7143
9a6c7d9c
SDJ
71442017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7145
7146 * linux-low.c (linux_create_inferior): Adjust code to access the
7147 environment information via 'gdb_environ' class.
7148 * lynx-low.c (lynx_create_inferior): Likewise.
7149 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7150 (get_environ): Return a pointer to 'our_environ'.
7151 (captured_main): Initialize 'our_environ'.
7152 * server.h (get_environ): Adjust prototype.
7153 * spu-low.c (spu_create_inferior): Adjust code to access the
7154 environment information via 'gdb_environ' class.
7155
ae3e2ccf
SM
71562017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7157
7158 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7159 usage of "register" keyword.
7160
3e019bdc
SM
71612017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7162
7163 * configure: Re-generate.
7164
8465943a
SM
71652017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7166
7167 * configure: Re-generate.
7168
cf0dd6f0
SM
71692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7170
7171 * Makefile.in (COMPILE.pre): Add "-x c++".
7172
9845682b
SDJ
71732017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7174
7175 * fork-child.c: Conditionally include <signal.h>.
7176
aefd8b33
SDJ
71772017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7178
7179 * server.c (handle_general_set): Handle new packet
7180 "QStartupWithShell".
7181 (handle_query): Add "QStartupWithShell" to the list of supported
7182 packets.
7183 (gdbserver_usage): Add help text explaining the
7184 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7185 options.
7186 (captured_main): Recognize and act upon the presence of the new
7187 CLI options.
7188
2090129c
SDJ
71892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7190 Pedro Alves <palves@redhat.com>
7191
7192 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7193 * configure: Regenerate.
7194 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7195 "fork-inferior.o".
7196 (i[34567]86-*-lynxos*): Likewise.
7197 (spu*-*-*): Likewise.
7198 * fork-child.c: New file.
7199 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7200 and "environ.h".
7201 (linux_ptrace_fun): New function.
7202 (linux_create_inferior): Adjust function prototype to reflect
7203 change on "target.h". Adjust function code to use
7204 "fork_inferior".
7205 (linux_request_interrupt): Delete "signal_pid".
7206 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7207 (lynx_ptrace_fun): New function.
7208 (lynx_create_inferior): Adjust function prototype to reflect
7209 change on "target.h". Adjust function code to use
7210 "fork_inferior".
7211 * nto-low.c (nto_create_inferior): Adjust function prototype and
7212 code to reflect change on "target.h". Update comments.
7213 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7214 "common-terminal.h" and "environ.h".
7215 (terminal_fd): Moved to fork-child.c.
7216 (old_foreground_pgrp): Likewise.
7217 (restore_old_foreground_pgrp): Likewise.
7218 (last_status): Make it global.
7219 (last_ptid): Likewise.
7220 (our_environ): New variable.
7221 (startup_with_shell): Likewise.
7222 (program_name): Likewise.
7223 (program_argv): Rename to...
7224 (program_args): ...this.
7225 (wrapper_argv): New variable.
7226 (start_inferior): Delete function.
7227 (get_exec_wrapper): New function.
7228 (get_exec_file): Likewise.
7229 (get_environ): Likewise.
7230 (prefork_hook): Likewise.
7231 (post_fork_inferior): Likewise.
7232 (postfork_hook): Likewise.
7233 (postfork_child_hook): Likewise.
7234 (handle_v_run): Update code to deal with arguments coming from the
7235 remote host. Update calls from "start_inferior" to
7236 "create_inferior".
7237 (captured_main): Likewise. Initialize environment variable. Call
7238 "have_job_control".
7239 * server.h (post_fork_inferior): New prototype.
7240 (get_environ): Likewise.
7241 (last_status): Declare.
7242 (last_ptid): Likewise.
7243 (signal_pid): Likewise.
7244 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7245 (spu_ptrace_fun): New function.
7246 (spu_create_inferior): Adjust function prototype to reflect change
7247 on "target.h". Adjust function code to use "fork_inferior".
7248 * target.c (target_terminal_init): New function.
7249 (target_terminal_inferior): Likewise.
7250 (target_terminal_ours): Likewise.
7251 * target.h: Include <vector>.
7252 (struct target_ops) <create_inferior>: Update prototype.
7253 (create_inferior): Update macro.
7254 * utils.c (gdb_flush_out_err): New function.
7255 * win32-low.c (win32_create_inferior): Adjust function prototype
7256 and code to reflect change on "target.h".
7257
043a4934
SDJ
72582017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7259
7260 * inferiors.c (switch_to_thread): New function.
7261
15652511
SDJ
72622017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7263
7264 * Makefile.in (SFILE): Add "common/job-control.c".
7265 (OBS): Add "job-control.o".
7266
21ea5acd
SDJ
72672017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7268
7269 * Makefile: Remove "@host_makefile_frag@".
7270
e13cb306
PA
72712017-05-05 Pedro Alves <palves@redhat.com>
7272
7273 * configure: Regenerate.
7274
c94fee56
SDJ
72752017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7276
7277 * configure: Regenerate.
7278
a0ff9e1a
SM
72792017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7280
7281 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7282 software_single_step change of return type to
7283 std::vector<CORE_ADDR>.
7284 * linux-low.c (install_software_single_step_breakpoints):
7285 Likewise.
7286 * linux-low.h (install_software_single_step_breakpoints):
7287 Likewise.
7288
be628ab8
SDJ
72892017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7290
7291 * remote-utils.c: Include "gdb_termios.h" instead of
7292 "terminal.h".
7293 * terminal.h: Delete file.
7294
7c5ded6a
SDJ
72952017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7296
7297 * server.c: Include <vector>.
7298 <program_argv, wrapper_argv>: Convert to std::vector.
7299 (start_inferior): Rewrite function to use C++.
7300 (handle_v_run): Likewise. Update code that calculates the argv
7301 based on the vRun packet; use C++.
7302 (captured_main): Likewise.
7303
436252de
SM
73042017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7305
7306 * server.c (handle_v_cont): Initialize thread_resume::thread
7307 with null_ptid.
7308
9bf2a700
PA
73092017-04-05 Pedro Alves <palves@redhat.com>
7310
7311 * configure: Regenerate.
7312
a121b7c1
PA
73132017-04-05 Pedro Alves <palves@redhat.com>
7314
7315 * gdbreplay.c (sync_error): Constify.
7316 * linux-x86-low.c (push_opcode): Constify.
7317
21c8a587
PA
73182017-04-05 Pedro Alves <palves@redhat.com>
7319
7320 * win32-low.c (get_child_debug_event)
7321 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7322 Report TARGET_WAITKIND_SPURIOUS instead.
7323
fb32b4f7
PA
73242017-04-05 Pedro Alves <palves@redhat.com>
7325
e79be6e5
SM
7326 * remote-utils.c (remote_prepare, remote_open): Constify.
7327 * remote-utils.h (remote_prepare, remote_open): Constify.
7328 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7329
65dd1e59
SM
73302017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * Makefile.in (clean): Clear .deps.
7333
8fa5b777
SM
73342017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7335
7336 * .gitignore: Remove generated files, replace with wildcard.
7337 * (clean): Replace removal of generated files with wildcard.
7338 (version.c): Replace with...
7339 (version-generated.c): ...this.
7340 (xml-builtin.c): Replace with...
7341 (xml-builtin-generated.c): ...this.
7342 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7343 (%.c: *regformats*): Replace with...
7344 (%-generated.c: *regformats*): ...this.
7345
a12e714b
MF
73462017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7347
7348 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7349 (xtensa_fill_gregset): Call collect_register_by_name for
7350 threadptr register.
7351 (xtensa_store_gregset): Call supply_register_by_name for
7352 threadptr register.
7353
1a09b50a
MF
73542017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7355
7356 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7357 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7358 (xtensa_store_gregset): Call supply_register for all registers in
7359 a0_regnum..a0_regnum + C0_NREGS range.
7360
1a01e7c6
SM
73612017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7362
7363 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7364 (ax-ipa.o: ax.c): Remove.
7365 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7366 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7367 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7368 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7369 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7370
36bc18a8
SM
73712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7372
7373 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7374 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7375 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7376 (errors-ipa.o: ../common/errors.c): Remove.
7377 (format-ipa.o: ../common/format.c): Remove.
7378 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7379
a8ebe3d5
SM
73802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7381
7382 * Makefile.in (%-ipa.o: %.c): New rule.
7383 (tracepoint-ipa.o: tracepoint.c): Remove.
7384 (utils-ipa.o: utils.c): Remove.
7385 (remote-utils-ipa.o: remote-utils.c): Remove.
7386 (regcache-ipa.o: regcache.c): Remove.
7387 (i386-linux-ipa.o: i386-linux.c): Remove.
7388 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7389 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7390 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7391 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7392 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7393 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7394 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7395 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7396 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7397 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7398 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7399 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7400 (aarch64-ipa.o: aarch64.c): Remove.
7401 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7402 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7403 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7404 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7405 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7406 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7407 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7408 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7409 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7410 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7411 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7412 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7413 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7414 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7415 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7416 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7417 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7418 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7419 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7420 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7421 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7422 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7423 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7424 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7425 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7426 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7427 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7428 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7429 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7430 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7431 (tdesc-ipa.o: tdesc.c): Remove.
7432 (x32-linux-ipa.o: x32-linux.c): Remove.
7433 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7434 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7435
50cfacb7
SM
74362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7437
7438 * Makefile.in (%.o: ../arch/%.c): New rule.
7439 (arm.o: ../arch/arm.c): Remove.
7440 (arm-linux.o: ../arch/arm-linux.c): Remove.
7441 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7442 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7443
c5a22423
SM
74442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7445
7446 * Makefile.in (%.o: ../nat/%.c): New rule.
7447 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7448 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7449 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7450 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7451 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7452 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7453 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7454 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7455 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7456 (linux-personality.o: ../nat/linux-personality.c): Remove.
7457 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7458 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7459 (x86-linux.o: ../nat/x86-linux.c): Remove.
7460 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7461 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7462
6bda016b
SM
74632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7464
7465 * Makefile.in (%.o: ../common/%.c): New rule.
7466 (signals.o: ../common/signals.c): Remove.
7467 (print-utils.o: ../common/print-utils.c): Remove.
7468 (rsp-low.o: ../common/rsp-low.c): Remove.
7469 (common-utils.o: ../common/common-utils.c): Remove.
7470 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7471 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7472 (vec.o: ../common/vec.c): Remove.
7473 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7474 (xml-utils.o: ../common/xml-utils.c): Remove.
7475 (ptid.o: ../common/ptid.c): Remove.
7476 (buffer.o: ../common/buffer.c): Remove.
7477 (format.o: ../common/format.c): Remove.
7478 (filestuff.o: ../common/filestuff.c): Remove.
7479 (agent.o: ../common/agent.c): Remove.
7480 (errors.o: ../common/errors.c): Remove.
7481 (environ.o: ../common/environ.c): Remove.
7482 (common-debug.o: ../common/common-debug.c): Remove.
7483 (cleanups.o: ../common/cleanups.c): Remove.
7484 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7485 (fileio.o: ../common/fileio.c): Remove.
7486 (common-regcache.o: ../common/common-regcache.c): Remove.
7487 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7488 (new-op.o: ../common/new-op.c): Remove.
7489 (btrace-common.o: ../common/btrace-common.c): Remove.
7490
21122961
SM
74912017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7492
7493 * Makefile.in (%.o: ../target/%.c): New rule.
7494 (waitstatus.o: ../target/waitstatus.c): Remove.
7495
c362e621
SM
74962017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7497
7498 * Makefile.in
7499 (%.c: ../regformats/%.dat,
7500 (%.c: ../regformats/arm/%.dat,
7501 (%.c: ../regformats/i386/%.dat,
7502 (%.c: ../regformats/rs6000/%.dat): New rules.
7503 (aarch64.c): Remove.
7504 (reg-arm.c): Remove.
7505 (arm-with-iwmmxt.c): Remove.
7506 (arm-with-vfpv2.c): Remove.
7507 (arm-with-vfpv3.c): Remove.
7508 (arm-with-neon.c): Remove.
7509 (reg-bfin.c): Remove.
7510 (reg-cris.c): Remove.
7511 (reg-crisv32.c): Remove.
7512 (i386.c): Remove.
7513 (i386-linux.c): Remove.
7514 (i386-avx.c): Remove.
7515 (i386-avx-linux.c): Remove.
7516 (i386-avx-avx512.c): Remove.
7517 (i386-avx-avx512-linux.c): Remove.
7518 (i386-mpx.c): Remove.
7519 (i386-mpx-linux.c): Remove.
7520 (i386-avx-mpx-avx512-pku.c): Remove.
7521 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7522 (i386-avx-mpx.c): Remove.
7523 (i386-avx-mpx-linux.c): Remove.
7524 (i386-mmx.c): Remove.
7525 (i386-mmx-linux.c): Remove.
7526 (reg-ia64.c): Remove.
7527 (reg-m32r.c): Remove.
7528 (reg-m68k.c): Remove.
7529 (reg-cf.c): Remove.
7530 (mips-linux.c): Remove.
7531 (mips-dsp-linux.c): Remove.
7532 (mips64-linux.c): Remove.
7533 (mips64-dsp-linux.c): Remove.
7534 (nios2-linux.c): Remove.
7535 (powerpc-32.c): Remove.
7536 (powerpc-32l.c): Remove.
7537 (powerpc-altivec32l.c): Remove.
7538 (powerpc-cell32l.c): Remove.
7539 (powerpc-vsx32l.c): Remove.
7540 (powerpc-isa205-32l.c): Remove.
7541 (powerpc-isa205-altivec32l.c): Remove.
7542 (powerpc-isa205-vsx32l.c): Remove.
7543 (powerpc-e500l.c): Remove.
7544 (powerpc-64l.c): Remove.
7545 (powerpc-altivec64l.c): Remove.
7546 (powerpc-cell64l.c): Remove.
7547 (powerpc-vsx64l.c): Remove.
7548 (powerpc-isa205-64l.c): Remove.
7549 (powerpc-isa205-altivec64l.c): Remove.
7550 (powerpc-isa205-vsx64l.c): Remove.
7551 (s390-linux32.c): Remove.
7552 (s390-linux32v1.c): Remove.
7553 (s390-linux32v2.c): Remove.
7554 (s390-linux64.c): Remove.
7555 (s390-linux64v1.c): Remove.
7556 (s390-linux64v2.c): Remove.
7557 (s390-te-linux64.c): Remove.
7558 (s390-vx-linux64.c): Remove.
7559 (s390-tevx-linux64.c): Remove.
7560 (s390x-linux64.c): Remove.
7561 (s390x-linux64v1.c): Remove.
7562 (s390x-linux64v2.c): Remove.
7563 (s390x-te-linux64.c): Remove.
7564 (s390x-vx-linux64.c): Remove.
7565 (s390x-tevx-linux64.c): Remove.
7566 (tic6x-c64xp-linux.c): Remove.
7567 (tic6x-c64x-linux.c): Remove.
7568 (tic6x-c62x-linux.c): Remove.
7569 (reg-sh.c): Remove.
7570 (reg-sparc64.c): Remove.
7571 (reg-spu.c): Remove.
7572 (amd64.c): Remove.
7573 (amd64-linux.c): Remove.
7574 (amd64-avx.c): Remove.
7575 (amd64-avx-linux.c): Remove.
7576 (amd64-avx-avx512.c): Remove.
7577 (amd64-avx-avx512-linux.c): Remove.
7578 (amd64-mpx.c): Remove.
7579 (amd64-mpx-linux.c): Remove.
7580 (amd64-avx-mpx-avx512-pku.c): Remove.
7581 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7582 (amd64-avx-mpx.c): Remove.
7583 (amd64-avx-mpx-linux.c): Remove.
7584 (x32.c): Remove.
7585 (x32-linux.c): Remove.
7586 (x32-avx.c): Remove.
7587 (x32-avx-linux.c): Remove.
7588 (x32-avx-avx512.c): Remove.
7589 (x32-avx-avx512-linux.c): Remove.
7590 (reg-xtensa.c): Remove.
7591 (reg-tilegx.c): Remove.
7592 (reg-tilegx32.c): Remove.
7593
1672e0d9
SDJ
75942017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7595
7596 * Makefile.in (SFILES): Add "common/environ.c".
7597 (OBJS): Add "common/environ.h".
7598
239b6d10
WT
75992017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7600
7601 * configure.ac: Check if the fs_base and gs_base members of
7602 `struct user_regs_struct' exist.
7603 * config.in: Regenerated.
7604 * configure: Likewise.
7605
694b382c
AT
76062017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7607
7608 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7609 target_read_memory.
7610 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7611 (get_next_pcs_syscall_next_pc): Likewise.
7612
7dc53023
LM
76132016-12-23 Luis Machado <lgustavo@codesourcery.com>
7614
7615 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7616 * nto-x86-low.c: Likewise.
7617
ad02e4fe
SM
76182016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7619
7620 * Makefile.in: Include disable-implicit-rules.mk.
7621
dcb07cfa
PA
76222016-11-23 Pedro Alves <palves@redhat.com>
7623
7624 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7625 (debug_vprintf): Use std::chrono::steady_clock instead of
7626 gettimeofday. Use '.' instead of ':'.
7627 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7628 (get_timestamp): Use std::chrono::steady_clock instead of
7629 gettimeofday.
7630
8629c02c
SM
76312016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7632
7633 * Makefile.in: Fix whitespace formatting.
7634
b593ecca
SM
76352016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7636
7637 * Makefile.in (SFILES, OBS): Flatten list and order
7638 alphabetically.
7639
9986ba08
PA
76402016-11-23 Pedro Alves <palves@redhat.com>
7641
7642 * event-loop.c (handle_file_event): Use warning.
7643 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7644 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7645 Use warning.
7646
4eefa7bc
PA
76472016-11-23 Pedro Alves <palves@redhat.com>
7648
7649 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7650 output.
7651 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7652 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7653 debug_printf and debug_flush for debug output.
7654 * server.c (handle_general_set): Likewise.
7655 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7656 output.
7657
5443506e
SM
76582016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7659
7660 * Makefile.in (.c.o): Replace rule with ...
7661 (%.o: %.c): ... this one.
7662
3b165252
SM
76632016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7664
7665 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7666 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7667 make.
7668 * configure.ac: Remove checks for the make program.
7669 * configure: Re-generate.
7670
0bcda685
PA
76712016-10-28 Pedro Alves <palves@redhat.com>
7672
7673 * Makefile.in (CXX_DIALECT): Get from configure.
7674 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7675 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7676 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7677 * config.in: Regenerate.
7678 * configure: Regenerate.
7679
c3805894
YQ
76802016-10-27 Yao Qi <yao.qi@linaro.org>
7681
7682 * linux-low.c (linux_supports_range_stepping): Return true if
7683 can_software_single_step return true.
7684
89342618
YQ
76852016-10-27 Yao Qi <yao.qi@linaro.org>
7686
7687 * inferiors.c (find_inferior_in_random): New function.
7688 * inferiors.h (find_inferior_in_random): Declare.
7689 * linux-low.c (linux_wait_for_event_filtered): Call
7690 find_inferior_in_random instead of find_inferior.
7691
e3652c84
YQ
76922016-10-27 Yao Qi <yao.qi@linaro.org>
7693
7694 * linux-low.c (linux_wait_1): If single-step breakpoints are
7695 inserted, remove them.
7696
5a04c4cf
PA
76972016-10-26 Pedro Alves <palves@redhat.com>
7698
7699 * linux-low.c (handle_extended_wait): Link parent/child fork
7700 threads.
7701 (linux_wait_1): Unlink them.
7702 (linux_set_resume_request): Ignore resume requests for
7703 already-resumed and unhandled fork child threads.
7704 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7705 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7706 New functions.
7707 (handle_v_requests) <vCont>: Don't call require_running.
7708 * server.h (in_queued_stop_replies): New declaration.
7709
cb93dc7f
YQ
77102016-10-24 Yao Qi <yao.qi@linaro.org>
7711
7712 PR server/20733
7713 * linux-aarch64-low.c (append_insns): Cast the return value to
7714 'uint32_t *'.
7715
a1078bea
YQ
77162016-10-10 Yao Qi <yao.qi@linaro.org>
7717
7718 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7719
1fb77080
SDJ
77202016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7721
7722 * target.c (target_supports_multi_process): New function, moved
7723 from...
7724 * target.h (target_supports_multi_process): ... here. Remove
7725 macro.
7726
39b5a3b9
TT
77272016-10-05 Tom Tromey <tom@tromey.com>
7728
7729 PR remote/20655:
7730 * tracepoint.c (handle_tracepoint_bkpts): Check
7731 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7732
c1d0b70a
YQ
77332016-10-05 Yao Qi <yao.qi@linaro.org>
7734
7735 * configure.srv: Update the path of arm-*.xml files.
7736
0a69eedb
YQ
77372016-10-05 Terry Guo <terry.guo@arm.com>
7738 Yao Qi <yao.qi@linaro.org>
7739
7740 * Makefile.in: Adjust the path of rules.
7741 * configure.srv: Update the path of xml files.
7742 * regformats/arm-with-iwmmxt.dat: Regenerated.
7743 * regformats/arm-with-neon.dat: Likewise.
7744 * regformats/arm-with-vfpv2.dat: Likewise.
7745 * regformats/arm-with-vfpv3.dat Likewise.
7746
17e16485
YQ
77472016-09-30 Yao Qi <yao.qi@linaro.org>
7748
7749 PR gdbserver/20627
7750 * target.c (target_stop_and_wait): Don't call
7751 target_continue_no_signal, use resume_stop instead.
7752
edeeb602
YQ
77532016-09-26 Yao Qi <yao.qi@linaro.org>
7754
7755 * linux-low.c (linux_wait_1): Call debug_exit.
7756
503b1c39
PA
77572016-09-23 Pedro Alves <palves@redhat.com>
7758
7759 * Makefile.in (SFILES): Add common/new-op.c.
7760 (OBS): Add common/new-op.o.
7761 (new-op.o): New rule.
7762
74172ecf
SM
77632016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7764
7765 * .gitinore: Ignore more files.
7766
fc6cda2e
YQ
77672016-09-21 Yao Qi <yao.qi@linaro.org>
7768
7769 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7770 23.
7771
bc1e6c81
SDJ
77722016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7773
7774 * server.c (start_inferior): Call target_mourn_inferior instead of
7775 mourn_inferior; pass ptid_t argument to it.
7776 (resume): Likewise.
7777 (handle_target_event): Likewise.
7778 * target.c (target_mourn_inferior): New function.
7779 * target.h (mourn_inferior): Delete macro.
7780
0e00e962
AA
77812016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7782
7783 * linux-low.c (lwp_is_stepping): New function.
7784
1d8cb77d
CL
77852016-09-06 Carl Love <cel@us.ibm.com>
7786
7787 * server.c (start_inferior): Fixed comment, requested comment change
7788 didn't get updated correctly. Removed reference to ptrace () call as
7789 it is only true on Linux systems.
7790
7313bced
CL
77912016-09-06 Carl Love <cel@us.ibm.com>
7792
7793 * server.c (start_inferior): Do not call
7794 function target_post_create_inferior () if the
7795 inferior process has already exited.
7796
cf6de44d
PA
77972016-09-05 Pedro Alves <palves@redhat.com>
7798
7799 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7800 (COMPILE.pre, CC_LD): Use CXX directly.
7801 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7802 * acinclude.m4: Don't include build-with-cxx.m4.
7803 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7804 * configure: Regenerate.
7805
c1da6748
AT
78062016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7807
7808 PR gdb/19495
7809 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7810 call writing data to own_buf.
7811
f2b9e3df
SDJ
78122016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7813
7814 * target.c (mywait): Call target_wait instead of
7815 the_target->wait.
7816 (target_wait): New function.
7817
049a8570
SDJ
78182016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7819
7820 * server.c (start_inferior): New variable 'ptid'. Replace calls
7821 to the_target->resume by target_continue{,_no_signal}, depending
7822 on the case.
7823 * target.c (target_stop_and_wait): Call target_continue_no_signal
7824 instead of the_target->resume.
7825 (target_continue): New function.
7826
3aa5cfa0
AT
78272016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7828
7829 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7830
754653a7
AZ
78312016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7832
7833 PR server/20491
7834 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7835 ps_prochandle.
7836 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7837 * linux-arm-low.c (ps_get_thread_area): Likewise.
7838 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7839 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7840 * linux-mips-low.c (ps_get_thread_area): Likewise.
7841 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7842 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7843 * linux-x86-low.c (ps_get_thread_area): Likewise.
7844 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7845
ed036b40
PA
78462016-08-19 Pedro Alves <palves@redhat.com>
7847
7848 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7849
c8ef42ee
PA
78502016-08-19 Pedro Alves <palves@redhat.com>
7851
7852 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7853 comment. Use memcpy instead of casting through unsigned long.
7854
9c235a72
PA
78552016-08-19 Pedro Alves <palves@redhat.com>
7856
7857 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7858 allocating around 0x80000000.
7859
201506da
PA
78602016-08-19 Pedro Alves <palves@redhat.com>
7861
7862 PR gdb/20415
7863 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7864 (x32-avx512-linux-ipa.o): New rules.
7865 * configure.ac (x86_64-*-linux*): New x32 check.
7866 * configure.srv (ipa_x32_linux_regobj): New.
7867 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7868 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7869 descriptions.
7870 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7871 descriptions.
7872 * configure: Regenerate.
7873
f348d89a
PA
78742016-08-09 Pedro Alves <palves@redhat.com>
7875
7876 PR gdb/18653
7877 * Makefile.in (OBS): Add signals-state-save-restore.o.
7878 (signals-state-save-restore.o): New rule.
7879 * config.in: Regenerate.
7880 * configure: Regenerate.
7881 * linux-low.c: Include "signals-state-save-restore.h".
7882 (linux_create_inferior): Call
7883 restore_original_signals_state.
7884 * server.c: Include "dispositions-save-restore.h".
7885 (captured_main): Call save_original_signals_state.
7886
1baf5149
PA
78872016-08-05 Pedro Alves <palves@redhat.com>
7888
7889 * configure: Regenerate.
7890
fcd4a73d
YQ
78912016-08-04 Yao Qi <yao.qi@linaro.org>
7892
7893 * linux-low.c (regsets_fetch_inferior_registers): Check
7894 errno is ESRCH or not.
7895
979659d0
YQ
78962016-08-02 Yao Qi <yao.qi@linaro.org>
7897
7898 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7899 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7900 (thread_db_load_search): Update.
7901 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7902 td_ta_set_event and td_ta_event_getmsg.
7903
6598661d
PA
79042016-07-26 Pedro Alves <palves@redhat.com>
7905
7906 PR server/20414
7907 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7908 of unsigned long for 64-bit registers and use uint32_t instead of
7909 unsigned int for 32-bit registers.
7910
9cf12d57
PA
79112016-07-26 Pedro Alves <palves@redhat.com>
7912
7913 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7914 to 'ptrace'.
7915
305450ed
TT
79162016-07-21 Tom Tromey <tom@tromey.com>
7917
7918 * configure: Rebuild.
7919
2583da7c
YQ
79202016-07-21 Yao Qi <yao.qi@linaro.org>
7921
7922 * mem-break.c (find_gdb_breakpoint): Cast bp to
7923 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7924
21536b36
YQ
79252016-07-21 Yao Qi <yao.qi@linaro.org>
7926
7927 * server.c (handle_v_requests): Support s and S actions
7928 if target_supports_software_single_step return true.
7929
8901d193
YQ
79302016-07-21 Yao Qi <yao.qi@linaro.org>
7931
7932 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7933 is resume_step, call maybe_hw_step.
7934 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7935 and unstop them.
7936 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7937 breakpoints or not.
7938 (proceed_one_lwp): If resume request is resume_step, install
7939 reinsert breakpoints and call maybe_hw_step.
7940
0e9a339e
YQ
79412016-07-21 Yao Qi <yao.qi@linaro.org>
7942
7943 * linux-low.c (proceed_one_lwp): Declare.
7944 (linux_resume_one_thread): Remove local variable 'step'.
7945 Lift code enqueue signal. Call proceed_one_lwp instead of
7946 linux_resume_one_lwp.
7947
4281b351
YQ
79482016-07-21 Yao Qi <yao.qi@linaro.org>
7949
7950 * linux-low.c (linux_resume_one_thread): Call
7951 enqueue_pending_signal.
7952
984a2c04
YQ
79532016-07-21 Yao Qi <yao.qi@linaro.org>
7954
7955 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7956 * inferiors.c (do_restore_current_thread_cleanup): New function.
7957 (make_cleanup_restore_current_thread): Likewise.
7958 * linux-low.c (install_software_single_step_breakpoints): Call
7959 make_cleanup_restore_current_thread. Switch current_thread to
7960 thread.
7961
bec903c9
YQ
79622016-07-21 Yao Qi <yao.qi@linaro.org>
7963
7964 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7965 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7966 (clone_one_breakpoint): Likewise.
7967 (delete_reinsert_breakpoints): Change parameter to thread.
7968 Callers updated.
7969 (has_reinsert_breakpoints): Likewise.
7970 (uninsert_reinsert_breakpoints): Likewise.
7971 (reinsert_reinsert_breakpoints): Likewise.
7972 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7973 (delete_reinsert_breakpoints): Likewise.
7974 (reinsert_reinsert_breakpoints): Likewise.
7975 (uninsert_reinsert_breakpoints): Likewise.
7976 (has_reinsert_breakpoints): Likewise.
7977
63c40ec7
YQ
79782016-07-21 Yao Qi <yao.qi@linaro.org>
7979
7980 * inferiors.c (get_thread_process): Make parameter const.
7981 * inferiors.h (get_thread_process): Update declaration.
7982 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7983 Add new parameters child_thread and parent_thread. Callers
7984 updated.
7985 * mem-break.h (clone_all_breakpoints): Update declaration.
7986
9aa76cd0
YQ
79872016-07-21 Yao Qi <yao.qi@linaro.org>
7988
7989 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7990 <command_list, handler>: Remove.
7991 (struct gdb_breakpoint): New.
7992 (struct other_breakpoint): New.
7993 (struct reinsert_breakpoint): New.
7994 (is_gdb_breakpoint): New function.
7995 (any_persistent_commands): Update command_list if
7996 is_gdb_breakpoint returns true.
7997 (set_breakpoint): Create breakpoints according to their types.
7998 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7999 (set_gdb_breakpoint_1): Likewise.
8000 (set_gdb_breakpoint): Likewise.
8001 (clear_breakpoint_conditions): Change parameter type to
8002 'struct gdb_breakpoint *'.
8003 (clear_breakpoint_commands): Likewise.
8004 (clear_breakpoint_conditions_and_commands): Likewise.
8005 (add_condition_to_breakpoint): Likewise.
8006 (add_breakpoint_condition): Likewise.
8007 (add_commands_to_breakpoint): Likewise.
8008 (check_breakpoints): Check other_breakpoint.
8009 (clone_one_breakpoint): Clone breakpopint according to its type.
8010 * mem-break.h (struct gdb_breakpoint): Declare.
8011 (set_gdb_breakpoint): Update declaration.
8012 (clear_breakpoint_conditions_and_commands): Likewise.
8013 (add_breakpoint_condition): Likewise.
8014 (add_breakpoint_commands): Likewise.
8015 * server.c (process_point_options): Change parameter type to
8016 'struct gdb_breakpoint *'.
8017
811f8301
YQ
80182016-07-21 Yao Qi <yao.qi@linaro.org>
8019
8020 * mem-break.c (set_breakpoint_at): Rename it to ...
8021 (set_breakpoint_type_at): ... it.
8022 (set_breakpoint_at): Call set_breakpoint_type_at.
8023 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8024 * mem-break.h (set_breakpoint_at): Update comments.
8025
b1c51e36
CLT
80262016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8027
8028 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8029 to buf parameter.
8030 (nios2_store_gregset): Likewise.
8031
ced2dffb
PA
80322016-07-01 Pedro Alves <palves@redhat.com>
8033 Antoine Tremblay <antoine.tremblay@ericsson.com>
8034
8035 * linux-low.c: Change interface to take the target lwp_info
8036 pointer directly and return void. Handle detaching from a zombie
8037 thread.
8038 (linux_detach_lwp_callback): New function.
8039 (linux_detach): Detach from the leader thread after detaching from
8040 the clone threads.
8041
2ac09a5b
YQ
80422016-06-28 Yao Qi <yao.qi@linaro.org>
8043
8044 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8045 for variable new_offset.
8046 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8047 (aarch64_ftrace_insn_reloc_cb): Likewise.
8048 (aarch64_ftrace_insn_reloc_tb): Likewise.
8049 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8050 PRIx64 instead of PRIx32.
8051
79e7fd4f
YQ
80522016-06-28 Yao Qi <yao.qi@linaro.org>
8053
8054 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8055 (the_low_target): Install arm_get_syscall_trapinfo.
8056
061fc021
YQ
80572016-06-28 Yao Qi <yao.qi@linaro.org>
8058
8059 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8060 function.
8061 (the_low_target): Install aarch64_get_syscall_trapinfo.
8062
4cc32bec
YQ
80632016-06-28 Yao Qi <yao.qi@linaro.org>
8064
8065 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8066 Callers updated.
8067 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8068 Remove parameter sysno.
8069 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8070 sysret.
8071
782c1122
AA
80722016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8073
8074 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8075 (s390_emit_ne_goto): Likewise.
8076 (s390_emit_lt_goto): Likewise.
8077 (s390_emit_le_goto): Likewise.
8078 (s390_emit_gt_goto): Likewise.
8079 (s390_emit_ge_goto): Likewise.
8080 (s390x_emit_eq_goto): Likewise.
8081 (s390x_emit_ne_goto): Likewise.
8082 (s390x_emit_lt_goto): Likewise.
8083 (s390x_emit_le_goto): Likewise.
8084 (s390x_emit_gt_goto): Likewise.
8085 (s390x_emit_ge_goto): Likewise.
8086 (s390_emit_ops_impl): Mark variable static.
8087 (s390x_emit_ops): Likewise.
8088
2e7b624b
YQ
80892016-06-17 Yao Qi <yao.qi@linaro.org>
8090
8091 * linux-low.c (handle_extended_wait): Call
8092 uninsert_reinsert_breakpoints for the parent process. Remove
8093 reinsert breakpoints from the child process. Reinsert them to
8094 the parent process when vfork is done.
8095 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8096 (reinsert_reinsert_breakpoints): New function.
8097 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8098 (reinsert_reinsert_breakpoints): Declare.
8099
8a81c5d7
YQ
81002016-06-17 Yao Qi <yao.qi@linaro.org>
8101
8102 * linux-low.c (handle_extended_wait): If the parent is doing
8103 step-over, remove the reinsert breakpoints from the forked child.
8104
f50bf8e5
YQ
81052016-06-17 Yao Qi <yao.qi@linaro.org>
8106
8107 * linux-low.c (unsuspend_all_lwps): Declare.
8108 (linux_low_filter_event): If thread exited, call finish_step_over.
8109 If step-over is finished, unsuspend other threads.
8110
8376a3cb
YQ
81112016-06-17 Yao Qi <yao.qi@linaro.org>
8112
8113 * linux-low.c (linux_resume_one_lwp_throw): Assert
8114 has_reinsert_breakpoints returns false.
8115 * mem-break.c (delete_disabled_breakpoints): Assert
8116 bp type isn't reinsert_breakpoint.
8117
f79b145d
YQ
81182016-06-17 Yao Qi <yao.qi@linaro.org>
8119
8120 * linux-low.c (maybe_hw_step): New function.
8121 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8122 (finish_step_over): Switch current_thread to lwp temporarily,
8123 and assert has_reinsert_breakpoints returns true.
8124 (proceed_one_lwp): Call maybe_hw_step.
8125 * mem-break.c (has_reinsert_breakpoints): New function.
8126 * mem-break.h (has_reinsert_breakpoints): Declare.
8127
0ae534d2
JT
81282016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8129
8130 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8131
fcdad592
YQ
81322016-05-17 Yao Qi <yao.qi@linaro.org>
8133
8134 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8135 instead of find_inferior.
8136
9e784964
YQ
81372016-05-05 Yao Qi <yao.qi@linaro.org>
8138
8139 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8140 Initialize res to zero.
8141
cf2ebb6e
YQ
81422016-05-05 Yao Qi <yao.qi@linaro.org>
8143
8144 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8145 to uint32_t.
8146
c1aebf87
UW
81472016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8148
8149 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8150 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8151 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8152
35fd2deb 81532016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8154 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8155
8156 * tracepoint.c (write_inferior_int8): New function.
8157 (cmd_qtenable_disable): Write enable flag using
8158 write_inferior_int8.
8159
484b3c32
YQ
81602016-04-25 Yao Qi <yao.qi@linaro.org>
8161
8162 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8163 (need_step_over_p): Return zero if the LWP has pending signals
8164 can be delivered on software single step target.
8165
85ba7d86
YQ
81662016-04-25 Yao Qi <yao.qi@linaro.org>
8167
8168 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8169 return instead of error.
8170
3539aa13
YQ
81712016-04-22 Yao Qi <yao.qi@linaro.org>
8172
8173 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8174 to 23.
8175
5b061e98
YQ
81762016-04-22 Yao Qi <yao.qi@linaro.org>
8177
8178 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8179 signal when stepping over breakpoint with software single
8180 step.
8181
3451269c
PA
81822016-04-21 Pedro Alves <palves@redhat.com>
8183
8184 * linux-s390-low.c (s390_collect_ptrace_register)
8185 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8186 add casts.
8187 (s390_check_regset): Use void * instead of gdb_byte *.
8188
a2358508
PA
81892016-04-20 Pedro Alves <palves@redhat.com>
8190
8191 * configure: Renegerate.
8192
6885166d
YQ
81932016-04-20 Yao Qi <yao.qi@linaro.org>
8194
8195 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8196 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8197 number 16.
8198 (arm_store_gregset): Likewise.
8199
2b863f51
WT
82002016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8201
8202 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8203 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8204 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8205 (amd64-avx-mpx-linux.c): New rules.
8206 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8207 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8208 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8209 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8210 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8211 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8212 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8213 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8214 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8215 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8216 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8217 * linux-x86-low.c (x86_linux_read_description): Add case for
8218 X86_XSTATE_AVX_MPX_MASK.
8219 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8220 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8221 init_registers_i386_avx_mpx_linux.
8222 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8223 (initialize_low_tracepoint): Call
8224 init_registers_i386_avx_mpx_linux.
8225 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8226 (initialize_low_tracepoint): Call
8227 init_registers_amd64_avx_mpx_linux.
8228 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8229 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8230 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8231 declarations.
8232
9b30624b
PA
82332016-04-18 Pedro Alves <palves@redhat.com>
8234
8235 * configure: Regenerate.
8236
45e3745e
AT
82372016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8238
8239 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8240 (aarch64_emit_sub): Likewise.
8241
2afc13ff
PA
82422016-04-12 Pedro Alves <palves@redhat.com>
8243
8244 * utils.c (prepare_to_throw_exception): Delete.
8245
6e774b13
SM
82462016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8247
8248 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8249
4dca19f8
MK
82502016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8251
8252 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8253
d0a9981f
MK
82542016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8255
8256 * linux-aarch64-ipa.c: Add <elf.h> include.
8257 * linux-ppc-ipa.c: Add <elf.h> include.
8258 * linux-s390-ipa.c: Add <elf.h> include.
8259
252db07e
MK
82602016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8261
8262 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8263 (get_raw_reg_ptr): Likewise.
8264 (get_trace_state_variable_value_ptr): Likewise.
8265 (set_trace_state_variable_value_ptr): Likewise.
8266 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8267 char *.
8268
14e2b6d9
MK
82692016-03-31 Wei-cheng Wang <cole945@gmail.com>
8270 Marcin Kościelnicki <koriakin@0x04.net>
8271
8272 PR/17221
8273 * linux-ppc-low.c (emit_insns): New function.
8274 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8275 (ppc_emit_prologue): New function.
8276 (ppc_emit_epilogue): New function.
8277 (ppc_emit_add): New function.
8278 (ppc_emit_sub): New function.
8279 (ppc_emit_mul): New function.
8280 (ppc_emit_lsh): New function.
8281 (ppc_emit_rsh_signed): New function.
8282 (ppc_emit_rsh_unsigned): New function.
8283 (ppc_emit_ext): New function.
8284 (ppc_emit_zero_ext): New function.
8285 (ppc_emit_log_not): New function.
8286 (ppc_emit_bit_and): New function.
8287 (ppc_emit_bit_or): New function.
8288 (ppc_emit_bit_xor): New function.
8289 (ppc_emit_bit_not): New function.
8290 (ppc_emit_equal): New function.
8291 (ppc_emit_less_signed): New function.
8292 (ppc_emit_less_unsigned): New function.
8293 (ppc_emit_ref): New function.
8294 (ppc_emit_const): New function.
8295 (ppc_emit_reg): New function.
8296 (ppc_emit_pop): New function.
8297 (ppc_emit_stack_flush): New function.
8298 (ppc_emit_swap): New function.
8299 (ppc_emit_stack_adjust): New function.
8300 (ppc_emit_call): New function.
8301 (ppc_emit_int_call_1): New function.
8302 (ppc_emit_void_call_2): New function.
8303 (ppc_emit_if_goto): New function.
8304 (ppc_emit_goto): New function.
8305 (ppc_emit_eq_goto): New function.
8306 (ppc_emit_ne_goto): New function.
8307 (ppc_emit_lt_goto): New function.
8308 (ppc_emit_le_goto): New function.
8309 (ppc_emit_gt_goto): New function.
8310 (ppc_emit_ge_goto): New function.
8311 (ppc_write_goto_address): New function.
8312 (ppc_emit_ops_impl): New static variable.
8313 (ppc64v1_emit_prologue): New function.
8314 (ppc64v2_emit_prologue): New function.
8315 (ppc64_emit_epilogue): New function.
8316 (ppc64_emit_add): New function.
8317 (ppc64_emit_sub): New function.
8318 (ppc64_emit_mul): New function.
8319 (ppc64_emit_lsh): New function.
8320 (ppc64_emit_rsh_signed): New function.
8321 (ppc64_emit_rsh_unsigned): New function.
8322 (ppc64_emit_ext): New function.
8323 (ppc64_emit_zero_ext): New function.
8324 (ppc64_emit_log_not): New function.
8325 (ppc64_emit_bit_and): New function.
8326 (ppc64_emit_bit_or): New function.
8327 (ppc64_emit_bit_xor): New function.
8328 (ppc64_emit_bit_not): New function.
8329 (ppc64_emit_equal): New function.
8330 (ppc64_emit_less_signed): New function.
8331 (ppc64_emit_less_unsigned): New function.
8332 (ppc64_emit_ref): New function.
8333 (ppc64_emit_const): New function.
8334 (ppc64v1_emit_reg): New function.
8335 (ppc64v2_emit_reg): New function.
8336 (ppc64_emit_pop): New function.
8337 (ppc64_emit_stack_flush): New function.
8338 (ppc64_emit_swap): New function.
8339 (ppc64v1_emit_call): New function.
8340 (ppc64v2_emit_call): New function.
8341 (ppc64v1_emit_int_call_1): New function.
8342 (ppc64v2_emit_int_call_1): New function.
8343 (ppc64v1_emit_void_call_2): New function.
8344 (ppc64v2_emit_void_call_2): New function.
8345 (ppc64_emit_if_goto): New function.
8346 (ppc64_emit_eq_goto): New function.
8347 (ppc64_emit_ne_goto): New function.
8348 (ppc64_emit_lt_goto): New function.
8349 (ppc64_emit_le_goto): New function.
8350 (ppc64_emit_gt_goto): New function.
8351 (ppc64_emit_ge_goto): New function.
8352 (ppc64v1_emit_ops_impl): New static variable.
8353 (ppc64v2_emit_ops_impl): New static variable.
8354 (ppc_emit_ops): New function.
8355 (linux_low_target): Wire in ppc_emit_ops.
8356
a2174ba4
MK
83572016-03-31 Wei-cheng Wang <cole945@gmail.com>
8358 Marcin Kościelnicki <koriakin@0x04.net>
8359
8360 PR/17221
8361 * Makefile.in: Add powerpc-*-ipa.o
8362 * configure.srv: Add ipa_obj for powerpc*-linux.
8363 * linux-ppc-ipa.c: New file.
8364 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8365 includes.
8366 (PPC_FIELD): New macro.
8367 (PPC_SEXT): New macro.
8368 (PPC_OP6): New macro.
8369 (PPC_BO): New macro.
8370 (PPC_LI): New macro.
8371 (PPC_BD): New macro.
8372 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8373 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8374 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8375 (ppc_get_thread_area): New function.
8376 (is_elfv2_inferior): New function.
8377 (gen_ds_form): New function.
8378 (GEN_STD): New macro.
8379 (GEN_STDU): New macro.
8380 (GEN_LD): New macro.
8381 (GEN_LDU): New macro.
8382 (gen_d_form): New function.
8383 (GEN_ADDI): New macro.
8384 (GEN_ADDIS): New macro.
8385 (GEN_LI): New macro.
8386 (GEN_LIS): New macro.
8387 (GEN_ORI): New macro.
8388 (GEN_ORIS): New macro.
8389 (GEN_LWZ): New macro.
8390 (GEN_STW): New macro.
8391 (GEN_STWU): New macro.
8392 (gen_xfx_form): New function.
8393 (GEN_MFSPR): New macro.
8394 (GEN_MTSPR): New macro.
8395 (GEN_MFCR): New macro.
8396 (GEN_MTCR): New macro.
8397 (GEN_SYNC): New macro.
8398 (GEN_LWSYNC): New macro.
8399 (gen_x_form): New function.
8400 (GEN_OR): New macro.
8401 (GEN_MR): New macro.
8402 (GEN_LWARX): New macro.
8403 (GEN_STWCX): New macro.
8404 (GEN_CMPW): New macro.
8405 (gen_md_form): New function.
8406 (GEN_RLDICL): New macro.
8407 (GEN_RLDICR): New macro.
8408 (gen_i_form): New function.
8409 (GEN_B): New macro.
8410 (GEN_BL): New macro.
8411 (gen_b_form): New function.
8412 (GEN_BNE): New macro.
8413 (GEN_LOAD): New macro.
8414 (GEN_STORE): New macro.
8415 (gen_limm): New function.
8416 (gen_atomic_xchg): New function.
8417 (gen_call): New function.
8418 (ppc_relocate_instruction): New function.
8419 (ppc_install_fast_tracepoint_jump_pad): New function.
8420 (ppc_get_min_fast_tracepoint_insn_len): New function.
8421 (ppc_get_ipa_tdesc_idx): New function.
8422 (the_low_target): Wire in the new functions.
8423 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8424 tdescs.
8425 * linux-ppc-tdesc.h: New file.
8426
a13c4696
MK
84272016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8428
8429 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8430 (alloc_jump_pad_buffer): New function.
8431 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8432 (alloc_jump_pad_buffer): New function.
8433 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8434 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8435 (alloc_jump_pad_buffer): New function.
8436 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8437 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8438 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8439 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8440
1cda1512
MK
84412016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8442
8443 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8444 * linux-amd64-ipa.c: Likewise.
8445 * linux-i386-ipa.c: Likewise.
8446 * linux-s390-ipa.c: Likewise.
8447 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8448 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8449 set_trace_state_variable_value_ptr.
8450 (struct ipa_sym_addresses): Likewise.
8451 (symbol_list): Likewise.
8452 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8453 accessing gdb_collect directly.
8454 (gdb_collect_ptr_type): New typedef.
8455 (get_raw_reg_ptr_type): New typedef.
8456 (get_trace_state_variable_value_ptr_type): New typedef.
8457 (set_trace_state_variable_value_ptr_type): New typedef.
8458 (gdb_collect_ptr): New global.
8459 (get_raw_reg_ptr): New global.
8460 (get_trace_state_variable_value_ptr): New global.
8461 (set_trace_state_variable_value_ptr): New global.
8462 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8463 accessing get_raw_reg directly.
8464 (get_get_tsv_func_addr): Likewise for
8465 get_trace_state_variable_value_ptr.
8466 (get_set_tsv_func_addr): Likewise for
8467 set_trace_state_variable_value_ptr.
8468 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8469
72fb5488
SM
84702016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8471
8472 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8473
28170b88
MK
84742016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8475
8476 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8477 packets.
8478 (relocate_instruction): Remove own_buf.
8479 * server.c (own_buf): Make global.
8480 (handle_v_requests): Make global.
8481 * server.h (own_buf): New declaration.
8482 (handle_v_requests): New prototype.
8483
f39e8743
MK
84842016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8485
8486 PR 18377
8487 * linux-s390-low.c (add_insns): New function.
8488 (s390_emit_prologue): New function.
8489 (s390_emit_epilogue): New function.
8490 (s390_emit_add): New function.
8491 (s390_emit_sub): New function.
8492 (s390_emit_mul): New function.
8493 (s390_emit_lsh): New function.
8494 (s390_emit_rsh_signed): New function.
8495 (s390_emit_rsh_unsigned): New function.
8496 (s390_emit_ext): New function.
8497 (s390_emit_log_not): New function.
8498 (s390_emit_bit_and): New function.
8499 (s390_emit_bit_or): New function.
8500 (s390_emit_bit_xor): New function.
8501 (s390_emit_bit_not): New function.
8502 (s390_emit_equal): New function.
8503 (s390_emit_less_signed): New function.
8504 (s390_emit_less_unsigned): New function.
8505 (s390_emit_ref): New function.
8506 (s390_emit_if_goto): New function.
8507 (s390_emit_goto): New function.
8508 (s390_write_goto_address): New function.
8509 (s390_emit_litpool): New function.
8510 (s390_emit_const): New function.
8511 (s390_emit_call): New function.
8512 (s390_emit_reg): New function.
8513 (s390_emit_pop): New function.
8514 (s390_emit_stack_flush): New function.
8515 (s390_emit_zero_ext): New function.
8516 (s390_emit_swap): New function.
8517 (s390_emit_stack_adjust): New function.
8518 (s390_emit_set_r2): New function.
8519 (s390_emit_int_call_1): New function.
8520 (s390_emit_void_call_2): New function.
8521 (s390_emit_eq_goto): New function.
8522 (s390_emit_ne_goto): New function.
8523 (s390_emit_lt_goto): New function.
8524 (s390_emit_le_goto): New function.
8525 (s390_emit_gt_goto): New function.
8526 (s390_emit_ge_goto): New function.
8527 (s390x_emit_prologue): New function.
8528 (s390x_emit_epilogue): New function.
8529 (s390x_emit_add): New function.
8530 (s390x_emit_sub): New function.
8531 (s390x_emit_mul): New function.
8532 (s390x_emit_lsh): New function.
8533 (s390x_emit_rsh_signed): New function.
8534 (s390x_emit_rsh_unsigned): New function.
8535 (s390x_emit_ext): New function.
8536 (s390x_emit_log_not): New function.
8537 (s390x_emit_bit_and): New function.
8538 (s390x_emit_bit_or): New function.
8539 (s390x_emit_bit_xor): New function.
8540 (s390x_emit_bit_not): New function.
8541 (s390x_emit_equal): New function.
8542 (s390x_emit_less_signed): New function.
8543 (s390x_emit_less_unsigned): New function.
8544 (s390x_emit_ref): New function.
8545 (s390x_emit_if_goto): New function.
8546 (s390x_emit_const): New function.
8547 (s390x_emit_call): New function.
8548 (s390x_emit_reg): New function.
8549 (s390x_emit_pop): New function.
8550 (s390x_emit_stack_flush): New function.
8551 (s390x_emit_zero_ext): New function.
8552 (s390x_emit_swap): New function.
8553 (s390x_emit_stack_adjust): New function.
8554 (s390x_emit_int_call_1): New function.
8555 (s390x_emit_void_call_2): New function.
8556 (s390x_emit_eq_goto): New function.
8557 (s390x_emit_ne_goto): New function.
8558 (s390x_emit_lt_goto): New function.
8559 (s390x_emit_le_goto): New function.
8560 (s390x_emit_gt_goto): New function.
8561 (s390x_emit_ge_goto): New function.
8562 (s390_emit_ops): New function.
8563 (struct linux_target_ops): Fill in emit_ops hook.
8564
abd9baf9
MK
85652016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8566
8567 PR 18377
8568 * Makefile.in: Add s390 IPA files.
8569 * configure.srv: Build IPA for s390.
8570 * linux-s390-ipa.c: New file.
8571 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8572 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8573 (tdesc_s390_linux32): Likewise.
8574 (init_registers_s390_linux32v1): Likewise.
8575 (tdesc_s390_linux32v1): Likewise.
8576 (init_registers_s390_linux32v2): Likewise.
8577 (tdesc_s390_linux32v2): Likewise.
8578 (init_registers_s390_linux64): Likewise.
8579 (tdesc_s390_linux64): Likewise.
8580 (init_registers_s390_linux64v1): Likewise.
8581 (tdesc_s390_linux64v1): Likewise.
8582 (init_registers_s390_linux64v2): Likewise.
8583 (tdesc_s390_linux64v2): Likewise.
8584 (init_registers_s390_te_linux64): Likewise.
8585 (tdesc_s390_te_linux64): Likewise.
8586 (init_registers_s390_vx_linux64): Likewise.
8587 (tdesc_s390_vx_linux64): Likewise.
8588 (init_registers_s390_tevx_linux64): Likewise.
8589 (tdesc_s390_tevx_linux64): Likewise.
8590 (init_registers_s390x_linux64): Likewise.
8591 (tdesc_s390x_linux64): Likewise.
8592 (init_registers_s390x_linux64v1): Likewise.
8593 (tdesc_s390x_linux64v1): Likewise.
8594 (init_registers_s390x_linux64v2): Likewise.
8595 (tdesc_s390x_linux64v2): Likewise.
8596 (init_registers_s390x_te_linux64): Likewise.
8597 (tdesc_s390x_te_linux64): Likewise.
8598 (init_registers_s390x_vx_linux64): Likewise.
8599 (tdesc_s390x_vx_linux64): Likewise.
8600 (init_registers_s390x_tevx_linux64): Likewise.
8601 (tdesc_s390x_tevx_linux64): Likewise.
8602 (have_hwcap_s390_vx): New static variable.
8603 (s390_arch_setup): Fill have_hwcap_s390_vx.
8604 (s390_get_thread_area): New function.
8605 (s390_ft_entry_gpr_esa): New const.
8606 (s390_ft_entry_gpr_zarch): New const.
8607 (s390_ft_entry_misc): New const.
8608 (s390_ft_entry_fr): New const.
8609 (s390_ft_entry_vr): New const.
8610 (s390_ft_main_31): New const.
8611 (s390_ft_main_64): New const.
8612 (s390_ft_exit_fr): New const.
8613 (s390_ft_exit_vr): New const.
8614 (s390_ft_exit_misc): New const.
8615 (s390_ft_exit_gpr_esa): New const.
8616 (s390_ft_exit_gpr_zarch): New const.
8617 (append_insns): New function.
8618 (s390_relocate_instruction): New function.
8619 (s390_install_fast_tracepoint_jump_pad): New function.
8620 (s390_get_min_fast_tracepoint_insn_len): New function.
8621 (s390_get_ipa_tdesc_idx): New function.
8622 (struct linux_target_ops): Wire in the above functions.
8623 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8624 * linux-s390-tdesc.h: New file.
8625
a4105d04
MK
86262016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8627
8628 * linux-s390-low.c (s390_supports_tracepoints): New function.
8629 (struct linux_target_ops): Fill supports_tracepoints hook.
8630
35ac8b3e
YQ
86312016-03-18 Yao Qi <yao.qi@linaro.org>
8632
8633 * linux-low.c (lwp_signal_can_be_delivered): New function.
8634 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8635
94610ec4
YQ
86362016-03-18 Yao Qi <yao.qi@linaro.org>
8637
8638 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8639 0 if signal is enqueued. Remove 'signal' from one debugging
8640 message. Move one debugging message to some lines below.
8641 Remove code setting 'signal' to 0.
8642
80aea927
YQ
86432016-03-18 Yao Qi <yao.qi@linaro.org>
8644
8645 * linux-low.c (linux_low_filter_event): Remove redundant
8646 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8647
b04fd3be
MK
86482016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8649
8650 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8651 (struct linux_target_ops): Wire in the above.
8652
c40c8d4b
YQ
86532016-03-03 Yao Qi <yao.qi@linaro.org>
8654
8655 * linux-low.c: Update comments to start_step_over.
8656
0f8288ae
YQ
86572016-03-03 Yao Qi <yao.qi@linaro.org>
8658
8659 PR server/19736
8660 * linux-low.c (handle_extended_wait): Set child suspended
8661 if event_lwp->bp_reinsert isn't zero.
8662
fdbd04a8
YQ
86632016-03-02 Yao Qi <yao.qi@linaro.org>
8664
8665 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8666 enqueue_pending_signal.
8667
6896a8fa
MK
86682016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8669
8670 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8671 is actually loaded.
8672
ab503087
MK
86732016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8674
8675 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8676 (s390_regmap_3264) [!__s390x__]: New global.
8677 (s390_collect_ptrace_register): Skip map entries containing -1.
8678 (s390_supply_ptrace_register): Ditto.
8679 (s390_fill_gprs_high): New function.
8680 (s390_store_gprs_high): New function.
8681 (s390_regsets): Add NT_S390_HIGH_GPRS.
8682 (s390_get_hwcap): Enable on 31-bit.
8683 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8684 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8685 Detect NT_S390_HIGH_GPRS.
8686 (s390_usrregs_info_3264): Enable on 31-bit.
8687 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8688 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8689
ae91f625
MK
86902016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8691
8692 PR gdb/13808
8693 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8694 * configure.srv: Ditto.
8695 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8696 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8697 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8698 (init_registers_amd64_linux): Remove prototype.
8699 (tdesc_amd64_linux): Remove declaration.
8700 (get_ipa_tdesc): New function.
8701 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8702 initialize remaining tdescs.
8703 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8704 (init_registers_i386_linux): Remove prototype.
8705 (tdesc_i386_linux): Remove declaration.
8706 (get_ipa_tdesc): New function.
8707 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8708 initialize remaining tdescs.
8709 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8710 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8711 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8712 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8713 (x86_get_ipa_tdesc_idx): New function.
8714 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8715 * linux-x86-tdesc.h: New file.
8716 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8717 (target_get_ipa_tdesc_idx): New macro.
8718 * tracepoint.c (ipa_tdesc_idx): New macro.
8719 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8720 (symbol_list): Add ipa_tdesc_idx.
8721 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8722 (ipa_tdesc): Remove.
8723 (ipa_tdesc_idx): New variable.
8724 (get_context_regcache): Use get_ipa_tdesc.
8725 (gdb_collect): Ditto.
8726 (gdb_probe): Ditto.
8727 * tracepoint.h (get_ipa_tdesc): New prototype.
8728 (ipa_tdesc): Remove.
8729
e7ad2f14
PA
87302016-02-24 Pedro Alves <palves@redhat.com>
8731
8732 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8733 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8734 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8735 Factor out common code between the USE_SIGTRAP_SIGINFO and
8736 !USE_SIGTRAP_SIGINFO blocks.
8737 (linux_low_filter_event): Call save_stop_reason instead of
8738 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8739 Update comments.
8740 (linux_wait_1): Update comments.
8741
657f9cde
WW
87422016-02-24 Wei-cheng Wang <cole945@gmail.com>
8743
8744 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8745 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8746 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8747 ppc_insert_point, ppc_remove_point.
8748
b00b61e1
MK
87492016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8750
8751 * linux-s390-low.c (s390_supports_z_point_type): New function.
8752 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8753
553cb527
YQ
87542016-02-16 Yao Qi <yao.qi@linaro.org>
8755
8756 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8757 PC. Get pc from regcache_read_pc.
8758
a5652c21
YQ
87592016-02-12 Yao Qi <yao.qi@linaro.org>
8760
8761 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8762 or linux_get_pc_32bit.
8763 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8764
ed443b61
YQ
87652016-02-12 Yao Qi <yao.qi@linaro.org>
8766
8767 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8768 arm_linux_get_next_pcs_fixup.
8769
020ecd38
MK
87702016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8771
8772 * tracepoint.c (x_tracepoint_action_download): Change
8773 write_inferior_data_ptr to write_inferior_data_pointer.
8774 (cmd_qtstart): Likewise.
8775 (write_inferior_data_ptr): Remove.
8776 (download_agent_expr): Change write_inferior_data_ptr to
8777 write_inferior_data_pointer.
8778 (download_tracepoint_1): Likewise.
8779 (download_tracepoint): Likewise.
8780 (download_trace_state_variables): Likewise.
8781
7cae9051
WW
87822016-02-11 Wei-cheng Wang <cole945@gmail.com>
8783 Marcin Kościelnicki <koriakin@0x04.net>
8784
8785 * tracepoint.c (struct tracepoint_action_ops): Remove.
8786 (struct tracepoint_action): Remove ops.
8787 (m_tracepoint_action_download, r_tracepoint_action_download)
8788 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8789 size and offset accordingly.
8790 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8791 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8792 (tracepoint_action_send, tracepoint_action_download): New functions.
8793 Helpers for trace action handlers.
8794 (add_tracepoint_action): Remove setup actions ops.
8795 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8796
9f6a71b4
YQ
87972016-02-10 Yao Qi <yao.qi@linaro.org>
8798
8799 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8800
1e94266c
SM
88012016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8802
8803 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8804 to AC_OUTPUT.
8805 * configure: Regenerate.
8806
8adce034
SM
88072016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8808
8809 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8810 void * to gdb_byte *.
8811 * linux-low.c (siginfo_fixup): Likewise.
8812 (linux_xfer_siginfo): Likewise.
8813 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8814 Likewise.
8815 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8816
93813b37
WT
88172016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8818
8819 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8820 to srv_tgtobj.
8821 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8822 to srv_tgtobj.
8823 * linux-x86-low.c [__x86_64__]: Include
8824 "nat/amd64-linux-siginfo.h".
8825 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8826 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8827 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8828 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8829 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8830 (cpt_si_fd, si_timerid, si_overrun): Move from
8831 nat/amd64-linux-siginfo.c.
8832 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8833
8424cc97
SM
88342016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8835
8836 * server.c (skip_to_semicolon): Remove.
8837 (process_point_options): Use strchrnul instead of
8838 skip_to_semicolon.
8839
4d18591b
YQ
88402016-01-26 Yao Qi <yao.qi@linaro.org>
8841
8842 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8843 * linux-low.c (install_software_single_step_breakpoints): Don't
8844 call regcache_read_pc.
8845 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8846 argument pc.
8847
d8020970
YQ
88482016-01-26 Yao Qi <yao.qi@linaro.org>
8849
8850 * linux-low.c (install_software_single_step_breakpoints): Call
8851 regcache_read_pc instead of get_pc.
8852
8b207339
YQ
88532016-01-26 Yao Qi <yao.qi@linaro.org>
8854
8855 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8856 (unblock_async_io): Rename to ...
8857 (block_unblock_async_io): ... it. New function.
8858 (enable_async_io): Don't install SIGIO handler. Unblock it
8859 instead.
8860 (disable_async_io): Don't ignore SIGIO. Block it instead.
8861 (initialize_async_io): Install SIGIO handler. Don't call
8862 unblock_async_io.
8863
18879fef
YQ
88642016-01-26 Yao Qi <yao.qi@linaro.org>
8865
8866 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8867 first character is '\003', call *the_target->request_interrupt.
8868
a0f8e08a
YQ
88692016-01-25 Yao Qi <yao.qi@linaro.org>
8870
8871 * remote-utils.c (new_thread_notify): Remove.
8872 (dead_thread_notify): Likewise.
8873 * remote-utils.h (new_thread_notify): Remove declaration.
8874 (dead_thread_notify): Likewise.
8875
cc5fd9ab
MK
88762016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8877
8878 * gdb.trace/pending.exp: Fix expected message on continue.
8879
99e8eb11
MK
88802016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8881
8882 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8883 it works properly on big-endian machines where sizeof (CORE_ADDR)
8884 != sizeof (void *).
8885
a994041d
PA
88862016-01-21 Pedro Alves <palves@redhat.com>
8887
8888 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8889 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8890 * configure: Regenerate.
8891
f7a6a40d
YQ
88922016-01-21 Yao Qi <yao.qi@linaro.org>
8893
8894 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8895 is_thumb and set it according to CPSR saved on the stack.
8896 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8897 arm_sigreturn_next_pc.
8898
6f69e520
YQ
88992016-01-18 Yao Qi <yao.qi@linaro.org>
8900
8901 * linux-low.c (linux_set_pc_64bit): New function.
8902 (linux_get_pc_64bit): New function.
8903 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8904 Declare.
8905 * linux-sparc-low.c (debug_threads): Remove declaration.
8906 (sparc_get_pc): Remove.
8907 (the_low_target): Use linux_get_pc_64bit instead of
8908 sparc_get_pc.
8909 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8910 (the_low_target): Use linux_get_pc_64bit and
8911 linux_set_pc_64bit.
8912
276d4552
YQ
89132016-01-18 Yao Qi <yao.qi@linaro.org>
8914
8915 * linux-arm-low.c (debug_threads): Remove declaration.
8916 (arm_get_pc, arm_set_pc): Remove.
8917 (the_low_target): Use linux_get_pc_32bit and
8918 linux_set_pc_32bit.
8919 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8920 (the_low_target): Use linux_get_pc_32bit and
8921 linux_set_pc_32bit.
8922 * linux-cris-low.c (debug_threads): Remove declaration.
8923 (cris_get_pc, cris_set_pc,): Remove.
8924 (the_low_target): Use linux_get_pc_32bit and
8925 linux_set_pc_32bit.
8926 * linux-crisv32-low.c (debug_threads): Remove declaration.
8927 (cris_get_pc, cris_set_pc): Remove.
8928 (the_low_target): Use linux_get_pc_32bit and
8929 linux_set_pc_32bit.
8930 * linux-low.c: Include inttypes.h.
8931 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8932 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8933 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8934 (the_low_target): Use linux_get_pc_32bit and
8935 linux_set_pc_32bit.
8936 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8937 (the_low_target): Use linux_get_pc_32bit and
8938 linux_set_pc_32bit.
8939 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8940 (the_low_target): Use linux_get_pc_32bit and
8941 linux_set_pc_32bit.
8942 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8943 (the_low_target): Use linux_get_pc_32bit and
8944 linux_set_pc_32bit.
8945 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8946 (the_low_target): Use linux_get_pc_32bit and
8947 linux_set_pc_32bit.
8948
eb0edac8
GB
89492016-01-18 Gary Benson <gbenson@redhat.com>
8950
8951 * configure.ac (AC_FUNC_FORK): New check.
8952 * config.in: Regenerate.
8953 * configure: Likewise.
8954
1b451dda
YQ
89552016-01-14 Yao Qi <yao.qi@linaro.org>
8956
8957 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8958 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8959 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8960 arm_get_next_pcs_ctor.
8961
82075af2
JS
89622016-01-12 Josh Stone <jistone@redhat.com>
8963 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8964
8965 * inferiors.h: Include "gdb_vecs.h".
8966 (struct process_info): Add syscalls_to_catch.
8967 * inferiors.c (remove_process): Free syscalls_to_catch.
8968 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8969 syscall_return stops.
8970 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8971 * server.c (handle_general_set): Handle QCatchSyscalls.
8972 (handle_query): Report support for QCatchSyscalls.
8973 * target.h (struct target_ops): Add supports_catch_syscall.
8974 (target_supports_catch_syscall): New macro.
8975 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8976 (struct lwp_info): Add syscall_state.
8977 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8978 Maintain syscall_state and syscalls_to_catch across exec.
8979 (get_syscall_trapinfo): New function, proxy to the_low_target.
8980 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8981 (linux_low_filter_event): Toggle syscall_state entry/return for
8982 syscall traps, and set it ignored for all others.
8983 (gdb_catching_syscalls_p): New function.
8984 (gdb_catch_this_syscall_p): New function.
8985 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8986 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8987 (linux_supports_catch_syscall): New function.
8988 (linux_target_ops): Install it.
8989 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8990 (the_low_target): Install it.
8991
8f13a3ce
MF
89922016-01-12 Mike Frysinger <vapier@gentoo.org>
8993
8994 * acinclude.m4: Include new ../warning.m4 file.
8995 * configure: Regenerated.
8996 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8997
5b3da067
MF
89982016-01-12 Mike Frysinger <vapier@gentoo.org>
8999
9000 * ax.c (is_goto_target): Mark static.
9001 * linux-low.c (register_addr): Likewise.
9002 (linux_fetch_registers, linux_store_registers): Likewise.
9003 * mem-break.c (any_persistent_commands): Fix old prototype.
9004 (add_commands_to_breakpoint): Mark static.
9005 * regcache.c (find_register_by_name): Delete unused func.
9006 * remote-utils.c (hex_or_minus_one): Mark static.
9007 * server.c (monitor_show_help): Mark static.
9008 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9009 handle_v_requests): Likewise.
9010
bc504a31
PA
90112016-01-12 Pedro Alves <palves@redhat.com>
9012
9013 Remove use of the registered trademark symbol throughout.
9014
5a0dd67a
YQ
90152016-01-08 Yao Qi <yao.qi@linaro.org>
9016
9017 * remote-utils.c (getpkt): If c is '\003', call target hook
9018 request_interrupt.
9019
b2ca446f
YQ
90202016-01-06 Yao Qi <yao.qi@linaro.org>
9021
9022 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9023 linux-aarch32-low.c.
9024 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9025 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9026 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9027 (thumb2_breakpoint): Declare.
9028 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9029 linux-aarch32-low.h.
9030 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9031 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9032 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9033
edd88788
JB
90342016-01-01 Joel Brobecker <brobecker@adacore.com>
9035
9036 * gdbreplay.c (gdbreplay_version): Change copyright year in
9037 version message.
9038 * server.c (gdbserver_version): Likewise.
9039
65da7f14
PP
90402015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9041
9042 * server.c (crc32_table): Delete.
9043 (crc32): Use libiberty's xcrc32 function.
9044
4abd5ed2
JB
90452015-12-22 Joel Brobecker <brobecker@adacore.com>
9046
9047 * lynx-low.c (lynx_delete_thread_callback): New function.
9048 (lynx_mourn): Properly delete our process and all of its
9049 threads. Remove call to clear_inferiors.
9050
0e50fe5c
JB
90512015-12-22 Joel Brobecker <brobecker@adacore.com>
9052
9053 * target.c (thread_search_callback): Add check that
9054 the thread_stopped target callback is not NULL before
9055 calling it.
9056
35adc03f
YQ
90572015-12-21 Yao Qi <yao.qi@linaro.org>
9058
9059 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9060 arm breakpoint.
9061
bd2b2909
AT
90622015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9063
9064 * server.c (handle_query): Call target_supports_software_single_step.
9065
7fe5e27e
AT
90662015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9067
9068 * linux-low.c (single_step): New function.
9069 (linux_resume_one_lwp_throw): Call single_step.
9070 (start_step_over): Likewise.
9071
d9311bfa
AT
90722015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9073
9074 * Makefile.in (SFILES): Append arch/arm-linux.c,
9075 arch/arm-get-next-pcs.c.
9076 (arm-linux.o): New rule.
9077 (arm-get-next-pcs.o): New rule.
9078 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9079 arm-linux.o.
9080 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9081 to linux-aarch32-low.c.
9082 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9083 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9084 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9085 (thumb2_breakpoint_len): Likewise.
9086 (arm_is_thumb_mode): Make non-static.
9087 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9088 from linux-aarch32-low.c.
9089 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9090 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9091 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9092 (thumb2_breakpoint_len): Likewise.
9093 (arm_is_thumb_mode): New declaration.
9094 * linux-arm-low.c: Include arch/arm-linux.h
9095 aarch/arm-get-next-pcs.h, sys/syscall.h.
9096 (get_next_pcs_ops): New struct.
9097 (get_next_pcs_addr_bits_remove): New function.
9098 (get_next_pcs_is_thumb): New function.
9099 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9100 (arm_sigreturn_next_pc): Likewise.
9101 (get_next_pcs_syscall_next_pc): Likewise.
9102 (arm_gdbserver_get_next_pcs): Likewise.
9103 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9104 Initialize.
9105 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9106 * server.h: Include gdb_vecs.h.
9107
68ce2059
AT
91082015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9109
9110 * Makefile.in (SFILES): Append common/common-regcache.c.
9111 (OBS): Append common-regcache.o.
9112 (common-regcache.o): New rule.
9113 * regcache.c (init_register_cache): Initialize cache to
9114 REG_UNAVAILABLE.
9115 (regcache_raw_read_unsigned): New function.
9116 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9117 register_status enum.
9118
fa5308bd
AT
91192015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9120
9121 * linux-aarch64-low.c (the_low_targets): Rename
9122 breakpoint_reinsert_addr to get_next_pcs.
9123 * linux-arm-low.c (the_low_targets): Likewise.
9124 * linux-bfin-low.c (the_low_targets): Likewise.
9125 * linux-cris-low.c (the_low_targets): Likewise.
9126 * linux-crisv32-low.c (the_low_targets): Likewise.
9127 * linux-low.c (can_software_single_step): Likewise.
9128 (install_software_single_step_breakpoints): New function.
9129 (start_step_over): Use install_software_single_step_breakpoints.
9130 * linux-low.h: New CORE_ADDR vector.
9131 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9132 get_next_pcs.
9133 * linux-mips-low.c (the_low_targets): Likewise.
9134 * linux-nios2-low.c (the_low_targets): Likewise.
9135 * linux-sparc-low.c (the_low_targets): Likewise.
9136
4a6ed09b
PA
91372015-12-17 Pedro Alves <palves@redhat.com>
9138
9139 * linux-low.c (linux_kill_one_lwp): Remove references to
9140 LinuxThreads.
9141 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9142 to 'kill'.
9143 (linux_init_signals): Delete.
9144 (initialize_low): Adjust.
9145 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9146
7544db95
PA
91472015-12-16 Pedro Alves <palves@redhat.com>
9148
9149 * configure.ac (compiler warning flags): When testing a
9150 -Wno-foo option, check whether -Wfoo works instead.
9151 * configure: Regenerate.
9152
8020350c
DB
91532015-12-11 Don Breazeal <donb@codesourcery.com>
9154
9155 * server.c (process_serial_event): Don't exit from gdbserver
9156 in remote mode if there are still active inferiors.
9157
db91f502
YQ
91582015-12-11 Yao Qi <yao.qi@linaro.org>
9159
9160 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9161 arm_breakpoint_at if the process is 32-bit.
9162
b37a6290
YQ
91632015-12-11 Yao Qi <yao.qi@linaro.org>
9164
9165 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9166 arm breakpoint.
9167
17b1509a
YQ
91682015-12-07 Yao Qi <yao.qi@linaro.org>
9169
9170 * configure.srv: Append arm.o to srv_tgtobj for
9171 aarch64*-*-linux* target.
9172 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9173 from linux-arm-low.c.
9174 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9175 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9176 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9177 (thumb2_breakpoint_len): Likewise.
9178 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9179 (arm_breakpoint_kinds): Likewise.
9180 (arm_breakpoint_kind_from_pc): Likewise.
9181 (arm_sw_breakpoint_from_kind): Likewise.
9182 (arm_breakpoint_kind_from_current_state): Likewise.
9183 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9184 (arm_sw_breakpoint_from_kind): Declare.
9185 (arm_breakpoint_kind_from_current_state): Declare.
9186 (arm_breakpoint_at): Declare.
9187 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9188 arm_sw_breakpoint_from_kind if process is 32-bit.
9189 (aarch64_breakpoint_kind_from_pc): New function.
9190 (aarch64_breakpoint_kind_from_current_state): New function.
9191 (the_low_target): Initialize fields breakpoint_kind_from_pc
9192 and breakpoint_kind_from_current_state.
9193 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9194 linux-aarch32-low.c.
9195 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9196 (arm_breakpoint, arm_breakpoint_len): Likewise.
9197 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9198 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9199 (arm_is_thumb_mode): Likewise.
9200 (arm_breakpoint_at): Likewise.
9201 (arm_breakpoint_kind_from_pc): Likewise.
9202 (arm_sw_breakpoint_from_kind): Likewise.
9203 (arm_breakpoint_kind_from_current_state): Likewise.
9204
9205 Revert:
9206 2015-08-04 Yao Qi <yao.qi@linaro.org>
9207
9208 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9209 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9210 * server.c (extended_protocol): Remove "static".
9211 * server.h (extended_protocol): Declare it.
9212
ece66d65
JS
92132015-12-04 Josh Stone <jistone@redhat.com>
9214
9215 * target.h (struct target_ops) <arch_setup>: Rename to ...
9216 (struct target_ops) <post_create_inferior>: ... this.
9217 (target_arch_setup): Rename to ...
9218 (target_post_create_inferior): ... this, calling post_create_inferior.
9219 * server.c (start_inferior): Update target_arch_setup calls to
9220 target_post_create_inferior.
9221 * linux-low.c (linux_low_ptrace_options): Forward declare.
9222 (linux_arch_setup): Update its comment for general use.
9223 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9224 (struct linux_target_ops): Use linux_post_create_inferior.
9225 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9226 to post_create_inferior.
9227 * nto-low.c (struct nto_target_ops): Likewise.
9228 * spu-low.c (struct spu_target_ops): Likewise.
9229 * win32-low.c (struct win32_target_ops): Likewise.
9230
e58c48b4
AT
92312015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9232
9233 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9234
fbec8956
AT
92352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9236
9237 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9238 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9239 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9240 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9241 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9242 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9243 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9244 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9245 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9246 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9247 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9248 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9249
9b4c5f87
AT
92502015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9251
9252 * linux-low.c (linux_look_up_symbols): Don't call
9253 linux_supports_traceclone.
9254 * linux-low.h (thread_db_init): Remove use_events argument.
9255 * thread-db.c (thread_db_use_event): Remove global variable.
9256 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9257 (struct thread_db) <td_create_bp>: Remove field.
9258 (thread_db_create_event): Remove function.
9259 (thread_db_enable_reporting): Likewise.
9260 (find_one_thread): Don't check for thread_db_use_events.
9261 (attach_thread): Likewise.
9262 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9263 (try_thread_db_load_1): Don't check for thread_db_use_events.
9264 (thread_db_init): Remove use_events argument and thread events
9265 handling.
9266 (remove_thread_event_breakpoints): Remove function.
9267 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9268
7d00775e
AT
92692015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9270
9271 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9272 New function.
9273 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9274 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9275 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9276 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9277 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9278 Initialize.
9279 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9280 New function.
9281 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9282 * linux-low.c (can_hardware_single_step): Use
9283 supports_hardware_single_step.
9284 (can_software_single_step): New function.
9285 (start_step_over): Call can_software_single_step.
9286 (linux_supports_hardware_single_step): New function.
9287 (struct target_ops) <supports_software_single_step>: Initialize.
9288 * linux-low.h (struct linux_target_ops)
9289 <supports_hardware_single_step>: Initialize.
9290 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9291 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9292 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9293 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9294 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9295 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9296 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9297 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9298 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9299 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9300 Initialize.
9301 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9302 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9303 Initialize.
9304 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9305 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9306 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9307 New function.
9308 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9309 * target.h (struct target_ops): <supports_software_single_step>:
9310 New field.
9311 (target_supports_software_single_step): New macro.
9312
2d97cd35
AT
93132015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9314
9315 * linux-low.c (linux_wait_1): Fix pc advance condition.
9316 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9317 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9318
769ef81f
AT
93192015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9320
9321 * linux-arm-low.c (arm_is_thumb_mode): New function.
9322 (arm_breakpoint_at): Use arm_is_thumb_mode.
9323 (arm_breakpoint_kind_from_current_state): New function.
9324 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9325 Initialize.
9326 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9327 (linux_breakpoint_kind_from_current_state): New function.
9328 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9329 * linux-low.h (struct linux_target_ops)
9330 <breakpoint_kind_from_current_state>: New field.
9331 * target.h (struct target_ops): Likewise.
9332 (target_breakpoint_kind_from_current_state): New macro.
9333
1bebeeca
PA
93342015-11-30 Pedro Alves <palves@redhat.com>
9335
9336 * linux-low.c (linux_resume): Wake up the event loop before
9337 returning.
9338
a67a9fae
PA
93392015-11-30 Pedro Alves <palves@redhat.com>
9340
9341 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9342 check.
9343 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9344 to -1.
9345 * target.c (struct thread_search): New structure.
9346 (thread_search_callback): New function.
9347 (prev_general_thread): New global.
9348 (prepare_to_access_memory, done_accessing_memory): New functions.
9349 * target.h (prepare_to_access_memory, done_accessing_memory):
9350 Replace macros with function declarations.
9351
f2faf941
PA
93522015-11-30 Pedro Alves <palves@redhat.com>
9353
9354 PR 14618
9355 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9356 report TARGET_WAITKIND_NO_RESUMED.
9357 * remote-utils.c (prepare_resume_reply): Handle
9358 TARGET_WAITKIND_NO_RESUMED.
9359 * server.c (report_no_resumed): New global.
9360 (handle_query) <qSupported>: Handle "no-resumed+". Report
9361 "no-resumed+" support.
9362 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9363 return error if the client doesn't support no-resumed events.
9364 (push_stop_notification): New function.
9365 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9366 events if the client supports them.
9367
a681f9c9
PA
93682015-11-30 Pedro Alves <palves@redhat.com>
9369
9370 * linux-low.c (thread_still_has_status_pending_p): Don't check
9371 vCont;t here.
9372 (lwp_resumed): New function.
9373 (status_pending_p_callback): Return early if the LWP is not
9374 supposed to be resumed.
9375
65706a29
PA
93762015-11-30 Pedro Alves <palves@redhat.com>
9377
9378 * linux-low.c (handle_extended_wait): Assert that the LWP's
9379 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9380 thread create events, leave the new child's status pending.
9381 (linux_low_filter_event): If GDB wants to hear about thread exit
9382 events, leave the LWP marked dead and don't delete it.
9383 (linux_wait_for_event_filtered): Don't check for thread exit.
9384 (filter_exit_event): New function.
9385 (linux_wait_1): Use it, when returning an exit event.
9386 (linux_resume_one_lwp_throw): Assert that the LWP's
9387 waitstatus is TARGET_WAITKIND_IGNORE.
9388 * remote-utils.c (prepare_resume_reply): Handle
9389 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9390 * server.c (report_thread_events): New global.
9391 (handle_general_set): Handle QThreadEvents.
9392 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9393 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9394 TARGET_WAITKIND_THREAD_EXITED.
9395 * server.h (report_thread_events): Declare.
9396
56cf4bed
PA
93972015-11-30 Pedro Alves <palves@redhat.com>
9398
9399 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9400 the thread's last_resume_kind was resume_stop.
9401
500c1d85
PA
94022015-11-30 Pedro Alves <palves@redhat.com>
9403
9404 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9405 before returning.
9406
de979965
PA
94072015-11-30 Pedro Alves <palves@redhat.com>
9408
9409 * server.c (handle_v_requests): Handle vCtrlC.
9410
34c65914
PA
94112015-11-30 Pedro Alves <palves@redhat.com>
9412
9413 * gdbthread.h (find_any_thread_of_pid): Declare.
9414 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9415 functions.
9416 * server.c (handle_query): If current_thread is NULL, look for
9417 another thread of the selected process.
9418
79efa585 94192015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9420 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9421
9422 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9423 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9424 name in reply.
9425 * target.h (struct target_ops) <thread_name>: New field.
9426 (target_thread_name): New macro.
9427
80d82c19
JB
94282015-11-23 Joel Brobecker <brobecker@adacore.com>
9429
9430 * regcache.h (regcache_invalidate_pid): Add declaration.
9431 * regcache.c (regcache_invalidate_pid): New function, extracted
9432 from regcache_invalidate.
9433 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9434 Add trivial documentation comment.
9435 * lynx-low.c: Use regcache_invalidate_pid instead of
9436 regcache_invalidate.
9437
64da5dd5
JB
94382015-11-23 Joel Brobecker <brobecker@adacore.com>
9439
9440 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9441 and Elf64_auxv_t if the target is Android.
9442
37ce4055
DE
94432015-11-22 Doug Evans <xdje42@gmail.com>
9444
9445 * target.h: #include <sys/types.h>.
9446
06e03fff
PA
94472015-11-19 Pedro Alves <palves@redhat.com>
9448
9449 * linux-low.c (linux_process_qsupported): Change prototype.
9450 Adjust.
9451 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9452 Change prototype.
9453 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9454 and adjust to loop over all features.
9455 * server.c (handle_query) <qSupported>: Adjust to call
9456 target_process_qsupported once, passing it a vector of unprocessed
9457 features.
9458 * target.h (struct target_ops) <process_qsupported>: Change
9459 prototype.
9460 (target_process_qsupported): Adjust.
9461
9a084706
PA
94622015-11-19 Pedro Alves <palves@redhat.com>
9463
9464 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9465 mode.
9466 * configure: Regenerate.
9467
dad44a1f
PA
94682015-11-19 Pedro Alves <palves@redhat.com>
9469
9470 * configure: Regenerate.
9471
231c0592
YQ
94722015-11-19 Yao Qi <yao.qi@linaro.org>
9473
9474 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9475 type to uint32_t.
9476
6c1c9a8b
YQ
94772015-11-19 Yao Qi <yao.qi@linaro.org>
9478
9479 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9480 (struct aarch64_operand): Move enum out.
9481
9caa3311
YQ
94822015-11-19 Yao Qi <yao.qi@linaro.org>
9483
9484 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9485 struct user_fpsimd_state *.
9486 (aarch64_store_fpregset): Likewise.
9487
6a69a054
YQ
94882015-11-19 Yao Qi <yao.qi@linaro.org>
9489
9490 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9491 struct user_pt_regs *.
9492 (aarch64_store_gregset): Likewise.
9493
1798301e
PA
94942015-11-18 Pedro Alves <palves@redhat.com>
9495
9496 * Makefile.in (all_object_files): Add $IPA_OBJS.
9497
ce7715e2
PA
94982015-11-17 Pedro Alves <palves@redhat.com>
9499
9500 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9501 GDB_SIGNAL_0 and gdb_signal_to_string.
9502
c0879059
PA
95032015-11-17 Pedro Alves <palves@redhat.com>
9504
9505 * win32-low.c (handle_output_debug_string): Remove parameter.
9506 (win32_kill): Remove our_status local and adjust call to
9507 handle_output_debug_string.
9508 (get_child_debug_event): Adjust call to
9509 handle_output_debug_string.
9510
1996e237
SM
95112015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 * linux-mips-low.c (mips_fill_gregset): Add cast.
9514 (mips_store_gregset): Likewise.
9515 (mips_fill_fpregset): Likewise.
9516 (mips_store_fpregset): Likewise.
9517
cbec665b
SM
95182015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9519
9520 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9521 priv.
9522
eb3e3c67
SM
95232015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9524
9525 * linux-mips-low.c (mips_linux_new_thread): Change type of
9526 watch_type to enum target_hw_bp_type.
9527
171de4b8
SM
95282015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9529
9530 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9531 Change return type to arm_hwbp_type.
9532
04248ead
SM
95332015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9534
9535 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9536 (arm_store_gregset): Likewise.
9537 * linux-arm-low.c (arm_get_hwcap): Likewise.
9538 (arm_read_description): Likewise.
9539
04b3479c
SM
95402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9541
9542 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9543
2bc84e8a
SM
95442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9545
9546 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9547 (ppc_fill_vsxregset): Likewise.
9548 (ppc_store_vsxregset): Likewise.
9549 (ppc_fill_vrregset): Likewise.
9550 (ppc_store_vrregset): Likewise.
9551 (ppc_fill_evrregset): Likewise.
9552 (ppc_store_evrregset): Likewise.
9553
e6c5bb05
SM
95542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9555
9556 * linux-ppc-low.c (ppc_usrregs_info): Remove
9557 forward-declaration.
9558 (ppc_arch_setup): Move lower in file.
9559
7ea45d72
SM
95602015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9561
9562 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9563 (ps_pdwrite): Likewise.
9564
69291610
HW
95652015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9566
9567 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9568 to after assert checks.
9569
b42945fd
SM
95702015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9571
9572 * proc-service.c (ps_pdread): Add/adjust casts.
9573 (ps_pdwrite): Add/adjust casts.
9574
d6f85c84
SM
95752015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9576
9577 * server.c (handle_search_memory_1): Cast return value of
9578 memmem.
9579
f98cd059
SM
95802015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9581
9582 * server.c (write_qxfer_response): Change type of data to
9583 gdb_byte *.
9584
d2412fa5
PA
95852015-10-29 Pedro Alves <palves@redhat.com>
9586
9587 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9588
c17414a2
PA
95892015-10-29 Pedro Alves <palves@redhat.com>
9590
9591 * tracepoint.c (clear_installed_tracepoints): Add casts.
9592
e053fbc4
PA
95932015-10-29 Pedro Alves <palves@redhat.com>
9594
9595 * server.c (handle_v_cont, process_serial_event): Add enum
9596 gdb_signal casts to signal parsing code.
9597
add67df8
PA
95982015-10-29 Pedro Alves <palves@redhat.com>
9599
9600 * linux-low.h (NULL_REGSET): Define.
9601 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9602 * linux-arm-low.c (arm_regsets): Likewise.
9603 * linux-crisv32-low.c (cris_regsets): Likewise.
9604 * linux-m68k-low.c (m68k_regsets): Likewise.
9605 * linux-mips-low.c (mips_regsets): Likewise.
9606 * linux-nios2-low.c (nios2_regsets): Likewise.
9607 * linux-ppc-low.c (ppc_regsets): Likewise.
9608 * linux-s390-low.c (s390_regsets): Likewise.
9609 * linux-sh-low.c (sh_regsets): Likewise.
9610 * linux-sparc-low.c (sparc_regsets): Likewise.
9611 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9612 * linux-tile-low.c (tile_regsets): Likewise.
9613 * linux-x86-low.c (x86_regsets): Likewise.
9614 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9615
50bc912a
PA
96162015-10-29 Pedro Alves <palves@redhat.com>
9617
9618 * linux-low.h (NULL_REGSET): Define.
9619 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9620 * linux-arm-low.c (arm_regsets): Likewise.
9621 * linux-crisv32-low.c (cris_regsets): Likewise.
9622 * linux-m68k-low.c (m68k_regsets): Likewise.
9623 * linux-mips-low.c (mips_regsets): Likewise.
9624 * linux-nios2-low.c (nios2_regsets): Likewise.
9625 * linux-ppc-low.c (ppc_regsets): Likewise.
9626 * linux-s390-low.c (s390_regsets): Likewise.
9627 * linux-sh-low.c (sh_regsets): Likewise.
9628 * linux-sparc-low.c (sparc_regsets): Likewise.
9629 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9630 * linux-tile-low.c (tile_regsets): Likewise.
9631 * linux-x86-low.c (x86_regsets): Likewise.
9632 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9633
682b2546
DE
96342015-10-26 Doug Evans <dje@google.com>
9635
9636 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9637
963843d4
DE
96382015-10-26 Doug Evans <dje@google.com>
9639
9640 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9641
d41401ac
DE
96422015-10-26 Doug Evans <dje@google.com>
9643
9644 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9645 for debug_printf.
9646 (attach_thread, find_new_threads_callback): Ditto.
9647
3db28855
AT
96482015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9649
9650 * mem-break.h (set_breakpoint_data): Remove.
9651
fb78e89c
AT
96522015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9653
9654 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9655 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9656 (initialize_low): Remove set_breakpoint_data call.
9657 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9658 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9659 (initialize_low): Remove set_breakpoint_data call.
9660 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9661 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9662 (initialize_low): Remove set_breakpoint_data call.
9663
2e6ee069
AT
96642015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9665
9666 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9667 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9668 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9669 * target.h (target_breakpoint_kind_from_pc): New macro.
9670
1652a986
AT
96712015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9672
9673 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9674 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9675 the default breakpoint kind.
9676
abeead09
AT
96772015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9678
9679 * linux-arm-low.c (arm_supports_z_point_type): Add software
9680 breakpoint support.
9681
b0b4b501
AT
96822015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9683
9684 * linux-arm-low.c: Refactor breakpoint definitions.
9685 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9686 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9687
8689682c
AT
96882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9689
9690 * Makefile.in: Add arm.c/o.
9691 * configure.srv: Likewise.
9692 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9693 (arm_breakpoint_kind_from_pc): New function.
9694 (arm_sw_breakpoint_from_kind): Return proper kind.
9695 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9696
27165294
AT
96972015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9698
9699 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9700 removal.
9701 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9702 (struct raw_breakpoint) <size>: Remove.
9703 (struct raw_breakpoint) <kind>: Add.
9704 (bp_size): New function.
9705 (bp_opcode): Likewise.
9706 (find_raw_breakpoint_at): Adjust for kind.
9707 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9708 (remove_memory_breakpoint): Adjust for kind call bp_size.
9709 (set_raw_breakpoint_at): Adjust for kind.
9710 (set_breakpoint): Likewise.
9711 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9712 (delete_raw_breakpoint): Adjust for kind.
9713 (delete_breakpoint): Likewise.
9714 (find_gdb_breakpoint): Likewise.
9715 (set_gdb_breakpoint_1): Likewise.
9716 (set_gdb_breakpoint): Likewise.
9717 (delete_gdb_breakpoint_1): Likewise.
9718 (delete_gdb_breakpoint): Likewise.
9719 (uninsert_raw_breakpoint): Likewise.
9720 (reinsert_raw_breakpoint): Likewise.
9721 (set_breakpoint_data): Remove.
9722 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9723 (check_mem_read): Adjust for kind call bp_size.
9724 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9725 (clone_one_breakpoint): Adjust for kind.
9726 * mem-break.h (set_gdb_breakpoint): Likewise.
9727 (delete_gdb_breakpoint): Likewise.
9728 * server.c (process_serial_event): Likewise.
9729
dd373349
AT
97302015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9731
9732 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9733 (struct linux_target_ops) <breakpoint>: Remove.
9734 (struct linux_target_ops) <breakpoint_len>: Remove.
9735 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9736 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9737 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9738 (arm_sw_breakpoint_from_kind): New function.
9739 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9740 (struct linux_target_ops) <breakpoint>: Remove.
9741 (struct linux_target_ops) <breakpoint_len>: Remove.
9742 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9743 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9744 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9745 (struct linux_target_ops) <breakpoint>: Remove.
9746 (struct linux_target_ops) <breakpoint_len>: Remove.
9747 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9748 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9749 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9750 (struct linux_target_ops) <breakpoint>: Remove.
9751 (struct linux_target_ops) <breakpoint_len>: Remove.
9752 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9753 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9754 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9755 and sw_breakpoint_from_kind to increment the pc.
9756 (linux_breakpoint_kind_from_pc): New function.
9757 (linux_sw_breakpoint_from_kind): New function.
9758 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9759 (initialize_low): Call breakpoint_kind_from_pc and
9760 sw_breakpoint_from_kind to replace breakpoint_data/len.
9761 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9762 New field.
9763 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9764 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9765 (struct linux_target_ops) <breakpoint>: Remove.
9766 (struct linux_target_ops) <breakpoint_len>: Remove.
9767 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9768 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9769 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9770 (struct linux_target_ops) <breakpoint>: Remove.
9771 (struct linux_target_ops) <breakpoint_len>: Remove.
9772 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9773 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9774 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9775 (struct linux_target_ops) <breakpoint>: Remove.
9776 (struct linux_target_ops) <breakpoint_len>: Remove.
9777 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9778 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9779 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9780 (struct linux_target_ops) <breakpoint>: Remove.
9781 (struct linux_target_ops) <breakpoint_len>: Remove.
9782 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9783 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9784 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9785 (struct linux_target_ops) <breakpoint>: Remove.
9786 (struct linux_target_ops) <breakpoint_len>: Remove.
9787 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9788 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9789 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9790 (struct linux_target_ops) <breakpoint>: Remove.
9791 (struct linux_target_ops) <breakpoint_len>: Remove.
9792 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9793 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9794 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9795 (struct linux_target_ops) <breakpoint>: Remove.
9796 (struct linux_target_ops) <breakpoint_len>: Remove.
9797 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9798 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9799 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9800 (struct linux_target_ops) <breakpoint>: Remove.
9801 (struct linux_target_ops) <breakpoint_len>: Remove.
9802 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9803 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9804 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9805 (struct linux_target_ops) <breakpoint>: Remove.
9806 (struct linux_target_ops) <breakpoint_len>: Remove.
9807 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9808 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9809 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9810 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9811 (struct linux_target_ops) <breakpoint>: Remove.
9812 (struct linux_target_ops) <breakpoint_len>: Remove.
9813 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9814 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9815 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9816 (struct linux_target_ops) <breakpoint>: Remove.
9817 (struct linux_target_ops) <breakpoint_len>: Remove.
9818 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9819 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9820
4cd98a19
AT
98212015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9822
9823 * linux-cris-low.c (cris_get_pc): Remove void arg.
9824
774ee6d2
AR
98252015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9826
9827 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9828 variable name.
9829
833dcd29
AR
98302015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9831
9832 * inferiors.c (thread_pid_matches_callback): New function.
9833 (find_thread_process): New function.
9834 (remove_thread): Reset current_thread.
9835 (remove_process): Assert threads have been removed first.
9836
8d689ee5
YQ
98372015-10-15 Yao Qi <yao.qi@linaro.org>
9838
9839 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9840 if it is 3.
9841 (aarch64_remove_point): Likewise.
9842 * regcache.c (regcache_register_size): New function.
9843
1c2e1515
YQ
98442015-10-12 Yao Qi <yao.qi@linaro.org>
9845
9846 * linux-aarch64-low.c: Update all callers as emit_load_store
9847 is renamed to aarch64_emit_load_store.
9848
e1c587c3
YQ
98492015-10-12 Yao Qi <yao.qi@linaro.org>
9850
9851 * linux-aarch64-low.c: Update all callers of function renaming
9852 from emit_insn to aarch64_emit_insn.
9853
b6542f81
YQ
98542015-10-12 Yao Qi <yao.qi@linaro.org>
9855
9856 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9857 arch/aarch64-insn.h.
9858 (struct aarch64_memory_operand): Likewise.
9859 (ENCODE): Likewise.
9860 (emit_insn): Move to arch/aarch64-insn.c.
9861 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9862 (emit_load_store): Move to arch/aarch64-insn.c.
9863 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9864 (can_encode_int32): Remove.
9865
246994ce
YQ
98662015-10-12 Yao Qi <yao.qi@linaro.org>
9867
9868 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9869 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9870 (aarch64_relocate_instruction): Likewise.
9871 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9872 (struct aarch64_insn_visitor): Likewise.
9873
0badd99f
YQ
98742015-10-12 Yao Qi <yao.qi@linaro.org>
9875
9876 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9877 (struct aarch64_insn_visitor): New.
9878 (struct aarch64_insn_relocation_data): New.
9879 (aarch64_ftrace_insn_reloc_b): New function.
9880 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9881 (aarch64_ftrace_insn_reloc_cb): Likewise.
9882 (aarch64_ftrace_insn_reloc_tb): Likewise.
9883 (aarch64_ftrace_insn_reloc_adr): Likewise.
9884 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9885 (aarch64_ftrace_insn_reloc_others): Likewise.
9886 (visitor): New.
9887 (aarch64_relocate_instruction): Use visitor.
9888
dfaffe9d
YQ
98892015-10-12 Yao Qi <yao.qi@linaro.org>
9890
9891 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9892 int. Add argument buf.
9893 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9894 aarch64_relocate_instruction.
9895
70b439f0
YQ
98962015-10-12 Yao Qi <yao.qi@linaro.org>
9897
9898 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9899 argument insn. Remove local variable insn. Don't call
9900 target_read_uint32.
9901 (aarch64_install_fast_tracepoint_jump_pad): Call
9902 target_read_uint32.
9903
7781c06f
YQ
99042015-09-30 Yao Qi <yao.qi@linaro.org>
9905
9906 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9907 (emit_load_store_pair): Likewise.
9908
9a3c8263
SM
99092015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9910
9911 * dll.c (match_dll): Add cast(s).
9912 (unloaded_dll): Likewise.
9913 * linux-low.c (second_thread_of_pid_p): Likewise.
9914 (delete_lwp_callback): Likewise.
9915 (count_events_callback): Likewise.
9916 (select_event_lwp_callback): Likewise.
9917 (linux_set_resume_request): Likewise.
9918 * server.c (accumulate_file_name_length): Likewise.
9919 (emit_dll_description): Likewise.
9920 (handle_qxfer_threads_worker): Likewise.
9921 (visit_actioned_threads): Likewise.
9922 * thread-db.c (any_thread_of): Likewise.
9923 * tracepoint.c (same_process_p): Likewise.
9924 (match_blocktype): Likewise.
9925 (build_traceframe_info_xml): Likewise.
9926
224c3ddb
SM
99272015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9928
9929 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9930 assignment.
9931 (gdb_unparse_agent_expr): Likewise.
9932 * hostio.c (require_data): Likewise.
9933 (handle_pread): Likewise.
9934 * linux-low.c (disable_regset): Likewise.
9935 (fetch_register): Likewise.
9936 (store_register): Likewise.
9937 (get_dynamic): Likewise.
9938 (linux_qxfer_libraries_svr4): Likewise.
9939 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9940 (set_fast_tracepoint_jump): Likewise.
9941 (uninsert_fast_tracepoint_jumps_at): Likewise.
9942 (reinsert_fast_tracepoint_jumps_at): Likewise.
9943 (validate_inserted_breakpoint): Likewise.
9944 (clone_agent_expr): Likewise.
9945 * regcache.c (init_register_cache): Likewise.
9946 * remote-utils.c (putpkt_binary_1): Likewise.
9947 (decode_M_packet): Likewise.
9948 (decode_X_packet): Likewise.
9949 (look_up_one_symbol): Likewise.
9950 (relocate_instruction): Likewise.
9951 (monitor_output): Likewise.
9952 * server.c (handle_search_memory): Likewise.
9953 (handle_qxfer_exec_file): Likewise.
9954 (handle_qxfer_libraries): Likewise.
9955 (handle_qxfer): Likewise.
9956 (handle_query): Likewise.
9957 (handle_v_cont): Likewise.
9958 (handle_v_run): Likewise.
9959 (captured_main): Likewise.
9960 * target.c (write_inferior_memory): Likewise.
9961 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9962 * tracepoint.c (init_trace_buffer): Likewise.
9963 (add_tracepoint_action): Likewise.
9964 (add_traceframe): Likewise.
9965 (add_traceframe_block): Likewise.
9966 (cmd_qtdpsrc): Likewise.
9967 (cmd_qtdv): Likewise.
9968 (cmd_qtstatus): Likewise.
9969 (response_source): Likewise.
9970 (response_tsv): Likewise.
9971 (cmd_qtnotes): Likewise.
9972 (gdb_collect): Likewise.
9973 (initialize_tracepoint): Likewise.
9974
afbe19f8
PL
99752015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9976
9977 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9978 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9979 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9980 <NOP>: New.
9981 (enum aarch64_condition_codes): New enum.
9982 (w0): New static global.
9983 (fp): Likewise.
9984 (lr): Likewise.
9985 (struct aarch64_memory_operand) <type>: New
9986 MEMORY_OPERAND_POSTINDEX type.
9987 (postindex_memory_operand): New helper function.
9988 (emit_ret): New function.
9989 (emit_load_store_pair): New function, factored out of emit_stp
9990 with support for MEMORY_OPERAND_POSTINDEX.
9991 (emit_stp): Rewrite using emit_load_store_pair.
9992 (emit_ldp): New function.
9993 (emit_load_store): Likewise.
9994 (emit_ldr): Mention post-index instruction in comment.
9995 (emit_ldrh): New function.
9996 (emit_ldrb): New function.
9997 (emit_ldrsw): Mention post-index instruction in comment.
9998 (emit_str): Likewise.
9999 (emit_subs): New function.
10000 (emit_cmp): Likewise.
10001 (emit_and): Likewise.
10002 (emit_orr): Likewise.
10003 (emit_orn): Likewise.
10004 (emit_eor): Likewise.
10005 (emit_mvn): Likewise.
10006 (emit_lslv): Likewise.
10007 (emit_lsrv): Likewise.
10008 (emit_asrv): Likewise.
10009 (emit_mul): Likewise.
10010 (emit_sbfm): Likewise.
10011 (emit_sbfx): Likewise.
10012 (emit_ubfm): Likewise.
10013 (emit_ubfx): Likewise.
10014 (emit_csinc): Likewise.
10015 (emit_cset): Likewise.
10016 (emit_nop): Likewise.
10017 (emit_ops_insns): New helper function.
10018 (emit_pop): Likewise.
10019 (emit_push): Likewise.
10020 (aarch64_emit_prologue): New function.
10021 (aarch64_emit_epilogue): Likewise.
10022 (aarch64_emit_add): Likewise.
10023 (aarch64_emit_sub): Likewise.
10024 (aarch64_emit_mul): Likewise.
10025 (aarch64_emit_lsh): Likewise.
10026 (aarch64_emit_rsh_signed): Likewise.
10027 (aarch64_emit_rsh_unsigned): Likewise.
10028 (aarch64_emit_ext): Likewise.
10029 (aarch64_emit_log_not): Likewise.
10030 (aarch64_emit_bit_and): Likewise.
10031 (aarch64_emit_bit_or): Likewise.
10032 (aarch64_emit_bit_xor): Likewise.
10033 (aarch64_emit_bit_not): Likewise.
10034 (aarch64_emit_equal): Likewise.
10035 (aarch64_emit_less_signed): Likewise.
10036 (aarch64_emit_less_unsigned): Likewise.
10037 (aarch64_emit_ref): Likewise.
10038 (aarch64_emit_if_goto): Likewise.
10039 (aarch64_emit_goto): Likewise.
10040 (aarch64_write_goto_address): Likewise.
10041 (aarch64_emit_const): Likewise.
10042 (aarch64_emit_call): Likewise.
10043 (aarch64_emit_reg): Likewise.
10044 (aarch64_emit_pop): Likewise.
10045 (aarch64_emit_stack_flush): Likewise.
10046 (aarch64_emit_zero_ext): Likewise.
10047 (aarch64_emit_swap): Likewise.
10048 (aarch64_emit_stack_adjust): Likewise.
10049 (aarch64_emit_int_call_1): Likewise.
10050 (aarch64_emit_void_call_2): Likewise.
10051 (aarch64_emit_eq_goto): Likewise.
10052 (aarch64_emit_ne_goto): Likewise.
10053 (aarch64_emit_lt_goto): Likewise.
10054 (aarch64_emit_le_goto): Likewise.
10055 (aarch64_emit_gt_goto): Likewise.
10056 (aarch64_emit_ge_got): Likewise.
10057 (aarch64_emit_ops_impl): New static global variable.
10058 (aarch64_emit_ops): New target function, return
10059 &aarch64_emit_ops_impl.
10060 (struct linux_target_ops): Install it.
10061
bb903df0
PL
100622015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10063
10064 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10065 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10066 aarch64-ipa.o.
10067 * linux-aarch64-ipa.c: New file.
10068 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10069 and endian.h.
10070 (aarch64_get_thread_area): New target method.
10071 (extract_signed_bitfield): New helper function.
10072 (aarch64_decode_ldr_literal): New function.
10073 (enum aarch64_opcodes): New enum.
10074 (struct aarch64_register): New struct.
10075 (struct aarch64_operand): New struct.
10076 (x0): New static global.
10077 (x1): Likewise.
10078 (x2): Likewise.
10079 (x3): Likewise.
10080 (x4): Likewise.
10081 (w2): Likewise.
10082 (ip0): Likewise.
10083 (sp): Likewise.
10084 (xzr): Likewise.
10085 (aarch64_register): New helper function.
10086 (register_operand): Likewise.
10087 (immediate_operand): Likewise.
10088 (struct aarch64_memory_operand): New struct.
10089 (offset_memory_operand): New helper function.
10090 (preindex_memory_operand): Likewise.
10091 (enum aarch64_system_control_registers): New enum.
10092 (ENCODE): New macro.
10093 (emit_insn): New helper function.
10094 (emit_b): New function.
10095 (emit_bcond): Likewise.
10096 (emit_cb): Likewise.
10097 (emit_tb): Likewise.
10098 (emit_blr): Likewise.
10099 (emit_stp): Likewise.
10100 (emit_ldp_q_offset): Likewise.
10101 (emit_stp_q_offset): Likewise.
10102 (emit_load_store): Likewise.
10103 (emit_ldr): Likewise.
10104 (emit_ldrsw): Likewise.
10105 (emit_str): Likewise.
10106 (emit_ldaxr): Likewise.
10107 (emit_stxr): Likewise.
10108 (emit_stlr): Likewise.
10109 (emit_data_processing_reg): Likewise.
10110 (emit_data_processing): Likewise.
10111 (emit_add): Likewise.
10112 (emit_sub): Likewise.
10113 (emit_mov): Likewise.
10114 (emit_movk): Likewise.
10115 (emit_mov_addr): Likewise.
10116 (emit_mrs): Likewise.
10117 (emit_msr): Likewise.
10118 (emit_sevl): Likewise.
10119 (emit_wfe): Likewise.
10120 (append_insns): Likewise.
10121 (can_encode_int32_in): New helper function.
10122 (aarch64_relocate_instruction): New function.
10123 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10124 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10125 (struct linux_target_ops): Install aarch64_get_thread_area,
10126 aarch64_install_fast_tracepoint_jump_pad and
10127 aarch64_get_min_fast_tracepoint_insn_len.
10128
787749ea
PL
101292015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10130
10131 * Makefile.in (aarch64-insn.o): New rule.
10132 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10133
9812b2e6
YQ
101342015-09-21 Yao Qi <yao.qi@linaro.org>
10135
10136 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10137
18fe412b
YQ
101382015-09-21 Yao Qi <yao.qi@linaro.org>
10139
10140 * tracepoint.c (max_jump_pad_size): Remove.
10141
a0cc84cd
YQ
101422015-09-18 Yao Qi <yao.qi@linaro.org>
10143
10144 * linux-aarch64-low.c: Don't include sys/uio.h.
10145 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10146
d78908cf
WW
101472015-09-16 Wei-cheng Wang <cole945@gmail.com>
10148
10149 * tracepoint.c (eval_result_type): Change prototype.
10150 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10151
d57e0d50
PA
101522015-09-15 Pedro Alves <palves@redhat.com>
10153
10154 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10155 Check whether to report exec events instead of checking whether
10156 multiprocess is enabled.
10157
5a676acc
PA
101582015-09-15 Pedro Alves <palves@redhat.com>
10159
10160 PR remote/18965
10161 * remote-utils.c (prepare_resume_reply): Merge
10162 TARGET_WAITKIND_VFORK_DONE switch case with the
10163 TARGET_WAITKIND_FORKED case.
10164
7c5d0fad
YQ
101652015-09-15 Yao Qi <yao.qi@linaro.org>
10166
10167 * server.c (handle_query): Check string comparison using
10168 "else if" instead of "if".
10169
750ce8d1
YQ
101702015-09-15 Yao Qi <yao.qi@linaro.org>
10171
10172 * server.c (vCont_supported): New global variable.
10173 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10174 matches. Append ";vContSupported+" to own_buf.
10175 (handle_v_requests): Append ";s;S" to own_buf if target supports
10176 hardware single step or vCont_supported is false.
10177 (capture_main): Set vCont_supported to zero.
10178
70b90b91
YQ
101792015-09-15 Yao Qi <yao.qi@linaro.org>
10180
10181 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10182 it to ...
10183 (linux_supports_hardware_single_step): ... New function.
10184 (linux_target_ops): Update.
10185 * lynx-low.c (lynx_target_ops): Set field
10186 supports_hardware_single_step to target_can_do_hardware_single_step.
10187 * nto-low.c (nto_target_ops): Likewise.
10188 * spu-low.c (spu_target_ops): Likewise.
10189 * win32-low.c (win32_target_ops): Likewise.
10190 * target.c (target_can_do_hardware_single_step): New function.
10191 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10192 Remove. <supports_hardware_single_step>: New field.
10193 (target_supports_conditional_breakpoints): Remove.
10194 (target_supports_hardware_single_step): New macro.
10195 (target_can_do_hardware_single_step): Declare.
10196 * server.c (handle_query): Use target_supports_hardware_single_step
10197 instead of target_supports_conditional_breakpoints.
10198
ade90bde
YQ
101992015-09-15 Yao Qi <yao.qi@linaro.org>
10200
10201 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10202 function.
10203 (struct linux_target_ops the_low_target): Install
10204 aarch64_linux_siginfo_fixup.
10205
94585166
DB
102062015-09-11 Don Breazeal <donb@codesourcery.com>
10207 Luis Machado <lgustavo@codesourcery.com>
10208
10209 * linux-low.c (linux_mourn): Static declaration.
10210 (linux_arch_setup): Move in front of
10211 handle_extended_wait.
10212 (linux_arch_setup_thread): New function.
10213 (handle_extended_wait): Handle exec events. Call
10214 linux_arch_setup_thread. Make event_lwp argument a
10215 pointer-to-a-pointer.
10216 (check_zombie_leaders): Do not check stopped threads.
10217 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10218 (linux_low_filter_event): Add lwp and thread for exec'ing
10219 non-leader thread if leader thread has been deleted.
10220 Refactor code into linux_arch_setup_thread and call it.
10221 Pass child lwp pointer by reference to handle_extended_wait.
10222 (linux_wait_for_event_filtered): Update comment.
10223 (linux_wait_1): Prevent clobbering exec event status.
10224 (linux_supports_exec_events): New function.
10225 (linux_target_ops) <supports_exec_events>: Initialize new member.
10226 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10227 new member.
10228 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10229 * server.c (report_exec_events): New global variable.
10230 (handle_query): Handle qSupported query for exec-events feature.
10231 (captured_main): Initialize report_exec_events.
10232 * server.h (report_exec_events): Declare new global variable.
10233 * target.h (struct target_ops) <supports_exec_events>: New
10234 member.
10235 (target_supports_exec_events): New macro.
10236 * win32-low.c (win32_target_ops) <supports_exec_events>:
10237 Initialize new member.
10238
0568462b
MM
102392015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10240
10241 * linux-low.c (linux_low_enable_btrace): Remove.
10242 (linux_target_ops): Replace linux_low_enable_btrace with
10243 linux_enable_btrace.
10244
39edd165
YQ
102452015-09-03 Yao Qi <yao.qi@linaro.org>
10246
10247 * linux-aarch64-low.c (aarch64_insert_point): Call
10248 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10249 returns true.
10250
1db33b5a
UW
102512015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10252
10253 * linux-low.c (check_stopped_by_breakpoint): Use
10254 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10255
ab290430
PA
102562015-08-27 Pedro Alves <palves@redhat.com>
10257
10258 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10259
8d749320
SM
102602015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10261
6711b7f8
SM
10262 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10263 the XNEW-family equivalent.
8d749320
SM
10264 (compile_bytecodes): Likewise.
10265 * dll.c (loaded_dll): Likewise.
10266 * event-loop.c (append_callback_event): Likewise.
10267 (create_file_handler): Likewise.
10268 (create_file_event): Likewise.
10269 * hostio.c (handle_open): Likewise.
10270 * inferiors.c (add_thread): Likewise.
10271 (add_process): Likewise.
10272 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10273 * linux-arm-low.c (arm_new_process): Likewise.
10274 (arm_new_thread): Likewise.
10275 * linux-low.c (add_to_pid_list): Likewise.
10276 (linux_add_process): Likewise.
10277 (handle_extended_wait): Likewise.
10278 (add_lwp): Likewise.
10279 (enqueue_one_deferred_signal): Likewise.
10280 (enqueue_pending_signal): Likewise.
10281 (linux_resume_one_lwp_throw): Likewise.
10282 (linux_resume_one_thread): Likewise.
10283 (linux_read_memory): Likewise.
10284 (linux_write_memory): Likewise.
10285 * linux-mips-low.c (mips_linux_new_process): Likewise.
10286 (mips_linux_new_thread): Likewise.
10287 (mips_add_watchpoint): Likewise.
10288 * linux-x86-low.c (initialize_low_arch): Likewise.
10289 * lynx-low.c (lynx_add_process): Likewise.
10290 * mem-break.c (set_raw_breakpoint_at): Likewise.
10291 (set_breakpoint): Likewise.
10292 (add_condition_to_breakpoint): Likewise.
10293 (add_commands_to_breakpoint): Likewise.
10294 (clone_agent_expr): Likewise.
10295 (clone_one_breakpoint): Likewise.
10296 * regcache.c (new_register_cache): Likewise.
10297 * remote-utils.c (look_up_one_symbol): Likewise.
10298 * server.c (queue_stop_reply): Likewise.
10299 (start_inferior): Likewise.
10300 (queue_stop_reply_callback): Likewise.
10301 (handle_target_event): Likewise.
10302 * spu-low.c (fetch_ppc_memory): Likewise.
10303 (store_ppc_memory): Likewise.
10304 * target.c (set_target_ops): Likewise.
10305 * thread-db.c (thread_db_load_search): Likewise.
10306 (try_thread_db_load_1): Likewise.
10307 * tracepoint.c (add_tracepoint): Likewise.
10308 (add_tracepoint_action): Likewise.
10309 (create_trace_state_variable): Likewise.
10310 (cmd_qtdpsrc): Likewise.
10311 (cmd_qtro): Likewise.
10312 (add_while_stepping_state): Likewise.
10313 * win32-low.c (child_add_thread): Likewise.
10314 (get_image_name): Likewise.
10315
ed8b7b42
YQ
103162015-08-25 Yao Qi <yao.qi@linaro.org>
10317
10318 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10319
db3cb7cb
YQ
103202015-08-25 Yao Qi <yao.qi@linaro.org>
10321
10322 * Makefile.in (aarch64-linux.o): New rule.
10323 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10324 srv_tgtobj.
10325 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10326 (aarch64_init_debug_reg_state): Make it extern.
10327 (aarch64_linux_prepare_to_resume): Remove.
10328
f6011a1c
YQ
103292015-08-25 Yao Qi <yao.qi@linaro.org>
10330
10331 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10332 lwp_arch_private_info and ptid_of_lwp.
10333
88e2cf7e
YQ
103342015-08-25 Yao Qi <yao.qi@linaro.org>
10335
10336 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10337 Find proc_info by find_process_pid. All callers updated.
10338
5e35436e
YQ
103392015-08-25 Yao Qi <yao.qi@linaro.org>
10340
10341 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10342 Remove.
10343 (debug_reg_change_callback): Remove.
10344 (aarch64_notify_debug_reg_change): Remove.
10345
4a8a7965
YQ
103462015-08-25 Yao Qi <yao.qi@linaro.org>
10347
10348 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10349 Call current_lwp_ptid.
10350
32a271ee
YQ
103512015-08-25 Yao Qi <yao.qi@linaro.org>
10352
10353 * linux-aarch64-low.c (debug_reg_change_callback): Use
10354 debug_printf.
10355
0d51c8d7
YQ
103562015-08-25 Yao Qi <yao.qi@linaro.org>
10357
10358 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10359
31a43dd5
YQ
103602015-08-25 Yao Qi <yao.qi@linaro.org>
10361
10362 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10363
8ee52567
YQ
103642015-08-25 Yao Qi <yao.qi@linaro.org>
10365
10366 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10367 the code.
10368
ff3f0f45
YQ
103692015-08-25 Yao Qi <yao.qi@linaro.org>
10370
10371 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10372 Remove.
10373 (debug_reg_change_callback): Remove argument entry and add argument
10374 lwp. Remove local variable thread. Don't print thread id in the
10375 debugging output. Don't check whether pid of thread equals to pid.
10376 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10377 iterate_over_lwps instead find_inferior.
10378
3d40fbb5
PA
103792015-08-24 Pedro Alves <palves@redhat.com>
10380
10381 * inferiors.c (get_first_process): New function.
10382 * inferiors.h (get_first_process): New declaration.
10383 * remote-utils.c (read_ptid): Default to the first process in the
10384 list, instead of to the current thread's process.
10385
438e1e42
PA
103862015-08-24 Pedro Alves <palves@redhat.com>
10387
10388 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10389 * event-loop.c: Likewise.
10390 * remote-utils.c: Likewise.
10391 * tracepoint.c: Likewise.
10392
a8c6d4fc
PA
103932015-08-24 Pedro Alves <palves@redhat.com>
10394
10395 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10396 ptid_get_lwp.
10397
99b0bb12
PA
103982015-08-21 Pedro Alves <palves@redhat.com>
10399
10400 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10401 instead of literal 1.
10402
f8904751
PA
104032015-08-21 Pedro Alves <palves@redhat.com>
10404
10405 * tdesc.c (default_description): Explicitly zero-initialize.
10406
465a859e
PA
104072015-08-21 Pedro Alves <palves@redhat.com>
10408
10409 PR gdb/18749
10410 * inferiors.c (remove_thread): Discard any pending stop reply for
10411 this thread.
10412 * server.c (remove_all_on_match_pid): Rename to ...
10413 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10414 instead of a pid.
10415 (discard_queued_stop_replies): Change parameter to a ptid. Now
10416 extern.
10417 (handle_v_kill, kill_inferior_callback, captured_main)
10418 (process_serial_event): Adjust.
10419 * server.h (discard_queued_stop_replies): Declare.
10420
f0db101d
PA
104212015-08-21 Pedro Alves <palves@redhat.com>
10422
10423 * linux-low.c (wait_for_sigstop): Always switch to no thread
10424 selected if the previously current thread dies.
10425 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10426 process instead of the current thread's.
10427 * remote-utils.c (input_interrupt): Don't check if there's no
10428 current thread.
10429 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10430 current thread to the general thread fails, error out.
10431 (handle_qxfer_auxv, handle_qxfer_libraries)
10432 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10433 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10434 (handle_query): Check if there's a thread selected instead of
10435 checking whether there's any thread in the thread list.
10436 (handle_qxfer_threads, handle_qxfer_btrace)
10437 (handle_qxfer_btrace_conf): Don't error out early if there's no
10438 thread in the thread list.
10439 (handle_v_cont, myresume): Don't set the current thread to the
10440 continue thread.
10441 (process_serial_event) <Hg handling>: Also set thread_id if the
10442 previous general thread is still alive.
10443 (process_serial_event) <g/G handling>: If setting the current
10444 thread to the general thread fails, error out.
10445 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10446 thread's lwp instead of the current thread's.
10447 * target.c (set_desired_thread): If the desired thread was not
10448 found, leave the current thread pointing to NULL. Return an int
10449 (boolean) indicating success.
10450 * target.h (set_desired_thread): Change return type to int.
10451
40045d91
MF
104522015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10453
10454 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10455 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10456 #includes.
10457 (ps_get_thread_area): New function.
10458
45face3b
GB
104592015-08-19 Gary Benson <gbenson@redhat.com>
10460
10461 * hostio.c (handle_pread): Do not attempt to read more data
10462 than hostio_reply_with_data can fit in a packet.
10463
16d5f642
JB
104642015-08-18 Joel Brobecker <brobecker@adacore.com>
10465
10466 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10467
a738da3a
MF
104682015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10469
10470 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10471
33ebda9d
PA
104722015-08-06 Pedro Alves <palves@redhat.com>
10473
10474 * tracepoint.c (expr_eval_result): Now an int.
10475
a44892be
PA
104762015-08-06 Pedro Alves <palves@redhat.com>
10477
10478 * gdbthread.h (struct regcache): Forward declare.
10479 (struct thread_info) <regcache_data>: Now a struct regcache
10480 pointer.
10481 * inferiors.c (inferior_regcache_data)
10482 (set_inferior_regcache_data): Now work with struct regcache
10483 pointers.
10484 * inferiors.h (struct regcache): Forward declare.
10485 (inferior_regcache_data, set_inferior_regcache_data): Now work
10486 with struct regcache pointers.
10487 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10488 (free_register_cache_thread): Remove struct regcache pointer
10489 casts.
10490
608a1e46
PA
104912015-08-06 Pedro Alves <palves@redhat.com>
10492
10493 * server.c (captured_main): On error, print the exception message
10494 to stderr, and if run_once is set, throw a quit.
10495
f0ce0d3a
PA
104962015-08-06 Pedro Alves <palves@redhat.com>
10497
10498 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10499 the current thread.
10500
bf47e248
PA
105012015-08-06 Pedro Alves <palves@redhat.com>
10502
10503 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10504 reading beyond the passed in buffer length.
10505
b6b9ffcc
PL
105062015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10507
10508 * tracepoint.c (symbol_list) <required>: Remove.
10509
863d01bd
PA
105102015-08-06 Pedro Alves <palves@redhat.com>
10511
10512 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10513 count if stopping and suspending threads.
10514 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10515 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10516 (linux_detach): Complete an ongoing step-over.
10517 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10518 throughout.
10519 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10520 (linux_wait_1): If passing a signal to the inferior after
10521 finishing a step-over, unsuspend and re-resume all lwps. If we
10522 see a single-step event but the thread should be continuing, don't
10523 pass the trap to gdb.
10524 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10525 internal_error instead of gdb_assert.
10526 (enqueue_pending_signal): New function.
10527 (check_ptrace_stopped_lwp_gone): Add debug output.
10528 (start_step_over): Use internal_error instead of gdb_assert.
10529 (complete_ongoing_step_over): New function.
10530 (linux_resume_one_thread): Don't resume a suspended thread.
10531 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10532 it stepping.
10533
00db26fa
PA
105342015-08-06 Pedro Alves <palves@redhat.com>
10535
10536 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10537 (linux_thread_alive): Use lwp_is_marked_dead.
10538 (extended_event_reported): Delete.
10539 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10540 instead of extended_event_reported.
10541 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10542 as well.
10543 (lwp_is_marked_dead): New function.
10544 (lwp_running): Use lwp_is_marked_dead.
10545 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10546 comment.
10547
ad071a30
PA
105482015-08-06 Pedro Alves <palves@redhat.com>
10549
10550 * linux-low.c (linux_wait_1): Move fork event output out of the
10551 !report_to_gdb check. Pass event_child->waitstatus to
10552 target_waitstatus_to_string instead of ourstatus.
10553
524b57e6
YQ
105542015-08-04 Yao Qi <yao.qi@linaro.org>
10555
10556 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10557 if current_thread is 32 bit.
10558
6085d6f6
YQ
105592015-08-04 Yao Qi <yao.qi@linaro.org>
10560
10561 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10562 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10563 * server.c (extended_protocol): Remove "static".
10564 * server.h (extended_protocol): Declare it.
10565
8a7e4587
YQ
105662015-08-04 Yao Qi <yao.qi@linaro.org>
10567
10568 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10569 both aarch64 and aarch32.
10570 (aarch64_set_pc): Likewise.
10571
3b53ae99
YQ
105722015-08-04 Yao Qi <yao.qi@linaro.org>
10573
10574 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10575 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10576 arm-with-neon.xml to srv_xmlfiles.
10577 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10578 (is_64bit_tdesc): New function.
10579 (aarch64_linux_read_description): New function.
10580 (aarch64_arch_setup): Call aarch64_linux_read_description.
10581 (regs_info): Rename to regs_info_aarch64.
10582 (aarch64_regs_info): Return right regs_info.
10583 (initialize_low_arch): Call initialize_low_arch_aarch32.
10584
bd9e6534
YQ
105852015-08-04 Yao Qi <yao.qi@linaro.org>
10586
10587 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10588 * linux-aarch32-low.c: New file.
10589 * linux-aarch32-low.h: New file.
10590 * linux-arm-low.c (arm_fill_gregset): Move it to
10591 linux-aarch32-low.c.
10592 (arm_store_gregset): Likewise.
10593 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10594 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10595 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10596 (regs_info): Rename to regs_info_arm.
10597 (arm_regs_info): Return regs_info_aarch32 if
10598 have_ptrace_getregset is 1 and target description is
10599 arm_with_neon or arm_with_vfpv3.
10600 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10601 Call initialize_low_arch_aarch32 instead.
10602
ded48a5e
YQ
106032015-08-04 Yao Qi <yao.qi@linaro.org>
10604
10605 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10606 * linux-low.c: ... here.
10607 * linux-low.h (have_ptrace_getregset): Declare it.
10608
96e9210f
PA
106092015-08-04 Pedro Alves <palves@redhat.com>
10610
10611 * thread-db.c (struct thread_db): Use new typedefs.
10612 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10613 CHK calls.
10614 (disable_thread_event_reporting): Cast result of dlsym to
10615 destination function pointer type.
10616 (thread_db_mourn): Use td_ta_delete_ftype.
10617
af60a1ef
SL
106182015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10619
10620 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10621 arch variant.
10622 (CDX_BREAKPOINT): Define for R2.
10623 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10624 (the_low_target): Add comments.
10625
e8b41681
YQ
106262015-07-30 Yao Qi <yao.qi@linaro.org>
10627
10628 * linux-arm-low.c (arm_hwcap): Remove it.
10629 (arm_read_description): New local variable arm_hwcap. Don't
10630 set arm_hwcap to zero.
10631
89abb039
YQ
106322015-07-30 Yao Qi <yao.qi@linaro.org>
10633
10634 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10635 Use regcache->tdesc instead.
10636 (arm_store_wmmxregset): Likewise.
10637 (arm_fill_vfpregset): Likewise.
10638 (arm_store_vfpregset): Likewise.
10639
deca266c
YQ
106402015-07-30 Yao Qi <yao.qi@linaro.org>
10641
10642 * linux-arm-low.c: Include arch/arm.h.
10643 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10644 (arm_store_gregset): Likewise.
10645
aa58a496
SM
106462015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10647
10648 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10649 ptrace's 4th parameter.
10650
50904b25
YQ
106512015-07-27 Yao Qi <yao.qi@linaro.org>
10652
10653 * configure.srv (case aarch64*-*-linux*): Don't set
10654 srv_linux_usrregs.
10655
5826e159
PA
106562015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10657
10658 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10659 sys/ptrace.h.
10660 * linux-arm-low.c: Likewise.
10661 * linux-cris-low.c: Likewise.
10662 * linux-crisv32-low.c: Likewise.
10663 * linux-low.c: Likewise.
10664 * linux-m68k-low.c: Likewise.
10665 * linux-mips-low.c: Likewise.
10666 * linux-nios2-low.c: Likewise.
10667 * linux-s390-low.c: Likewise.
10668 * linux-sparc-low.c: Likewise.
10669 * linux-tic6x-low.c: Likewise.
10670 * linux-tile-low.c: Likewise.
10671 * linux-x86-low.c: Likewise.
10672
54019719
PA
106732015-07-24 Pedro Alves <palves@redhat.com>
10674
10675 * config.in: Regenerate.
10676 * configure: Regenerate.
10677
eb7aa561
PA
106782015-07-24 Pedro Alves <palves@redhat.com>
10679
10680 * acinclude.m4: Include ../ptrace.m4.
10681 * configure.ac: Call GDB_AC_PTRACE.
10682 * config.in, configure: Regenerate.
10683
55d7b841
YQ
106842015-07-24 Yao Qi <yao.qi@linaro.org>
10685
10686 * linux-low.c (linux_create_inferior): Remove setting to
10687 proc->priv->new_inferior.
10688 (linux_attach): Likewise.
10689 (linux_low_filter_event): Likewise.
10690 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10691
c06cbd92
YQ
106922015-07-24 Yao Qi <yao.qi@linaro.org>
10693
10694 * linux-low.c (linux_arch_setup): New function.
10695 (linux_low_filter_event): If proc->tdesc is NULL and
10696 proc->attached is true, call the_low_target.arch_setup.
10697 Otherwise, keep status pending, and return.
10698 (linux_resume_one_lwp_throw): Don't call get_pc if
10699 thread->while_stepping isn't NULL. Don't call
10700 get_thread_regcache if proc->tdesc is NULL.
10701 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10702 (linux_target_ops): Install arch_setup.
10703 * server.c (start_inferior): Call the_target->arch_setup.
10704 * target.h (struct target_ops) <arch_setup>: New field.
10705 (target_arch_setup): New marco.
10706 * lynx-low.c (lynx_target_ops): Update.
10707 * nto-low.c (nto_target_ops): Update.
10708 * spu-low.c (spu_target_ops): Update.
10709 * win32-low.c (win32_target_ops): Update.
10710
5ae3ebba
YQ
107112015-07-24 Yao Qi <yao.qi@linaro.org>
10712
10713 * linux-low.c (linux_add_process): Don't set
10714 proc->priv->new_inferior.
10715 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10716 (linux_attach): Likewise.
10717
eb97750b
YQ
107182015-07-24 Yao Qi <yao.qi@linaro.org>
10719
10720 * server.c (start_inferior): Code refactor.
10721
51aee833
YQ
107222015-07-24 Yao Qi <yao.qi@linaro.org>
10723
10724 * server.c (process_serial_event): Set general_thread.
10725
af1b22f3
YQ
107262015-07-21 Yao Qi <yao.qi@linaro.org>
10727
10728 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10729 aarch64_linux_get_debug_reg_capacity.
10730
554717a3
YQ
107312015-07-17 Yao Qi <yao.qi@linaro.org>
10732
10733 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10734 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10735 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10736 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10737 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10738 (AARCH64_HWP_ALIGNMENT): Likewise.
10739 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10740 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10741 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10742 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10743 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10744 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10745 (struct aarch64_debug_reg_state): Likewise.
10746 (struct arch_lwp_info): Likewise.
10747 (aarch64_align_watchpoint): Likewise.
10748 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10749 (aarch64_watchpoint_length): Likewise.
10750 (aarch64_point_encode_ctrl_reg): Likewise
10751 (aarch64_point_is_aligned): Likewise.
10752 (aarch64_align_watchpoint): Likewise.
10753 (aarch64_linux_set_debug_regs):
10754 (aarch64_dr_state_insert_one_point): Likewise.
10755 (aarch64_dr_state_remove_one_point): Likewise.
10756 (aarch64_handle_breakpoint): Likewise.
10757 (aarch64_handle_aligned_watchpoint): Likewise.
10758 (aarch64_handle_unaligned_watchpoint): Likewise.
10759 (aarch64_handle_watchpoint): Likewise.
10760
c67ca4de
YQ
107612015-07-17 Yao Qi <yao.qi@linaro.org>
10762
10763 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10764 and don't aarch64_get_debug_reg_state. All callers update.
10765 (aarch64_handle_aligned_watchpoint): Likewise.
10766 (aarch64_handle_unaligned_watchpoint): Likewise.
10767 (aarch64_handle_watchpoint): Likewise.
10768 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10769 (aarch64_remove_point): Likewise.
10770
25abf979
YQ
107712015-07-17 Yao Qi <yao.qi@linaro.org>
10772
10773 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10774 debug_printf.
10775 (aarch64_handle_unaligned_watchpoint): Likewise.
10776
db1ff28b
JK
107772015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10778
10779 Revert the previous 3 commits:
10780 Move gdb_regex* to common/
10781 Move linux_find_memory_regions_full & co.
10782 gdbserver build-id attribute generator
10783
700ca40f
JK
107842015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10785 Jan Kratochvil <jan.kratochvil@redhat.com>
10786
10787 gdbserver build-id attribute generator.
10788 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10789 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10790 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10791 (find_phdr): New.
10792 (get_dynamic): Use find_pdhr to traverse program headers.
10793 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10794 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10795 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10796 (get_hex_build_id): New.
10797 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10798 to reply XML document.
10799
9904185c
JK
108002015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10801 Jan Kratochvil <jan.kratochvil@redhat.com>
10802
10803 * target.c: Include target/target-utils.h and fcntl.h.
10804 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10805 (target_fileio_read_stralloc): New functions.
10806
6e5b4429
JK
108072015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10808
10809 * Makefile.in (OBS): Add gdb_regex.o.
10810 (gdb_regex.o): New.
10811 * config.in: Rebuilt.
10812 * configure: Rebuilt.
10813
ddc98fbf
JK
108142015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10815 Jan Kratochvil <jan.kratochvil@redhat.com>
10816
10817 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10818 * Makefile.in (OBS): Add target-utils.o.
10819 (linux-maps.o, target-utils.o): New.
10820 * configure.srv (srv_linux_obj): Add linux-maps.o.
10821
e57bb7a0
PL
108222015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10823
10824 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10825 function, return 1.
10826 (the_low_target): Install it.
10827
586b02a9
PA
108282015-07-14 Pedro Alves <palves@redhat.com>
10829
10830 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10831 Instead, ignore ECHILD, and throw an error for other errnos.
10832
58c1b36c
PA
108332015-07-10 Pedro Alves <palves@redhat.com>
10834
10835 * event-loop.c (struct callback_event) <data>: Change type to
10836 gdb_client_data instance instead of gdb_client_data pointer.
10837 (append_callback_event): Adjust.
10838
421530db
PL
108392015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10840
10841 * linux-aarch64-low.c: Add comments for each linux_target_ops
10842 method. Remove comments already covered in target_ops and
10843 linux_target_ops definitions.
10844 (the_low_target): Add comments for each unimplemented method.
10845
c2d65f38
YQ
108462015-07-09 Yao Qi <yao.qi@linaro.org>
10847
10848 * linux-aarch64-low.c (aarch64_regmap): Remove.
10849 (aarch64_usrregs_info): Remove.
10850 (regs_info): Set field usrregs to NULL.
10851
b20a6524
MM
108522015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10853
10854 * linux-low.c: Include "rsp-low.h"
10855 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10856 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10857 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10858 (handle_btrace_enable_pt): New.
10859 (handle_btrace_general_set): Support "pt".
10860 (handle_btrace_conf_general_set): Support "pt:size".
10861
96c97461
PL
108622015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10863
10864 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10865 Z_PACKET_SW_BP.
10866
37d66942
PL
108672015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10868
10869 * linux-aarch64-low.c: Remove comment about endianness.
10870 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10871 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10872 memcmp.
10873
dc06243f
GB
108742015-06-24 Gary Benson <gbenson@redhat.com>
10875
10876 * linux-i386-ipa.c (stdint.h): Do not include.
10877 * lynx-i386-low.c (stdint.h): Likewise.
10878 * lynx-ppc-low.c (stdint.h): Likewise.
10879 * mem-break.c (stdint.h): Likewise.
10880 * thread-db.c (stdint.h): Likewise.
10881 * tracepoint.c (stdint.h): Likewise.
10882 * win32-low.c (stdint.h): Likewise.
10883
124e13d9
SM
108842015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10885
10886 * server.c (write_qxfer_response): Update call to
10887 remote_escape_output.
10888
909c2cda
JK
108892015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10890 Jan Kratochvil <jan.kratochvil@redhat.com>
10891
10892 Merge multiple hex conversions.
10893 * gdbreplay.c (tohex): Rename to 'fromhex'.
10894 (logchar): Use fromhex.
10895
24c05f46
JK
108962015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10897
10898 * server.c (handle_qxfer_libraries): Set `version' attribute for
10899 <library-list>.
10900
14d2069a
GB
109012015-06-10 Gary Benson <gbenson@redhat.com>
10902
10903 * target.h (struct target_ops) <multifs_open>: New field.
10904 <multifs_unlink>: Likewise.
10905 <multifs_readlink>: Likewise.
10906 * linux-low.c (nat/linux-namespaces.h): New include.
10907 (linux_target_ops): Initialize the_target->multifs_open,
10908 the_target->multifs_unlink and the_target->multifs_readlink.
10909 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10910 * hostio.c (hostio_fs_pid): New static variable.
10911 (hostio_handle_new_gdb_connection): New function.
10912 (handle_setfs): Likewise.
10913 (handle_open): Use the_target->multifs_open as appropriate.
10914 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10915 (handle_readlink): Use the_target->multifs_readlink as
10916 appropriate.
10917 (handle_vFile): Handle vFile:setfs packets.
10918 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10919 after target_handle_new_gdb_connection.
10920
4b8b5e72
GB
109212015-06-10 Gary Benson <gbenson@redhat.com>
10922
10923 * configure.ac (AC_CHECK_FUNCS): Add setns.
10924 * config.in: Regenerate.
10925 * configure: Likewise.
10926 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10927 (linux-namespaces.o): New rule.
10928 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10929
3ac2e371
GB
109302015-06-09 Gary Benson <gbenson@redhat.com>
10931
10932 * hostio.c (handle_open): Process mode argument with
10933 fileio_to_host_mode.
10934
ca9b78ce
YQ
109352015-06-01 Yao Qi <yao.qi@linaro.org>
10936
10937 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10938 * linux-x86-low.c: Likewise.
10939
bfacd19d
DB
109402015-05-28 Don Breazeal <donb@codesourcery.com>
10941
10942 * linux-low.c (handle_extended_wait): Initialize
10943 thread_info.last_resume_kind for new fork children.
10944
452003ef
PA
109452015-05-15 Pedro Alves <palves@redhat.com>
10946
10947 * target.h (target_handle_new_gdb_connection): Rewrite using if
10948 wrapped in do/while.
10949
1041a03c
JB
109502015-05-14 Joel Brobecker <brobecker@adacore.com>
10951
10952 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10953 * configure, config.in: Regenerate.
10954 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10955 Declare typedef.
10956
c269dbdb
DB
109572015-05-12 Don Breazeal <donb@codesourcery.com>
10958
10959 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10960 PTRACE_EVENT_VFORK_DONE.
10961 (linux_low_ptrace_options, extended_event_reported): Add vfork
10962 events.
10963 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10964 and "vforkdone" for RSP 'T' Stop Reply Packet.
10965 * server.h (report_vfork_events): Declare
10966 global variable.
10967
3a8a0396
DB
109682015-05-12 Don Breazeal <donb@codesourcery.com>
10969
10970 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10971 (the_low_target) <new_fork>: Initialize new member.
10972 * linux-arm-low.c (arm_new_fork): New function.
10973 (the_low_target) <new_fork>: Initialize new member.
10974 * linux-low.c (handle_extended_wait): Call new target function
10975 new_fork.
10976 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10977 * linux-mips-low.c (mips_add_watchpoint): New function
10978 extracted from mips_insert_point.
10979 (the_low_target) <new_fork>: Initialize new member.
10980 (mips_linux_new_fork): New function.
10981 (mips_insert_point): Call mips_add_watchpoint.
10982 * linux-x86-low.c (x86_linux_new_fork): New function.
10983 (the_low_target) <new_fork>: Initialize new member.
10984
de0d863e
DB
109852015-05-12 Don Breazeal <donb@codesourcery.com>
10986
10987 * linux-low.c (handle_extended_wait): Implement return value,
10988 rename argument 'event_child' to 'event_lwp', handle
10989 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10990 (linux_low_ptrace_options): New function.
10991 (linux_low_filter_event): Call linux_low_ptrace_options,
10992 use different argument fo linux_enable_event_reporting,
10993 use return value from handle_extended_wait.
10994 (extended_event_reported): New function.
10995 (linux_wait_1): Call extended_event_reported and set
10996 status to report fork events.
10997 (linux_write_memory): Add pid to debug message.
10998 (reset_lwp_ptrace_options_callback): New function.
10999 (linux_handle_new_gdb_connection): New function.
11000 (linux_target_ops): Initialize new structure member.
11001 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11002 * lynx-low.c: Initialize new structure member.
11003 * remote-utils.c (prepare_resume_reply): Implement stop reason
11004 "fork" for "T" stop message.
11005 * server.c (handle_query): Call handle_new_gdb_connection.
11006 * server.h (report_fork_events): Declare global flag.
11007 * target.h (struct target_ops) <handle_new_gdb_connection>:
11008 New member.
11009 (target_handle_new_gdb_connection): New macro.
11010 * win32-low.c: Initialize new structure member.
11011
ddcbc397
DB
110122015-05-12 Don Breazeal <donb@codesourcery.com>
11013
11014 * mem-break.c (APPEND_TO_LIST): Define macro.
11015 (clone_agent_expr): New function.
11016 (clone_one_breakpoint): New function.
11017 (clone_all_breakpoints): New function.
11018 * mem-break.h: Declare new functions.
11019
89245bc0
DB
110202015-05-12 Don Breazeal <donb@codesourcery.com>
11021
11022 * linux-low.c (linux_supports_fork_events): New function.
11023 (linux_supports_vfork_events): New function.
11024 (linux_target_ops): Initialize new structure members.
11025 (initialize_low): Call linux_check_ptrace_features.
11026 * lynx-low.c (lynx_target_ops): Initialize new structure
11027 members.
11028 * server.c (report_fork_events, report_vfork_events):
11029 New global flags.
11030 (handle_query): Add new features to qSupported packet and
11031 response.
11032 (captured_main): Initialize new global variables.
11033 * target.h (struct target_ops) <supports_fork_events>:
11034 New member.
11035 <supports_vfork_events>: New member.
11036 (target_supports_fork_events): New macro.
11037 (target_supports_vfork_events): New macro.
11038 * win32-low.c (win32_target_ops): Initialize new structure
11039 members.
11040
835205d0
GB
110412015-05-12 Gary Benson <gbenson@redhat.com>
11042
11043 * server.c (handle_qxfer_exec_file): Use current process
11044 if annex is empty.
11045
21e94bd9
SL
110462015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11047
11048 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11049 Remove HAVE_PTRACE_GETREGS conditionals.
11050 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11051 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11052
45614f15
YQ
110532015-05-08 Yao Qi <yao.qi@linaro.org>
11054
11055 * linux-low.c (linux_supports_conditional_breakpoints): New
11056 function.
11057 (linux_target_ops): Install new target method.
11058 * lynx-low.c (lynx_target_ops): Install NULL hook for
11059 supports_conditional_breakpoints.
11060 * nto-low.c (nto_target_ops): Likewise.
11061 * spu-low.c (spu_target_ops): Likewise.
11062 * win32-low.c (win32_target_ops): Likewise.
11063 * server.c (handle_query): Check
11064 target_supports_conditional_breakpoints.
11065 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11066 New field.
11067 (target_supports_conditional_breakpoints): New macro.
11068
80ad801e
PA
110692015-05-06 Pedro Alves <palves@redhat.com>
11070
11071 PR server/18081
11072 * server.c (start_inferior): If the process exits, mourn it.
11073
819843c7
GB
110742015-04-21 Gary Benson <gbenson@redhat.com>
11075
11076 * hostio.c (fileio_open_flags_to_host): Factored out to
11077 fileio_to_host_openflags in common/fileio.c. Single use
11078 updated.
11079
a2d5a9d7
MF
110802015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11081
11082 * linux-xtensa-low.c (xtensa_fill_gregset)
11083 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11084 XCHAL_HAVE_LOOP.
11085
deb44829
MF
110862015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11087
11088 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11089 (regs_info): Replace usrregs pointer with NULL.
11090
e57f1de3
GB
110912015-04-17 Gary Benson <gbenson@redhat.com>
11092
11093 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11094 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11095 * server.c (handle_qxfer_exec_file): New function.
11096 (qxfer_packets): Add exec-file entry.
11097 (handle_query): Report qXfer:exec-file:read as supported packet.
11098
62828379
RN
110992015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11100
11101 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11102
b88bb450
GB
111032015-04-09 Gary Benson <gbenson@redhat.com>
11104
11105 * hostio-errno.c (errno_to_fileio_error): Remove function.
11106 Update caller to use remote_fileio_to_fio_error.
11107
c8f4bfdd
YQ
111082015-04-09 Yao Qi <yao.qi@linaro.org>
11109
11110 * linux-low.c (linux_insert_point): Call
11111 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11112 (linux_remove_point): Call remove_memory_breakpoint if type is
11113 raw_bkpt_type_sw.
11114 * linux-x86-low.c (x86_insert_point): Don't call
11115 insert_memory_breakpoint.
11116 (x86_remove_point): Don't call remove_memory_breakpoint.
11117
41f98f02
PA
111182015-04-01 Pedro Alves <palves@redhat.com>
11119 Cleber Rosa <crosa@redhat.com>
11120
11121 * server.c (gdbserver_usage): Reorganize and extend the usage
11122 message.
11123
2bf6fb9d
PA
111242015-03-24 Pedro Alves <palves@redhat.com>
11125
11126 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11127 output. Also dump TRAP_TRACE.
11128 (linux_low_filter_event): In debug output, distinguish a
11129 resume_stop SIGSTOP from a delayed SIGSTOP.
11130
369f6daa
GB
111312015-03-24 Gary Benson <gbenson@redhat.com>
11132
11133 * linux-x86-low.c (x86_linux_new_thread): Moved to
11134 nat/x86-linux.c.
11135 (x86_linux_prepare_to_resume): Likewise.
11136
8e5d4070
GB
111372015-03-24 Gary Benson <gbenson@redhat.com>
11138
11139 * Makefile.in (x86-linux-dregs.o): New rule.
11140 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11141 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11142 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11143 (x86_linux_dr_get): Likewise.
11144 (x86_linux_dr_set): Likewise.
11145 (update_debug_registers_callback): Likewise.
11146 (x86_linux_dr_set_addr): Likewise.
11147 (x86_linux_dr_get_addr): Likewise.
11148 (x86_linux_dr_set_control): Likewise.
11149 (x86_linux_dr_get_control): Likewise.
11150 (x86_linux_dr_get_status): Likewise.
11151 (x86_linux_update_debug_registers): Likewise.
11152
2b95d440
GB
111532015-03-24 Gary Benson <gbenson@redhat.com>
11154
11155 * linux-x86-low.c (x86_linux_update_debug_registers):
11156 New function, factored out from...
11157 (x86_linux_prepare_to_resume): ...this.
11158
14b0bc68
GB
111592015-03-24 Gary Benson <gbenson@redhat.com>
11160
11161 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11162 (x86_linux_dr_set): Likewise.
11163 (update_debug_registers_callback): Likewise.
11164 (x86_linux_dr_set_addr): Likewise.
11165 (x86_linux_dr_get_addr): Likewise.
11166 (x86_linux_dr_set_control): Likewise.
11167 (x86_linux_dr_get_control): Likewise.
11168 (x86_linux_dr_get_status): Likewise.
11169 (x86_linux_prepare_to_resume): Likewise.
11170
5dfe6ca8
GB
111712015-03-24 Gary Benson <gbenson@redhat.com>
11172
11173 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11174 Use perror_with_name. Pass string through gettext.
11175 (x86_linux_dr_set): Likewise.
11176
d33472ad
GB
111772015-03-24 Gary Benson <gbenson@redhat.com>
11178
11179 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11180 (x86_linux_dr_set_addr): ...this.
11181 (x86_dr_low_get_addr): Rename to...
11182 (x86_linux_dr_get_addr): ...this.
11183 (x86_dr_low_set_control): Rename to...
11184 (x86_linux_dr_set_control): ...this.
11185 (x86_dr_low_get_control): Rename to...
11186 (x86_linux_dr_get_control): ...this.
11187 (x86_dr_low_get_status): Rename to...
11188 (x86_linux_dr_get_status): ...this.
11189 (x86_dr_low): Update with new function names.
11190
4b134ca1
GB
111912015-03-24 Gary Benson <gbenson@redhat.com>
11192
11193 * Makefile.in (x86-linux.o): New rule.
11194 * configure.srv: Add x86-linux.o to relevant targets.
11195 * linux-low.c (lwp_set_arch_private_info): New function.
11196 (lwp_arch_private_info): Likewise.
11197 * linux-x86-low.c: Include nat/x86-linux.h.
11198 (arch_lwp_info): Removed structure.
11199 (update_debug_registers_callback):
11200 Use lwp_set_debug_registers_changed.
11201 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11202 and lwp_set_debug_registers_changed.
11203 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11204
34c703da
GB
112052015-03-24 Gary Benson <gbenson@redhat.com>
11206
11207 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11208 * linux-arm-low.c (arm_new_thread): Likewise.
11209 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11210 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11211 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11212 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11213
cff068da
GB
112142015-03-24 Gary Benson <gbenson@redhat.com>
11215
11216 * linux-low.c (ptid_of_lwp): New function.
11217 (lwp_is_stopped): Likewise.
11218 (lwp_stop_reason): Likewise.
11219 * linux-x86-low.c (update_debug_registers_callback):
11220 Use lwp_is_stopped.
11221 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11222 lwp_stop_reason.
11223
b2f7c7e8
GB
112242015-03-24 Gary Benson <gbenson@redhat.com>
11225
11226 * linux-low.h (linux_stop_lwp): Remove declaration.
11227
6d4ee8c6
GB
112282015-03-24 Gary Benson <gbenson@redhat.com>
11229
11230 * linux-low.h: Include nat/linux-nat.h.
11231 * linux-low.c (iterate_over_lwps_args): New structure.
11232 (iterate_over_lwps_filter): New function.
11233 (iterate_over_lwps): Likewise.
11234 * linux-x86-low.c (update_debug_registers_callback):
11235 Update signature to what iterate_over_lwps expects.
11236 Remove PID check that iterate_over_lwps now performs.
11237 (x86_dr_low_set_addr): Use iterate_over_lwps.
11238 (x86_dr_low_set_control): Likewise.
11239
70a0bb6b
GB
112402015-03-24 Gary Benson <gbenson@redhat.com>
11241
11242 * linux-x86-low.c (x86_debug_reg_state): New function.
11243 (x86_linux_prepare_to_resume): Use the above.
11244
7b669087
GB
112452015-03-24 Gary Benson <gbenson@redhat.com>
11246
11247 * linux-low.c (current_lwp_ptid): New function.
11248 * linux-x86-low.c: Include nat/linux-nat.h.
11249 (x86_dr_low_get_addr): Use current_lwp_ptid.
11250 (x86_dr_low_get_control): Likewise.
11251 (x86_dr_low_get_status): Likewise.
11252
eef49a3d
PA
112532015-03-20 Pedro Alves <palves@redhat.com>
11254
11255 * tracepoint.c (cmd_qtstatus): Make "str" const.
11256
b2333d22
PA
112572015-03-20 Pedro Alves <palves@redhat.com>
11258
11259 * server.c (handle_general_set): Make "req_str" const.
11260
23f238d3
PA
112612015-03-19 Pedro Alves <palves@redhat.com>
11262
11263 * linux-low.c (linux_resume_one_lwp): Rename to ...
11264 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11265 instead call perror_with_name.
11266 (check_ptrace_stopped_lwp_gone): New function.
11267 (linux_resume_one_lwp): Reimplement as wrapper around
11268 linux_resume_one_lwp_throw that swallows errors if the LWP is
11269 gone.
11270
91baf43f
PA
112712015-03-19 Pedro Alves <palves@redhat.com>
11272
11273 * linux-low.c (count_events_callback, select_event_lwp_callback):
11274 No longer check whether the thread has resume_stop as last resume
11275 kind.
11276
8bf3b159
PA
112772015-03-19 Pedro Alves <palves@redhat.com>
11278
11279 * linux-low.c (count_events_callback, select_event_lwp_callback):
11280 Use the lwp's status_pending_p field, not the thread's.
11281
b90fc188
PA
112822015-03-19 Pedro Alves <palves@redhat.com>
11283
11284 * linux-low.c (select_event_lwp_callback): Update comments to
11285 no longer mention SIGTRAP.
11286
464b0089
GB
112872015-03-18 Gary Benson <gbenson@redhat.com>
11288
11289 * server.c (handle_query): Do not report vFile:fstat as supported.
11290
aa9e327f
GB
112912015-03-11 Gary Benson <gbenson@redhat.com>
11292
11293 * hostio.c (sys/types.h): New include.
11294 (sys/stat.h): Likewise.
11295 (common-remote-fileio.h): Likewise.
11296 (handle_fstat): New function.
11297 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11298
791c0056
GB
112992015-03-11 Gary Benson <gbenson@redhat.com>
11300
11301 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11302 struct stat.st_blocks and struct stat.st_blksize.
11303 * configure: Regenerate.
11304 * config.in: Likewise.
11305 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11306 (OBS): Add common-remote-fileio.o.
11307 (common-remote-fileio.o): New rule.
11308
9a9df970
PA
113092015-03-09 Pedro Alves <palves@redhat.com>
11310
11311 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11312 'struct sockaddr' pointer in 'accept' call.
11313
9eb1356e
PA
113142015-03-09 Pedro Alves <palves@redhat.com>
11315
11316 Revert:
11317 2015-03-07 Pedro Alves <palves@redhat.com>
11318 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11319 or <winsock2.h> here. Instead include "gdb_socket.h".
11320 (remote_open): Use union gdb_sockaddr_u.
11321 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11322 or <winsock2.h> here. Instead include "gdb_socket.h".
11323 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11324 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11325 or <sys/un.h>.
11326 (init_named_socket, gdb_agent_helper_thread): Use union
11327 gdb_sockaddr_u.
11328
aac331e4
PA
113292015-03-07 Pedro Alves <palves@redhat.com>
11330
11331 * configure.ac (build_warnings): Move
11332 -Wdeclaration-after-statement to the C-specific set.
11333 * configure: Regenerate.
11334
366c75fc
PA
113352015-03-07 Pedro Alves <palves@redhat.com>
11336
11337 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11338 or <winsock2.h> here. Instead include "gdb_socket.h".
11339 (remote_open): Use union gdb_sockaddr_u.
11340 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11341 or <winsock2.h> here. Instead include "gdb_socket.h".
11342 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11343 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11344 or <sys/un.h>.
11345 (init_named_socket, gdb_agent_helper_thread): Use union
11346 gdb_sockaddr_u.
11347
492d29ea
PA
113482015-03-07 Pedro Alves <palves@redhat.com>
11349
11350 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11351 instead.
11352
60a191ed
YQ
113532015-03-06 Yao Qi <yao.qi@linaro.org>
11354
11355 * linux-aarch64-low.c (aarch64_insert_point): Use
11356 show_debug_regs as a boolean.
11357 (aarch64_remove_point): Likewise.
11358
f5771b1d
PA
113592015-03-05 Pedro Alves <palves@redhat.com>
11360
11361 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11362 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11363 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11364 * nto-low.c (nto_target_ops): Likewise.
11365 * spu-low.c (spu_target_ops): Likewise.
11366 * win32-low.c (win32_target_ops): Likewise.
11367
3e572f71
PA
113682015-03-04 Pedro Alves <palves@redhat.com>
11369
72f4393d 11370 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11371 Decide whether a breakpoint triggered based on the SIGTRAP's
11372 siginfo.si_code.
72f4393d
L
11373 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11374 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11375 (linux_low_filter_event): Check for breakpoints before checking
11376 watchpoints.
11377 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11378 siginfo.si_code.
72f4393d
L
11379 (linux_stopped_by_sw_breakpoint)
11380 (linux_supports_stopped_by_sw_breakpoint)
11381 (linux_stopped_by_hw_breakpoint)
11382 (linux_supports_stopped_by_hw_breakpoint): New functions.
11383 (linux_target_ops): Install new target methods.
3e572f71 11384
1ec68e26
PA
113852015-03-04 Pedro Alves <palves@redhat.com>
11386
11387 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11388 * server.c (swbreak_feature, hwbreak_feature): New globals.
11389 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11390 (captured_main): Clear swbreak_feature and hwbreak_feature.
11391 * server.h (swbreak_feature, hwbreak_feature): Declare.
11392 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11393 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11394 supports_stopped_by_hw_breakpoint>: New fields.
11395 (target_supports_stopped_by_sw_breakpoint)
11396 (target_stopped_by_sw_breakpoint)
11397 (target_supports_stopped_by_hw_breakpoint)
11398 (target_stopped_by_hw_breakpoint): Declare.
11399
15c66dd6
PA
114002015-03-04 Pedro Alves <palves@redhat.com>
11401
11402 enum lwp_stop_reason -> enum target_stop_reason
11403 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11404 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11405 (linux_wait_1, stuck_in_jump_pad_callback)
11406 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11407 (linux_stopped_by_watchpoint):
11408 * linux-low.h (enum lwp_stop_reason): Delete.
11409 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11410 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11411
98fc70d6
YQ
114122015-03-04 Yao Qi <yao.qi@linaro.org>
11413
11414 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11415
dd2ac174
GB
114162015-03-03 Gary Benson <gbenson@redhat.com>
11417
11418 * hostio.c (handle_vFile): Fix prefix lengths.
11419
d68e53f4
MM
114202015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11421
11422 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11423 ptr_bits.
11424
bf2d68ab
AA
114252015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11426
11427 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11428 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11429 (clean): Add "rm -f" for above C files.
11430 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11431 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11432 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11433 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11434 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11435 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11436 (init_registers_s390x_vx_linux64)
11437 (init_registers_s390x_tevx_linux64)
11438 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11439 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11440 declarations.
11441 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11442 (s390_store_vxrs_high): New functions.
11443 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11444 NT_S390_VXRS_HIGH.
11445 (s390_arch_setup): Add logic for selecting one of the new target
11446 descriptions. Activate the new vector regsets if applicable.
11447 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11448 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11449 and init_registers_s390x_tevx_linux64.
11450
c966a859
PA
114512015-03-01 Pedro Alves <palves@redhat.com>
11452
11453 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11454 parameter.
11455
4180215b
PA
114562015-02-27 Pedro Alves <palves@redhat.com>
11457
11458 * linux-x86-low.c (u_debugreg_offset): New function.
11459 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11460
749bab01
PA
114612015-02-27 Pedro Alves <palves@redhat.com>
11462
11463 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11464 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11465 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11466 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11467 (ps_lsetfpregs, ps_getpid)
11468 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11469 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11470 (ps_lsetxregs, ps_plog): Declare.
11471
3c14e5a3
PA
114722015-02-27 Pedro Alves <palves@redhat.com>
11473
11474 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11475 IP_AGENT_EXPORT_FUNC.
11476 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11477 IP_AGENT_EXPORT_FUNC.
11478 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11479 (IP_AGENT_EXPORT): Delete.
11480 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11481 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11482 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11483 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11484 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11485 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11486 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11487 (traceframe_read_count, traceframe_write_count)
11488 (traceframes_created, trace_state_variables, get_raw_reg)
11489 (get_trace_state_variable_value, set_trace_state_variable_value)
11490 (ust_loaded, helper_thread_id, cmd_buf): Use
11491 IPA_SYM_EXPORTED_NAME.
11492 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11493 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11494 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11495 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11496 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11497 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11498 EXTERN_C_PUSH/EXTERN_C_POP.
11499 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11500 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11501 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11502 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11503 (traceframe_write_count, traceframe_read_count)
11504 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11505 (about_to_request_buffer_space, get_trace_state_variable_value)
11506 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11507 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11508 EXTERN_C_PUSH/EXTERN_C_POP.
11509 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11510 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11511 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11512 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11513 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11514 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11515 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11516 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11517 Define.
11518 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11519 (IP_AGENT_EXPORT_VAR_DECL): Define.
11520 (tracing): Declare.
11521 (gdb_agent_get_raw_reg): Declare.
11522
fe978cb0
PA
115232015-02-27 Tom Tromey <tromey@redhat.com>
11524 Pedro Alves <palves@redhat.com>
11525
11526 Rename symbols whose names are reserved C++ keywords throughout.
11527
3bc3d82a
PA
115282015-02-27 Pedro Alves <palves@redhat.com>
11529
11530 * Makefile.in (COMPILER): New, get it from autoconf.
11531 (CXX): Get from autoconf instead.
11532 (COMPILE.pre): Use COMPILER.
11533 (CC-LD): Rename to ...
11534 (CC_LD): ... this. Use COMPILER.
11535 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11536 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11537 * acinclude.m4: Include build-with-cxx.m4.
11538 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11539 Disable -Werror by default if building in C++ mode.
11540 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11541 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11542 the C++ compiler. Save/restore CXXFLAGS too.
11543 * configure: Regenerate.
11544
07697489
PA
115452015-02-27 Pedro Alves <palves@redhat.com>
11546
11547 * acinclude.m4: Include libiberty.m4.
11548 * configure.ac: Call libiberty_INIT.
11549 * config.in, configure: Regenerate.
11550
9beb7c4e
PA
115512015-02-26 Pedro Alves <palves@redhat.com>
11552
11553 * linux-low.c (linux_wait_1): When incrementing the PC past a
11554 program breakpoint always use the_low_target.breakpoint_len as
11555 increment, rather than the maximum between that and
11556 the_low_target.decr_pc_after_break.
11557
8090aef2
PA
115582015-02-23 Pedro Alves <palves@redhat.com>
11559
11560 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11561 thread was doing a step-over; always adjust the PC if
11562 we stepped over a permanent breakpoint.
11563 (linux_wait_1): If we stepped over breakpoint that was on top of a
11564 permanent breakpoint, manually advance the PC past it.
11565
bc9540e8
PA
115662015-02-23 Pedro Alves <palves@redhat.com>
11567
11568 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11569 modes.
11570 (x86_fill_gregset, x86_store_gregset): Use it when handling
11571 $orig_eax.
11572
2db9a427
PA
115732015-02-20 Pedro Alves <palves@redhat.com>
11574
11575 * thread-db.c: Include "nat/linux-procfs.h".
11576 (thread_db_init): Skip listing new threads if the kernel supports
11577 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11578
afa8d396
PA
115792015-02-20 Pedro Alves <palves@redhat.com>
11580
11581 * linux-low.c (status_pending_p_callback): Use ptid_match.
11582
c9587f88
AT
115832015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11584
11585 PR breakpoints/16812
11586 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11587 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11588 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11589
b05ec7a5
AT
115902015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11591
11592 PR breakpoints/15956
11593 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11594
d33501a5
MM
115952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11596
11597 * linux-low.c (linux_low_btrace_conf): Print size.
11598 * server.c (handle_btrace_conf_general_set): New.
11599 (hanle_general_set): Call handle_btrace_conf_general_set.
11600 (handle_query): Report Qbtrace-conf:bts:size as supported.
11601
f4abbc16
MM
116022015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11603
11604 * linux-low.c (linux_low_enable_btrace): Update parameters.
11605 (linux_low_btrace_conf): New.
11606 (linux_target_ops)<to_btrace_conf>: Initialize.
11607 * server.c (current_btrace_conf): New.
11608 (handle_btrace_enable): Rename to ...
11609 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11610 to target_enable_btrace. Update comment. Update users.
11611 (handle_qxfer_btrace_conf): New.
11612 (qxfer_packets): Add btrace-conf entry.
11613 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11614 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11615 (target_ops)<read_btrace_conf>: New.
11616 (target_enable_btrace): Update parameters.
11617 (target_read_btrace_conf): New.
11618
043c3577
MM
116192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11620
11621 * server.c (handle_btrace_general_set): Remove call to
11622 target_supports_btrace.
11623 (supported_btrace_packets): New.
11624 (handle_query): Call supported_btrace_packets.
11625 * target.h: include btrace-common.h.
11626 (btrace_target_info): Removed.
11627 (supports_btrace, target_supports_btrace): Update parameters.
11628
734b0e4b
MM
116292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11630
11631 * Makefile.in (SFILES): Add common/btrace-common.c.
11632 (OBS): Add common/btrace-common.o.
11633 (btrace-common.o): Add build rules.
11634 * linux-low: Include btrace-common.h.
11635 (linux_low_read_btrace): Use struct btrace_data. Call
11636 btrace_data_init and btrace_data_fini.
11637
d6c146e9
PA
116382015-02-06 Pedro Alves <palves@redhat.com>
11639
11640 * thread-db.c (find_new_threads_callback): Add debug output.
11641
20ba1ce6
PA
116422015-02-04 Pedro Alves <palves@redhat.com>
11643
11644 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11645 (resume_stopped_resumed_lwps): New function.
11646 (linux_wait_for_event_filtered): Use it.
11647
8cc73a39
SDJ
116482015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11649
11650 * Makefile.in (SFILES): Add linux-personality.c.
11651 (linux-personality.o): New rule.
11652 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11653 list of objects to be built.
11654 * linux-low.c: Include nat/linux-personality.h.
11655 (linux_create_inferior): Remove code to disable address space
11656 randomization (moved to ../nat/linux-personality.c). Create
11657 cleanup to disable address space randomization.
11658
fb23d554
SDJ
116592015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11660
11661 * Makefile.in (posix-strerror.o): New rule.
11662 (mingw-strerror.o): Likewise.
11663 * configure: Regenerated.
11664 * configure.ac: Source file ../common/common.host. Initialize new
11665 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11666
cdf43629
YQ
116672015-01-14 Yao Qi <yao@codesourcery.com>
11668
11669 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11670 (ppc-linux.o): New rule.
11671 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11672 * configure.ac: AC_CHECK_FUNCS(getauxval).
11673 * config.in: Re-generated.
11674 * configure: Re-generated.
11675 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11676 ppc64_64bit_inferior_p
11677
514c5338
YQ
116782015-01-14 Yao Qi <yao@codesourcery.com>
11679
11680 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11681 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11682 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11683 (PT_ORIG_R3, PT_TRAP): Likewise.
11684 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11685 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11686 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11687
3368c1e5
JB
116882015-01-10 Joel Brobecker <brobecker@adacore.com>
11689
11690 * i387-fp.c (i387_cache_to_xsave): In look over
11691 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11692 zmmh_low_space field by use of zmmh_high_space.
11693
582511be
PA
116942015-01-09 Pedro Alves <palves@redhat.com>
11695
11696 * linux-low.c (step_over_bkpt): Move higher up in the file.
11697 (handle_extended_wait): Don't store the stop_pc here.
11698 (get_stop_pc): Adjust comments and rename to ...
11699 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11700 stopped for a software breakpoint or hardware breakpoint.
11701 (thread_still_has_status_pending_p): New function.
11702 (status_pending_p_callback): Use
11703 thread_still_has_status_pending_p. If the event is no longer
11704 interesting, resume the LWP.
11705 (handle_tracepoints): Add assert.
11706 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11707 (wstatus_maybe_breakpoint): New function.
11708 (cancel_breakpoint): Delete function.
11709 (check_stopped_by_watchpoint): New function, factored out from
11710 linux_low_filter_event.
11711 (lp_status_maybe_breakpoint): Delete function.
11712 (linux_low_filter_event): Remove filter_ptid argument.
11713 Leave thread group exits pending here. Store the LWP's stop PC.
11714 Always leave events pending.
11715 (linux_wait_for_event_filtered): Pull all events out of the
11716 kernel, and leave them all pending.
11717 (count_events_callback, select_event_lwp_callback): Consider all
11718 events.
11719 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11720 (select_event_lwp): Only give preference to the stepping LWP in
11721 all-stop mode. Adjust comments.
11722 (ignore_event): New function.
11723 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11724 references to cancel_breakpoints. Adjust to renames. Also give
11725 equal priority to all LWPs that have had events in non-stop mode.
11726 If reporting a software breakpoint event, unadjust the LWP's PC.
11727 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11728 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11729 Adjust.
11730 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11731 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11732 (linux_stopped_by_watchpoint): Adjust.
11733 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11734 * linux-low.h (enum lwp_stop_reason): New.
11735 (struct lwp_info) <stop_pc>: Adjust comment.
11736 <stopped_by_watchpoint>: Delete field.
11737 <stop_reason>: New field.
11738 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11739 * mem-break.c (software_breakpoint_inserted_here)
11740 (hardware_breakpoint_inserted_here): New function.
11741 * mem-break.h (software_breakpoint_inserted_here)
11742 (hardware_breakpoint_inserted_here): Declare.
11743 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11744 (cancel_breakpoints): Delete.
11745 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11746 (upload_fast_traceframes): Remove references to
11747 cancel_breakpoints.
11748
a33e3959
PA
117492015-01-09 Pedro Alves <palves@redhat.com>
11750
11751 * thread-db.c (find_new_threads_callback): Ignore thread if the
11752 kernel thread ID is -1.
11753
8784d563
PA
117542015-01-09 Pedro Alves <palves@redhat.com>
11755
11756 * linux-low.c (linux_attach_fail_reason_string): Move to
11757 nat/linux-ptrace.c, and rename.
11758 (linux_attach_lwp): Update comment.
11759 (attach_proc_task_lwp_callback): New function.
11760 (linux_attach): Adjust to rename and use
11761 linux_proc_attach_tgid_threads.
11762 (linux_attach_fail_reason_string): Delete declaration.
11763
76f2b779
JB
117642015-01-01 Joel Brobecker <brobecker@adacore.com>
11765
11766 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11767 * server.c (gdbserver_version): Likewise.
11768
fafcc06a
SDJ
117692014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11770
11771 * remote-utils.c: Include ctype.h.
11772 (input_interrupt): Explicitly handle the case when the char
11773 received is the NUL byte. Improve the printing of non-ASCII
11774 characters.
11775
beed38b8
JB
117762014-12-16 Joel Brobecker <brobecker@adacore.com>
11777
11778 * linux-low.c (linux_low_filter_event): Update call to
11779 linux_enable_event_reporting following the addition of
11780 a new parameter to that function.
11781
bf330350
CU
117822014-12-16 Catalin Udma <catalin.udma@freescale.com>
11783
11784 PR server/17457
11785 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11786 (AARCH64_FPCR_REGNO): Likewise.
11787 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11788 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11789 (aarch64_store_fpregset): Likewise.
11790
5227d625
JB
117912014-12-15 Joel Brobecker <brobecker@adacore.com>
11792
11793 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11794 Remove FIXME comment about assumption about N.
11795
f93b65a0
JB
117962014-12-13 Joel Brobecker <brobecker@adacore.com>
11797
11798 * configure.ac: If large-file support is disabled in GDBserver,
11799 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11800 * configure: Regenerate.
11801
e5a9158d
AA
118022014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11803
11804 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11805 warning upon ENODATA from ptrace.
11806 * linux-s390-low.c (s390_store_tdb): New.
11807 (s390_regsets): Add regset for NT_S390_TDB.
11808
feea5f36
AA
118092014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11810
11811 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11812 without a fill_function.
11813 * linux-s390-low.c (s390_fill_last_break): Remove.
11814 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11815 (s390_arch_setup): Use regset's size instead of fill_function for
11816 loop end condition.
11817
098dbe61
AA
118182014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11819
11820 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11821 the regset's store function when ptrace returned an error.
11822 * regcache.c (get_thread_regcache): Invalidate register cache
11823 before fetching inferior's registers.
11824
28eef672
AA
118252014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11826
11827 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11828 while-loop as for-loop.
11829 (regsets_store_inferior_registers): Likewise.
11830
bdca27a2
YQ
118312014-11-28 Yao Qi <yao@codesourcery.com>
11832
11833 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11834 * config.in, configure: Re-generate.
11835 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11836 is defined.
11837
9c232dda
YQ
118382014-11-21 Yao Qi <yao@codesourcery.com>
11839
11840 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11841 (AC_CHECK_HEADERS): Remove malloc.h.
11842 * configure: Re-generated.
11843 * config.in: Re-generated.
11844 * server.h: Don't include alloca.h and malloc.h.
11845 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11846 Don't include malloc.h.
11847
43968415
JB
118482014-11-17 Joel Brobecker <brobecker@adacore.com>
11849
11850 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11851 corresponding ERRNO check in same block.
11852
40e91bc7
PA
118532014-11-12 Pedro Alves <palves@redhat.com>
11854
11855 * server.c (cont_thread): Update comment.
11856 (start_inferior, attach_inferior): No longer clear cont_thread.
11857 (handle_v_cont): No longer set cont_thread.
11858 (captured_main): Clear cont_thread each time a GDB connects.
11859
c2c118cf
PA
118602014-11-12 Pedro Alves <palves@redhat.com>
11861
11862 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11863 thread, and don't resume all threads if the Hc thread has exited.
11864
78708b7c
PA
118652014-11-12 Pedro Alves <palves@redhat.com>
11866
11867 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11868 the process group instead of to a specific LWP.
11869
a2abc7de
PA
118702014-10-15 Pedro Alves <palves@redhat.com>
11871
11872 PR server/17487
11873 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11874 parameter.
11875 (arm_set_thread_context): Delete.
11876 (the_low_target): Adjust.
11877 * win32-i386-low.c (debug_registers_changed)
11878 (debug_registers_used): Delete.
11879 (update_debug_registers_callback): New function.
11880 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11881 needing to update their debug registers.
11882 (win32_get_current_dr): New function.
11883 (x86_dr_low_get_addr, x86_dr_low_get_control)
11884 (x86_dr_low_get_status): Fetch the debug register from the thread
11885 record's context.
11886 (i386_initial_stuff): Adjust.
11887 (i386_get_thread_context): Remove current_event parameter. Don't
11888 clear debug_registers_changed nor copy DR values to
11889 debug_reg_state.
11890 (i386_set_thread_context): Delete.
11891 (i386_prepare_to_resume): New function.
11892 (i386_thread_added): Mark the thread as needing to update irs
11893 debug registers.
11894 (the_low_target): Remove i386_set_thread_context and install
11895 i386_prepare_to_resume.
11896 * win32-low.c (win32_get_thread_context): Adjust.
11897 (win32_set_thread_context): Use SetThreadContext
11898 directly.
11899 (win32_prepare_to_resume): New function.
11900 (win32_require_context): New function, factored out from ...
11901 (thread_rec): ... this.
11902 (continue_one_thread): Call win32_prepare_to_resume on each thread
11903 we're about to continue.
11904 (win32_resume): Call win32_prepare_to_resume on the event thread.
11905 * win32-low.h (struct win32_thread_info)
11906 <debug_registers_changed>: New field.
11907 (struct win32_target_ops): Change prototype of set_thread_context,
11908 delete set_thread_context and add prepare_to_resume.
11909 (win32_require_context): New declaration.
11910
a442d071
GB
119112014-10-08 Gary Benson <gbenson@redhat.com>
11912
11913 * server.h: Do not include common-exceptions.h.
11914
6f1947e8
GB
119152014-10-08 Gary Benson <gbenson@redhat.com>
11916
11917 * server.h: Do not include cleanups.h.
11918
63b434a4
JH
119192014-09-30 James Hogan <james.hogan@imgtec.com>
11920
11921 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11922 mips64-dsp-linux.c.
11923
c4d9ceb6
YQ
119242014-09-23 Yao Qi <yao@codesourcery.com>
11925
11926 * linux-low.c (lp_status_maybe_breakpoint): New function.
11927 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11928 (count_events_callback): Likewise.
11929 (select_event_lwp_callback): Likewise.
11930 (cancel_breakpoints_callback): Likewise.
11931
89a5711c
DB
119322014-09-19 Don Breazeal <donb@codesourcery.com>
11933
11934 * linux-low.c (handle_extended_wait): Call
11935 linux_ptrace_get_extended_event.
11936 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11937 linux_is_extended_waitstatus.
11938
bffc0964
JB
119392014-09-16 Joel Brobecker <brobecker@adacore.com>
11940
11941 * Makefile.in (CPPFLAGS): Define.
11942 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11943 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11944
0bfdf32f
GB
119452014-09-16 Gary Benson <gbenson@redhat.com>
11946
11947 * inferiors.h (current_inferior): Renamed as...
11948 (current_thread): New variable. All uses updated.
11949 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11950 (maybe_move_out_of_jump_pad): Likewise.
11951 (cancel_breakpoint): Likewise.
11952 (linux_low_filter_event): Likewise.
11953 (wait_for_sigstop): Likewise.
11954 (linux_resume_one_lwp): Likewise.
11955 (need_step_over_p): Likewise.
11956 (start_step_over): Likewise.
11957 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11958 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11959 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11960 and save_inferior as saved_thread.
11961 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11962 saved_thread.
11963 (regcache_invalidate_thread): Likewise.
11964 * remote-utils.c (prepare_resume_reply): Likewise.
11965 * thread-db.c (thread_db_get_tls_address): Likewise.
11966 (disable_thread_event_reporting): Likewise.
11967 (remove_thread_event_breakpoints): Likewise.
11968 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11969 as saved_thread.
11970 * target.h (set_desired_inferior): Renamed as...
11971 (set_desired_thread): New declaration. All uses updated.
11972 * server.c (myresume): Updated comment to reference thread instead
11973 of inferior.
11974 (handle_serial_event): Likewise.
11975 (handle_target_event): Likewise.
11976
361c8ade
GB
119772014-09-12 Tom Tromey <tromey@redhat.com>
11978 Gary Benson <gbenson@redhat.com>
11979
11980 * regcache.h: Include common-regcache.h.
11981 (regcache_read_pc): Don't declare.
11982 * regcache.c (get_thread_regcache_for_ptid): New function.
11983
bd9269f7
GB
119842014-09-11 Tom Tromey <tromey@redhat.com>
11985 Gary Benson <gbenson@redhat.com>
11986
11987 * symbol.c: New file.
11988 * Makefile.in (SFILES): Add symbol.c.
11989 (OBS): Add symbol.o.
11990
f8c1d06b
GB
119912014-09-11 Gary Benson <gbenson@redhat.com>
11992
11993 * target.c (target_stop_ptid, target_continue_ptid): New
11994 functions.
11995
721ec300
GB
119962014-09-11 Tom Tromey <tromey@redhat.com>
11997 Gary Benson <gbenson@redhat.com>
11998
11999 * target.h: Include target/target.h.
12000 * target.c (target_read_memory, target_read_uint32)
12001 (target_write_memory): New functions.
12002
c5e92cca
GB
120032014-09-11 Gary Benson <gbenson@redhat.com>
12004
12005 * server.h (debug_hw_points): Don't declare.
12006 * server.c (debug_hw_points): Don't define. Replace all uses
12007 with show_debug_regs.
12008 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12009 all uses with show_debug_regs.
12010
2e4bb98a
EBM
120112014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12012
12013 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12014 endianness into account.
12015 (ppc_supply_ptrace_register): Likewise.
12016
ac740bc7
JH
120172014-09-03 James Hogan <james.hogan@imgtec.com>
12018
12019 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12020 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12021
97ea6506
GB
120222014-09-03 Gary Benson <gbenson@redhat.com>
12023
12024 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12025 ALL_DEBUG_ADDRESS_REGISTERS.
12026
df7e5265
GB
120272014-09-02 Gary Benson <gbenson@redhat.com>
12028
12029 * i386-low.h: Renamed as...
12030 * x86-low.h: New file. All type, function and variable name
12031 prefixes changed from "i386_" to "x86_". All references updated.
12032 * i386-low.c: Renamed as...
12033 * x86-low.c: New file. All type, function and variable name
12034 prefixes changed from "i386_" to "x86_". All references updated.
12035
ed859da7
GB
120362014-09-02 Gary Benson <gbenson@redhat.com>
12037
12038 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12039 (x86_linux_new_thread): Likewise.
12040
860789c7
GB
120412014-08-29 Gary Benson <gbenson@redhat.com>
12042
12043 * server.h (setjmp.h): Do not include.
12044 (toplevel): Do not declare.
12045 (common-exceptions.h): Include.
12046 (cleanups.h): Likewise.
12047 * server.c (toplevel): Do not define.
12048 (exit_code): New static global.
12049 (detach_or_kill_for_exit_cleanup): New function.
12050 (main): New function. Original main renamed to...
12051 (captured_main): New function.
12052 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12053
ff55e1b5
GB
120542014-08-29 Gary Benson <gbenson@redhat.com>
12055
12056 * Makefile.in (SFILES): Add common/common-exceptions.c.
12057 (OBS): Add common-exceptions.o.
12058 (common-exceptions.o): New rule.
12059 * utils.c (prepare_to_throw_exception): New function.
12060
e9bcb658
GB
120612014-08-29 Gary Benson <gbenson@redhat.com>
12062
12063 * config.in: Regenerate.
12064 * configure: Likewise.
12065
e3180625
GB
120662014-08-29 Gary Benson <gbenson@redhat.com>
12067
12068 * Makefile.in (SFILES): Add common/cleanups.c.
12069 (OBS): cleanups.o.
12070 (cleanups.o): New rule.
12071
e3d6ba5d
GB
120722014-08-29 Gary Benson <gbenson@redhat.com>
12073
12074 * utils.c (internal_vwarning): New function.
12075
7096e886
GB
120762014-08-28 Gary Benson <gbenson@redhat.com>
12077
12078 * utils.h (fatal): Remove declaration.
12079 * utils.c (fatal): Remove function.
12080
14ce3192
GB
120812014-08-28 Gary Benson <gbenson@redhat.com>
12082
12083 * tracepoint.c (gdb_agent_init): Replace fatal with
12084 perror_with_name.
12085 (initialize_tracepoint): Likewise.
12086
50278d59
GB
120872014-08-28 Gary Benson <gbenson@redhat.com>
12088
12089 * remote-utils.c (remote_prepare): Replace fatal with error.
12090
aa96c426
GB
120912014-08-28 Gary Benson <gbenson@redhat.com>
12092
12093 * linux-low.c (linux_async): Replace fatal with warning.
12094 Tidy up and return.
12095 (linux_start_non_stop): Return -1 if linux_async failed.
12096
f7160e97
GB
120972014-08-28 Gary Benson <gbenson@redhat.com>
12098
12099 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12100 gdb_assert.
12101 (i386_dr_low_get_addr): Remove vague comment.
12102 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12103 gdb_assert.
12104
38e08fca
GB
121052014-08-28 Gary Benson <gbenson@redhat.com>
12106
12107 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12108 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12109 internal_error.
12110 (linux_resume_one_lwp): Likewise.
12111 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12112 gdb_assert.
12113 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12114 with internal_error.
12115 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12116 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12117 (find_register_by_name): Replace fatal with internal_error.
12118 (find_regno): Likewise.
12119 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12120 * thread-db.c (thread_db_create_event): Likewise.
12121 (thread_db_load_search): Likewise.
12122 (try_thread_db_load_1): Likewise.
12123 * tracepoint.c (get_jump_space_head): Replace fatal with
12124 internal_error.
12125 (claim_trampoline_space): Likewise.
12126 (have_fast_tracepoint_trampoline_buffer): Likewise.
12127 (cmd_qtstart): Likewise.
12128 (stop_tracing): Likewise.
12129 (fast_tracepoint_collecting): Likewise.
12130 (target_malloc): Likewise.
12131 (download_tracepoint): Likewise.
12132 (download_trace_state_variables): Replace check with gdb_assert.
12133 (upload_fast_traceframes): Replace fatal with internal_error.
12134
34abf635
GB
121352014-08-19 Tom Tromey <tromey@redhat.com>
12136 Gary Benson <gbenson@redhat.com>
12137
12138 * Makefile.in (SFILES): Add common/common-debug.c.
12139 (OBS): Add common-debug.o.
12140 (common-debug.o): New rule.
12141 * debug.h (debug_printf): Don't declare.
12142 * debug.c (debug_printf): Renamed and rewritten as...
12143 (debug_vprintf): New function.
12144
f6e94d78
GB
121452014-08-19 Gary Benson <gbenson@redhat.com>
12146
12147 * utils.h: Do not include print-utils.h.
12148
9239eeab
GB
121492014-08-19 Tom Tromey <tromey@redhat.com>
12150 Gary Benson <gbenson@redhat.com>
12151
12152 * server.h: Add static assertion.
12153 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12154
ef87c8bb
GB
121552014-08-19 Tom Tromey <tromey@redhat.com>
12156 Gary Benson <gbenson@redhat.com>
12157
12158 * Makefile.in (SFILES): Add common/errors.c.
12159 (OBS): Add errors.o.
12160 (IPA_OBS): Add errors-ipa.o.
12161 (errors.o): New rule.
12162 (errors-ipa.o): Likewise.
12163 * utils.h (perror_with_name, error, warning): Don't declare.
12164 * utils.c (warning): Renamed and rewritten as...
12165 (vwarning): New function.
12166 (error): Renamed and rewritten as...
12167 (verror): New function.
12168 (internal_error): Renamed and rewritten as...
12169 (internal_verror): New function.
12170
bb974a24
GB
121712014-08-07 Gary Benson <gbenson@redhat.com>
12172
12173 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12174 * configure: Regenerate.
12175 * config.in: Likewise.
12176 * server.h: Do not include errno.h.
12177 * event-loop.c: Likewise.
12178 * hostio-errno.c: Likewise.
12179 * linux-low.c: Likewise.
12180 * remote-utils.c: Likewise.
12181 * spu-low.c: Likewise.
12182 * utils.c: Likewise.
12183 * gdbreplay.c: Unconditionally include errno.h.
12184
6d3d12eb
GB
121852014-08-07 Gary Benson <gbenson@redhat.com>
12186
12187 * server.h: Do not include string.h.
12188 * event-loop.c: Likewise.
12189 * linux-low.c: Likewise.
12190 * regcache.c: Likewise.
12191 * remote-utils.c: Likewise.
12192 * spu-low.c: Likewise.
12193 * utils.c: Likewise.
12194
dccbb609
GB
121952014-08-07 Gary Benson <gbenson@redhat.com>
12196
12197 * server.h: Do not include gdb_assert.h.
12198
e76df0d0
GB
121992014-08-07 Gary Benson <gbenson@redhat.com>
12200
12201 * server.h: Do not include common-utils.h.
12202
4cb9c816
GB
122032014-08-07 Gary Benson <gbenson@redhat.com>
12204
12205 * server.h: Do not include ptid.h.
12206 * notif.h: Likewise.
12207
3995eeee
GB
122082014-08-07 Gary Benson <gbenson@redhat.com>
12209
12210 * server.h: Do not include gdb_locale.h.
12211
cb9f1a9b
GB
122122014-08-07 Gary Benson <gbenson@redhat.com>
12213
12214 * server.h: Do not include gdb/signals.h.
12215 * win32-low.c: Likewise.
12216
a5fceff8
GB
122172014-08-07 Gary Benson <gbenson@redhat.com>
12218
12219 * server.h: Do not include pathmax.h.
12220
b9391142
GB
122212014-08-07 Gary Benson <gbenson@redhat.com>
12222
12223 * server.h: Do not include libiberty.h.
12224 * linux-bfin-low.c: Likewise.
12225
0e443c87
GB
122262014-08-07 Gary Benson <gbenson@redhat.com>
12227
12228 * server.h: Do not include ansidecl.h.
12229
8ebb3f56
GB
122302014-08-07 Gary Benson <gbenson@redhat.com>
12231
12232 * linux-x86-low.c: Do not include stddef.h.
12233 * lynx-ppc-low.c: Likewise.
12234 * tracepoint.c: Likewise.
12235
8980bdf6
GB
122362014-08-07 Gary Benson <gbenson@redhat.com>
12237
12238 * server.h: Do not include stdarg.h.
12239 * nto-low.c: Likewise.
12240
d7096f71
GB
122412014-08-07 Gary Benson <gbenson@redhat.com>
12242
12243 * server.h: Do not include stdlib.h.
12244 * inferiors.c: Likewise.
12245 * linux-low.c: Likewise.
12246 * regcache.c: Likewise.
12247 * spu-low.c: Likewise.
12248 * tracepoint.c: Likewise.
12249 * utils.c: Likewise.
12250
d02f550d
GB
122512014-08-07 Gary Benson <gbenson@redhat.com>
12252
12253 * server.h: Do not include stdio.h.
12254 * linux-low.c: Likewise.
12255 * remote-utils.c: Likewise.
12256 * spu-low.c: Likewise.
12257 * utils.c: Likewise.
12258 * wincecompat.c: Likewise.
12259
87f6c4e3
GB
122602014-08-06 Gary Benson <gbenson@redhat.com>
12261
12262 * regcache.c (init_register_cache): Move conditionals inside if.
12263
7089dca4
GB
122642014-08-06 Gary Benson <gbenson@redhat.com>
12265
12266 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12267
462f517e
GB
122682014-07-31 Gary Benson <gbenson@redhat.com>
12269
12270 * ax.h: Do not include server.h.
12271 * gdbthread.h: Likewise.
12272 * lynx-low.h: Likewise.
12273 * notif.h: Likewise.
12274
976411d6
GB
122752014-07-30 Gary Benson <gbenson@redhat.com>
12276
12277 * server.h: Include common-defs.h.
12278 Do not include config.h or build-gnulib-gdbserver/config.h.
12279
d41f6d8e
GB
122802014-07-30 Gary Benson <gbenson@redhat.com>
12281
12282 * hostio-errno.c: Move server.h to top of includes list.
12283 * inferiors.c: Likewise.
12284 * linux-x86-low.c: Likewise.
12285 * notif.c: Include server.h.
12286
314c6a35
TT
122872014-07-24 Tom Tromey <tromey@redhat.com>
12288 Gary Benson <gbenson@redhat.com>
12289
12290 * server.h (CORE_ADDR): Now unsigned.
12291
69ff6be5
PA
122922014-07-16 Pedro Alves <palves@redhat.com>
12293
12294 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12295
ce9e3fe7
PA
122962014-07-15 Pedro Alves <palves@redhat.com>
12297
12298 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12299 copy.
12300
e76126e8
PA
123012014-07-11 Pedro Alves <palves@redhat.com>
12302
12303 * linux-low.c (kill_wait_lwp): New function, based on
12304 kill_one_lwp_callback, but use my_waitpid directly.
12305 (kill_one_lwp_callback, linux_kill): Use it.
12306
8e9db26e
PA
123072014-06-23 Pedro Alves <palves@redhat.com>
12308
12309 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12310 before setting DR0..DR3.
12311
698b3e08
GB
123122014-06-20 Gary Benson <gbenson@redhat.com>
12313
12314 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12315 * configure: Regenerated.
12316 * config.in: Likewise.
12317
125f8a3d
GB
123182014-06-20 Gary Benson <gbenson@redhat.com>
12319
12320 * Makefile.in (SFILES): Update locations for files moved
12321 from common to nat.
12322 (object file files): Reordered.
12323
42995dbd
GB
123242014-06-20 Gary Benson <gbenson@redhat.com>
12325
12326 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12327 (i386_dr_low_set_addr): Likewise.
12328 (i386_dr_low_get_addr): Likewise.
12329 (i386_dr_low_can_set_control): Likewise.
12330 (i386_dr_low_set_control): Likewise.
12331 (i386_dr_low_get_control): Likewise.
12332 (i386_dr_low_get_status): Likewise.
12333 (i386_get_debug_register_length): Likewise.
12334 * linux-x86-low.c (i386_dr_low_set_addr):
12335 Changed signature. Made static.
12336 (i386_dr_low_get_addr): Likewise.
12337 (i386_dr_low_set_control): Likewise.
12338 (i386_dr_low_get_control): Likewise.
12339 (i386_dr_low_get_status): Likewise.
12340 (i386_dr_low): New global variable.
12341 * win32-i386-low.c (i386_dr_low_set_addr):
12342 Changed signature. Made static.
12343 (i386_dr_low_get_addr): Likewise.
12344 (i386_dr_low_set_control): Likewise.
12345 (i386_dr_low_get_control): Likewise.
12346 (i386_dr_low_get_status): Likewise.
12347 (i386_dr_low): New global variable.
12348
e1d2394b
MS
123492014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12350
12351 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12352 * Makefile.in (AR, AR_FLAGS): Define.
12353 * configure: Regenerate.
12354
3a8ee006
GB
123552014-06-19 Gary Benson <gbenson@redhat.com>
12356
12357 * Makefile.in (i386-dregs.o): New rule.
12358 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12359 * i386-low.c (target.h): Remove include.
12360 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12361 (DR_CONTROL_SHIFT): Likewise.
12362 (DR_CONTROL_SIZE): Likewise.
12363 (DR_RW_EXECUTE): Likewise.
12364 (DR_RW_WRITE): Likewise.
12365 (DR_RW_READ): Likewise.
12366 (DR_RW_IORW): Likewise.
12367 (DR_LEN_1): Likewise.
12368 (DR_LEN_2): Likewise.
12369 (DR_LEN_4): Likewise.
12370 (DR_LEN_8): Likewise.
12371 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12372 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12373 (DR_ENABLE_SIZE): Likewise.
12374 (DR_LOCAL_SLOWDOWN): Likewise.
12375 (DR_GLOBAL_SLOWDOWN): Likewise.
12376 (DR_CONTROL_RESERVED): Likewise.
12377 (I386_DR_CONTROL_MASK): Likewise.
12378 (I386_DR_VACANT): Likewise.
12379 (I386_DR_LOCAL_ENABLE): Likewise.
12380 (I386_DR_GLOBAL_ENABLE): Likewise.
12381 (I386_DR_DISABLE): Likewise.
12382 (I386_DR_SET_RW_LEN): Likewise.
12383 (I386_DR_GET_RW_LEN): Likewise.
12384 (I386_DR_WATCH_HIT): Likewise.
12385 (i386_wp_op_t): Likewise.
12386 (i386_show_dr): Likewise.
12387 (i386_length_and_rw_bits): Likewise.
12388 (i386_insert_aligned_watchpoint): Likewise.
12389 (i386_remove_aligned_watchpoint): Likewise.
12390 (i386_handle_nonaligned_watchpoint): Likewise.
12391 i386_update_inferior_debug_regs(): Likewise.
12392 (i386_dr_insert_watchpoint): Likewise.
12393 (i386_dr_remove_watchpoint): Likewise.
12394 (i386_dr_region_ok_for_watchpoint): Likewise.
12395 (i386_dr_stopped_data_address): Likewise.
12396 (i386_dr_stopped_by_watchpoint): Likewise.
12397
8f26655c
GB
123982014-06-19 Gary Benson <gbenson@redhat.com>
12399
12400 * i386-low.c (i386_dr_show): Renamed to
12401 i386_show_dr and made static. All uses updated.
12402 (i386_dr_length_and_rw_bits): Renamed to
12403 i386_length_and_rw_bits and made static.
12404 All uses updated.
12405 (i386_dr_insert_aligned_watchpoint): Renamed to
12406 i386_insert_aligned_watchpoint and made static.
12407 All uses updated.
12408 (i386_dr_remove_aligned_watchpoint): Renamed to
12409 i386_remove_aligned_watchpoint and made static.
12410 All uses updated.
12411 (i386_dr_update_inferior_debug_regs): Renamed to
12412 i386_update_inferior_debug_regs and made static.
12413 All uses updated.
12414
b9228891
GB
124152014-06-18 Gary Benson <gbenson@redhat.com>
12416
5171def3
GB
12417 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12418 (i386_dr_low_can_set_control): Likewise.
12419 (i386_get_debug_register_length): Likewise.
12420 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12421 (i386_dr_low_can_set_control): Likewise.
12422 (i386_get_debug_register_length): Likewise.
12423
124242014-06-17 Gary Benson <gbenson@redhat.com>
12425
b9228891
GB
12426 * i386-low.h (i386-dregs.h): New include.
12427 (DR_FIRSTADDR): Now in i386-dregs.h.
12428 (DR_LASTADDR): Likewise.
12429 (DR_NADDR): Likewise.
12430 (DR_STATUS): Likewise.
12431 (DR_CONTROL): Likewise.
12432 (i386_debug_reg_state): Likewise.
12433 (i386_dr_insert_watchpoint): Likewise.
12434 (i386_dr_remove_watchpoint): Likewise.
12435 (i386_dr_region_ok_for_watchpoint): Likewise.
12436 (i386_dr_stopped_data_address): Likewise.
12437 (i386_dr_stopped_by_watchpoint): Likewise.
12438 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12439
4be83cc2
GB
124402014-06-18 Gary Benson <gbenson@redhat.com>
12441
12442 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12443 i386_dr_insert_watchpoint.
12444 (i386_low_remove_watchpoint): Renamed to
12445 i386_dr_remove_watchpoint.
12446 (i386_low_region_ok_for_watchpoint): Renamed to
12447 i386_dr_region_ok_for_watchpoint.
12448 (i386_low_stopped_data_address): Renamed to
12449 i386_dr_stopped_data_address.
12450 (i386_low_stopped_by_watchpoint): Renamed to
12451 i386_dr_stopped_by_watchpoint.
12452 * i386-low.c (i386_show_dr): Renamed to
12453 i386_dr_show and made nonstatic. All uses updated.
12454 (i386_length_and_rw_bits): Renamed to
12455 i386_dr_length_and_rw_bits and made nonstatic.
12456 All uses updated.
12457 (i386_insert_aligned_watchpoint): Renamed to
12458 i386_dr_insert_aligned_watchpoint and made nonstatic.
12459 All uses updated.
12460 (i386_remove_aligned_watchpoint): Renamed to
12461 i386_dr_remove_aligned_watchpoint and made nonstatic.
12462 All uses updated.
12463 (i386_update_inferior_debug_regs): Renamed to
12464 i386_dr_update_inferior_debug_regs and made nonstatic.
12465 All uses updated.
12466 (i386_low_insert_watchpoint): Renamed to
12467 i386_dr_insert_watchpoint. All uses updated.
12468 (i386_low_remove_watchpoint): Renamed to
12469 i386_dr_remove_watchpoint. All uses updated.
12470 (i386_low_region_ok_for_watchpoint): Renamed to
12471 i386_dr_region_ok_for_watchpoint. All uses updated.
12472 (i386_low_stopped_data_address): Renamed to
12473 i386_dr_stopped_data_address. All uses updated.
12474 (i386_low_stopped_by_watchpoint): Renamed to
12475 i386_dr_stopped_by_watchpoint. All uses updated.
12476
131aa0d4
GB
124772014-06-18 Gary Benson <gbenson@redhat.com>
12478
12479 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12480 (i386_dr_low_can_set_control): Likewise.
12481 (i386_insert_aligned_watchpoint): New check.
12482
d9305f7f
GB
124832014-06-18 Gary Benson <gbenson@redhat.com>
12484
12485 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12486 Renamed to state.
12487
e927c9fc
GB
124882014-06-18 Gary Benson <gbenson@redhat.com>
12489
12490 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12491 instead of fatal and error.
12492 (i386_handle_nonaligned_watchpoint): Likewise.
12493
1b6d4134
GB
124942014-06-18 Gary Benson <gbenson@redhat.com>
12495
12496 * i386-low.c (i386_get_debug_register_length): New macro.
12497 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12498 (i386_show_dr): Use debug_printf instead of fprintf. Use
12499 phex to format values.
12500
6e62758f
GB
125012014-06-18 Gary Benson <gbenson@redhat.com>
12502
12503 * i386-low.h: Comment changes.
12504 * i386-low.c: Likewise.
12505
fc6e2f03
GB
125062014-06-18 Gary Benson <gbenson@redhat.com>
12507
12508 * i386-low.c: Whitespace changes.
12509
f9d1eeed
TT
125102014-06-12 Tom Tromey <tromey@redhat.com>
12511
12512 * utils.c (freeargv): Remove.
12513
0b04e523
TT
125142014-06-12 Tom Tromey <tromey@redhat.com>
12515
12516 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12517 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12518 (parse_debug_format_options): Likewise.
12519 (gdbserver_usage): Likewise.
12520 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12521 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12522 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12523 against libiberty.
12524 ($(LIBGNU)): Depend on libiberty.
12525 (all-lib): Recurse into all subdirs.
12526 (install-only): Invoke "install" target in subdirs.
12527 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12528 targets.
12529 * configure: Rebuild.
12530 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12531 for vasprintf, vsnprintf, or gettimeofday.
12532 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12533 srv_tgtobj.
12534
270c9937
JB
125352014-06-05 Joel Brobecker <brobecker@adacore.com>
12536
12537 * development.sh: Delete.
12538 * Makefile.in (config.status): Adjust dependency on development.sh.
12539 * configure.ac: Adjust development.sh source call.
12540 * configure: Regenerate.
12541
0a261ed8
PA
125422014-06-02 Pedro Alves <palves@redhat.com>
12543
12544 * ax.c (gdb_free_agent_expr): New function.
12545 * ax.h (gdb_free_agent_expr): New declaration.
12546 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12547 list.
12548 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12549 static.
12550 (clear_breakpoint_conditions_and_commands): New function.
12551 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12552 (clear_breakpoint_conditions_and_commands): New declaration.
12553
e9dae05e
RR
125542014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12555
12556 * linux-aarch64-low.c (asm/ptrace.h): Include.
12557
5876f503
JK
125582014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12559
12560 Fix TLS access for -static -pthread.
12561 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12562 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12563 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12564
802e8e6d
PA
125652014-05-20 Pedro Alves <palves@redhat.com>
12566
12567 * linux-aarch64-low.c (aarch64_insert_point)
12568 (aarch64_remove_point): No longer check whether the type is
12569 supported here. Adjust to new interface.
12570 (the_low_target): Install aarch64_supports_z_point_type as
12571 supports_z_point_type method.
12572 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12573 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12574 instead of a Z packet char. Adjust.
12575 (arm_supports_z_point_type): New function.
12576 (arm_insert_point, arm_remove_point): Adjust to new interface.
12577 (the_low_target): Install arm_supports_z_point_type.
12578 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12579 (cris_insert_point, cris_remove_point): Adjust to new interface.
12580 Don't check whether the type is supported here.
12581 (the_low_target): Install cris_supports_z_point_type.
12582 * linux-low.c (linux_supports_z_point_type): New function.
12583 (linux_insert_point, linux_remove_point): Adjust to new interface.
12584 * linux-low.h (struct linux_target_ops) <insert_point,
12585 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12586 raw_breakpoint pointer parameter.
12587 <supports_z_point_type>: New method.
12588 * linux-mips-low.c (mips_supports_z_point_type): New function.
12589 (mips_insert_point, mips_remove_point): Adjust to new interface.
12590 Use mips_supports_z_point_type.
12591 (the_low_target): Install mips_supports_z_point_type.
12592 * linux-ppc-low.c (the_low_target): Install NULL as
12593 supports_z_point_type method.
12594 * linux-s390-low.c (the_low_target): Install NULL as
12595 supports_z_point_type method.
12596 * linux-sparc-low.c (the_low_target): Install NULL as
12597 supports_z_point_type method.
12598 * linux-x86-low.c (x86_supports_z_point_type): New function.
12599 (x86_insert_point): Adjust to new insert_point interface. Use
12600 insert_memory_breakpoint. Adjust to new
12601 i386_low_insert_watchpoint interface.
12602 (x86_remove_point): Adjust to remove_point interface. Use
12603 remove_memory_breakpoint. Adjust to new
12604 i386_low_remove_watchpoint interface.
12605 (the_low_target): Install x86_supports_z_point_type.
12606 * lynx-low.c (lynx_target_ops): Install NULL as
12607 supports_z_point_type callback.
12608 * nto-low.c (nto_supports_z_point_type): New.
12609 (nto_insert_point, nto_remove_point): Adjust to new interface.
12610 (nto_target_ops): Install nto_supports_z_point_type.
12611 * mem-break.c: Adjust intro comment.
12612 (struct raw_breakpoint) <raw_type, size>: New fields.
12613 <inserted>: Update comment.
12614 <shlib_disabled>: Delete field.
12615 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12616 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12617 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12618 (raw_bkpt_type_to_target_hw_bp_type): New function.
12619 (find_enabled_raw_code_breakpoint_at): New function.
12620 (find_raw_breakpoint_at): New type and size parameters. Use them.
12621 (insert_memory_breakpoint): New function, based off
12622 set_raw_breakpoint_at.
12623 (remove_memory_breakpoint): New function.
12624 (set_raw_breakpoint_at): Reimplement.
12625 (set_breakpoint): New, based on set_breakpoint_at.
12626 (set_breakpoint_at): Reimplement.
12627 (delete_raw_breakpoint): Go through the_target->remove_point
12628 instead of assuming memory breakpoints.
12629 (find_gdb_breakpoint_at): Delete.
12630 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12631 (find_gdb_breakpoint): New function.
12632 (set_gdb_breakpoint_at): Delete.
12633 (z_type_supported): New function.
12634 (set_gdb_breakpoint_1): New function, loosely based off
12635 set_gdb_breakpoint_at.
12636 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12637 (delete_gdb_breakpoint_at): Delete.
12638 (delete_gdb_breakpoint_1): New function, loosely based off
12639 delete_gdb_breakpoint_at.
12640 (delete_gdb_breakpoint): New function.
12641 (clear_gdb_breakpoint_conditions): Rename to ...
12642 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12643 breakpoint.
12644 (add_condition_to_breakpoint): Make static.
12645 (add_breakpoint_condition): Take a struct breakpoint pointer
12646 instead of an address. Adjust.
12647 (gdb_condition_true_at_breakpoint): Rename to ...
12648 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12649 z_type parameter.
12650 (gdb_condition_true_at_breakpoint): Reimplement.
12651 (add_breakpoint_commands): Take a struct breakpoint pointer
12652 instead of an address. Adjust.
12653 (gdb_no_commands_at_breakpoint): Rename to ...
12654 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12655 parameter. Return true if no breakpoint was found. Change debug
12656 output.
12657 (gdb_no_commands_at_breakpoint): Reimplement.
12658 (run_breakpoint_commands): Rename to ...
12659 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12660 and change return type to boolean.
12661 (run_breakpoint_commands): New function.
12662 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12663 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12664 breakpoint. Go through the_target->remove_point instead of
12665 assuming memory breakpoint.
12666 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12667 software and hardware breakpoints.
12668 (reinsert_raw_breakpoint): Go through the_target->insert_point
12669 instead of assuming memory breakpoint.
12670 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12671 software and hardware breakpoints.
12672 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12673 Check both software and hardware breakpoints.
12674 (validate_inserted_breakpoint): Assert the breakpoint is a
12675 software breakpoint. Set the inserted flag to -1 instead of
12676 setting shlib_disabled.
12677 (delete_disabled_breakpoints): Adjust.
12678 (validate_breakpoints): Only validate software breakpoints.
12679 Adjust to inserted flag change.
12680 (check_mem_read, check_mem_write): Skip breakpoint types other
12681 than software breakpoints. Adjust to inserted flag change.
12682 * mem-break.h (enum raw_bkpt_type): New enum.
12683 (raw_breakpoint, struct process_info): Forward declare.
12684 (Z_packet_to_target_hw_bp_type): Delete declaration.
12685 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12686 (set_gdb_breakpoint, delete_gdb_breakpoint)
12687 (clear_breakpoint_conditions): New declarations.
12688 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12689 (breakpoint_inserted_here): Update comment.
12690 (add_breakpoint_condition, add_breakpoint_commands): Replace
12691 address parameter with a breakpoint pointer parameter.
12692 (gdb_breakpoint_here): Update comment.
12693 (delete_gdb_breakpoint_at): Delete.
12694 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12695 * server.c (process_point_options): Take a struct breakpoint
12696 pointer instead of an address. Adjust.
12697 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12698 delete_gdb_breakpoint.
12699 * spu-low.c (spu_target_ops): Install NULL as
12700 supports_z_point_type method.
12701 * target.h: Include mem-break.h.
12702 (struct target_ops) <prepare_to_access_memory>: Update comment.
12703 <supports_z_point_type>: New field.
12704 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12705 instead of a char. Also take a raw breakpoint pointer.
12706 * win32-arm-low.c (the_low_target): Install NULL as
12707 supports_z_point_type.
12708 * win32-i386-low.c (i386_supports_z_point_type): New function.
12709 (i386_insert_point, i386_remove_point): Adjust to new interface.
12710 (the_low_target): Install i386_supports_z_point_type.
12711 * win32-low.c (win32_supports_z_point_type): New function.
12712 (win32_insert_point, win32_remove_point): Adjust to new interface.
12713 (win32_target_ops): Install win32_supports_z_point_type.
12714 * win32-low.h (struct win32_target_ops):
12715 <supports_z_point_type>: New method.
12716 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12717 instead of a char. Also take a raw breakpoint pointer.
12718
932539e3
PA
127192014-05-20 Pedro Alves <palves@redhat.com>
12720
12721 * mem-break.h: Include break-common.h.
12722 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12723 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12724 (Z_packet_to_target_hw_bp_type): New declaration.
12725 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12726 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12727 (Z_PACKET_ACCESS_WP): Delete macros.
12728 (Z_packet_to_hw_type): Delete function.
12729 * i386-low.h: Don't include break-common.h here.
12730 (Z_packet_to_hw_type): Delete declaration.
12731 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12732 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12733 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12734 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12735 * linux-aarch64-low.c: Don't include break-common.h here.
12736 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12737 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12738 (Z_packet_to_target_hw_bp_type): Delete function.
12739 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12740 function.
12741 (mips_insert_point, mips_remove_point): Use
12742 Z_packet_to_target_hw_bp_type.
12743
4ff0d3d8
PA
127442014-05-20 Pedro Alves <palves@redhat.com>
12745
12746 * linux-aarch64-low.c: Include break-common.h.
12747 (enum target_point_type): Delete.
12748 (Z_packet_to_point_type): Rename to ...
12749 (Z_packet_to_target_hw_bp_type): ... this, and return a
12750 target_hw_bp_type instead.
12751 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12752 instead of an enum target_point_type.
12753 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12754 breakpoint type.
12755 (aarch64_dr_state_insert_one_point)
12756 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12757 (aarch64_handle_aligned_watchpoint)
12758 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12759 Take an enum target_hw_bp_type instead of an enum
12760 target_point_type.
12761 (aarch64_supports_z_point_type): New function.
12762 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12763 use Z_packet_to_target_hw_bp_type.
12764
786dc519
JB
127652014-05-20 Joel Brobecker <brobecker@adacore.com>
12766
12767 * configure.ac: Only use -Werror by default when DEVELOPMENT
12768 is true.
12769 * configure: Regenerate.
12770
9e0aa64f
JK
127712014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12772
12773 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12774 * linux-x86-low.c (X86_64_USER_REGS): New.
12775 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12776
2b577b92
YQ
127772014-04-28 Yao Qi <yao@codesourcery.com>
12778
12779 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12780 name.
12781
94611da2
PA
127822014-04-25 Pedro Alves <palves@redhat.com>
12783
12784 PR server/16255
12785 * linux-low.c (linux_attach_fail_reason_string): New function.
12786 (linux_attach_lwp): Delete.
12787 (linux_attach_lwp_1): Rename to ...
12788 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12789 argument. Remove "initial" parameter. Return int instead of
12790 void. Don't error or warn here.
12791 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12792 failure to attach to the tgid. Call warning when failing to
12793 attach to an lwp.
12794 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12795 argument. Remove "initial" parameter. Return int instead of
12796 void. Don't error or warn here.
12797 (linux_attach_fail_reason_string): New declaration.
12798 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12799 interface change. Use linux_attach_fail_reason_string.
12800
01f9f808
MS
128012014-04-24 Michael Sturm <michael.sturm@mintel.com>
12802 Walfred Tedeschi <walfred.tedeschi@intel.com>
12803
12804 * Makefile.in: Added rules to handle new files
12805 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12806 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12807 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12808 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12809 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12810 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12811 x32-avx512-linux.o.
12812 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12813 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12814 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12815 i386/x32-avx512.xml.
12816 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12817 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12818 i386/x32-avx512-linux.xml.
12819 * i387-fp.c (num_avx512_k_registers): New constant for number
12820 of K registers.
12821 (num_avx512_zmmh_low_registers): New constant for number of
12822 lower ZMM registers (0-15).
12823 (num_avx512_zmmh_high_registers): New constant for number of
12824 higher ZMM registers (16-31).
12825 (num_avx512_ymmh_registers): New contant for number of higher
12826 YMM registers (ymm16-31 added by avx521 on x86_64).
12827 (num_avx512_xmm_registers): New constant for number of higher
12828 XMM registers (xmm16-31 added by AVX512 on x86_64).
12829 (struct i387_xsave): Add space for AVX512 registers.
12830 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12831 Add code to handle AVX512 registers.
12832 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12833 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12834 prototypei from generated file.
12835 (tdesc_amd64_avx512_linux): Likewise.
12836 (init_registers_x32_avx512_linux): Likewise.
12837 (tdesc_x32_avx512_linux): Likewise.
12838 (init_registers_i386_avx512_linux): Likewise.
12839 (tdesc_i386_avx512_linux): Likewise.
12840 (x86_64_regmap): Add AVX512 registers.
12841 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12842 mask.
12843 (initialize_low_arch): Add code to initialize AVX512 registers.
12844
51aa91f9
PA
128452014-04-23 Pedro Alves <palves@redhat.com>
12846
12847 * mem-break.c (find_gdb_breakpoint_at): Make static.
12848 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12849
a4165e94
PA
128502014-04-23 Pedro Alves <palves@redhat.com>
12851
12852 * i386-low.c: Don't include break-common.h here.
12853 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12854 prototype to take target_hw_bp_type as argument instead of a Z
12855 packet char.
12856 * i386-low.h: Include break-common.h here.
12857 (Z_packet_to_hw_type): Declare.
12858 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12859 prototypes.
12860 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12861 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12862 (x86_remove_point): Convert the packet number to a
12863 target_hw_bp_type before calling i386_low_remove_watchpoint.
12864 * win32-i386-low.c (i386_insert_point): Convert the packet number
12865 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12866 (i386_remove_point): Convert the packet number to a
12867 target_hw_bp_type before calling i386_low_remove_watchpoint.
12868
b8acf843
PA
128692014-04-23 Pedro Alves <palves@redhat.com>
12870
12871 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12872
d708bcd1
PA
128732014-04-10 Pedro Alves <palves@redhat.com>
12874
12875 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12876 Check if the condition or command is NULL before checking if the
12877 breakpoint is known. On success, return true.
12878 * mem-break.h (add_breakpoint_condition): Document return.
12879 (add_breakpoint_commands): Add describing comment.
12880 * server.c (skip_to_semicolon): New function.
12881 (process_point_options): Use it.
12882
2eec7d5b
PA
128832014-04-09 Pedro Alves <palves@redhat.com>
12884
12885 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12886 to lwpid_of.
12887
fa96cb38
PA
128882014-02-27 Pedro Alves <palves@redhat.com>
12889
12890 PR 12702
12891 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12892 macros.
12893 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12894 output.
12895 (last_thread_of_process_p): Take a PID argument instead of a
12896 thread pointer.
12897 (linux_wait_for_lwp): Delete.
12898 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12899 functions.
12900 (linux_low_filter_event): New function, party factored out from
12901 linux_wait_for_event.
12902 (linux_wait_for_event): Rename to ...
12903 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12904 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12905 sigsuspend. Check for zombie leaders.
12906 (linux_wait_for_event): Reimplement as wrapper around
12907 linux_wait_for_event_filtered.
12908 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12909 a normal or signal exit is seen, it's the whole process exiting.
12910 (wait_for_sigstop): No longer a for_each_inferior callback.
12911 Rewrite on top of linux_wait_for_event_filtered.
12912 (stop_all_lwps): Call wait_for_sigstop directly.
12913 * server.c (resume, handle_target_event): Handle
12914 TARGET_WAITKIND_NO_RESUMED.
12915
d763de10
JB
129162014-02-26 Joel Brobecker <brobecker@adacore.com>
12917
12918 * win32-low.c (psapi_get_dll_name,
12919 * win32_CreateToolhelp32Snapshot): Delete.
12920 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12921 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12922 Delete.
12923 (handle_load_dll): Add function description.
12924 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12925
850a0f76
JB
129262014-02-26 Joel Brobecker <brobecker@adacore.com>
12927
12928 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12929 Add comment.
12930 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12931 base address when calling win32_add_one_solib.
12932 (handle_load_dll): Delete local variable load_addr.
12933 Remove 0x1000 offset applied to DLL base address when calling
12934 win32_add_one_solib.
12935 (handle_unload_dll): Add comment.
12936
f25b3fc3
JB
129372014-02-26 Joel Brobecker <brobecker@adacore.com>
12938
12939 * win32-low.c (win32_add_all_dlls): Renames
12940 win32_ensure_ntdll_loaded. Rewrite function documentation.
12941 Adjust implementation to always load all DLLs.
12942 Add 0x1000 offset to DLL base address when calling
12943 win32_add_one_solib.
12944 (child_initialization_done): New static global.
12945 (do_initial_child_stuff): Set child_initialization_done to
12946 zero during child initialization, and 1 after. Replace call
12947 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12948 Add comment.
12949 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12950 (handle_unload_dll): Add function documentation.
12951 (get_child_debug_event): Ignore load and unload DLL events
12952 during child initialization.
12953
d86d4aaf
DE
129542014-02-20 Doug Evans <dje@google.com>
12955
3bc32da3 12956 Remove global all_lwps.
d86d4aaf
DE
12957 * inferiors.h (ptid_of): Move here from linux-low.h.
12958 (pid_of, lwpid_of): Ditto.
12959 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12960 parameter is a struct thread_info * now.
12961 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12962 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12963 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12964 directly.
12965 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12966 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12967 * linux-arm-low.c (update_registers_callback): Update, "entry"
12968 parameter is a struct thread_info * now.
12969 Fetch lwpid from current_inferior directly.
12970 (arm_insert_point): Pass &all_threads to find_inferior instead of
12971 &all_lwps.
12972 (arm_remove_point): Ditto.
12973 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12974 (arm_prepare_to_resume): Fetch pid from thread.
12975 (arm_read_description): Fetch lwpid from current_inferior directly.
12976 * linux-low.c (all_lwps): Delete.
12977 (delete_lwp): Delete call to remove_inferior.
12978 (handle_extended_wait): Fetch lwpid from thread.
12979 (add_lwp): Don't set lwp->entry.id. Remove call to
12980 add_inferior_to_list.
12981 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12982 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12983 (kill_one_lwp_callback): Ditto.
12984 (linux_kill): Don't dereference NULL pointer.
12985 Fetch ptid,lwpid from thread.
12986 (get_detach_signal): Fetch ptid from thread.
12987 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12988 Simplify call to regcache_invalidate_thread.
12989 (delete_lwp_callback): Update, "entry" parameter is a
12990 struct thread_info * now. Fetch pid from thread.
12991 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12992 (status_pending_p_callback): Update, "entry" parameter is a
12993 struct thread_info * now. Fetch ptid from thread.
12994 (find_lwp_pid): Update, "entry" parameter is a
12995 struct thread_info * now.
12996 (linux_wait_for_lwp): Fetch pid from thread.
12997 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12998 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12999 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13000 (dequeue_one_deferred_signal): Ditto.
13001 (cancel_breakpoint): Fetch ptid from current_inferior.
13002 (linux_wait_for_event): Pass &all_threads to find_inferior,
13003 not &all_lwps. Fetch ptid, lwpid from thread.
13004 (count_events_callback): Update, "entry" parameter is a
13005 struct thread_info * now.
13006 (select_singlestep_lwp_callback): Ditto.
13007 (select_event_lwp_callback): Ditto.
13008 (cancel_breakpoints_callback): Ditto.
13009 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13010 not &all_lwps.
13011 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13012 (unsuspend_one_lwp): Update, "entry" parameter is a
13013 struct thread_info * now.
13014 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13015 not &all_lwps.
13016 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13017 Fetch lwpid from thread, not lwp.
13018 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13019 Pass &all_threads to find_inferior, not &all_lwps.
13020 (send_sigstop): Fetch lwpid from thread, not lwp.
13021 (send_sigstop_callback): Update, "entry" parameter is a
13022 struct thread_info * now.
13023 (suspend_and_send_sigstop_callback): Ditto.
13024 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13025 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13026 struct thread_info * now.
13027 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13028 from thread, lwp.
13029 (lwp_running): Update, "entry" parameter is a
13030 struct thread_info * now.
13031 (stop_all_lwps): Fetch ptid from thread.
13032 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13033 (linux_resume_one_lwp): Fetch lwpid from thread.
13034 (linux_set_resume_request): Update, "entry" parameter is a
13035 struct thread_info * now. Fetch pid, lwpid from thread.
13036 (resume_status_pending_p): Update, "entry" parameter is a
13037 struct thread_info * now.
13038 (need_step_over_p): Ditto. Fetch lwpid from thread.
13039 (start_step_over): Fetch lwpid from thread.
13040 (linux_resume_one_thread): Update, "entry" parameter is a
13041 struct thread_info * now. Fetch lwpid from thread.
13042 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13043 (proceed_one_lwp): Update, "entry" parameter is a
13044 struct thread_info * now. Fetch lwpid from thread.
13045 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13046 struct thread_info * now.
13047 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13048 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13049 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13050 directly.
13051 (regsets_store_inferior_registers): Ditto.
13052 (fetch_register, store_register): Ditto.
13053 (linux_read_memory, linux_write_memory): Ditto.
13054 (linux_request_interrupt): Ditto.
13055 (linux_read_auxv): Ditto.
13056 (linux_xfer_siginfo): Ditto.
13057 (linux_qxfer_spu): Ditto.
13058 (linux_qxfer_libraries_svr4): Ditto.
13059 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13060 moved to inferiors.h.
13061 (get_lwp): Delete.
13062 (get_thread_lwp): Update.
13063 (struct lwp_info): Delete member "entry". Simplify comment for
13064 member "thread".
13065 (all_lwps): Delete.
13066 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13067 current_inferior directly.
13068 (update_watch_registers_callback): Update, "entry" parameter is a
13069 struct thread_info * now. Fetch pid from thread.
13070 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13071 (mips_insert_point): Fetch lwpid from current_inferior.
13072 Pass &all_threads to find_inferior, not &all_lwps.
13073 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13074 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13075 directly.
13076 (mips_stopped_data_address): Ditto.
13077 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13078 directly.
13079 * linux-tile-low.c (tile_arch_setup): Ditto.
13080 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13081 (update_debug_registers_callback): Update, "entry" parameter is a
13082 struct thread_info * now. Fetch pid from thread.
13083 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13084 Pass &all_threads to find_inferior, not &all_lwps.
13085 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13086 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13087 Pass &all_threads to find_inferior, not &all_lwps.
13088 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13089 (i386_dr_low_get_status): Ditto.
13090 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13091 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13092 (x86_linux_read_description): Ditto.
13093 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13094
3b8361aa
DE
130952014-02-20 Doug Evans <dje@google.com>
13096
13097 * inferiors.c (get_first_inferior): Fix buglet.
13098
f7667f0d
DE
130992014-02-19 Doug Evans <dje@google.com>
13100
13101 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13102 * inferiors.c (add_thread): Change result type to struct thread_info *.
13103 All callers updated.
13104 (add_lwp): Call add_thread here instead of in callers.
13105 All callers updated.
13106 * linux-low.h (get_lwp_thread): Rewrite.
13107 (struct lwp_info): New member "thread".
13108
b3312d80
DE
131092014-02-19 Doug Evans <dje@google.com>
13110
13111 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13112 All callers updated.
13113
ecc6f45c
DE
131142014-02-19 Doug Evans <dje@google.com>
13115
13116 * inferiors.c (add_thread): Fix whitespace.
13117
649ebbca
DE
131182014-02-19 Doug Evans <dje@google.com>
13119
13120 * dll.c (clear_dlls): Replace accessing list implemention details
13121 with API function.
13122 * gdbthread.h (get_first_thread): Declare.
13123 * inferiors.c (for_each_inferior_with_data): New function.
13124 (get_first_thread): New function.
13125 (find_thread_ptid): Simplify.
13126 (get_first_inferior): New function.
13127 (clear_list): Delete.
13128 (one_inferior_p): New function.
13129 (clear_inferior_list): New function.
13130 (clear_inferiors): Update.
13131 * inferiors.h (for_each_inferior_with_data): Declare.
13132 (clear_inferior_list): Declare.
13133 (one_inferior_p): Declare.
13134 (get_first_inferior): Declare.
13135 * linux-low.c (linux_wait_for_event): Replace accessing list
13136 implemention details with API function.
13137 * server.c (target_running): Ditto.
13138 (accumulate_file_name_length): New function.
13139 (emit_dll_description): New function.
13140 (handle_qxfer_libraries): Replace accessing list implemention
13141 details with API function.
13142 (handle_qxfer_threads_worker): New function.
13143 (handle_qxfer_threads_proper): Replace accessing list implemention
13144 details with API function.
13145 (handle_query): Ditto.
13146 (visit_actioned_threads_callback_ftype): New typedef.
13147 (visit_actioned_threads_data): New struct.
13148 (visit_actioned_threads): Rewrite to be find_inferior callback.
13149 (resume): Call find_inferior.
13150 (handle_status): Replace accessing list implemention
13151 details with API function.
13152 (process_serial_event): Replace accessing list implemention details
13153 with API function.
13154 * target.c (set_desired_inferior): Replace accessing list implemention
13155 details with API function.
13156 * tracepoint.c (same_process_p): New function.
13157 (gdb_agent_about_to_close): Replace accessing list implemention
13158 details with API function.
13159 * win32-low.c (child_delete_thread): Replace accessing list
13160 implemention details with API function.
13161 (match_dll_by_basename): New function.
13162 (dll_is_loaded_by_basename): New function.
13163 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13164 details call to dll_is_loaded_by_basename.
13165
80894984
DE
131662014-02-19 Doug Evans <dje@google.com>
13167
13168 * dll.h (struct dll_info): Add comment.
13169 * gdbthread.h (struct thread_info): Add comment.
13170 (current_ptid): Simplify.
13171 * inferiors.c (add_process): Update.
13172 (remove_process): Update.
13173 * inferiors.h (struct process_info): Rename member "head" to "entry".
13174 * linux-low.c (delete_lwp): Update.
13175 (add_lwp): Update.
13176 (last_thread_of_process_p): Update.
13177 (kill_one_lwp_callback, linux_kill): Update.
13178 (status_pending_p_callback): Update.
13179 (wait_for_sigstop): Update. Simplify read of ptid.
13180 (start_step_over): Update.
13181 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13182 (get_lwp_thread): Update.
13183 (struct lwp_info): Rename member "head" to "entry".
13184 * regcache.h (inferior_list_entry): Delete.
13185 * server.c (kill_inferior_callback): Update.
13186 (detach_or_kill_inferior_callback): Update.
13187 (print_started_pid): Update.
13188 (print_attached_pid): Update.
13189 (process_serial_event): Simplify read of ptid.
13190 * thread-db.c (thread_db_create_event): Update.
13191 (thread_db_get_tls_address): Update.
13192 * win32-low.c (current_inferior_ptid): Simplify.
13193
46917d26
TT
131942014-02-19 Tom Tromey <tromey@redhat.com>
13195
13196 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13197 argument.
13198 (target_supports_btrace): Update.
13199
0759a81e
YQ
132002014-02-14 Yao Qi <yao@codesourcery.com>
13201
13202 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13203 (rsp-low-ipa.o): New target.
13204
a7191e8b
TT
132052014-02-12 Tom Tromey <tromey@redhat.com>
13206
13207 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13208 convert_ascii_to_int.
13209 * regcache.c (registers_to_string): Likewise.
13210 * remote-utils.c (decode_M_packet): Likewise.
13211 * server.c (process_serial_event): Likewise.
13212
ff0e980e
TT
132132014-02-12 Tom Tromey <tromey@redhat.com>
13214
13215 * server.c (handle_query, handle_v_run): Use hex2bin, not
13216 unhexify.
13217 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13218
e9371aff
TT
132192014-02-12 Tom Tromey <tromey@redhat.com>
13220
13221 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13222 convert_int_to_ascii.
13223 * regcache.c (registers_to_string, collect_register_as_string):
13224 Likewise.
13225 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13226 Likewise.
13227 * server.c (process_serial_event): Likewise.
13228 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13229 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13230
971dc0b8
TT
132312014-02-12 Tom Tromey <tromey@redhat.com>
13232
13233 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13234 bin2hex, not hexify.
13235 * tracepoint.c (cmd_qtstatus): Likewise.
13236
0a822afb
TT
132372014-02-12 Tom Tromey <tromey@redhat.com>
13238
13239 * remote-utils.c (monitor_output): Pass explicit length to
13240 hexify.
13241
9c3d6531
TT
132422014-02-12 Tom Tromey <tromey@redhat.com>
13243
13244 * tracepoint.c: Include rsp-low.h.
13245 * server.c: Include rsp-low.h.
13246 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13247 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13248 declare.
13249 * remote-utils.c: Include rsp-low.h.
13250 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13251 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13252 (convert_int_to_ascii, convert_ascii_to_int): Move to
13253 common/rsp-low.c.
13254 * regcache.c: Include rsp-low.h.
13255 * ax.c: Include rsp-low.h.
13256 * Makefile.in (SFILES): Add common/rsp-low.c.
13257 (OBS): Add rsp-low.o.
13258 (rsp-low.o): New target.
13259
01fd3ea5
TT
132602014-02-12 Tom Tromey <tromey@redhat.com>
13261
13262 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13263 Include print-utils.h.
13264 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13265 (plongest, thirty_two, phex_nz): Remove.
13266 * Makefile.in (SFILES): Add common/print-utils.c.
13267 (OBS): Add print-utils.o.
13268 (print-utils-ipa.o): New target.
13269 (print-utils.o): New target.
13270 (IPA_OBJS): Add print-utils-ipa.o.
13271
e99dc820
TT
132722014-02-06 Tom Tromey <tromey@redhat.com>
13273
13274 * Makefile.in (SFILES): Fix indentation.
13275
ee1e2d4f
DE
132762014-02-05 Doug Evans <dje@google.com>
13277
13278 * linux-low.c (linux_wait_for_event): Improve comment.
13279 (linux_wait_1): Keep current_inferior in sync with event_child.
13280
f5a02773
DE
132812014-01-22 Doug Evans <dje@google.com>
13282
13283 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13284
87ce2a04
DE
132852014-01-22 Doug Evans <dje@google.com>
13286
13287 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13288 * configure: Regenerate.
13289 * config.in: Regenerate.
13290 * Makefile.in (SFILES): Add debug.c.
13291 (OBS): Add debug.o.
13292 * debug.c: New file.
13293 * debug.h: New file.
13294 * linux-aarch64-low.c (*): Update all debugging printfs to use
13295 debug_printf instead of fprintf.
13296 * linux-arm-low.c (*): Ditto.
13297 * linux-cris-low.c (*): Ditto.
13298 * linux-crisv32-low.c (*): Ditto.
13299 * linux-m32r-low.c (*): Ditto.
13300 * linux-sparc-low.c (*): Ditto.
13301 * linux-x86.c (*): Ditto.
13302 * linux-low.c (*): Ditto.
13303 (linux_wait_1): Add calls to debug_enter, debug_exit.
13304 (linux_wait): Remove redundant debugging printf.
13305 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13306 (linux_resume, unstop_all_lwps): Ditto.
13307 * mem-break.c (*): Update all debugging printfs to use
13308 debug_printf instead of fprintf.
13309 * remote-utils.c (*): Ditto.
13310 * thread-db.c (*): Ditto.
13311 * server.c #include <ctype.h>, "gdb_vecs.h".
13312 (debug_threads): Moved to debug.c.
13313 (*): Update all debugging printfs to use debug_printf instead of
13314 fprintf.
13315 (start_inferior): Replace call to fflush with call to debug_flush.
13316 (monitor_show_help): Mention set debug-format.
13317 (parse_debug_format_options): New function.
13318 (handle_monitor_command): Handle "monitor set debug-format".
13319 (gdbserver_usage): Mention --debug-format.
13320 (main): Parse --debug-format.
13321 * server.h (debug_threads): Declaration moved to debug.h.
13322 #include "debug.h".
13323 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13324 trace_debug_1 that uses debug_printf.
13325 (tracepoint_look_up_symbols): Update all debugging printfs to use
13326 debug_printf instead of fprintf.
13327
e671835b
BS
133282014-01-20 Baruch Siach <baruch@tkos.co.il>
13329
13330 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13331 sys/ptrace.h.
13332
b5737fa9
PA
133332014-01-17 Pedro Alves <palves@redhat.com>
13334
ea38d2a9 13335 PR build/16445
c7faa97a
PA
13336 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13337 defined after including gdb_proc_service.h.
b5737fa9 13338
40ed484e
DE
133392014-01-16 Doug Evans <dje@google.com>
13340
13341 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13342 (match_dll): Use it.
13343
969c39fb
MM
133442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13345
13346 * target.h (target_ops) <read_btrace>: Change parameters and
13347 return type to allow error reporting.
13348 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13349 trace reading errors on.
13350 * linux-low.c (linux_low_read_btrace): Pass trace reading
13351 errors on.
13352 (linux_low_disable_btrace): New.
13353
ab7f45ba
DE
133542014-01-15 Doug Evans <dje@google.com>
13355
13356 * inferiors.c (thread_id_to_gdb_id): Delete.
13357 * inferiors.h (thread_id_to_gdb_id): Delete.
13358
66af0f44
EZ
133592014-01-13 Eli Zaretskii <eliz@gnu.org>
13360
13361 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13362 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13363 versions.
13364
9939e131
PA
133652014-01-08 Pedro Alves <palves@redhat.com>
13366
13367 * server.c (handle_status): Don't discard previous queued stop
13368 replies or thread's pending status here.
13369 (main) <disconnection>: Do it here instead.
13370
b7ea362b
PA
133712014-01-08 Pedro Alves <palves@redhat.com>
13372
13373 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13374 * server.c (visit_actioned_threads, handle_pending_status): New
13375 function.
13376 (handle_v_cont): Factor out parts to ...
13377 (resume): ... this new function. If in all-stop, and a thread
13378 being resumed has a pending status, report it without actually
13379 resuming.
13380 (myresume): Adjust to use the new 'resume' function.
13381 (clear_pending_status_callback, set_pending_status_callback)
13382 (find_status_pending_thread_callback): New functions.
13383 (handle_status): Handle the case of multiple threads having
13384 interesting statuses to report. Report threads' real last signal
13385 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13386 with an interesting thread to report the status for, instead of
13387 always reporting the status of the first thread.
13388
28498c42
JB
133892014-01-01 Joel Brobecker <brobecker@adacore.com>
13390
13391 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13392 * gdbreplay.c (gdbreplay_version): Likewise.
13393
f45c82da
YZ
133942013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13395
13396 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13397 iov.iov_len with the real length in use.
13398
379a5e2d
JB
133992013-12-13 Joel Brobecker <brobecker@adacore.com>
13400
13401 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13402 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13403 for all targets that use win32-low.c.
13404 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13405 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13406
4210d83e
PA
134072013-12-13 Pedro Alves <palves@redhat.com>
13408
13409 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13410 if equal to TARGET_WAITKIND_LOADED.
13411 * win32-low.c (cached_status): New static global.
13412 (win32_wait): Add declaration.
13413 (do_initial_child_stuff): Flush all initial pending debug events
13414 up to the initial breakpoint.
13415 (win32_wait): If CACHED_STATUS was set, return that instead
13416 of doing a real wait. Remove the code resuming the execution
13417 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13418 during the initial phase. Also remove the code changing
13419 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13420 TARGET_WAITKIND_STOPPED.
13421
e7f0d979
YQ
134222013-12-11 Yao Qi <yao@codesourcery.com>
13423
13424 * notif.c (handle_notif_ack): Return 0 if no notification
13425 matches.
13426
ebcf782c
DE
134272013-11-20 Doug Evans <dje@google.com>
13428
13429 * linux-low.c (linux_set_resume_request): Fix comment.
13430
20ad9378
DE
134312013-11-20 Doug Evans <dje@google.com>
13432
13433 * linux-low.c (resume_status_pending_p): Tweak comment.
13434
a196ebeb
WT
134352013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13436
13437 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13438 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13439 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13440 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13441 (srv_amd64_regobj): Add amd64-mpx.o.
13442 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13443 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13444 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13445 * i387-fp.c (num_pl_bnd_register) Added constant.
13446 (num_pl_bnd_cfg_registers) Added constant.
13447 (struct i387_xsave) Added reserved area and MPX fields.
13448 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13449 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13450 function.
13451 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13452 (init_registers_amd64_mpx_linux): Declare new function.
13453 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13454 (x86_64_regmap): Add MPX registers.
13455 (x86_linux_read_description): Add MPX case.
13456 (initialize_low_arch): Initialize MPX targets.
13457
0080a2f6
TT
134582013-11-18 Tom Tromey <tromey@redhat.com>
13459
13460 * configure: Rebuild.
13461 * configure.ac: Don't check for stdlib.h.
13462 * gdbreplay.c: Unconditionally include stdlib.h.
13463
2978b111
TT
134642013-11-18 Tom Tromey <tromey@redhat.com>
13465
13466 * config.in: Rebuild.
13467 * configure: Rebuild.
13468 * configure.ac: Don't use AC_HEADER_DIRENT.
13469
a3d08894
TT
134702013-11-18 Tom Tromey <tromey@redhat.com>
13471
13472 * server.h: Don't check HAVE_STRING_H.
13473 * gdbreplay.c: Don't check HAVE_STRING_H.
13474 * configure: Rebuild.
13475
0a5dd17d
TT
134762013-11-18 Tom Tromey <tromey@redhat.com>
13477
13478 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13479 LIBGNU.
13480
1bd2f0ba
TT
134812013-11-08 Tom Tromey <tromey@redhat.com>
13482
13483 * configure, config.in: Rebuild.
13484 * configure.ac: Remove unused configury.
13485
3266f10b
TT
134862013-11-08 Tom Tromey <tromey@redhat.com>
13487
13488 * acinclude.m4: Include common.m4, codeset.m4.
13489 * configure, config.in: Rebuild.
13490 * configure.ac: Use GDB_AC_COMMON.
13491
6682d959
AA
134922013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13493
13494 * linux-s390-low.c (HWCAP_S390_TE): New define.
13495 (s390_arch_setup): Consider the TE field in the HWCAP for
13496 determining 'have_regset_tdb'.
13497
fd0a4d76
SDJ
134982013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13499
13500 PR gdb/16014
13501 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13502 call to sizeof.
13503
1a3d890b
PA
135042013-10-02 Pedro Alves <palves@redhat.com>
13505
13506 * server.c (process_serial_event): Don't output "GDBserver
13507 exiting" if GDB is connected through stdio.
13508 * target.c (mywait): Likewise, be silent if GDB is connected
13509 through stdio.
13510
97ad4581
JB
135112013-10-01 Joel Brobecker <brobecker@adacore.com>
13512
13513 * lynx-low.c (lynx_add_threads_after_attach): New function.
13514 (lynx_attach): Remove call to add_thread. Add call to
13515 lynx_add_threads_after_attach instead.
13516
5b4e221c
MF
135172013-09-28 Mike Frysinger <vapier@gentoo.org>
13518
13519 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13520 * config.in, configure: Regenerated.
13521
ee47b2f8
YQ
135222013-09-18 Yao Qi <yao@codesourcery.com>
13523
13524 PR server/15959
13525 * server.c (start_inferior): Clear 'resume_info'.
13526
d6707650 135272013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13528
d6707650
JW
13529 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13530 for each register.
13531
9243dd0e 135322013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13533
9243dd0e
JW
13534 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13535 linux-tile-low.o to srv_tgtobj.
13536
c623a6ef
WN
135372013-09-16 Will Newton <will.newton@linaro.org>
13538
13539 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13540 out regs.
13541
fb71d39e
PA
135422013-09-06 Pedro Alves <palves@redhat.com>
13543
13544 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13545 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13546 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13547 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13548 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13549 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13550
8e7e9910
PA
135512013-09-06 Pedro Alves <palves@redhat.com>
13552
13553 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13554 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13555
7c3a12ca
PA
135562013-09-06 Pedro Alves <palves@redhat.com>
13557
13558 * linux-amd64-ipa.c: Include tracepoint.h.
13559 * linux-i386-ipa.c: Include tracepoint.h.
13560
8eb3d7b6
RW
135612013-09-06 Ricard Wanderlof <ricardw@axis.com>
13562
13563 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13564 (ps_get_thread_area): New function.
13565
eddddb9d
RW
135662013-09-06 Ricard Wanderlof <ricardw@axis.com>
13567
13568 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13569 (initialize_low_arch): Call init_registers_crisv32 rather than
13570 init_register_crisv32.
13571
533b0600
PA
135722013-09-05 Pedro Alves <palves@redhat.com>
13573
13574 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13575 to ...
13576 * hostio.h: ... this new file.
13577 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13578 win32-low.c: Include hostio.h.
13579
0ce3d3b5
PA
135802013-09-05 Pedro Alves <palves@redhat.com>
13581
13582 * server.h (gdb_client_data, handler_func, callback_handler_func)
13583 (delete_file_handler, add_file_handler, append_callback_event)
13584 (delete_callback_event, start_event_loop, initialize_event_loop):
13585 Move to event-loop.h and include it.
13586 * event-loop.h: New file.
13587
799cdc37
PA
135882013-09-05 Pedro Alves <palves@redhat.com>
13589
13590 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13591 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13592 (loaded_dll, unloaded_dll): Move to ...
13593 * dll.h: ... this new file.
13594 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13595
6a6bbd9d
PA
135962013-09-05 Pedro Alves <palves@redhat.com>
13597
13598 * server.h (current_process, get_thread_process, all_processes)
13599 (add_inferior_to_list, for_each_inferior, current_inferior)
13600 (remove_inferior, add_process, remove_process, find_process_pid)
13601 (have_started_inferiors_p, have_attached_inferiors_p)
13602 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13603 (clear_inferiors, find_inferior, find_inferior_id)
13604 (inferior_target_data, set_inferior_target_data)
13605 (inferior_regcache_data, set_inferior_regcache_data): Move to
13606 inferiors.h, and include it.
13607 * inferiors.h: New file.
13608
f699aaba
PA
136092013-09-05 Pedro Alves <palves@redhat.com>
13610
13611 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13612 Move ...
72f4393d 13613 * ax.h: ... here.
f699aaba 13614
c144c7a0
PA
136152013-09-05 Pedro Alves <palves@redhat.com>
13616
13617 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13618 tracepoint.h.
13619 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13620 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13621 (handle_tracepoint_general_set, handle_tracepoint_query)
13622 (tracepoint_finished_step, tracepoint_was_hit)
13623 (release_while_stepping_state_list, current_traceframe)
13624 (in_readonly_region, traceframe_read_mem)
13625 (fetch_traceframe_registers, traceframe_read_sdata)
13626 (traceframe_read_info, struct fast_tpoint_collect_status)
13627 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13628 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13629 (supply_fast_tracepoint_registers)
13630 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13631 (ipa_tdesc, claim_trampoline_space)
13632 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13633 (agent_mem_read, agent_get_trace_state_variable_value)
13634 (agent_set_trace_state_variable_value, agent_tsv_read)
13635 (agent_mem_read_string, get_raw_reg_func_addr)
13636 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13637 * tracepoint.h: ... this new file.
13638
ff42e6ab
PA
136392013-09-05 Pedro Alves <palves@redhat.com>
13640
13641 * server.h (perror_with_name, error, fatal, warning, paddress)
13642 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13643 include it.
13644 * utils.h: New file.
13645
541af0f4
PA
136462013-09-05 Pedro Alves <palves@redhat.com>
13647
13648 * server.h (remote_debug, noack_mode, transport_is_reliable)
13649 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13650 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13651 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13652 (write_enn, initialize_async_io, enable_async_io)
13653 (disable_async_io, check_remote_input_interrupt_request)
13654 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13655 (dead_thread_notify, prepare_resume_reply)
13656 (decode_address_to_semicolon, decode_address, decode_m_packet)
13657 (decode_M_packet, decode_X_packet, decode_xfer_write)
13658 (decode_search_memory_packet, unhexify, hexify)
13659 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13660 (look_up_one_symbol, relocate_instruction)
13661 (monitor_output): Move to remote-utils.h, and include it.
13662 * remote-utils.h: New file.
13663
eebdf26b
PA
136642013-09-05 Pedro Alves <palves@redhat.com>
13665
13666 * server.h (_): Delete.
13667
3aafd2ff
PA
136682013-09-02 Pedro Alves <palves@redhat.com>
13669
13670 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13671 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13672 allocated.
13673 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13674
cee83bcb
PM
136752013-09-02 Pierre Muller <muller@sourceware.org>
13676
13677 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13678 or WriteProcessMemory complete successfully and handle
13679 ERROR_PARTIAL_COPY error.
13680
9a13b2fa
PA
136812013-09-02 Pedro Alves <palves@redhat.com>
13682
13683 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13684 error instead of EIO.
13685
602e3198
JK
136862013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13687
13688 PR server/15604
13689 * linux-low.c: Include filestuff.h.
13690 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13691 * lynx-low.c: Include filestuff.h.
13692 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13693 * server.c: Include filestuff.h.
13694 (main): Call notice_open_fds.
13695 * spu-low.c: Include filestuff.h.
13696 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13697
96d7229d
LM
136982013-08-22 Luis Machado <lgustavo@codesourcery.com>
13699
13700 * Makefile.in: Explain why ../target and ../nat are not
13701 listed as include file search paths.
13702 (linux-waitpid.o): New object file rule.
13703 * configure.srv (srv_native_linux_obj): New variable.
13704 Replace all occurrences of linux native object files with
13705 $srv_native_linux_obj.
13706 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13707 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13708 (linux_enable_event_reporting): Remove declaration.
13709 (my_waitpid): Moved to common/linux-waitpid.c.
13710 (linux_wait_for_event): Pass ptid when calling
13711 linux_enable_event_reporting.
13712 (linux_supports_tracefork_flag): Remove.
13713 (linux_enable_event_reporting): Likewise.
13714 (linux_tracefork_grandchild): Remove.
13715 (STACK_SIZE): Moved to common/linux-ptrace.c.
13716 (linux_tracefork_child): Remove.
13717 (linux_test_for_tracefork): Remove.
13718 (linux_look_up_symbols): Call linux_supports_traceclone.
13719 (initialize_low): Remove call to linux_test_for_tracefork.
13720 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13721 common/linux-ptrace.h.
13722 (PTRACE_TYPE_ARG4): Likewise.
13723 Include linux-ptrace.h.
13724
32940073
PA
137252013-08-21 Pedro Alves <palves@redhat.com>
13726
13727 * config.in: Renegerate.
13728
33b60d58 137292013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13730
33b60d58
LM
13731 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13732 (SFILES): Remove $(srcdir)/common/target-common.c and
13733 add $(srcdir)/target/waitstatus.c.
13734 (OBS): Remove target-common.o and add waitstatus.o.
13735 (server_h): Remove $(srcdir)/../common/target-common.h and
13736 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13737 and $(srcdir)/../target/waitstatus.h.
13738 (target-common.o): Remove.
13739 (waitstatus.o): New target object file.
13740 * target.h: Do not include target-common.h and
13741 include target/resume.h, target/wait.h and
13742 target/waitstatus.h.
13743
b8e1b30e
LM
137442013-08-13 Luis Machado <lgustavo@codesourcery.com>
13745
13746 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13747 to PTRACE_TYPE_ARG3.
13748 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13749 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13750 PTRACE_TYPE_ARG4.
13751 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13752 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13753
7a60ad40
YQ
137542013-07-27 Jie Zhang <jie@codesourcery.com>
13755 Daniel Jacobowitz <dan@codesourcery.com>
13756 Yao Qi <yao@codesourcery.com>
13757
13758 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13759 (mips-linux-watch.o): New rule.
13760 (mips_linux_watch_h): New variable.
13761 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13762 srv_tgtobj.
13763 * linux-mips-low.c: Include mips-linux-watch.h.
13764 (struct arch_process_info, struct arch_lwp_info): New.
13765 (update_watch_registers_callback): New function.
13766 (mips_linux_new_process, mips_linux_new_thread) New functions.
13767 (mips_linux_prepare_to_resume, mips_insert_point): New
13768 functions.
13769 (mips_remove_point, mips_stopped_by_watchpoint): New
13770 functions.
13771 (rsp_bp_type_to_target_hw_bp_type): New function.
13772 (mips_stopped_data_address): New function.
13773 (the_low_target): Add watchpoint support functions.
13774
de6f69ad
YQ
137752013-07-27 Yao Qi <yao@codesourcery.com>
13776
13777 * i386-low.c: Include break-common.h.
13778 (enum target_hw_bp_type): Remove.
13779
3360c0bf
LM
137802013-07-24 Luis Machado <lgustavo@codesourcery.com>
13781
13782 * Makefile.in (SFILES): /common/target-common.c.
13783 (OBS): Add target-common.o.
13784 (server_h): Add $(srcdir)/../common/target-common.h.
13785 (target-common.o): New target.
13786 * server.c (queue_stop_reply_callback): Free
13787 status string after use.
13788 * target.c (target_waitstatus_to_string): Remove.
13789 * target.h: Include target-common.h.
13790 (resume_kind): Likewise.
13791 (target_waitkind): Likewise.
13792 (target_waitstatus): Likewise.
13793 (TARGET_WNOHANG): Likewise.
13794
bd885420
YQ
137952013-07-04 Yao Qi <yao@codesourcery.com>
13796
13797 * Makefile.in (host_alias): Use @host_noncanonical@.
13798 (target_alias): Use @target_noncanonical@.
13799 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13800 ACX_NONCANONICAL_HOST.
13801 * configure: Regenerated.
13802
13803 Revert:
13804 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13805
13806 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13807 * configure: Rebuild.
13808 * Makefile.in (version_host, version_target): Get from configure.
13809 (version.c): Use $(version_host) and $(version_target).
13810
17ef446e
PA
138112013-07-03 Pedro Alves <palves@redhat.com>
13812
13813 * Makefile.in (config.status): Depend on development.sh.
13814 * acinclude.m4: Include libmcheck.m4.
13815 * configure: Regenerate.
13816
7a9a7487
MG
138172013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13818
13819 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13820 attribute inside the parentheses.
13821 (winapi_DebugSetProcessKillOnExit): Ditto.
13822 (winapi_DebugBreakProcess): Ditto.
13823 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13824
49b64de6
MG
138252013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13826
13827 * notif.h (notif_event): Add a dummy member to avoid compiler
13828 errors.
13829
d5749ee7
PA
138302013-07-01 Pedro Alves <palves@redhat.com>
13831
13832 * hostio.c (HOSTIO_PATH_MAX): Define.
13833 (require_filename, handle_open, handle_unlink, handle_readlink):
13834 Use it.
13835
d8d2a3ee
PA
138362013-07-01 Pedro Alves <palves@redhat.com>
13837
13838 * server.h: Include "pathmax.h".
13839 * linux-low.c: Don't include sys/param.h.
13840 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13841 MAXPATHLEN.
13842 * win32-low.c: Don't include sys/param.h.
13843 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13844
bc7dea8d
PA
138452013-07-01 Pedro Alves <palves@redhat.com>
13846
13847 * event-loop.c: Don't check HAVE_UNISTD_H before including
13848 <unistd.h>.
13849 * gdbreplay.c: Likewise.
13850 * remote-utils.c: Likewise.
13851 * server.c: Likewise.
13852 * configure.ac: Don't check for unistd.h.
13853 * configure: Regenerate.
13854
d6c2da54
TT
138552013-06-28 Tom Tromey <tromey@redhat.com>
13856
13857 * Makefile.in (version.c): Use version.in, not
13858 common/version.in.
13859
257b6bec
MG
138602013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13861
13862 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13863 * configure: Rebuild.
13864 * Makefile.in (version_host, version_target): Get from configure.
13865 (version.c): Use $(version_host) and $(version_target).
13866
86ebe149
DK
138672013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13868
13869 Fix trace-status to output user name without trailing colon.
13870 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13871
f30aa5af
DK
138722013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13873
13874 Fix trace-status to output proper start-time and stop-time.
13875 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13876 output start time and stop time in hex as gdb expects.
13877
28a93511
YQ
138782013-06-26 Pedro Alves <pedro@codesourcery.com>
13879
13880 * tracepoint.c (build_traceframe_info_xml): Output trace state
13881 variables present in the trace buffer.
13882
01208463
TT
138832013-06-24 Tom Tromey <tromey@redhat.com>
13884
13885 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13886 create-version.sh.
13887 (version.o): Remove.
13888 * gdbreplay.c: Include version.h.
13889 (version, host_name): Don't declare.
13890 * server.h: Include version.h.
13891 (version, host_name): Don't declare.
13892
760256f9
PA
138932013-06-12 Pedro Alves <palves@redhat.com>
13894
13895 * linux-x86-low.c (linux_is_elf64): Delete global.
13896 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13897 with local linux_pid_exe_is_elf_64_file use.
13898
030031ee
PA
138992013-06-11 Pedro Alves <palves@redhat.com>
13900
13901 * linux-low.c (regset_disabled, disable_regset): New functions.
13902 (regsets_fetch_inferior_registers)
13903 (regsets_store_inferior_registers): Use them.
13904 (initialize_regsets_info); Don't allocate the disabled_regsets
13905 array here.
13906 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13907 comment.
13908
5da6eb0a
PA
139092013-06-11 Pedro Alves <palves@redhat.com>
13910
13911 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13912 xmalloc.
13913
7e5aaa09
PA
139142013-06-11 Pedro Alves <palves@redhat.com>
13915
13916 * linux-x86-low.c (initialize_low_arch): Call
13917 init_registers_x32_avx_linux.
13918
d878444c
JK
139192013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13920
13921 Fix compatibility with Android Bionic.
13922 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13923 it is not empty.
13924
3aee8918
PA
139252013-06-07 Pedro Alves <palves@redhat.com>
13926
5f2b57b5 13927 PR server/14823
3aee8918
PA
13928 * Makefile.in (OBS): Add tdesc.o.
13929 (IPA_OBJS): Add tdesc-ipa.o.
13930 (tdesc-ipa.o): New rule.
13931 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13932 interface.
13933 * linux-low.c (new_inferior): Delete.
13934 (disabled_regsets, num_regsets): Delete.
13935 (linux_add_process): Adjust to set the new per-process
13936 new_inferior flag.
13937 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13938 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13939 was a stop. When calling arch_setup, switch the current inferior
13940 to the thread that got an event.
13941 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13942 (regsets_fetch_inferior_registers)
13943 (regsets_store_inferior_registers): New regsets_info parameter.
13944 Adjust to use it.
13945 (linux_register_in_regsets): New regs_info parameter. Adjust to
13946 use it.
13947 (register_addr, fetch_register, store_register): New usrregs_info
13948 parameter. Adjust to use it.
13949 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13950 parameter regs_info. Adjust to use it.
13951 (linux_fetch_registers): Get the current inferior's regs_info, and
13952 adjust to use it.
13953 (linux_store_registers): Ditto.
13954 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13955 (initialize_low): Don't initialize the target_regsets here. Call
13956 initialize_low_arch.
13957 * linux-low.h (target_regsets): Delete declaration.
13958 (struct regsets_info): New.
13959 (struct usrregs_info): New.
13960 (struct regs_info): New.
13961 (struct process_info_private) <new_inferior>: New field.
13962 (struct linux_target_ops): Delete the num_regs, regmap, and
13963 regset_bitmap fields. New field regs_info.
13964 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13965 * i387-fp.c (num_xmm_registers): Delete.
13966 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13967 calls to new interface.
13968 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13969 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13970 Infer the number of xmm registers from the regcache's target
13971 description.
13972 * i387-fp.h (num_xmm_registers): Delete.
13973 * inferiors.c (add_thread): Don't install the thread's regcache
13974 here.
13975 * proc-service.c (gregset_info): Fetch the current inferior's
13976 regs_info. Adjust to use it.
13977 * regcache.c: Include tdesc.h.
13978 (register_bytes, reg_defs, num_registers)
13979 (gdbserver_expedite_regs): Delete.
13980 (get_thread_regcache): If the thread doesn't have a regcache yet,
13981 create one, instead of aborting gdbserver.
13982 (regcache_invalidate_one): Rename to ...
13983 (regcache_invalidate_thread): ... this.
13984 (regcache_invalidate_one): New.
13985 (regcache_invalidate): Only invalidate registers of the current
13986 process.
13987 (init_register_cache): Add target_desc parameter, and use it.
13988 (new_register_cache): Ditto. Assert the target description has a
13989 non zero registers_size.
13990 (regcache_cpy): Add assertions. Adjust.
13991 (realloc_register_cache, set_register_cache): Delete.
13992 (registers_to_string, registers_from_string): Adjust.
13993 (find_register_by_name, find_regno, find_register_by_number)
13994 (register_cache_size): Add target_desc parameter, and use it.
13995 (free_register_cache_thread, free_register_cache_thread_one)
13996 (regcache_release, register_cache_size): New.
13997 (register_size): Add target_desc parameter, and use it.
13998 (register_data, supply_register, supply_register_zeroed)
13999 (supply_regblock, supply_register_by_name, collect_register)
14000 (collect_register_as_string, collect_register_by_name): Adjust.
14001 * regcache.h (struct target_desc): Forward declare.
14002 (struct regcache) <tdesc>: New field.
14003 (init_register_cache, new_register_cache): Add target_desc
14004 parameter.
14005 (regcache_invalidate_thread): Declare.
14006 (regcache_invalidate_one): Delete declaration.
14007 (regcache_release): Declare.
14008 (find_register_by_number, register_cache_size, register_size)
14009 (find_regno): Add target_desc parameter.
14010 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14011 declarations.
14012 * remote-utils.c: Include tdesc.h.
14013 (outreg, prepare_resume_reply): Adjust.
14014 * server.c: Include tdesc.h.
14015 (gdbserver_xmltarget): Delete declaration.
14016 (get_features_xml, process_serial_event): Adjust.
14017 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14018 declare.
14019 (struct process_info) <tdesc>: New field.
14020 (ipa_tdesc): Declare.
14021 * tdesc.c: New file.
14022 * tdesc.h: New file.
14023 * tracepoint.c: Include tdesc.h.
14024 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14025 (get_context_regcache): Adjust to pass ipa_tdesc down.
14026 (do_action_at_tracepoint): Adjust to get the register cache size
14027 from the context regcache's description.
14028 (traceframe_walk_blocks): Adjust to get the register cache size
14029 from the current trace frame's description.
14030 (traceframe_get_pc): Adjust to get current trace frame's
14031 description and pass it down.
14032 (gdb_collect): Adjust to get the register cache size from the
14033 IPA's description.
14034 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14035 (gdbserver_xmltarget): Delete.
14036 (initialize_low_tracepoint): Set the ipa's target description.
14037 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14038 (initialize_low_tracepoint): Set the ipa's target description.
14039 * linux-x86-low.c: Include tdesc.h.
14040 [__x86_64__] (is_64bit_tdesc): New.
14041 (ps_get_thread_area, x86_get_thread_area): Use it.
14042 (i386_cannot_store_register): Rename to ...
14043 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14044 (i386_cannot_fetch_register): Rename to ...
14045 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14046 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14047 to new interface.
14048 (target_regsets): Rename to ...
14049 (x86_regsets): ... this.
14050 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14051 interface.
14052 (x86_siginfo_fixup): Use is_64bit_tdesc.
14053 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14054 (tdesc_x32_avx_linux, tdesc_x32_linux)
14055 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14056 Declare.
14057 (x86_linux_update_xmltarget): Delete.
14058 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14059 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14060 (AMD64_LINUX_USER64_CS): New.
14061 (x86_linux_read_description): New, based on
14062 x86_linux_update_xmltarget.
14063 (same_process_callback): New.
14064 (x86_arch_setup_process_callback): New.
14065 (x86_linux_update_xmltarget): New.
14066 (x86_regsets_info): New.
14067 (amd64_linux_regs_info): New.
14068 (i386_linux_usrregs_info): New.
14069 (i386_linux_regs_info): New.
14070 (x86_linux_regs_info): New.
14071 (x86_arch_setup): Reimplement.
14072 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14073 (x86_emit_ops): Ditto.
14074 (the_low_target): Adjust. Install x86_linux_regs_info,
14075 x86_cannot_fetch_register, and x86_cannot_store_register.
14076 (initialize_low_arch): New.
14077 * linux-ia64-low.c (tdesc_ia64): Declare.
14078 (ia64_fetch_register): Adjust.
14079 (ia64_usrregs_info, regs_info): New globals.
14080 (ia64_regs_info): New function.
14081 (the_low_target): Adjust.
14082 (initialize_low_arch): New function.
14083 * linux-sparc-low.c (tdesc_sparc64): Declare.
14084 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14085 Adjust.
14086 (sparc_arch_setup): New function.
14087 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14088 (the_low_target): Adjust.
14089 (initialize_low_arch): New function.
14090 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14091 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14092 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14093 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14094 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14095 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14096 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14097 (tdesc_powerpc_isa205_vsx64l): Declare.
14098 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14099 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14100 (ppc_set_pc, ppc_get_hwcap): Adjust.
14101 (ppc_usrregs_info): Forward declare.
14102 (!__powerpc64__) ppc_regmap_adjusted: New global.
14103 (ppc_arch_setup): Adjust to the current process'es target
14104 description.
14105 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14106 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14107 (ppc_store_evrregset): Adjust.
14108 (target_regsets): Rename to ...
14109 (ppc_regsets): ... this, and make static.
14110 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14111 (ppc_regs_info): New function.
14112 (the_low_target): Adjust.
14113 (initialize_low_arch): New function.
14114 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14115 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14116 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14117 (tdesc_s390x_linux64v2): Declare.
14118 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14119 (s390_fill_gregset, s390_store_last_break): Adjust.
14120 (target_regsets): Rename to ...
14121 (s390_regsets): ... this, and make static.
14122 (s390_get_pc, s390_set_pc): Adjust.
14123 (s390_get_hwcap): New target_desc parameter, and use it.
14124 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14125 (s390_arch_setup): Adjust to set the current process'es target
14126 description. Don't adjust the regmap.
14127 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14128 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14129 (regs_info_3264): New globals.
14130 (s390_regs_info): New function.
14131 (the_low_target): Adjust.
14132 (initialize_low_arch): New function.
14133 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14134 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14135 [__mips64] (init_registers_mips_linux)
14136 (init_registers_mips_dsp_linux): Delete defines.
14137 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14138 (have_dsp): New global.
14139 (mips_read_description): New, based on mips_arch_setup.
14140 (mips_arch_setup): Reimplement.
14141 (get_usrregs_info): New function.
14142 (mips_cannot_fetch_register, mips_cannot_store_register)
14143 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14144 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14145 (target_regsets): Rename to ...
14146 (mips_regsets): ... this, and make static.
14147 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14148 (dsp_regs_info, regs_info): New globals.
14149 (mips_regs_info): New function.
14150 (the_low_target): Adjust.
14151 (initialize_low_arch): New function.
14152 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14153 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14154 Declare.
14155 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14156 (arm_read_description): New, with bits factored from
14157 arm_arch_setup.
14158 (arm_arch_setup): Reimplement.
14159 (target_regsets): Rename to ...
14160 (arm_regsets): ... this, and make static.
14161 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14162 (arm_regs_info): New function.
14163 (the_low_target): Adjust.
14164 (initialize_low_arch): New function.
14165 * linux-m68k-low.c (tdesc_m68k): Declare.
14166 (target_regsets): Rename to ...
14167 (m68k_regsets): ... this, and make static.
14168 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14169 (m68k_regs_info): New function.
14170 (m68k_arch_setup): New function.
14171 (the_low_target): Adjust.
14172 (initialize_low_arch): New function.
14173 * linux-sh-low.c (tdesc_sharch): Declare.
14174 (target_regsets): Rename to ...
14175 (sh_regsets): ... this, and make static.
14176 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14177 (sh_regs_info, sh_arch_setup): New functions.
14178 (the_low_target): Adjust.
14179 (initialize_low_arch): New function.
14180 * linux-bfin-low.c (tdesc_bfin): Declare.
14181 (bfin_arch_setup): New function.
14182 (bfin_usrregs_info, regs_info): New globals.
14183 (bfin_regs_info): New function.
14184 (the_low_target): Adjust.
14185 (initialize_low_arch): New function.
14186 * linux-cris-low.c (tdesc_cris): Declare.
14187 (cris_arch_setup): New function.
14188 (cris_usrregs_info, regs_info): New globals.
14189 (cris_regs_info): New function.
14190 (the_low_target): Adjust.
14191 (initialize_low_arch): New function.
14192 * linux-cris-low.c (tdesc_crisv32): Declare.
14193 (cris_arch_setup): New function.
14194 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14195 (cris_regs_info): New function.
14196 (the_low_target): Adjust.
14197 (initialize_low_arch): New function.
14198 * linux-m32r-low.c (tdesc_m32r): Declare.
14199 (m32r_arch_setup): New function.
14200 (m32r_usrregs_info, regs_info): New globals.
14201 (m32r_regs_info): Adjust.
14202 (initialize_low_arch): New function.
14203 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14204 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14205 (tic6x_usrregs_info): Forward declare.
14206 (tic6x_read_description): New function, based on ...
14207 (tic6x_arch_setup): ... this. Reimplement.
14208 (target_regsets): Rename to ...
14209 (tic6x_regsets): ... this, and make static.
14210 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14211 (tic6x_regs_info): New function.
14212 (the_low_target): Adjust.
14213 (initialize_low_arch): New function.
14214 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14215 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14216 (target_regsets): Rename to ...
14217 (xtensa_regsets): ... this, and make static.
14218 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14219 globals.
14220 (xtensa_arch_setup, xtensa_regs_info): New functions.
14221 (the_low_target): Adjust.
14222 (initialize_low_arch): New function.
14223 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14224 (nios2_arch_setup): Set the current process'es tdesc.
14225 (target_regsets): Rename to ...
14226 (nios2_regsets): ... this.
14227 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14228 (nios2_regs_info): New function.
14229 (the_low_target): Adjust.
14230 (initialize_low_arch): New function.
a261b8f5
PA
14231 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14232 (aarch64_arch_setup): Set the current process'es tdesc.
14233 (target_regsets): Rename to ...
14234 (aarch64_regsets): ... this.
14235 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14236 (aarch64_regs_info): New function.
14237 (the_low_target): Adjust.
14238 (initialize_low_arch): New function.
3aee8918
PA
14239 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14240 globals.
14241 (target_regsets): Rename to ...
14242 (tile_regsets): ... this.
14243 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14244 (tile_regs_info): New function.
14245 (tile_arch_setup): Set the current process'es tdesc.
14246 (the_low_target): Adjust.
14247 (initialize_low_arch): New function.
14248 * spu-low.c (tdesc_spu): Declare.
14249 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14250 * win32-arm-low.c (tdesc_arm): Declare.
14251 (arm_arch_setup): New function.
14252 (the_low_target): Install arm_arch_setup instead of
14253 init_registers_arm.
14254 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14255 (init_windows_x86): Rename to ...
14256 (i386_arch_setup): ... this. Set `win32_tdesc'.
14257 (the_low_target): Adjust.
14258 * win32-low.c (win32_tdesc): New global.
14259 (child_add_thread): Don't create the thread cache here.
14260 (do_initial_child_stuff): Set the new process'es tdesc.
14261 * win32-low.h (struct target_desc): Forward declare.
14262 (win32_tdesc): Declare.
14263 * lynx-i386-low.c (tdesc_i386): Declare global.
14264 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14265 * lynx-low.c (lynx_tdesc): New global.
14266 (lynx_add_process): Set the new process'es tdesc.
14267 * lynx-low.h (struct target_desc): Forward declare.
14268 (lynx_tdesc): Declare global.
14269 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14270 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14271 * nto-low.c (nto_tdesc): New global.
14272 (do_attach): Set the new process'es tdesc.
14273 * nto-low.h (struct target_desc): Forward declare.
14274 (nto_tdesc): Declare.
14275 * nto-x86-low.c (tdesc_i386): Declare.
14276 (nto_x86_arch_setup): Set `nto_tdesc'.
14277
b1fbec62
GB
142782013-06-04 Gary Benson <gbenson@redhat.com>
14279
14280 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14281 to qSupported response when appropriate.
14282 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14283 with nonzero-length annex.
14284 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14285 arguments supplied in annex.
14286
d1ec4ce7
DE
142872013-05-31 Doug Evans <dje@google.com>
14288
ac44adcb 14289 PR server/15594
d1ec4ce7
DE
14290 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14291 64 bits in 64-cross-32 environment.
14292
9b25f2d3
PA
142932013-05-28 Pedro Alves <palves@redhat.com>
14294
14295 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14296 (aarch64-without-fpu.c): Delete rule.
14297 * configure.srv (aarch64*-*-linux*): Remove references to
14298 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14299 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14300 declaration.
14301
6740dc9c
PA
143022013-05-24 Pedro Alves <palves@redhat.com>
14303
14304 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14305 instead of strchr/decode_address. Error if the range isn't split
14306 with a ','. Don't assume there's be a ':' in the action.
14307
c2d6af84
PA
143082013-05-23 Yao Qi <yao@codesourcery.com>
14309 Pedro Alves <palves@redhat.com>
14310
14311 * linux-low.c (lwp_in_step_range): New function.
14312 (linux_wait_1): If the thread was range stepping and stopped
14313 outside the stepping range, report the stop to GDB. Otherwise,
14314 continue stepping. Add range stepping debug output.
14315 (linux_set_resume_request): Copy the step range from the resume
14316 request to the lwp.
14317 (linux_supports_range_stepping): New.
14318 (linux_target_ops) <supports_range_stepping>: Set to
14319 linux_supports_range_stepping.
14320 * linux-low.h (struct linux_target_ops)
14321 <supports_range_stepping>: New field.
14322 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14323 * linux-x86-low.c (x86_supports_range_stepping): New.
14324 (the_low_target) <supports_range_stepping>: Set to
14325 x86_supports_range_stepping.
14326 * server.c (handle_v_cont): Handle 'r' action.
14327 (handle_v_requests): Append ";r" if the target supports range
14328 stepping.
14329 * target.h (struct thread_resume) <step_range_start,
14330 step_range_end>: New fields.
14331 (struct target_ops) <supports_range_stepping>:
14332 New field.
14333 (target_supports_range_stepping): New macro.
14334
58794e1a
JB
143352013-05-17 Joel Brobecker <brobecker@adacore.com>
14336
14337 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14338 confusion in comment.
14339
d631c5a7
JB
143402013-05-17 Joel Brobecker <brobecker@adacore.com>
14341
14342 * lynx-low.c (struct process_info_private): New type.
14343 (lynx_add_process): New function.
14344 (lynx_create_inferior, lynx_attach): Replace calls to
14345 add_process by calls to lynx_add_process.
14346 (lynx_resume): If PTID is null, then try using
14347 current_process()->private->last_wait_event_ptid.
14348 Add comments.
14349 (lynx_clear_inferiors): Delete. The contents of that function
14350 has been inlined in lynx_mourn;
14351 (lynx_wait_1): Save the ptid in the process's private data.
14352 (lynx_mourn): Free the process' private data. Replace call
14353 to lynx_clear_inferiors by call to clear_inferiors.
14354
96f7a20f
YQ
143552013-05-17 Yao Qi <yao@codesourcery.com>
14356
14357 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14358 the right place.
14359
db0dfaa0
LM
143602013-05-16 Luis Machado <lgustavo@codesourcery.com>
14361
14362 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14363 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14364 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14365 PT_TEXT_END_ADDR guards. Update comments.
14366 (linux_target_op) <read_offsets>: Conditionally define to
14367 linux_read_offsets if the target is UCLIBC and if it defines
14368 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14369
68f5f838
SL
143702013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14371 Andrew Jenner <andrew@codesourcery.com>
14372
14373 * Makefile.in (SFILES): Add linux-nios2-low.c.
14374 (clean): Add action to delete nios2-linux.c.
14375 (nios2-linux.c): New rule.
14376 * configure.srv: Add nios2*-*-linux*.
14377 * linux-nios2-low.c: New.
14378
1ebff1fd
HAQ
143792013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14380
14381 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14382
f6150862
HZ
143832013-04-25 Hui Zhu <hui@codesourcery.com>
14384
14385 PR gdb/15186
f6150862
HZ
14386 * ax.c (ax_printf): Add fflush.
14387
614c279d
TT
143882013-04-22 Tom Tromey <tromey@redhat.com>
14389
14390 * Makefile.in (SFILES): Add filestuff.c.
14391 (OBS): Add filestuff.o.
14392 (filestuff.o): New target.
14393 * config.in, configure: Rebuild.
14394 * configure.ac: Check for fdwalk, pipe2.
14395
7d4e5717
PA
143962013-04-17 Pedro Alves <palves@redhat.com>
14397
14398 * configure.ac (USE_THREAD_DB): Delete variable.
14399 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14400 Don't AC_SUBST USE_THREAD_DB.
14401 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14402 * config.in, configure: Regenerate.
14403
d5c93e41
PA
144042013-04-16 Pedro Alves <palves@redhat.com>
14405
14406 * linux-low.h (struct lwp_info) <thread_known>: Move under
14407 the USE_THREAD_DB #ifdef.
14408
04f5fe89
PA
144092013-04-16 Pedro Alves <palves@redhat.com>
14410
14411 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14412 (linux-low.o): Delete rule.
14413 * linux-low.h: Always include "gdb_thread_db.h" instead of
14414 conditionally including thread_db.h.
14415 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14416 HAVE_THREAD_DB_H.
14417
480b27bf
JK
144182013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14419
14420 * Makefile.in (install-only): Fix make install regression.
14421
43662968
JK
144222013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14423
14424 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14425 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14426 installation.
14427 * gdbserver.1: Remove.
14428
3e74e146
PA
144292013-03-22 Pedro Alves <palves@redhat.com>
14430
14431 * linux-low.c (handle_extended_wait): Don't call
14432 linux_enable_event_reporting.
14433
a8347a2a
TT
144342013-03-15 Tony Theodore <tonyt@logyst.com>
14435
14436 PR build/9098:
14437 * Makefile.in (SHELL): Use @SHELL@.
14438
eeb56fa7
SDJ
144392013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14440
14441 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14442 compiler warning.
14443
4fa7e2ff
JB
144442013-03-13 Joel Brobecker <brobecker@adacore.com>
14445
14446 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14447 Remove extraneous NULL element.
14448
8ddb1965
YQ
144492013-03-13 Yao Qi <yao@codesourcery.com>
14450
14451 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14452 'V' block in trace frame.
14453
9accd112
MM
144542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14455
14456 * target.h (struct target_ops): Add btrace ops.
14457 (target_supports_btrace): New macro.
14458 (target_enable_btrace): New macro.
14459 (target_disable_btrace): New macro.
14460 (target_read_btrace): New macro.
14461 * gdbthread.h (struct thread_info): Add btrace field.
14462 * server.c: Include btrace-common.h.
14463 (handle_btrace_general_set): New function.
14464 (handle_btrace_enable): New function.
14465 (handle_btrace_disable): New function.
14466 (handle_general_set): Call handle_btrace_general_set.
14467 (handle_qxfer_btrace): New function.
14468 (struct qxfer qxfer_packets[]): Add btrace entry.
14469 * inferiors.c (remove_thread): Disable btrace.
14470 * linux-low: Include linux-btrace.h.
14471 (linux_low_enable_btrace): New function.
14472 (linux_low_read_btrace): New function.
14473 (linux_target_ops): Add btrace ops.
14474 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14475 Add srv_linux_btrace=yes.
14476 (x86_64-*-linux*): Add linux-btrace.o.
14477 Add srv_linux_btrace=yes.
14478 * configure.ac: Define HAVE_LINUX_BTRACE.
14479 * config.in: Regenerated.
14480 * configure: Regenerated.
14481
5cc22e4c
MM
144822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14483
14484 * server.c (handle_qxfer): Preserve error message if -3 is
14485 returned.
14486 (qxfer): Document the -3 return value.
14487
7c97f91e
MM
144882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14489
14490 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14491 (linux_btrace_h): New variable.
14492 (linux-btrace.o): New rule.
14493
be9a119c 144942013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14495 Hafiz Abid Qadeer <abidh@codesourcery.com>
14496
14497 * tracepoint.c (trace_buffer_size): New global.
14498 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14499 (init_trace_buffer): Change to one-argument function. Allocate
14500 trace buffer memory.
14501 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14502 handle QTBuffer:size packet.
14503 (cmd_bigqtbuffer_size): New function.
14504 (initialize_tracepoint): Call init_trace_buffer with
14505 DEFAULT_TRACE_BUFFER_SIZE.
14506 * server.c (handle_query): Add QTBuffer:size in the
14507 supported packets.
14508
e64f7499
YQ
145092013-03-07 Yao Qi <yao@codesourcery.com>
14510
14511 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14512 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14513 of -1.
14514 (cmd_qtsp): Adjust condition. Do post increment.
14515 Set cur_action and cur_step_action back to 0.
14516
f0ae6fc3
PA
145172013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14518
14519 PR server/15236
14520 * linux-low.c (linux_write_memory): Return early success if LEN is
14521 zero.
14522
b5b0b0af
CV
145232013-03-05 Corinna Vinschen <vinschen@redhat.de>
14524
334ad4a8 14525 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14526
589bc927
TT
145272013-02-28 Tom Tromey <tromey@redhat.com>
14528
14529 * configure.ac: Invoke AC_SYS_LARGEFILE.
14530 * configure, config.in: Rebuild.
14531
dfe07582
CV
145322013-02-28 Corinna Vinschen <vinschen@redhat.com>
14533
14534 * win32-low.c: Throughout, fix format strings and casts of
14535 printf-like functions to avoid type related warnings on all
14536 platforms.
14537 (get_child_debug_event): Print dwDebugEventCode as hex since
14538 that's how it's usually documented.
14539
736cd585
YQ
145402013-02-28 Yao Qi <yao@codesourcery.com>
14541
14542 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14543 pulongest.
14544
e1f58301
JW
145452013-02-27 Jiong Wang <jiwang@tilera.com>
14546
14547 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14548 (reg-tilegx32.c): New rule.
14549 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14550 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14551 different register info initializer according to elf class.
14552 (init_registers_tilgx32): New function. The tilegx32 register info
14553 initializer.
14554 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14555 (tile_store_gregset): Likewise.
14556
d171ca78
YQ
145572013-02-27 Yao Qi <yao@codesourcery.com>
14558
14559 * server.c (process_point_options): Print debug message when
14560 debug_threads is true.
14561
282bbdf3
YQ
145622013-02-26 Yao Qi <yao@codesourcery.com>
14563
14564 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14565
aca22551
PA
145662013-02-19 Pedro Alves <palves@redhat.com>
14567 Kai Tietz <ktietz@redhat.com>
14568
14569 PR gdb/15161
14570
14571 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14572 instead of strtoul to extract address from packet.
14573 (process_serial_event) <'z'>: Likewise.
14574
4f3cee1c
YQ
145752013-02-18 Yao Qi <yao@codesourcery.com>
14576
14577 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14578
8e1d55a3
PA
145792013-02-14 Pedro Alves <palves@redhat.com>
14580
14581 Plug memory leak.
14582
14583 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14584 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14585
458820da
PA
145862013-02-14 Pedro Alves <palves@redhat.com>
14587
14588 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14589
baea0dae
PA
145902013-02-14 Pedro Alves <palves@redhat.com>
14591
14592 * tracepoint.c (save_string): Delete.
14593 (add_tracepoint_action): Use savestring instead of save_string.
14594
0b1afbb3
PA
145952013-02-12 Pedro Alves <palves@redhat.com>
14596
14597 * linux-xtensa-low.c: Ditto.
14598 * xtensa-xtregs.c: Ditto.
14599
8a4ac37e
PA
146002013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14601
14602 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14603 thread_db.
14604
148de6bb
MS
146052013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14606
14607 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14608 aarch64_num_wp_regs and aarch64_num_bp_regs to
14609 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14610
55fac6e0
MS
146112013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14612
14613 * linux-aarch64-low.c (ps_get_thread_area): Replace
14614 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14615
176eb98c
MS
146162013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14617 Marcus Shawcroft <marcus.shawcroft@arm.com>
14618 Nigel Stephens <nigel.stephens@arm.com>
14619 Yufeng Zhang <yufeng.zhang@arm.com>
14620
14621 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14622 (aarch64.c, aarch64-without-fpu.c): New targets.
14623 * configure.srv (aarch64*-*-linux*): New.
14624 * linux-aarch64-low.c: New file.
14625
56f7af9c
MS
146262013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14627
43aaf8b6 14628 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14629 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14630 (dequeue_one_deferred_signal, linux_resume_one_thread)
14631 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14632 (linux_tracefork_grandchild, linux_test_for_tracefork)
14633 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14634 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14635 where the argument is 0.
14636
60f662b0
YQ
146372013-01-25 Yao Qi <yao@codesourcery.com>
14638
14639 * event-loop.c: Include "queue.h".
14640 (gdb_event_p): New typedef.
14641 (struct gdb_event) <next_event>: Remove.
14642 (event_queue): Change to QUEUE(gdb_event_p).
14643 (async_queue_event): Remove.
14644 (gdb_event_xfree): New.
14645 (initialize_event_loop): New.
14646 (process_event): Use API from QUEUE.
14647 (wait_for_event): Likewise.
14648 * server.c (main): Call initialize_event_loop.
14649 * server.h (initialize_event_loop): Declare.
14650
5ae4861a
YQ
146512013-01-18 Yao Qi <yao@codesourcery.com>
14652
14653 * ax.h (struct eval_agent_expr_context): New.
14654 (gdb_eval_agent_expr): Update declaration.
14655 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14656 TFRAME. Add new argument CTX.
14657 * server.h (struct eval_agent_expr_context): Declare.
14658 (agent_mem_read, agent_tsv_read): Update declaration.
14659 (agent_mem_read_string): Likewise.
14660 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14661 (add_traceframe_block): Add new argument TPOINT.
14662 Increase TPOINT->traceframe_usage.
14663 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14664 eval_tracepoint_agent_expr.
14665 (condition_true_at_tracepoint): Likewise.
14666 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14667 (agent_mem_read_string, agent_tsv_read): Likewise.
14668
85e00e85
YQ
146692013-01-16 Yao Qi <yao@codesourcery.com>
14670
14671 * linux-low.c (linux_resume_one_lwp): Don't check
14672 'lwp->bp_reinsert != 0'.
14673
4039cf45
JB
146742013-01-07 Joel Brobecker <brobecker@adacore.com>
14675 Pedro Alves <palves@redhat.com>
14676
14677 * lynx-low.c (ptrace_request_to_str): Define a temporary
14678 macro and use it to simplify this function's implementation.
14679
9044dee2
JB
146802013-01-07 Joel Brobecker <brobecker@adacore.com>
14681
14682 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14683 sets errno.
14684
e6352c8f
JB
146852013-01-07 Joel Brobecker <brobecker@adacore.com>
14686
14687 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14688
50681a27
JB
146892013-01-07 Joel Brobecker <brobecker@adacore.com>
14690
14691 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14692
3f6e77ef
JB
146932013-01-07 Joel Brobecker <brobecker@adacore.com>
14694
14695 * lynx-low.c (lynx_resume): Use the resume_info parameter
14696 to determine the ptid for the lynx_ptrace call, unless
14697 it is equal to minus_one_ptid, in which case we use the
14698 ptid of the current_inferior.
14699 (lynx_wait_1): After having received a thread create/exit
14700 event, resume the inferior's execution using the signaling
14701 thread's ptid, rather than the old ptid.
14702
7fda33ae
JB
147032013-01-07 Joel Brobecker <brobecker@adacore.com>
14704
14705 * lynx-low.c (lynx_resume): Delete variable ret.
14706
b9786c74
JB
147072013-01-01 Joel Brobecker <brobecker@adacore.com>
14708
14709 * gdbreplay.c (gdbreplay_version): Update copyright year.
14710 * server.c (gdbserver_version): Likewise.
14711
8b93d60f
JB
147122012-12-17 Joel Brobecker <brobecker@adacore.com>
14713
14714 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14715 new thread.
14716
037335a7
JB
147172012-12-17 Joel Brobecker <brobecker@adacore.com>
14718
14719 * lynx-low.c (ptrace_request_to_str): Add handling for
14720 PTRACE_GETTRACESIG.
14721
52d4cbd8
JB
147222012-12-17 Joel Brobecker <brobecker@adacore.com>
14723
14724 * lynx-low.c (lynx_attach): Delete variable new_process.
14725
ab8f6ca9
JB
147262012-12-17 Joel Brobecker <brobecker@adacore.com>
14727
14728 * lynx-low.c (lynx_create_inferior): Delete variable
14729 new_process.
14730
78cbc024
JB
147312012-12-17 Joel Brobecker <brobecker@adacore.com>
14732
14733 * lynx-low.c (ptrace_request_to_str): Do not handle
14734 PTRACE_GETTHREADLIST if this macro does not exist.
14735
14a00470
YQ
147362012-12-15 Yao Qi <yao@codesourcery.com>
14737
14738 * Makefile.in (OBS): Add notif.o.
14739 * notif.c, notif.h: New.
14740 * server.c: Include "notif.h".
14741 (struct vstop_notif) <next>: Remove.
14742 <base>: New field.
14743 (queue_stop_reply): Update.
14744 (push_event, send_next_stop_reply): Remove.
14745 (discard_queued_stop_replies): Update.
14746 (notif_stop): New variable.
14747 (handle_v_stopped): Remove.
14748 (handle_v_requests): Don't call handle_v_stopped. Call
14749 handle_ack_notif instead.
14750 (queue_stop_reply_callback): Call notif_event_enque instead
14751 of queue_stop_reply.
14752 (handle_status): Don't call send_next_stop_reply, call
14753 notif_write_event instead.
14754 (kill_inferior_callback): Likewise.
14755 (detach_or_kill_inferior_callback): Likewise.
14756 (main): Call initialize_notif.
14757 (process_serial_event): Call QUEUE_is_empty.
14758 (handle_target_event): Call notif_push instead of push event.
14759 * server.h (push_event): Remove declaration.
14760
61c125b9
TT
147612012-12-10 Tom Tromey <tromey@redhat.com>
14762
14763 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14764 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14765 macros.
14766 (.c.o): Rewrite.
14767 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14768 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14769 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14770 (amd64-linux-ipa.o, ax.o): Rewrite.
14771 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14772 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14773 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14774 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14775 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14776 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14777 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14778 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14779 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14780 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14781 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14782 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14783 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14784 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14785 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14786 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14787 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14788 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14789 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14790 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14791 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14792 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14793 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14794 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14795 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14796 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14797 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14798 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14799 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14800 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14801 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14802 (reg-tilegx.o): Remove.
14803 (all_object_files): New macro.
14804 Include .deps files.
14805 * aclocal.m4, configure: Rebuild.
14806 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14807 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14808 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14809
e90e9ad9
TT
148102012-12-05 Tom Tromey <tromey@redhat.com>
14811
14812 PR gdb/14917:
14813 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14814
02d403bf 148152012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14816
14817 * configure.ac: Check for linux/perf_event.h.
14818 * config.in: Regenerated.
14819 * configure: Regenerated.
14820
0270a750
PA
148212012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14822
14823 * hostio.c (handle_readlink): Decrease buffer size
14824 parameter passed to readlink by one byte.
14825
8c29b58e
YQ
148262012-11-26 Yao Qi <yao@codesourcery.com>
14827
14828 * configure.ac (build_warnings): Append '-Wempty-body'.
14829 * configure: Regenerated.
14830 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14831 body.
14832
8bdce1ff
PM
148332012-11-15 Pierre Muller <muller@sourceware.org>
14834
14835 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14836 * config.in: Regenerate.
14837 * configure: Regenerate.
14838 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14839 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14840 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14841 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14842 header.
14843 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14844 instead of <sys/wait.h> header.
14845 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14846
02d403bf 148472012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14848
14849 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14850 (various make rules): Remove -DGDBSERVER
14851
fbd5db48
YQ
148522012-11-09 Yao Qi <yao@codesourcery.com>
14853
14854 * spu-low.c (current_ptid): Move it to ..
14855 * gdbthread.h: ... here. New.
14856 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14857 * server.c (myresume, process_serial_event): Likewise.
14858 * thread-db.c (thread_db_find_new_threads): Likewise.
14859 * tracepoint.c (run_inferior_command): Likewise.
14860
b3dc46ff
AB
148612012-10-01 Andrew Burgess <aburgess@broadcom.com>
14862
14863 * server.c (handle_search_memory_1): Include access length in
14864 warning message.
14865
07c04788
HPN
148662012-09-05 Michael Brandt <michael.brandt@axis.com>
14867
14868 * linux-crisv32-low.c: Fix compile errors.
14869
918d227b
YQ
148702012-09-04 Yao Qi <yao@codesourcery.com>
14871
14872 * tracepoint.c (cmd_qtsv): Adjust debug message.
14873 Don't check CUR_TPOINT.
14874
18c1b81a
YQ
148752012-08-28 Yao Qi <yao@codesourcery.com>
14876
14877 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14878 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14879 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14880 Remove declarations of xmalloc, xreallloc, xstrdup and
14881 freeargv.
14882 * Makefile.in (libiberty_h): New.
14883 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14884 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14885
dc82f37b
YQ
148862012-08-23 Yao Qi <yao@codesourcery.com>
14887
14888 * server.h: Remove declaration of 'xsnprintf'.
14889
406b1477
KS
148902012-08-22 Keith Seitz <keiths@redhat.com>
14891
14892 * server.h: Include build-gnulib-gbserver/config.h.
14893 * gdbreplay.c: Likewise.
14894
e6712ff1
DE
148952012-08-08 Doug Evans <dje@google.com>
14896
14897 * Makefile.in (SFILES): Add gdb_vecs.c.
14898 (OBS): Add gdb_vecs.o.
14899 (gdb_vecs_h, host_defs_h): New variables.
14900 (thread-db.o): Add $(gdb_vecs_h) dependency.
14901 (gdb_vecs.o): New rule.
14902 * thread-db.c: #include "gdb_vecs.h".
14903 (thread_db_load_search): Use a vector to iterate over path elements.
14904 Handle text appearing after "$pdir".
14905
14906 * configure.ac: Add check for strstr.
14907 * config.in: Regenerate.
14908 * configure: Regenerate.
14909
7c3270ae
UW
149102012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14911
14912 * hostio.c (handle_pread): If pread fails, fall back to attempting
14913 lseek/read.
14914 (handle_pwrite): Likewise for pwrite.
14915
b62e2b27
UW
149162012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14917
14918 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14919 between unsupported TYPE and unimplementable ADDR/LEN combination.
14920 (arm_insert_point): Act on new return value.
14921
78a99e91
PA
149222012-07-31 Pedro Alves <palves@redhat.com>
14923
14924 * server.c (process_point_options): Only skip tokens if we find
14925 one that is unrecognized. Don't treat 'X' specially while
14926 skipping unrecognized tokens.
14927
fcf303ab
UW
149282012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14929
14930 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14931 to 4-byte-align HW breakpoint addresses for Thumb.
14932
7255706c
YQ
149332012-07-27 Yao Qi <yao@codesourcery.com>
14934
14935 PR remote/14161.
14936
14937 * server.h: Declare gdb_agent_about_to_close.
14938 * target.c (kill_inferior): Include "agent.h".
14939 New. Send command 'kill'.
14940 * target.h (kill_inferior): Removed macro.
14941 * tracepoint.c (gdb_agent_about_to_close): New.
14942 (gdb_agent_helper_thread): Handle command 'close'.
14943 Wait endlessly until the inferior stops.
14944 Install gdb_agent_remove_socket to atexit hook.
14945 (agent_socket_name): New static variable.
14946 (gdb_agent_socket_init): Replace local variable 'name' with
14947 'agent_socket_name'.
14948 (gdb_agent_remove_socket): New.
14949
5a3f286f
YQ
149502012-07-27 Yao Qi <yao@codesourcery.com>
14951
14952 * server.c (process_point_options): Stop at 'X' when parsing.
14953
961bd387
ME
149542012-07-19 Michael Eager <eager@eagercon.com>
14955
a261b8f5 14956 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14957 to hw_execute.
14958 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14959 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14960 hardware breakpoint.
14961
aa7c7447
JK
149622012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14963
14964 * gdbserver/linux-low.c (initialize_low): Call
14965 linux_ptrace_init_warnings.
14966
7f216e7c
DE
149672012-07-02 Doug Evans <dje@google.com>
14968
14969 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14970 pointer to int.
14971
d3ce09f5
SS
149722012-07-02 Stan Shebs <stan@codesourcery.com>
14973
14974 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14975 (ax.o): Add it to build rule.
14976 (ax-ipa.o): Ditto.
14977 (OBS): Add format.o.
14978 (IPA_OBS): Add format.o.
14979 * server.c (handle_query): Claim support for breakpoint commands.
14980 (process_point_options): Add command case.
14981 (process_serial_event): Leave running if there are printfs in
14982 effect.
14983 * mem-break.h (any_persistent_commands): Declare.
14984 (add_breakpoint_commands): Declare.
14985 (gdb_no_commands_at_breakpoint): Declare.
14986 (run_breakpoint_commands): Declare.
14987 * mem-break.c (struct point_command_list): New struct.
14988 (struct breakpoint): New field command_list.
14989 (any_persistent_commands): New function.
14990 (add_commands_to_breakpoint): New function.
14991 (add_breakpoint_commands): New function.
14992 (gdb_no_commands_at_breakpoint): New function.
14993 (run_breakpoint_commands): New function.
14994 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14995 locally.
14996 * ax.c: Include format.h.
14997 (ax_printf): New function.
14998 (gdb_eval_agent_expr): Add printf opcode.
14999
2f8f6aed
YQ
150002012-06-13 Yao Qi <yao@codesourcery.com>
15001
15002 * server.c (start_inferior): Remove duplicated writes to fields
15003 'last_resume_kind' and 'last_status' of 'current_inferior'.
15004
0c9070b3
YQ
150052012-06-12 Yao Qi <yao@codesourcery.com>
15006 Pedro Alves <palves@redhat.com>
15007
15008 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15009 comment.
15010 * server.c (handle_v_cont): Extend comment.
15011
c52daf70
YQ
150122012-06-11 Yao Qi <yao@codesourcery.com>
15013
15014 * linux-low.c (linux_attach): Add 'static'.
15015
d38bbb0a
YQ
150162012-06-06 Yao Qi <yao@codesourcery.com>
15017
15018 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15019
89dc0afd
JK
150202012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15021
15022 Fix gcc -flto compilation warning.
15023 * server.c (main): Make variable multi_mode and attach volatile.
15024
75f62ce7
TJB
150252012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15026
15027 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15028 if the platform doesn't know about it.
15029
65f479b6
PA
150302012-05-30 Jeff Kenton <jkenton@tilera.com>
15031
15032 * Makefile.in (SFILES): Add linux-tile-low.c.
15033 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15034 * configure.srv: Handle tilegx-*-linux*.
15035 * linux-tile-low.c: New file.
15036
0c5bf5a9
JK
150372012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15038
15039 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15040
a493e3e2
PA
150412012-05-24 Pedro Alves <palves@redhat.com>
15042
15043 PR gdb/7205
15044
43aaf8b6 15045 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15046
2ea28649
PA
150472012-05-24 Pedro Alves <palves@redhat.com>
15048
15049 PR gdb/7205
15050
15051 Replace target_signal with gdb_signal throughout.
15052
8d409d16
MR
150532012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15054
15055 * linux-low.c (linux_store_registers): Avoid the copying sequence
15056 when no data has been retrieved by ptrace.
15057
23512c01
MGD
150582012-05-22 Will Deacon <will.deacon@arm.com>
15059
15060 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15061 Include asm/ptrace.h.
15062 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15063 already defined.
15064
4934b29e
MR
150652012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15066
15067 * linux-low.c (linux_store_registers): Don't re-retrieve data
15068 with ptrace that has already been obtained from /proc. Always
15069 copy any data retrieved with ptrace to the buffer supplied.
15070
bde24c0a
PA
150712012-05-11 Yao Qi <yao@codesourcery.com>
15072 Pedro Alves <palves@redhat.com>
15073
15074 * linux-low.c (enum stopping_threads_kind): New.
15075 (stopping_threads): Change type to `enum stopping_threads_kind'.
15076 (handle_extended_wait): If stopping and suspending threads, leave
15077 the new_lwp suspended too.
15078 (linux_wait_for_event): Adjust.
15079 (stop_all_lwps): Set `stopping_threads' to
15080 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15081 whether we're suspending threads or just stopping them. Assert no
15082 recursion happens.
15083
623b6bdf
YQ
150842012-04-29 Yao Qi <yao@codesourcery.com>
15085
15086 * server.h: Move some code to ...
15087 * gdbthread.h: ... here. New.
15088 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15089 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15090 (nto-low.o, win32-low.o): Likewise.
15091 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15092 * regcache.c, remote-utils.c, server.c: Likewise.
15093 * target.c, tracepoint.c, win32-low.c: Likewise.
15094
f15f9948
TJB
150952012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15096
15097 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15098 (PTRACE_ARG4_TYPE): Likewise.
15099 (PTRACE_XFER_TYPE): Likewise.
15100 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15101 ptrace to PTRACE_ARG3_TYPE.
15102 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15103 (PTRACE_ARG4_TYPE): Likewise.
15104 (PTRACE_XFER_TYPE): Likewise.
15105 (linux_detach_one_lwp): Cast fourth argument of
15106 ptrace to long then PTRACE_ARG4_TYPE.
15107 (regsets_fetch_inferior_registers): Cast third argument of
15108 ptrace to long then PTRACE_ARG3_TYPE.
15109 (regsets_store_inferior_registers): Likewise.
15110
38ea300a
PA
151112012-04-20 Pedro Alves <palves@redhat.com>
15112
15113 * configure: Regenerate.
15114
c971b7fa
PA
151152012-04-19 Pedro Alves <palves@redhat.com>
15116
43aaf8b6 15117 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15118 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15119 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15120 (all, install-only, uninstall, clean-info, all-lib, clean): No
15121 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15122 (maintainer-clean realclean distclean): Use subdir_do.
15123 (subdir_do): New.
15124 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15125 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15126 * acinclude.m4: Include acx_configure_dir.m4.
15127 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15128 calls. Call AC_PROG_RANLIB. Configure gnulib using
15129 ACX_CONFIGURE_DIR.
15130 (GNULIB): New.
15131 (GNULIB_STDINT_H): Adjust.
15132 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15133 * gdbreplay.c: Include build-gnulib/config.h.
15134 * server.h: Likewise.
15135 * aclocal.m4: Regenerate.
15136 * config.in: Regenerate.
15137 * configure: Regenerate.
c971b7fa 15138
809277f8
PA
151392012-04-19 Pedro Alves <palves@redhat.com>
15140
15141 * Makefile.in (LIBGNU, INCGNU): Adjust.
15142 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15143 (all, install-only, uninstall, clean-info, all-lib, clean)
15144 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15145 * configure.ac: Adjust AC_OUTPUT output.
15146 * aclocal.m4: Regenerate.
15147 * configure: Regenerate.
15148
fd9bb8b8
PA
151492012-04-19 Pedro Alves <palves@redhat.com>
15150
15151 * Makefile.in (generated_files): New.
15152 (server_h): Remove the explicit dependency on config.h, and depend
15153 on $generated_files.
15154
1c298c66
PA
151552012-04-19 Pedro Alves <palves@redhat.com>
15156
15157 * Makefile.in (INCGNU): Add -Ignulib.
15158
57c4b50b
PA
151592012-04-19 Pedro Alves <palves@redhat.com>
15160
15161 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15162 (INCGNU): ... this, and spell out -I here.
15163 (GNULIB_LIB): Rename to ...
15164 (LIBGNU): ... this.
15165 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15166
1030e047
PA
151672012-04-19 Pedro Alves <palves@redhat.com>
15168
15169 * config.in: Regenerate.
15170
447d4319
PA
151712012-04-19 Pedro Alves <palves@redhat.com>
15172
15173 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15174 * server.h (memmem): Remove declaration.
15175 * config.in: Regenerate.
15176 * configure: Regenerate.
15177
aad9eab9
YQ
151782012-04-19 Yao Qi <yao@codesourcery.com>
15179
15180 * Makefile.in (SFILES): Add common/vec.c.
15181 (OBS): Add vec.o.
15182 (vec.o): New rule.
15183
3e10640f
YQ
151842012-04-19 Yao Qi <yao@codesourcery.com>
15185
15186 * remote-utils.c (prepare_resume_reply): Replace with macro
15187 target_core_of_thread.
15188 * server.c (handle_qxfer_threads_proper): Likewise.
15189 * target.h (traget_core_of_thread): New macro.
15190
71622373
PA
151912012-04-18 Pedro Alves <palves@redhat.com>
15192
15193 * aclocal.m4: Regenerate.
15194 * configure: Regenerate.
15195
80d26939
YQ
151962012-04-16 Yao Qi <yao@codesourcery.com>
15197
15198 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15199 duplicated on address.
15200
42476b70
YQ
152012012-04-16 Yao Qi <yao@codesourcery.com>
15202
15203 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15204 (struct tracepoint_action_ops) <send>: New field.
15205 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15206 (agent_expr_send, x_tracepoint_action_send): New.
15207 (l_tracepoint_action_send): New.
15208 (cmd_qtdp): Download and install tracepoint
15209 according to `use_agent'.
15210 (run_inferior_command): Add one more parameter `len'.
15211 Update callers.
15212 (tracepoint_send_agent): New.
15213 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15214
7bc83639
YQ
152152012-04-16 Yao Qi <yao@codesourcery.com>
15216
15217 * tracepoint.c (download_tracepoints): Moved to ...
15218 (cmd_qtstart): ... here.
15219
5f18041e
YQ
152202012-04-14 Yao Qi <yao@codesourcery.com>
15221
15222 * tracepoint.c: Include inttypes.h.
15223 (struct collect_memory_action): Use sized types.
15224 (struct tracepoint): Likewise.
15225 (cmd_qtdp, stop_tracing): Update print specifiers.
15226 (cmd_qtp, response_tracepoint): Likewise.
15227 (collect_data_at_tracepoint): Likewise.
15228 (collect_data_at_step): Likewise.
15229
55a8c076
YQ
152302012-04-14 Yao Qi <yao@codesourcery.com>
15231
15232 Import gnulib module inttypes.
15233 * aclocal.m4, config.in, configure: Regenerated.
15234
dc750257
YQ
152352012-04-14 Yao Qi <yao@codesourcery.com>
15236
15237 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15238 Makefile and config.status at last.
15239
0ab5faf9
YQ
152402012-04-13 Yao Qi <yao@codesourcery.com>
15241
15242 * tracepoint.c: Include stdint.h unconditionally.
15243
18f5fd81
TJB
152442012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15245
15246 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15247 on BFD_HAVE_SYS_PROCFS_TYPE.
15248 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15249 * configure: Regenerate.
15250 * config.in: Likewise.
15251
4d47af5c
L
152522012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15253
15254 * Makefile.in (clean): Also remove x32.c x32-linux.c
15255 x32-avx.c x32-avx-linux.c.
15256 (x32.o): New target.
15257 (x32.c): Likewise.
15258 (x32-linux.o): Likewise.
15259 (x32-linux.c): Likewise.
15260 (x32-avx.o): Likewise.
15261 (x32-avx.c): Likewise.
15262 (x32-avx-linux.o): Likewise.
15263 (x32-avx-linux.c): Likewise.
15264
15265 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15266 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15267 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15268 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15269 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15270 i386/x32-avx-linux.xml.
15271
15272 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15273 (init_registers_x32_avx_linux): Likwise.
15274 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15275 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15276
ecedbe58
PA
152772012-04-13 Pedro Alves <palves@redhat.com>
15278
15279 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15280 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15281 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15282 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15283 the sub-make.
15284
c92b5177
L
152852012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15286
15287 * linux-x86-low.c (compat_x32_clock_t): New.
15288 (compat_x32_siginfo_t): Likewise.
15289 (compat_x32_siginfo_from_siginfo): Likewise.
15290 (siginfo_from_compat_x32_siginfo): Likewise.
15291 (linux_is_elf64): Likewise.
15292 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15293 and siginfo_from_compat_x32_siginfo for x32.
15294 (x86_arch_setup): Set linux_is_elf64.
15295
214d508e
L
152962012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15297
15298 PR gdb/13969
15299 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15300 e_machine field.
15301 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15302 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15303 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15304 compatible with process.
15305
c9a1864a
YQ
153062012-04-12 Yao Qi <yao@codesourcery.com>
15307
15308 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15309 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15310 (install-only, install-info, clean): Handle sub dir gnulib.
15311 (all-lib, am--refresh): New targets.
15312 (memmem.o): Remove target.
15313 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15314 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15315 (AC_REPLACE_FUNCS): Remove memmem.
15316 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15317 (AC_OUTPUT): Generate Makefile in gnulib/.
15318 * aclocal.m4, config.in, configure: Regenerated.
15319
367ba2c2
MR
153202012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15321
15322 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15323
9d236627
PA
153242012-04-05 Pedro Alves <palves@redhat.com>
15325
15326 -Werror=strict-aliasing
15327
15328 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15329 pointer.
15330
111217b3
PA
153312012-04-04 Pedro Alves <palves@redhat.com>
15332
15333 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15334 (sparc_store_gregset_from_stack, sparc_store_gregset)
15335 (sparc_breakpoint_at): Fix formatting.
15336
8365dcf5
TJB
153372012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15338
15339 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15340 are available.
15341 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15342 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15343 * config.in: Regenerate.
15344 * configure: Likewise.
15345
689cc2ae
PA
153462012-03-29 Pedro Alves <palves@redhat.com>
15347
15348 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15349 Correct ptrace arguments.
15350
c14dfd32
PA
153512012-03-28 Pedro Alves <palves@redhat.com>
15352
15353 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15354 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15355 (IA64_FR1_REGNUM): New defines.
15356 (ia64_fetch_register): New.
15357 (the_low_target): Install it.
15358 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15359 field.
15360 * linux-low.c (linux_fetch_registers): Try the
15361 the_low_target.fetch_register hook first.
15362
15363 * linux-arm-low.c (the_low_target): Adjust.
15364 * linux-bfin-low.c (the_low_target): Adjust.
15365 * linux-cris-low.c (the_low_target): Adjust.
15366 * linux-crisv32-low.c (the_low_target): Adjust.
15367 * linux-m32r-low.c (the_low_target): Adjust.
15368 * linux-m68k-low.c (the_low_target): Adjust.
15369 * linux-mips-low.c (the_low_target): Adjust.
15370 * linux-ppc-low.c (the_low_target): Adjust.
15371 * linux-s390-low.c (the_low_target): Adjust.
15372 * linux-sh-low.c (the_low_target): Adjust.
15373 * linux-sparc-low.c (the_low_target): Adjust.
15374 * linux-tic6x-low.c (the_low_target): Adjust.
15375 * linux-x86-low.c (the_low_target): Adjust.
15376 * linux-xtensa-low.c (the_low_target): Adjust.
15377
63c88e13
PA
153782012-03-26 Pedro Alves <palves@redhat.com>
15379
15380 * server.c (handle_qxfer_libraries): Don't bail early if
15381 the_target->qxfer_libraries_svr4 is not NULL.
15382
fb723180
PA
153832012-03-26 Pedro Alves <palves@redhat.com>
15384
15385 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15386
0afae3cf
PA
153872012-03-23 Pedro Alves <palves@redhat.com>
15388
15389 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15390 "library-list-svr4" element's start tag when the the DSO list is
15391 empty.
15392
485f1ee4
PA
153932012-03-23 Pedro Alves <palves@redhat.com>
15394
15395 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15396 a variable whose type size is the same as the inferior's pointer
15397 size.
15398
a5362b9a
TS
153992012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15400
15401 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15402 struct siginfo.
15403 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15404 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15405 * linux-low.h: Include <signal.h>.
15406 (struct siginfo): Remove forward declaration.
15407 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15408 struct siginfo.
15409
d226c142
MF
154102012-03-21 Mike Frysinger <vapier@gentoo.org>
15411
15412 * .gitignore: Ignore more files.
15413
122f36ef
PA
154142012-03-19 Pedro Alves <palves@redhat.com>
15415 Jan Kratochvil <jan.kratochvil@redhat.com>
15416
15417 * server.c (cont_thread, general_thread): Add describing comments.
15418 (start_inferior): Clear `cont_thread'.
15419 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15420 of a process.
15421
fc3e5175
YQ
154222012-03-15 Yao Qi <yao@codesourcery.com>
15423
15424 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15425 handling to ...
15426 (cmd_qtdp): ... here.
15427
8d0d92cd
YQ
154282012-03-15 Yao Qi <yao@codesourcery.com>
15429
15430 * tracepoint.c (struct tracepoint_action_ops): New.
15431 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15432 (m_tracepoint_action_download): New.
15433 (r_tracepoint_action_download): New.
15434 (x_tracepoint_action_download): New.
15435 (l_tracepoint_action_download): New.
15436 (add_tracepoint_action): Install `action->ops' according type.
15437 (download_tracepoint_1): Move code `download' function pointer
15438 of various tracepoint_action_ops.
15439
87b0bb13
JK
154402012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15441
15442 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15443 linux_ptrace_attach_warnings.
15444
5f572dec
JK
154452012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15446
15447 * Makefile.in (linux-ptrace.o): New.
15448 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15449 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15450 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15451 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15452 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15453 of these targets.
15454 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15455
f4647387
YQ
154562012-03-08 Yao Qi <yao@codesourcery.com>
15457 Pedro Alves <palves@redhat.com>
15458
15459 Fix PR server/13392.
15460 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15461 offset of JMP insn.
15462 * tracepoint.c (remove_tracepoint): New.
15463 (cmd_qtdp): Call remove_tracepoint when failed to install.
15464
9b224c5e
PA
154652012-03-07 Pedro Alves <palves@redhat.com>
15466
15467 * linux-low.c (get_detach_signal): New.
15468 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15469 Pass on pending signals to PTRACE_DETACH. Check the result of the
15470 ptrace call.
15471 * server.c (program_signals, program_signals_p): New.
15472 (handle_general_set): Handle QProgramSignals.
15473 * server.h (program_signals, program_signals_p): Declare.
15474
e237a7e2
JK
154752012-03-05 Pedro Alves <palves@redhat.com>
15476 Jan Kratochvil <jan.kratochvil@redhat.com>
15477
15478 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15479 New comment why.
15480
5808517f
YQ
154812012-03-03 Yao Qi <yao@codesourcery.com>
15482
15483 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15484 agent_look_up_symbols.
15485
58b4daa5
YQ
154862012-03-03 Yao Qi <yao@codesourcery.com>
15487
15488 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15489 (linux-x86-low.o): Likewise.
15490 * server.h: Remove in_process_agent_loaded.
15491 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15492 common/agent.c.
15493 Update callers.
15494
8ffcbaaf
YQ
154952012-03-03 Yao Qi <yao@codesourcery.com>
15496
15497 * tracepoint.c (gdb_agent_capability): New global.
15498 (in_process_agent_loaded_ust): Renamed to
15499 `in_process_agent_supports_ust'.
15500 Update callers.
15501 (in_process_agent_supports_ust): Call agent_capability_check.
15502 (clear_installed_tracepoints): Assert that agent supports
15503 agent.
15504
d1feda86
YQ
155052012-03-03 Yao Qi <yao@codesourcery.com>
15506
15507 * linux-low.c (linux_supports_agent): New.
15508 (linux_target_ops): Initialize field `supports_agent' with
15509 linux_supports_agent.
15510 * target.h (struct target_ops) <supports_agent>: New.
15511 (target_supports_agent): New macro.
15512 * server.c (handle_general_set): Handle packet 'QAgent'.
15513 (handle_query): Send `QAgent+'.
15514 * Makefile.in (server.o): Depends on agent.h.
15515
2fa291ac
YQ
155162012-03-03 Yao Qi <yao@codesourcery.com>
15517
15518 * Makefile.in (OBS): Add agent.o.
15519 Add new rule for agent.o.
15520 Track dependence of tracepoint.c on agent.h.
15521 * tracepoint.c (run_inferior_command_1):
15522 (run_inferior_command): Call agent_run_command.
15523 (gdb_ust_connect_sync_socket): Deleted. Move it to
15524 common/agent.c.
15525 (resume_thread, stop_thread): Likewise.
15526 (gdb_ust_socket_init): Renamed to ...
15527 (gdb_agent_socket_init): ... New.
15528 (gdb_ust_thread): Renamed to ...
15529 (gdb_agent_helper_thread): ... New.
15530 (gdb_ust_init): Move some code to ...
15531 (gdb_agent_init): ... here. New.
15532 [HAVE_UST]: Call gdb_ust_init.
15533 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15534 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15535 * config.in, configure: Regenerated.
15536
05044653
PA
155372012-03-02 Pedro Alves <palves@redhat.com>
15538
15539 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15540 * linux-low.c (struct simple_pid_list): New.
15541 (stopped_pids): New a struct simple_pid_list pointer.
15542 (add_to_pid_list, pull_pid_from_list): New.
15543 (handle_extended_wait): Don't assume the first signal new children
15544 report is SIGSTOP. Adjust call to pull_pid_from_list.
15545 (linux_wait_for_lwp): Adjust.
15546
8d00225b
YQ
155472012-03-02 Yao Qi <yao@codesourcery.com>
15548
15549 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15550 debug log.
15551
19560ba5
YQ
155522012-03-02 Yao Qi <yao@codesourcery.com>
15553
15554 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15555 `stop_pc' and `tpoint'. Update caller.
15556
1faeff08
MR
155572012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15558
15559 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15560 * linux-low.c (use_linux_regsets): New macro.
15561 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15562 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15563 (linux_register_in_regsets): New function.
15564 (usr_fetch_inferior_registers): Skip registers covered by
15565 regsets.
15566 (usr_store_inferior_registers): Likewise.
15567 (usr_fetch_inferior_registers): New macro.
15568 (usr_store_inferior_registers): Likewise.
15569 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15570 (linux_store_registers): Likewise.
15571 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15572 prototype.
15573 (init_registers_mips64_dsp_linux): Likewise.
15574 (init_registers_mips_linux): New macro.
15575 (init_registers_mips_dsp_linux): Likewise.
15576 (mips_dsp_num_regs): Likewise.
15577 (DSP_BASE, DSP_CONTROL): New fallback macros.
15578 (mips_base_regs): New macro.
15579 (mips_regmap): Use it. Fix the size.
15580 (mips_dsp_regmap): New variable.
15581 (mips_dsp_regset_bitmap): Likewise.
15582 (mips_arch_setup): New function.
15583 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15584 than mips_regmap.
15585 (mips_cannot_store_register): Likewise.
15586 (the_low_target): Update .arch_setup, .num_regs and .regmap
15587 initializers. Add .regset_bitmap initializer.
15588 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15589 initializer.
15590 * linux-bfin-low.c (the_low_target): Likewise.
15591 * linux-cris-low.c (the_low_target): Likewise.
15592 * linux-crisv32-low.c (the_low_target): Likewise.
15593 * linux-ia64-low.c (the_low_target): Likewise.
15594 * linux-m32r-low.c (the_low_target): Likewise.
15595 * linux-m68k-low.c (the_low_target): Likewise.
15596 * linux-ppc-low.c (the_low_target): Likewise.
15597 * linux-s390-low.c (the_low_target): Likewise.
15598 * linux-sh-low.c (the_low_target): Likewise.
15599 * linux-sparc-low.c (the_low_target): Likewise.
15600 * linux-tic6x-low.c (the_low_target): Likewise.
15601 * linux-x86-low.c (the_low_target): Likewise.
15602 * linux-xtensa-low.c (the_low_target): Likewise.
15603 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15604 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15605 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15606 srv_xmlfiles.
15607 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15608 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15609
c03e6ccc
YQ
156102012-02-29 Yao Qi <yao@codesourcery.com>
15611 Pedro Alves <palves@redhat.com>
15612
15613 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15614 `step_over_finished' is true.
15615
644cebc9
PA
156162012-02-27 Pedro Alves <palves@redhat.com>
15617
15618 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15619 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15620
c14d7ab2
PA
156212012-02-27 Pedro Alves <palves@redhat.com>
15622
15623 PR server/9684
15624 * linux-low.c (pid_is_stopped): New.
15625 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15626
412c89dd
LM
156272012-02-25 Luis Machado <lgustavo@codesourcery.com>
15628
15629 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15630 of conditions.
15631
b745defe
MR
156322012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15633
15634 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15635
9f3a5c85
LM
156362012-02-24 Luis Machado <lgustavo@codesourcery>
15637
15638 * server.c (handle_query): Advertise support for target-side
15639 breakpoint condition evaluation.
15640 (process_point_options): New function.
15641 (process_serial_event): When inserting a breakpoint, check for
15642 a target-side condition that should be evaluated.
15643
15644 * mem-break.c: Include regcache.h and ax.h.
15645 (point_cond_list_t): New data structure.
15646 (breakpoint) <cond_list>: New field.
15647 (find_gdb_breakpoint_at): Make non-static.
15648 (delete_gdb_breakpoint_at): Clear any target-side
15649 conditions.
15650 (clear_gdb_breakpoint_conditions): New function.
15651 (add_condition_to_breakpoint): Likewise.
15652 (add_breakpoint_condition): Likewise.
15653 (gdb_condition_true_at_breakpoint): Likewise.
15654 (gdb_breakpoint_here): Return result directly instead
15655 of going through a local variable.
15656
15657 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15658 (clear_gdb_breakpoint_conditions): Likewise.
15659 (add_breakpoint_condition): Likewise.
15660 (gdb_condition_true_at_breakpoint): Likewise.
15661
15662 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15663 (need_step_over_p): Take target-side breakpoint condition into
15664 consideration.
15665
5e1dc496
LM
156662012-02-24 Luis Machado <lgustavo@codesourcery>
15667
15668 * server.h: Include tracepoint.h.
15669 (agent_mem_read, agent_get_trace_state_variable_value,
15670 agent_set_trace_state_variable_value,
15671 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15672 get_set_tsv_func_addr): New prototypes.
15673
15674 * ax.h: New include file.
15675 * ax.c: New source file.
15676
15677 * tracepoint.c: Include ax.h.
15678 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15679 agent_expr, eval_result_type): Move to ax.h.
15680 (parse_agent_expr): Rename to ...
15681 (gdb_parse_agent_expr): ... this, make it non-static and move
15682 to ax.h.
15683 (unparse_agent_expr) Rename to ...
15684 (gdb_unparse_agent_expr): ... this, make it non-static and move
15685 to ax.h.
15686 (eval_agent_expr): Rename to ...
15687 (eval_tracepoint_agent_expr): ... this.
15688 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15689 forward declarations.
15690 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15691 (agent_get_trace_state_variable_value): New function.
15692 (agent_set_trace_state_variable_value): New function.
15693 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15694 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15695 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15696 (condition_true_at_tracepoint): Likewise.
15697 (parse_agent_expr): Rename to ...
15698 (gdb_parse_agent_expr): ... this and move to ax.c.
15699 (unparse_agent_expr): Rename to ...
15700 (gdb_unparse_agent_expr): ... this and move to ax.c.
15701 (gdb_agent_op_name): Move to ax.c.
15702 (eval_agent_expr): Rename to ...
15703 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15704 and move to ax.c.
15705 (eval_tracepoint_agent_expr): New function.
15706 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15707 non-static.
5e1dc496
LM
15708 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15709 ax.c.
15710 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15711 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15712 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15713 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15714 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15715 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15716 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15717 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15718 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15719 (compile_bytecodes): Remove forward declaration.
15720 (is_goto_target): Move to ax.c.
15721 (compile_bytecodes): Move to ax.c and call
15722 agent_get_trace_state_variable_value (...) and
15723 agent_set_trace_state_variable_value (...).
15724
15725 * Makefile.in: Update ax.c and IPA dependencies.
15726
277e4e52
PA
157272012-02-24 Pedro Alves <palves@redhat.com>
15728
15729 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15730 (cmd_bigqtbuffer_circular): ... this. Only handle
15731 'QTBuffer:circular:'.
15732 (handle_tracepoint_general_set): Adjust.
15733
bf4c19f7
YQ
157342012-02-16 Yao Qi <yao@codesourcery.com>
15735
15736 * inferiors.c: Move code to ...
15737 * dll.c: .... here. New.
15738 * server.h: Declare clear_dlls.
15739 * Makefile.in (SFILES): Add dll.c.
15740 (OBS): Add dll.o
15741 (dll.o): New rule.
15742
d73f2619
YQ
157432012-02-11 Yao Qi <yao@codesourcery.com>
15744
15745 * server.c: (handle_monitor_command): Add a new parameter
15746 `own_buf'.
15747 (handle_query): Update caller.
15748
f8255c2a
JB
157492012-02-09 Joel Brobecker <brobecker@adacore.com>
15750
15751 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15752 * configure, config.in: Regenerate.
15753 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15754 is not defined.
15755
da84f473
PA
157562012-02-02 Pedro Alves <palves@redhat.com>
15757
15758 Try SIGKILL first, then PTRACE_KILL.
15759 * linux-low.c (linux_kill_one_lwp): New.
15760 (linux_kill_one_lwp): Rename to ...
15761 (kill_one_lwp_callback): ... this. Use the new
15762 linux_kill_one_lwp.
15763
e886a173
PA
157642012-02-02 Pedro Alves <palves@redhat.com>
15765
15766 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15767 inferior.
15768
be07f1a2
PA
157692012-01-27 Pedro Alves <palves@redhat.com>
15770
15771 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15772 (elf_64_file_p): Make static.
15773 (linux_pid_exe_is_elf_64_file): New.
15774 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15775 Delete declarations.
15776 (linux_pid_exe_is_elf_64_file): Declare.
15777 * linux-x86-low.c (x86_arch_setup): Use
15778 linux_pid_exe_is_elf_64_file.
15779
d8301ad1
JK
157802012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15781
15782 * linux-low.c (linux_wait_for_event_1): Rename to ...
15783 (linux_wait_for_event): ... here and merge it with former
15784 linux_wait_for_event - new variable wait_ptid, use it.
15785 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15786
01b17894
PA
157872012-01-23 Pedro Alves <palves@redhat.com>
15788
15789 * server.c (main): Avoid yet another case of infinite loop while
15790 detaching/killing after a longjmp.
15791
e825046f
JK
157922012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15793
15794 Code cleanup.
15795 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15796
b9e7b9c3
UW
157972012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15798
15799 * hostio.c (handle_readlink): New function.
15800 (handle_vFile): Call it to handle "vFile:readlink" packets.
15801
901f9912
UW
158022012-01-20 Pedro Alves <palves@redhat.com>
15803 Ulrich Weigand <ulrich.weigand@linaro.org>
15804
15805 * server.c (handle_v_requests): Only support vAttach and vRun to
15806 start multiple processes when in extended protocol mode.
15807
fc1ab1a0
PA
158082012-01-17 Pedro Alves <palves@redhat.com>
15809
15810 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15811 memalign plus mprotect to allocate the scratch buffer.
15812
7d5d4e98
PA
158132012-01-13 Pedro Alves <palves@redhat.com>
15814
15815 * server.c (attach_inferior): Clear `cont_thread'.
15816
f128d5e9
PA
158172012-01-13 Pedro Alves <palves@redhat.com>
15818
15819 * server.c (main): Avoid infinite loop while detaching/killing
15820 after a longjmp.
15821
06db92f0
DE
158222012-01-09 Doug Evans <dje@google.com>
15823
15824 * server.c (start_inferior): Set last_ptid in --wrapper case.
15825
32d92999
YQ
158262012-01-06 Yao Qi <yao@codesourcery.com>
15827
15828 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15829 defined.
15830 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15831
5e0a92a9
YQ
158322012-01-04 Yao Qi <yao@codesourcery.com>
15833
15834 * tracepoint.c (cmd_qtdp): Print debug message
15835 for static tracepoint.
15836
ae639e8c
YQ
158372012-01-04 Yao Qi <yao@codesourcery.com>
15838
15839 * tracepoint.c (trace_vdebug): Differentiate debug message
15840 between gdbserver and IPA.
15841
f72429c5
YQ
158422012-01-03 Yao Qi <yao@codesourcery.com>
15843
15844 * tracepoint.c (tracepoint_was_hit): Don't collect for
15845 static tracepoint.
15846
12c3e59c
JB
158472012-01-02 Joel Brobecker <brobecker@adacore.com>
15848
15849 * terminal.h: Reformat copyright header.
15850
67827812
JB
158512012-01-02 Joel Brobecker <brobecker@adacore.com>
15852
15853 * server.c (gdbserver_version): Update copyright year.
15854 * gdbreplay.c (gdbreplay_version): Likewise.
15855
3e52c33d
JK
158562011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15857
15858 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15859
15860 Revert:
15861 2011-12-18 Hui Zhu <teawater@gmail.com>
15862 * linux-low.c (linux_create_inferior): Save return value to ret.
15863
66f1260e
HZ
158642011-12-18 Hui Zhu <teawater@gmail.com>
15865
15866 * linux-low.c (linux_create_inferior): Save return value to ret.
15867
e77616d7
DE
158682011-12-16 Doug Evans <dje@google.com>
15869
e7b06c57
DE
15870 * linux-low.c (linux_create_inferior): If stdio connection,
15871 redirect stdin from /dev/null, stdout to stderr.
15872 * remote-utils.c (remote_is_stdio): New static global.
15873 (remote_connection_is_stdio): New function.
15874 (remote_prepare): Handle stdio connection.
15875 (remote_open): Ditto.
15876 (remote_close): Don't close stdin for stdio connections.
15877 (read_prim,write_prim): New functions. Replace all calls to
15878 read/write to these.
15879 * server.c (main): Watch for "-" argument. Move call to
15880 remote_prepare before start_inferior.
15881 * server.h (STDIO_CONNECTION_NAME): New macro.
15882 (remote_connection_is_stdio): Declare.
15883
e77616d7
DE
15884 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15885 in debugging output.
15886
82067193
YQ
158872011-12-15 Yao Qi <yao@codesourcery.com>
15888
15889 * tracepoint.c: Include sys/syscall.h.
15890 (gdb_ust_thread): Remove preprocessor conditional.
15891
82bfbe7e
PA
158922011-12-14 Pedro Alves <pedro@codesourcery.com>
15893
15894 * linux-low.c (linux_detach_one_lwp): Call
15895 the_low_target.prepare_to_resume before detaching.
15896
712c6575
YQ
158972011-12-14 Yao Qi <yao@codesourcery.com>
15898
15899 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15900 of write.
15901
d54d1edf
YQ
159022011-12-14 Yao Qi <yao@codesourcery.com>
15903
15904 * i386-low.c (i386_low_stopped_data_address): Initialize local
15905 variable `control'.
15906
6210a125
PA
159072011-12-13 Pedro Alves <pedro@codesourcery.com>
15908
15909 PR remote/13492
15910
15911 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15912 DR_CONTROL unless necessary. Extend comments.
15913 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15914 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15915
2ece8244
YQ
159162011-12-13 Yao Qi <yao@codesourcery.com>
15917
15918 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15919 macros.
15920 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15921
784867a5
JK
159222011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15923
15924 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15925 Print new debug message for such case.
15926
6bf36717
JK
159272011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15928
15929 Fix overlapping memcpy.
15930 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15931 the read_inferior_memory transfer.
15932 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15933 write_inferior_memory transfer.
15934 (set_fast_tracepoint_jump): New variable buf. Use it for the
15935 read_inferior_memory and write_inferior_memory transfers.
15936 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15937 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15938 Use it for the write_inferior_memory transfer.
15939 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15940 buffers.
15941
50275556
MR
159422011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15943
15944 * linux-low.c (fetch_register, store_register): Make code
15945 consistent, fix formatting.
15946
7325beb4
MR
159472011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15948
15949 * linux-low.c (usr_store_inferior_registers): Factor out code
15950 to handle individual registers into...
15951 (store_register): ... this new function.
15952
c642a434
UW
159532011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15954
15955 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15956 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15957 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15958 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15959 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15960 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15961 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15962 (srv_xmlfiles): Add new XML files.
15963
15964 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15965 and <sys/uio.h>.
15966 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15967 (init_registers_s390_linux32v1): Add prototype.
15968 (init_registers_s390_linux32v2): Likewise.
15969 (init_registers_s390_linux64v1): Likewise.
15970 (init_registers_s390_linux64v2): Likewise.
15971 (init_registers_s390x_linux64v1): Likewise.
15972 (init_registers_s390x_linux64v2): Likewise.
15973 (s390_num_regs): Increment to 52.
15974 (s390_regmap): Add orig_r2 register.
15975 (s390_num_regs_3264): Increment to 68.
15976 (s390_regmap_3264): Add orig_r2 register.
15977 (s390_collect_ptrace_register): Handle orig_r2 register.
15978 (s390_supply_ptrace_register): Likewise.
15979 (s390_fill_last_break): New function.
15980 (s390_store_last_break): Likewise.
15981 (s390_fill_system_call): New function.
15982 (s390_store_system_call): Likewise.
15983 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15984 register sets.
15985 (s390_check_regset): New function.
15986 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15987 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15988 Update target_regsets for available register sets.
15989
2268b414
JK
159902011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15991 Jan Kratochvil <jan.kratochvil@redhat.com>
15992
15993 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15994 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15995 New.
15996 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15997 * linux-low.h (struct process_info_private): New member r_debug.
15998 * server.c (handle_qxfer_libraries): Call
15999 the_target->qxfer_libraries_svr4.
16000 (handle_qxfer_libraries_svr4): New function.
16001 (qxfer_packets): New entry "libraries-svr4".
16002 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16003 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16004 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16005 PACKET_qXfer_libraries_svr4.
16006
d6db1fab
UW
160072011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16008
16009 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16010 PSW address/mask between 8-byte and 16-byte formats.
16011 (s390_supply_ptrace_register): Likewise.
16012 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16013 basic addressing mode bit.
16014
242f5f1c
SS
160152011-11-24 Stan Shebs <stan@codesourcery.com>
16016
16017 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16018
f196051f
SS
160192011-11-17 Stan Shebs <stan@codesourcery.com>
16020
16021 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16022 (tracing_start_time): New global.
16023 (tracing_stop_time): New global.
16024 (tracing_user_name): New global.
16025 (tracing_notes): New global.
16026 (tracing_stop_note): New global.
16027 (cmd_qtstart): Set traceframe_usage, start_time.
16028 (stop_tracing): Set stop_time.
16029 (cmd_qtstatus): Report additional status.
16030 (cmd_qtp): New function.
16031 (handle_tracepoint_query): Call it.
16032 (cmd_qtnotes): New function.
16033 (handle_tracepoint_general_set): Call it.
16034 (get_timestamp): Rename from tsv_get_timestamp.
16035
405f8e94
SS
160362011-11-14 Stan Shebs <stan@codesourcery.com>
16037 Kwok Cheung Yeung <kcy@codesourcery.com>
16038
16039 * linux-x86-low.c (small_jump_insn): New.
16040 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16041 trampoline and error message, build a trampoline and issue a small
16042 jump instruction to it.
16043 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16044 trampoline and error message.
16045 (x86_get_min_fast_tracepoint_insn_len): New.
16046 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16047 * linux-low.h (struct linux_target_ops): Add arguments to
16048 install_fast_tracepoint_jump_pad operation, add new operation.
16049 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16050 arguments.
16051 (linux_get_min_fast_tracepoint_insn_len): New function.
16052 (linux_target_op): Add new operation.
16053 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16054 (gdb_trampoline_buffer_end): Ditto.
16055 (gdb_trampoline_buffer_error): Ditto.
16056 (struct ipa_sym_addresses): Add fields for new IPA variables.
16057 (symbol_list): Add entries for new IPA variables.
16058 (struct tracepoint): Add fields to hold the address range of the
16059 trampoline used by the tracepoint.
16060 (trampoline_buffer_head): New static variable.
16061 (trampoline_buffer_tail): Ditto.
16062 (claim_trampoline_space): New function.
16063 (have_fast_tracepoint_trampoline_buffer): New function.
16064 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16065 structure.
16066 (install_fast_tracepoint): Ditto, also add error buffer argument.
16067 (cmd_qtminftpilen): New function.
16068 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16069 (fast_tracepoint_from_trampoline_address): New function.
16070 (fast_tracepoint_collecting): Handle trampoline as part of jump
16071 pad space.
16072 (set_trampoline_buffer_space): New function.
16073 (initialize_tracepoint): Initialize new IPA variables.
16074 * target.h (struct target_ops): Add arguments to
16075 install_fast_tracepoint_jump_pad operation, add new
16076 get_min_fast_tracepoint_insn_len operation.
16077 (target_get_min_fast_tracepoint_insn_len): New.
16078 (install_fast_tracepoint_jump_pad): Add arguments.
16079 * server.h (IPA_BUFSIZ): Define.
16080 * linux-i386-ipa.c: Include extra header files.
16081 (initialize_fast_tracepoint_trampoline_buffer): New function.
16082 (initialize_low_tracepoint): Call it.
16083 * server.h (set_trampoline_buffer_space): Declare.
16084 (claim_trampoline_space): Ditto.
16085 (have_fast_tracepoint_trampoline_buffer): Ditto.
16086
1e4d1764
YQ
160872011-11-14 Yao Qi <yao@codesourcery.com>
16088
16089 * server.c (handle_query): Handle InstallInTrace for qSupported.
16090 * tracepoint.c (add_tracepoint): Sort list.
16091 (install_tracepoint, download_tracepoint): New.
16092 (cmd_qtdp): Call them to install and download tracepoints.
16093 (sort_tracepoints): Removed.
16094 (cmd_qtstart): Update.
16095
5c73ff4e
YQ
160962011-11-14 Yao Qi <yao@codesourcery.com>
16097
16098 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16099 * mem-break.h: Declare.
16100 * tracepoint.c (cmd_qtstart): Move some code to ...
16101 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16102 New.
16103 (download_tracepoints): Move some code to ...
16104 (download_tracepoint_1): ... here. New.
16105
86a30030
YQ
161062011-11-08 Yao Qi <yao@codesourcery.com>
16107
16108 * remote-utils.c (relocate_instruction): A comment fix.
16109
8d26e50c
JB
161102011-11-07 Joel Brobecker <brobecker@adacore.com>
16111
16112 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16113 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16114 dr_status_mirror and dr_control_mirror from debug_reg_state.
16115 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16116 (i386_initial_stuff): Remove use of deleted globals.
16117 (i386_get_thread_context, i386_set_thread_context,
16118 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16119 from debug_reg_state.
16120
a59306a3
YQ
161212011-11-05 Yao Qi <yao@codesourcery.com>
16122
16123 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16124 address as TPOINT's.
16125
3065dfb6
SS
161262011-11-02 Stan Shebs <stan@codesourcery.com>
16127
16128 * tracepoint.c (agent_mem_read_string): New function.
16129 (eval_agent_expr): Call it for tracenz.
16130 * server.c (handle_query): Report support for tracenz.
16131
fd0d8c7c
YQ
161322011-11-02 Yao Qi <yao@codesourcery.com>
16133
16134 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16135
609086b1
YQ
161362011-11-02 Yao Qi <yao@codesourcery.com>
16137
16138 * target.h: Fix a typo in comment.
16139
b9fd1791
PA
161402011-10-31 Pedro Alves <pedro@codesourcery.com>
16141
16142 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16143 clobber the breakpoints' shadows with fast tracepoint jumps.
16144 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16145 * target.c (write_inferior_memory): Also pass MYADDR down to
16146 check_mem_write.
16147
03583c20
UW
161482011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16149
16150 * configure.ac: Check support for personality routine.
16151 * configure: Regenerate.
16152 * config.in: Likewise.
16153 * linux-low.c: Include <sys/personality.h>.
16154 Define ADDR_NO_RANDOMIZE if necessary.
16155 (linux_create_inferior): Disable address space randomization when
16156 forking inferior, if requested.
16157 (linux_supports_disable_randomization): New function.
16158 (linux_target_ops): Install it.
16159 * server.h (disable_randomization): Declare.
16160 * server.c (disable_randomization): New global variable.
16161 (handle_general_set): Handle QDisableRandomization.
16162 (handle_query): Likewise for qSupported.
16163 (main): Support --disable-randomization and --no-disable-randomization
16164 command line arguments.
16165 * target.h (struct target_ops): Add supports_disable_randomization.
16166 (target_supports_disable_randomization): New macro.
16167
723b724b
MF
161682011-09-29 Mike Frysinger <vapier@gentoo.org>
16169
16170 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16171 ifdef check.
16172 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16173 [!PT_GETDSBT] (target_loadmap): New definition.
16174 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16175 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16176 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16177 and PT_GETDSBT to LINUX_LOADMAP.
16178 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16179 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16180
55329a5c 161812011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16182
16183 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16184 (arm_linux_hwbp_cap): New static variable.
16185 (arm_linux_get_hwbp_cap): Replace by ...
16186 (arm_linux_init_hwbp_cap): ... this new function.
16187 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16188 (arm_linux_get_hw_watchpoint_count): Likewise.
16189 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16190 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16191 (arm_prepare_to_resume): Use perror_with_name instead of error.
16192
55329a5c 161932011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16194
16195 * linux-arm-low.c: Include <signal.h>.
16196 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16197 (struct arm_linux_hwbp_cap): New data type.
16198 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16199 (struct arm_linux_hw_breakpoint): New data type.
16200 (MAX_BPTS, MAX_WPTS): Define.
16201 (struct arch_process_info, struct arch_lwp_info): New data types.
16202 (arm_linux_get_hwbp_cap): New function.
16203 (arm_linux_get_hw_breakpoint_count): Likewise.
16204 (arm_linux_get_hw_watchpoint_count): Likewise.
16205 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16206 (arm_hwbp_control_initialize): Likewise.
16207 (arm_hwbp_control_is_enabled): Likewise.
16208 (arm_hwbp_control_is_initialized): Likewise.
16209 (arm_hwbp_control_disable): Likewise.
16210 (arm_linux_hw_breakpoint_equal): Likewise.
16211 (arm_linux_hw_point_initialize): Likewise.
16212 (struct update_registers_data): New data structure.
16213 (update_registers_callback: New function.
16214 (arm_insert_point): Likewise.
16215 (arm_remove_point): Likewise.
16216 (arm_stopped_by_watchpoint): Likewise.
16217 (arm_stopped_data_address): Likewise.
16218 (arm_new_process): Likewise.
16219 (arm_new_thread): Likewise.
16220 (arm_prepare_to_resume): Likewise.
16221 (the_low_target): Register arm_insert_point, arm_remove_point,
16222 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16223 arm_new_thread, and arm_prepare_to_resume.
16224
6b9801d4
SS
162252011-09-15 Stan Shebs <stan@codesourcery.com>
16226
16227 * server.h (struct emit_ops): Add compare-goto fields.
16228 * tracepoint.c (gdb_agent_op_sizes): New table.
16229 (emit_eq_goto): New function.
16230 (emit_ne_goto): New function.
16231 (emit_lt_goto): New function.
16232 (emit_le_goto): New function.
16233 (emit_gt_goto): New function.
16234 (emit_ge_goto): New function.
16235 (is_goto_target): New function.
16236 (compile_bytecodes): Recognize special cases of compare-goto
16237 combinations and call specialized emitters for them.
16238 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16239 (amd64_emit_ne_goto): New function.
16240 (amd64_emit_lt_goto): New function.
16241 (amd64_emit_le_goto): New function.
16242 (amd64_emit_gt_goto): New function.
16243 (amd64_emit_ge_goto): New function.
16244 (amd64_emit_ops): Add the new functions.
16245 (i386_emit_eq_goto): New function.
16246 (i386_emit_ne_goto): New function.
16247 (i386_emit_lt_goto): New function.
16248 (i386_emit_le_goto): New function.
16249 (i386_emit_gt_goto): New function.
16250 (i386_emit_ge_goto): New function.
16251 (i386_emit_ops): Add the new functions.
16252
bf15cbda
SS
162532011-09-08 Stan Shebs <stan@codesourcery.com>
16254
16255 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16256 (i386_emit_epilogue): Restore %ebx.
16257
943ca1dd
JZ
162582011-08-31 Jie Zhang <jzhang918@gmail.com>
16259
16260 * server.c (step_thread): Remove definition.
16261 (process_serial_event): Don't handle Hs.
16262 * server.h (step_thread): Remove declaration.
16263 * target.c (set_desired_inferior): Remove use of step_thread.
16264
e3deef73
LM
162652011-08-24 Luis Machado <lgustavo@codesourcery.com>
16266
16267 * linux-low.c: Include linux-procfs.h.
16268 (linux_attach_lwp_1): Update comments.
16269 (linux_attach): Scan for existing threads when attaching to a
16270 process that is the tgid.
16271 * Makefile.in: Update dependencies.
16272
13da1c97
LM
162732011-08-24 Luis Machado <lgustavo@codesourcery.com>
16274
16275 * configure.srv: Add linux-procfs.o dependencies.
16276
881127c9
YQ
162772011-08-14 Yao Qi <yao@codesourcery.com>
16278
16279 * target.h (struct target_ops): Fix indent.
16280 * win32-low.c (win32_target_ops): Fix comment.
16281
58dbd541
YQ
162822011-08-14 Andrew Jenner <andrew@codesourcery.com>
16283 Yao Qi <yao@codesourcery.com>
16284
16285 * Makefile.in (clean): Remove tic6x-*.c files.
16286 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16287 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16288 (tic6x-c64xp-linux.c): Likewise.
16289 * configure.srv: Add support for tic6x-*-uclinux.
16290 * linux-tic6x-low.c: New.
16291 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16292
78d85199
YQ
162932011-08-14 Andrew Stubbs <ams@codesourcery.com>
16294 Yao Qi <yao@codesourcery.com>
16295
16296 * target.h (struct target_ops): Add read_loadmap.
16297 * linux-low.c (struct target_loadseg): New type.
16298 (struct target_loadmap): New type.
16299 (linux_read_loadmap): New function.
16300 (linux_target_ops): Add linux_read_loadmap.
16301 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16302 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16303 to NULL.
78d85199 16304
a959a88d
EZ
163052011-08-05 Eli Zaretskii <eliz@gnu.org>
16306
16307 * win32-low.c: Include <stdint.h>.
16308
1ced966e
PA
163092011-07-22 Pedro Alves <pedro@codesourcery.com>
16310
16311 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16312 to the inferior here.
16313 (i386_remove_aligned_watchpoint): Ditto.
16314 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16315 fit part of the watchpoint in the debug registers.
16316 (i386_update_inferior_debug_regs): New.
16317 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16318 registers, and only update the inferior on success.
16319 (i386_low_remove_watchpoint): Ditto.
16320
d26e3629
KY
163212011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16322
16323 * linux-low.c (compare_ints, unique, list_threads, show_process,
16324 linux_core_of_thread): Delete.
16325 (linux_target_ops): Change linux_core_of_thread to
16326 linux_common_core_of_thread.
16327 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16328 * utils.c (malloc_failure): Change type of argument.
16329 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16330 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16331 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16332 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16333 (IPA_OBJS): Add common-utils-ipa.o.
16334 (ptid_h, linux_osdata_h): New macros.
16335 (server_h): Add common/common-utils.h, common/xml-utils.h,
16336 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16337 common/ptid.h.
16338 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16339 ptid.o, buffer.o): New rules.
16340 (linux-low.o): Add common/linux-osdata.h as a dependency.
16341 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16342 * configure.ac: Add AC_HEADER_DIRENT check.
16343 * config.in: Regenerate.
16344 * configure: Regenerate.
16345 * remote-utils.c (xml_escape_text): Delete.
16346 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16347 buffer_xml_printf): Move to common/buffer.c.
16348 * server.c (main): Remove call to initialize_inferiors.
16349 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16350 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16351 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16352 internal_error, gdb_assert, gdb_assert_fail): Delete.
16353 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16354 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16355 common/buffer.h.
16356 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16357 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16358 initialize_inferiors): Delete.
16359
2275a1a7
PA
163602011-07-20 Pedro Alves <pedro@codesourcery.com>
16361
16362 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16363 symbol error.
16364
0a5b1e09
PA
163652011-05-31 Pedro Alves <pedro@codesourcery.com>
16366
16367 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16368 assertion.
16369 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16370
6938fd34
YQ
163712011-05-26 Yao Qi <yao@codesourcery.com>
16372
16373 * Makefile.in (thread-db.o): Track dependence to
16374 common/gdb_thread_db.h.
16375 * thread-db.c: include gdb_thread_db.h from right place.
16376
b481f9e0
TT
163772011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16378
16379 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16380 __FILE__ and __LINE__ to internal_error.
16381
98a5dd13
DE
163822011-05-13 Doug Evans <dje@google.com>
16383
16384 * thread-db.c (try_thread_db_load_from_sdir): New function.
16385 (try_thread_db_load_from_dir): New function.
16386 (thread_db_load_search): Handle $sdir, ignore $pdir.
16387 Remove trying of system directories if search of
16388 libthread-db-search-path fails, that is now done via $sdir.
16389
d248b706
KY
163902011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16391
16392 * server.c (handle_query): Add EnableDisableTracepoints to the list
16393 of supported features.
43aaf8b6 16394 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16395 tracepoints.
43aaf8b6
PA
16396 (cmd_qtenable_disable): New.
16397 (cmd_qtstart): Install tracepoints even if disabled.
16398 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16399 receiving a QTEnable or QTDisable packet.
16400 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16401 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16402 tracepoints.
16403 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16404
84e578fb
DE
164052011-05-10 Doug Evans <dje@google.com>
16406
16407 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16408
71f55dd8
DE
164092011-05-04 Doug Evans <dje@google.com>
16410
16411 * linux-low.c (linux_join): Skip process lookup.
16412 * spu-low.c (spu_join): Ditto.
16413 * server.c (join_inferiors_callback): Delete.
16414 (process_serial_event): For 'D' packet (detach) call join_inferior
16415 directly.
16416
4d393d60
JM
164172011-05-04 Joseph Myers <joseph@codesourcery.com>
16418
16419 * README: Don't mention xscale*-*-linux*.
16420 * configure.srv (xscale*-*-linux*): Don't handle target.
16421
b00ad6ff
NF
164222011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16423
16424 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16425 casting pointers.
16426 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16427 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16428 (i386_emit_void_call_2): Likewise.
16429
af96c192
YQ
164302011-04-26 Yao Qi <yao@codesourcery.com>
16431
43aaf8b6
PA
16432 * linux-low.c: Move common macros to linux-ptrace.h.
16433 Include linux-ptrace.h.
af96c192
YQ
16434 * Makefile.in (linux_ptrace_h): New.
16435 (linux-low.o): Depends on linux-ptrace.h.
16436
03f2bd59
JK
164372011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16438
16439 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16440 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16441 (remote_prepare): New function with most of the TCP code from ...
16442 (remote_open): ... here. Detect PORT here unconditionally. Move also
16443 setting transport_is_reliable.
16444 * server.c (run_once): New variable.
16445 (gdbserver_usage): Document it.
16446 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16447 the first run if RUN_ONCE.
16448 * server.h (run_once, remote_prepare): New declarations.
16449
7a9dd1b2
TT
164502011-04-19 Tom Tromey <tromey@redhat.com>
16451
16452 * win32-low.c (handle_load_dll): Remove duplicate "the".
16453
81239425
PM
164542011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16455
16456 Remove support for old Cygwin 1.5 versions.
16457 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16458 function to avoid warning.
16459 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16460 warning.
16461
9e0627f1
PM
164622011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16463
16464 * gdbserver/server.h (Macro _): Define it if not available.
16465
588eebee
MS
164662011-03-14 Michael Snyder <msnyder@vmware.com>
16467
348af9f7 16468 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16469
43f70d4c
JB
164702011-03-10 Joel Brobecker <brobecker@adacore.com>
16471
16472 * Makefile.in (maintainer-clean realclean distclean): Remove
16473 "make ... subdir_do" command.
16474
348af9f7
MS
164752011-03-10 Michael Snyder <msnyder@vmware.com>
16476
16477 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16478
16479 * server.c (handle_v_run): Free alloced buffer on early return.
16480
e637a4f5
YQ
164812011-03-09 Yao Qi <yao@codesourcery.com>
16482
16483 Revert:
16484 2011-03-04 Yao Qi <yao@codesourcery.com>
16485
16486 * Makefile.in: Remove GNU make feature --directory.
16487
16488 2011-03-05 Yao Qi <yao@codesourcery.com>
16489
16490 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16491 (subdir_do): New make target. Copied from gdb/Makefile.
16492 (maintainer-clean, realclean, distclean, clean): Call corresponding
16493 make targets in common/Makefile.
16494
16495 2011-02-11 Yao Qi <yao@codesourcery.com>
16496
16497 * configure.ac: Call AC_PROG_RANLIB.
16498 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16499 * configure: Regenerate.
16500
e6edda56
JK
165012011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16502
16503 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16504
e5141119
JB
165052011-03-06 Yao Qi <yao@codesourcery.com>
16506
16507 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16508
64794aa4
JB
165092011-03-05 Yao Qi <yao@codesourcery.com>
16510
16511 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16512 (subdir_do): New make target. Copied from gdb/Makefile.
16513 (maintainer-clean, realclean, distclean, clean): Call corresponding
16514 make targets in common/Makefile.
16515
7a762829
YQ
165162011-03-04 Yao Qi <yao@codesourcery.com>
16517
16518 * Makefile.in: Remove GNU make feature --directory.
16519
348af9f7
MS
165202011-03-04 Michael Snyder <msnyder@vmware.com>
16521
16522 * server.c (queue_stop_reply): Call xmalloc not malloc.
16523
165242011-03-02 Michael Snyder <msnyder@vmware.com>
16525
16526 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16527
9f72fee2
MS
165282011-02-28 Michael Snyder <msnyder@vmware.com>
16529
588eebee
MS
16530 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16531 (cmd_qtframe): Ditto.
16532 (cmd_qtbuffer): Ditto.
16533 (cmd_bigqtbuffer): Ditto.
16534
9f72fee2
MS
16535 * utils.c (decimal2str): Initialize 'width' to nine, then
16536 don't mess with it.
16537
8040bd49
UW
165382011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16539
16540 * hostio.c (require_data): Free *data, not data.
16541
7e52cbd0
JK
165422011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16543
16544 * hostio.c (require_data): Use free, not xfree.
16545
9130f83e
MS
165462011-02-27 Michael Snyder <msnyder@vmware.com>
16547
4b812f4e
MS
16548 * server.c (handle_query): Discard unused value.
16549
9130f83e
MS
16550 * hostio.c (require_data): Free malloc memory before returning
16551 error.
16552
69d37113
MS
165532011-02-26 Michael Snyder <msnyder@vmware.com>
16554
16555 * linux-low.c (list_threads): Call closedir for dirent.
16556
35f5825a
MS
165572011-02-27 Michael Snyder <msnyder@vmware.com>
16558
2a589cef
MS
16559 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16560 a case statement falls through.
16561
0adea5f7
MS
16562 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16563
35f5825a
MS
16564 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16565 in comparison.
16566
238f1c74
MS
165672011-02-26 Michael Snyder <msnyder@vmware.com>
16568
16569 * utils.c (decimal2str): Eliminate dead code and dead param.
16570 (pulongest): Drop dead param from call to decimal2str.
16571 (plongest): Ditto.
16572
633ff500
JB
165732011-02-24 Joel Brobecker <brobecker@adacore.com>
16574
16575 Revert the following patch (not approved yet):
16576 2011-02-21 Hui Zhu <teawater@gmail.com>
16577 * tracepoint.c (tp_printf): New function.
16578 (eval_agent_expr): Handle gdb_agent_op_printf.
16579
f9c6ff72
HZ
165802011-02-21 Hui Zhu <teawater@gmail.com>
16581
16582 * tracepoint.c (tp_printf): New function.
16583 (eval_agent_expr): Handle gdb_agent_op_printf.
16584
94d5e490
TT
165852011-02-18 Tom Tromey <tromey@redhat.com>
16586
16587 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16588 (tracepoint.o): Likewise.
16589 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16590 (gdb_agent_op_names): Likewise.
16591
c7f96d2b
TT
165922011-02-18 Tom Tromey <tromey@redhat.com>
16593
16594 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16595 gdb_agent_op_rot>: New constants.
16596 (gdb_agent_op_names): Add pick and roll.
16597 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16598 cases.
16599
0feedb2c
JK
166002011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16601
16602 * aclocal.m4: Regenerated with aclocal-1.11.1.
16603
b3b9301e
PA
166042011-02-14 Pedro Alves <pedro@codesourcery.com>
16605
16606 * server.c (handle_qxfer_traceframe_info): New.
16607 (qxfer_packets): Register "traceframe-info".
16608 (handle_query): Report support for qXfer:traceframe-info:read+.
16609 * tracepoint.c (match_blocktype): New.
16610 (traceframe_find_block_type): Rename to ...
16611 (traceframe_walk_blocks): ... this. Add callback filter argument,
16612 and use it.
16613 (traceframe_find_block_type): New, reimplemented on top of
16614 traceframe_walk_blocks.
16615 (build_traceframe_info_xml): New.
16616 (traceframe_read_info): New.
16617 * server.h (traceframe_read_info): Declare.
16618
4f3e6fb7
YQ
166192011-02-11 Yao Qi <yao@codesourcery.com>
16620
16621 * configure.ac: Call AC_PROG_RANLIB.
16622 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16623 * configure: Regenerate.
16624
764880b7
PA
166252011-02-07 Pedro Alves <pedro@codesourcery.com>
16626
16627 * server.c (gdb_read_memory): Change return semantics to allow
16628 partial transfers.
16629 (handle_search_memory_1): Adjust.
16630 (process_serial_event) <'m' packet>: Handle partial transfers.
16631 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16632
1c79eb8a
PA
166332011-01-28 Pedro Alves <pedro@codesourcery.com>
16634
16635 * regcache.c (init_register_cache): Initialize
16636 regcache->register_status.
16637 (free_register_cache): Release regcache->register_status.
16638 (regcache_cpy): Copy register_status.
16639 (registers_to_string): Print 'x's for unavailable registers.
16640 (supply_register): Mark the register's status valid or
16641 unavailable, depending on whether a buffer was passed in or not.
16642 (supply_register_zeroed): New.
16643 (supply_regblock): Mark the registers' status valid or
16644 unavailable, depending on whether a buffer was passed in or not.
16645 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16646 (struct regcache): New `register_status' field.
16647 (supply_register_zeroed): Declare.
16648 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16649 supply_register_zeroed, rather than passing a NULL buffer to
16650 supply_register.
16651 * tracepoint.c (fetch_traceframe_registers): Update comment.
16652
85724a0e
PA
166532011-01-28 Pedro Alves <pedro@codesourcery.com>
16654
16655 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16656 buffer explicit.
16657
d08aafef
PA
166582011-01-25 Pedro Alves <pedro@codesourcery.com>
16659
16660 * server.h (decode_xfer_write): Change prototype.
16661 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16662 and don't extract the annex here.
16663 * server.c (decode_xfer_read): Remove `annex' parameter,
16664 and don't extract the annex here.
16665 (decode_xfer): New.
16666 (struct qxfer): New.
16667 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16668 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16669 (handle_qxfer_statictrace): New functions, abstracted out from
16670 handle_query, and made to use the struct qxfer interface.
16671 (handle_threads_qxfer_proper): Rename to ...
16672 (handle_qxfer_threads_proper): ... this.
16673 (handle_threads_qxfer): Rename to ...
16674 (handle_qxfer_threads): ... this. Adjust.
16675 (qxfer_packets): New array.
16676 (handle_qxfer): New function.
16677 (handle_query): Use handle_qxfer.
16678
493e2a69
MS
166792011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16680
16681 * gdbreplay.c: Shorten lines of >= 80 columns.
16682 * linux-low.c: Ditto.
16683 * linux-ppc-low.c: Ditto.
16684 * linux-s390-low.c: Ditto.
16685 * linux-sparc-low.c: Ditto.
16686 * linux-x86-low.c: Ditto.
16687 * linux-xtensa-low.c: Ditto.
16688 * mem-break.c: Ditto.
16689 * nto-low.c: Ditto.
16690 * regcache.h: Ditto.
16691 * remote-utils.c: Ditto.
16692 * server.c: Ditto.
16693 * server.h: Ditto.
16694 * thread-db.c: Ditto.
16695 * tracepoint.c: Ditto.
16696 * utils.c: Ditto.
16697 * win32-low.h: Ditto.
16698
44944448
JB
166992011-01-05 Joel Brobecker <brobecker@adacore.com>
16700
16701 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16702 update.
16703
71ce852c
JB
167042011-01-01 Joel Brobecker <brobecker@adacore.com>
16705
16706 * server.c (gdbserver_version): Update copyright year in version
16707 output.
16708 * gdbreplay.c (gdbreplay_version): Ditto.
16709
eb826dc6
MF
167102010-12-29 Jie Zhang <jie.zhang@analog.com>
16711
16712 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16713 * linux-bfin-low.c: New file.
16714 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16715 PT_DATA_ADDR for BFIN targets.
16716 * Makefile.in (SFILES): Add linux-bfin-low.c.
16717 (clean): Remove reg-bfin.c.
16718 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16719 * README: Mention supported Blackfin targets.
16720
39ab222a
MF
167212010-12-23 Mike Frysinger <vapier@gentoo.org>
16722
16723 * .gitignore: New file.
16724
a1f2ce7d
MF
167252010-11-16 Mike Frysinger <vapier@gentoo.org>
16726
16727 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16728
f474844c
JZ
167292010-10-22 Jie Zhang <jie@codesourcery.com>
16730
16731 * Makefile.in: Add FLAGS_TO_PASS variable.
16732 (install): Remove dependency of install-only and recursively
16733 invoke make for install-only.
16734
f1048712
DE
167352010-10-04 Doug Evans <dje@google.com>
16736
16737 * Makefile.in (uninstall): Use $(DESTDIR).
16738
b53a1623
PA
167392010-09-24 Pedro Alves <pedro@codesourcery.com>
16740
e6ee044d
PA
16741 PR gdb/11842
16742
b53a1623
PA
16743 * linux-x86-low.c (compat_siginfo_from_siginfo)
16744 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16745 si_code is < 0. Check for si_code == SI_TIMER before checking for
16746 si_code < 0.
16747
fa1bd1e4
JB
167482010-09-13 Joel Brobecker <brobecker@adacore.com>
16749
16750 * lynx-i386-low.c: New file.
16751 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16752
47fac8f8
JB
167532010-09-13 Joel Brobecker <brobecker@adacore.com>
16754
16755 * lynx-low.c (ptrace_request_to_str): Remove handling for
16756 request values that have been removed in LynxOS 5.x.
16757
1adfc54d
JB
167582010-09-13 Joel Brobecker <brobecker@adacore.com>
16759
16760 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16761 <ptrace.h>
16762
c2a66c29
NS
167632010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16764
16765 * configure.ac: Add --enable-inprocess-agent option.
16766 * configure: Rebuilt.
16767
32fcada3
YQ
167682010-09-06 Yao Qi <yao@codesourcery.com>
16769
16770 * linux-low.c (linux_kill): Remove unused variable.
16771 (linux_stabilize_threads): Likewise.
16772 * server.c (start_inferior): Likewise.
16773 (queue_stop_reply_callback): Likewise.
16774 * tracepoint.c (do_action_at_tracepoint): Likewise.
16775
0cccb683
YQ
167762010-09-06 Yao Qi <yao@codesourcery.com>
16777
16778 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16779 on return.
16780
423ec54c
JK
167812010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16782
16783 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16784
12ac6819
PA
167852010-09-06 Pedro Alves <pedro@codesourcery.com>
16786
16787 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16788 "$(IPA_DEPFILES)".
16789
8ed54b31
JB
167902010-09-01 Joel Brobecker <brobecker@adacore.com>
16791
16792 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16793 gdbserver/lynx-ppc-low.c: New files.
16794 * Makefile.in (lynx_low_h): New variable.
16795 (lynx-low.o, lynx-ppc-low.o): New rules.
16796 * configure.ac: On LynxOS, link with -lnetinet.
16797 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16798 * configure: regenerate.
16799
bb0116a4
JB
168002010-09-01 Joel Brobecker <brobecker@adacore.com>
16801
16802 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16803 * configure.ac: Add check for vasprintf and vsnprintf.
16804 * configure, config.in: Regenerate.
16805 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16806
a778ab81 168072010-09-01 Joel Brobecker <brobecker@adacore.com>
16808
16809 * gdbreplay.c: Move include of alloca.h up, next to include of
16810 malloc.h.
16811 * server.h: Add include of malloc.h.
16812 * mem-break.c: Remove include of malloc.h.
16813 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16814
8b034a19 168152010-09-01 Joel Brobecker <brobecker@adacore.com>
16816
16817 * Makefile.in (memmem.o): Build with -Wno-error.
16818
168192010-09-01 Joel Brobecker <brobecker@adacore.com>
16820
16821 * utils.c (xsnprintf): Make non-static.
16822 * server.h: Add xsnprintf declaration.
16823 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16824 replace calls to snprintf by calls to xsnprintf throughout.
16825
168262010-09-01 Joel Brobecker <brobecker@adacore.com>
16827
16828 * configure.ac: Add configure check for alloca.
16829 * configure, config.in: Regenerate.
16830 * server.h: Include alloca.h if it exists.
16831 * gdbreplay.c: Include alloca.h if it exists.
16832
1a981360
PA
168332010-08-28 Pedro Alves <pedro@codesourcery.com>
16834
16835 * linux-low.c (__SIGRTMIN): Define if not already defined.
16836 (linux_create_inferior): Check for __ANDROID__ rather than
16837 __SIGRTMIN.
16838 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16839 are already deferred.
16840 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16841 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16842 stopped and already has a pending signal to report.
16843 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16844 a pending signal to report or is moving out of a jump pad.
16845 (linux_init_signals): Check for __ANDROID__ rather than
16846 __SIGRTMIN.
16847
b4d51a55
PA
168482010-08-28 Pedro Alves <pedro@codesourcery.com>
16849
16850 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16851 debug_threads check. Avoid a linear search when not doing debug
16852 output.
16853
ec48365d
PA
168542010-08-27 Pedro Alves <pedro@codesourcery.com>
16855
16856 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16857 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16858 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16859 (process_event): Change local fd's type to gdb_fildes_t.
16860 (create_file_handler): Adjust prototype.
16861 (delete_file_handler): Adjust prototype.
16862 (handle_file_event): Adjust prototype. Use pfildes.
16863 (create_file_event): Adjsut prototype.
16864 * remote-utils.c (remote_desc, listen_desc): Change type to
16865 gdb_fildes_t.
16866 * server.h: New gdb_fildes_t typedef.
16867 [USE_WIN32API]: Include winsock2.h.
16868 (delete_file_handler, add_file_handler): Adjust prototypes.
16869 (pfildes): Declare.
16870 * utils.c (pfildes): New.
16871
854d88f0
PA
168722010-08-27 Pedro Alves <pedro@codesourcery.com>
16873
16874 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16875 * configure: Regenerate.
16876
0146f85b
PA
168772010-08-27 Pedro Alves <pedro@codesourcery.com>
16878
16879 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16880 (linux_done_accessing_memory): ... this.
16881 (linux_target_ops): Adjust.
16882 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16883 * nto-low.c (nto_target_ops): Adjust comment.
16884 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16885 * spu-low.c (spu_target_ops): Adjust comment.
16886 * target.h (target_ops): Rename unprepare_to_access_memory field
16887 to done_accessing_memory.
16888 (unprepare_to_access_memory): Rename to ...
16889 (done_accessing_memory): ... this.
16890
90d74c30
PA
168912010-08-26 Pedro Alves <pedro@codesourcery.com>
16892
16893 * linux-low.c (linux_prepare_to_access_memory): New.
16894 (linux_unprepare_to_access_memory): New.
16895 (linux_target_ops): Install them.
16896 * server.c (read_memory): Rename to ...
16897 (gdb_read_memory): ... this. Use
16898 prepare_to_access_memory/prepare_to_access_memory.
16899 (write_memory): Rename to ...
16900 (gdb_write_memory): ... this. Use
16901 prepare_to_access_memory/prepare_to_access_memory.
16902 (handle_search_memory_1): Adjust.
16903 (process_serial_event): Adjust.
16904 * target.h (struct target_ops): New fields
16905 prepare_to_access_memory and unprepare_to_access_memory.
16906 (prepare_to_access_memory, unprepare_to_access_memory): New.
16907 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16908 prepare_to_access_memory/prepare_to_access_memory.
16909 * nto-low.c (nto_target_ops): Adjust.
16910 * spu-low.c (spu_target_ops): Adjust.
16911 * win32-low.c (win32_target_ops): Adjust.
16912
fd467969
PA
169132010-08-26 Pedro Alves <pedro@codesourcery.com>
16914
16915 * Makefile.in (WARN_CFLAGS): Get it from configure.
16916 (WERROR_CFLAGS): New.
16917 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16918 * configure.ac: Introduce --enable-werror, which adds -Werror to
16919 the compiler command line. Enabled by default. Disable with
16920 --disable-werror. Add -Wdeclaration-after-statement
16921 Wpointer-arith and -Wformat-nonliteral to warning flags.
16922 * configure: Regenerate.
16923
331e2f5f
PA
169242010-08-26 Pedro Alves <pedro@codesourcery.com>
16925
16926 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16927
e581f2b4
PA
169282010-08-26 Pedro Alves <pedro@codesourcery.com>
16929
16930 * gdbreplay.c (remote_error): New.
16931 (gdbchar): New.
16932 (expect): Use gdbchar. Check for error reading from GDB.
16933 Clarify sync error output.
16934 (play): Check for errors writing to GDB.
16935 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16936 * remote-utils.c (getpkt): Check for errors writing to the remote
16937 descriptor.
16938
3c11dd79
PA
169392010-08-25 Pedro Alves <pedro@codesourcery.com>
16940
16941 * linux-low.c (linux_wait_1): Move non-debugging code out of
16942 `debug_threads' control.
16943
d20a8ad9
PA
169442010-08-25 Pedro Alves <pedro@codesourcery.com>
16945
16946 * linux-low.c (linux_wait_1): Don't set last_status here.
16947 * server.c (push_event, queue_stop_reply_callback): Assert we're
16948 not pushing a TARGET_WAITKIND_IGNORE event.
16949 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16950 (myresume, handle_target_event): Set the thread's last_resume_kind
16951 and last_status from the target returned status.
16952
964e4306
PA
169532010-08-25 Pedro Alves <pedro@codesourcery.com>
16954
16955 PR threads/10729
16956
16957 * linux-x86-low.c (update_debug_registers_callback): New.
16958 (i386_dr_low_set_addr): Use it.
16959 (i386_dr_low_get_addr): New.
16960 (i386_dr_low_set_control): Use update_debug_registers_callback.
16961 (i386_dr_low_get_control): New.
16962 (i386_dr_low_get_status): Adjust.
16963 * linux-low.c (linux_stop_lwp): New.
16964 * linux-low.h (linux_stop_lwp): Declare.
16965
16966 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16967 argument instead of a i386_debug_reg_state.
16968 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16969 a i386_debug_reg_state.
16970 (i386_insert_aligned_watchpoint): Adjust.
16971 (i386_remove_aligned_watchpoint): Adjust.
16972 (i386_low_stopped_data_address): Read the debug registers from the
16973 inferior instead of from the mirrors.
16974 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16975 (i386_dr_low_get_addr): Declare.
16976 (i386_dr_low_get_control): Declare.
16977 (i386_dr_low_get_status): Change prototype.
16978
16979 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16980 (i386_dr_low_get_addr): New.
16981 (i386_dr_low_get_control): New.
16982 (i386_dr_low_get_status): Adjust prototype. Return
16983 dr_status_mirror.
16984 (i386_initial_stuff): Clear dr_status_mirror and
16985 dr_control_mirror.
16986 (i386_get_thread_context): Adjust.
16987 (i386_set_thread_context): Adjust.
16988 (i386_thread_added): Adjust.
16989
5f21a75b
PA
169902010-08-24 Pedro Alves <pedro@codesourcery.com>
16991
16992 * linux-low.h (linux_thread_area): Delete declaration.
16993
3e4c1235
TS
169942010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16995
16996 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16997 after its termination.
16998
1971b033
PA
169992010-08-09 Pedro Alves <pedro@codesourcery.com>
17000
17001 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17002 (gdb_wants_all_stopped): Delete.
17003 (linux_wait_1): Don't call them.
17004 * server.c (handle_v_cont): Tag all threads as want-stopped.
17005 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17006 stopped as "client-wants-stopped".
17007
310444ac
PA
170082010-07-31 Pedro Alves <pedro@codesourcery.com>
17009
17010 * Makefile.in (signals_h): New.
17011 (server_h): Depend on it.
17012 (server.o): Don't depend on $(signals_def).
17013 (signals.o): Depend on $(signals_def).
17014
a19cae16
JK
170152010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17016
17017 * Makefile.in (signals_def): New.
17018 (server_h): Append include/gdb/signals.h and signals_def.
17019 (server.o): Append signals_def.
17020
30d50328
JK
170212010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17022
17023 * server.c (handle_target_event): Use target_signal_to_host for
17024 resume_info.sig initialization.
17025 * target.h (struct thread_resume) <sig>: New comment.
17026
5c3216e2
OS
170272010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17028
c6f46ca0
OS
17029 * server.c (handle_query): strcpy() the returned string from paddress()
17030 instead of sprintf().
5c3216e2
OS
17031 * utils.c (paddress): Return phex_nz().
17032
6bd31874
JB
170332010-07-07 Joel Brobecker <brobecker@adacore.com>
17034
17035 * server.c (handle_v_cont): Call mourn_inferior if process
17036 just exited.
17037 (myresume): Likewise.
17038
0fb4aa4b
PA
170392010-07-01 Pedro Alves <pedro@codesourcery.com>
17040
17041 Static tracepoints, and integration with UST.
17042
17043 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17044 * mem-break.c (uninsert_all_breakpoints)
17045 (reinsert_all_breakpoints): New.
17046 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17047 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17048 (gdb_agent_ust_loaded, helper_thread_id)
17049 (gdb_agent_helper_thread_id): New macros.
17050 (struct ipa_sym_addresses): Add addr_ust_loaded,
17051 addr_helper_thread_id, addr_cmd_buf.
17052 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17053 (in_process_agent_loaded_ust): New.
17054 (write_e_ust_not_loaded): New.
17055 (maybe_write_ipa_ust_not_loaded): New.
17056 (struct collect_static_trace_data_action): New.
17057 (enum tracepoint_type) <static_tracepoint>: New.
17058 (struct tracepoint) <handle>: Mention static tracepoints.
17059 (struct static_tracepoint_ctx): New.
17060 (CMD_BUF_SIZE): New.
17061 (add_tracepoint_action): Handle static tracepoint actions.
17062 (unprobe_marker_at): New.
17063 (clear_installed_tracepoints): Handle static tracepoints.
17064 (cmd_qtdp): Handle static tracepoints.
17065 (probe_marker_at): New.
17066 (cmd_qtstart): Handle static tracepoints.
17067 (response_tracepoint): Handle static tracepoints.
17068 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17069 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17070 (get_context_regcache): Handle static tracepoints.
17071 (do_action_at_tracepoint): Handle static tracepoint actions.
17072 (traceframe_find_block_type): Handle static trace data blocks.
17073 (traceframe_read_sdata): New.
17074 (download_tracepoints): Download static tracepoint actions.
17075 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17076 (GDB_PROBE_NAME): New.
17077 (ust_ops): New.
17078 (GET_UST_SYM): New.
17079 (USTF): New.
17080 (dlsym_ust): New.
17081 (ust_marker_to_static_tracepoint): New.
17082 (gdb_probe): New.
17083 (collect_ust_data_at_tracepoint): New.
17084 (gdb_ust_probe): New.
17085 (UNIX_PATH_MAX, SOCK_DIR): New.
17086 (gdb_ust_connect_sync_socket): New.
17087 (resume_thread, stop_thread): New.
17088 (run_inferior_command): New.
17089 (init_named_socket): New.
17090 (gdb_ust_socket_init): New.
17091 (cstr_to_hexstr): New.
17092 (next_st): New.
17093 (first_marker, next_marker): New.
17094 (response_ust_marker): New.
17095 (cmd_qtfstm, cmd_qtsstm): New.
17096 (unprobe_marker_at, probe_marker_at): New.
17097 (cmd_qtstmat, gdb_ust_thread): New.
17098 (gdb_ust_init): New.
17099 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17100 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17101 (ST_REGENTRY): New.
17102 (x86_64_st_collect_regmap): New.
17103 (X86_64_NUM_ST_COLLECT_GREGS): New.
17104 (AMD64_RIP_REGNUM): New.
17105 (supply_static_tracepoint_registers): New.
17106 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17107 (ST_REGENTRY): New.
17108 (i386_st_collect_regmap): New.
17109 (i386_NUM_ST_COLLECT_GREGS): New.
17110 (supply_static_tracepoint_registers): New.
17111 * server.c (handle_query): Handle qXfer:statictrace:read.
17112 <qSupported>: Report support for StaticTracepoints, and
17113 qXfer:statictrace:read features.
17114 * server.h (traceframe_read_sdata)
17115 (supply_static_tracepoint_registers): Declare.
17116 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17117 (unpack_varlen_hex): Include in IPA build.
17118 * Makefile.in (ustlibs, ustinc): New.
17119 (IPA_OBJS): Add remote-utils-ipa.o.
17120 ($(IPA_LIB)): Link -ldl and -lpthread.
17121 (UST_CFLAGS): New.
17122 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17123 * config.in, configure: Regenerate.
17124
9e4344e5
PA
171252010-06-20 Ian Lance Taylor <iant@google.com>
17126 Pedro Alves <pedro@codesourcery.com>
17127
17128 * linux-x86-low.c (always_true): Delete.
17129 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17130 trying to fool the compiler with always_true.
17131
c6beb2cb
PA
171322010-06-20 Pedro Alves <pedro@codesourcery.com>
17133
17134 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17135 conditions in gdbserver.
17136
d2ed6730
UW
171372010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17138
17139 * spu-low.c (spu_read_memory): Wrap around local store limit.
17140 (spu_write_memory): Likewise.
17141
4e29fb54
PA
171422010-06-15 Pedro Alves <pedro@codesourcery.com>
17143
17144 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17145 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17146 LONGEST uses.
17147 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17148 uses.
17149 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17150 uses with LONGEST uses.
17151
6a271cae
PA
171522010-06-14 Stan Shebs <stan@codesourcery.com>
17153 Pedro Alves <pedro@codesourcery.com>
17154
17155 Bytecode compiler.
17156
17157 * linux-x86-low.c: Include limits.h.
17158 (add_insns): New.
17159 (always_true): New.
17160 (EMIT_ASM): New.
17161 (EMIT_ASM32): New.
17162 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17163 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17164 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17165 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17166 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17167 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17168 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17169 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17170 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17171 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17172 (amd64_emit_void_call_2): New.
17173 (amd64_emit_ops): New.
17174 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17175 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17176 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17177 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17178 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17179 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17180 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17181 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17182 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17183 (i386_emit_stack_adjust, i386_emit_int_call_1)
17184 (i386_emit_void_call_2): New.
17185 (i386_emit_ops): New.
17186 (x86_emit_ops): New.
17187 (the_low_target): Install x86_emit_ops.
17188 * server.h (struct emit_ops): New.
17189 (get_raw_reg_func_addr): Declare.
17190 (current_insn_ptr, emit_error): Declare.
17191 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17192 (set_trace_state_variable_value): New defines.
17193 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17194 addr_get_trace_state_variable_value and
17195 addr_set_trace_state_variable_value.
17196 (symbol_list): New fields for get_raw_reg,
17197 get_trace_state_variable_value and set_trace_state_variable_value.
17198 (condfn): New typedef.
17199 (struct tracepoint): New field `compiled_cond'.
17200 (do_action_at_tracepoint): Clear compiled_cond.
17201 (get_trace_state_variable_value, set_trace_state_variable_value):
17202 Export in the IPA.
17203 (condition_true_at_tracepoint): If there's a compiled condition,
17204 run that.
17205 (current_insn_ptr, emit_error): New globals.
17206 (struct bytecode_address): New.
17207 (get_raw_reg_func_addr): New.
17208 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17209 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17210 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17211 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17212 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17213 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17214 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17215 (compile_tracepoint_condition, compile_bytecodes): New.
17216 * target.h (emit_ops): Forward declare.
17217 (struct target_ops): New field emit_ops.
17218 (target_emit_ops): New.
17219 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17220 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17221 * linux-low.c (linux_emit_ops): New.
17222 (linux_target_ops): Install it.
17223 * linux-low.h (struct linux_target_ops): New field emit_ops.
17224
92b72907
UW
172252010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17226
17227 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17228 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17229
fa593d66
PA
172302010-06-01 Pedro Alves <pedro@codesourcery.com>
17231 Stan Shebs <stan@codesourcery.com>
17232
17233 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17234 (all): Depend on $(extra_libraries).
17235 (install-only): Install the IPA.
17236 (IPA_OBJS, IPA_LIB): New.
17237 (clean): Remove the IPA lib.
17238 (IPAGENT_CFLAGS): New.
17239 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17240 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17241 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17242 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17243 * configure.ac: Check for atomic builtins support in the compiler.
17244 (IPA_DEPFILES, extra_libraries): Define.
17245 * configure.srv (ipa_obj): Add description.
17246 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17247 (i[34567]86-*-linux*): Set ipa_obj.
17248 (x86_64-*-linux*): Set ipa_obj.
17249 * linux-low.c (stabilizing_threads): New.
17250 (supports_fast_tracepoints): New.
17251 (linux_detach): Stabilize threads before detaching.
17252 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17253 the lwp is either not stabilizing, or is moving out of a jump pad.
17254 (linux_fast_tracepoint_collecting): New.
17255 (maybe_move_out_of_jump_pad): New.
17256 (enqueue_one_deferred_signal): New.
17257 (dequeue_one_deferred_signal): New.
17258 (linux_wait_for_event_1): If moving out of a jump pad, defer
17259 pending signals to later.
17260 (linux_stabilize_threads): New.
17261 (linux_wait_1): Check if threads need moving out of jump pads, and
17262 do it if so.
17263 (stuck_in_jump_pad_callback): New.
17264 (move_out_of_jump_pad_callback): New.
17265 (lwp_running): New.
17266 (linux_resume_one_lwp): Handle moving out of jump pads.
17267 (linux_set_resume_request): Dequeue deferred signals.
17268 (need_step_over_p): Also step over fast tracepoint jumps.
17269 (start_step_over): Also uninsert fast tracepoint jumps.
17270 (finish_step_over): Also reinsert fast tracepoint jumps.
17271 (linux_install_fast_tracepoint_jump): New.
17272 (linux_target_ops): Install linux_stabilize_threads and
17273 linux_install_fast_tracepoint_jump_pad.
17274 * linux-low.h (linux_target_ops) <get_thread_area,
17275 install_fast_tracepoint_jump_pad>: New fields.
17276 (struct lwp_info) <collecting_fast_tracepoint,
17277 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17278 (linux_get_thread_area): Declare.
17279 * linux-x86-low.c (jump_insn): New.
17280 (x86_get_thread_area): New.
17281 (append_insns): New.
17282 (push_opcode): New.
17283 (amd64_install_fast_tracepoint_jump_pad): New.
17284 (i386_install_fast_tracepoint_jump_pad): New.
17285 (x86_install_fast_tracepoint_jump_pad): New.
17286 (the_low_target): Install x86_get_thread_area and
17287 x86_install_fast_tracepoint_jump_pad.
17288 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17289 (struct fast_tracepoint_jump): New.
17290 (fast_tracepoint_jump_insn): New.
17291 (fast_tracepoint_jump_shadow): New.
17292 (find_fast_tracepoint_jump_at): New.
17293 (fast_tracepoint_jump_here): New.
17294 (delete_fast_tracepoint_jump): New.
17295 (set_fast_tracepoint_jump): New.
17296 (uninsert_fast_tracepoint_jumps_at): New.
17297 (reinsert_fast_tracepoint_jumps_at): New.
17298 (set_breakpoint_at): Use write_inferior_memory.
17299 (uninsert_raw_breakpoint): Use write_inferior_memory.
17300 (check_mem_read): Mask out fast tracepoint jumps.
17301 (check_mem_write): Mask out fast tracepoint jumps.
17302 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17303 (set_fast_tracepoint_jump): Declare.
17304 (delete_fast_tracepoint_jump)
17305 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17306 (reinsert_fast_tracepoint_jumps_at): Declare.
17307 * regcache.c: Don't compile many functions when building the
17308 in-process agent library.
17309 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17310 the register buffer in the heap.
17311 (free_register_cache): If the register buffer isn't owned by the
17312 regcache, don't free it.
17313 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17314 pre-existing register caches.
17315 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17316 type.
17317 (convert_ascii_to_int): : Constify `from' parameter type.
17318 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17319 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17320 the needed buffer in-place.
17321 (relocate_instruction): New.
17322 * server.c (handle_query) <qSymbols>: If the target supports
17323 tracepoints, give it a chance of looking up symbols. Report
17324 support for fast tracepoints.
17325 (handle_status): Stabilize threads.
17326 (process_serial_event): Adjust.
17327 * server.h (struct fast_tracepoint_jump): Forward declare.
17328 (struct process_info) <fast_tracepoint_jumps>: New field.
17329 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17330 (decode_X_packet, decode_M_packet): Adjust.
17331 (relocate_instruction): Declare.
17332 (in_process_agent_loaded): Declare.
17333 (tracepoint_look_up_symbols): Declare.
17334 (struct fast_tpoint_collect_status): Declare.
17335 (fast_tracepoint_collecting): Declare.
17336 (force_unlock_trace_buffer): Declare.
17337 (handle_tracepoint_bkpts): Declare.
17338 (initialize_low_tracepoint)
17339 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17340 * target.h (struct target_ops) <stabilize_threads,
17341 install_fast_tracepoint_jump_pad>: New fields.
17342 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17343 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17344 [HAVE_STDINT_H]: Include stdint.h.
17345 (trace_debug_1): Rename to ...
17346 (trace_vdebug): ... this.
17347 (trace_debug): Rename to ...
17348 (trace_debug_1): ... this. Add `level' parameter.
17349 (trace_debug): New.
17350 (ATTR_USED, ATTR_NOINLINE): New.
17351 (IP_AGENT_EXPORT): New.
17352 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17353 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17354 (about_to_request_buffer_space, trace_buffer_is_full)
17355 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17356 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17357 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17358 (traceframe_write_count, traceframes_created)
17359 (trace_state_variables)
17360 New renaming defines.
17361 (struct ipa_sym_addresses): New.
17362 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17363 (symbol_list): New.
17364 (ipa_sym_addrs): New.
17365 (all_tracepoint_symbols_looked_up): New.
17366 (in_process_agent_loaded): New.
17367 (write_e_ipa_not_loaded): New.
17368 (maybe_write_ipa_not_loaded): New.
17369 (tracepoint_look_up_symbols): New.
17370 (debug_threads) [IN_PROCESS_AGENT]: New.
17371 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17372 (UNKNOWN_SIDE_EFFECTS): New.
17373 (stop_tracing): New.
17374 (flush_trace_buffer): New.
17375 (stop_tracing_bkpt): New.
17376 (flush_trace_buffer_bkpt): New.
17377 (read_inferior_integer): New.
17378 (read_inferior_uinteger): New.
17379 (read_inferior_data_pointer): New.
17380 (write_inferior_data_pointer): New.
17381 (write_inferior_integer): New.
17382 (write_inferior_uinteger): New.
17383 (struct collect_static_trace_data_action): Delete.
17384 (enum tracepoint_type): New.
17385 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17386 <actions_str, step_actions, step_actions_str>: Only include in
17387 GDBserver.
fa593d66
PA
17388 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17389 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17390 (tracepoints): Use IP_AGENT_EXPORT.
17391 (last_tracepoint): Don't include in the IPA.
17392 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17393 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17394 (alloced_trace_state_variables): New.
17395 (trace_state_variables): Use IP_AGENT_EXPORT.
17396 (traceframe_t): Delete unused variable.
17397 (circular_trace_buffer): Don't include in the IPA.
17398 (trace_buffer_start): Delete.
17399 (struct trace_buffer_control): New.
17400 (trace_buffer_free): Delete.
17401 (struct ipa_trace_buffer_control): New.
17402 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17403 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17404 New.
17405 (trace_buffer_ctrl): New.
17406 (TRACE_BUFFER_CTRL_CURR): New.
17407 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17408 Reimplement as macros.
17409 (trace_buffer_wrap): Delete.
17410 (traceframe_write_count, traceframe_read_count)
17411 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17412 (struct tracepoint_hit_ctx) <type>: New field.
17413 (struct fast_tracepoint_ctx): New.
17414 (memory_barrier): New.
17415 (cmpxchg): New.
17416 (record_tracepoint_error): Update atomically in the IPA.
17417 (clear_inferior_trace_buffer): New.
17418 (about_to_request_buffer_space): New.
17419 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17420 updating the same buffer.
17421 (add_tracepoint): Default the tracepoint's type to trap
17422 tracepoint, and orig_size to -1.
17423 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17424 internal variables.
17425 (create_trace_state_variable): New parameter `gdb'. Handle it.
17426 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17427 (cmd_qtdp): Handle fast tracepoints.
17428 (cmd_qtdv): Adjust.
17429 (max_jump_pad_size): New.
17430 (gdb_jump_pad_head): New.
17431 (get_jump_space_head): New.
17432 (claim_jump_space): New.
17433 (sort_tracepoints): New.
17434 (MAX_JUMP_SIZE): New.
17435 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17436 IPA.
17437 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17438 support. Upload fast traceframes, and delete internal IPA
17439 breakpoints.
17440 (stop_tracing_handler): New.
17441 (flush_trace_buffer_handler): New.
17442 (cmd_qtstop): Upload fast tracepoints.
17443 (response_tracepoint): Handle fast tracepoints.
17444 (tracepoint_finished_step): Upload fast traceframes. Set the
17445 tracepoint hit context's tracepoint type.
17446 (handle_tracepoint_bkpts): New.
17447 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17448 type. Add comment about fast tracepoints.
17449 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17450 non-existing action_str field.
17451 (get_context_regcache): Handle fast tracepoints.
17452 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17453 to the regcache.
17454 (fast_tracepoint_from_jump_pad_address): New.
17455 (fast_tracepoint_from_ipa_tpoint_address): New.
17456 (collecting_t): New.
17457 (force_unlock_trace_buffer): New.
17458 (fast_tracepoint_collecting): New.
17459 (collecting): New.
17460 (gdb_collect): New.
17461 (write_inferior_data_ptr): New.
17462 (target_tp_heap): New.
17463 (target_malloc): New.
17464 (download_agent_expr): New.
17465 (UALIGN): New.
17466 (download_tracepoints): New.
17467 (download_trace_state_variables): New.
17468 (upload_fast_traceframes): New.
17469 (IPA_FIRST_TRACEFRAME): New.
17470 (IPA_NEXT_TRACEFRAME_1): New.
17471 (IPA_NEXT_TRACEFRAME): New.
17472 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17473 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17474 (gdb_jump_pad_buffer_end): New.
17475 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17476 (initialize_tracepoint): Adjust.
17477 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17478 buffer. Initialize the low module.
17479 * utils.c (PREFIX, TOOLNAME): New.
17480 (malloc_failure): Use PREFIX.
17481 (error): In the IPA, an error causes an exit.
17482 (fatal, warning): Use PREFIX.
17483 (internal_error): Use TOOLNAME.
17484 (NUMCELLS): Increase to 10.
17485 * configure, config.in: Regenerate.
17486
d149dd1d
PA
174872010-06-01 Pedro Alves <pedro@codesourcery.com>
17488
17489 * server.c (handle_query) <qSupported>: Do two passes over the
17490 qSupported string to avoid nesting strtok.
17491
f6528abd
JK
174922010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17493
17494 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17495 (CDEPS): New.
17496 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17497 -Wl,--dynamic-list.
17498 * configure: Regenerate.
17499 * proc-service.list: New.
17500
ca2a87a0
JK
175012010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17502
17503 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17504 New comment.
17505
363a6e9f
OS
175062010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17507
17508 * gdbreplay.c (remote_open): Check error return from socket() call by
17509 its equality to -1 not by it being negative.
17510 * remote-utils.c (remote_open): Likewise.
17511
d23b6cb1
PA
175122010-05-23 Pedro Alves <pedro@codesourcery.com>
17513
17514 * config.h: Regenerate.
17515
28d3cf85
MK
175162010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17517
17518 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17519 doesn't provide PTRACE_GET_THREAD_AREA.
17520
fea36a59
MK
175212010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17522
17523 * linux-m68k-low.c: Include <asm/ptrace.h>
17524 (ps_get_thread_area): Implement.
17525
24b066ba
DE
175262010-05-03 Doug Evans <dje@google.com>
17527
17528 * event-loop.c (struct callback_event): New struct.
17529 (callback_list): New global.
17530 (append_callback_event, delete_callback_event): New functions.
17531 (process_callback): New function.
17532 (start_event_loop): Call it.
17533 * remote-utils.c (NOT_SCHEDULED): Define.
17534 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17535 moved out of readchar.
17536 (readchar): Rewrite. Call reschedule before returning.
17537 (reset_readchar): New function.
17538 (remote_close): Call it.
17539 (process_remaining, reschedule): New functions.
17540 * server.h (callback_handler_func): New typedef.
17541 (append_callback_event, delete_callback_event): Declare.
17542
9836d6ea
PA
175432010-05-03 Pedro Alves <pedro@codesourcery.com>
17544
17545 * proc-service.c (ps_pglobal_lookup): Use
17546 thread_db_look_up_one_symbol.
17547 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17548 parameter. Use it instead of all_symbols_looked_up.
17549 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17550 field.
17551 (all_symbols_looked_up): Don't declare.
17552 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17553 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17554 field.
17555 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17556 Set all_symbols_looked_up here.
17557 (thread_db_look_up_one_symbol): New.
17558 (thread_db_get_tls_address): Adjust.
17559 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17560 thread_db object on the heap, and tentatively set it in the
17561 process structure.
17562 (thread_db_init): Don't set all_symbols_looked_up here.
17563 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17564
7984d532
PA
175652010-05-03 Pedro Alves <pedro@codesourcery.com>
17566
17567 * linux-low.c (linux_kill, linux_detach): Adjust.
17568 (status_pending_p_callback): Remove redundant statement. Check
17569 for !TARGET_WAITIKIND_IGNORE, instead of
17570 TARGET_WAITKIND_STOPPED.
17571 (handle_tracepoints): Make sure LWP is locked. Adjust.
17572 (linux_wait_for_event_1): Adjust.
17573 (linux_cancel_breakpoints): New.
17574 (unsuspend_one_lwp): New.
17575 (unsuspend_all_lwps): New.
17576 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17577 (send_sigstop_callback): Change return type to int, add new
17578 `except' parameter and handle it.
17579 (suspend_and_send_sigstop_callback): New.
17580 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17581 pass them down. If SUSPEND, also increment the lwp's suspend
17582 count.
17583 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17584 (need_step_over_p): Don't consider suspended LWPs.
17585 (start_step_over): Adjust.
17586 (proceed_one_lwp): Change return type to int, add new `except'
17587 parameter and handle it.
17588 (unsuspend_and_proceed_one_lwp): New.
17589 (proceed_all_lwps): Use find_inferior instead of
17590 for_each_inferior.
17591 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17592 also decrement the suspend count of LWPs. Pass `except' down,
17593 instead of hacking its suspend count.
17594 (linux_pause_all): Add `freeze' parameter. Adjust.
17595 (linux_unpause_all): New.
17596 (linux_target_ops): Install linux_unpause_all.
17597 * server.c (handle_status): Adjust.
17598 * target.h (struct target_ops): New fields `unpause_all' and
17599 `cancel_breakpoints'. Add new parameter to `pause_all'.
17600 (pause_all): Add new `freeze' parameter.
17601 (unpause_all): New.
17602 (cancel_breakpoints): New.
17603 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17604 cancel breakpoints.
17605 (cmd_qtstart): Pause threads.
17606 (stop_tracing): Pause threads, and cancel breakpoints.
17607 * win32-low.c (win32_target_ops): Adjust.
17608
e471f25b
PA
176092010-05-03 Pedro Alves <pedro@codesourcery.com>
17610
17611 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17612 the inferior right away from here...
17613 (linux_wait_1): ... to here, and adjust to check the thread's
17614 last_resume_kind instead of the lwp's step or stop_expected flags.
17615
1915ef4f
PA
176162010-05-02 Pedro Alves <pedro@codesourcery.com>
17617
17618 * README: Use consistent `GDB' and `GDBserver' spellings.
17619
f9e39928
PA
176202010-05-02 Pedro Alves <pedro@codesourcery.com>
17621
17622 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17623 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17624 (linux_detach_one_lwp): Assume the lwp is stopped.
17625 (any_thread_of): Delete.
17626 (linux_detach): Stop all lwps here. Don't blindly delete all
17627 breakpoints.
17628 (delete_lwp_callback): New.
17629 (linux_mourn): Delete all lwps of the process that is gone.
17630 (linux_wait_1): Don't delete the last lwp of the process here.
17631 * mem-break.h (mark_breakpoints_out): Declare.
17632 * mem-break.c (mark_breakpoints_out): New.
17633 (free_all_breakpoints): Use it.
17634 * server.c (handle_target_event): If the process is gone, mark
17635 breakpoints out.
17636 * thread-db.c (struct thread_db) <create_bp>: New field.
17637 (thread_db_enable_reporting): Fix prototype. Store a thread event
17638 breakpoint reference in the thread_db struct.
17639 (thread_db_load_search): Clear the thread_db object.
17640 (try_thread_db_load_1): Ditto.
17641 (switch_to_process): New.
17642 (disable_thread_event_reporting): Use it.
17643 (remove_thread_event_breakpoints): New.
17644 (thread_db_detach, thread_db_mourn): Use it.
17645
1e7fc18c
PA
176462010-05-01 Pedro Alves <pedro@codesourcery.com>
17647
17648 * linux-low.c (linux_enable_event_reporting): New.
17649 (linux_wait_for_event_1, handle_extended_wait): Use it.
17650
02fc4de7
PA
176512010-04-30 Pedro Alves <pedro@codesourcery.com>
17652
17653 * linux-low.c (linux_kill_one_lwp, linux_kill)
17654 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17655 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17656 SIGSTOP even if the LWP is stopped.
17657 (send_sigstop_callback): New.
17658 (stop_all_lwps): Use send_sigstop_callback instead.
17659 (linux_resume_one_thread): Adjust.
17660 (proceed_one_lwp): Still proceed an LWP that the client has
17661 requested to stop, if we haven't reported it as stopped yet. Make
17662 sure that LWPs the client want stopped, have a pending SIGSTOP.
17663
bc3b5632
DE
176642010-04-26 Doug Evans <dje@google.com>
17665
ae1ada35
DE
17666 * server.c (handle_general_set): Make static.
17667
bc3b5632
DE
17668 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17669 Print received char after testing for error/eof instead of before.
17670 (input_interrupt): Tweak comment.
17671
65730243
DE
176722010-04-23 Doug Evans <dje@google.com>
17673
17674 * server.c (start_inferior): Print inferior argv if --debug.
17675
a8ae7dc0
AR
176762010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17677
17678 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17679 * nto-x86-low.c: Include server.h
17680
1c07cc19
PM
176812010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17682
17683 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17684 be consistent with other sources of this directory.
17685 (init_registers_amd64): Correct name of source file of this function
17686 in the comment.
17687
e0a61e09
PM
176882010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17689
17690 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17691 64-bit executables.
17692
54709339
PM
176932010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17694
17695 * win32-i386-low.c: Add 64-bit support.
17696 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17697 (init_registers_amd64): Declare.
17698 (mappings): Add 64-bit version of array.
17699 (init_windows_x86): New function.
17700 (the_low_target): Change init_arch field to init_windows_x86.
17701
e8f0053d
PM
177022010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17703
17704 * win32-low.c: Adapt to support also 64-bit architecture.
17705 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17706 (get_image_name): Use SIZE_T type for local variable `done'.
17707 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17708 (toolhelp_get_dll_name): Idem.
17709 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17710 Use uintptr_t typecast to avoid warning.
17711 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17712 (handle_exception): Use phex_nz to avoid warning.
17713 (win32_wait): Remove unused local variable `process'.
17714
c481e77e
PM
177152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17716
17717 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17718 `amd64-avx.o'.
17719
12ea4b69
PM
177202010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17721
17722 * configure.ac: Use `ws2_32' library for srv_mingw.
17723 * configure: Regenerate.
17724 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17725 * remote-utils.c: Likewise.
17726
f6d1620c
L
177272010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17728
17729 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17730 if __x86_64__ is defined.
17731
8e642873
PM
177322010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17733
17734 * configure: Regenerate.
17735
711e434b
PM
177362010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17737
17738 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17739 * target.h (target_ops): New get_tib_address field.
17740 * win32-low.h (win32_thread_info): Add thread_local_base field.
17741 * win32-low.c (child_add_thread): Add tlb argument.
17742 Set thread_local_base field to TLB.
17743 (get_child_debug_event): Adapt to child_add_thread change.
17744 (win32_get_tib_address): New function.
17745 (win32_target_ops): Set get_tib_address field to
17746 win32_get_tib_address.
17747 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17748
505106cd
PA
177492010-04-12 Pedro Alves <pedro@codesourcery.com>
17750
505106cd
PA
17751 * linux-low.c (linux_mourn): Also remove the process.
17752 * server.c (handle_target_event): Don't remove the process here.
17753 * nto-low.c (nto_mourn): New.
17754 (nto_target_ops): Install it.
17755 * spu-low.c (spu_mourn): New.
17756 (spu_target_ops): Install it.
17757 * win32-low.c (win32_mourn): New.
17758 (win32_target_ops): Install it.
17759
e8470a06
PA
177602010-04-12 Pedro Alves <pedro@codesourcery.com>
17761
17762 * server.h (buffer_xml_printf): Remove redundant `;'.
17763
45ba0d02
PA
177642010-04-12 Pedro Alves <pedro@codesourcery.com>
17765
17766 * regcache.c (set_register_cache): Invalidate regcaches before
17767 changing the register cache layout.
17768 (regcache_invalidate_one): Allow a NULL regcache.
17769 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17770 regcaches before changing the register cache layout or the target
17771 regsets.
17772
59e04013
L
177732010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17774
17775 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17776 variable warning on Linux/x86-64.
17777
8336d594
PA
177782010-04-11 Pedro Alves <pedro@codesourcery.com>
17779
17780 GDBserver disconnected tracing support.
17781
17782 * linux-low.c (linux_remove_process): Delete.
17783 (add_lwp): Don't set last_resume_kind here.
17784 (linux_kill): Use `mourn'.
17785 (linux_detach): Use `thread_db_detach', and `mourn'.
17786 (linux_mourn): New.
17787 (linux_attach_lwp_1): Adjust comment.
17788 (linux_attach): last_resume_kind moved the thread_info; adjust.
17789 (status_pending_p_callback): Adjust.
17790 (linux_wait_for_event_1): Adjust.
17791 (count_events_callback, select_singlestep_lwp_callback)
17792 (select_event_lwp_callback, cancel_breakpoints_callback)
17793 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17794 (proceed_one_lwp): Adjust.
17795 (linux_async): Add debug output.
17796 (linux_thread_stopped): New.
17797 (linux_pause_all): New.
17798 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17799 linux_pause_all.
17800 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17801 (thread_db_free): Delete declaration.
17802 (thread_db_detach, thread_db_mourn): Declare.
17803 * thread-db.c (thread_db_init): Use thread_db_mourn.
17804 (thread_db_free): Delete, split in two.
17805 (disable_thread_event_reporting): New.
17806 (thread_db_detach): New.
17807 (thread_db_mourn): New.
17808
17809 * server.h (struct thread_info) <last_resume_kind>: New field.
17810 <attached>: Add comment.
17811 <gdb_detached>: New field.
17812 (handler_func): Change return type to int.
17813 (handle_serial_event, handle_target_event): Ditto.
17814 (gdb_connected): Declare.
17815 (tracing): Delete.
17816 (disconnected_tracing): Declare.
17817 (stop_tracing): Declare.
17818
17819 * server.c (handle_query) <qSupported>: Report support for
17820 disconnected tracing.
17821 (queue_stop_reply_callback): Account for running threads.
17822 (gdb_wants_thread_stopped): New.
17823 (gdb_wants_all_threads_stopped): New.
17824 (gdb_reattached_process): New.
17825 (handle_status): Clear the `gdb_detached' flag of all processes.
17826 In all-stop, stop all threads.
17827 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17828 (process_serial_event): If the remote connection breaks, or if an
17829 exit was forced with "monitor exit", force an event loop exit.
17830 Handle disconnected tracing on detach.
17831 (handle_serial_event): Adjust.
17832 (handle_target_event): If GDB isn't connected, forward events back
17833 to the inferior, unless the last process exited, in which case,
17834 exit gdbserver. Adjust interface.
17835
17836 * remote-utils.c (remote_open): Don't block in accept. Instead
17837 register an event loop source on the listen socket file
17838 descriptor. Refactor bits into ...
17839 (listen_desc): ... this new global.
17840 (gdb_connected): ... this new function.
17841 (enable_async_notification): ... this new function.
17842 (handle_accept_event): ... this new function.
17843 (remote_close): Clear remote_desc.
17844
17845 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17846
17847 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17848 New fields.
17849 (mourn_inferior): Define.
17850 (target_process_qsupported): Avoid the dangling else problem.
17851 (thread_stopped): Define.
17852 (pause_all): Define.
17853 (target_waitstatus_to_string): Declare.
17854 * target.c (target_waitstatus_to_string): New.
17855
17856 * tracepoint.c (tracing): Make extern.
17857 (disconnected_tracing): New.
17858 (stop_tracing): Make extern. Handle tracing stops due to GDB
17859 disconnecting.
17860 (cmd_qtdisconnected): New.
17861 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17862 (handle_tracepoint_general_set): Handle QTDisconnected.
17863
17864 * event-loop.c (event_handler_func): Change return type to int.
17865 (process_event): Bail out if the event handler wants the event
17866 loop to stop.
17867 (handle_file_event): Ditto.
17868 (start_event_loop): Bail out if the event handler wants the event
17869 loop to stop.
17870
17871 * nto-low.c (nto_target_ops): Adjust.
17872 * spu-low.c (spu_wait): Don't remove the process here.
17873 (spu_target_ops): Adjust.
17874 * win32-low.c (win32_wait): Don't remove the process here.
17875 (win32_target_ops): Adjust.
17876
5d267c4c
PA
178772010-04-11 Pedro Alves <pedro@codesourcery.com>
17878
17879 * regcache.c (realloc_register_cache): Invalidate inferior's
17880 regcache before recreating it.
17881
623ccd72
PA
178822010-04-09 Pedro Alves <pedro@codesourcery.com>
17883
17884 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17885
219f2f23
PA
178862010-04-09 Stan Shebs <stan@codesourcery.com>
17887 Pedro Alves <pedro@codesourcery.com>
17888
17889 * server.h (LONGEST): New.
17890 (struct thread_info) <while_stepping>: New field.
17891 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17892 Declare.
17893 (initialize_tracepoint, handle_tracepoint_general_set)
17894 (handle_tracepoint_query, tracepoint_finished_step)
17895 (tracepoint_was_hit, release_while_stepping_state_list):
17896 (current_traceframe): Declare.
17897 * server.c (handle_general_set): Handle tracepoint packets.
17898 (read_memory): New.
17899 (write_memory): New.
17900 (handle_search_memory_1): Use read_memory.
17901 (handle_query): Report support for conditional tracepoints, trace
17902 state variables, and tracepoint sources. Handle tracepoint
17903 queries.
17904 (main): Initialize the tracepoints module.
17905 (process_serial_event): Handle traceframe reads/writes.
17906
17907 * linux-low.c (handle_tracepoints): New.
17908 (linux_wait_1): Call it.
17909 (linux_resume_one_lwp): Handle while-stepping.
17910 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17911 (linux_target_ops): Install them.
17912 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17913 New field.
17914 * linux-x86-low.c (x86_supports_tracepoints): New.
17915 (the_low_target). Install it.
17916
17917 * mem-break.h (delete_breakpoint): Declare.
17918 * mem-break.c (delete_breakpoint): Make external.
17919
17920 * target.h (struct target_ops): Add `supports_tracepoints',
17921 `read_pc', and `write_pc' fields.
17922 (target_supports_tracepoints): Define.
17923 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17924 (phex_nz): New.
17925
17926 * regcache.h (struct regcache) <registers_owned>: New field.
17927 (init_register_cache, regcache_cpy): Declare.
17928 (regcache_read_pc, regcache_write_pc): Declare.
17929 (register_cache_size): Declare.
17930 (supply_regblock): Declare.
17931 * regcache.c (init_register_cache): New.
17932 (new_register_cache): Use it.
17933 (regcache_cpy): New.
17934 (register_cache_size): New.
17935 (supply_regblock): New.
17936 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17937
219f2f23
PA
17938 * tracepoint.c: New.
17939
17940 * Makefile.in (OBS): Add tracepoint.o.
17941 (tracepoint.o): New rule.
17942
3a13a53b
L
179432010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17944
17945 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17946 (i386-mmx.o): New.
17947 (i386-mmx.c): Likewise.
17948 (i386-mmx-linux.o): Likewise.
17949 (i386-mmx-linux.c): Likewise.
17950
17951 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17952 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17953 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17954 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17955
17956 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17957 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17958 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17959
1570b33e
L
179602010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17961
17962 * Makefile.in (clean): Updated.
17963 (i386-avx.o): New.
17964 (i386-avx.c): Likewise.
17965 (i386-avx-linux.o): Likewise.
17966 (i386-avx-linux.c): Likewise.
17967 (amd64-avx.o): Likewise.
17968 (amd64-avx.c): Likewise.
17969 (amd64-avx-linux.o): Likewise.
17970 (amd64-avx-linux.c): Likewise.
17971
17972 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17973 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17974 (srv_amd64_regobj): Add amd64-avx.o.
17975 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17976 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17977 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17978 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17979 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17980 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17981 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17982
17983 * i387-fp.c: Include "i386-xstate.h".
17984 (i387_xsave): New.
17985 (i387_cache_to_xsave): Likewise.
17986 (i387_xsave_to_cache): Likewise.
17987 (x86_xcr0): Likewise.
17988
17989 * i387-fp.h (i387_cache_to_xsave): Likewise.
17990 (i387_xsave_to_cache): Likewise.
17991 (x86_xcr0): Likewise.
17992
17993 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17994 * linux-crisv32-low.c (target_regsets): Likewise.
17995 * linux-m68k-low.c (target_regsets): Likewise.
17996 * linux-mips-low.c (target_regsets): Likewise.
17997 * linux-ppc-low.c (target_regsets): Likewise.
17998 * linux-s390-low.c (target_regsets): Likewise.
17999 * linux-sh-low.c (target_regsets): Likewise.
18000 * linux-sparc-low.c (target_regsets): Likewise.
18001 * linux-xtensa-low.c (target_regsets): Likewise.
18002
18003 * linux-low.c: Include <sys/uio.h>.
18004 (regsets_fetch_inferior_registers): Support nt_type.
18005 (regsets_store_inferior_registers): Likewise.
18006 (linux_process_qsupported): New.
18007 (linux_target_ops): Add linux_process_qsupported.
18008
18009 * linux-low.h (regset_info): Add nt_type.
18010 (linux_target_ops): Add process_qsupported.
18011
18012 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18013 and <sys/uio.h>.
18014 (init_registers_i386_avx_linux): New.
18015 (init_registers_amd64_avx_linux): Likewise.
18016 (xmltarget_i386_linux_no_xml): Likewise.
18017 (xmltarget_amd64_linux_no_xml): Likewise.
18018 (PTRACE_GETREGSET): Likewise.
18019 (PTRACE_SETREGSET): Likewise.
18020 (x86_fill_xstateregset): Likewise.
18021 (x86_store_xstateregset): Likewise.
18022 (use_xml): Likewise.
18023 (x86_linux_update_xmltarget): Likewise.
18024 (x86_linux_process_qsupported): Likewise.
18025 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18026 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18027 init_registers_i386_linux here. Call
18028 x86_linux_update_xmltarget.
18029 (the_low_target): Add x86_linux_process_qsupported.
18030
18031 * server.c (handle_query): Call target_process_qsupported.
18032
18033 * target.h (target_ops): Add process_qsupported.
18034 (target_process_qsupported): New.
18035
fc7238bb
PA
180362010-04-03 Pedro Alves <pedro@codesourcery.com>
18037
18038 * inferiors.c (add_thread): Set last_status kind to
18039 TARGET_WAITKIND_IGNORE.
18040 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18041 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18042 (linux_wait_1): Move `thread' local definition to block that uses
18043 it. Don't NULL initialize `event_child'.
18044 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18045 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18046 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18047
bdabb078
PA
180482010-04-01 Pedro Alves <pedro@codesourcery.com>
18049
18050 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18051 an extended waitstatus, or by a watchpoint.
18052 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18053 thread was stepping or has been stopped by a watchpoint.
18054
d3bbe7a0
PA
180552010-04-01 Pedro Alves <pedro@codesourcery.com>
18056
18057 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18058 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18059 of another, then delete the previous, and validate all
18060 breakpoints.
18061 (validate_inserted_breakpoint): New.
18062 (delete_disabled_breakpoints): New.
18063 (validate_breakpoints): New.
18064 (check_mem_read): Validate breakpoints before trusting their
18065 shadow. Delete disabled breakpoints.
18066 (check_mem_write): Validate breakpoints before trusting they
18067 should be inserted. Delete disabled breakpoints.
18068 * mem-break.h (validate_breakpoints):
18069 * server.c (handle_query): Validate breakpoints when we see a
18070 qSymbol query.
18071
8b07ae33
PA
180722010-04-01 Pedro Alves <pedro@codesourcery.com>
18073
18074 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18075 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18076 if we could tell there's a GDB breakpoint at stop_pc.
18077 (need_step_over_p): Don't do a step over if we find a GDB
18078 breakpoint at the resume PC.
18079
18080 * mem-break.c (struct raw_breakpoint): New.
18081 (enum bkpt_type): New type `gdb_breakpoint'.
18082 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18083 fields. New field `raw'.
18084 (find_raw_breakpoint_at): New.
18085 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18086 breakpoint instead.
18087 (set_breakpoint_at): Adjust.
18088 (delete_raw_breakpoint): New.
18089 (release_breakpoint): New.
18090 (delete_breakpoint): Rename to...
18091 (delete_breakpoint_1): ... this. Add proc parameter. Use
18092 release_breakpoint. Return ENOENT.
18093 (delete_breakpoint): Reimplement.
18094 (find_breakpoint_at): Delete.
18095 (find_gdb_breakpoint_at): New.
18096 (delete_breakpoint_at): Delete.
18097 (set_gdb_breakpoint_at): New.
18098 (delete_gdb_breakpoint_at): New.
18099 (gdb_breakpoint_here): New.
18100 (set_reinsert_breakpoint): Use release_breakpoint.
18101 (uninsert_breakpoint): Rename to ...
18102 (uninsert_raw_breakpoint): ... this.
18103 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18104 (reinsert_raw_breakpoint): Change parameter type to
18105 raw_breakpoint.
18106 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18107 instead.
18108 (check_breakpoints): Adjust. Use release_breakpoint.
18109 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18110 (breakpoint_inserted_here): Ditto.
18111 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18112 Don't trust the breakpoint's shadow if it is not inserted.
18113 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18114 (delete_all_breakpoints): Adjust.
18115 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18116 use delete_breakpoint_1.
18117
18118 * mem-break.h (breakpoints_supported): Delete declaration.
18119 (set_gdb_breakpoint_at): Declare.
18120 (gdb_breakpoint_here): Declare.
18121 (delete_breakpoint_at): Delete.
18122 (delete_gdb_breakpoint_at): Declare.
18123
18124 * server.h (struct raw_breakpoint): Forward declare.
18125 (struct process_info): New field `raw_breakpoints'.
18126
18127 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18128 breakpoints.
18129
6bf5e0ba
PA
181302010-03-24 Pedro Alves <pedro@codesourcery.com>
18131
18132 * linux-low.c (status_pending_p_callback): Fix comment.
18133 (linux_wait_for_event_1): Move most of the internal breakpoint
18134 handling from here...
18135 (linux_wait_1): ... to here.
18136 (count_events_callback): New.
18137 (select_singlestep_lwp_callback): New.
18138 (select_event_lwp_callback): New.
18139 (cancel_breakpoints_callback): New.
18140 (select_event_lwp): New.
18141 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18142 priority to all LWPs that have had events that should be reported
18143 to the client. Cancel breakpoints when about to reporting the
18144 event to the client, not while stopping lwps. No longer cancel
18145 finished single-steps here.
18146 (cancel_finished_single_step): Delete.
18147 (cancel_finished_single_steps): Delete.
18148
414a389f
PA
181492010-03-24 Pedro Alves <pedro@codesourcery.com>
18150
18151 * mem-break.c (enum bkpt_type): New.
18152 (struct breakpoint): New field `type'.
18153 (set_breakpoint_at): Change return type to struct breakpoint
18154 pointer. Set type to `other_breakpoint' by default.
18155 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18156 in the breakpoint list.
18157 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18158 (reinsert_breakpoint): Rename to ...
18159 (reinsert_raw_breakpoint): ... this.
18160 (reinsert_breakpoints_at): Adjust.
18161 * mem-break.h (struct breakpoint): Declare.
18162 (set_breakpoint_at): Change return type to struct breakpoint
18163 pointer.
18164
2280c721
PA
181652010-03-24 Pedro Alves <pedro@codesourcery.com>
18166
18167 * server.c (handle_query): Assign, not compare.
18168
d50171e4
PA
181692010-03-24 Pedro Alves <pedro@codesourcery.com>
18170
18171 Teach linux gdbserver to step-over-breakpoints.
18172
18173 * linux-low.c (can_hardware_single_step): New.
18174 (supports_breakpoints): New.
18175 (handle_extended_wait): If stopping threads, read the stop pc of
18176 the new cloned LWP.
18177 (get_pc): New.
18178 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18179 low target doesn't support retrieving the PC.
18180 (add_lwp): Set last_resume_kind to resume_continue.
18181 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18182 (linux_attach): Don't clear stop_expected. Set the lwp's
18183 last_resume_kind to resume_stop.
18184 (linux_detach_one_lwp): Don't check for removed breakpoints.
18185 (check_removed_breakpoint): Delete.
18186 (status_pending_p): Rename to ...
18187 (status_pending_p_callback): ... this. Don't check for removed
18188 breakpoints. Don't consider threads that are stopped from GDB's
18189 perspective.
18190 (linux_wait_for_lwp): Always read the stop_pc here.
18191 (cancel_breakpoint): New.
18192 (step_over_bkpt): New global.
18193 (linux_wait_for_event_1): Implement stepping over breakpoints.
18194 (gdb_wants_lwp_stopped): New.
18195 (gdb_wants_all_stopped): New.
18196 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18197 single-step traps here. Store the thread's last reported target
18198 wait status.
18199 (send_sigstop): Don't clear stop_expected. Always set it,
18200 instead.
18201 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18202 (cancel_finished_single_step): New.
18203 (cancel_finished_single_steps): New.
18204 (wait_for_sigstop): Don't cancel finished single-step traps here.
18205 (linux_resume_one_lwp): Don't check for removed breakpoints.
18206 Don't set `step' on non-hardware step archs.
18207 (linux_set_resume_request): Ignore resume_stop requests if already
18208 stopping or stopped. Set the lwp's last_resume_kind.
18209 (resume_status_pending_p): Don't check for removed breakpoints.
18210 (need_step_over_p): New.
18211 (start_step_over): New.
18212 (finish_step_over): New.
18213 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18214 requests. Clear the thread's last reported target waitstatus.
18215 Don't use the `suspended' flag. Don't consider pending breakpoints.
18216 (linux_resume): Start a step-over if necessary.
18217 (proceed_one_lwp): New.
18218 (proceed_all_lwps): New.
18219 (unstop_all_lwps): New.
18220 * linux-low.h (struct lwp_info): Rewrite comment for the
18221 `suspended' flag. Add the `stop_pc' field. Delete the
18222 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18223 Add `'last_resume_kind' and `need_step_over' fields.
18224 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18225 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18226 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18227 (set_raw_breakpoint_at): New.
18228 (set_breakpoint_at): Rewrite to use it.
18229 (reinsert_breakpoint_handler): Delete.
18230 (set_reinsert_breakpoint): New.
18231 (reinsert_breakpoint_by_bp): Delete.
18232 (delete_reinsert_breakpoints): New.
18233 (uninsert_breakpoint): Rewrite.
18234 (uninsert_breakpoints_at): New.
18235 (reinsert_breakpoint): Rewrite.
18236 (reinsert_breakpoints_at): New.
18237 (check_breakpoints): Rewrite.
18238 (breakpoint_here): New.
18239 (breakpoint_inserted_here): New.
18240 (check_mem_read): Adjust.
18241 * mem-break.h (breakpoints_supported, breakpoint_here)
18242 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18243 (reinsert_breakpoint_by_bp): Delete declaration.
18244 (delete_reinsert_breakpoints): Declare.
18245 (reinsert_breakpoint): Delete declaration.
18246 (reinsert_breakpoints_at): Declare.
18247 (uninsert_breakpoint): Delete declaration.
18248 (uninsert_breakpoints_at): Declare.
18249 (check_breakpoints): Adjust prototype.
18250 * server.h: Adjust include order.
18251 (struct thread_info): Declare here. Add a `last_status' field.
18252
30ba68cb
MS
182532010-03-23 Michael Snyder <msnyder@vmware.com>
18254
18255 * server.c (crc32): New function.
18256 (handle_query): Add handling for 'qCRC:' request.
18257
b9a881c2
PA
182582010-03-23 Pedro Alves <pedro@codesourcery.com>
18259
18260 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18261 lwp had been stopped by a watchpoint.
18262
e92d13d5
PA
182632010-03-16 Pedro Alves <pedro@codesourcery.com>
18264
18265 * server.h (internal_error): Declare.
18266 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18267 * utils.c (internal_error): New function.
18268
64daa791
AS
182692010-03-15 Andreas Schwab <schwab@redhat.com>
18270
18271 * configure.srv: Fix typo setting srv_regobj.
18272
f52cd8cd
PA
182732010-03-15 Pedro Alves <pedro@codesourcery.com>
18274
18275 * linux-low.c (fetch_register): Avoid passing a non string literal
18276 format to `error'.
18277 (usr_store_inferior_registers): Ditto.
18278
93ae6fdc
PA
182792010-03-14 Pedro Alves <pedro@codesourcery.com>
18280
18281 * linux-low.c (linux_write_memory): Bail out early if peeking
18282 memory failed.
18283
c3adc08c
PA
182842010-03-14 Pedro Alves <pedro@codesourcery.com>
18285
18286 * linux-low.h (struct lwp_info): New fields
18287 `stopped_by_watchpoint' and `stopped_data_address'.
18288 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18289 here, and cache them in the lwp object.
18290 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18291 directly.
18292 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18293 field.
18294 (linux_stopped_by_watchpoint): Rewrite.
18295 (linux_stopped_data_address): Rewrite.
18296
bce522a2
PA
182972010-03-06 Simo Melenius <simo.melenius@iki.fi>
18298
18299 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18300 switching the current inferior, not before.
18301
90884b2b
L
183022010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18303
18304 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18305 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18306 i386-linux.c and amd64-linux.c.
18307 (reg-i386.o): Removed.
18308 (reg-i386.c): Likewise.
18309 (reg-i386-linux.o): Likewise.
18310 (reg-i386-linux.c): Likewise.
18311 (reg-x86-64.o): Likewise.
18312 (reg-x86-64.c): Likewise.
18313 (reg-x86-64-linux.o): Likewise.
18314 (reg-x86-64-linux.c): Likewise.
18315 (i386.o): New.
18316 (i386.c): Likewise.
18317 (i386-linux.o): Likewise.
18318 (i386-linux.c): Likewise.
18319 (amd64.o): Likewise.
18320 (amd64.c): Likewise.
18321 (amd64-linux.o): Likewise.
18322 (amd64-linux.c): Likewise.
18323
18324 * configure.srv (srv_i386_regobj): New.
18325 (srv_i386_linux_regobj): Likewise.
18326 (srv_amd64_regobj): Likewise.
18327 (srv_amd64_linux_regobj): Likewise.
18328 (srv_i386_32bit_xmlfiles): Likewise.
18329 (srv_i386_64bit_xmlfiles): Likewise.
18330 (srv_i386_xmlfiles): Likewise.
18331 (srv_amd64_xmlfiles): Likewise.
18332 (srv_i386_linux_xmlfiles): Likewise.
18333 (srv_amd64_linux_xmlfiles): Likewise.
18334 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18335 srv_xmlfiles to $srv_i386_xmlfiles.
18336 (i[34567]86-*-mingw32ce*): Likewise.
18337 (i[34567]86-*-mingw*): Likewise.
18338 (i[34567]86-*-nto*): Likewise.
18339 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18340 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18341 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18342 (x86_64-*-linux*): Likewise.
18343
18344 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18345 (init_registers_amd64_linux): New.
18346 (x86_arch_setup): Replace init_registers_x86_64_linux with
18347 init_registers_amd64_linux.
18348
193f13e6
MK
183492010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18350
18351 * configure.ac: Check for libdl. If it is not available link against
18352 static libthread_db.
18353 * configure: Regenerate.
18354
85d721b8
PA
183552010-02-22 Pedro Alves <pedro@codesourcery.com>
18356
18357 PR9605
18358
18359 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18360 handing a read watchpoint.
18361 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18362
6076632b
DE
183632010-02-12 Doug Evans <dje@google.com>
18364
18365 * linux-low.c (linux_supports_tracefork_flag): Document.
18366 (linux_look_up_symbols): Add comment.
18367
3327ccf7
L
183682010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18369
18370 * regcache.c (supply_register): Clear regcache if buf is NULL.
18371
0718675c 183722010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18373 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18374
18375 * inferiors.c (find_inferior): Add function documentation.
18376 (unloaded_dll): Handle the case where the unloaded dll has not
18377 been previously registered in the dll list.
18378
177321bd
DJ
183792010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18380
18381 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18382 (thumb2_breakpoint): New.
18383 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18384
2b009048
DJ
183852010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18386
18387 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18388 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18389 breakpoints.
18390
3be029c7
PA
183912010-01-21 Pedro Alves <pedro@codesourcery.com>
18392
18393 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18394
18f5de3b
JK
183952010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18396
18397 * linux-s390-low.c (s390_collect_ptrace_register)
18398 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18399
3743bb4f
DE
184002010-01-21 Doug Evans <dje@google.com>
18401
14ce3065
DE
18402 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18403 (PTRACE_ARG4_TYPE): New macro.
18404 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18405 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18406 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18407 (usr_store_inferior_registers): Ditto.
18408 (linux_read_memory, linux_write_memory): Ditto.
18409 (linux_test_for_tracefork): Ditto.
18410
3743bb4f
DE
18411 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18412 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18413
8b315be5
PA
184142010-01-21 Pedro Alves <pedro@codesourcery.com>
18415
18416 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18417 target.
18418
85492558
PA
184192010-01-21 Pedro Alves <pedro@codesourcery.com>
18420
18421 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18422 prototype to take a regcache. Adjust.
18423
442ea881
PA
184242010-01-20 Pedro Alves <pedro@codesourcery.com>
18425
18426 * regcache.h (struct thread_info): Forward declare.
18427 (struct regcache): New.
18428 (new_register_cache): Adjust prototype.
18429 (get_thread_regcache): Declare.
18430 (free_register_cache): Adjust prototype.
18431 (registers_to_string, registers_from_string): Ditto.
18432 (supply_register, supply_register_by_name, collect_register)
18433 (collect_register_as_string, collect_register_by_name): Ditto.
18434 * regcache.c (struct inferior_regcache_data): Delete.
18435 (get_regcache): Rename to ...
18436 (get_thread_regcache): ... this. Adjust. Switch inferior before
18437 fetching registers.
18438 (regcache_invalidate_one): Adjust.
18439 (regcache_invalidate): Fix prototype.
18440 (new_register_cache): Return the new register cache.
18441 (free_register_cache): Change prototype.
18442 (realloc_register_cache): Adjust.
18443 (registers_to_string): Change prototype to take a regcache. Adjust.
18444 (registers_from_string): Ditto.
18445 (register_data): Ditto.
18446 (supply_register): Ditto.
18447 (supply_register_by_name): Ditto.
18448 (collect_register): Ditto.
18449 (collect_register_as_string): Ditto.
18450 (collect_register_by_name): Ditto.
18451 * server.c (process_serial_event): Adjust.
18452 * linux-low.h (regset_fill_func, regset_store_func): Change
18453 prototype.
18454 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18455 Change prototype.
18456 * linux-low.c (get_stop_pc): Adjust.
18457 (check_removed_breakpoint): Adjust.
18458 (linux_wait_for_event): Adjust.
18459 (linux_resume_one_lwp): Adjust.
18460 (fetch_register): Add regcache parameter. Adjust.
18461 (usr_store_inferior_registers): Ditto.
18462 (regsets_fetch_inferior_registers): Ditto.
18463 (regsets_store_inferior_registers): Ditto.
18464 (linux_fetch_registers, linux_store_registers): Ditto.
18465 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18466 regcache. Adjust.
43aaf8b6
PA
18467 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18468 Ditto.
442ea881
PA
18469 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18470 prototype to take a regcache.
18471 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18472 * remote-utils.c (convert_ascii_to_int, outreg)
18473 (prepare_resume_reply): Change prototype to take a regcache.
18474 Adjust.
18475 * target.h (struct target_ops) <fetch_registers, store_registers>:
18476 Change prototype to take a regcache.
18477 (fetch_inferior_registers, store_inferior_registers): Change
18478 prototype to take a regcache. Adjust.
18479 * proc-service.c (ps_lgetregs): Adjust.
18480 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18481 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18482 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18483 take a regcache. Adjust.
18484 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18485 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18486 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18487 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18488 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18489 (cris_cannot_fetch_register):
18490 (cris_breakpoint_at): Change prototype to take a regcache.
18491 Adjust.
18492 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18493 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18494 to take a regcache. Adjust.
18495 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18496 Adjust.
18497 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18498 take a regcache. Adjust.
18499 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18500 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18501 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18502 * linux-mips-low.c (mips_get_pc):
18503 (mips_set_pc): Change prototype to take a regcache. Adjust.
18504 (mips_reinsert_addr): Adjust.
18505 (mips_collect_register): Change prototype to take a regcache.
18506 Adjust.
18507 (mips_supply_register):
18508 (mips_collect_register_32bit, mips_supply_register_32bit)
18509 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18510 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18511 * linux-ppc-low.c (ppc_supply_ptrace_register)
18512 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18513 (parse_spufs_run): Adjust.
18514 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18515 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18516 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18517 take a regcache. Adjust.
18518 * linux-s390-low.c (s390_collect_ptrace_register)
18519 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18520 (s390_set_pc): Change prototype to take a regcache. Adjust.
18521 (s390_arch_setup): Adjust.
18522 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18523 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18524 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18525 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18526 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18527 regcache. Adjust.
18528 (sparc_breakpoint_at): Adjust.
18529 * linux-xtensa-low.c (xtensa_fill_gregset):
18530 (xtensa_store_gregset):
18531 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18532 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18533 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18534 prototype to take a regcache. Adjust.
18535 * win32-arm-low.c (arm_fetch_inferior_register)
18536 (arm_store_inferior_register): Change prototype to take a
18537 regcache. Adjust.
18538 * win32-i386-low.c (i386_fetch_inferior_register)
18539 (i386_store_inferior_register): Change prototype to take a
18540 regcache. Adjust.
18541 * win32-low.c (child_fetch_inferior_registers)
18542 (child_store_inferior_registers): Change prototype to take a
18543 regcache. Adjust.
18544 (win32_wait): Adjust.
18545 (win32_fetch_inferior_registers): Change prototype to take a
18546 regcache. Adjust.
18547 (win32_store_inferior_registers): Adjust.
18548 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18549 store_inferior_register>: Change prototype to take a regcache.
18550
60c3d7b0
DE
185512010-01-20 Doug Evans <dje@google.com>
18552
18553 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18554 #ifdef.
18555 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18556 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18557
dc146f7c
VP
185582010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18559
18560 * linux-low.c (linux_core_of_thread): New.
18561 (compare_ints, show_process, list_threads): New.
18562 (linux_qxfer_osdata): Report threads and cores.
18563 (linux_target_op): Register linux_core_of_thread.
18564 * remote-utils.c (prepare_resume_reply): Report the core.
18565 (buffer_xml_printf): Support %d specifier.
18566 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18567 New.
18568 (handle_query): Handle qXfer:threads. Announce availability
18569 thereof.
18570 * target.h (struct target_ops): New field core_of_thread.
18571
7803799a
UW
185722010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18573
18574 * Makefile.in (clean): Remove new generated files.
18575 (reg-s390.o, reg-s390.c): Remove rules.
18576 (reg-s390x.o, reg-s390x.c): Likewise.
18577 (s390-linux32.o, s390-linux32.c): Add rules.
18578 (s390-linux64.o, s390-linux64.c): Likewise.
18579 (s390x-linux64.o, s390x-linux64.c): Likewise.
18580 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18581 * linux-s390-low.c: Include <elf.h>.
18582 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18583 (init_registers_s390): Remove prototype.
18584 (init_registers_s390x): Likewise.
18585 (init_registers_s390_linux32): Add prototype.
18586 (init_registers_s390_linux64): Likewise.
18587 (init_registers_s390x_linux64): Likewise.
18588 (s390_num_regs_3264): New define.
18589 (s390_regmap_3264): New global variable.
18590 (s390_cannot_fetch_register): Remove obsolete check.
18591 (s390_cannot_store_register): Likewise.
18592 (s390_collect_ptrace_register): Handle upper/lower register halves.
18593 (s390_supply_ptrace_register): Likewise.
18594 (s390_fill_gregset): Update to register number changes.
18595 (s390_get_hwcap): New routine.
18596 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18597 Install appropriate regmap and register set.
18598
6e7ffa39
JB
185992010-01-01 Joel Brobecker <brobecker@adacore.com>
18600
18601 * server.c (gdbserver_version): Update copyright year to 2010.
18602 * gdbreplay.c (gdbreplay_version): Likewise.
18603
957f3f49
DE
186042009-12-28 Doug Evans <dje@google.com>
18605
18606 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18607 elf/external.h. Include <elf.h> instead but only if necessary.
18608
ca5c370d
PA
186092009-12-28 Pedro Alves <pedro@codesourcery.com>
18610
18611 * linux-low.c (linux_remove_process): Remove `detaching'
18612 parameter. Don't release/detach from thread_db here.
18613 (linux_kill): Release/detach from thread_db here, ...
18614 (linux_detach): ... and here, before actually detaching.
18615 (linux_wait_1): ... and here, when a process exits.
18616 * thread-db.c (any_thread_of): New.
18617 (thread_db_free): Switch the current inferior to a thread of the
18618 passed in process.
18619
4ee62156
DE
186202009-12-21 Doug Evans <dje@google.com>
18621
d90e6a88
DE
18622 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18623
c5f62d5f
DE
18624 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18625 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18626 warning ifndef __NR_tkill. Move setting of errno there too.
18627 Delete unnecessary resetting of errno after syscall.
18628 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18629
10e86dd7
DE
18630 * configure.ac: Check for dladdr.
18631 * config.in: Regenerate.
18632 * configure: Regenerate.
18633 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18634 (try_thread_db_load): Update.
18635
4ee62156
DE
18636 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18637
00f515da
DE
186382009-12-18 Doug Evans <dje@google.com>
18639
e9464885
DE
18640 * event-loop.c: Include unistd.h if it exists.
18641
07d4f67e
DE
18642 * linux-low.c (my_waitpid): Move definition away from being in
18643 between linux_tracefork_child/linux_test_for_tracefork.
18644
00f515da
DE
18645 * gdb_proc_service.h (psaddr_t): Fix type.
18646 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18647 signature to match glibc.
18648
1de1badb
DE
186492009-12-16 Doug Evans <dje@google.com>
18650
18651 * linux-low.c (linux_read_memory): Fix argument to read.
18652
aeeb81d1
PA
186532009-11-26 Pedro Alves <pedro@codesourcery.com>
18654
18655 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18656 events, don't leave current_inferior pointing at null.
18657
10357975
PA
186582009-11-26 Pedro Alves <pedro@codesourcery.com>
18659
18660 * win32-low.c (LOG): Delete.
18661 (OUTMSG): Output to stderr.
18662 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18663 on compile time LOG macro.
18664 (win32_wait): Fix debug output.
18665
cf6e3471
PA
186662009-11-26 Pedro Alves <pedro@codesourcery.com>
18667
18668 * win32-low.c (win32_add_one_solib): If the dll name is
18669 "ntdll.dll", prepend the system directory to the dll path.
18670
0c85e18e
MK
186712009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18672
18673 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18674
9ac544ce 186752009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18676 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18677
18678 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18679 * configure.ac: Check for __mcoldfire__ and set
18680 gdb_cv_m68k_is_coldfire.
18681 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18682 reg-cf.o and reg-m68k.o.
18683 * configure: Regenerated.
18684
fd7dd3e6
PA
186852009-11-16 Pedro Alves <pedro@codesourcery.com>
18686
18687 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18688 Pass it to thread_db_free.
18689 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18690 proper `detaching' argument to linux_remove_process.
18691 * linux-low.h (thread_db_free): Add `detaching' parameter.
18692 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18693 to thread_db_free.
18694 (thread_db_free): Add `detaching' parameter. Only
18695 call td_ta_clear_event if detaching from process.
18696
75aa492e
MK
186972009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18698
18699 * thread-db.c (thread_db_free): Fix typo.
18700
21e1bee4
PP
187012009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18702
18703 PR gdb/10838
18704 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18705
8838b45e
NS
187062009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18707
18708 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18709 with an i686 compiler.
18710 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18711 needed.
18712 * configure: Rebuilt.
18713
8a35fb51
SL
187142009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18715
18716 PR gdb/10783
18717
18718 * server.c (handle_search_memory_1): Correct read_addr initialization
18719 in loop for searching subsequent chunks.
18720
96f15937
PP
187212009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18722
18723 * configure.ac: New --with-libthread-db option.
18724 * thread-db.c: Allow direct dependence on libthread_db.
18725 (thread_db_free): Adjust.
18726 * config.in: Regenerate.
18727 * configure: Likewise.
889bf7c5 18728
5f7d1694
PP
187292009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18730
18731 PR gdb/10757
18732 * thread-db.c (attach_thread): New function.
18733 (maybe_attach_thread): Return success/failure.
18734 (find_new_threads_callback): Adjust.
889bf7c5
PA
18735 (thread_db_find_new_threads): Loop until no new threads.
18736
88e3b899
PA
187372009-10-13 Pedro Alves <pedro@codesourcery.com>
18738
18739 * proc-service.c (ps_lgetregs): Formatting.
18740
cdbfd419
PP
187412009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18742
18743 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18744 * configure.ac: Adjust.
18745 * linux-low.h (struct process_info_private): Move members to struct
18746 thread_db.
18747 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18748 * linux-low.c (linux_remove_process): Adjust.
18749 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18750 * server.c (handle_query): Move code ...
18751 (handle_monitor_command): ... here. New function.
18752 * target.h (struct target_ops): New member.
18753 * thread-db.c (struct thread_db): New.
18754 (libthread_db_search_path): New variable.
18755 (thread_db_create_event, thread_db_enable_reporting)
18756 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18757 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18758 (try_thread_db_load_1, dladdr_to_soname): New functions.
18759 (try_thread_db_load, thread_db_load_search): New functions.
18760 (thread_db_init): Search for libthread_db.
18761 (thread_db_free): New function.
18762 (thread_db_handle_monitor_command): Likewise.
18763 * config.in: Regenerate.
18764 * configure: Regenerate.
889bf7c5 18765
4168d2d6
UW
187662009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18767
18768 * spu-low.c (spu_kill): Wait for inferior to terminate.
18769 Call clear_inferiors.
18770 (spu_detach): Call clear_inferiors.
18771
81ecdfbb
RW
187722009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18773
18774 * aclocal.m4: Regenerate.
18775 * config.in: Likewise.
18776 * configure: Likewise.
18777
0b9ff2c0
UW
187782009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18779
18780 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18781 (parse_spufs_run): New function.
18782 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18783 (ppc_breakpoint_at): Handle SPU breakpoints.
18784
efcbbd14
UW
187852009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18786
18787 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18788 (SPUFS_MAGIC): Define.
18789 (spu_enumerate_spu_ids): New function.
18790 (linux_qxfer_spu): New function.
18791 (linux_target_ops): Install linux_qxfer_spu.
18792
f4d9bade
UW
187932009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18794
18795 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18796 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18797 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18798 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18799 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18800 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18801 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18802 (init_registers_powerpc_cell32l): Add prototype.
18803 (init_registers_powerpc_cell64l): Likewise.
18804 (ppc_arch_setup): Detect Cell/B.E. architecture.
18805
96e946ca
RW
188062009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18807
18808 * Makefile.in (datarootdir): New variable.
18809
58d6951d
DJ
188102009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18811
18812 * linux-low.c (linux_write_memory): Update debugging output.
18813 * Makefile.in (clean): Add new descriptions.
18814 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18815 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18816 * configure.srv: Add new files for arm*-*-linux*.
18817 * linux-arm-low.c: Add new declarations.
18818 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18819 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18820 (HWCAP_VFPv3D16): New.
18821 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18822 instead of __IWMMXT__.
18823 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18824 (arm_arch_setup): New.
18825 (target_regsets): Remove #ifdef. Add VFP regset.
18826 (the_low_target): Use arm_arch_setup.
18827
12b42a12
DJ
188282009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18829
18830 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18831 the main thread again.
18832
ac8c974e
AR
188332009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18834
18835 Adding Neutrino gdbserver.
18836 * configure: Regenerated.
18837 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18838 * configure.srv (i[34567]86-*-nto*): New target.
18839 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18840 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18841 (nto_comctrl) [__QNX__]: New function.
18842 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18843
4424e0c3 188442009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18845
18846 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18847 srv_tgtobj.
18848
912cf4ba
PA
188492009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18850 Pedro Alves <pedro@codesourcery.com>
18851
18852 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18853 don't support CONTEXT_EXTENDED_REGISTERS.
18854 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18855 (the_low_target): Install them.
18856 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18857 failing with ERROR_PIPE_NOT_CONNECTED.
18858
aa5ca48f
DE
188592009-06-30 Doug Evans <dje@google.com>
18860 Pierre Muller <muller@ics.u-strasbg.fr>
18861
18862 Add h/w watchpoint support to x86-linux, win32-i386.
18863 * Makefile.in (SFILES): Add i386-low.c
18864 (i386_low_h): Define.
18865 (i386-low.o): Add dependencies.
18866 (linux-x86-low.o): Add i386-low.h dependency.
18867 (win32-i386-low.o): Ditto.
18868 * i386-low.c: New file.
18869 * i386-low.h: New file.
18870 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18871 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18872 * linux-low.c (linux_add_process): Initialize arch_private.
18873 (linux_remove_process): Free arch_private.
18874 (add_lwp): Initialize arch_private.
18875 (delete_lwp): Free arch_private.
18876 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18877 provided.
18878 * linux-low.h (process_info_private): New member arch_private.
18879 (lwp_info): New member arch_private.
18880 (linux_target_ops): New members new_process, new_thread,
18881 prepare_to_resume.
18882 (ptid_of): New macro.
18883 * linux-x86-low.c: Include stddef.h, i386-low.h.
18884 (arch_process_info): New struct.
18885 (arch_lwp_info): New struct.
18886 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18887 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18888 (i386_dr_low_get_status): New function.
18889 (x86_insert_point, x86_remove_point): New functions.
18890 (x86_stopped_by_watchpoint): New function.
18891 (x86_stopped_data_address): New function.
18892 (x86_linux_new_process, x86_linux_new_thread): New functions.
18893 (x86_linux_prepare_to_resume): New function.
18894 (the_low_target): Add entries for insert_point, remove_point,
18895 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18896 prepare_to_resume.
18897 * server.c (debug_hw_points): New global.
18898 (monitor_show_help): Document set debug-hw-points.
18899 (handle_query): Process "set debug-hw-points".
18900 * server.h (debug_hw_points): Declare.
18901 (paddress): Declare.
18902 * utils.c (NUMCELLS, CELLSIZE): New macros.
18903 (get_sell, xsnprintf, paddress): New functions.
18904 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18905 remove_point, stopped_by_watchpoint, stopped_data_address.
18906 * win32-i386-low.c: Include i386-low.h.
18907 (debug_reg_state): Replaces dr.
18908 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18909 (i386_dr_low_get_status): New function.
18910 (i386_insert_point, i386_remove_point): New functions.
18911 (i386_stopped_by_watchpoint): New function.
18912 (i386_stopped_data_address): New function.
18913 (i386_initial_stuff): Update.
18914 (get_thread_context,set_thread_context,i386_thread_added): Update.
18915 (the_low_target): Add entries for insert_point,
18916 remove_point, stopped_by_watchpoint, stopped_data_address.
18917 * win32-low.c (win32_insert_watchpoint): New function.
18918 (win32_remove_watchpoint): New function.
18919 (win32_stopped_by_watchpoint): New function.
18920 (win32_stopped_data_address): New function.
18921 (win32_target_ops): Add entries for insert_watchpoint,
18922 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18923 * win32-low.h (win32_target_ops): New members insert_point,
18924 remove_point, stopped_by_watchpoint, stopped_data_address.
18925
d993e290
PA
189262009-06-25 Pedro Alves <pedro@codesourcery.com>
18927
18928 * server.c (process_serial_event): Re-return unsupported, not
18929 error, if the type isn't recognized. Re-allow supporting only
18930 insert or remove packets. Also call require_running for
18931 breakpoints. Add missing break statement to default case. Tidy.
18932 * target.h (struct target_ops): Rename insert_watchpoint to
18933 insert_point, and remove_watchpoint to remove_point.
18934
18935 * linux-low.h (struct linux_target_ops): Likewise.
18936 * linux-low.c (linux_insert_watchpoint): Rename to ...
18937 (linux_insert_point): ... this. Adjust.
18938 (linux_remove_watchpoint): Rename to ...
18939 (linux_remove_point): ... this. Adjust.
18940 (linux_target_ops): Adjust.
18941 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18942 (cris_insert_point): ... this.
18943 (cris_remove_watchpoint): Rename to ...
18944 (cris_remove_point): ... this.
18945 (the_low_target): Adjust.
18946
0f54c268
PM
189472009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18948
18949 * server.c (handle_v_kill): Pass signal_pid to
18950 kill_inferior if multi_process is zero.
18951
c6314022
AR
189522009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18953
18954 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18955 * target.h (target_ops): Comment for *_watchpoint to make it clear
18956 the functions can get types '0' and '1'.
18957
4463ce24
AR
189582009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18959
18960 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18961 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18962 * regcache.c (get_regcache): Likewise.
18963 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18964 * win32-low.c (child_fetch_inferior_registers): Remove check for
18965 regno 0.
18966
cf8fd78b
PA
189672009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18968 Pedro Alves <pedro@codesourcery.com>
18969
18970 * target.h (struct target_ops) <supports_multi_process>: New
18971 callback.
18972 (target_supports_multi_process): New.
18973 * server.c (handle_query): Even if GDB reports support, only
18974 enable multi-process if the target also supports it. Report
18975 multi-process support only if the target backend supports it.
18976 * linux-low.c (linux_supports_multi_process): New function.
18977 (linux_target_ops): Install it as target_supports_multi_process
18978 callback.
18979
47c0c975
DE
189802009-05-24 Doug Evans <dje@google.com>
18981
e09875d4
DE
18982 Global renaming of find_thread_pid to find_thread_ptid.
18983 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18984 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18985 All callers updated.
18986
e27d73f6
DE
18987 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18988 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18989 directly.
18990
47c0c975
DE
18991 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18992 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18993 (linux_resume_one_lwp): Ditto.
18994
2acc282a
DE
189952009-05-23 Doug Evans <dje@google.com>
18996
18997 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18998 from struct inferior_list_entry * to struct lwp_info *.
18999 All callers updated.
19000
9f1036c1
DE
190012009-05-13 Doug Evans <dje@google.com>
19002
19003 * linux-x86-low.c: Don't include assert.h.
19004 (x86_siginfo_fixup): Use fatal, not assert.
19005 (x86_arch_setup): Fix comment.
19006
d0722149
DE
190072009-05-12 Doug Evans <dje@google.com>
19008
19009 Biarch support for i386/amd64 gdbserver.
19010 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19011 Add linux-x86-low.c.
19012 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19013 (linux-x86-low.o): Add.
19014 * linux-x86-64-low.c: Delete.
19015 * linux-i386-low.c: Delete.
19016 * linux-x86-low.c: New file.
19017 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19018 linux-x86-low.o.
19019 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19020 linux-x86-low.o.
19021 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19022 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19023 (linux_child_pid_to_exec_file): New function.
19024 (elf_64_header_p, elf_64_file_p): New functions.
19025 (siginfo_fixup): New function.
19026 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19027 give target a chance to convert layout.
19028 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19029 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19030
fdeb2a12
DE
190312009-05-07 Doug Evans <dje@google.com>
19032
19033 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19034 (regsets_store_inferior_registers): Ditto.
19035
a6dbe5df
PA
190362009-05-06 Pedro Alves <pedro@codesourcery.com>
19037
19038 PR server/10048
19039
19040 * linux-low.c (must_set_ptrace_flags): Delete.
19041 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19042 of the global.
19043 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19044 `lwp->must_set_ptrace_flags' instead.
ba42693b 19045 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19046 (linux_wait_1): ... not here.
19047
5091eb23
DE
190482009-04-30 Doug Evans <dje@google.com>
19049
9f767825
DE
19050 * inferiors.c (started_inferior_callback): New function.
19051 (attached_inferior_callback): New function.
19052 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19053 * server.c (print_started_pid, print_attached_pid): New functions.
19054 (detach_or_kill_for_exit): New function.
19055 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19056 * server.h (have_started_inferiors_p): Declare.
19057 (have_attached_inferiors_p): Declare.
19058
5091eb23
DE
19059 * inferiors.c (remove_process): Fix memory leak, free process.
19060 * linux-low.c (linux_remove_process): New function.
19061 (linux_kill): Call it instead of remove_process.
19062 (linux_detach, linux_wait_1): Ditto.
19063
155c8968
PA
190642009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19065
19066 * configure.srv: Add x86 Windows CE target.
19067
7fe519cb
UW
190682009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19069
19070 * inferiors.c (get_thread_process): Make global.
19071 * server.h (get_thread_process): Add prototype.
19072 * thread-db.c (find_one_thread): Use get_thread_process
19073 instead of current_process.
19074 (thread_db_get_tls_address): Do not crash if called when
19075 thread layer is not yet initialized.
19076
5472f405
UW
190772009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19078
19079 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19080 * spu-low.c (current_tid): Rename to ...
19081 (current_ptid): ... this.
19082 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19083 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19084 ptid_get_lwp (current_ptid) instead of current_tid.
19085 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19086 instead of current_tid. Use find_process_pid to verify pid
19087 argument is valid. Pass proper argument to remove_process.
19088 (spu_thread_alive): Compare current_ptid instead of current_tid.
19089 (spu_resume): Likewise.
19090
55ac2b99
PA
190912009-04-02 Pedro Alves <pedro@codesourcery.com>
19092
19093 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19094 variable.
19095
95954743
PA
190962009-04-01 Pedro Alves <pedro@codesourcery.com>
19097
19098 Implement the multiprocess extensions, and add linux multiprocess
19099 support.
19100
19101 * server.h (ULONGEST): Declare.
19102 (struct ptid, ptid_t): New.
19103 (minus_one_ptid, null_ptid): Declare.
19104 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19105 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19106 (struct inferior_list_entry): Change `id' type from unsigned from
19107 to ptid_t.
19108 (struct sym_cache, struct breakpoint, struct
19109 process_info_private): Forward declare.
19110 (struct process_info): Declare.
19111 (current_process): Declare.
19112 (all_processes): Declare.
19113 (initialize_inferiors): Declare.
19114 (add_thread): Adjust to use ptid_t.
19115 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19116 (add_process, remove_process, find_thread_pid): Declare.
19117 (find_inferior_id): Adjust to use ptid_t.
19118 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19119 (multi_process): Declare.
19120 (push_event): Adjust to use ptid_t.
19121 (read_ptid, write_ptid): Declare.
19122 (prepare_resume_reply): Adjust to use ptid_t.
19123 (clear_symbol_cache): Declare.
19124 * inferiors.c (all_processes): New.
19125 (null_ptid, minus_one_ptid): New.
19126 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19127 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19128 (add_thread): Change unsigned long to ptid. Remove gdb_id
19129 parameter. Adjust.
19130 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19131 (gdb_id_to_thread): Rename to ...
19132 (find_thread_pid): ... this. Change unsigned long to ptid.
19133 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19134 (loaded_dll, pull_pid_from_list): Adjust.
19135 (add_process, remove_process, find_process_pid)
19136 (get_thread_process, current_process, initialize_inferiors): New.
19137 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19138 (struct target_waitstatus) <related_pid>: Ditto.
19139 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19140 return type to int.
19141 (struct target_ops) <join>: Add `pid' argument.
19142 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19143 (struct target_ops) <wait>: Add `ptid' field. Change return type
19144 to ptid.
19145 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19146 (mywait): Add `ptid' argument. Change return type to ptid_t.
19147 (target_pid_to_str): Declare.
19148 * target.c (set_desired_inferior): Adjust to use ptids.
19149 (mywait): Add new `ptid' argument. Adjust.
19150 (target_pid_to_str): New.
19151 * mem-break.h (free_all_breakpoints): Declare.
19152 * mem-break.c (breakpoints): Delelete.
19153 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19154 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19155 to use per-process breakpoint list.
19156 (free_all_breakpoints): New.
19157 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19158 (symbol_cache, all_symbols_looked_up): Delete.
19159 (hexchars): New.
19160 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19161 read_ptid): New.
19162 (prepare_resume_reply): Change ptid argument's type from unsigned
19163 long to ptid_t. Adjust. Implement W;process and X;process.
19164 (free_sym_cache, clear_symbol_cache): New.
19165 (look_up_one_symbol): Adjust to per-process symbol cache. *
19166 * server.c (cont_thread, general_thread, step_thread): Change type
19167 to ptid_t.
19168 (attached): Delete.
19169 (multi_process): New.
19170 (last_ptid): Change type to ptid_t.
19171 (struct vstop_notif) <ptid>: Change type to ptid_t.
19172 (queue_stop_reply, push_event): Change `ptid' argument's type to
19173 ptid_t.
19174 (discard_queued_stop_replies): Add `pid' argument.
19175 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19176 changes. Don't reference the `attached' global.
19177 (attach_inferior): Adjust to mywait interface changes.
19178 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19179 features. Handle and report "multiprocess+". Handle
19180 "qAttached:PID".
19181 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19182 changes.
19183 (handle_v_kill): New.
19184 (handle_v_stopped): Adjust to use target_pid_to_str.
19185 (handle_v_requests): Allow multiple attaches and runs when
19186 multiprocess extensions are in effect. Handle "vKill".
19187 (myresume): Adjust to use ptids.
19188 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19189 (handle_status): Adjust to discard_queued_stop_replies interface
19190 change.
19191 (first_thread_of, kill_inferior_callback)
19192 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19193 (main): Call initialize_inferiors. Adjust to use ptids, killing
19194 and detaching from all inferiors. Handle multiprocess packet
19195 variants.
19196 * linux-low.h: Include gdb_proc_service.h.
19197 (struct process_info_private): New.
19198 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19199 <lwpid_of>: Use ptid_get_lwp.
19200 (get_lwp_thread): Adjust.
19201 (struct lwp_info): Add `dead' member.
19202 (find_lwp_pid): Declare.
19203 * linux-low.c (thread_db_active): Delete.
19204 (new_inferior): Adjust comment.
19205 (inferior_pid): Delete.
19206 (linux_add_process): New.
19207 (handle_extended_wait): Adjust.
19208 (add_lwp): Change unsigned long to ptid.
19209 (linux_create_inferior): Add process to processes table. Adjust
19210 to use ptids. Don't set new_inferior here.
19211 (linux_attach_lwp): Rename to ...
19212 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19213 it. Adjust to use ptids.
19214 (linux_attach_lwp): New.
19215 (linux_attach): Add process to processes table. Don't set
19216 new_inferior here.
19217 (struct counter): New.
19218 (second_thread_of_pid_p, last_thread_of_process_p): New.
19219 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19220 multiple processes.
19221 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19222 processes. Remove process from process table.
19223 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19224 to multiple processes.
19225 (any_thread_of): New.
19226 (linux_detach): Add `pid' argument, and handle it. Remove process
19227 from processes table.
19228 (linux_join): Add `pid' argument. Handle it.
19229 (linux_thread_alive): Change unsighed long argument to ptid_t.
19230 Consider dead lwps as not being alive.
19231 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19232 threads we're not interested in.
19233 (same_lwp, find_lwp_pid): New.
19234 (linux_wait_for_lwp): Change `pid' argument's type from int to
19235 ptid_t. Adjust.
19236 (linux_wait_for_event): Rename to ...
19237 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19238 from int to ptid_t. Adjust.
19239 (linux_wait_for_event): New.
19240 (linux_wait_1): Add `ptid' argument. Change return type to
19241 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19242 that exit from the process table.
19243 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19244 Adjust.
19245 (mark_lwp_dead): New.
19246 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19247 stopping all threads, mark its main lwp as dead.
19248 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19249 ptids.
19250 (fetch_register, usr_store_inferior_registers)
19251 (regsets_fetch_inferior_registers)
19252 (regsets_store_inferior_registers, linux_read_memory)
19253 (linux_write_memory): Inline `inferior_pid'.
19254 (linux_look_up_symbols): Adjust to use per-process
19255 `thread_db_active'.
19256 (linux_request_interrupt): Adjust to use ptids.
19257 (linux_read_auxv): Inline `inferior_pid'.
19258 (initialize_low): Don't reference thread_db_active.
19259 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19260 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19261 (ps_getpid): Return the pid of the current inferior.
19262 * thread-db.c (proc_handle, thread_agent): Delete.
19263 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19264 per-process data.
19265 (find_one_thread): Change argument type to ptid_t. Adjust to
19266 per-process data.
19267 (maybe_attach_thread): Adjust to per-process data and ptids.
19268 (thread_db_find_new_threads): Ditto.
19269 (thread_db_init): Ditto.
19270 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19271 processes table. Adjust to use ptids.
19272 (spu_kill, spu_detach): Adjust interface. Remove process from
19273 processes table.
19274 (spu_join, spu_thread_alive): Adjust interface.
19275 (spu_wait): Adjust interface. Remove process from processes
19276 table. Adjust to use ptids.
19277 * win32-low.c (current_inferior_tid): Delete.
19278 (current_inferior_ptid): New.
19279 (debug_event_ptid): New.
19280 (thread_rec): Take a ptid. Adjust.
19281 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19282 (child_delete_thread): Ditto.
19283 (do_initial_child_stuff): Add `attached' argument. Add process to
19284 processes table.
19285 (child_fetch_inferior_registers, child_store_inferior_registers):
19286 Adjust.
19287 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19288 (win32_attach): Pass 1 to do_initial_child_stuff.
19289 (win32_kill): Adjust interface. Remove process from processes
19290 table.
19291 (win32_detach): Ditto.
19292 (win32_join): Adjust interface.
19293 (win32_thread_alive): Take a ptid.
19294 (win32_resume): Adjust to use ptids.
19295 (get_child_debug_event): Ditto.
19296 (win32_wait): Adjust interface. Remove exiting process from
19297 processes table.
19298
bd99dc85
PA
192992009-04-01 Pedro Alves <pedro@codesourcery.com>
19300
19301 Non-stop mode support.
19302
19303 * server.h (non_stop): Declare.
19304 (gdb_client_data, handler_func): Declare.
19305 (delete_file_handler, add_file_handler, start_event_loop):
19306 Declare.
19307 (handle_serial_event, handle_target_event, push_event)
19308 (putpkt_notif): Declare.
19309 * target.h (enum resume_kind): New.
19310 (struct thread_resume): Replace `step' field by `kind' field.
19311 (TARGET_WNOHANG): Define.
19312 (struct target_ops) <wait>: Add `options' argument.
19313 <supports_non_stop, async, start_non_stop>: New fields.
19314 (target_supports_non_stop, target_async): New.
19315 (start_non_stop): Declare.
19316 (mywait): Add `options' argument.
19317 * target.c (mywait): Add `options' argument. Print child exit
19318 notifications here.
19319 (start_non_stop): New.
19320 * server.c (non_stop, own_buf, mem_buf): New globals.
19321 (struct vstop_notif): New.
19322 (notif_queue): New global.
19323 (queue_stop_reply, push_event, discard_queued_stop_replies)
19324 (send_next_stop_reply): New.
19325 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19326 interface changes.
19327 (attach_inferior): In non-stop mode, don't wait for the target
19328 here.
19329 (handle_general_set): Handle QNonStop.
19330 (handle_query): When handling qC, return the current general
19331 thread, instead of the first thread of the list.
19332 (handle_query): If the backend supports non-stop mode, include
19333 QNonStop+ in the qSupported query response.
19334 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19335 and non-stop mode.
19336 (handle_v_attach, handle_v_run): Handle non-stop mode.
19337 (handle_v_stopped): New.
19338 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19339 (myresume): Adjust to use resume_kind. Handle non-stop.
19340 (queue_stop_reply_callback): New.
19341 (handle_status): Handle non-stop mode.
19342 (main): Clear non_stop flag on reconnection. Use the event-loop.
19343 Refactor serial protocol handling from here ...
19344 (process_serial_event): ... to this new function. When GDB
19345 selects any thread, select one here. In non-stop mode, wait until
19346 GDB acks all pending events before exiting.
19347 (handle_serial_event, handle_target_event): New.
19348 * remote-utils.c (remote_open): Install remote_desc in the event
19349 loop.
19350 (remote_close): Remove remote_desc from the event loop.
19351 (putpkt_binary): Rename to...
19352 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19353 (putpkt_binary): New as wrapper around putpkt_binary_1.
19354 (putpkt_notif): New.
19355 (prepare_resume_reply): In non-stop mode, don't change the
19356 general_thread.
19357 * event-loop.c: New.
19358 * Makefile.in (OBJ): Add event-loop.o.
19359 (event-loop.o): New rule.
19360
19361 * linux-low.h (pid_of): Moved here.
19362 (lwpid_of): New.
19363 (get_lwp_thread): Use lwpid_of.
19364 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19365 * linux-low.c (pid_of): Delete.
19366 (inferior_pid): Use lwpid_of.
19367 (linux_event_pipe): New.
19368 (target_is_async_p): New.
19369 (delete_lwp): New.
19370 (handle_extended_wait): Use lwpid_of.
19371 (add_lwp): Don't set lwpid field.
19372 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19373 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19374 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19375 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19376 first. Adjust to linux_wait_for_event interface changes. Use
19377 lwpid_of.
19378 (linux_detach): Don't delete the main lwp here.
19379 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19380 (status_pending_p): Don't consider explicitly suspended lwps.
19381 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19382 pointer. Add OPTIONS argument. Change return type to int. Use
19383 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19384 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19385 pointer. Add status pointer argument. Return a pid instead of a
19386 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19387 changes. In non-stop mode, don't switch to a random thread.
19388 (linux_wait): Rename to...
19389 (linux_wait_1): ... this. Add target_options argument, and handle
19390 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19391 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19392 clean exit and signal exit code. Don't stop all threads in
19393 non-stop mode. In all-stop mode, only stop all threads when
19394 reporting a stop to GDB. Handle explicit thread stop requests.
19395 (async_file_flush, async_file_mark): New.
19396 (linux_wait): New.
19397 (send_sigstop): Use lwpid_of.
19398 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19399 interface changes. In non-stop mode, don't switch to a random
19400 thread.
19401 (linux_resume_one_lwp): Use lwpid_of.
19402 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19403 (linux_resume_one_thread): ... this. Handle resume_stop. In
19404 non-stop mode, don't look for pending flag in all threads.
19405 (resume_status_pending_p): Don't consider explicitly suspended
19406 threads.
19407 (my_waitpid): Reimplement. Emulate __WALL.
19408 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19409 Use lwpid_of.
19410 (sigchld_handler, linux_supports_non_stop, linux_async)
19411 (linux_start_non_stop): New.
19412 (linux_target_ops): Register linux_supports_non_stop, linux_async
19413 and linux_start_non_stop.
19414 (initialize_low): Install SIGCHLD handler.
19415 * thread-db.c (thread_db_create_event, find_one_thread)
19416 (thread_db_get_tls_address): Use lwpid_of.
19417 * win32-low.c (win32_detach): Adjust to use resume_kind.
19418 (win32_wait): Add `options' argument.
19419 * spu-low.c (spu_resume): Adjust to use resume_kind.
19420 (spu_wait): Add `options' argument.
19421
5b1c542e
PA
194222009-04-01 Pedro Alves <pedro@codesourcery.com>
19423
19424 Decouple target code from remote protocol.
19425
19426 * target.h (enum target_waitkind): New.
19427 (struct target_waitstatus): New.
19428 (struct target_ops) <wait>: Return an unsigned long. Take a
19429 target_waitstatus pointer instead of a char pointer.
19430 (mywait): Likewise.
19431 * target.c (mywait): Change prototype to return an unsigned long.
19432 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19433 * server.h (thread_from_wait, old_thread_from_wait): Delete
19434 declarations.
19435 (prepare_resume_reply): Change prototype to take a
19436 target_waitstatus.
19437 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19438 (last_status, last_ptid): New.
19439 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19440 pid instead of a signal.
19441 (attach_inferior): Remove "status" and "signal" parameters.
19442 Adjust.
19443 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19444 not as an address.
19445 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19446 (handle_v_requests, myresume): Remove "status" and "signal"
19447 parameters. Adjust.
19448 (handle_status): New.
19449 (main): Delete local `status'. Adjust.
19450 * remote-utils.c: Include target.h.
19451 (prepare_resume_reply): Change prototype to take a
19452 target_waitstatus. Adjust.
19453
19454 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19455 interface.
19456 * spu-low.c (spu_wait): Adjust.
19457 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19458 Delete.
19459 (win32_wait): Adjust.
19460
2bd7c093
PA
194612009-04-01 Pedro Alves <pedro@codesourcery.com>
19462
19463 * target.h (struct thread_resume): Delete leave_stopped member.
19464 (struct target_ops): Add a `n' argument to the `resume' callback.
19465 * server.c (start_inferior): Adjust.
19466 (handle_v_cont, myresume): Adjust.
19467 * linux-low.c (check_removed_breakpoint): Adjust to resume
19468 interface change, and to removed leave_stopped field.
19469 (resume_ptr): Delete.
19470 (struct thread_resume_array): New.
19471 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19472 resume interface change.
19473 (linux_continue_one_thread, linux_queue_one_thread)
19474 (resume_status_pending_p): Check if the resume field is NULL
19475 instead of checking the leave_stopped member.
19476 (linux_resume): Adjust to the target resume interface change.
19477 * spu-low.c (spu_resume): Adjust to the target resume interface
19478 change.
19479 * win32-low.c (win32_detach, win32_resume): Ditto.
19480
c35fafde
PA
194812009-04-01 Pedro Alves <pedro@codesourcery.com>
19482
19483 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19484 flag.
19485 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19486 pending.
19487 (linux_continue_one_thread): Only preserve the stepping flag if
19488 there's a pending breakpoint.
19489
0a59d50b
PA
194902009-03-31 Pedro Alves <pedro@codesourcery.com>
19491
19492 * server.c (main): After the inferior having exited, call
19493 remote_close before exiting gdbserver.
19494
f04c6d38
TJB
194952009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19496
19497 Fix size of FPSCR in Power 7 processors.
19498 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19499 (PPC_FEATURE_HAS_DFP): New #define.
19500 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19501 size of the FPSCR.
19502
78e5cee6
PA
195032009-03-23 Pedro Alves <pedro@codesourcery.com>
19504
19505 * server.c (handle_query) Whitespace and formatting.
19506
1b3f6016
PA
195072009-03-22 Pedro Alves <pedro@codesourcery.com>
19508
19509 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19510 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19511 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19512 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19513 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19514 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19515 Makefile.in, configure.ac: Fix whitespace throughout.
19516 * configure: Regenerate.
19517
a07b2135
PA
195182009-03-22 Pedro Alves <pedro@codesourcery.com>
19519
19520 * inferiors.c (find_inferior): Make it safe for the callback
19521 function to delete the currently iterated inferior.
19522
67cc2626
PA
195232009-03-22 Pedro Alves <pedro@codesourcery.com>
19524
19525 * Makefile.in (linuw_low_h): Move higher.
19526 (thread-db.o): Depend on $(linux_low_h).
19527
54a0b537
PA
195282009-03-17 Pedro Alves <pedro@codesourcery.com>
19529
19530 Rename "process" to "lwp" throughout.
19531
19532 * linux-low.c (all_processes): Rename to...
19533 (all_lwps): ... this.
19534 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19535 (add_process): Rename to ...
19536 (add_lwp): ... this. Adjust.
19537 (linux_create_inferior): Adjust.
19538 (linux_attach_lwp): Adjust.
19539 (linux_attach): Adjust.
19540 (linux_kill_one_process): Rename to ...
19541 (linux_kill_one_lwp): ... this. Adjust.
19542 (linux_kill): Adjust.
19543 (linux_detach_one_process): Rename to ...
19544 (linux_detach_one_lwp): ... this. Adjust.
19545 (linux_detach): Adjust.
19546 (check_removed_breakpoint): Adjust.
19547 (status_pending_p): Adjust.
19548 (linux_wait_for_process): Rename to ...
19549 (linux_wait_for_lwp): ... this. Adjust.
19550 (linux_wait_for_event): Adjust.
19551 (send_sigstop): Adjust.
19552 (wait_for_sigstop): Adjust.
19553 (stop_all_processes): Rename to ...
19554 (stop_all_lwps): ... this.
19555 (linux_resume_one_process): Rename to ...
19556 (linux_resume_one_lwp): ... this. Adjust.
19557 (linux_set_resume_request, linux_continue_one_thread)
19558 (linux_queue_one_thread, resume_status_pending_p)
19559 (usr_store_inferior_registers, regsets_store_inferior_registers)
19560 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19561 Adjust.
19562 * linux-low.h (get_process): Rename to ...
19563 (get_lwp): ... this. Adjust.
19564 (get_thread_process): Rename to ...
19565 (get_thread_lwp): ... this. Adjust.
19566 (get_process_thread): Rename to ...
19567 (get_lwp_thread): ... this. Adjust.
19568 (struct process_info): Rename to ...
19569 (struct lwp_info): ... this.
19570 (all_processes): Rename to ...
19571 (all_lwps): ... this.
19572 * proc-service.c (ps_lgetregs): Adjust.
19573 * thread-db.c (thread_db_create_event, find_one_thread)
19574 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19575
0b16c5cf
PA
195762009-03-14 Pedro Alves <pedro@codesourcery.com>
19577
19578 * server.c (handle_query): Handle "qAttached".
19579
32de4b9d
NS
195802009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19581
19582 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19583 GPLv3, update license URL.
19584
2aecd87f
DE
195852009-03-01 Doug Evans <dje@google.com>
19586
93efd302 19587 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19588 (server_h): Add gdb_signals.h.
19589 (signals.o): Update.
19590 * server.h (target_signal_from_host,target_signal_to_host_p)
19591 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19592
86b1f9c5
PM
195932009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19594
19595 * remote-utils.c (getpkt): Also generate remote-debug
19596 information if noack_mode is set.
19597
4aa995e1
PA
195982009-02-06 Pedro Alves <pedro@codesourcery.com>
19599
19600 * server.c (handle_query): Report qXfer:siginfo:read and
19601 qXfer:siginfo:write as supported and handle them.
19602 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19603 * linux-low.c (linux_xfer_siginfo): New.
19604 (linux_target_ops): Set it.
19605
62709adf
PA
196062009-01-26 Pedro Alves <pedro@codesourcery.com>
19607
19608 * server.c (gdbserver_usage): Mention --remote-debug.
19609 (main): Accept '--remote-debug' switch.
19610
aef93bd7
DE
196112009-01-18 Doug Evans <dje@google.com>
19612
19613 * regcache.c (new_register_cache): No need to check result of xcalloc.
19614 * server.c (handle_search_memory): Back out calls to xmalloc,
19615 result is checked and error is returned to user upon failure.
19616 (handle_query): Ditto. Add more checks for result of malloc.
19617 (handle_v_cont): Check result of malloc, report error back to
19618 user upon failure.
19619 (handle_v_run): Ditto. Call freeargv.
19620 * server.h (freeargv): Declare.
19621 * utils.c (freeargv): New fn.
19622
54363045
DE
196232009-01-15 Doug Evans <dje@google.com>
19624
f626972c
DE
19625 * gdbreplay.c (perror_with_name): Make arg const char *.
19626 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19627 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19628 * utils.c (perror_with_name): Make arg const char *.
54363045 19629
18aae699
PA
196302009-01-14 Pedro Alves <pedro@codesourcery.com>
19631
19632 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19633 when handling a EXIT_PROCESS_DEBUG_EVENT.
19634
ff703abe
JB
196352009-01-06 Joel Brobecker <brobecker@adacore.com>
19636
19637 * gdbreplay.c (gdbreplay_version): Update copyright year.
19638 * server.c (gdbserver_version): Likewise.
19639
f21cc1a2 196402009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19641
19642 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19643 (handle_extended_wait): Improve comment.
0e21c1ec 19644
bca929d3
DE
196452008-12-13 Doug Evans <dje@google.com>
19646
19647 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19648 * server.h (ATTR_MALLOC): New macro.
19649 (xmalloc,xcalloc,xstrdup): Declare.
19650 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19651 * inferiors.c: Ditto.
19652 * linux-low.c: Ditto.
19653 * mem-break.c: Ditto.
19654 * regcache.c: Ditto.
19655 * remote-utils.c: Ditto.
19656 * server.c: Ditto.
19657 * target.c: Ditto.
19658 * win32-low.c: Ditto.
19659
97438e3f
DE
196602008-12-12 Doug Evans <dje@google.com>
19661
896c7fbb
DE
19662 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19663 in debugging printf.
19664
97438e3f
DE
19665 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19666
e3b886f8
DE
196672008-12-09 Doug Evans <dje@google.com>
19668
19669 * linux-low.h (struct process_info): Delete member tid, unused.
19670 * thread-db.c (find_one_thread): Update.
19671 (maybe_attach_thread): Update.
19672
07e059b5
VP
196732008-12-02 Pedro Alves <pedro@codesourcery.com>
19674
889bf7c5
PA
19675 * target.h (struct target_ops): Add qxfer_osdata member.
19676 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19677 and dirent.h.
19678 (linux_qxfer_osdata): New functions.
19679 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19680 callback.
19681 * server.c (handle_query): Handle "qXfer:osdata:read:".
19682 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19683 (buffer_xml_printf): New functions.
19684 * server.h (struct buffer): New.
19685 (buffer_grow_str, buffer_grow_str0): New macros.
19686 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19687 (buffer_xml_printf): Declare.
07e059b5 19688
4cab47ab
DE
196892008-11-24 Doug Evans <dje@google.com>
19690
19691 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19692
f142445f
DJ
196932008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19694
19695 * server.c (handle_v_run): Always use the supplied argument list.
19696
d0107bb6 196972008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19698
d0107bb6
BW
19699 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19700 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19701
2c4ad781
TJB
197022008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19703
19704 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19705 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19706 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19707 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19708 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19709 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19710 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19711 XML target descriptions.
19712 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19713 when inferior is running on an ISA 2.05 or later processor. Add
19714 special case to return offset for full 64-bit slot of FPSCR when
19715 in 32-bits.
19716
dfb64f85
DJ
197172008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19718
19719 * Makefile.in (SFILES, clean): Added sparc64 files.
19720 (reg-sparc64.o, reg-sparc64.c): New.
19721 * configure.srv (sparc*-*-linux*): New configuration.
19722 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19723 syscall arguments for SPARC.
19724 (regsets_store_inferior_registers): Likewise.
19725 * linux-sparc-low.c: New file.
19726
66b6e1dd
DE
197272008-10-21 Doug Evans <dje@google.com>
19728
19729 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19730 (READLINE_DIR,READLINE_DEP): Delete.
19731 (INTERNAL_CFLAGS): Update.
19732 (LINTFLAGS): Update.
19733
9b710a42
PA
197342008-10-10 Pedro Alves <pedro@codesourcery.com>
19735
19736 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19737 whole argv from the last run, not just argv[0].
19738
5822d809
PA
197392008-09-08 Pedro Alves <pedro@codesourcery.com>
19740
19741 * regcache.c (new_register_cache): Return NULL if the register
19742 cache size isn't known yet.
19743 (free_register_cache): Avoid dereferencing a NULL regcache.
19744
74aac56f
DJ
197452008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19746
19747 * configure.srv: Merge MIPS and MIPS64.
19748
400b20f5
MR
197492008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19750
19751 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19752
677c5bb1
LM
197532008-08-18 Luis Machado <luisgpm@br.ibm.com>
19754
19755 * Makefile.in: Add required vsx dependencies.
19756
19757 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19758 Declare init_registers_powerpc_vsx32l.
19759 Declare init_registers_powerpc_vsx64l.
19760 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19761 (ppc_arch_setup): Check for VSX in hwcap.
19762 (ppc_fill_vsxregset): New function.
19763 (ppc_store_vsxregset): New function.
19764 Add new VSX entry in regset_info target_regsets.
19765
19766 * configure.srv: Add new VSX dependencies.
19767
a6f3e723
SL
197682008-08-12 Pedro Alves <pedro@codesourcery.com>
19769
19770 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19771 (remote_open): Set or clear transport_is_reliable.
19772 (putpkt_binary): Don't expect acks in noack mode.
19773 (getpkt): Don't send ack/nac in noack mode.
19774 * server.c (handle_general_set): Handle QStartNoAckMode.
19775 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19776 qSupported.
19777 (main): Reset noack_mode on every connection.
19778 * server.h (noack_mode): Declare.
19779
a417dc56
RW
197802008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19781
19782 * Makefile.in (GDBREPLAY_OBS): New variable.
19783 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19784
3221518c
UW
197852008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19786 Daniel Jacobowitz <dan@codesourcery.com>
19787
19788 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19789 (usr_store_inferior_registers): Likewise.
19790 (regsets_store_inferior_registers): Likewise.
19791
ec56be1b
PA
197922008-07-31 Rolf Jansen <rj@surtec.com>
19793 Pedro Alves <pedro@codesourcery.com>
19794
19795 * configure.ac: Check for memmem declaration.
19796 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19797 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19798 (disable_packet_qfThreadInfo): Unconditionally compile.
19799 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19800 * configure, config.in: Regenerate.
19801
2fe5e3ff
DE
198022008-07-28 Doug Kwan <dougkwan@google.com>
19803
19804 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19805 (linux_write_memory): Remove declaration of errno.
19806
836acd6d
UW
198072008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19808
19809 * linux-low.c (handle_extended_wait): Do not use "status"
19810 variable uninitialized.
19811
aeba519e
PA
198122008-07-07 Pedro Alves <pedro@codesourcery.com>
19813
19814 * server.c (handle_v_attach): Inhibit reporting dll changes.
19815
db42f210
PA
198162008-06-27 Pedro Alves <pedro@codesourcery.com>
19817
19818 * remote-utils.c (prepare_resume_reply): If requested, don't
19819 output "thread:TID" in the T stop reply.
19820
19821 * server.c (disable_packet_vCont, disable_packet_Tthread)
19822 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19823 (handle_query): If requested, disable support for qC, qfThreadInfo
19824 and qsThreadInfo.
19825 (handle_v_requests): If requested, disable support for vCont.
19826 (gdbserver_show_disableable): New.
19827 (main): Handle --disable-packet and --disable-packet=LIST.
19828
19829 * server.h (disable_packet_vCont, disable_packet_Tthread)
19830 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19831
8e4c5421
CD
198322008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19833
19834 * server.c (gdbserver_usage): Mention --version.
19835
6e23a804
DJ
198362008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19837
19838 * Makefile.in (gdbreplay.o): New rule.
19839
90aa6a40
JM
198402008-06-06 Joseph Myers <joseph@codesourcery.com>
19841
19842 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19843 message, not gdbserver.
19844
c16158bc 198452008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19846 Nathan Sidwell <nathan@codesourcery.com>
19847 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19848
19849 * acinclude.m4: Include ../../config/acx.m4.
19850 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19851 * configure, config.in: Regenerate.
19852 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19853 * server.c (gdbserver_version): Print PKGVERSION.
19854 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19855 (main): Adjust gdbserver_usage calls.
19856 * gdbreplay.c (version, host_name): Add declarations.
19857 (gdbreplay_version, gdbreplay_usage): New.
19858 (main): Accept --version and --help options.
19859
aeb75bf5
DJ
198602008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19861
19862 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19863 (arm_breakpoint_at): Handle Thumb.
19864 (the_low_target): Add comment.
19865
76b233dd
UW
198662008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19867
19868 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19869
08388c79
DE
198702008-05-09 Doug Evans <dje@google.com>
19871
a3c83fae
DE
19872 * server.h (decode_search_memory_packet): Declare.
19873 * remote-utils.c (decode_search_memory_packet): New fn.
19874 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19875 (handle_search_memory): New fn.
19876 (handle_query): Process qSearch:memory packets.
19877
bb9c3d36
UW
198782008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19879
19880 * regcache.c (registers_length): Remove.
19881 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19882 full register packet.
19883 * regcache.h (registers_length): Remove prototype.
19884 * server.h (PBUFSIZ): Define to 16384.
19885
7284e1be
UW
198862008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19887
19888 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19889 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19890 powerpc-64l.o, and powerpc-altivec64l.o.
19891 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19892 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19893 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19894 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19895 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19896 to srv_xmlfiles.
19897
19898 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19899 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19900 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19901 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19902 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19903 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19904 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19905 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19906 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19907 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19908 (clean): Update.
19909
19910 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19911 (init_registers_powerpc_32l): ... this new prototype.
19912 (init_registers_powerpc_32): Remove, replace by ...
19913 (init_registers_powerpc_altivec32l): ... this new prototype.
19914 (init_registers_powerpc_e500): Remove, replace by ...
19915 (init_registers_powerpc_e500l): ... this new prototype.
19916 (init_registers_ppc64): Remove, replace by ...
19917 (init_registers_powerpc_64l): ... this new prototype.
19918 (init_registers_powerpc_64): Remove, replace by ...
19919 (init_registers_powerpc_altivec64l): ... this new prototype.
19920 (ppc_num_regs): Set to 73.
19921 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19922 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19923 (ppc_cannot_store_register): Handle orig_r3 and trap.
19924 (ppc_arch_setup): Update init_registers_... calls.
19925 (ppc_fill_gregset): Handle orig_r3 and trap.
19926
19927 * inferiors.c (clear_inferiors): Reset current_inferior.
19928
fdc59709
PB
199292008-04-23 Paolo Bonzini <bonzini@gnu.org>
19930
889bf7c5
PA
19931 * acinclude.m4: Add override.m4.
19932 * configure: Regenerate.
fdc59709 19933
c9b2f845
UW
199342008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19935
19936 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19937 initial call to init_register_ppc64.
19938
550512b8
UW
199392008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19940
43aaf8b6
PA
19941 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19942 single powerpc*-*-linux* case.
550512b8
UW
19943 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19944
b6430ec3
UW
199452008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19946
19947 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19948 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19949 from reg_xmlfiles.
19950 * linux-ppc-low.c: Include <elf.h>.
19951 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19952 (ppc_hwcap): New global variable.
19953 (ppc_regmap): Remove __SPE__ #ifdef sections.
19954 (ppc_regmap_e500): New global variable.
19955 (ppc_cannot_store_register): Update __SPE__ special case.
19956 (ppc_get_hwcap): New function.
19957 (ppc_arch_setup): Use it to determine whether inferior supports
19958 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19959 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19960 Do not access registers if target does not support AltiVec.
19961 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19962 Do not access registers if target does not support SPE.
19963 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19964
52fa2412
UW
199652008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19966
19967 * linux-low.c (disabled_regsets, num_regsets): New.
19968 (use_regsets_p): Delete.
19969 (linux_wait_for_process): Clear disabled_regsets.
19970 (regsets_fetch_inferior_registers): Check and set it.
19971 (regsets_store_inferior_registers): Likewise.
19972 (linux_fetch_registers, linux_store_registers): Do not use
19973 use_regsets_p.
19974 (initialize_low): Allocate disabled_regsets.
19975
e28b3332
DJ
199762008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19977
19978 * Makefile.in (LIBOBJS): New.
19979 (OBS): Use LIBOBJS.
19980 (memmem.o): New rule.
19981 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19982 * configure: Regenerated.
19983
4536995d
UW
199842008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19985
19986 * server.c (handle_query): Never return "unsupported" for
19987 qXfer:features:read queries.
19988
221c031f
UW
199892008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19990
19991 * server.c (get_features_xml): Fix inverted condition.
19992 (handle_query): Always support qXfer:feature:read.
19993
ccd213ac
DJ
199942008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19995
19996 * server.c (wrapper_argv): New.
19997 (start_inferior): Handle wrapper_argv. If set, expect an extra
19998 trap.
19999 (gdbserver_usage): Document --wrapper.
20000 (main): Parse --wrapper.
20001
6fe305f7
UW
200022008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20003
20004 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20005 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20006 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20007 (ppc_set_pc): Likewise.
20008 (ppc_arch_setup): New function.
20009 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20010 of collect_register.
889bf7c5 20011 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20012
5b0a002e
UW
200132008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20014
20015 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20016 instead of linux-ppc64-low.o.
20017 * linux-ppc64-low.c: Remove file.
20018 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20019 (linux-ppc64-low.o): Remove rule.
20020
20021 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20022 (init_registers_powerpc_64): Likewise.
20023 (ppc_regmap): Conditionally define depending on __powerpc64__.
20024 (ppc_cannot_store_register): Do not special-case "fpscr" when
20025 compiled on __powerpc64__.
20026 (ppc_collect_ptrace_register): New function.
20027 (ppc_supply_ptrace_register): New function.
20028 (ppc_breakpoint): Change type to "unsigned int".
20029 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20030 (the_low_target): Conditionally provide initializers for the
889bf7c5 20031 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20032 collect_ptrace_register and supply_ptrace_register members.
20033
9b4b61c8
UW
200342008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20035
20036 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20037 * server.c (gdbserver_xmltarget): Define.
20038 (get_features_xml): Use it to replace "target.xml" and arch_string.
20039
20040 * configure.srv: Remove srv_xmltarget. Add XML files that were
20041 mentioned there to srv_xmlfiles instead. Remove conditional tests
20042 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20043 srv_xmlfiles and srv_regobj to include all possible choices.
20044 * configure.ac (srv_xmltarget): Remove.
20045 (srv_xmlfiles): Do not add "target.xml".
20046 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20047 checks for supplementary target information.
20048 * configure: Regenerate.
20049 * Makefile.in (XML_TARGET): Remove.
20050 (target.xml): Remove rule.
20051 (clean): Do not clean up target.xml.
20052 (.PRECIOUS): Do not mention target.xml.
20053
20054 * target.h (struct target_ops): Remove arch_string member.
20055 * linux-low.c (linux_arch_string): Remove.
20056 (linux_target_ops): Remove arch_string initializer.
20057 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20058 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20059 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20060 * spu-low.c (spu_arch_string): Remove.
20061 (spu_target_ops): Remove arch_string initializer.
20062 * win32-low.c (win32_arch_string): Remove.
20063 (win32_target_ops): Remove arch_string initializer.
20064 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20065 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20066 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20067
ee1a7ae4
UW
200682008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20069
20070 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20071 by collect_ptrace_register and supply_ptrace_register hooks.
20072 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20073 instead of checking for the_low_target.left_pad_xfer.
20074 (usr_store_inferior_registers): Use collect_ptrace_register callback
20075 instead of checking for the_low_target.left_pad_xfer.
20076
20077 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20078 (s390_supply_ptrace_register): Likewise.
20079 (s390_fill_gregset): Call s390_collect_ptrace_register.
20080 (the_low_target): Update.
20081
20082 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20083 (ppc_supply_ptrace_register): Likewise.
20084 (the_low_target): Update.
20085
20086 * linux-i386-low.c (the_low_target): Update.
20087 * linux-x86-64-low.c (the_low_target): Update.
20088
d61ddec4
UW
200892008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20090
20091 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20092 reg-s390.o and reg-s390x.o.
20093
20094 * linux-low.c (new_inferior): New global variable.
20095 (linux_create_inferior, linux_attach): Set it.
20096 (linux_wait_for_process): Call the_low_target.arch_setup after the
20097 target has stopped for the first time.
20098 (initialize_low): Do not call the_low_target.arch_setup.
20099
20100 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20101 (s390_set_pc): Likewise.
20102 (s390_arch_setup): New function.
20103 (the_low_target): Use s390_arch_setup as arch_setup routine.
20104
20105 * regcache.c (realloc_register_cache): New function.
20106 (set_register_cache): Call it for each existing regcache.
20107
d05b4ac3
UW
201082008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20109
20110 * server.h (init_registers): Remove prototype.
20111
20112 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20113 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20114 instead of init_registers ().
20115 * linux-arm-low.c (init_registers_arm): Add prototype.
20116 (init_registers_arm_with_iwmmxt): Likewise.
20117 (the_low_target): Add initializer for arch_setup field.
20118 * linux-cris-low.c (init_registers_cris): Add prototype.
20119 (the_low_target): Add initializer for arch_setup field.
20120 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20121 (the_low_target): Add initializer for arch_setup field.
20122 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20123 (the_low_target): Add initializer for arch_setup field.
20124 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20125 (the_low_target): Add initializer for arch_setup field.
20126 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20127 (the_low_target): Add initializer for arch_setup field.
20128 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20129 (the_low_target): Add initializer for arch_setup field.
20130 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20131 (init_registers_mips64_linux): Likewise.
20132 (the_low_target): Add initializer for arch_setup field.
20133 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20134 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20135 (the_low_target): Add initializer for arch_setup field.
20136 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20137 (init_registers_powerpc_64): Likewise.
20138 (the_low_target): Add initializer for arch_setup field.
20139 * linux-s390-low.c (init_registers_s390): Add prototype.
20140 (init_registers_s390x): Likewise.
20141 (the_low_target): Add initializer for arch_setup field.
20142 * linux-sh-low.c (init_registers_sh): Add prototype.
20143 (the_low_target): Add initializer for arch_setup field.
20144 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20145 (the_low_target): Add initializer for arch_setup field.
20146 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20147 (the_low_target): Add initializer for arch_setup field.
20148
20149 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20150 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20151 instead of init_registers ().
20152 * win32-arm-low.c (init_registers_arm): Add prototype.
20153 (the_low_target): Add initializer for arch_setup field.
20154 * win32-i386-low.c (init_registers_i386): Add prototype.
20155 (the_low_target): Add initializer for arch_setup field.
20156
20157 * spu-low.c (init_registers_spu): Add prototype.
20158 (initialize_low): Call initialie_registers_spu () instead of
20159 initialize_registers ().
20160
fd96d250
PA
201612008-02-19 Pedro Alves <pedro@codesourcery.com>
20162
20163 * server.c (handle_v_requests): When handling the vRun and vAttach
20164 packets, if already debugging a process, don't kill it. Return an
20165 error instead.
20166
d41b6bb4
DJ
201672008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20168
20169 * server.c (handle_query): Correct length check.
20170
5ac588cf
PA
201712008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20172
20173 * win32-low.c (do_initial_child_stuff): Add process handle
20174 parameter. Set current_process_handle and current_process_id from the
20175 parameters. Clear globals.
20176 (win32_create_inferior): Don't set current_process_handle and
20177 current_process_id here. Instead pass them on the call to
20178 do_initial_child_stuff.
20179 (win32_attach): Likewise.
20180 (win32_clear_inferiors): New.
20181 (win32_kill): Don't close the current process handle or the
20182 current thread handle here. Instead call win32_clear_inferiors.
20183 (win32_detach): Don't open a new handle to the process. Call
20184 win32_clear_inferiors.
20185 (win32_join): Don't rely on current_process_handle; open a new
20186 handle using the process id.
20187 (win32_wait): Call win32_clear_inferiors when the inferior process
20188 has exited.
20189
ecd7ecbc
DJ
201902008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20191
20192 * server.c (monitor_show_help): Add "exit".
20193
1525d545
MG
201942008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20195
ecd7ecbc 20196 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20197 (clean): Add reg-xtensa.c.
20198 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20199 * configure.srv (xtensa*-*-linux*) New target.
20200 * linux-xtensa-low.c: New.
20201 * xtensa-xtregs.c: New.
1525d545 20202
59a016f0
PA
202032008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20204
20205 * hostio.c: Don't include errno.h.
20206 (errno_to_fileio_errno): Move to hostio-errno.
20207 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20208 error number outputting to the target->hostio_last_error callback.
20209 (hostio_packet_error): Use FILEIO_EINVAL directly.
20210 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20211 calls to hostio_error.
20212 * hostio-errno.c: New.
20213 * server.h (hostio_last_error_from_errno): Declare.
20214 * target.h (target_ops): Add hostio_last_error member.
20215 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20216 as hostio_last_error handler.
889bf7c5 20217 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20218 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20219 (wince_hostio_last_error): New functions.
20220 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20221 as hostio_last_error handler.
20222 (win32_target_ops) [!_WIN32_WCE]: Register
20223 hostio_last_error_from_errno as hostio_last_error handler.
20224 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20225 (hostio-errno.o): New rule.
20226 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20227 * configure.srv (srv_hostio_err_objs): New variable. Default to
20228 hostio-errno.o.
20229 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20230 * configure: Regenerate.
20231
2d717e4f
DJ
202322008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20233
20234 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20235 (linux_kill, linux_detach): Clean up the process list.
20236 * remote-utils.c (remote_open): Improve port number parsing.
20237 (putpkt_binary, input_interrupt): Only send interrupts if the target
20238 is running.
20239 * server.c (extended_protocol): Make static.
20240 (attached): Define earlier.
20241 (exit_requested, response_needed, program_argv): New variables.
20242 (target_running): New.
20243 (start_inferior): Clear attached here.
20244 (attach_inferior): Set attached here.
20245 (require_running): Define.
20246 (handle_query): Use require_running and target_running. Implement
20247 "monitor exit".
20248 (handle_v_attach, handle_v_run): New.
20249 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20250 (gdbserver_usage): Update.
20251 (main): Redo argument parsing. Handle --debug and --multi. Handle
20252 --attach along with other options or after the port. Save
20253 program_argv. Support no initial program. Resynchronize
20254 communication with GDB after an error. Handle "monitor exit".
20255 Use require_running and target_running. Always allow the extended
20256 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20257 restart in extended mode.
20258 * README: Refer to the GDB manual. Update --attach usage.
20259
7407e2de
AS
202602007-12-20 Andreas Schwab <schwab@suse.de>
20261
20262 * linux-low.c (STACK_SIZE): Define.
20263 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20264 (linux_test_for_tracefork): Likewise.
20265
b65d95c5
DJ
202662007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20267
20268 * linux-low.c (linux_wait_for_event): Update messages. Do not
20269 reinsert auto-delete breakpoints.
20270 * mem-break.c (struct breakpoint): Change return type of handler to
20271 int.
20272 (set_breakpoint_at): Update handler type.
20273 (reinsert_breakpoint_handler): Return 1 instead of calling
20274 delete_breakpoint.
20275 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20276 setting a new one.
20277 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20278 * mem-break.h (set_breakpoint_at): Update handler type.
20279 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20280 * win32-low.c (auto_delete_breakpoint): New.
20281 (get_child_debug_event): Use it.
20282
4e799345
DJ
202832007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20284
20285 * configure.ac: Check for pread and pwrite.
20286 * hostio.c (handle_pread): Fall back to lseek and read.
20287 (handle_pwrite): Fall back to lseek and write.
20288 * config.in, configure: Regenerated.
20289
27524b67
DJ
202902007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20291
20292 * server.c (myresume): Add own_buf argument.
20293 (main): Update calls.
20294
a20d5e98
DJ
202952007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20296
20297 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20298 * remote-utils.c (remote_open): Do not call disable_async_io.
20299 (block_async_io): Delete.
20300 (unblock_async_io): Make static.
20301 (initialize_async_io): New.
20302 * server.c (handle_v_cont): Handle async I/O here.
20303 (myresume): Likewise. Move other common resume tasks here...
20304 (main): ... from here. Call initialize_async_io. Disable async
20305 I/O before the main loop.
20306 * server.h (initialize_async_io): Declare.
20307 (block_async_io, unblock_async_io): Delete prototypes.
20308 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20309
b79d787e
DJ
203102007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20311
20312 * remote-utils.c (readchar): Allow binary data in received messages.
20313
d97903b2
PA
203142007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20315
20316 * win32-low.c (attaching): New global.
20317 (win32_create_inferior): Clear the `attaching' global.
20318 (win32_attach): Set the `attaching' global.
20319 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20320 attaching. Only set a breakpoint at the entry point if not
20321 attaching.
20322
311de423
PA
203232007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20324
20325 * server.c (main): Don't report dll events on the initial
20326 connection on attaches.
20327
6c2d16d2
PA
203282007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20329
20330 * server.c (main): Relax numerical bases supported for the pid of
20331 the --attach command line argument.
20332
5ca906e6
PA
203332007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20334
20335 * win32-low.c (win32_attach): Call OpenProcess before
20336 DebugActiveProcess, not after. Add last error output to error
20337 call.
20338
9c6c8194
PA
203392007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20340
20341 * win32-low.c (win32_get_thread_context)
20342 (win32_set_thread_context): New functions.
20343 (thread_rec): Use win32_get_thread_context.
20344 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20345 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20346 field.
20347
4d5d1aaa
PA
203482007-12-03 Leo Zayas
20349 Pedro Alves <pedro_alves@portugalmail.pt>
20350
20351 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20352 global variables.
20353 (child_add_thread): Minor cleanup.
20354 (child_continue): Resume artificially suspended threads before
20355 calling ContinueDebugEvent.
20356 (suspend_one_thread): New.
20357 (fake_breakpoint_event): New.
20358 (get_child_debug_event): Change return type to int. Check here if
20359 gdb sent an interrupt request. If a soft interrupt was requested,
20360 fake a breakpoint event. Return 0 if there is no event to handle,
20361 and 1 otherwise.
20362 (win32_wait): Don't check here if gdb sent an interrupt request.
20363 Ensure there is a valid event to handle.
20364 (win32_request_interrupt): Add soft interruption method as last
20365 resort.
20366
c436e841
PA
203672007-12-03 Leo Zayas
20368 Pedro Alves <pedro_alves@portugalmail.pt>
20369
20370 * win32-low.h (win32_thread_info): Add descriptions to the
20371 structure members. Replace `suspend_count' counter by a
20372 `suspended' flag.
20373 * win32-low.c (thread_rec): Update condition of when to get the
20374 context from the inferior. Rely on ContextFlags being set if it
20375 has already been retrieved. Only suspend the inferior thread if
20376 we haven't already. Warn if that fails.
20377 (continue_one_thread): s/suspend_count/suspended/. Only call
20378 ResumeThread once. Warn if that fails.
20379
e7b5fa67
PA
203802007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20381
20382 * win32-low.c (win32_wait): Don't read from the inferior when it
20383 has already exited.
20384
a385171d
PA
203852007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20386
20387 * Makefile.in (win32_low_h): New variable.
20388 (win32-low.o): Add dependency on $(win32_low_h).
20389 (win32-arm-low.o, win32-i386-low.o): New rules.
20390
f80c84b3
DJ
203912007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20392
20393 * hostio.c: Correct copyright year.
20394
a6b151f1
DJ
203952007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20396
20397 * Makefile.in (OBS): Add hostio.o.
20398 (hostio.o): New rule.
20399 * server.h (handle_vFile): Declare.
20400 * hostio.c: New file.
20401 * server.c (handle_v_requests): Take packet_len and new_packet_len
20402 for binary packets. Call handle_vFile.
20403 (main): Update call to handle_v_requests.
20404
f9387fc3
DJ
204052007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20406
20407 * linux-low.c: Include <sched.h>.
20408
51c2684e
DJ
204092007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20410
20411 * linux-low.c (linux_tracefork_grandchild): New.
20412 (linux_tracefork_child): Use clone.
20413 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20414
75f83163
JB
204152007-10-31 Joel Brobecker <brobecker@adacore.com>
20416
20417 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20418
da5898ce
DJ
204192007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20420
20421 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20422
24a09b5f
DJ
204232007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20424
20425 * inferiors.c (change_inferior_id): Delete.
20426 (add_pid_to_list, pull_pid_from_list): New.
20427 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20428 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20429 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20430 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20431 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20432 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20433 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20434 (using_threads): Always set to 1.
20435 (handle_extended_wait): New.
20436 (add_process): Do not set TID.
20437 (linux_create_inferior): Set must_set_ptrace_flags.
20438 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20439 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20440 (linux_thread_alive): Rename TID argument to LWPID.
20441 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20442 (linux_wait_for_event): Do not use TID or check using_threads. Update
20443 call to dead_thread_notify. Call handle_extended_wait.
20444 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20445 (send_sigstop): Delete sigstop_sent.
20446 (wait_for_sigstop): Avoid TID.
20447 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20448 (linux_test_for_tracefork): New.
20449 (linux_lookup_signals): Use thread_db_active and
20450 linux_supports_tracefork_flag.
20451 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20452 * linux-low.h (get_process_thread): Avoid TID.
20453 (struct process_ifo): Move thread_known and tid to the end. Remove
20454 sigstop_sent.
20455 (linux_attach_lwp, thread_db_init): Update prototypes.
20456 * server.h (change_inferior_id): Delete prototype.
20457 (add_pid_to_list, pull_pid_from_list): New prototypes.
20458 * thread-db.c (thread_db_use_events): New.
20459 (find_first_thread): Rename to...
20460 (find_one_thread): ...this. Update callers and messages. Do not
20461 call fatal. Check thread_db_use_events. Do not call
20462 change_inferior_id or new_thread_notify.
20463 (maybe_attach_thread): Update. Do not call new_thread_notify.
20464 (thread_db_init): Set thread_db_use_events. Check use_events.
20465 * utils.c (fatal, warning): Correct message prefix.
20466
30ed0a8f
DJ
204672007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20468
20469 * Makefile.in (clean): Remove new files.
20470 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20471 (powerpc-64.o, powerpc-64.c): New rules.
20472 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20473 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20474 with SPE.
20475 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20476 SPE targets.
20477 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20478 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20479 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20480 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20481 (target_regsets): Add AltiVec and SPE register sets.
20482 * configure.ac: Check for AltiVec and SPE.
20483 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20484 (ppc_fill_vrregset, ppc_store_vrregset): New.
20485 (target_regsets): Add AltiVec register set.
20486 * configure: Regenerated.
20487
fd462a61
DJ
204882007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20489
20490 * linux-low.c (O_LARGEFILE): Define.
20491 (linux_read_memory): Use /proc/PID/mem.
20492 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20493 * configure, config.in: Regenerated.
20494
69f223ed
DJ
204952007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20496
20497 * linux-low.c (linux_wait_for_event): Do not pass signals while
20498 single-stepping.
20499
aec18585
PA
205002007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20501
20502 * win32-low.c (create_process): New.
20503 (win32_create_inferior): Use create_process instead of
20504 CreateProcess. If create_process failed retry appending an ".exe"
20505 suffix. Store the GetLastError result immediatelly after
20506 create_process calls and use it on the call to error.
20507
34d86ddd
PA
205082007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20509
20510 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20511
5a0e3bd0
JB
205122007-08-23 Joel Brobecker <brobecker@adacore.com>
20513
20514 * configure.ac: Switch license to GPLv3.
20515
f88c79e6
MS
205162007-08-01 Michael Snyder <msnyder@access-company.com>
20517
20518 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20519
6b3d9b83
PA
205202007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20521
20522 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20523 typedef.
20524 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20525 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20526 CloseToolhelp32Snapshot.
20527 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20528 CloseToolhelp32Snapshot.
20529
c588c53c
MS
205302007-07-27 Michael Snyder <michael.snyder@access-company.com>
20531
20532 * server.c (main): Check for inferior exit before main loop.
20533
aa0403d9
PA
205342007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20535
20536 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20537 instead of on tmp_desc.
20538
255e7678
DJ
205392007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20540 Daniel Jacobowitz <dan@codesourcery.com>
20541
20542 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20543 (add_thread): Minor cleanups.
20544 (clear_inferiors): Move lower in the file. Clear the DLL
20545 list.
20546 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20547 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20548 (xml_escape_text): New.
20549 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20550 for qSupported.
20551 (handle_v_cont): Report errors.
20552 (gdbserver_version): Update.
20553 (main): Correct size of own_buf. Do not report initial DLL events.
20554 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20555 (unloaded_dll, xml_escape_text): New.
20556 * win32-low.c (enum target_waitkind): Update comments.
20557 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20558 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20559 (win32_EnumProcessModules, win32_GetModuleInformation)
20560 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20561 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20562 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20563 (win32_Module32First, win32_Module32Next, load_toolhelp)
20564 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20565 (get_child_debug_event): Handle DLL events.
20566 (win32_wait): Likewise.
20567
0d37add9
DJ
205682007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20569
20570 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20571 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20572
45e2715e
PA
205732007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20574
20575 * win32-low.c (handle_output_debug_string): Ignore event if not
20576 waiting.
20577
c5674cf1
PA
205782007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20579
20580 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20581
2bbe3cc1
DJ
205822007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20583
20584 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20585
ae13219e
DJ
205862007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20587
20588 * inferiors.c (change_inferior_id): Add comment.
20589 * linux-low.c (check_removed_breakpoint): Add an early
20590 prototype. Improve debug output.
20591 (linux_attach): Doc update.
20592 (linux_detach_one_process, linux_detach): Clean up before releasing
20593 each process.
20594 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20595 * linux-low.h (struct process_info): Doc improvement.
20596 * mem-break.c (delete_all_breakpoints): New.
20597 * mem-break.h (delete_all_breakpoints): New prototype.
20598 * thread-db.c (find_first_thread): New.
20599 (thread_db_create_event): Call it instead of
20600 thread_db_find_new_threads. Clean up unused variables.
20601 (maybe_attach_thread): Remove first thread handling.
20602 (thread_db_find_new_threads): Use find_first_thread.
20603 (thread_db_get_tls_address): Likewise.
20604
4105de34
DJ
206052007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20606
20607 * thread-db.c (thread_db_find_new_threads): Add prototype.
20608 (thread_db_create_event): Check for the main thread before adding
20609 a new thread.
20610 (maybe_attach_thread): Only enable event reporting if TID == 0.
20611 (thread_db_get_tls_address): Check for new threads.
20612
2b876972
DJ
206132007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20614
20615 * linux-low.c (linux_create_inferior): Try execv before execvp.
20616 * spu-low.c (spu_create_inferior): Likewise.
20617
7a245884
DJ
206182007-06-13 Mike Frysinger <vapier@gentoo.org>
20619
20620 * linux-low.c (linux_create_inferior): Change execv to execvp.
20621 * spu-low.c (spu_create_inferior): Likewies.
20622
117ce543
DJ
206232007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20624
20625 * Makefile.in (clean): Clean new files instead of deleted ones.
20626 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20627 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20628 rules.
20629 * configure.srv: Specify XML files and new regformats for MIPS and
20630 MIPS64 GNU/Linux.
20631 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20632 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20633 an entry for the restart register.
20634 (mips_cannot_fetch_register, mips_cannot_store_register)
20635 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20636 register names to match the XML descriptions.
20637 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20638 restart register instead of $0.
20639
0e7f50da
UW
206402007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20641 Markus Deuling <deuling@de.ibm.com>
20642
20643 * remote-utils.c (decode_xfer_write): New function.
20644 * server.h (decode_xfer_write): Add prototype.
20645 * server.c (handle_query): Add PACKET_LEN argument. Support
20646 qXfer:spu:read and qXfer:spu:write packets.
20647 (main): Pass packet_len to handle_query.
20648 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20649 * target.h (target_ops): Add qxfer_spu.
20650
374c1d38
UW
206512007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20652
20653 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20654 accessing non-seekable spufs files.
20655
bb63802a
UW
206562007-05-16 Markus Deuling <deuling@de.ibm.com>
20657
889bf7c5 20658 * server.c (handle_query): Add reply for qC packet.
bb63802a 20659
7390519e
PA
206602007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20661 Leo Zayas <lerele@champenstudios@com>
20662
20663 * server.h (check_remote_input_interrupt_request): New function.
20664 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20665 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20666 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20667 (check_remote_input_interrupt_request): New function.
20668 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20669 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20670 winapi_GenerateConsoleCtrlEvent): New typedefs.
20671 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20672 to 250 ms.
20673 (win32_wait): Check for remote interrupt request
20674 with check_remote_input_interrupt_request.
20675 (win32_request_interrupt): New function.
20676 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20677
34b34921
PA
206782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20679
20680 * win32-low.c (debug_registers_changed,
20681 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20682 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20683 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20684 (thread_rec): Get context using the low target.
20685 (child_add_thread): Call thread_added on the low target,
20686 which does the same thing.
20687 (regptr): Delete.
20688 (do_initial_child_stuff): Remove debug registers references.
20689 Set context using the low target. Resume threads after
20690 setting the contexts.
20691 (child_continue): Remove dead variable. Remove debug
20692 registers references.
20693 (child_fetch_inferior_registers): Go through the low target.
20694 (do_child_store_inferior_registers): Remove.
20695 (child_store_inferior_registers): Go through the low target.
20696 (win32_resume): Remove debug registers references.
20697 Set context using the low target.
20698 (handle_exception): Change return type to void. Don't record
20699 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20700 first chance exception.
889bf7c5 20701 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20702 goto loop. Always return after waiting for debug event.
20703 (win32_wait): Convert to switch statement. Handle spurious
20704 events.
20705
20706 * win32-i386-low.c (debug_registers_changed,
20707 debug_registers_used): New.
20708 (initial_stuff): Rename to ...
20709 (i386_initial_stuff): ... this. Clear debug registers
20710 state variables.
20711 (store_debug_registers): Delete.
20712 (i386_get_thread_context): New.
20713 (load_debug_registers): Delete.
20714 (i386_set_thread_context): New.
20715 (i386_thread_added): New.
20716 (single_step): Rename to ...
20717 (i386_single_step): ... this.
20718 (do_fetch_inferior_registers): Rename to ...
20719 (i386_fetch_inferior_register): ... this.
20720 (i386_store_inferior_register): New.
20721 (the_low_target): Adapt to new interface.
20722
20723 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20724 (arm_get_thread_context): New.
20725 (arm_set_thread_context): New.
20726 (regptr): New.
20727 (do_fetch_inferior_registers): Rename to ...
20728 (arm_fetch_inferior_register): ... this.
20729 (arm_store_inferior_register): New.
20730 (arm_wince_breakpoint): Reimplement as unsigned long.
20731 (arm_wince_breakpoint_len): Define.
20732 (the_low_target): Adapt to new interface.
20733
20734 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20735 load_debug_registers. Add get_thread_context, set_thread_context,
20736 thread_added and store_inferior_register. Rename
20737 fetch_inferior_registers to fetch_inferior_register.
20738 (regptr): Remove declaration.
20739
dd6953e1
PA
207402007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20741
20742 * linux-low.c (linux_detach): Change return type to int. Return 0.
20743 * spu-low.c (spu_detach): Likewise.
20744
444d6139
PA
207452007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20746
20747 * target.h (target_ops): Change return type of detach to int.
20748 Add join.
20749 (join_inferior): New.
20750 * server.c (main): Don't skip detach support on mingw32.
20751 If the inferior doesn't support detaching return error.
20752 Call join_inferior instead of using waitpid.
20753 * linux-low.c (linux_join): New.
20754 (linux_target_op): Add linux_join.
20755 * spu-low.c (spu_join): New.
20756 (spu_target_ops): Add spu_join.
20757 * win32-low.c (win32_detach): Adapt to new interface.
20758 Reopen current_process_handle before detaching. Issue a child
20759 resume before detaching.
20760 (win32_join): New.
20761 (win32_target_op): Add win32_join.
20762
1d5315fe
PA
207632007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20764
20765 * win32-low.c (win32-attach): Fix return value.
20766 * target.h (target_ops): Describe ATTACH return values.
20767
bf914831
PA
207682007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20769
20770 * win32-low.c (GETPROCADDRESS): Define.
20771 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20772 (winapi_DebugSetProcessKillOnExit): Likewise.
20773 (win32_create_inferior): Force usage of ansi CreateProcessA.
20774 (win32_attach): Use GETPROCADDRESS.
20775 (win32_detach): Likewise.
20776
f72f3e60
PA
207772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20778
20779 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20780
ed50f18f
PA
207812007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20782
20783 * win32-low.c: Commit leftover changes from 2007-03-29.
20784
0c2ead7e
DJ
207852007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20786
20787 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20788 fields short instead of int. Add explicit padding.
20789 (i387_cache_to_fsave): Remove unnecessary casts.
20790 (i387_fsave_to_cache): Doc fix.
20791 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20792
73725ff3
DJ
207932007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20794
20795 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20796 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20797
d99f33d8
PA
207982007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20799
20800 * configure.srv (arm*-*-mingw32ce*): Move near the other
20801 arm targets.
20802
68070c10
PA
208032007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20804
2482afc6 20805 * configure.ac: Add errno checking.
68070c10
PA
20806 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20807 sys/file.h and malloc.h.
20808 (AC_CHECK_DECLS): Add perror.
20809 (srv_mingwce): Handle.
2482afc6 20810 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20811 win32-i386-low.o to srv_tgtobj.
20812 (i[34567]86-*-mingw*): Likewise.
20813 (arm*-*-mingw32ce*): Add case.
20814 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20815 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20816 [__MINGW32CE__] (strerror): New function.
20817 [__MINGW32CE__] (errno): Define to GetLastError.
20818 [__MINGW32CE__] (COUNTOF): New macro.
20819 (remote_open): Remove extra close call.
20820 * mem-break.c (delete_breakpoint_at): New function.
20821 * mem-break.h (delete_breakpoint_at): Declare.
20822 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20823 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20824 [USE_WIN32API] (read, write): Add char* casts.
20825 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20826 * server.h: Include wincecompat.h on Windows CE.
20827 [HAVE_ERRNO_H]: Check.
20828 (perror): Declare if not declared.
20829 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20830 (perror_with_name): Remove errno declaration.
20831 * wincecompat.h: New.
20832 * wincecompat.c: New.
20833 * win32-low.h: New.
20834 * win32-arm-low.c: New.
20835 * win32-i386-low.c: New.
20836 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20837 (OUTMSG2): Make it safe.
20838 (_T): New macro.
20839 (COUNTOF): New macro.
20840 (NUM_REGS): Get it from the low target.
20841 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20842 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20843 (thread_rec): Let low target handle debug registers.
20844 (child_add_thread): Likewise.
20845 (child_init_thread_list): Likewise.
20846 (continue_one_thread): Likewise.
20847 (regptr): New.
20848 (do_child_fetch_inferior_registers): Move to ...
20849 * win32-i386-low.c: ... here, and rename to ...
20850 (do_fetch_inferior_registers): ... this.
889bf7c5 20851 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20852 Go through the low target.
20853 (do_child_store_inferior_registers): Use regptr.
20854 (strwinerror): New function.
20855 (win32_create_inferior): Handle Windows CE.
20856 Use strwinerror instead of strerror on Windows error
20857 codes. Add program to the error output.
20858 Don't close the main thread handle on Windows CE.
20859 (win32_attach): Use coredll.dll on Windows CE.
20860 (win32_kill): Close current process and current
20861 thread handles.
20862 (win32_detach): Use coredll.dll on Windows CE.
20863 (win32_resume): Let low target handle debug registers, and
20864 step request.
20865 (handle_exception): Add/Remove initial breakpoint. Avoid
20866 non-existant WSTOPSIG on Windows CE.
20867 (win32_read_inferior_memory): Cast to remove warning.
20868 (win32_arch_string): Go through the low target.
20869 (initialize_low): Call set_breakpoint_data with the low
20870 target's breakpoint.
20871 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20872 FOP_REGNUM, mappings): Move to ...
20873 * win32-i386-low.c: ... here.
20874 * win32-low.c (win32_thread_info): Move to ...
20875 * win32-low.h: ... here.
20876 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20877 win32-arm-low.c and wincecompat.c.
20878 (all:): Add $EXEEXT.
20879 (install-only:): Likewise.
20880 (gdbserver:): Likewise.
20881 (gdbreplay:): Likewise.
20882 * config.in: Regenerate.
20883 * configure: Regenerate.
20884
41093d81
PA
208852007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20886
20887 * win32-low.c: Rename typedef thread_info to
20888 win32_thread_info throughout.
20889
544afa54
PA
208902007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20891
20892 * win32-i386-low.c: Rename to ...
20893 * win32-low.c: ... this.
20894 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20895 * Makefile.in: Likewise.
20896
bce7165d
PA
208972007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20898
20899 * remote-utils.c (monitor_output): Constify msg parameter.
20900 * server.h (monitor_output): Likewise.
20901 * win32-i386-low.c (handle_output_debug_string): New.
20902 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20903 handle_output_debug_string.
20904 (get_child_debug_event): Likewise.
20905
506c7aa0
DJ
209062007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20907
20908 * server.c (main): Correct strtoul check.
20909
42c81e2a
DJ
209102007-03-27 Jon Ringle <jon@ringle.org>
20911
20912 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20913
9453113a
DJ
209142007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20915
20916 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20917
64a69107
DJ
209182007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20919
20920 * terminal.h: Check HAVE_SGTTY_H.
20921
209222007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20923
20924 * remote-utils.c (remote_open): Print out the assigned port number.
20925
c74d0ad8
DJ
209262007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20927
20928 * remote-utils.c (monitor_output): New function.
20929 * server.c (debug_threads): Define here.
20930 (monitor_show_help): New function.
20931 (handle_query): Handle qRcmd.
20932 (main): Do not handle 'd' packet.
20933 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20934 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20935 of debug_threads.
20936
de7c3b4a
PA
209372007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20938
20939 * Makefile.in (EXEEXT): New.
20940 (clean): Use $(EXEEXT).
20941
ef57601b
PA
209422007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20943
20944 * target.h (target_ops): Rename send_signal to request_interrupt,
20945 and remove enum target_signal parameter.
20946 * linux-low.c (linux_request_interrupt): Rename from
20947 linux_send_signal, and always send SIGINT.
20948 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20949 and always send SIGINT.
20950 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20951 of send_signal.
20952 (input_interrupt): Likewise.
20953
820f2bda
PA
209542007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20955
20956 * server.c (get_features_xml): Check if target implemented
20957 arch_string.
20958 * win32-i386-low.c (win32_arch_string): New.
20959 (win32_target_ops): Add win32_arch_string as arch_string member.
20960
ab39bf24
UW
209612007-02-22 Markus Deuling <deuling@de.ibm.com>
20962
20963 * spu-low.c (spu_arch_string): New.
20964 (spu_target_ops): Add spu_arch_string.
20965
61ff6e04
DJ
209662007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20967
20968 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20969 * configure.ac: Do not check for terminal.h.
20970 * configure, config.in: Regenerated.
20971
fb1e4ffc
DJ
209722007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20973
20974 * Makefile.in (OBS): Add $(XML_BUILTIN).
20975 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20976 (clean): Update.
20977 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20978 (arm-with-iwmmxt.c): New.
20979 * config.in, configure: Regenerate.
20980 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20981 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20982 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20983 (arm*-*-linux*): Add iWMMXt and regset support.
20984 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20985 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20986 (arm_store_wmmxregset, target_regsets): New.
20987 * server.c (get_features_xml): Take annex argument. Check builtin
20988 XML documents.
20989 (handle_query): Handle multiple annexes.
20990
0f48aa01
DJ
209912007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20992
20993 * remote-utils.c [USE_WIN32API] (read, write): Define.
20994 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20995 write.
20996
23181151
DJ
209972007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20998
20999 * linux-i386-low.c (the_low_target): Set arch_string.
21000 * linux-x86-64-low.c (the_low_target): Likewise.
21001 * linux-low.c (linux_arch_string): New.
21002 (linux_target_ops): Add it.
21003 * linux-low.h (struct linux_target_ops): Add arch_string.
21004 * server.c (write_qxfer_response): Use const void * for DATA.
21005 (get_features_xml): New.
21006 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21007 * target.h (struct target_ops): Add arch_string method.
21008
9d606399
DJ
210092007-01-03 Denis Pilat <denis.pilat@st.com>
21010 Daniel Jacobowitz <dan@codesourcery.com>
21011
21012 * linux-low.c (linux_kill): Handle being called with no threads.
21013 * win32-i386-low.c (win32_kill): Likewise.
21014 (get_child_debug_event): Clear current_process_handle.
21015
210162006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21017 Daniel Jacobowitz <dan@codesourcery.com>
21018
21019 * remote-utils.c (remote_open): Check the type of specified
21020 serial port devices before opening them.
21021 * server.c (main): Kill the inferior if an error occurs during
21022 the first remote_open.
21023
a5e13d24
DJ
210242006-12-05 Markus Deuling <deuling@de.ibm.com>
21025
21026 * README: Update supported targets.
21027
186947f7
DJ
210282006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21029
21030 * Makefile.in (clean): Remove reg-mips64.c.
21031 (reg-mips64.c, reg-mips64.o): New rules.
21032 * configure.srv: Handle mips64. Include regset support for mips.
21033 * linux-mips-low.c (union mips_register): New.
21034 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21035 (mips_breakpoint, mips_breakpoint_at): Use int.
21036 (mips_collect_register, mips_supply_register)
21037 (mips_collect_register_32bit, mips_supply_register_32bit)
21038 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21039 (mips_store_fpregset, target_regsets): New.
21040 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21041
a13e2c95
UW
210422006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21043
21044 * configure.srv: Add target "spu*-*-*".
21045 * Makefile.in (clean): Remove reg-spu.c.
21046 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21047 * spu-low.c: New file.
21048
cb7283db
DJ
210492006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21050
21051 * configure.ac: Correct td_thr_tls_get_addr test.
21052 * configure: Regenerated.
21053
89be2091
DJ
210542006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21055
21056 * linux-low.c (linux_wait_for_event): Reformat. Use the
21057 pass_signals array.
21058 * remote-utils.c (decode_address_to_semicolon): New.
21059 * server.c (pass_signals, handle_general_set): New.
21060 (handle_query): Mention QPassSignals for qSupported.
21061 (main): Call handle_general_set.
21062 * server.h (pass_signals, decode_address_to_semicolon): New.
21063
000ef4f0
DJ
210642006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21065
21066 * server.c (handle_query): Correct error handling for read_auxv.
21067
b7149293
UW
210682005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21069
21070 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21071 and srv_linux_thread_db to yes.
21072 * linux-s390-low.c (s390_fill_gregset): New function.
21073 (target_regsets): Define data structure.
21074
dae5f5cf
DJ
210752006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21076
21077 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21078 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21079 * config.in, configure: Regenerated.
21080 * inferiors.c (gdb_id_to_thread): New function.
21081 (gdb_id_to_thread_id): Use it.
21082 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21083 * linux-low.h (struct process_info): Add th member.
21084 (thread_db_get_tls_address): New prototype.
21085 * remote-utils.c (decode_address): Make non-static.
21086 * server.c (handle_query): Handle qGetTLSAddr.
21087 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21088 * target.h (struct target_ops): Add get_tls_address.
21089 * thread-db.c (maybe_attach_thread): Save the thread handle.
21090 (thread_db_get_tls_address): New.
21091
32ca6d61
DJ
210922006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21093
21094 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21095 (linux_resume_one_process): Take a siginfo_t *. Update all
21096 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21097 (struct pending_signals): Add a siginfo_t.
21098 (linux_wait_for_process): Always set last_status.
21099 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21100 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21101 * linux-low.h (struct process_info): Add last_status.
21102
5ffff7c1
DJ
211032006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21104
21105 * remote-utils.c (try_rle): New function.
21106 (putpkt_binary): Use it.
21107
8695c747
DJ
211082006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21109
21110 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21111 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21112 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21113 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21114 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21115 point registers.
21116
290fadea
RS
211172006-08-08 Richard Sandiford <richard@codesourcery.com>
21118
21119 * server.c (terminal_fd): New variable.
21120 (old_foreground_pgrp): Likewise.
21121 (restore_old_foreground_pgrp): New function.
21122 (start_inferior): Record the terminal file descriptor in terminal_fd
21123 and its original foreground group in old_foreground_pgrp. Register
21124 restore_old_foreground_pgrp with atexit().
21125
9f2e1e63
DJ
211262006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21127
21128 * server.c (handle_query): Correct qPart to qXfer.
21129
b80864fb
DJ
211302006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21131
21132 * configure.ac: Check for more headers which are missing on
21133 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21134 * configure.srv: Add Cygwin and mingw32.
21135 * remote-utils.c: Don't include headers unconditionally which
21136 are missing on mingw32. Include <winsock.h> for mingw32.
21137 (remote_open): Adjust for mingw32 support. Flush
21138 standard error after writing to it.
21139 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21140 (unblock_async_io, enable_async_io, disable_async_io)
21141 (readchar, getpkt): Update for Winsock support.
21142 (prepare_resume_reply): Expect a protocol signal number.
21143 * server.c: Disable <sys/wait.h> on mingw32.
21144 (start_inferior): Adjust for mingw32 support. Flush
21145 standard error after writing to it.
21146 (attach_inferior): Likewise. Use protocol signal
21147 numbers.
21148 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21149 and names.
21150 * win32-i386-low.c: New file.
21151 * Makefile.in (XM_CLIBS): Set.
21152 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21153 (win32-i386-low.o): New dependency rule.
21154 * linux-low.c (linux_wait): Use target signal numbers.
21155 * target.h (struct target_ops): Doc fix.
21156 * server.h (target_signal_to_name): New prototype.
21157 * gdbreplay.c: Don't include headers unconditionally which
21158 are missing on mingw32. Include <winsock.h> for mingw32.
21159 (remote_close, remote_open): Adjust for Winsock support.
21160 * configure, config.in: Regenerated.
21161
0876f84a
DJ
211622006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21163
21164 * server.c (decode_xfer_read, write_qxfer_response): New.
21165 (handle_query): Take a packet length argument. Handle
21166 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21167 the qSupported response.
21168 (main): Update call to handle_query.
21169
01f9e8fa
DJ
211702006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21171
21172 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21173 (putpkt_binary): Renamed from putpkt and adjusted for binary
21174 data.
21175 (putpkt): New wrapper for putpkt_binary.
21176 (readchar): Don't mask off the high bit.
21177 (decode_X_packet): New function.
21178 * server.c (main): Call putpkt_binary if a handler sets the packet
21179 length. Save the length of the incoming packet. Handle 'X'.
21180 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21181
be2a5f71
DJ
211822006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21183
21184 * server.c (handle_query): Handle qSupported.
21185
ea025f5f
DJ
211862006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21187
21188 * remote-utils.c (all_symbols_looked_up): New variable.
21189 (look_up_one_symbol): Check it.
21190 * server.h (look_up_one_symbol): New declaration.
21191 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21192
9308fc88
DJ
211932006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21194
21195 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21196 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21197 (PTRACE_GET_THREAD_AREA): Define.
21198 (ps_get_thread_area): New function.
21199
52fb6437
NS
212002006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21201
21202 * configure.srv (m68k*-*-uclinux*): New target.
21203 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21204 (linux_resume_one_process): Remove extraneous cast.
21205 (linux_read_offsets): New.
21206 (linux_target_op): Add linux_read_offsets on mmuless systems.
21207 * server.c (handle_query): Add qOffsets logic.
21208 * target.h (struct target_ops): Add read_offsets.
21209
21b0f40c
DJ
212102006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21211
21212 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21213 (PTRACE_GET_THREAD_AREA): Define.
21214 (ps_get_thread_area): New function.
21215 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21216 (linux-x86-64-low.o): Update.
21217
0050a760
DJ
212182006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21219
21220 * configure.ac: Remove checks for prfpregset_t.
21221 * gdb_proc_service.h: New file.
21222 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21223 new "gdb_proc_service.h".
21224 * proc-service.c: Likewise.
21225 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21226 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21227 * Makefile.in (gdb_proc_service_h): Updated.
21228 * configure, config.in: Regenerated.
21229
b92a518e
DJ
212302006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21231
21232 * remote-utils.c (prepare_resume_reply): Move declaration
21233 of gdb_id_from_wait to the top of the block.
21234
545587ee
DJ
212352006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21236
21237 * linux-low.c (regsets_store_inferior_registers): Read the regset
21238 from the target before filling it.
21239
9db87ebd
DJ
212402006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21241
21242 * server.c (attach_inferior): Return SIGTRAP for a successful
21243 attach.
21244
dd24457d
DJ
212452006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21246
21247 * Makefile.in (OBS): Add version.o.
21248 (STAGESTUFF): Delete.
21249 (version.o): Add dependencies.
21250 (version.c): Replace rule.
21251 (clean): Remove version.c.
21252 * server.c (gdbserver_version): New.
21253 (gdbserver_usage): Use printf.
21254 (main): Handle --version and --help.
21255 * server.h (version, host_name): Add declarations.
21256
6f0f660e
EZ
212572005-12-23 Eli Zaretskii <eliz@gnu.org>
21258
889bf7c5
PA
21259 * linux-arm-low.c:
21260 * linux-arm-low.c:
21261 * inferiors.c:
21262 * i387-fp.h:
21263 * i387-fp.c:
21264 * gdbreplay.c:
21265 * regcache.c:
21266 * proc-service.c:
21267 * mem-break.h:
21268 * mem-break.c:
21269 * linux-x86-64-low.c:
21270 * linux-sh-low.c:
21271 * linux-s390-low.c:
21272 * linux-ppc64-low.c:
21273 * linux-ppc-low.c:
21274 * linux-mips-low.c:
21275 * linux-m68k-low.c:
21276 * linux-m32r-low.c:
21277 * linux-low.h:
21278 * linux-low.c:
21279 * linux-ia64-low.c:
21280 * linux-i386-low.c:
21281 * linux-crisv32-low.c:
21282 * thread-db.c:
21283 * terminal.h:
21284 * target.h:
21285 * target.c:
21286 * server.h:
21287 * server.c:
21288 * remote-utils.c:
21289 * regcache.h:
21290 * utils.c:
21291 * Makefile.in:
21292 * configure.ac:
6f0f660e
EZ
21293 * gdbserver.1: Add (C) after Copyright. Update the FSF
21294 address.
21295
9d1fb177
DJ
212962005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21297
21298 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21299 (arm_breakpoint_at): Recognize both breakpoints.
21300 (the_low_target): Use the correct breakpoint instruction.
21301
011a70c2
DJ
213022005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21303
21304 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21305 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21306 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21307 (the_low_target): Update.
21308
7fb85e41
AS
213092005-10-25 Andreas Schwab <schwab@suse.de>
21310
21311 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21312
21313 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21314 (ia64_num_regs): Reduce to 462.
21315
3db0444b
DJ
213162005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21317
21318 * acinclude.m4: Correct quoting.
21319 * aclocal.m4: Regenerated.
21320
21321 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21322 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21323 (thread_db_init): Call thread_db_err_str.
21324 * configure.ac: Check for TD_VERSION.
21325 * config.in, configure: Regenerated.
21326
bee0189a
DJ
213272005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21328
21329 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21330
e9d25b98
DJ
213312005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21332
21333 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21334 is not available. Define HAVE_PTRACE_GETREGS if it is.
21335 * config.in, configure: Regenerated.
21336 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21337 * linux-i386-low.c, linux-m68k-low.c: Update to use
21338 HAVE_PTRACE_GETREGS.
21339 * linux-low.c (regsets_fetch_inferior_registers)
21340 (regsets_store_inferior_registers): Only return 0 if we processed
21341 GENERAL_REGS.
21342 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21343 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21344
a06660f7
DJ
213452005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21346
21347 * inferiors.c (struct thread_info): Add gdb_id.
21348 (add_thread): Add gdb_id argument.
21349 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21350 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21351 calls to add_thread.
21352 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21353 * server.c (handle_query): Use thread_to_gdb_id.
21354 (handle_v_cont, main): Use gdb_id_to_thread_id.
21355 * server.h (add_thread): Update prototype.
21356 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21357 prototypes.
21358
5a1f5858
DJ
213592005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21360
21361 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21362 left-padded registers.
21363 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21364 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21365
e122f1f5
SE
213662005-07-01 Steve Ellcey <sje@cup.hp.com>
21367
21368 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21369 * configure: Regenerate.
21370 * config.in: Regenerate.
21371 * server.h (NEED_DECLARATION_STRERROR):
21372 Replace with !HAVE_DECL_STRERROR.
21373
d592fa2f
DJ
213742005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21375
21376 * linux-low.c (linux_wait, linux_send_signal): Don't test
21377 an unsigned long variable for > 0 if it could be MAX_ULONG.
21378 * server.c (myresume): Likewise.
21379 * target.c (set_desired_inferior): Likewise.
21380
ccbd4912
MK
213812005-06-13 Mark Kettenis <kettenis@gnu.org>
21382
21383 * configure.ac: Simplify and improve check for socklen_t.
21384 * configure, config.in: Regenerate.
21385
f450004a
DJ
213862005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21387
21388 * acconfig.h: Remove.
21389 * configure.ac: Add a test for socklen_t. Use three-argument
21390 AC_DEFINE throughout.
21391 * config.in: Regenerated using autoheader 2.59.
21392 * configure: Regenerated.
21393
21394 * gdbreplay.c (socklen_t): Provide a default.
21395 (remote_open): Use socklen_t.
21396 * remote-utils.c (socklen_t): Provide a default.
21397 (remote_open): Use socklen_t.
21398 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21399 unsigned char.
21400
21401 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21402 char for buffers.
21403 * linux-low.c (linux_read_memory, linux_write_memory)
21404 (linux_read_auxv): Likewise.
21405 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21406 (check_mem_write): Likewise.
21407 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21408 Likewise.
21409 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21410 (registers_from_string, register_data): Likewise.
21411 * server.c (handle_query, main): Likewise.
21412 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21413 (decode_M_packet): Likewise.
21414 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21415 * target.h (struct target_ops): Update read_memory, write_memory,
21416 and read_auxv.
21417 (read_inferior_memory, write_inferior_memory): Update.
21418 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21419 to unsigned char *.
21420 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21421 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21422 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21423 linux-s390-low.c, linux-sh-low.c: Update for changes in
21424 read_inferior_memory and the_low_target->breakpoint.
21425
eee84df1
DJ
214262005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21427
21428 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21429 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21430 * configure.srv: Add powerpc64-*-linux*.
21431 * linux-ppc64-low.c: New file.
21432
45b134e5
OF
214332005-05-23 Orjan Friberg <orjanf@axis.com>
21434
21435 * linux-cris-low.c: New file with support for CRIS.
21436 * linux-crisv32-low.c: Ditto for CRISv32.
21437 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21438 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21439 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21440 reg-crisv32.o, and reg-crisv32.c to make rules.
21441 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21442 recognized targets.
21443
48d93c75
UW
214442005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21445
21446 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21447 of sizeof (PTRACE_XFER_TYPE).
21448 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21449
e013ee27
OF
214502005-05-12 Orjan Friberg <orjanf@axis.com>
21451
889bf7c5 21452 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21453 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21454 pointers for hardware watchpoint support.
21455 * linux-low.h (struct linux_target_ops): Ditto.
21456 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21457 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21458 to linux_target_ops.
21459 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21460 reply packet.
21461 * server.c (main): Recognize 'Z' and 'z' packets.
21462
b0ded00b
UW
214632005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21464
21465 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21466 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21467 (the_low_target): Add new members.
21468
8643e2ad
DJ
214692005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21470
21471 * proc-service.c (ps_lgetregs): Search all_processes instead of
21472 all_threads.
21473
fc620387
DJ
214742005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21475
21476 * server.c (start_inferior): Change return type to int.
21477 (attach_inferior): Change sigptr to int *.
21478 (handle_v_cont, handle_v_requests): Change signal to int *.
21479 (main): Change signal to int.
21480
214812005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21482
21483 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21484 * configure.srv: Add m32r*-*-linux*.
21485 * linux-m32r-low.c: New file.
21486
e0e76420
DJ
214872005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21488
21489 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21490
a1928bad
DJ
214912005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21492
21493 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21494 Take unsigned long arguments for PIDs.
21495 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21496 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21497 (wait_for_sigstop, linux_resume_one_process)
21498 (regsets_fetch_inferior_registers, linux_send_signal)
21499 (linux_read_auxv): Likewise. Update the types of variables holding
21500 PIDs. Update format string specifiers.
21501 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21502 * remote-utils.c (prepare_resume_reply): Likewise.
21503 * server.c (cont_thread, general_thread, step_thread)
21504 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21505 unsigned long.
21506 (handle_query): Update format specifiers.
21507 (handle_v_cont, main): Use strtoul for thread IDs.
21508 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21509 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21510 (general_thread, step_thread, thread_from_wait)
21511 (old_thread_from_wait): Update.
21512 * target.h (struct thread_resume): Use unsigned long for THREAD.
21513 (struct target_ops): Use unsigned long for arguments to attach and
21514 thread_alive.
21515
dcdb98d2
DJ
215162005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21517
21518 * acinclude.m4: Include bfd/bfd.m4 directly.
21519 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21520 <agriffis@toolchain.org>.
21521 * aclocal.m4, configure: Regenerated.
21522
bec39cab
AC
215232005-01-07 Andrew Cagney <cagney@gnu.org>
21524
21525 * configure.ac: Rename configure.in, require autoconf 2.59.
21526 * configure: Re-generate.
21527
434c4c77
DJ
215282004-12-08 Daniel Jacobowitz <dan@debian.org>
21529
21530 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21531 LIBS when finished.
21532 * aclocal.m4: Regenerated.
21533 * configure: Regenerated.
21534
db1d3e1b
AS
215352004-11-21 Andreas Schwab <schwab@suse.de>
21536
21537 * linux-m68k-low.c (m68k_num_gregs): Define.
21538 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21539 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21540 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21541 (m68k_breakpoint_at): New. Add to the_low_target.
21542
21543 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21544 srv_linux_thread_db to yes.
21545
43360365
JB
215462004-10-20 Joel Brobecker <brobecker@gnat.com>
21547
21548 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21549 (ARCH_SET_FS): Likewise.
21550 (ARCH_GET_FS): Likewise.
21551 (ARCH_GET_GS): Likewise.
21552
fd500816
DJ
215532004-10-16 Daniel Jacobowitz <dan@debian.org>
21554
21555 * linux-i386-low.c (ps_get_thread_area): New.
21556 * linux-x86-64-low.c (ps_get_thread_area): New.
21557 * linux-low.c: Include <sys/syscall.h>.
21558 (linux_kill_one_process): Don't kill the first thread here.
21559 (linux_kill): Kill the first thread here.
21560 (kill_lwp): New function.
21561 (send_sigstop, linux_send_signal): Use it.
21562 * proc-service.c: Clean up #ifdefs.
21563 (fpregset_info): Delete.
21564 (ps_lgetregs): Update and enable implementation.
21565 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21566 implementations.
21567 * remote-utils.c (struct sym_cache, symbol_cache): New.
21568 (input_interrupt): Print a clearer message.
21569 (async_io_enabled): New variable.
21570 (enable_async_io, disable_async_io): Use it. Update comments.
21571 (look_up_one_symbol): Use the symbol cache.
21572 * thread-db.c (thread_db_look_up_symbols): New function.
21573 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21574
f6de3c42
DJ
215752004-10-16 Daniel Jacobowitz <dan@debian.org>
21576
21577 * configure.in: Test for -rdynamic.
21578 * configure: Regenerated.
21579 * Makefile (INTERNAL_LDFLAGS): New.
21580 (gdbserver, gdbreplay): Use it.
21581
2c0fc042
AC
215822004-09-02 Andrew Cagney <cagney@gnu.org>
21583
21584 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21585
075b3282
DJ
215862004-03-23 Daniel Jacobowitz <drow@mvista.com>
21587
21588 * linux-low.c (linux_wait): Clear all_processes list also.
21589
fa6a77dc
DJ
215902004-03-12 Daniel Jacobowitz <drow@mvista.com>
21591
21592 * linux-low.c: Include <errno.h>. Remove extern declaration of
21593 errno.
21594
6d782a97
DJ
215952004-03-12 Daniel Jacobowitz <drow@mvista.com>
21596
21597 * gdbreplay.c, server.h, utils.c: Update copyright years.
21598
3a7fb99b
DJ
215992004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21600
21601 * server.c (main): Print child status or termination signal from
21602 variable 'signal', not 'sig'.
21603
c3e735a6
DJ
216042004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21605
21606 * linux-low.c (linux_read_memory): Change return type to
21607 int. Check for and return error from ptrace().
21608 * target.c (read_inferior_memory): Change return type to int. Pass
21609 back return status from the_target->read_memory().
21610 * target.h (struct target_ops): Adapt *read_memory() prototype.
21611 Update comment.
21612 (read_inferior_memory): Adapt prototype.
21613 * server.c (main): Return an error packet if
21614 read_inferior_memory() returns an error.
21615
a59d1c82
DJ
216162004-03-04 Daniel Jacobowitz <drow@mvista.com>
21617
21618 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21619 Unify with other clean targets.
21620
dc3f8883
DJ
216212004-02-29 Daniel Jacobowitz <drow@mvista.com>
21622
21623 * server.c (handle_v_cont): Call set_desired_inferior.
21624
89a208da
DJ
216252004-02-29 Daniel Jacobowitz <drow@mvista.com>
21626
21627 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21628
62ea82f5
DJ
216292004-02-29 Daniel Jacobowitz <drow@mvista.com>
21630
21631 * linux-low.c (linux_wait): Unblock async I/O.
21632 (linux_resume): Block and enable async I/O.
21633 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21634 * server.h (block_async_io, unblock_async_io): Add prototypes.
21635
6910d122
DJ
216362004-02-29 Daniel Jacobowitz <drow@mvista.com>
21637
21638 * remote-utils.c (remote_open): Print a status notice after
21639 opening a TCP port.
21640 * server.c (attach_inferior): Print a status notice after
21641 attaching.
21642
216432004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21644
21645 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21646
c89dc5d4
DJ
216472004-02-26 Daniel Jacobowitz <drow@mvista.com>
21648
21649 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21650 error packet.
21651 * server.c, target.h: Update copyright years.
21652
4b8dad4a
RM
216532004-02-25 Roland McGrath <roland@redhat.com>
21654
21655 * target.h (struct target_ops): New member `read_auxv'.
21656 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21657 * linux-low.c (linux_read_auxv): New function.
21658 (linux_target_ops): Initialize `read_auxv' member to that.
21659
d7446758
JB
216602004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21661
21662 Committed by Jim Blandy <jimb@redhat.com>.
21663
21664 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21665 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21666 instead of GPR_SIZE to distiguish s390 and s390x targets.
21667
5544ad89
DJ
216682004-01-31 Daniel Jacobowitz <drow@mvista.com>
21669
21670 * linux-low.c: Update copyright year.
21671 (check_removed_breakpoint): Clear pending_is_breakpoint.
21672 (linux_set_resume_request, linux_queue_one_thread)
21673 (resume_status_pending_p): New functions.
21674 (linux_continue_one_thread): Use process->resume.
21675 (linux_resume): Only resume threads if there are no pending events.
21676 * linux-low.h (struct process_info): Add resume request
21677 pointer.
21678
2a68b70e
DJ
216792004-01-30 Daniel Jacobowitz <drow@mvista.com>
21680
21681 * regcache.c (new_register_cache): Clear the allocated register
21682 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21683
64386c31
DJ
216842003-10-13 Daniel Jacobowitz <drow@mvista.com>
21685
21686 * linux-low.c (linux_resume): Take a struct thread_resume *
21687 argument.
21688 (linux_wait): Update call.
21689 (resume_ptr): New static variable.
21690 (linux_continue_one_thread): Renamed from
21691 linux_continue_one_process. Use resume_ptr.
21692 (linux_resume): Use linux_continue_one_thread.
21693 * server.c (handle_v_cont, handle_v_requests): New functions.
21694 (myresume): New function.
21695 (main): Handle 'v' case.
21696 * target.h (struct thread_resume): New type.
21697 (struct target_ops): Change argument of "resume" to struct
21698 thread_resume *.
21699 (myresume): Delete macro.
21700
c938e9b0
L
217012003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21702
21703 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21704 (uninstall): Support DESTDIR.
21705
7f313d07
BC
21706Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21707
21708 * configure.srv: Add xscale*linux copy of arm*linux entry.
21709
3b2fc2ea
DJ
217102003-07-24 Daniel Jacobowitz <drow@mvista.com>
21711
21712 * linux-arm-low.c (arm_reinsert_addr): New function.
21713 (the_low_target): Add arm_reinsert_addr.
21714
1c0a559e
MK
217152003-07-08 Mark Kettenis <kettenis@gnu.org>
21716
21717 * mem-break.c: Remove whitespace at end of file.
21718
43d5792c
DJ
217192003-06-28 Daniel Jacobowitz <drow@mvista.com>
21720
21721 * configure.in: Check whether we need to prototype strerror.
21722 * server.h: Optionally prototype strerror.
21723 * gdbreplay.c (perror_with_name): Use strerror.
21724 * linux-low.c (linux_attach_lwp): Use strerror.
21725 * utils.c (perror_with_name): Use strerror.
21726 * config.in, configure: Regenerated.
21727
c8a86edf
DJ
217282003-06-28 Daniel Jacobowitz <drow@mvista.com>
21729
21730 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21731 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21732
73d37363
DJ
217332003-06-20 Daniel Jacobowitz <drow@mvista.com>
21734
21735 * Makefile.in (SFILES): Update.
21736 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21737 low-sun3.c: Remove files.
21738
6ad8ae5c
DJ
217392003-06-17 Daniel Jacobowitz <drow@mvista.com>
21740
21741 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21742 (linux_detach_one_process, linux_detach): New functions.
21743 (linux_target_ops): Add linux_detach.
21744 * server.c (main): Handle 'D' packet.
21745 * target.h (struct target_ops): Add "detach" member.
21746 (detach_inferior): Define.
21747
1581182a
MK
217482003-06-13 Mark Kettenis <kettenis@gnu.org>
21749
21750 From Kelley Cook <kelleycook@wideopenwest.com>:
21751 * configure.srv: Accept i[34567]86 variants.
21752
e5379b03
DJ
217532003-06-05 Daniel Jacobowitz <drow@mvista.com>
21754
21755 * linux-low.c (linux_wait_for_event): Correct comment typos.
21756 (linux_resume_one_process): Call check_removed_breakpoint.
21757 (linux_send_signal): New function.
21758 (linux_target_ops): Add linux_send_signal.
21759 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21760 of kill.
21761 * target.h (struct target_ops): Add send_signal.
21762
2ff29de4
JB
217632003-05-29 Jim Blandy <jimb@redhat.com>
21764
21765 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21766 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21767 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21768 away part of the register's value.
21769
254787d4
DJ
217702003-03-26 Daniel Jacobowitz <drow@mvista.com>
21771
21772 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21773 (linux_wait_for_event, linux_init_signals): Likewise.
21774
94e10508
DJ
217752003-03-17 Daniel Jacobowitz <drow@mvista.com>
21776
21777 * configure.in: Check for stdlib.h.
21778 * configure: Regenerated.
21779 * config.in: Regenerated.
21780
4c0711e0
DJ
217812003-01-04 Andreas Schwab <schwab@suse.de>
21782
21783 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21784
ef66e766
AC
217852003-01-02 Andrew Cagney <ac131313@redhat.com>
21786
21787 * Makefile.in: Remove obsolete code.
21788
a1358604
DJ
217892002-11-20 Daniel Jacobowitz <drow@mvista.com>
21790
21791 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21792 defined(PT_FPR0_HI).
21793
23ce3b1c
DJ
217942002-11-17 Stuart Hughes <seh@zee2.com>
21795
21796 * linux-arm-low.c (arm_num_regs): Increase.
21797 (arm_regmap): Include status register.
21798
217992002-11-17 Daniel Jacobowitz <drow@mvista.com>
21800
21801 * linux-low.c (register_addr): Remove incorrect -1 check.
21802
a9fa9f7d
DJ
218032002-08-29 Daniel Jacobowitz <drow@mvista.com>
21804
21805 * linux-low.c (linux_create_inferior): Call setpgid. Return
21806 the new PID.
21807 (unstopped_p, linux_signal_pid): Remove.
21808 (linux_target_ops): Remove linux_signal_pid.
21809 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21810 global instead of target method.
21811 * target.h (struct target_ops): Remove signal_pid. Update comment
21812 for create_inferior.
21813 * server.c (signal_pid): New variable.
21814 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21815 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21816 (attach_inferior): Set signal_pid.
21817
17574093
DJ
218182002-08-23 Daniel Jacobowitz <drow@mvista.com>
21819
21820 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21821
218222002-08-20 Jim Blandy <jimb@redhat.com>
21823
21824 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21825 default for this.
21826
218272002-08-01 Andrew Cagney <cagney@redhat.com>
21828
21829 * Makefile.in: Make chill references obsolete.
21830
218312002-07-24 Kevin Buettner <kevinb@redhat.com>
21832
21833 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21834 * configure: Regenerate.
21835 * config.in: Regenerate.
21836
218372002-07-09 David O'Brien <obrien@FreeBSD.org>
21838
21839 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21840 (perror_with_name, remote_close, remote_open, expect, play): Static.
21841
218422002-07-04 Michal Ludvig <mludvig@suse.cz>
21843
4b8dad4a 21844 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21845 byte offsets instead of an array of indexes.
21846 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21847
218482002-06-13 Daniel Jacobowitz <drow@mvista.com>
21849
21850 * regcache.c: Add comment.
21851
218522002-06-11 Daniel Jacobowitz <drow@mvista.com>
21853
21854 * thread-db.c: New file.
21855 * proc-service.c: New file.
21856 * acinclude.m4: New file.
21857 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21858 proc-service.o, and thread-db.o.
21859 (linux-low.o): Add USE_THREAD_DB.
21860 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21861 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21862 * aclocal.m4: Regenerated.
21863 * config.in: Regenerated.
21864 * configure: Regenerated.
21865 * configure.in: Check for proc_service.h, sys/procfs.h,
21866 thread_db.h, and linux/elf.h headrs.
21867 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21868 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21869 Check for -lthread_db and thread support.
21870 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21871 PowerPC, and SuperH.
21872 * i387-fp.c: Constify arguments.
21873 * i387-fp.h: Likewise.
21874 * inferiors.c: (struct thread_info): Renamed from
21875 `struct inferior_info'. Remove PID member. Use generic inferior
21876 list header. All uses updated.
21877 (inferiors, signal_pid): Removed.
21878 (all_threads): New variable.
21879 (get_thread): Define.
21880 (add_inferior_to_list): New function.
21881 (for_each_inferior): New function.
21882 (change_inferior_id): New function.
21883 (add_inferior): Removed.
21884 (remove_inferior): New function.
21885 (add_thread): New function.
21886 (free_one_thread): New function.
21887 (remove_thread): New function.
21888 (clear_inferiors): Use for_each_inferior and free_one_thread.
21889 (find_inferior): New function.
21890 (find_inferior_id): New function.
21891 (inferior_target_data): Update argument type.
21892 (set_inferior_target_data): Likewise.
21893 (inferior_regcache_data): Likewise.
21894 (set_inferior_regcache_data): Likewise.
21895 * linux-low.c (linux_bp_reinsert): Remove.
21896 (all_processes, stopping_threads, using_thrads)
21897 (struct pending_signals, debug_threads, pid_of): New.
21898 (inferior_pid): Replace with macro.
21899 (struct inferior_linux_data): Remove.
21900 (get_stop_pc, add_process): New functions.
21901 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21902 Use add_process and add_thread.
21903 (linux_attach_lwp): New function, based on old linux_attach. Use
21904 add_process and add_thread. Set stop_expected for new threads.
21905 (linux_attach): New function.
21906 (linux_kill_one_process): New function.
21907 (linux_kill): Kill all LWPs.
21908 (linux_thread_alive): Use find_inferior_id.
21909 (check_removed_breakpoints, status_pending_p): New functions.
21910 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21911 Update. Use WNOHANG. Wait for cloned processes also. Update process
21912 struct for the found process.
21913 (linux_wait_for_event): New function.
21914 (linux_wait): Use it. Support LWPs.
21915 (send_sigstop, wait_for_sigstop, stop_all_processes)
21916 (linux_resume_one_process, linux_continue_one_process): New functions.
21917 (linux_resume): Support LWPs.
21918 (REGISTER_RAW_SIZE): Remove.
21919 (fetch_register): Use register_size instead. Call supply_register.
21920 (usr_store_inferior_registers): Likewise. Call collect_register.
21921 Fix recursive case.
21922 (regsets_fetch_inferior_registers): Improve error message.
21923 (regsets_store_inferior_registers): Add debugging.
21924 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21925 (unstopped_p, linux_signal_pid): New functions.
21926 (linux_target_ops): Add linux_signal_pid.
21927 (linux_init_signals): New function.
21928 (initialize_low): Call it. Initialize using_threads.
21929 * regcache.c (inferior_regcache_data): Add valid
21930 flag.
21931 (get_regcache): Fetch registers lazily. Add fetch argument
21932 and update all callers.
21933 (regcache_invalidate_one, regcache_invalidate): New
21934 functions.
21935 (new_register_cache): Renamed from create_register_cache.
21936 Return the new regcache.
21937 (free_register_cache): Change argument to a void *.
21938 (registers_to_string, registers_from_string): Call get_regcache
21939 with fetch flag set.
21940 (register_data): Make static. Pass fetch flag to get_regcache.
21941 (supply_register): Call get_regcache with fetch flag clear.
21942 (collect_register): Call get_regcache with fetch flag set.
21943 (collect_register_as_string): New function.
21944 * regcache.h: Update.
21945 * remote-utils.c (putpkt): Flush after debug output and use
21946 stderr.
21947 Handle input interrupts while waiting for an ACK.
21948 (input_interrupt): Use signal_pid method.
21949 (getpkt): Flush after debug output and use stderr.
21950 (outreg): Use collect_register_as_string.
21951 (new_thread_notify, dead_thread_notify): New functions.
21952 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21953 and general_thread.
21954 (look_up_one_symbol): Flush after debug output.
21955 * server.c (step_thread, server_waiting): New variables.
21956 (start_inferior): Don't use signal_pid. Update call to mywait.
21957 (attach_inferior): Update call to mywait.
21958 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21959 (main): Don't fetch/store registers explicitly. Use
21960 set_desired_inferior. Support proposed ``Hs'' packet. Update
21961 calls to mywait.
21962 * server.h: Update.
21963 (struct inferior_list, struct_inferior_list_entry): New.
21964 * target.c (set_desired_inferior): New.
21965 (write_inferior_memory): Constify.
21966 (mywait): New function.
21967 * target.h: Update.
21968 (struct target_ops): New signal_pid method.
21969 (mywait): Removed macro, added prototype.
21970
21971 * linux-low.h (regset_func): Removed.
21972 (regset_fill_func, regset_store_func): New.
21973 (enum regset_type): New.
21974 (struct regset_info): Add type field. Use new operation types.
21975 (struct linux_target_ops): stop_pc renamed to get_pc.
21976 Add decr_pc_after_break and breakpoint_at.
21977 (get_process, get_thread_proess, get_process_thread)
21978 (strut process_info, all_processes, linux_attach_lwp)
21979 (thread_db_init): New.
21980
21981 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21982 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21983 (the_low_target): Add new members.
21984 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21985 (i386_store_fpxregset): Constify.
21986 (target_regsets): Add new kind identifier.
21987 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21988 (i386_set_pc): Add debugging.
21989 (i386_breakpoint_at): New function.
21990 (the_low_target): Add new members.
21991 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21992 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21993 (mips_breakpoint_at): New.
21994 (the_low_target): Add new members.
21995 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21996 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21997 (the_low_target): Add new members.
21998 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21999 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22000 (the_low_target): Add new members.
22001 * linux-x86-64-low.c (target_regsets): Add new kind
22002 identifier.
22003
220042002-05-15 Daniel Jacobowitz <drow@mvista.com>
22005
22006 From Martin Pool <mbp@samba.org>:
22007 * server.c (gdbserver_usage): New function.
22008 (main): Call it.
22009
220102002-05-14 Daniel Jacobowitz <drow@mvista.com>
22011
22012 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22013 stop_at -> stop_pc.
22014
220152002-05-04 Andrew Cagney <ac131313@redhat.com>
22016
22017 * Makefile.in: Remove obsolete code.
22018
220192002-04-24 Michal Ludvig <mludvig@suse.cz>
22020
22021 * linux-low.c (regsets_fetch_inferior_registers),
22022 (regsets_store_inferior_registers): Removed cast to int from
22023 ptrace() calls.
22024 * regcache.h: Added declaration of struct inferior_info.
22025
220262002-04-20 Daniel Jacobowitz <drow@mvista.com>
22027
22028 * inferiors.c (struct inferior_info): Add regcache_data.
22029 (add_inferior): Call create_register_cache.
22030 (clear_inferiors): Call free_register_cache.
22031 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22032 * regcache.c (struct inferior_regcache_data): New.
22033 (registers): Remove.
22034 (get_regcache): New function.
22035 (create_register_cache, free_register_cache): New functions.
22036 (set_register_cache): Don't initialize the register cache here.
22037 (registers_to_string, registers_from_string, register_data): Call
22038 get_regcache.
22039 * regcache.h: Add prototypes.
22040 * server.h: Likewise.
22041
220422002-04-20 Daniel Jacobowitz <drow@mvista.com>
22043
22044 * mem-break.c: New file.
22045 * mem-break.h: New file.
22046 * Makefile.in: Add mem-break.o rule; update server.h
22047 dependencies.
22048 * inferiors.c (struct inferior_info): Add target_data
22049 member.
22050 (clear_inferiors): Free target_data member if set.
22051 (inferior_target_data, set_inferior_target_data): New functions.
22052 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22053 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22054 * linux-low.c (linux_bp_reinsert): New variable.
22055 (struct inferior_linux_data): New.
22056 (linux_create_inferior): Use set_inferior_target_data.
22057 (linux_attach): Likewise. Call add_inferior.
22058 (linux_wait_for_one_inferior): New function.
22059 (linux_wait): Call it.
22060 (linux_write_memory): Add const.
22061 (initialize_low): Call set_breakpoint_data.
22062 * linux-low.h (struct linux_target_ops): Add breakpoint
22063 handling members.
22064 * server.c (attach_inferior): Remove extra add_inferior
22065 call.
22066 * server.h: Include mem-break.h. Update inferior.c
22067 prototypes.
22068 * target.c (read_inferior_memory)
22069 (write_inferior_memory): New functions.
22070 * target.h (read_inferior_memory)
22071 (write_inferior_memory): Change macros to prototypes.
22072 (struct target_ops): Update comments. Add const to write_memory
22073 definition.
22074
220752002-04-11 Daniel Jacobowitz <drow@mvista.com>
22076
22077 * linux-low.c (usr_store_inferior_registers): Support
22078 registers which are allowed to fail to store.
22079 * linux-low.h (linux_target_ops): Likewise.
22080 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22081 (ppc_cannot_store_register): FPSCR may not be storable.
22082
220832002-04-09 Daniel Jacobowitz <drow@mvista.com>
22084
22085 * server.h: Include <string.h> if HAVE_STRING_H.
22086 * ChangeLog: Correct paths in last ChangeLog entry.
22087
220882002-04-09 Daniel Jacobowitz <drow@mvista.com>
22089
22090 * linux-low.h: Remove obsolete prototypes.
22091 (struct linux_target_ops): New.
22092 (extern the_low_target): New.
22093 * linux-low.c (num_regs, regmap): Remove declarations.
22094 (register_addr): Use the_low_target explicitly.
22095 (fetch_register): Likewise.
22096 (usr_fetch_inferior_registers): Likewise.
22097 (usr_store_inferior_registers): Likewise.
22098 * linux-arm-low.c (num_regs): Remove.
22099 (arm_num_regs): Define.
22100 (arm_regmap): Renamed from regmap, made static.
22101 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22102 made static.
22103 (arm_cannot_store_register): Renamed from cannot_store_register,
22104 made static.
22105 (the_low_target): New.
22106 * linux-i386-low.c (num_regs): Remove.
22107 (i386_num_regs): Define.
22108 (i386_regmap): Renamed from regmap, made static.
22109 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22110 made static.
22111 (i386_cannot_store_register): Renamed from cannot_store_register,
22112 made static.
22113 (the_low_target): New.
22114 * linux-ia64-low.c (num_regs): Remove.
22115 (ia64_num_regs): Define.
22116 (ia64_regmap): Renamed from regmap, made static.
22117 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22118 made static.
22119 (ia64_cannot_store_register): Renamed from cannot_store_register,
22120 made static.
22121 (the_low_target): New.
22122 * linux-m68k-low.c (num_regs): Remove.
22123 (m68k_num_regs): Define.
22124 (m68k_regmap): Renamed from regmap, made static.
22125 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22126 made static.
22127 (m68k_cannot_store_register): Renamed from cannot_store_register,
22128 made static.
22129 (the_low_target): New.
22130 * linux-mips-low.c (num_regs): Remove.
22131 (mips_num_regs): Define.
22132 (mips_regmap): Renamed from regmap, made static.
22133 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22134 made static.
22135 (mips_cannot_store_register): Renamed from cannot_store_register,
22136 made static.
22137 (the_low_target): New.
22138 * linux-ppc-low.c (num_regs): Remove.
22139 (ppc_num_regs): Define.
22140 (ppc_regmap): Renamed from regmap, made static.
22141 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22142 made static.
22143 (ppc_cannot_store_register): Renamed from cannot_store_register,
22144 made static.
22145 (the_low_target): New.
22146 * linux-s390-low.c (num_regs): Remove.
22147 (s390_num_regs): Define.
22148 (s390_regmap): Renamed from regmap, made static.
22149 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22150 made static.
22151 (s390_cannot_store_register): Renamed from cannot_store_register,
22152 made static.
22153 (the_low_target): New.
22154 * linux-sh-low.c (num_regs): Remove.
22155 (sh_num_regs): Define.
22156 (sh_regmap): Renamed from regmap, made static.
22157 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22158 made static.
22159 (sh_cannot_store_register): Renamed from cannot_store_register,
22160 made static.
22161 (the_low_target): New.
22162 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22163 (the_low_target): New.
22164
221652002-04-09 Daniel Jacobowitz <drow@mvista.com>
22166
22167 * Makefile.in: Add stamp-h target.
22168 * configure.in: Create stamp-h.
22169 * configure: Regenerated.
22170
221712002-04-09 Daniel Jacobowitz <drow@mvista.com>
22172
22173 * inferiors.c: New file.
22174 * target.c: New file.
22175 * target.h: New file.
22176 * Makefile.in: Add target.o and inferiors.o. Update
22177 dependencies.
22178 * linux-low.c (inferior_pid): New static variable,
22179 moved from server.c.
22180 (linux_create_inferior): Renamed from create_inferior.
22181 Call add_inferior. Return 0 on success instead of a PID.
22182 (linux_attach): Renamed from myattach.
22183 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22184 (linux_thread_alive): Renamed from mythread_alive.
22185 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22186 child dies.
22187 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22188 (regsets_store_inferior_registers): Correct error message.
22189 Add missing ``return 0''.
22190 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22191 (linux_store_registers): Renamed from store_inferior_registers.
22192 (linux_read_memory): Renamed from read_inferior_memory.
22193 (linux_write_memory): Renamed from write_inferior_memory.
22194 (linux_target_ops): New structure.
22195 (initialize_low): Call set_target_ops ().
22196 * remote-utils.c (unhexify): New function.
22197 (hexify): New function.
22198 (input_interrupt): Send signals to ``signal_pid''.
22199 * server.c (inferior_pid): Remove.
22200 (start_inferior): Update create_inferior call.
22201 (attach_inferior): Call add_inferior.
22202 (handle_query): New function.
22203 (main): Call handle_query for `q' packets.
22204 * server.h: Include "target.h". Remove obsolete prototypes.
22205 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22206
222072002-04-09 Daniel Jacobowitz <drow@mvista.com>
22208
22209 * Makefile.in: Add WARN_CFLAGS. Update configury
22210 dependencies.
22211 * configure.in: Check for <string.h>
22212 * configure: Regenerate.
22213 * config.in: Regenerate.
22214 * gdbreplay.c: Include needed system headers.
22215 (remote_open): Remove strchr prototype.
22216 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22217 * regcache.c (supply_register): Change buf argument to const void *.
22218 (supply_register_by_name): Likewise.
22219 (collect_register): Change buf argument to void *.
22220 (collect_register_by_name): Likewise.
22221 * regcache.h: Add missing prototypes.
22222 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22223 * server.c (handle_query): New function.
22224 (attached): New static variable, moved out of main.
22225 (main): Quiet longjmp clobber warnings.
22226 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22227 * utils.c (error): Remove NORETURN.
22228 (fatal): Likewise.