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