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