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