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