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