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