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