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