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