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