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