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