]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add target_ops argument to to_get_tib_address
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bd7ae0f5
TT
12014-02-19 Tom Tromey <tromey@redhat.com>
2
3 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5 (target_get_tib_address): Add argument.
6 * target.c (update_current_target): Update.
7 * remote.c (remote_get_tib_address): Add 'self' argument.
8
d9e68a2c
TT
92014-02-19 Tom Tromey <tromey@redhat.com>
10
11 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12 (target_set_trace_notes): Add argument.
13 * target.c (update_current_target): Update.
14 * remote.c (remote_set_trace_notes): Add 'self' argument.
15
4da384be
TT
162014-02-19 Tom Tromey <tromey@redhat.com>
17
18 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
19 argument.
20 (target_set_trace_buffer_size): Add argument.
21 * target.c (update_current_target): Update.
22 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
23
736d5b1f
TT
242014-02-19 Tom Tromey <tromey@redhat.com>
25
26 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
27 argument.
28 (target_set_circular_trace_buffer): Add argument.
29 * target.c (update_current_target): Update.
30 * remote.c (remote_set_circular_trace_buffer): Add 'self'
31 argument.
32
37b25738
TT
332014-02-19 Tom Tromey <tromey@redhat.com>
34
35 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
36 argument.
37 (target_set_disconnected_tracing): Add argument.
38 * target.c (update_current_target): Update.
39 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
40
0e67620a
TT
412014-02-19 Tom Tromey <tromey@redhat.com>
42
43 * target.h (struct target_ops)
44 <to_get_min_fast_tracepoint_insn_len>: Add argument.
45 (target_get_min_fast_tracepoint_insn_len): Add argument.
46 * target.c (update_current_target): Update.
47 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
48 argument.
49
88ee6f45
TT
502014-02-19 Tom Tromey <tromey@redhat.com>
51
52 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
53 argument.
54 (target_get_raw_trace_data): Add argument.
55 * target.c (update_current_target): Update.
56 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
57
181e3713
TT
582014-02-19 Tom Tromey <tromey@redhat.com>
59
60 * target.h (struct target_ops) <to_upload_trace_state_variables>:
61 Add argument.
62 (target_upload_trace_state_variables): Add argument.
63 * target.c (update_current_target): Update.
64 * remote.c (remote_upload_trace_state_variables): Add 'self'
65 argument.
66 (remote_start_remote): Update.
67
ab6617cc
TT
682014-02-19 Tom Tromey <tromey@redhat.com>
69
70 * target.h (struct target_ops) <to_upload_tracepoints>: Add
71 argument.
72 (target_upload_tracepoints): Add argument.
73 * target.c (update_current_target): Update.
74 * remote.c (remote_upload_tracepoints): Add 'self' argument.
75 (remote_start_remote): Update.
76
dc3decaf
TT
772014-02-19 Tom Tromey <tromey@redhat.com>
78
79 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
80 (target_save_trace_data): Add argument.
81 * target.c (update_current_target): Update.
82 * remote.c (remote_save_trace_data): Add 'self' argument.
83
4011015b
TT
842014-02-19 Tom Tromey <tromey@redhat.com>
85
86 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
87 argument.
88 * target.h (struct target_ops)
89 <to_get_trace_state_variable_value>: Add argument.
90 (target_get_trace_state_variable_value): Add argument.
91 * target.c (update_current_target): Update.
92 * remote.c (remote_get_trace_state_variable_value): Add 'self'
93 argument.
94 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
95
bd4c6793
TT
962014-02-19 Tom Tromey <tromey@redhat.com>
97
98 * tracepoint.c (tfile_trace_find): Add 'self' argument.
99 * target.h (struct target_ops) <to_trace_find>: Add argument.
100 (target_trace_find): Add argument.
101 * target.c (update_current_target): Update.
102 * remote.c (remote_trace_find): Add 'self' argument.
103 * ctf.c (ctf_trace_find): Add 'self' argument.
104
74499f1b
TT
1052014-02-19 Tom Tromey <tromey@redhat.com>
106
107 * target.h (struct target_ops) <to_trace_stop>: Add argument.
108 (target_trace_stop): Add argument.
109 * target.c (update_current_target): Update.
110 * remote.c (remote_trace_stop): Add 'self' argument.
111
db90e85c
TT
1122014-02-19 Tom Tromey <tromey@redhat.com>
113
114 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
115 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
116 argument.
117 (target_get_tracepoint_status): Add argument.
118 * target.c (update_current_target): Update.
119 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
120
8bd200f1
TT
1212014-02-19 Tom Tromey <tromey@redhat.com>
122
123 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
124 * target.h (struct target_ops) <to_get_trace_status>: Add
125 argument.
126 (target_get_trace_status): Add argument.
127 * target.c (update_current_target): Update.
128 * remote.c (remote_get_trace_status): Add 'self' argument.
129 (remote_start_remote, remote_can_download_tracepoint): Update.
130 * ctf.c (ctf_get_trace_status): Add 'self' argument.
131
e2d1aae3
TT
1322014-02-19 Tom Tromey <tromey@redhat.com>
133
134 * target.h (struct target_ops) <to_trace_start>: Add argument.
135 (target_trace_start): Add argument.
136 * target.c (update_current_target): Update.
137 * remote.c (remote_trace_start): Add 'self' argument.
138
583f9a86
TT
1392014-02-19 Tom Tromey <tromey@redhat.com>
140
141 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
142 Add argument.
143 (target_trace_set_readonly_regions): Add argument.
144 * target.c (update_current_target): Update.
145 * remote.c (remote_trace_set_readonly_regions): Add 'self'
146 argument.
147
780b049c
TT
1482014-02-19 Tom Tromey <tromey@redhat.com>
149
150 * target.h (struct target_ops) <to_disable_tracepoint>: Add
151 argument.
152 (target_disable_tracepoint): Add argument.
153 * target.c (update_current_target): Update.
154 * remote.c (remote_disable_tracepoint): Add 'self' argument.
155
46670d57
TT
1562014-02-19 Tom Tromey <tromey@redhat.com>
157
158 * target.h (struct target_ops) <to_enable_tracepoint>: Add
159 argument.
160 (target_enable_tracepoint): Add argument.
161 * target.c (update_current_target): Update.
162 * remote.c (remote_enable_tracepoint): Add 'self' argument.
163
559d2b81
TT
1642014-02-19 Tom Tromey <tromey@redhat.com>
165
166 * target.h (struct target_ops) <to_download_trace_state_variable>:
167 Add argument.
168 (target_download_trace_state_variable): Add argument.
169 * target.c (update_current_target): Update.
170 * remote.c (remote_download_trace_state_variable): Add 'self'
171 argument.
172
a52a8357
TT
1732014-02-19 Tom Tromey <tromey@redhat.com>
174
175 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
176 argument.
177 (target_can_download_tracepoint): Add argument.
178 * target.c (update_current_target): Update.
179 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
180
548f7808
TT
1812014-02-19 Tom Tromey <tromey@redhat.com>
182
183 * target.h (struct target_ops) <to_download_tracepoint>: Add
184 argument.
185 (target_download_tracepoint): Add argument.
186 * target.c (update_current_target): Update.
187 * remote.c (remote_download_tracepoint): Add 'self' argument.
188
ecae04e1
TT
1892014-02-19 Tom Tromey <tromey@redhat.com>
190
191 * target.h (struct target_ops) <to_trace_init>: Add argument.
192 (target_trace_init): Add argument.
193 * target.c (update_current_target): Update.
194 * remote.c (remote_trace_init): Add 'self' argument.
195
fab5aa7c
TT
1962014-02-19 Tom Tromey <tromey@redhat.com>
197
198 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
199 * target.c (target_fileio_readlink): Add argument.
200 * remote.c (remote_hostio_readlink): Add 'self' argument.
201 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
202
dbbca37d
TT
2032014-02-19 Tom Tromey <tromey@redhat.com>
204
205 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
206 * target.c (target_fileio_unlink): Add argument.
207 * remote.c (remote_hostio_unlink): Add 'self' argument.
208 (remote_file_delete): Update.
209 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
210
df39ea25
TT
2112014-02-19 Tom Tromey <tromey@redhat.com>
212
213 * target.h (struct target_ops) <to_fileio_close>: Add argument.
214 * target.c (target_fileio_close): Add argument.
215 * remote.c (remote_hostio_close): Add 'self' argument.
216 (remote_hostio_close_cleanup): Update.
217 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
218 Update.
219 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
220
a3be983c
TT
2212014-02-19 Tom Tromey <tromey@redhat.com>
222
223 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
224 * target.c (target_fileio_pread): Add argument.
225 * remote.c (remote_hostio_pread): Add 'self' argument.
226 (remote_bfd_iovec_pread, remote_file_get): Update.
227 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
228
0d866f62
TT
2292014-02-19 Tom Tromey <tromey@redhat.com>
230
231 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
232 * target.c (target_fileio_pwrite): Add argument.
233 * remote.c (remote_hostio_pwrite): Add 'self' argument.
234 (remote_file_put): Update.
235 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
236
cd897586
TT
2372014-02-19 Tom Tromey <tromey@redhat.com>
238
239 * target.h (struct target_ops) <to_fileio_open>: Add argument.
240 * target.c (target_fileio_open): Add argument.
241 * remote.c (remote_hostio_open): Add 'self' argument.
242 (remote_bfd_iovec_open): Add 'self' argument.
243 (remote_file_put): Add 'self' argument.
244 (remote_file_get): Add 'self' argument.
245 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
246
78eff0ec
TT
2472014-02-19 Tom Tromey <tromey@redhat.com>
248
249 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
250 Add argument.
251 (target_can_run_breakpoint_commands): Add argument.
252 * target.c (update_current_target): Update.
253 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
254 argument.
255 (remote_insert_breakpoint): Add 'self' argument.
256 (remote_insert_hw_breakpoint): Add 'self' argument.
257 (remote_can_run_breakpoint_commands): Add 'self' argument.
258
efcc2da7
TT
2592014-02-19 Tom Tromey <tromey@redhat.com>
260
261 * target.h (struct target_ops)
262 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
263 (target_supports_evaluation_of_breakpoint_conditions): Add
264 argument.
265 * target.c (update_current_target): Update.
266 * remote.c (remote_supports_cond_breakpoints): Add 'self'
267 argument.
268 (remote_insert_breakpoint): Add 'self' argument.
269 (remote_insert_hw_breakpoint): Add 'self' argument.
270 (remote_supports_cond_breakpoints): Add 'self' argument.
271
6de37a3a
TT
2722014-02-19 Tom Tromey <tromey@redhat.com>
273
274 * target.h (struct target_ops) <to_supports_string_tracing>: Add
275 argument.
276 (target_supports_string_tracing): Add argument.
277 * target.c (update_current_target): Update.
278 * remote.c (remote_supports_string_tracing): Add 'self' argument.
279
2bfc0540
TT
2802014-02-19 Tom Tromey <tromey@redhat.com>
281
282 * target.h (struct target_ops)
283 <to_supports_disable_randomization>: Add argument.
284 * target.c (find_default_supports_disable_randomization): Add
285 argument.
286 (target_supports_disable_randomization): Add argument.
287 (find_default_supports_disable_randomization): Add 'self'
288 argument.
289 * remote.c (extended_remote_supports_disable_randomization): Add
290 'self' argument.
291 (remote_supports_disable_randomization): Add 'self' argument.
292 (extended_remote_create_inferior): Update.
293 * linux-nat.c (linux_nat_supports_disable_randomization): Add
294 'self' argument.
295
7d178d6a
TT
2962014-02-19 Tom Tromey <tromey@redhat.com>
297
298 * target.h (struct target_ops)
299 <to_supports_enable_disable_tracepoint>: Add argument.
300 (target_supports_enable_disable_tracepoint): Add argument.
301 * target.c (update_current_target): Update.
302 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
303 argument.
304
86ce2668
TT
3052014-02-19 Tom Tromey <tromey@redhat.com>
306
307 * target.h (struct target_ops) <to_supports_multi_process>: Add
308 argument.
309 (target_supports_multi_process): Add argument.
310 * target.c (update_current_target): Update.
311 * remote.c (remote_supports_multi_process): Add 'self' argument.
312 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
313 argument.
314 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
315 argument.
316
4c612759
TT
3172014-02-19 Tom Tromey <tromey@redhat.com>
318
319 * target.h (struct target_ops) <to_execution_direction>: Add
320 argument.
321 (target_execution_direction): Add argument.
322 * target.c (default_execution_direction): Add 'self' argument.
323 * record-full.c (record_full_execution_direction): Add 'self'
324 argument.
325
19db3e69
TT
3262014-02-19 Tom Tromey <tromey@redhat.com>
327
328 * target.h (struct target_ops) <to_can_execute_reverse>: Add
329 argument.
330 (target_can_execute_reverse): Add argument.
331 * remote.c (remote_can_execute_reverse): Add 'self' argument.
332 * record-full.c (record_full_can_execute_reverse): Add 'self'
333 argument.
334 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
335 argument.
336
1e6b91a4
TT
3372014-02-19 Tom Tromey <tromey@redhat.com>
338
339 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
340 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
341 argument.
342 (target_get_ada_task_ptid): Add argument.
343 * target.c (update_current_target): Update.
344 (default_get_ada_task_ptid): Add 'self' argument.
345 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
346 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
347 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
348 argument.
349 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
350 argument.
351 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
352 argument.
353 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
354 argument.
355 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
356 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
357 argument.
358
3c80fb48
TT
3592014-02-19 Tom Tromey <tromey@redhat.com>
360
361 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
362 (target_goto_bookmark): Add argument.
363 * target.c (dummy_goto_bookmark): Add 'self' argument.
364 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
365
dd0e2830
TT
3662014-02-19 Tom Tromey <tromey@redhat.com>
367
368 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
369 (target_get_bookmark): Add argument.
370 * target.c (dummy_get_bookmark): Add 'self' argument.
371 * record-full.c (record_full_get_bookmark): Add 'self' argument.
372
fc6691b2
TT
3732014-02-19 Tom Tromey <tromey@redhat.com>
374
375 * target.h (struct target_ops) <to_make_corefile_notes>: Add
376 argument.
377 (target_make_corefile_notes): Add argument.
378 * target.c (dummy_make_corefile_notes): Add 'self' argument.
379 * procfs.c (procfs_make_note_section): Add 'self' argument.
380 (procfs_make_note_section): Add 'self' argument.
381 (procfs_make_note_section): Add 'self' argument.
382 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
383 argument.
384 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
385 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
386 * exec.c (exec_make_note_section): Add 'self' argument.
387 (exec_make_note_section): Add 'self' argument.
388
2e73927c
TT
3892014-02-19 Tom Tromey <tromey@redhat.com>
390
391 * target.h (struct target_ops) <to_find_memory_regions>: Add
392 argument.
393 (target_find_memory_regions): Add argument.
394 * target.c (dummy_find_memory_regions): Add 'self' argument.
395 * procfs.c (proc_find_memory_regions): Add 'self' argument.
396 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
397 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
398 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
399 * exec. (exec_do_find_memory_regions): New global.
400 (exec_set_find_memory_regions): Rewrite.
401 (exec_find_memory_regions): New function.
402 (init_exec_ops): Use exec_find_memory_regions.
403
2a9a2795
TT
4042014-02-19 Tom Tromey <tromey@redhat.com>
405
406 * target.h (struct target_ops) <to_supports_non_stop>: Add
407 argument.
408 * target.c (find_default_supports_non_stop): Add argument.
409 (target_supports_non_stop): Add argument.
410 (find_default_supports_non_stop): Add 'self' argument.
411 * remote.c (remote_supports_non_stop): Add 'self' argument.
412 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
413
4ab76ea3
TT
4142014-02-19 Tom Tromey <tromey@redhat.com>
415
416 * target.h (struct target_ops) <to_log_command>: Add argument.
417 (target_log_command): Add argument.
418 * serial.h (serial_log_command): Add 'self' argument.
419 * serial.c (serial_log_command): Add 'self' argument.
420
8dd27370
TT
4212014-02-19 Tom Tromey <tromey@redhat.com>
422
423 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
424 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
425 argument.
426 (target_pid_to_exec_file): Add argument.
427 * target.c (debug_to_pid_to_exec_file): Add argument.
428 (update_current_target): Update.
429 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
430 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
431 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
432 (linux_handle_extended_wait): Update.
433 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
434 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
435 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
436 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
437
1aac633b
TT
4382014-02-19 Tom Tromey <tromey@redhat.com>
439
440 * target.h (struct target_ops) <to_rcmd>: Add argument.
441 (target_rcmd): Add argument.
442 * target.c (debug_to_rcmd): Add argument.
443 (update_current_target, do_monitor_command): Update.
444 * remote.c (remote_rcmd): Add 'self' argument.
445 * monitor.c (monitor_rcmd): Add 'self' argument.
446
1eab8a48
TT
4472014-02-19 Tom Tromey <tromey@redhat.com>
448
449 * windows-nat.c (windows_stop): Add 'self' argument.
450 * target.h (struct target_ops) <to_stop>: Add argument.
451 * target.c (target_stop): Add argument.
452 (debug_to_stop): Add argument.
453 (update_current_target): Update.
454 * remote.c (remote_stop): Add 'self' argument.
455 * remote-sim.c (gdbsim_stop): Add 'self' argument.
456 (gdbsim_cntrl_c): Update.
457 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
458 * procfs.c (procfs_stop): Add 'self' argument.
459 * nto-procfs.c (procfs_stop): Add 'self' argument.
460 * monitor.c (monitor_stop): Add 'self' argument.
461 (monitor_open): Update.
462 * linux-nat.c (linux_nat_stop): Add argument.
463 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
464 * gnu-nat.c (gnu_stop): Add 'self' argument.
465 * darwin-nat.c (darwin_stop): Add 'self' argument.
466
503a628d
TT
4672014-02-19 Tom Tromey <tromey@redhat.com>
468
469 * target.h (struct target_ops) <to_thread_name>: Add argument.
470 * target.c (target_thread_name): Add argument.
471 (update_current_target): Update.
472 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
473
c15906d8
TT
4742014-02-19 Tom Tromey <tromey@redhat.com>
475
476 * target.h (struct target_ops) <to_extra_thread_info>: Add
477 argument.
478 (target_extra_thread_info): Add argument.
479 * target.c (update_current_target): Update.
480 * remote.c (remote_threads_extra_info): Add 'self' argument.
481 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
482 argument.
483 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
484 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
485 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
486 argument.
487 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
488 argument.
489 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
490 argument.
491 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
492 argument.
493
daf5e9b6
TT
4942014-02-19 Tom Tromey <tromey@redhat.com>
495
496 * target.h (struct target_ops) <to_program_signals>: Add argument.
497 * target.c (target_program_signals): Add argument.
498 * remote.c (remote_program_signals): Add 'self' argument.
499
94bedb42
TT
5002014-02-19 Tom Tromey <tromey@redhat.com>
501
502 * target.h (struct target_ops) <to_pass_signals>: Add argument.
503 * target.c (target_pass_signals): Add argument.
504 * remote.c (remote_pass_signals): Add 'self' argument.
505 (remote_start_remote): Update.
506 * procfs.c (procfs_pass_signals): Add 'self' argument.
507 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
508 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
509 (linux_nat_create_inferior, linux_nat_attach): Update.
510
da82bd6b
TT
5112014-02-19 Tom Tromey <tromey@redhat.com>
512
513 * windows-nat.c (windows_can_run): Add 'self' argument.
514 * target.h (struct target_ops) <to_can_run>: Add argument.
515 (target_can_run): Add argument.
516 * target.c (debug_to_can_run): Add argument.
517 (update_current_target): Update.
518 * nto-procfs.c (procfs_can_run): Add 'self' argument.
519 * inf-child.c (inf_child_can_run): Add 'self' argument.
520 * go32-nat.c (go32_can_run): Add 'self' argument.
521
d796e1d6
TT
5222014-02-19 Tom Tromey <tromey@redhat.com>
523
524 * target.h (struct target_ops) <to_has_exited>: Add argument.
525 (target_has_exited): Add argument.
526 * target.c (debug_to_has_exited): Add argument.
527 (update_current_target): Update.
528
ff214e67
TT
5292014-02-19 Tom Tromey <tromey@redhat.com>
530
531 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
532 argument.
533 (target_set_syscall_catchpoint): Add argument.
534 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
535 argument.
536 * target.c (update_current_target): Update.
537
758e29d2
TT
5382014-02-19 Tom Tromey <tromey@redhat.com>
539
540 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
541 argument.
542 (target_remove_exec_catchpoint): Add argument.
543 * target.c (debug_to_remove_exec_catchpoint): Add argument.
544 (update_current_target): Update.
545 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
546 argument.
547
ba025e51
TT
5482014-02-19 Tom Tromey <tromey@redhat.com>
549
550 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
551 argument.
552 (target_insert_exec_catchpoint): Add argument.
553 * target.c (debug_to_insert_exec_catchpoint): Add argument.
554 (update_current_target): Update.
555 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
556 argument.
557
e98cf0cd
TT
5582014-02-19 Tom Tromey <tromey@redhat.com>
559
560 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
561 argument.
562 (target_remove_vfork_catchpoint): Add argument.
563 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
564 (update_current_target): Update.
565 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
566 argument.
567
3ecc7da0
TT
5682014-02-19 Tom Tromey <tromey@redhat.com>
569
570 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
571 argument.
572 (target_insert_vfork_catchpoint): Add argument.
573 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
574 (update_current_target): Update.
575 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
576 argument.
577
973fc227
TT
5782014-02-19 Tom Tromey <tromey@redhat.com>
579
580 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
581 argument.
582 (target_remove_fork_catchpoint): Add argument.
583 * target.c (debug_to_remove_fork_catchpoint): Add argument.
584 (update_current_target): Update.
585 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
586 argument.
587
a863b201
TT
5882014-02-19 Tom Tromey <tromey@redhat.com>
589
590 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
591 argument.
592 (target_insert_fork_catchpoint): Add argument.
593 * target.c (debug_to_insert_fork_catchpoint): Add argument.
594 (update_current_target): Update.
595 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
596 argument.
597
2e97a79e
TT
5982014-02-19 Tom Tromey <tromey@redhat.com>
599
600 * target.h (struct target_ops) <to_post_startup_inferior>: Add
601 argument.
602 (target_post_startup_inferior): Add argument.
603 * target.c (debug_to_post_startup_inferior): Add argument.
604 (update_current_target): Update.
605 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
606 argument.
607 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
608 argument.
609 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
610 argument.
611 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
612 argument.
613 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
614 'self' argument.
615 (super_post_startup_inferior): Likewise.
616 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
617 'self' argument.
618 (super_post_startup_inferior): Likewise.
619 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
620 Add 'self' argument.
621 (super_post_startup_inferior): Likewise.
622
71a9f134
TT
6232014-02-19 Tom Tromey <tromey@redhat.com>
624
625 * target.h (struct target_ops) <to_load>: Add argument.
626 * target.c (target_load): Add argument.
627 (debug_to_load): Add argument.
628 (update_current_target): Update.
629 * remote.c (remote_load): Add 'self' argument.
630 * remote-sim.c (gdbsim_load): Add 'self' argument.
631 * remote-mips.c (mips_load): Add 'self' argument.
632 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
633 * monitor.c (monitor_load): Add 'self' argument.
634 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
635
0a4f40a2
TT
6362014-02-19 Tom Tromey <tromey@redhat.com>
637
638 * target.h (struct target_ops) <to_terminal_info>: Add argument.
639 (target_terminal_info): Add argument.
640 * target.c (debug_to_terminal_info): Add argument.
641 (default_terminal_info): Likewise.
642 * inflow.c (child_terminal_info): Add 'self' argument.
643 * inferior.h (child_terminal_info): Add 'self' argument.
644 * go32-nat.c (go32_terminal_info): Add 'self' argument.
645
ae3bd431
TT
6462014-02-19 Tom Tromey <tromey@redhat.com>
647
648 * target.h (struct target_ops) <to_terminal_save_ours>: Add
649 argument.
650 (target_terminal_save_ours): Add argument.
651 * target.c (debug_to_terminal_save_ours): Add argument.
652 (update_current_target): Update.
653 * inflow.c (terminal_save_ours): Add 'self' argument.
654 * inferior.h (terminal_save_ours): Add 'self' argument.
655
e3594fd1
TT
6562014-02-19 Tom Tromey <tromey@redhat.com>
657
658 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
659 (target_terminal_ours): Add argument.
660 * target.c (debug_to_terminal_ours): Add argument.
661 (update_current_target): Update.
662 * remote.c (remote_terminal_ours): Add 'self' argument.
663 (remote_close): Update.
664 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
665 * inflow.c (terminal_ours): Add 'self' argument.
666 * inferior.h (terminal_ours): Add 'self' argument.
667 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
668
2e1e1a19
TT
6692014-02-19 Pedro Alves <palves@redhat.com>
670 Tom Tromey <tromey@redhat.com>
671
672 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
673 argument.
674 (target_terminal_ours_for_output): Add argument.
675 * target.c (debug_to_terminal_ours_for_output): Add argument.
676 (update_current_target): Update.
677 * inflow.c (terminal_ours_for_output): Add 'self' argument.
678 * inferior.h (terminal_ours_for_output): Add 'self' argument.
679 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
680
d2f640d4
TT
6812014-02-19 Tom Tromey <tromey@redhat.com>
682
683 * target.h (struct target_ops) <to_terminal_inferior>: Add
684 argument.
685 * target.c (target_terminal_inferior): Add argument.
686 (update_current_target): Update.
687 * remote.c (remote_terminal_inferior): Add 'self' argument.
688 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
689 * inflow.c (terminal_inferior): Add 'self' argument.
690 * inferior.h (terminal_inferior): Add 'self' argument.
691 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
692 (go32_terminal_inferior): Add 'self' argument.
693
c42bf286
TT
6942014-02-19 Tom Tromey <tromey@redhat.com>
695
696 * target.h (struct target_ops) <to_terminal_init>: Add argument.
697 (target_terminal_init): Add argument.
698 * target.c (debug_to_terminal_init): Add argument.
699 (update_current_target): Update.
700 * inflow.c (terminal_init_inferior): Add 'self' argument.
701 * inferior.h (terminal_init_inferior): Add 'self' argument.
702 * go32-nat.c (go32_terminal_init): Add 'self' argument.
703 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
704
c3a5ff89
TT
7052014-02-19 Tom Tromey <tromey@redhat.com>
706
707 * target.h (struct target_ops)
708 <to_can_accel_watchpoint_condition>: Add argument.
709 (target_can_accel_watchpoint_condition): Add argument.
710 * target.c (debug_to_can_accel_watchpoint_condition): Add
711 argument.
712 (update_current_target): Update.
713 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
714 'self' argument.
715
31568a15
TT
7162014-02-19 Tom Tromey <tromey@redhat.com>
717
718 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
719 Add argument.
720 (target_region_ok_for_hw_watchpoint): Add argument.
721 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
722 (default_region_ok_for_hw_watchpoint): Add argument.
723 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
724 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
725 argument.
726 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
727 argument.
728 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
729 argument.
730 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
731 'self' argument.
732 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
733 'self' argument.
734 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
735 'self' argument.
736 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
737 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
738 'self' argument.
739 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
740 Add 'self' argument.
741
7bb99c53
TT
7422014-02-19 Tom Tromey <tromey@redhat.com>
743
744 * target.h (struct target_ops) <to_insert_watchpoint>: Add
745 argument.
746 (target_insert_watchpoint): Add argument.
747 * target.c (debug_to_insert_watchpoint): Add argument.
748 (update_current_target): Update.
749 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
750 * remote.c (remote_insert_watchpoint): Add 'self' argument.
751 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
752 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
753 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
754 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
755 argument.
756 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
757 (procfs_insert_hw_watchpoint): Add 'self' argument.
758 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
759 argument.
760 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
761 argument.
762 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
763 argument.
764 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
765 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
766 argument.
767 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
768 'self' argument.
769
11b5219a
TT
7702014-02-19 Tom Tromey <tromey@redhat.com>
771
772 * target.h (struct target_ops) <to_remove_watchpoint>: Add
773 argument.
774 (target_remove_watchpoint): Add argument.
775 * target.c (debug_to_remove_watchpoint): Add argument.
776 (update_current_target): Update.
777 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
778 * remote.c (remote_remove_watchpoint): Add 'self' argument.
779 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
780 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
781 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
782 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
783 argument.
784 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
785 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
786 argument.
787 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
788 argument.
789 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
790 argument.
791 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
792 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
793 argument.
794 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
795 'self' argument.
796
a64dc96c
TT
7972014-02-19 Tom Tromey <tromey@redhat.com>
798
799 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
800 argument.
801 (target_remove_hw_breakpoint): Add argument.
802 * target.c (debug_to_remove_hw_breakpoint): Add argument.
803 (update_current_target): Update.
804 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
805 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
806 argument.
807 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
808 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
809 argument.
810 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
811 'self' argument.
812
23a26771
TT
8132014-02-19 Tom Tromey <tromey@redhat.com>
814
815 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
816 argument.
817 (target_insert_hw_breakpoint): Add argument.
818 * target.c (debug_to_insert_hw_breakpoint): Add argument.
819 (update_current_target): Update.
820 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
821 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
822 argument.
823 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
824 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
825 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
826 argument.
827 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
828 'self' argument.
829
5461485a
TT
8302014-02-19 Tom Tromey <tromey@redhat.com>
831
832 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
833 argument.
834 (target_can_use_hardware_watchpoint): Add argument.
835 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
836 (update_current_target): Update.
837 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
838 argument.
839 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
840 argument.
841 * remote.c (remote_check_watch_resources): Add 'self' argument.
842 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
843 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
844 argument.
845 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
846 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
847 argument.
848 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
849 argument.
850 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
851 argument.
852 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
853 argument.
854 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
855 argument.
856 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
857 argument.
858 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
859 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
860 argument.
861 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
862 'self' argument.
863
f045800c
TT
8642014-02-19 Tom Tromey <tromey@redhat.com>
865
866 * target.h (struct target_ops) <to_post_attach>: Add argument.
867 (target_post_attach): Add argument.
868 * target.c (debug_to_post_attach): Add argument.
869 (update_current_target): Update.
870 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
871 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
872 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
873 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
874 * inf-child.c (inf_child_post_attach): Add 'self' argument.
875
de90e03d
TT
8762014-02-19 Tom Tromey <tromey@redhat.com>
877
878 * windows-nat.c (windows_close): Add 'self' argument.
879 * tracepoint.c (tfile_close): Add 'self' argument.
880 * target.h (struct target_ops) <to_close>: Add argument.
881 * target.c (target_close): Add argument.
882 (update_current_target): Update.
883 * remote.c (remote_close): Add 'self' argument.
884 * remote-sim.c (gdbsim_close): Add 'self' argument.
885 * remote-mips.c (mips_close): Add 'self' argument.
886 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
887 * record-full.c (record_full_close): Add 'self' argument.
888 * record-btrace.c (record_btrace_close): Add 'self' argument.
889 * monitor.h (monitor_close): Add 'self' argument.
890 * monitor.c (monitor_close): Add 'self' argument.
891 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
892 * linux-nat.c (linux_nat_close): Add argument.
893 * go32-nat.c (go32_close): Add 'self' argument.
894 * exec.c (exec_close_1): Add 'self' argument.
895 * ctf.c (ctf_close): Add 'self' argument.
896 * corelow.c (core_close): Add 'self' argument.
897 (core_close_cleanup): Update.
898 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
899 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
900
9dd130a0
TT
9012014-02-19 Tom Tromey <tromey@redhat.com>
902
903 * remote.c (remote_load): New function.
904 (init_remote_ops): Use it.
905
46917d26
TT
9062014-02-19 Tom Tromey <tromey@redhat.com>
907
908 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
909 argument.
910 * common/linux-btrace.h (linux_supports_btrace): Update.
911 * remote.c (remote_supports_btrace): Add "self" argument.
912 * target-delegates.c: Rebuild.
913 * target.c (target_supports_btrace): Remove.
914 * target.h (struct target_ops) <to_supports_btrace>: Add
915 target_ops argument.
916 (target_supports_btrace): New define.
917
6b84065d
TT
9182014-02-19 Tom Tromey <tromey@redhat.com>
919
920 * record-full.c (record_full_beneath_to_resume_ops)
921 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
922 (record_full_beneath_to_wait)
923 (record_full_beneath_to_store_registers_ops)
924 (record_full_beneath_to_store_registers)
925 (record_full_beneath_to_xfer_partial_ops)
926 (record_full_beneath_to_xfer_partial)
927 (record_full_beneath_to_insert_breakpoint_ops)
928 (record_full_beneath_to_insert_breakpoint)
929 (record_full_beneath_to_remove_breakpoint_ops)
930 (record_full_beneath_to_remove_breakpoint)
931 (record_full_beneath_to_stopped_by_watchpoint)
932 (record_full_beneath_to_stopped_data_address)
933 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
934 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
935 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
936 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
937 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
938 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
939 (tmp_to_stopped_data_address, tmp_to_async): Remove.
940 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
941 (record_full_resume, record_full_wait_1)
942 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
943 (record_full_store_registers, record_full_xfer_partial)
944 (record_full_insert_breakpoint, record_full_remove_breakpoint)
945 (record_full_async, record_full_core_xfer_partial): Use target
946 delegation.
947 * target-delegates.c: Rebuild.
948 * target.c (current_xfer_partial): Remove.
949 (update_current_target): Do not INHERIT or de_fault
950 to_insert_breakpoint, to_remove_breakpoint,
951 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
952 to_is_async_p, to_async. Do not set to_xfer_partial field.
953 (default_xfer_partial): Simplify.
954 (current_xfer_partial): Remove.
955 (target_wait, target_resume): Simplify.
956 (find_default_can_async_p, find_default_is_async_p): Update.
957 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
958 to_xfer_partial, to_stopped_by_watchpoint,
959 to_stopped_data_address.
960 (target_store_registers): Simplify.
961 (forward_target_remove_breakpoint)
962 (forward_target_insert_breakpoint): Remove.
963 (target_remove_breakpoint, target_insert_breakpoint)
964 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
965 * target.h (struct target_ops) <to_resume, to_wait,
966 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
967 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
968 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
969 markup.
970 (forward_target_remove_breakpoint)
971 (forward_target_insert_breakpoint): Remove.
972 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
973 directly.
974 (record_btrace_insert_breakpoint): Delegate directly.
975
1101cb7b
TT
9762014-02-19 Tom Tromey <tromey@redhat.com>
977
978 PR build/7701:
979 * target-delegates.c: New file.
980 * target.c: Include target-delegates.c.
981 (init_dummy_target): Call install_dummy_methods.
982 (complete_target_initialization): Call install_delegators.
983 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
984 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
985 * make-target-delegates: New file.
986
8b06beed
TT
9872014-02-19 Tom Tromey <tromey@redhat.com>
988
989 * record.c (find_record_target): Use find_target_at.
990 * target.c (find_target_at): New function.
991 * target.h (find_target_at): Declare.
992
6a109b6b
TT
9932014-02-19 Tom Tromey <tromey@redhat.com>
994
995 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
996 Add 'ops' argument.
997 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
998 'ops' argument.
999 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1000 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1001 'ops' argument.
1002 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1003 argument.
1004 * linux-nat.c (save_sigtrap): Update.
1005 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1006 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1007 (linux_nat_close): Update.
1008 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1009 argument.
1010 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1011 argument.
1012 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1013 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1014 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1015 (tmp_to_async): Add 'ops' argument.
1016 (record_full_stopped_by_watchpoint, record_full_async)
1017 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1018 argument.
1019 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1020 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1021 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1022 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1023 (remote_is_async_p, remote_async): Add 'ops' argument.
1024 (remote_stopped_data_address): Update.
1025 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1026 * target.c (update_current_target)
1027 (find_default_can_async_p, find_default_is_async_p): Update.
1028 (init_dummy_target): Update.
1029 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1030 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1031 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1032 (target_can_async_p, target_is_async_p, target_async)
1033 (target_stopped_by_watchpoint): Update.
1034
e095146b
YQ
10352014-02-19 Yao Qi <yao@codesourcery.com>
1036
1037 PR gdb/16220
1038 * gdbarch.sh: Remove startup_gdbarch.
1039 * gdbarch.c: Regenerated.
1040 * gdbarch.h: Likewise.
1041
bc3c6b36
KB
10422014-02-17 Kevin Buettner <kevinb@redhat.com>
1043
1044 * rl78-tdep.c (rl78_g10_register_name): New function.
1045 (rl78_return_value): Add g10 support.
1046 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1047 g10.
1048
98dc0167 10492014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
1050
1051 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1052 (SUBDIR_GUILE_SRCS): Ditto.
1053 (scm-gsmob.o): Ditto.
1054
842c05cd
YQ
10552014-02-17 Yao Qi <yao@codesourcery.com>
1056
1057 * gnu-nat.c (ILL_RPC): Declare defined function.
1058
25c0bd04
YQ
10592014-02-17 Yao Qi <yao@codesourcery.com>
1060
1061 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1062 mach_msg_type_number_t.
1063 (gnu_write_inferior): Likewise.
1064
a9a758e3
YQ
10652014-02-17 Yao Qi <yao@codesourcery.com>
1066
1067 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1068 in format string.
1069 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1070 (inf_validate_procs, inf_signal): Likewise.
1071 (S_exception_raise_request): Likewise.
1072 (do_mach_notify_dead_name): Likewise.
1073 (steal_exc_port): Likewise.
1074 (gnu_read_inferior): Change 'copy_count''s type to
1075 mach_msg_type_number_t.
1076 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1077 format string.
1078
bae8023e
TS
10792014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1080
c82f56d9
TS
1081 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1082 flag. Adjust all users; in particular...
1083 (gnu_wait): ..., don't decrement its value in here...
1084 (gnu_create_inferior): ..., and instead set the flag in here,
1085 around the startup_inferior call, and call that one with
1086 START_INFERIOR_TRAPS_EXPECTED.
1087
3398af6a
TS
1088 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1089 (ILL_RPC): ... new macro.
1090 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1091 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1092 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1093 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1094 functions with ILL_RPC macro.
1095 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1096 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1097 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1098 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1099 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1100 (S_proc_getlogin_reply, S_proc_getsid_reply)
1101 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1102 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1103 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1104 (S_proc_getnports_reply, S_proc_is_important_reply)
1105 (S_proc_get_code_reply): New stub functions, generated with
1106 ILL_RPC macro.
1107
d47642c9
TS
1108 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1109 collected the type check structures.
1110
bae8023e
TS
1111 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1112
8a55ffb0
DE
11132014-02-14 Doug Evans <dje@google.com>
1114
1115 * target.c (target_write_partial): Fix result type.
1116
c2853f3d
JM
11172014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1118
1119 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1120 the proper offsets to access fpregset_t.
1121
ac61d2db
SA
11222014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1123
1124 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1125 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1126 * h8300-tdep.c (setmachinelist): Remove global.
1127 * hppa-tdep.c (hppa_sigtramp): Remove global.
1128 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1129 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1130 * ravenscar-thread.c (update_target_observer): Remove global.
1131 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1132
9d2d0b8b
TT
11332014-02-12 Tom Tromey <tromey@redhat.com>
1134
1135 * common/rsp-low.c: Update comments.
1136 * common/rsp-low.h: Update comments.
1137
a7191e8b
TT
11382014-02-12 Tom Tromey <tromey@redhat.com>
1139
1140 * common/rsp-low.c (convert_ascii_to_int): Remove.
1141 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1142
ff0e980e
TT
11432014-02-12 Tom Tromey <tromey@redhat.com>
1144
1145 * common/rsp-low.h (unhexify): Don't declare.
1146 * common/rsp-low.c (unhexify): Remove.
1147
e9371aff
TT
11482014-02-12 Tom Tromey <tromey@redhat.com>
1149
1150 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1151 * common/rsp-low.c (convert_int_to_ascii): Remove.
1152
971dc0b8
TT
11532014-02-12 Tom Tromey <tromey@redhat.com>
1154
1155 * common/rsp-low.h (hexify): Don't declare.
1156 * common/rsp-low.c (hexify): Remove.
1157
0a822afb
TT
11582014-02-12 Tom Tromey <tromey@redhat.com>
1159
1160 * common/rsp-low.c (hexify): Never take strlen of argument.
1161
9f1b45b0
TT
11622014-02-12 Tom Tromey <tromey@redhat.com>
1163
1164 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1165 * remote.c (extended_remote_run, remote_rcmd)
1166 (remote_download_trace_state_variable, remote_save_trace_data)
1167 (remote_set_trace_notes): Update.
1168 * tracepoint.c (encode_source_string, tfile_write_status)
1169 (tfile_write_uploaded_tsv): Update.
1170
9c3d6531
TT
11712014-02-12 Tom Tromey <tromey@redhat.com>
1172
1173 * tracepoint.c: Include rsp-low.h.
1174 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1175 * remote.c: Include rsp-low.h.
1176 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1177 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1178 (remote_unescape_input): Move to common/rsp-low.c.
1179 * common/rsp-low.h: New file.
1180 * common/rsp-low.c: New file.
1181 * Makefile.in (SFILES): Add common/rsp-low.c.
1182 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1183 (COMMON_OBS): Add rsp-low.o.
1184 (rsp-low.o): New target.
1185
01fd3ea5
TT
11862014-02-12 Tom Tromey <tromey@redhat.com>
1187
1188 * utils.h: Include print-utils.h.
1189 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1190 (int_string, core_addr_to_string, core_addr_to_string_nz)
1191 (hex_string, hex_string_custom): Don't declare.
1192 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1193 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1194 (hex_string_custom, int_string, core_addr_to_string)
1195 (core_addr_to_string_nz, host_address_to_string): Move to
1196 common/print-utils.c.
1197 * common/print-utils.h: New file.
1198 * common/print-utils.c: New file
1199 * Makefile.in (SFILES): Add common/print-utils.c.
1200 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1201 (COMMON_OBS): Add print-utils.o.
1202 (print-utils.o): New target.
1203
9fb50108
TT
12042014-02-12 Tom Tromey <tromey@redhat.com>
1205
1206 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1207
0548b5db
MK
12082014-02-12 Mark Kettenis <kettenis@gnu.org>
1209
1210 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1211
493443a4
MK
12122014-02-12 Mark Kettenis <kettenis@gnu.org>
1213
1214 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1215 if a PT_IO ptrace request returns sucessfully but indicates that 0
1216 bytes were transferred.
1217
706d0883
PA
12182014-02-12 Pedro Alves <palves@redhat.com>
1219 Kevin Buettner <kevinb@redhat.com>
1220
1221 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1222 TYPE_INSTANCE_FLAG_CODE_SPACE.
1223
5caa2f0b
PA
12242014-02-12 Pedro Alves <palves@redhat.com>
1225
1226 * h8300-tdep.c (pseudo_from_raw_register)
1227 (raw_from_pseudo_register): New functions.
1228 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1229 them.
1230
76fd5f74
PA
12312014-02-12 Pedro Alves <palves@redhat.com>
1232
1233 * h8300-tdep.c (h8300_register_sim_regno): New function.
1234 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1235 gdbarch_register_sim_regno hook.
1236
8f008406
SA
12372014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1238
1239 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1240
195abc10
SA
12412014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1242
1243 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1244
93ffa5b9
MK
12452014-02-12 Mark Kettenis <kettenis@gnu.org>
1246
1247 * obsd-tdep.h (obsd_init_abi): New prototype.
1248 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1249 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1250 (obsd_init_abi): New functions.
1251 * i386obsd-tdep.c: Include "obsd-tdep.h".
1252 (i386obsd_init_abi): Call obsd_init_abi.
1253 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1254 (amd64obsd_init_abi): Call obsd_init_abi.
1255 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1256 obsd-tdep.c to gdb_target_obs.
1257
49caec94
JM
12582014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1259
1260 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1261 double float arguments to 16-byte in the argument slots.
1262
e1402065
DE
12632014-02-11 Doug Evans <xdje42@gmail.com>
1264
1265 * configure.ac: Don't crash if pkg-config is not found and guile
1266 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1267 in guile checks.
1268 * configure: Regenerate.
1269
edcc890f
YQ
12702014-02-11 Yao Qi <yao@codesourcery.com>
1271
1272 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1273 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1274 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1275 * gnu-nat.c (gnu_xfer_memory): Likewise.
1276 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1277 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1278 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1279 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1280
9b409511
YQ
12812014-02-11 Yao Qi <yao@codesourcery.com>
1282
1283 * target.h (enum target_xfer_error): Rename to ...
1284 (enum target_xfer_status): ... it. New. All users updated.
1285 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1286 New.
1287 (TARGET_XFER_STATUS_ERROR_P): New macro.
1288 (target_xfer_error_to_string): Remove declaration.
1289 (target_xfer_status_to_string): Declare.
1290 (target_xfer_partial_ftype): Adjust it.
1291 (struct target_ops) <to_xfer_partial>: Return
1292 target_xfer_status. Add argument xfered_len. Update
1293 comments.
1294 * target.c (target_xfer_error_to_string): Rename to ...
1295 (target_xfer_status_to_string): ... it. New. All callers
1296 updated.
1297 (target_read_live_memory): Likewise. Call target_xfer_partial
1298 instead of target_read.
1299 (memory_xfer_live_readonly_partial): Return
1300 target_xfer_status. Add argument xfered_len.
1301 (raw_memory_xfer_partial): Likewise.
1302 (memory_xfer_partial_1): Likewise.
1303 (memory_xfer_partial): Likewise.
1304 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1305 properly. Update debug message.
1306 (default_xfer_partial, current_xfer_partial): Likewise.
1307 (target_write_partial): Likewise.
1308 (target_read_partial): Likewise. All callers updated.
1309 (read_whatever_is_readable): Likewise.
1310 (target_write_with_progress): Likewise.
1311 (target_read_alloc_1): Likewise.
1312
1313 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1314 * auxv.c (procfs_xfer_auxv): Likewise.
1315 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1316 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1317 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1318 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1319 * corefile.c (read_memory): Adjust.
1320 * corelow.c (core_xfer_partial): Likewise.
1321 * ctf.c (ctf_xfer_partial): Likewise.
1322 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1323 updated.
1324 (darwin_xfer_partial): Likewise.
1325 * exec.c (section_table_xfer_memory_partial): Likewise. All
1326 callers updated.
1327 (exec_xfer_partial): Likewise.
1328 * exec.h (section_table_xfer_memory_partial): Update
1329 declaration.
1330 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1331 negative.
1332 (gnu_xfer_partial): Likewise.
1333 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1334 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1335 (ia64_hpux_xfer_solib_got): Likewise.
1336 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1337 type of 'partial_len' to ULONGEST.
1338 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1339 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1340 (linux_nat_xfer_partial): Likewise.
1341 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1342 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1343 * monitor.c (monitor_xfer_memory): Likewise.
1344 (monitor_xfer_partial): Likewise.
1345 * procfs.c (procfs_xfer_partial): Likewise.
1346 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1347 * record-full.c (record_full_xfer_partial): Likewise.
1348 (record_full_core_xfer_partial): Likewise.
1349 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1350 (gdbsim_xfer_partial): Likewise.
1351 * remote.c (remote_write_bytes_aux): Likewise. All callers
1352 updated.
1353 (remote_write_bytes, remote_read_bytes): Likewise. All
1354 callers updated.
1355 (remote_flash_erase): Likewise. All callers updated.
1356 (remote_write_qxfer): Likewise. All callers updated.
1357 (remote_read_qxfer): Likewise. All callers updated.
1358 (remote_xfer_partial): Likewise.
1359 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1360 (rs6000_xfer_shared_libraries): Likewise.
1361 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1362 (sol_thread_xfer_partial): Likewise.
1363 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1364 (sparc_xfer_partial): Likewise.
1365 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1366 updated.
1367 (spu_xfer_partial): Likewise.
1368 * spu-multiarch.c (spu_xfer_partial): Likewise.
1369 * tracepoint.c (tfile_xfer_partial): Likewise.
1370 * windows-nat.c (windows_xfer_memory): Likewise.
1371 (windows_xfer_shared_libraries): Likewise.
1372 (windows_xfer_partial): Likewise.
1373 * valprint.c: Replace 'target_xfer_error' with
1374 'target_xfer_status' in comments.
1375
a8e63083
JB
13762014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1377
1378 Checked in by Joel Brobecker <brobecker@adacore.com>.
1379 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1380
e86b67d3
JB
13812014-02-11 Joel Brobecker <brobecker@adacore.com>
1382
1383 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1384 function parameters.
1385
4b7d1f7f
WN
13862014-02-10 Will Newton <will.newton@linaro.org>
1387
1388 * elfread.c (elf_rel_plt_read): Look for a .got section if
1389 looking up .got.plt fails.
1390 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1391 on address passed to elf_gnu_ifunc_record_cache.
1392 (elf_gnu_ifunc_resolve_addr): Likewise.
1393 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1394
961842b2
JM
13952014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1396
1397 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1398 (X_RETTURN): New macro.
1399 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1400
1401 * sparc64-tdep.c (sparc64_init_abi): Hook
1402 sparc_in_function_epilogue_p.
1403
3f03e7b1
GB
14042014-02-10 Gary Benson <gbenson@redhat.com>
1405
1406 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1407 Rename name_matcher to symbol_matcher.
1408
96f861ef
GB
14092014-02-10 Gary Benson <gbenson@redhat.com>
1410
1411 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1412 Use expand_symtabs_file_matcher_ftype and
1413 expand_symtabs_symbol_matcher_ftype.
1414
ee01b665
JB
14152014-02-10 Joel Brobecker <brobecker@adacore.com>
1416
1417 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1418 (struct ada_symbol_cache): New.
1419 (ada_free_symbol_cache): Forward declare.
1420 (struct ada_pspace_data): New.
1421 (ada_pspace_data_handle): New static global.
1422 (get_ada_pspace_data, ada_pspace_data_cleanup)
1423 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1424 (cache_space, cache): Delete, now folded inside struct
1425 ada_pspace_data.
1426 (ada_get_symbol_cache): New function.
1427 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1428 implementation.
1429 (_initialize_ada_language): Remove initialization of cache_space.
1430 Move call to observer_attach_inferior_exit up, grouping it
1431 with the other observer registrations inside this function.
1432 Rename command to be more general. Add call to
1433 register_program_space_data_with_cleanup.
1434
143adbbf
JB
14352014-02-10 Joel Brobecker <brobecker@adacore.com>
1436
1437 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1438 ada_new_objfile_observer.
1439 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1440 (_initialize_tasks): Update uses of ada_new_objfile_observer
1441 and ada_tasks_normal_stop_observer.
1442
aa4fb036
JB
14432014-02-10 Joel Brobecker <brobecker@adacore.com>
1444
1445 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1446 returned by the 'Length attribute to integer.
1447
9dee8cc6
JB
14482014-02-10 Joel Brobecker <brobecker@adacore.com>
1449
1450 * ada-lang.c (_initialize_ada_language): Initialize
1451 cache_space obstack.
1452
3d9434b5
JB
14532014-02-10 Joel Brobecker <brobecker@adacore.com>
1454
1455 * ada-lang.c (HASH_SIZE): New macro.
1456 (struct cache_entry): New type.
1457 (cache_space, cache): New static globals.
1458 (ada_clear_symbol_cache, find_entry): New functions.
1459 (lookup_cached_symbol, cache_symbol): Implement.
1460 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1461 (_initialize_ada_language): Attach ada_new_objfile_observer
1462 and ada_free_objfile_observer.
1463
f0c5f9b2
JB
14642014-02-10 Joel Brobecker <brobecker@adacore.com>
1465
1466 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1467 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1468 struct block * parameter.
1469 (ada_lookup_symbol_list_worker): Constify local variable "block".
1470 Remove cast which is no longer necessary.
1471
ed3ef339
DE
14722014-02-10 Doug Evans <xdje42@gmail.com>
1473
1474 Add Guile as an extension language.
1475 * NEWS: Mention Guile scripting.
1476 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1477 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1478 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1479 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1480 (CLIBS): Add GUILE_LIBS.
1481 (install-guile): New rule.
1482 (guile.o): New rule.
1483 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1484 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1485 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1486 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1487 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1488 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1489 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1490 * configure.ac: New option --with-guile.
1491 * configure: Regenerate.
1492 * config.in: Regenerate.
1493 * auto-load.c: Remove #include "python/python.h". Add #include
1494 "gdb/section-scripts.h".
1495 (source_section_scripts): Handle Guile scripts.
1496 (_initialize_auto_load): Add name of Guile objfile script to
1497 scripts-directory help text.
1498 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1499 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1500 (struct breakpoint): New member scm_bp_object.
1501 * defs.h (enum command_control_type): New value guile_control.
1502 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1503 "extension.h".
1504 (show_user): Update comment.
1505 (_initialize_cli_cmds): Update help text for "show user". Update help
1506 text for max-user-call-depth.
1507 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1508 "extension.h".
1509 (multi_line_command_p): Add guile_control.
1510 (print_command_lines): Handle guile_control.
1511 (execute_control_command, recurse_read_control_structure): Ditto.
1512 (process_next_line): Recognize "guile" commands.
1513 * disasm.c (gdb_disassemble_info): Make non-static.
1514 * disasm.h: #include "dis-asm.h".
1515 (struct gdbarch): Add forward decl.
1516 (gdb_disassemble_info): Declare.
1517 * extension.c: #include "guile/guile.h".
1518 (extension_languages): Add guile.
1519 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1520 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1521 * gdbtypes.c (get_unsigned_type_max): New function.
1522 (get_signed_type_minmax): New function.
1523 * gdbtypes.h (get_unsigned_type_max): Declare.
1524 (get_signed_type_minmax): Declare.
1525 * guile/README: New file.
1526 * guile/guile-internal.h: New file.
1527 * guile/guile.c: New file.
1528 * guile/guile.h: New file.
1529 * guile/scm-arch.c: New file.
1530 * guile/scm-auto-load.c: New file.
1531 * guile/scm-block.c: New file.
1532 * guile/scm-breakpoint.c: New file.
1533 * guile/scm-disasm.c: New file.
1534 * guile/scm-exception.c: New file.
1535 * guile/scm-frame.c: New file.
1536 * guile/scm-gsmob.c: New file.
1537 * guile/scm-iterator.c: New file.
1538 * guile/scm-lazy-string.c: New file.
1539 * guile/scm-math.c: New file.
1540 * guile/scm-objfile.c: New file.
1541 * guile/scm-ports.c: New file.
1542 * guile/scm-pretty-print.c: New file.
1543 * guile/scm-safe-call.c: New file.
1544 * guile/scm-string.c: New file.
1545 * guile/scm-symbol.c: New file.
1546 * guile/scm-symtab.c: New file.
1547 * guile/scm-type.c: New file.
1548 * guile/scm-utils.c: New file.
1549 * guile/scm-value.c: New file.
1550 * guile/lib/gdb.scm: New file.
1551 * guile/lib/gdb/boot.scm: New file.
1552 * guile/lib/gdb/experimental.scm: New file.
1553 * guile/lib/gdb/init.scm: New file.
1554 * guile/lib/gdb/iterator.scm: New file.
1555 * guile/lib/gdb/printing.scm: New file.
1556 * guile/lib/gdb/types.scm: New file.
1557 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1558 (VPATH): Add $(GUILE_SRCDIR).
1559 (GUILE_DIR): New variable.
1560 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1561 (all): Add stamp-guile dependency.
1562 (stamp-guile): New rule.
1563 (clean-guile, install-guile, uninstall-guile): New rules.
1564 (install-only): Add install-guile dependency.
1565 (uninstall): Add uninstall-guile dependency.
1566 (clean): Add clean-guile dependency.
1567
ac020ec5
DE
15682014-02-09 Doug Evans <xdje42@gmail.com>
1569
1570 Revert this patch (which I approved, mea culpa).
1571
1572 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1573
1574 * Makefile.in (all-lib): Remove.
1575 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1576
2a081c59
JK
15772014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1578
1579 Fix Python stack corruption.
1580 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1581 gdb_py_longest.
1582
0a6bd22d
MK
15832014-02-08 Mark Kettenis <kettenis@gnu.org>
1584
1585 * Makefile.in (all-lib): Remove.
1586 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1587
1a860409
DE
15882014-02-07 Doug Evans <dje@google.com>
1589
1590 * extension-priv.h (extension_language_script_ops): Add comment.
1591 (extension_language_ops): Add comment.
caf5a491 1592 (active_ext_lang_state): Fix typo in comment.
1a860409 1593
d137e6dc
PA
15942014-02-07 Pedro Alves <palves@redhat.com>
1595
1596 * infrun.c (handle_signal_stop) <signal arrives while stepping
1597 over a breakpoint>: Switch back to the stepping thread.
1598
ce6d0892
YQ
15992014-02-07 Yao Qi <yao@codesourcery.com>
1600
1601 * target.c (target_xfer_partial): Return zero if LEN is zero.
1602
2ed4b548
YQ
16032014-02-07 Yao Qi <yao@codesourcery.com>
1604
1605 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1606 (ld_so_xfer_auxv): Likewise.
1607 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1608 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1609 * corelow.c (core_xfer_partial): Likewise.
1610 * ctf.c (ctf_xfer_partial): Likewise.
1611 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1612 (darwin_xfer_partial): Likewise.
1613 * exec.c (exec_xfer_partial): Likewise.
1614 * gnu-nat.c (gnu_xfer_partial): Likewise.
1615 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1616 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1617 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1618 * linux-nat.c (linux_xfer_siginfo): Likewise.
1619 (linux_proc_xfer_spu): Likewise.
1620 * procfs.c (procfs_xfer_partial): Likewise.
1621 * record-full.c (record_full_xfer_partial): Likewise.
1622 (record_full_core_xfer_partial): Likewise.
1623 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1624 * remote.c (remote_write_qxfer): Likewise.
1625 (remote_write_qxfer, remote_read_qxfer): Likewise.
1626 (remote_xfer_partial): Likewise.
1627 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1628 (rs6000_xfer_shared_libraries): Likewise.
1629 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1630 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1631 (spu_xfer_partial): Likewise.
1632 * target.c (memory_xfer_partial_1): Likewise.
1633 * tracepoint.c (tfile_xfer_partial): Likewise.
1634 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1635 (windows_xfer_partial): Likewise.
1636
c09f20e4
YQ
16372014-02-07 Yao Qi <yao@codesourcery.com>
1638
1639 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1640 comments.
1641 (core_xfer_shared_libraries_aix): Likewise.
1642 * gdbarch.c, gdbarch.h: Regenerated.
1643 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1644 ULONGEST. Change 'len_avail' type to ULONGEST.
1645 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1646 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1647 declaration.
1648 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1649
8635b3bf
YQ
16502014-02-07 Yao Qi <yao@codesourcery.com>
1651
1652 * corefile.c (memory_error): Get 'exception' from ERR and pass
1653 'exception' to throw_error.
1654
6dddc817
DE
16552014-02-06 Doug Evans <xdje42@gmail.com>
1656
1657 * configure.ac (libpython checking): Remove all but python.o from
1658 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1659 * configure: Regenerate.
1660
1661 * Makefile.in (SFILES): Add extension.c.
1662 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1663 (COMMON_OBS): Add extension.o.
1664 * extension.h: New file.
1665 * extension-priv.h: New file.
1666 * extension.c: New file.
1667
1668 * python/python-internal.h: #include "extension.h".
1669 (gdbpy_auto_load_enabled): Declare.
1670 (gdbpy_apply_val_pretty_printer): Declare.
1671 (gdbpy_apply_frame_filter): Declare.
1672 (gdbpy_preserve_values): Declare.
1673 (gdbpy_breakpoint_cond_says_stop): Declare.
1674 (gdbpy_breakpoint_has_cond): Declare.
1675 (void source_python_script_for_objfile): Delete.
1676 * python/python.c: #include "extension-priv.h".
1677 Delete inclusion of "observer.h".
1678 (extension_language_python): Moved here and renamed from
1679 script_language_python in py-auto-load.c.
1680 Redefined to be of type extension_language_defn.
1681 (python_extension_script_ops): New global.
1682 (python_extension_ops): New global.
1683 (struct python_env): New member previous_active.
1684 (restore_python_env): Call restore_active_ext_lang.
1685 (ensure_python_env): Call set_active_ext_lang.
1686 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1687 New arg extlang.
1688 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1689 New arg extlang.
1690 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1691 New arg extlang.
1692 (gdbpy_eval_from_control_command): Renamed from
1693 eval_python_from_control_command, made static. New arg extlang.
1694 (gdbpy_source_script) Renamed from source_python_script, made static.
1695 New arg extlang.
1696 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1697 result to int. New arg extlang.
1698 (gdbpy_source_objfile_script): Renamed from
1699 source_python_script_for_objfile, made static. New arg extlang.
1700 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1701 static. New args extlang, extlang_printers. Change result type to
1702 "void".
1703 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1704 static. New arg extlang. Rename arg printers to extlang_printers
1705 and change type to ext_lang_type_printers *.
1706 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1707 static. Replace argument arg with extlang, extlang_printers.
1708 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1709 (!HAVE_PYTHON, source_python_script): Delete.
1710 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1711 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1712 (!HAVE_PYTHON, start_type_printers): Delete.
1713 (!HAVE_PYTHON, apply_type_printers): Delete.
1714 (!HAVE_PYTHON, free_type_printers): Delete.
1715 (_initialize_python): Delete call to observer_attach_before_prompt.
1716 (finalize_python): Set/restore active extension language.
1717 (gdbpy_finish_initialization) Renamed from
1718 finish_python_initialization, made static. New arg extlang.
1719 (gdbpy_initialized): New function.
1720 * python/python.h: #include "extension.h". Delete #include
1721 "value.h", "mi/mi-cmds.h".
1722 (extension_language_python): Declare.
1723 (GDBPY_AUTO_FILE_NAME): Delete.
1724 (enum py_bt_status): Moved to extension.h and renamed to
1725 ext_lang_bt_status.
1726 (enum frame_filter_flags): Moved to extension.h.
1727 (enum py_frame_args): Moved to extension.h and renamed to
1728 ext_lang_frame_args.
1729 (finish_python_initialization): Delete.
1730 (eval_python_from_control_command): Delete.
1731 (source_python_script): Delete.
1732 (apply_val_pretty_printer): Delete.
1733 (apply_frame_filter): Delete.
1734 (preserve_python_values): Delete.
1735 (gdbpy_script_language_defn): Delete.
1736 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1737 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1738
1739 * auto-load.c: #include "extension.h".
1740 (GDB_AUTO_FILE_NAME): Delete.
1741 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1742 (script_language_gdb): Delete, moved to extension.c and renamed to
1743 extension_language_gdb.
1744 (source_gdb_script_for_objfile): Delete.
1745 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1746 (loaded_script): Change type of language member to
1747 struct extension_language_defn *.
1748 (init_loaded_scripts_info): Initialize
1749 unsupported_script_warning_printed.
1750 (maybe_add_script): Make static. Change type of language arg to
1751 struct extension_language_defn *.
1752 (clear_section_scripts): Reset unsupported_script_warning_printed.
1753 (auto_load_objfile_script_1): Rewrite to use extension language API.
1754 (auto_load_objfile_script): Make public. Remove support-compiled-in
1755 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1756 (source_section_scripts): Rewrite to use extension language API.
1757 (load_auto_scripts_for_objfile): Rewrite to use
1758 auto_load_scripts_for_objfile.
1759 (collect_matching_scripts_data): Change type of language member to
1760 struct extension_language_defn *.
1761 (auto_load_info_scripts): Change type of language arg to
1762 struct extension_language_defn *.
1763 (unsupported_script_warning_print): New function.
1764 (script_not_found_warning_print): Make static.
1765 (_initialize_auto_load): Rewrite construction of scripts-directory
1766 help.
1767 * auto-load.h (struct objfile): Add forward decl.
1768 (struct script_language): Delete.
1769 (struct auto_load_pspace_info): Add forward decl.
1770 (struct extension_language_defn): Add forward decl.
1771 (maybe_add_script): Delete.
1772 (auto_load_objfile_script): Declare.
1773 (script_not_found_warning_print): Delete.
1774 (auto_load_info_scripts): Update prototype.
1775 (auto_load_gdb_scripts_enabled): Declare.
1776 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1777 auto_load_python_scripts_enabled and made public.
1778 (script_language_python): Delete, moved to python.c.
1779 (gdbpy_script_language_defn): Delete.
1780 (info_auto_load_python_scripts): Update to use
1781 extension_language_python.
1782
1783 * breakpoint.c (condition_command): Replace call to
1784 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1785 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1786 with call to breakpoint_ext_lang_cond_says_stop.
1787 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1788 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1789 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1790 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1791 New arg slang.
1792 (local_setattro): Print name of extension language with existing
1793 stop condition.
1794
1795 * valprint.c (val_print, value_print): Update to call
1796 apply_ext_lang_val_pretty_printer.
1797 * cp-valprint.c (cp_print_value): Update call to
1798 apply_ext_lang_val_pretty_printer.
1799 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1800 (gdbpy_apply_val_pretty_printer): Renamed from
1801 apply_val_pretty_printer. New arg extlang.
1802 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1803
1804 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1805 extension language API.
1806 * cli/cli-script.c (execute_control_command): Update to call
1807 eval_ext_lang_from_control_command.
1808
1809 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1810 enum ext_lang_bt_status values. Update call to
1811 apply_ext_lang_frame_filter.
1812 (mi_cmd_stack_list_locals): Ditto.
1813 (mi_cmd_stack_list_args): Ditto.
1814 (mi_cmd_stack_list_variables): Ditto.
1815 * mi/mi-main.c: Delete #include "python/python-internal.h".
1816 Add #include "extension.h".
1817 (mi_cmd_list_features): Replace reference to python internal variable
1818 gdb_python_initialized with call to ext_lang_initialized_p.
1819
1820 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1821 Update to use enum ext_lang_frame_args. Update to call
1822 apply_ext_lang_frame_filter.
1823 * python/py-framefilter.c (extract_sym): Update to use enum
1824 ext_lang_bt_status.
1825 (extract_value, py_print_type, py_print_value): Ditto.
1826 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1827 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1828 (py_print_frame): Ditto.
1829 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1830 New arg extlang. Update to use enum ext_lang_bt_status.
1831
1832 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1833 finish_python_initialization. Replace with call to
1834 finish_ext_lang_initialization.
1835
1836 * typeprint.c (do_free_global_table): Update to call
1837 free_ext_lang_type_printers.
1838 (create_global_typedef_table): Update to call
1839 start_ext_lang_type_printers.
1840 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1841 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1842 (type_print_options): Change type of global_printers from "void *"
1843 to "struct ext_lang_type_printers *".
1844
1845 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1846 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1847 (gdbpy_preserve_values): Renamed from preserve_python_values.
1848 New arg extlang.
1849 (!HAVE_PYTHON, preserve_python_values): Delete.
1850
1851 * utils.c (quit_flag): Delete, moved to extension.c.
1852 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1853 extension.c.
1854
1855 * eval.c: Delete #include "python/python.h".
1856 * main.c: Delete #include "python/python.h".
1857
1858 * defs.h: Update comment.
1859
6af79985
JB
18602014-02-06 Joel Brobecker <brobecker@adacore.com>
1861
1862 GDB 7.7 released.
1863
12c5175d
MK
18642014-02-05 Mark Kettenis <kettenis@gnu.org>
1865
1866 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1867 defined.
1868
8dc5b319
YQ
18692014-02-05 Yao Qi <yao@codesourcery.com>
1870
1871 * remote.c (remote_pass_signals): Remove local 'buf' and use
1872 rs->buf.
1873 (remote_program_signals): Likewise.
1874
de7b2893
YQ
18752014-02-05 Yao Qi <yao@codesourcery.com>
1876
1877 * ctf.c: Include "inferior.h" and "gdbthread.h".
1878 (CTF_PID): A new macro.
1879 (ctf_open): Call inferior_appeared and add_thread_silent.
1880 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1881 (ctf_thread_alive): New function.
1882 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1883
66d032ac
YQ
18842014-02-05 Yao Qi <yao@codesourcery.com>
1885
1886 Revert this patch:
1887
1888 2013-05-24 Yao Qi <yao@codesourcery.com>
1889
1890 * tracepoint.c (TFILE_PID): Remove.
1891 (tfile_open): Don't add thread and inferior.
1892 (tfile_close): Don't set 'inferior_ptid'. Don't call
1893 exit_inferior_silent.
1894 (tfile_thread_alive): Remove.
1895 (init_tfile_ops): Don't set field 'to_thread_alive' of
1896 tfile_ops.
1897
f4ccffad
CE
18982014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1899
1900 * remote.c (remote_start_remote): Call remote_check_symbols even
1901 if only symbol-file (not file) has been given.
1902
591a12a1
UW
19032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1904
1905 * gdbarch.sh (skip_entrypoint): New callback.
1906 * gdbarch.c, gdbarch.h: Regenerate.
1907 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1908 * infrun.c (fill_in_stop_func): Likewise.
1909 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1910 (ppc_elfv2_elf_make_msymbol_special): New function.
1911 (ppc_elfv2_skip_entrypoint): Likewise.
1912 (ppc_linux_init_abi): Install them for ELFv2.
1913
cc0e89c5
UW
19142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1915
1916 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1917 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1918 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1919 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1920 structures returned in GPRs.
1921
52f548e4
UW
19222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1923
1924 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1925 offset to the stack parameter list for the ELFv2 ABI.
1926
d4094b6a
UW
19272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1928
1929 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1930 set_gdbarch_convert_from_func_ptr_addr and
1931 set_gdbarch_elf_make_msymbol_special for ELFv1.
1932 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1933 function descriptors on ELFv1.
1934 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1935 set up r12 at function entry.
1936
cd453cd0
UW
19372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1938
1939 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1940 (struct gdbarch_tdep): New member elf_abi.
1941
1942 * rs6000-tdep.c: Include "elf/ppc64.h".
1943 (rs6000_gdbarch_init): Detect ELF ABI version.
1944
0ff3e01f
UW
19452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1946
1947 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1948 within a register pair holding a DFP 128-bit value on little-endian.
1949 (ppc64_sysv_abi_return_value_base): Likewise.
1950 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1951 (dfp_pseudo_register_write): Likewise.
1952
5b757e5d
UW
19532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1954
1955 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1956 offset on little-endian when passing _Decimal32.
1957 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1958
084ee545
UW
19592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1960
1961 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1962 of the overlapped FP register within the VSX register on little-
1963 endian platforms.
1964 (efpr_pseudo_register_write): Likewise.
1965
d63167af
UW
19662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1967
1968 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1969 offset on little-endian when passing small structures.
1970
e765b44c
UW
19712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1972
1973 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1974 (struct ppc64_sysv_argpos): New data structure.
1975 (ppc64_sysv_abi_push_float): Remove.
1976 (ppc64_sysv_abi_push_val): New function.
1977 (ppc64_sysv_abi_push_integer): Likewise.
1978 (ppc64_sysv_abi_push_freg): Likewise.
1979 (ppc64_sysv_abi_push_vreg): Likewise.
1980 (ppc64_sysv_abi_push_param): Likewise.
1981 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1982 (ppc64_sysv_abi_return_value_base): New function.
1983 (ppc64_sysv_abi_return_value): Refactor to use it.
1984
36c24d95
UW
19852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1986
1987 * NEWS: Document new target powerpc64le-*-linux*.
1988
26fd9228
MK
19892014-02-04 Mark Kettenis <kettenis@gnu.org>
1990
1991 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1992 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1993 core dumps.
1994 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1995 register set used in ELF core dumps. Add floating-point register set.
1996
c5bb7362
KB
19972014-02-03 Kevin Buettner <kevinb@redhat.com>
1998
1999 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2000 dwarf2_to_gdb[] table using symbolic constants. Adjust
2001 penultimate entry from number representing the PC register
2002 to symbolic constant representing the MDR register. Add
2003 constant for the PC register to the end of the table.
2004
af09351e
MK
20052014-02-03 Mark Kettenis <kettenis@gnu.org>
2006
2007 * bsd-kvm.c: Include <sys/param.h>
2008
8507e05d
MK
20092014-02-03 Mark Kettenis <kettenis@gnu.org>
2010
2011 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2012
ae56bfb8
JB
20132014-01-31 Joel Brobecker <brobecker@adacore.com>
2014
2015 * ada-lang.h (clear_ada_sym_cache): Delete.
2016
718ee4dc
UW
20172014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
2018
2019 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2020
401e27fd
JM
20212014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2022
2023 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2024 the sigreturn register save area only if the syscall is
2025 sigreturn.
2026
a7c88acd
JB
20272014-01-29 Joel Brobecker <brobecker@adacore.com>
2028
2029 * valops.c (value_slice): Minor reformatting.
2030
fa0079ea
UW
20312014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
2032
2033 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2034
c6044dd1
JB
20352014-01-28 Joel Brobecker <brobecker@adacore.com>
2036
2037 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2038 New static globals.
2039 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2040 (ada_ignore_descriptive_types_p): New static global.
2041 (find_parallel_type_by_descriptive_type): Return immediately
2042 if ada_ignore_descriptive_types_p is set.
2043 (_initialize_ada_language): Register new commands "maintenance
2044 set ada", "maintenance show ada", "maintenance set ada
2045 ignore-descriptive-types" and "maintenance show ada
2046 ignore-descriptive-types".
2047 * NEWS: Add entry for new "maint ada set/show
2048 ignore-descriptive-types" commands.
2049
568e808b
MM
20502014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2051
2052 * record-btrace.c (record_btrace_close): Call btrace_teardown
2053 for all threads.
2054
467d141b
JB
20552014-01-27 Joel Brobecker <brobecker@adacore.com>
2056
2057 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2058 "ui-out.h".
2059
fb151210
JB
20602014-01-27 Joel Brobecker <brobecker@adacore.com>
2061
2062 * ada-typeprint (type_is_full_subrange_of_target_type):
2063 New function.
2064 (print_range): Add parameter bounds_prefered_p. If not set,
2065 try printing range types using the name of their base type.
2066 (print_range_type): Add parameter bounds_prefered_p.
2067 Use it in call to print_range.
2068 (print_array_type, ada_print_type): Update calls to print_range
2069 and print_range_type.
2070
aba02109
JB
20712014-01-27 Joel Brobecker <brobecker@adacore.com>
2072
2073 * ada-typeprint.c (print_array_type, print_choices, print_range)
2074 (print_range_bound, print_dynamic_range_bound, print_range_type):
2075 Remove declaration.
2076
e62e21fd
JB
20772014-01-27 Joel Brobecker <brobecker@adacore.com>
2078
2079 * ada-typeprint.c (print_range): Add missing empty line
2080 after local declaration.
2081
859cf5d1
JB
20822014-01-27 Joel Brobecker <brobecker@adacore.com>
2083
2084 * ada-valprint.c (print_optional_low_bound): Get index_type's
2085 target type for as long as it is a TYPE_CODE_RANGE.
2086
25790f6f
JB
20872014-01-27 Joel Brobecker <brobecker@adacore.com>
2088
2089 * procfs.c (procfs_make_note_section): Remove assertion and
2090 associated comment.
2091
6b6aa828
YQ
20922014-01-24 Yao Qi <yao@codesourcery.com>
2093
2094 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2095 * corelow.c (get_core_siginfo): Likewise.
2096
5d6df423
YQ
20972014-01-24 Yao Qi <yao@codesourcery.com>
2098
2099 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2100 ULONGEST. Don't check 'len' is negative.
2101 (remote_write_bytes): Change type of 'len' to ULONGEST.
2102
83b645b8
TT
21032014-01-23 Tom Tromey <tromey@redhat.com>
2104
2105 PR python/16485:
2106 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2107 Handle exception from frame.block.
2108 (FrameVars.fetch_frame_locals): Likewise.
2109
0740f8d8
TT
21102014-01-23 Tom Tromey <tromey@redhat.com>
2111
2112 PR python/16487:
2113 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2114 on a NULL pointer. Move "goto error" to correct place.
2115
21909fa1
TT
21162014-01-23 Tom Tromey <tromey@redhat.com>
2117
2118 PR python/16491:
2119 * python/py-framefilter.c (apply_frame_filter): Call
2120 ensure_python_env after computing gdbarch.
2121
17fde6d0
YQ
21222014-01-23 Yao Qi <yao@codesourcery.com>
2123
2124 * target.c (raw_memory_xfer_partial): Change argument type
2125 from void * to gdb_byte *.
2126 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2127
87ce2a04
DE
21282014-01-22 Doug Evans <dje@google.com>
2129
2130 New gdbserver option --debug-format=timestamp.
2131 * NEWS: Mention it.
2132
237b092b
AA
21332014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2134
2135 * syscalls/s390x-linux.xml: New file.
2136 * syscalls/s390-linux.xml: New file.
2137 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2138 (XML_SYSCALL_FILENAME_S390X): Likewise.
2139 (op_svc): New enum value for SVC opcode.
2140 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2141 (s390_linux_get_syscall_number): New function.
2142 (s390_gdbarch_init): Register '*get_syscall_number' and the
2143 syscall xml file name.
2144 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2145 "s390-linux.xml" and "s390x-linux.xml".
2146 * NEWS: Announce new feature.
2147
54bff650
BS
21482014-01-22 Baruch Siach <baruch@tkos.co.il>
2149
2150 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2151
14e361d7
PA
21522014-01-22 Pedro Alves <palves@redhat.com>
2153
2154 * xtensa-config.c: Include defs.h.
2155
46bbb3ed
JB
21562014-01-22 Joel Brobecker <brobecker@adacore.com>
2157
2158 * common/common-utils.h: Add "ARI:" comment beside __func__
2159 reference.
2160
3a80edfc
JB
21612014-01-22 Joel Brobecker <brobecker@adacore.com>
2162
2163 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2164 documentation a bit.
2165
4869db5e
RM
21662014-01-21 Roland McGrath <mcgrathr@google.com>
2167
2168 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2169 * configure: Regenerate.
2170 * aclocal.m4: Regenerate.
2171 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2172 New substituted variables.
2173 (install-strip): New target.
2174 (INSTALL_SCRIPT): New substituted variable.
2175 (FLAGS_TO_PASS): Add it.
2176 (install-only): Use $(INSTALL_SCRIPT) rather than
2177 $(INSTALL_PROGRAM) for gcore.
2178
9ea4267d
TT
21792014-01-20 Tom Tromey <tromey@redhat.com>
2180
2181 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2182 together.
2183
1f2bdf09
TT
21842014-01-20 Tom Tromey <tromey@redhat.com>
2185
2186 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2187 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2188 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2189 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2190 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2191 (struct cmd_list_element) <flags>: Remove.
2192 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2193 doc_allocated>: New fields.
2194 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2195 bitfields.
2196 * maint.c (maintenance_do_deprecate): Update.
2197 * top.c (execute_command): Update.
2198
e671835b
BS
21992014-01-20 Baruch Siach <baruch@tkos.co.il>
2200
2201 * xtensa-linux-nat.c: Include asm/ptrace.h.
2202
50367cd2
IB
22032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2204
2205 * Makefile.in (SFILES): Add d-support.c.
2206 (COMMON_OBS): Add d-support.o.
2207 * d-lang.h (d_parse_symbol): Add comment, now defined in
2208 d-support.c.
2209 * d-lang.c (parse_call_convention)
2210 (parse_attributes, parse_function_types)
2211 (parse_function_args, parse_type, parse_identifier)
2212 (call_convention_p, d_parse_symbol): Move functions to ...
2213 * d-support.c: ... New file.
2214
ec9f644a
IB
22152014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2216
2217 * d-lang.h (d_parse_symbol): Add declaration.
2218 * d-lang.c (extract_identifiers)
2219 (extract_type_info): Remove functions.
2220 (parse_call_convention, parse_attributes)
2221 (parse_function_types, parse_function_args)
2222 (parse_type, parse_identifier, call_convention_p)
2223 (d_parse_symbol): New functions.
2224 (d_demangle): Use d_parse_symbol to demangle D symbols.
2225
94b1b47e
IB
22262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2227
2228 * d-lang.h (struct builtin_d_type): New data type.
2229 (builtin_d_type): Add declaration.
2230 * d-lang.c (d_language_arch_info, build_d_types)
2231 (builtin_d_type): New functions.
2232 (enum d_primitive_types): New data type.
2233 (d_language_defn): Change c_language_arch_info to
2234 d_language_arch_info.
2235 (d_type_data): New static variable.
2236 (_initialize_d_language): Initialize d_type_data.
2237
63778547
IB
22382014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2239
2240 * d-lang.h (d_main_name): Add declaration.
2241 * d-lang.c (d_main_name): New function.
2242 * symtab.c (find_main_name): Add call to d_main_name.
2243
3271ba66
IB
22442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2245
2246 * d-lang.c (d_language_defn): Change macro_expansion_c to
2247 macro_expansion_no.
2248
d36b3012
IB
22492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2250
2251 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2252
c90a6fb7
SDJ
22532014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2254
2255 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2256 gdb_exception" declaration.
2257 * remote.c (getpkt_or_notif_sane): Likewise.
2258
749234e5
DE
22592014-01-17 Doug Evans <dje@google.com>
2260
2261 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2262 function, contents of dirnames_to_char_ptr_vec_append moved here.
2263 (delim_string_to_char_ptr_vec): New function.
2264 (dirnames_to_char_ptr_vec_append): Rewrite.
2265 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2266
df049a58
DE
22672014-01-17 Doug Evans <dje@google.com>
2268
2269 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2270 and moved here ...
2271 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2272 #include "common-utils.h".
2273 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2274 * common/vec.h (VEC_ASSERT_PASS): Update.
2275 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2276 (MACH_CHECK_ERROR): Update.
2277
69f97648
SM
22782014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2279
2280 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2281 comments.
2282 * gdbarch.h: Regenerate.
2283
98b1cfdc
TT
22842014-01-16 Tom Tromey <tromey@redhat.com>
2285
2286 * value.c (struct value) <regnum>: Move earlier.
2287
77a19445
TT
22882014-01-16 Tom Tromey <tromey@redhat.com>
2289
2290 * remote.c (extended_remote_create_inferior): Rename from
2291 extended_remote_create_inferior_1. Add "ops" argument. Remove
2292 old implementation.
2293
62261490
PA
22942014-01-16 Pedro Alves <palves@redhat.com>
2295
2296 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2297 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2298 the backchain.
2299
4d65956b
DE
23002014-01-16 Doug Evans <dje@google.com>
2301
2302 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2303
52834460
MM
23042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2305
2306 * btrace.h (btrace_thread_flag): New.
2307 (struct btrace_thread_info) <flags>: New.
2308 * record-btrace.c (record_btrace_resume_thread)
2309 (record_btrace_find_thread_to_move, btrace_step_no_history)
2310 (btrace_step_stopped, record_btrace_start_replaying)
2311 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2312 (record_btrace_find_resume_thread): New.
2313 (record_btrace_resume, record_btrace_wait): Extend.
2314 (record_btrace_can_execute_reverse): New.
2315 (record_btrace_open): Fail in non-stop mode.
2316 (record_btrace_set_replay): Split into this, ...
2317 (record_btrace_stop_replaying): ... this, ...
2318 (record_btrace_clear_histories): ... and this.
2319 (init_record_btrace_ops): Init to_can_execute_reverse.
2320 * NEWS: Announce it.
2321
118e6252
MM
23222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2323
2324 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2325 (forward_target_decr_pc_after_break)
2326 (target_decr_pc_after_break): New.
2327 * target.c (forward_target_decr_pc_after_break)
2328 (target_decr_pc_after_break): New.
2329 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2330 instead of gdbarch_decr_pc_after_break.
2331 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2332 instead of gdbarch_decr_pc_after_break.
2333 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2334 instead of gdbarch_decr_pc_after_break.
2335 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2336 instead of gdbarch_decr_pc_after_break.
2337 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2338 instead of gdbarch_decr_pc_after_break.
2339 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2340 instead of gdbarch_decr_pc_after_break.
2341
6e07b1d2
MM
23422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2343
2344 * btrace.c: Include regcache.h.
2345 (btrace_add_pc): New.
2346 (btrace_enable): Call btrace_add_pc.
2347 (btrace_is_empty): New.
2348 * btrace.h (btrace_is_empty): New.
2349 * record-btrace.c (require_btrace, record_btrace_info): Call
2350 btrace_is_empty.
2351
969c39fb
MM
23522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2353
2354 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2355 Support delta reads.
2356 (linux_disable_btrace): Change return type.
2357 * common/linux-btrace.h (linux_read_btrace): Change parameters
2358 and return type to allow error reporting. Update users.
2359 (linux_disable_btrace): Change return type. Update users.
2360 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2361 New.
2362 (btrace_error): New.
2363 (btrace_block) <begin>: Comment on BEGIN == 0.
2364 * btrace.c (btrace_compute_ftrace): Start from the end of
2365 the current trace.
2366 (btrace_stitch_trace, btrace_clear_history): New.
2367 (btrace_fetch): Read delta trace, return if replaying.
2368 (btrace_clear): Move clear history code to btrace_clear_history.
2369 (parse_xml_btrace): Throw an error if parsing failed.
2370 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2371 and return type to allow error reporting.
2372 (target_read_btrace): Change parameters and return type to allow
2373 error reporting.
2374 * target.c (target_read_btrace): Update.
2375 * remote.c (remote_read_btrace): Support delta reads. Pass
2376 errors on.
2377 * NEWS: Announce it.
2378
0b722aec
MM
23792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2380
2381 * record.h (record_btrace_frame_unwind)
2382 (record_btrace_tailcall_frame_unwind): New declarations.
2383 * dwarf2-frame: Include record.h
2384 (dwarf2_frame_cfa): Throw an error for btrace frames.
2385 * record-btrace.c: Include hashtab.h.
2386 (btrace_get_bfun_name): New.
2387 (btrace_call_history): Call btrace_get_bfun_name.
2388 (struct btrace_frame_cache): New.
2389 (bfcache): New.
2390 (bfcache_hash, bfcache_eq, bfcache_new): New.
2391 (btrace_get_frame_function): New.
2392 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2393 (record_btrace_frame_this_id): Compute own id.
2394 (record_btrace_frame_prev_register): Provide PC, throw_error
2395 for all other registers.
2396 (record_btrace_frame_sniffer): Detect btrace frames.
2397 (record_btrace_tailcall_frame_sniffer): New.
2398 (record_btrace_frame_dealloc_cache): New.
2399 (record_btrace_frame_unwind): Add new functions.
2400 (record_btrace_tailcall_frame_unwind): New.
2401 (_initialize_record_btrace): Allocate cache.
2402 * btrace.c (btrace_clear): Call reinit_frame_cache.
2403 * NEWS: Announce it.
2404
066ce621
MM
24052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2406
2407 * record-btrace.c (record_btrace_set_replay)
2408 (record_btrace_goto_begin, record_btrace_goto_end)
2409 (record_btrace_goto): New.
2410 (init_record_btrace_ops): Initialize them.
2411 * NEWS: Announce it.
2412
e2887aa3
MM
24132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2414
2415 * record-btrace.c (record_btrace_find_new_threads)
2416 (record_btrace_thread_alive): New.
2417 (init_record_btrace_ops): Initialize to_find_new_threads and
2418 to_thread_alive.
2419
b2f4cfde
MM
24202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2421
2422 * record-btrace.c (record_btrace_resume): New.
2423 (record_btrace_wait): New.
2424 (init_record_btrace_ops): Initialize to_wait and to_resume.
2425
633785ff
MM
24262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2427
2428 * record-btrace.c (record_btrace_xfer_partial)
2429 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2430 (record_btrace_allow_memory_access): New.
2431 (init_record_btrace_ops): Initialize new methods.
2432 * target.c (raw_memory_xfer_partial): Bail out if target reports
2433 that this memory is not available.
2434
3db08215
MM
24352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2436
2437 * target.h (target_ops) <to_insert_breakpoint>
2438 <to_remove_breakpoint>: Add target_ops parameter.
2439 (forward_target_insert_breakpoint): New.
2440 (forward_target_remove_breakpoint): New.
2441 (memory_remove_breakpoint, memory_insert_breakpoint):
2442 Add target_ops parameter.
2443 * target.c (target_insert_breakpoint): Split into this and ...
2444 (forward_target_insert_breakpoint): ... this.
2445 (target_remove_breakpoint): Split into this and ...
2446 (forward_target_remove_breakpoint): ... this.
2447 (debug_to_insert_breakpoint): Add target_ops parameter.
2448 Call forward_target_insert_breakpoint.
2449 (debug_to_remove_breakpoint): Add target_ops parameter.
2450 Call forward_target_remove_breakpoint.
2451 (update_current_target): Do not inherit or default to_insert_breakpoint
2452 and to_remove_breakpoint.
2453 * corelow.c (ignore): Add target_ops parameter.
2454 * exec.c (ignore): Add target_ops parameter.
2455 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2456 Add target_ops parameter.
2457 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2458 Add target_ops parameter.
2459 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2460 Add target_ops parameter.
2461 * record-full.c (record_full_beneath_to_insert_breakpoint)
2462 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2463 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2464 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2465 (record_full_core_remove_breakpoint): Add target_ops parameter.
2466 Update users.
2467 (record_full_beneath_to_insert_breakpoint_ops)
2468 (record_full_beneath_to_remove_breakpoint_ops)
2469 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2470 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2471 tmp_to_remove_breakpoint_ops,
2472 record_full_beneath_to_insert_breakpoint_ops, and
2473 record_full_beneath_to_remove_breakpoint_ops.
2474 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2475 (m32r_remove_breakpoint): Add target_ops parameter.
2476 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2477 Add target_ops parameter.
2478 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2479 Add target_ops parameter.
2480
cecac1ab
MM
24812014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2482 Markus Metzger <markus.t.metzger@intel.com>
2483
2484 * record-btrace.c: Include frame-unwind.h.
2485 (record_btrace_frame_unwind_stop_reason)
2486 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2487 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2488 New.
2489 (init_record_btrace_ops): Install it.
2490
824344ca
MM
24912014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2494 get_prev_frame_1.
2495
32261e52
MM
24962014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2497
2498 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2499 earlier.
2500
ea001bdc
MM
25012014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 * frame-unwind.c: Include target.h.
2504 (frame_unwind_try_unwinder): New function with code from ...
2505 (frame_unwind_find_by_frame): ... here. New variable
2506 unwinder_from_target, call also target_get_unwinder)
2507 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2508 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2509 * target.h (struct target_ops): New fields to_get_unwinder and
2510 to_get_tailcall_unwinder.
2511 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2512
1f3ef581
MM
25132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2514
2515 * record-btrace.c (record_btrace_fetch_registers)
2516 (record_btrace_store_registers)
2517 (record_btrace_to_prepare_to_store): New.
2518 (init_record_btrace_ops): Add the above.
2519
f32dbf8c
MM
25202014-01-16 Tom Tromey <tromey@redhat.com>
2521
2522 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2523 * target.h (struct target_ops) <to_prepare_to_store>: Add
2524 argument.
2525 (target_prepare_to_store): Add argument.
2526 * target.c (debug_to_prepare_to_store): Add argument.
2527 (update_current_target): Update.
2528 * remote.c (remote_prepare_to_store): Add 'self' argument.
2529 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2530 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2531 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2532 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2533 argument.
2534 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2535 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2536 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2537 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2538 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2539
07bbe694
MM
25402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2541
2542 * btrace.h (replay) <replay>: New.
2543 (btrace_is_replaying): New.
2544 * btrace.c (btrace_clear): Free replay iterator.
2545 (btrace_is_replaying): New.
2546 * record-btrace.c (record_btrace_is_replaying): New.
2547 (record_btrace_info): Print insn number if replaying.
2548 (record_btrace_insn_history): Start at replay position.
2549 (record_btrace_call_history): Start at replay position.
2550 (init_record_btrace_ops): Init to_record_is_replaying.
2551
0688d04e
MM
25522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2553
2554 * record-btrace.c (record_btrace_insn_history_range): Include
2555 end.
2556 (record_btrace_insn_history_from): Adjust range.
2557 (record_btrace_call_history_range): Include
2558 end.
2559 (record_btrace_call_history_from): Adjust range.
2560 * NEWS: Announce changes.
2561
8710b709
MM
25622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2563
2564 * record.h (enum record_print_flag)
2565 <record_print_indent_calls>: New.
2566 * record.c (get_call_history_modifiers): Recognize /c modifier.
2567 (_initialize_record): Document /c modifier.
2568 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2569 Reorder fields. Optionally indent the function name. Update
2570 all users.
2571 * NEWS: Announce changes.
2572
d0fa7535
MM
25732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2574
2575 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2576
5de9129b
MM
25772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2578
2579 * btrace.c (ftrace_new_function): Start counting at one.
2580 * record-btrace.c (record_btrace_info): Adjust number of calls
2581 and insns.
2582 * NEWS: Announce it.
2583
7acbe133
MM
25842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2585
2586 * record-btrace.c (btrace_call_history_insn_range): Print
2587 insn range as [begin, end].
2588
23a7fe75
MM
25892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2590
2591 * btrace.h (struct btrace_func_link): New.
2592 (enum btrace_function_flag): New.
2593 (struct btrace_inst): Rename to ...
2594 (struct btrace_insn): ...this. Update all users.
2595 (struct btrace_func) <ibegin, iend>: Remove.
2596 (struct btrace_func_link): New.
2597 (struct btrace_func): Rename to ...
2598 (struct btrace_function): ...this. Update all users.
2599 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2600 (number, level, flags>: New.
2601 (struct btrace_insn_iterator): Rename to ...
2602 (struct btrace_insn_history): ...this.
2603 Update all users.
2604 (struct btrace_insn_iterator, btrace_call_iterator): New.
2605 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2606 (struct btrace_target_info) <begin, end, level>
2607 <insn_history, call_history>: New.
2608 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2609 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2610 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2611 (btrace_call_number, btrace_call_begin, btrace_call_end)
2612 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2613 (btrace_find_function_by_number, btrace_set_insn_history)
2614 (btrace_set_call_history): New.
2615 * btrace.c (btrace_init_insn_iterator)
2616 (btrace_init_func_iterator, compute_itrace): Remove.
2617 (ftrace_print_function_name, ftrace_print_filename)
2618 (ftrace_skip_file): Change
2619 parameter to const.
2620 (ftrace_init_func): Remove.
2621 (ftrace_debug): Use new btrace_function fields.
2622 (ftrace_function_switched): Also consider gaining and
2623 losing symbol information).
2624 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2625 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2626 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2627 New.
2628 (ftrace_new_function): Move. Remove debug print.
2629 (ftrace_update_lines, ftrace_update_insns): New.
2630 (ftrace_update_function): Check for call, ret, and jump.
2631 (compute_ftrace): Renamed to ...
2632 (btrace_compute_ftrace): ...this. Rewritten to compute call
2633 stack.
2634 (btrace_fetch, btrace_clear): Updated.
2635 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2636 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2637 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2638 (btrace_call_number, btrace_call_begin, btrace_call_end)
2639 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2640 (btrace_find_function_by_number, btrace_set_insn_history)
2641 (btrace_set_call_history): New.
2642 * record-btrace.c (require_btrace): Use new btrace thread
2643 info fields.
2644 (record_btrace_info, btrace_insn_history)
2645 (record_btrace_insn_history, record_btrace_insn_history_range):
2646 Use new btrace thread info fields and new iterator.
2647 (btrace_func_history_src_line): Rename to ...
2648 (btrace_call_history_src_line): ...this. Use new btrace
2649 thread info fields.
2650 (btrace_func_history): Rename to ...
2651 (btrace_call_history): ...this. Use new btrace thread info
2652 fields and new iterator.
2653 (record_btrace_call_history, record_btrace_call_history_range):
2654 Use new btrace thread info fields and new iterator.
2655
8372a7cb
MM
26562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2657
2658 * frame.h (frame_id_build_unavailable_stack_special): New.
2659 * frame.c (frame_id_build_unavailable_stack_special): New.
2660
c2170eef
MM
26612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2662
2663 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2664 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2665 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2666 to gdbarch.
2667 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2668 (i386_insn_is_jump, i386_jmp_p): New.
2669 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2670 insn_is_jump to gdbarch.
2671 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2672 * gdbarch.h: Regenerated.
2673 * gdbarch.c: Regenerated.
2674 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2675 (default_insn_is_jump): New.
2676 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2677 (default_insn_is_jump): New.
2678
864089d2
MM
26792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2680
2681 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2682 Change to ...
2683 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2684 (btrace_read_type) <btrace_read_new>: Change to ...
2685 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2686
ed9edfb5
MM
26872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2688
2689 * common/linux-btrace.c (linux_read_btrace): Free trace from
2690 previous iteration.
2691
fbcbc3fd
DE
26922014-01-15 Doug Evans <dje@google.com>
2693
2694 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2695 uint32_t.
2696
3d548a53
TT
26972014-01-15 Tom Tromey <tromey@redhat.com>
2698
2699 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2700 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2701 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2702 (set_objfile_main_name): New function.
2703 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2704 language_of_main>: New fields.
2705 (set_objfile_main_name): Declare.
2706 * symtab.c (find_main_name): Loop over objfiles to find the main
2707 name and language.
2708 (set_main_name): Now static.
2709 (get_main_info): Add comment.
2710 * symtab.h (set_main_name): Don't declare.
2711
32ac0d11
TT
27122014-01-15 Tom Tromey <tromey@redhat.com>
2713
2714 * symtab.c (main_progspace_key): New global.
2715 (struct main_info): New.
2716 (name_of_main, language_of_main): Remove.
2717 (get_main_info, main_info_cleanup): New function.
2718 (set_main_name, main_name, main_language): Use get_main_info.
2719 (_initialize_symtab): Initialize main_progspace_key.
2720
9e6c82ad
TT
27212014-01-15 Tom Tromey <tromey@redhat.com>
2722
2723 * dbxread.c (process_one_symbol): Update.
2724 * dwarf2read.c (read_partial_die): Update.
2725 * symfile.c (set_initial_language): Call main_language.
2726 * symtab.c (language_of_main): Now static.
2727 (set_main_name): Add 'lang' parameter.
2728 (find_main_name): Update.
2729 (main_language): New function.
2730 (symtab_observer_executable_changed): Update.
2731 * symtab.h (set_main_name): Update.
2732 (language_of_main): Remove.
2733 (main_language): Declare.
2734
6ef55de7
TT
27352014-01-15 Tom Tromey <tromey@redhat.com>
2736
2737 * symfile.c (init_entry_point_info): Use new "initialized" field.
2738 Update.
2739 * objfiles.h (struct entry_point) <initialized>: New field.
2740 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2741 (struct objfile) <ei>: ...here. Remove.
2742 * objfiles.c (entry_point_address_query): Update.
2743
53eddfa6
TT
27442014-01-15 Tom Tromey <tromey@redhat.com>
2745
2746 * objfiles.c (entry_point_address_query): Relocate entry point
2747 address.
2748 (objfile_relocate1): Do not relocate entry point address.
2749 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2750 <the_bfd_section_index>: New field.
2751 * symfile.c (init_entry_point_info): Find the entry point's
2752 section.
2753
d56e56aa
TT
27542014-01-15 Tom Tromey <tromey@redhat.com>
2755
2756 * solib-frv.c (enable_break): Use entry_point_address_query.
2757
33a97bbe
OJ
27582014-01-15 Omair Javaid <omair.javaid@linaro.org>
2759
2760 * NEWS: Add note on improved process record-replay on
2761 arm*-linux* targets.
2762
c6ec2b30
OJ
27632014-01-15 Omair Javaid <omair.javaid@linaro.org>
2764
2765 * arm-tdep.c (enum arm_record_result): New enum.
2766 (arm_record_unsupported_insn): New function.
2767 (arm_record_coproc_data_proc): Removed.
2768 (thumb2_record_ld_st_multiple): New function.
2769 (thumb2_record_ld_st_dual_ex_tbb): New function.
2770 (thumb2_record_data_proc_sreg_mimm): New function.
2771 (thumb2_record_ps_dest_generic): New function.
2772 (thumb2_record_branch_misc_cntrl): New function.
2773 (thumb2_record_str_single_data): New function.
2774 (thumb2_record_ld_mem_hints): New function.
2775 (thumb2_record_ld_word): New function.
2776 (thumb2_record_lmul_lmla_div): New function.
2777 (thumb2_record_decode_insn_handler): New function.
2778 (decode_insn): Add thumb32 instruction handlers.
2779
97dfe206
OJ
27802014-01-15 Omair Javaid <omair.javaid@linaro.org>
2781
2782 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2783 (struct arm_linux_record_tdep): Declare.
2784 (arm_canonicalize_syscall): New function.
2785 (arm_all_but_pc_registers_record): New function.
2786 (arm_linux_syscall_record): New function.
2787 (arm_linux_init_abi): Add syscall recording constructs.
2788 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2789 decoding. (arm_record_coproc_data_proc): Update arm syscall
2790 decoding.
2791 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2792 <arm_syscall_record>: New field.
2793 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2794 gdb_target_obs.
2795
9904a494
OJ
27962014-01-15 Omair Javaid <omair.javaid@linaro.org>
2797
2798 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2799 register for push instruction recording.
2800
f969241e
OJ
28012014-01-15 Omair Javaid <omair.javaid@linaro.org>
2802
2803 * arm-tdep.c (thumb_record_misc): Update to correct logical
2804 error while recording ldm, ldmia and pop instructions.
2805
bfbbec00
OJ
28062014-01-15 Omair Javaid <omair.javaid@linaro.org>
2807
2808 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2809
e40adcc9
PA
28102014-01-15 Pedro Alves <palves@redhat.com>
2811
2812 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2813 (go32_resume, go32_fetch_registers, store_register)
2814 (go32_store_registers, go32_prepare_to_store)
2815 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2816 (go32_create_inferior, go32_can_run, go32_terminal_init)
2817 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2818 declarations.
2819
b0a16e66
TT
28202014-01-15 Tom Tromey <tromey@redhat.com>
2821
2822 * target.h (async_callback_ftype): New typedef.
2823 (struct target_ops) <to_async>: Use it.
2824
bf7105a4
JB
28252014-01-15 Joel Brobecker <brobecker@adacore.com>
2826
2827 * python/py-value.c (get_field_type): Remove unnecessary curly
2828 braces for single-statement if block.
2829
a8f35c2e
JB
28302014-01-15 Joel Brobecker <brobecker@adacore.com>
2831
2832 * python/py-type.c (convert_field): Add missing empty line
2833 after declarations.
2834
bb4142cf
DE
28352014-01-14 Doug Evans <dje@google.com>
2836
2837 * symfile.h (expand_symtabs_matching): Renamed from
2838 expand_partial_symbol_names. Update prototype.
2839 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2840 * symfile.c (expand_symtabs_matching): Renamed from
2841 expand_partial_symbol_names. New args file_matcher, kind.
2842 Rename arg fun to symbol_matcher.
2843 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2844 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2845 ada_expand_partial_symbol_name.
2846 (ada_make_symbol_completion_list): Update to call
2847 expand_symtabs_matching.
2848 (ada_add_global_exceptions): Call expand_symtabs_matching.
2849 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2850 call map_symbol_filenames.
2851 * symtab.c (sources_info): Update to call map_symbol_filenames.
2852 (search_symbols): Call expand_symtabs_matching.
2853 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2854 (default_make_symbol_completion_list_break_on): Update to call
2855 expand_symtabs_matching.
2856 (make_source_files_completion_list): Update to call
2857 map_symbol_filenames.
2858
206f2a57
DE
28592014-01-14 Doug Evans <dje@google.com>
2860
2861 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2862 (expand_symtabs_symbol_matcher_ftype): New typedef.
2863 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2864 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2865 * symfile.c (expand_partial_symbol_names): Update to use
2866 expand_symtabs_symbol_matcher_ftype.
2867 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2868 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2869 Arg name_matcher renamed to symbol_matcher.
2870 * psymtab.c (recursively_search_psymtabs): Update to use
2871 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2872 sym_matcher.
2873 (expand_symtabs_matching_via_partial): Update to use
2874 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2875 Arg name_matcher renamed to symbol_matcher.
2876
540c2971
DE
28772014-01-14 Doug Evans <dje@google.com>
2878
2879 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2880 (map_partial_symbol_filenames): Ditto.
2881 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2882 (map_partial_symbol_filenames): Ditto.
2883 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2884 (map_partial_symbol_filenames): Ditto.
2885 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2886 (map_partial_symbol_filenames): Ditto.
2887 * symtab.c: Delete #include "psymtab.h".
2888
8213266a
PA
28892014-01-14 Pedro Alves <palves@redhat.com>
2890 Tom Tromey <tromey@redhat.com>
2891
2892 * infrun.c (use_displaced_stepping): Use find_record_target
2893 instead of RECORD_IS_USED.
2894 (adjust_pc_after_break): Use record_full_is_used instead of
2895 RECORD_IS_USED.
2896 * record-btrace.c (record_btrace_open): Call record_preopen
2897 instead of checking RECORD_IS_USED.
2898 * record-full.c (record_full_shortname)
2899 (record_full_core_shortname): New globals.
2900 (record_full_is_used): New function.
2901 (find_full_open): Call record_preopen instead of checking
2902 RECORD_IS_USED.
2903 (init_record_full_ops): Set the target's shortname to
2904 record_full_shortname.
2905 (init_record_full_core_ops): Set the target's shortname to
2906 record_full_core_shortname.
2907 * record-full.h (record_full_is_used): Declare.
2908 * record.c (find_record_target): Make extern.
2909 (record_preopen): New function.
2910 * record.h (RECORD_IS_USED): Delete macro.
2911 (find_record_target, record_preopen): Declare functions.
2912
7ec1862d
YQ
29132014-01-14 Yao Qi <yao@codesourcery.com>
2914
2915 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2916 'len''s type to ULONGEST.
2917 (core_xfer_shared_libraries_aix): Likewise.
2918 * gdbarch.c, gdbarch.h: Regenerated.
2919 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2920 Change type of 'len' to ULONGEST.
2921 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2922 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2923
dea80a27
YQ
29242014-01-14 Yao Qi <yao@codesourcery.com>
2925
2926 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2927 type of 'len' to ULONGEST.
2928 (linux_xfer_osdata_processgroups): Likewise.
2929 (linux_xfer_osdata_threads): Likewise.
2930 (linux_xfer_osdata_fds): Likewise.
2931 (linux_xfer_osdata_isockets): Likewise.
2932 (linux_xfer_osdata_shm): Likewise.
2933 (linux_xfer_osdata_sem): Likewise.
2934 (linux_xfer_osdata_msg): Likewise.
2935 (linux_common_xfer_osdata): Likewise.
2936 (struct osdata_type) <getter>: Likewise.
2937 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2938 the declaration.
2939
b55e14c7
YQ
29402014-01-14 Yao Qi <yao@codesourcery.com>
2941
2942 * target.h (target_xfer_partial_ftype): Update.
2943 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2944 ULONGEST.
2945 * aix-thread.c (aix_thread_xfer_partial): Change type of
2946 argument 'len' to ULONGEST.
2947 * auxv.c (procfs_xfer_auxv): Likewise.
2948 (ld_so_xfer_auxv): Likewise.
2949 (memory_xfer_auxv): Likewise.
2950 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2951 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2952 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2953 * corelow.c (core_xfer_partial): Likewise.
2954 * ctf.c (ctf_xfer_partial): Likewise.
2955 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2956 '%u'.
2957 (darwin_read_dyld_info): Likewise.
2958 (darwin_xfer_partial): Likewise.
2959 * exec.c (section_table_xfer_memory_partial): Likewise.
2960 (exec_xfer_partial): Likewise.
2961 * exec.h (section_table_xfer_memory_partial): Update
2962 declaration.
2963 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2964 instead of plongest.
2965 (gnu_xfer_partial): Likewise.
2966 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2967 (ia64_hpux_xfer_solib_got): Likewise.
2968 (ia64_hpux_xfer_partial): Likewise.
2969 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2970 * inf-ptrace.c (inf_ptrace_xfer_partial):
2971 * inf-ttrace.c (inf_ttrace_xfer_partial):
2972 * linux-nat.c (linux_xfer_siginfo): Likewise.
2973 (linux_nat_xfer_partial): Likewise.
2974 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2975 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2976 * monitor.c (monitor_xfer_memory): Likewise.
2977 (monitor_xfer_partial): Likewise.
2978 * procfs.c (procfs_xfer_partial): Likewise.
2979 * record-full.c (record_full_xfer_partial): Likewise.
2980 (record_full_core_xfer_partial): Likewise.
2981 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2982 instead of plongest.
2983 (gdbsim_xfer_partial): Likewise.
2984 * remote.c (remote_xfer_partial): Likewise.
2985 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2986 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2987 declaration.
2988 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2989 (rs6000_xfer_shared_libraries): Likewise.
2990 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2991 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2992 (sparc_xfer_partial): Likewise.
2993 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2994 (spu_xfer_partial): Likewise.
2995 * spu-multiarch.c (spu_xfer_partial): Likewise.
2996 * target.c (target_read_live_memory): Likewise.
2997 (memory_xfer_live_readonly_partial): Likewise.
2998 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2999 (target_xfer_partial, default_xfer_partial): Likewise.
3000 (current_xfer_partial): Likewise.
3001 * tracepoint.c (tfile_xfer_partial): Likewise.
3002 * windows-nat.c (windows_xfer_memory): Likewise. Call
3003 pulongest instead of plongest.
3004 (windows_xfer_partial): Likewise.
3005 (windows_xfer_shared_libraries): Likewise.
3006
05804640
YQ
30072014-01-14 Yao Qi <yao@codesourcery.com>
3008
3009 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3010 target_xfer_partial_ftype.
3011
b5b08fb4
SC
30122014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3013
3014 PR python/15464
3015 PR python/16113
3016 * valops.c (value_struct_elt_bitpos): New function
3017 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3018 object to 'None' if the field name is an empty string ("").
3019 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3020 attribute to look for a field when 'name' is 'None'.
3021 (get_field_type): New function
3022
13aaf454
DE
30232014-01-13 Doug Evans <dje@google.com>
3024
3025 PR symtab/16426
3026 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3027 (try_open_dwop_file): Ditto.
3028 * gdb_bfd.c: #include "vec.h".
3029 (bfdp): New typedef.
3030 (struct gdb_bfd_data): New member included_bfds.
3031 (gdb_bfd_unref): Unref all included bfds.
3032 (gdb_bfd_record_inclusion): New function.
3033 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3034
c2cec97c
TT
30352014-01-13 Tom Tromey <tromey@redhat.com>
3036
3037 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3038
78e5999d
TT
30392014-01-13 Tom Tromey <tromey@redhat.com>
3040
3041 * defs.h (use_windows): Remove.
3042 * gdb.c (main): Update.
3043 * main.c (captured_main, gdb_main): Update.
3044 * main.h (struct captured_main_args) <use_windows>: Remove.
3045 * top.c (use_windows): Remove.
3046
f2052bbe
TT
30472014-01-13 Tom Tromey <tromey@redhat.com>
3048
3049 * defs.h (deprecated_flush_hook): Remove.
3050
fde4f8ed
JK
30512014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3052
3053 PR threads/16216
3054 * linux-thread-db.c (try_thread_db_load): Add parameter
3055 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3056 (try_thread_db_load_from_pdir_1): Move it there from here.
3057 (try_thread_db_load_from_sdir): Update caller.
3058 (try_thread_db_load_from_dir): Move it there from here.
3059
bdf61915
PP
30602014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3061
3062 * regformats/regdat.sh: Always rewrite the register file.
3063
f71e1a8d
PA
30642014-01-13 Pedro Alves <palves@redhat.com>
3065
3066 * Makefile.in (CHECK_HEADERS): New variable.
3067 (check-headers:): New rule.
3068
42c85435
TT
30692014-01-13 Tom Tromey <tromey@redhat.com>
3070
3071 * cli/cli-setshow.c (do_set_command): Update.
3072 * defs.h (deprecated_set_hook): Remove.
3073 * top.c (deprecated_set_hook): Remove.
3074
f8de5129
PA
30752014-01-13 Pedro Alves <palves@redhat.com>
3076
3077 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3078 the tracepoint if the PC is a pseudo-register.
3079
fc270c35
TT
30802014-01-13 Tom Tromey <tromey@redhat.com>
3081
3082 * defs.h (XCALLOC): Remove.
3083 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3084 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3085 * dwarf2loc.c (allocate_piece_closure): Likewise.
3086 * elfread.c (elf_symfile_segments): Likewise.
3087 (elf_symfile_segments): Likewise.
3088 * gdbtypes.c (copy_type_recursive): Likewise.
3089 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3090 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3091 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3092 XCALLOC.
3093 * mt-tdep.c (mt_gdbarch_init): Likewise.
3094 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3095 XCALLOC.
3096 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3097 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3098 * registry.c (registry_alloc_data): Likewise.
3099 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3100 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3101 * serial.c (serial_fdopen_ops): Likewise.
3102 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3103 XCALLOC.
3104 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3105 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3106 not XCALLOC.
3107
70ba0933
TT
31082014-01-13 Tom Tromey <tromey@redhat.com>
3109
3110 * defs.h (XMALLOC): Remove.
3111 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3112 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3113 * cli-out.c (struct ui_out *): Likewise.
3114 * cli/cli-dump.c (add_dump_command): Likewise.
3115 (add_dump_command): Likewise.
3116 * complaints.c (get_complaints): Likewise.
3117 (find_complaint): Likewise.
3118 * dwarf2-frame.c (execute_cfa_program): Likewise.
3119 * dwarf2read.c (abbrev_table_read_table): Likewise.
3120 * gdbarch.sh: Likewise.
3121 * gdbarch.c: Rebuild.
3122 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3123 * interps.c (interp_new): Likewise.
3124 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3125 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3126 * mi/mi-console.c (mi_console_file_new): Likewise.
3127 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3128 * mi/mi-out.c (mi_out_new): Likewise.
3129 * mi/mi-parse.c (mi_parse): Likewise.
3130 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3131 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3132 * observer.c (xalloc_observer_list_node): Likewise.
3133 * regcache.c (regcache_xmalloc_1): Likewise.
3134 * reggroups.c (reggroup_new): Likewise.
3135 (_initialize_reggroup): Likewise.
3136 * registry.c (register_data_with_cleanup): Likewise.
3137 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3138 * ser-base.c (serial_ttystate): Likewise.
3139 * ser-mingw.c (make_pipe_state): Likewise.
3140 * ser-pipe.c (pipe_open): Likewise.
3141 * serial.c (serial_open): Likewise.
3142 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3143 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3144 (tui_alloc_win_info): Likewise.
3145 (tui_add_content_elements): Likewise.
3146 * tui/tui-file.c (tui_file_new): Likewise.
3147 * tui/tui-out.c (tui_out_new): Likewise.
3148 * ui-file.c (mem_file_new): Likewise.
3149 * ui-out.c (push_level): Likewise.
3150 (make_cleanup_ui_out_end): Likewise.
3151 (append_header_to_list): Likewise.
3152 (ui_out_new): Likewise.
3153 * user-regs.c (user_reg_add_builtin): Likewise.
3154
41bf6aca
TT
31552014-01-13 Tom Tromey <tromey@redhat.com>
3156
3157 * defs.h (XZALLOC): Remove.
3158 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3159 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3160 (get_ada_tasks_inferior_data): Likewise.
3161 * auto-load.c (get_auto_load_pspace_data): Likewise.
3162 * auxv.c (get_auxv_inferior_data): Likewise.
3163 * bfd-target.c (target_bfd_reopen): Likewise.
3164 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3165 (deprecated_insert_raw_breakpoint): Likewise.
3166 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3167 * corelow.c (core_open): Likewise.
3168 * darwin-nat.c (darwin_check_new_threads): Likewise.
3169 (darwin_attach_pid): Likewise.
3170 * dummy-frame.c (dummy_frame_push): Likewise.
3171 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3172 * dwarf2loc.c (allocate_piece_closure): Likewise.
3173 * elfread.c (elf_symfile_segments): Likewise.
3174 * eval.c (ptrmath_type_p): Likewise.
3175 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3176 * gdbtypes.c (alloc_type_arch): Likewise.
3177 (alloc_type_instance): Likewise.
3178 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3179 * inf-child.c (inf_child_can_use_agent): Likewise.
3180 * inflow.c (get_inflow_inferior_data): Likewise.
3181 * infrun.c (save_infcall_suspend_state): Likewise.
3182 * jit.c (jit_reader_load): Likewise.
3183 (get_jit_objfile_data): Likewise.
3184 (get_jit_program_space_data): Likewise.
3185 (jit_object_open_impl): Likewise.
3186 (jit_symtab_open_impl): Likewise.
3187 (jit_block_open_impl): Likewise.
3188 (jit_frame_sniffer): Likewise.
3189 * linux-fork.c (add_fork): Likewise.
3190 * maint.c (make_command_stats_cleanup): Likewise.
3191 * objfiles.c (get_objfile_pspace_data): Likewise.
3192 * opencl-lang.c (struct lval_closure): Likewise.
3193 * osdata.c (osdata_start_osdata): Likewise.
3194 * progspace.c (new_address_space): Likewise.
3195 (add_program_space): Likewise.
3196 * remote-sim.c (get_sim_inferior_data): Likewise.
3197 * sh-tdep.c (sh_gdbarch_init): Likewise.
3198 * skip.c (Ignore): Likewise.
3199 (skip_delete_command): Likewise.
3200 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3201 (library_list_start_library): Likewise.
3202 (solib_aix_current_sos): Likewise.
3203 * solib-darwin.c (get_darwin_info): Likewise.
3204 (darwin_current_sos): Likewise.
3205 * solib-dsbt.c (get_dsbt_info): Likewise.
3206 * solib-ia64-hpux.c (new_so_list): Likewise.
3207 (ia64_hpux_get_solib_linkage_addr): Likewise.
3208 * solib-spu.c (append_ocl_sos): Likewise.
3209 (spu_current_sos): Likewise.
3210 * solib-svr4.c (get_svr4_info): Likewise.
3211 (svr4_keep_data_in_core): Likewise.
3212 (library_list_start_library): Likewise.
3213 (svr4_default_sos): Likewise.
3214 (svr4_read_so_list): Likewise.
3215 * solib-target.c (library_list_start_library): Likewise.
3216 (solib_target_current_sos): Likewise.
3217 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3218 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3219 * symfile.c (default_symfile_segments): Likewise.
3220 * target-descriptions.c (tdesc_data_init): Likewise.
3221 (tdesc_create_reg): Likewise.
3222 (struct tdesc_type *): Likewise.
3223 (tdesc_create_vector): Likewise.
3224 (tdesc_set_struct_size): Likewise.
3225 (struct tdesc_type *): Likewise.
3226 (tdesc_free_feature): Likewise.
3227 (tdesc_create_feature): Likewise.
3228 * windows-nat.c (windows_add_thread): Likewise.
3229 (windows_make_so): Likewise.
3230 * xml-support.c (gdb_xml_body_text): Likewise.
3231 (gdb_xml_create_parser_and_cleanup): Likewise.
3232 (xml_process_xincludes): Likewise.
3233 * xml-syscall.c (allocate_syscalls_info): Likewise.
3234 (syscall_create_syscall_desc): Likewise.
3235
5acfdbae
SDJ
32362014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3237
3238 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3239 function, with code from i386_stap_parse_special_token.
3240 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3241 (i386_stap_parse_special_token): Move code to the two functions
3242 above; simplify it.
3243
0000e5cc
PA
32442014-01-09 Pedro Alves <palves@redhat.com>
3245 Hui Zhu <hui@codesourcery.com>
3246
3247 PR gdb/16101
3248 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3249 bp_err_string. Don't mark the location shlib_disabled if the
3250 error thrown wasn't a generic or memory error. Catch errors
3251 thrown while inserting breakpoints in overlayed code. Output
3252 error message of software breakpoints.
3253 * remote.c (remote_insert_breakpoint): If this breakpoint has
3254 target-side commands but this stub doesn't support Z0 packets,
3255 throw NOT_SUPPORTED_ERROR error.
3256 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3257 * target.h (target_insert_breakpoint): Extend comment.
3258 (target_insert_hw_breakpoint): Add comment.
3259
b7ea362b
PA
32602014-01-08 Pedro Alves <palves@redhat.com>
3261
3262 * remote.c (remote_add_thread): Add threads silently if starting
3263 up.
3264 (remote_notice_new_inferior): If in all-stop, and starting up,
3265 don't call notice_new_inferior.
3266 (get_current_thread): New function, factored out from ...
3267 (add_current_inferior_and_thread): ... this. Adjust.
3268 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3269 found any thread, then select the remote's current thread as GDB's
3270 current thread too.
3271
b7bba001
JB
32722014-01-08 Joel Brobecker <brobecker@adacore.com>
3273
3274 * NEWS: Create a new section for the next release branch.
3275 Rename the section of the current branch, now that it has
3276 been cut.
3277
16dfbded
JB
32782014-01-08 Joel Brobecker <brobecker@adacore.com>
3279
3280 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3281 * version.in: Bump version to 7.7.50.DATE-cvs.
3282
22c90ac1
YQ
32832014-01-08 Yao Qi <yao@codesourcery.com>
3284
3285 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3286 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3287 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3288
d64ad97c
YQ
32892014-01-08 Yao Qi <yao@codesourcery.com>
3290
3291 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3292 return value of bfd_get_filename to symbol_file_add_from_bfd.
3293
f93ba80c
PM
32942014-01-08 Pierre Muller <muller@sourceware.org>
3295
3296 Fix PR16201.
3297 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3298 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3299 to prim_record_mininal_symbol_and_info.
3300 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3301 in call to prim_record_minimal_symbol_and_info.
3302 (read_pe_exported_syms): Set index field of section_data.
3303
a4d9ba85
AP
33042014-01-07 Andrew Pinski <apinski@cavium.com>
3305
3306 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3307 * features/aarch64.c: Regenerate.
3308
1b67eb02
AS
33092014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3310
3311 * target.c (return_null): Define.
3312 (update_current_target): Use it instead of return_zero for
3313 functions that return a pointer.
3314
5e3f4fab
EBM
33152014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3316
3317 * source.c (add_path): Fix check for duplicated paths in the previously
3318 included paths.
3319
e2616788
HK
33202014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3321
3322 * ada-lang.c: Remove duplicated include statements.
3323 * alphabsd-nat.c: Ditto.
3324 * amd64-darwin-tdep.c: Ditto.
3325 * amd64fbsd-nat.c: Ditto.
3326 * auto-load.c: Ditto.
3327 * ax-gdb.c: Ditto.
3328 * breakpoint.c: Ditto.
3329 * dbxread.c: Ditto.
3330 * fork-child.c: Ditto.
3331 * gdb_usleep.c: Ditto.
3332 * i386-darwin-tdep.c: Ditto.
3333 * i386fbsd-nat.c: Ditto.
3334 * infcmd.c: Ditto.
3335 * inferior.c: Ditto.
3336 * jv-lang.c: Ditto.
3337 * linux-nat.c: Ditto.
3338 * linux-tdep.c: Ditto.
3339 * m68kbsd-nat.c: Ditto.
3340 * m68klinux-nat.c: Ditto.
3341 * microblaze-tdep.c: Ditto.
3342 * mips-linux-tdep.c: Ditto.
3343 * mn10300-tdep.c: Ditto.
3344 * nto-tdep.c: Ditto.
3345 * opencl-lang.c: Ditto.
3346 * osdata.c: Ditto.
3347 * printcmd.c: Ditto.
3348 * regcache.c: Ditto.
3349 * remote-m32r-sdi.c: Ditto.
3350 * remote.c: Ditto.
3351 * symfile.c: Ditto.
3352 * symtab.c: Ditto.
3353 * tilegx-linux-nat.c: Ditto.
3354 * tilegx-tdep.c: Ditto.
3355 * tracepoint.c: Ditto.
3356 * valops.c: Ditto.
3357 * vaxbsd-nat.c: Ditto.
3358 * windows-nat.c: Ditto.
3359 * xtensa-tdep.c: Ditto.
3360
bd1f7788
YQ
33612014-01-07 Yao Qi <yao@codesourcery.com>
3362
3363 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3364
79301218
JB
33652014-01-07 Yao Qi <yao@codesourcery.com>
3366 Joel Brobecker <brobecker@adacore.com>
3367
3368 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3369 (pdc_write_regs): Likewise.
3370 (fetch_regs_kernel_thread): Likewise.
3371 (store_regs_kernel_thread): Likewise.
3372
33732014-01-07 Joel Brobecker <brobecker@adacore.com>
3374
3375 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3376 tagged type objects to their actual type.
3377
8e355c5d
JB
33782014-01-07 Joel Brobecker <brobecker@adacore.com>
3379
3380 * ada-valprint.c (print_field_values): Add "language" parameter.
3381 Update calls to print_field_values and print_variant_part.
3382 Pass new parameter "language" in call to val_print instead
3383 of "current_language". Replace call to ada_val_print by call
3384 to val_print.
3385 (print_variant_part): Add "language" parameter.
3386 (ada_val_print_struct_union): Update call to print_field_values.
3387
4fbf5aa5
JB
33882014-01-07 Joel Brobecker <brobecker@adacore.com>
3389
3390 * ada-valprint.c (ui_memcpy): Delete.
3391 (ada_print_floating): Update documentation. Add empty line
3392 between between function documentation and implementation.
3393 Delete variable "buffer". Use ui_file_xstrdup in place of
3394 ui_file_put. Minor adjustments following this change.
3395
71855601
JB
33962014-01-07 Joel Brobecker <brobecker@adacore.com>
3397
3398 * ada-valprint.c (ada_val_print_string): New function,
3399 extracted from ada_val_print_array.
3400 (ada_val_print_array): Replace extracted code by call
3401 to ada_val_print_string followed by a return. Move
3402 "else" branch to the function's top block.
3403
4eb27a30
JB
34042014-01-07 Joel Brobecker <brobecker@adacore.com>
3405
3406 * ada-valprint.c (ada_val_print_array): Move implementation
3407 down. Rename parameter "offset" and "val" into "offset_aligned"
3408 and "original_value" respectively. Add parameter "offset".
3409
34b27950
JB
34102014-01-07 Joel Brobecker <brobecker@adacore.com>
3411
3412 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3413 re-organizing the code. Change the "???" message printed
3414 when target type is a TYPE_CODE_UNDEF into
3415 "<ref to undefined type>".
3416
079e4591
JB
34172014-01-07 Joel Brobecker <brobecker@adacore.com>
3418
3419 * ada-valprint.c (print_record): Delete, implementation inlined...
3420 (ada_val_print_struct_union): ... here. Remove call to
3421 ada_check_typedef in inlined implementation.
3422
8004dfd1
JB
34232014-01-07 Joel Brobecker <brobecker@adacore.com>
3424
3425 * ada-valprint.c (ada_val_print_gnat_array): New function,
3426 extracted from ada_val_print_1;
3427 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3428 (ada_val_print_flt, ada_val_print_struct_union)
3429 (ada_val_print_ref): Likewise.
3430 (ada_val_print_1): Delete variables i and elttype.
3431 Replace extracted-out code by call to corresponding
3432 new functions.
3433
760a2db0
JB
34342014-01-07 Joel Brobecker <brobecker@adacore.com>
3435
3436 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3437
3a92c861
JB
34382014-01-07 Joel Brobecker <brobecker@adacore.com>
3439
3440 * ada-valprint.c (ada_val_print_1): Replace calls to
3441 ada_val_print_1 by calls to val_print.
3442
cd1630f9
JB
34432014-01-07 Joel Brobecker <brobecker@adacore.com>
3444
3445 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3446 Update calls to self accordingly. Replace calls to c_val_print
3447 by calls to val_print.
3448
bdf779a0
JB
34492014-01-07 Joel Brobecker <brobecker@adacore.com>
3450
3451 * ada-valprint.c (print_record): Delete declaration.
3452 (adjust_type_signedness, ada_val_print_1): Likewise.
3453 (ada_val_print): Move function implementation down.
3454 (print_variant_part, print_field_values, print_record):
3455 Move function implementation up.
3456
c0d48811
JB
34572014-01-07 Joel Brobecker <brobecker@adacore.com>
3458
3459 * python/py-type.c (typy_get_name): New function.
3460 (type_object_getset): Add entry for attribute "name".
3461 * NEWS: Add entry mentioning this new attribute.
3462
c26e9cbb
YQ
34632014-01-07 Yao Qi <yao@codesourcery.com>
3464
3465 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3466 statement.
3467
0cc6f43d
YQ
34682014-01-07 Yao Qi <yao@codesourcery.com>
3469
3470 * gnu-nat.c (info_port_rights): Add qualifier const to
3471 argument args.
3472
eec03155
YQ
34732014-01-07 Yao Qi <yao@codesourcery.com>
3474
3475 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3476
f04a82ef
YQ
34772014-01-07 Yao Qi <yao@codesourcery.com>
3478
3479 * gnu-nat.c (make_inf) Update declaration.
3480 (make_inf): Make it static.
3481 (inf_set_traced): Likewise.
3482 (inf_port_to_thread, inf_task_died_status): Likewise.
3483
d57dda0a
YQ
34842014-01-07 Yao Qi <yao@codesourcery.com>
3485
3486 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3487
3aa8c969
YQ
34882014-01-07 Yao Qi <yao@codesourcery.com>
3489
3490 * gnu-nat.c (_initialize_gnu_nat): Declare.
3491
94123b4f
YQ
34922014-01-07 Yao Qi <yao@codesourcery.com>
3493
3494 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3495 'enum bfd_endian'.
3496 (struct gdbarch_info) <byte_order>: Change type to
3497 'enum bfd_endian'.
3498 <byte_order_for_code>: Likewise.
3499 * gdbarch.c, gdbarch.h: Regenerated.
3500
dc81d70a
TT
35012014-01-06 Sasha Smundak <asmundak@google.com>
3502
3503 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3504
cc2f3c35
TT
35052014-01-06 Tom Tromey <tromey@redhat.com>
3506
3507 * doublest.c (convert_doublest_to_floatformat): Use const, not
3508 CONST.
3509 * somread.c (som_symtab_read): Likewise.
3510
adcf2eed
HZ
35112014-01-07 Hui Zhu <hui@codesourcery.com>
3512
3513 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3514 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3515 (gdb_bfd_fopen): Ditto.
3516 (gdb_bfd_openr): Ditto.
3517 (gdb_bfd_openw): Ditto.
3518 (gdb_bfd_openr_iovec): Ditto.
3519 (gdb_bfd_fdopenr): Ditto.
3520 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3521 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3522 with xstrdup.
3523 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3524 with xstrdup.
3525 * symfile-mem.c (symbol_file_add_from_memory): Removed
3526 gdb_bfd_stash_filename.
3527
50722198
DE
35282014-01-03 Doug Evans <dje@google.com>
3529
3530 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3531 output.
3532
2fa4b862
JB
35332014-01-01 Joel Brobecker <brobecker@adacore.com>
3534
3535 Update year range in copyright notice of all files.
3536
28498c42
JB
35372014-01-01 Joel Brobecker <brobecker@adacore.com>
3538
3539 * top.c (print_gdb_version): Set copyright year to 2014.
3540
7b6e1046
JB
35412014-01-01 Joel Brobecker <brobecker@adacore.com>
3542
3543 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3544
df96af55 3545For older changes see ChangeLog-2013.
c906108c
SS
3546\f
3547Local Variables:
3548mode: change-log
3549left-margin: 8
3550fill-column: 74
3551version-control: never
57da7796 3552coding: utf-8
c906108c 3553End: