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