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