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