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