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