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