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