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