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