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