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