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