]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
record-btrace: add (reverse-)stepping support
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
52834460
MM
12014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2
3 * btrace.h (btrace_thread_flag): New.
4 (struct btrace_thread_info) <flags>: New.
5 * record-btrace.c (record_btrace_resume_thread)
6 (record_btrace_find_thread_to_move, btrace_step_no_history)
7 (btrace_step_stopped, record_btrace_start_replaying)
8 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9 (record_btrace_find_resume_thread): New.
10 (record_btrace_resume, record_btrace_wait): Extend.
11 (record_btrace_can_execute_reverse): New.
12 (record_btrace_open): Fail in non-stop mode.
13 (record_btrace_set_replay): Split into this, ...
14 (record_btrace_stop_replaying): ... this, ...
15 (record_btrace_clear_histories): ... and this.
16 (init_record_btrace_ops): Init to_can_execute_reverse.
17 * NEWS: Announce it.
18
118e6252
MM
192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
20
21 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
22 (forward_target_decr_pc_after_break)
23 (target_decr_pc_after_break): New.
24 * target.c (forward_target_decr_pc_after_break)
25 (target_decr_pc_after_break): New.
26 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
27 instead of gdbarch_decr_pc_after_break.
28 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
29 instead of gdbarch_decr_pc_after_break.
30 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
31 instead of gdbarch_decr_pc_after_break.
32 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
33 instead of gdbarch_decr_pc_after_break.
34 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
35 instead of gdbarch_decr_pc_after_break.
36 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
37 instead of gdbarch_decr_pc_after_break.
38
6e07b1d2
MM
392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
40
41 * btrace.c: Include regcache.h.
42 (btrace_add_pc): New.
43 (btrace_enable): Call btrace_add_pc.
44 (btrace_is_empty): New.
45 * btrace.h (btrace_is_empty): New.
46 * record-btrace.c (require_btrace, record_btrace_info): Call
47 btrace_is_empty.
48
969c39fb
MM
492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
50
51 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
52 Support delta reads.
53 (linux_disable_btrace): Change return type.
54 * common/linux-btrace.h (linux_read_btrace): Change parameters
55 and return type to allow error reporting. Update users.
56 (linux_disable_btrace): Change return type. Update users.
57 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
58 New.
59 (btrace_error): New.
60 (btrace_block) <begin>: Comment on BEGIN == 0.
61 * btrace.c (btrace_compute_ftrace): Start from the end of
62 the current trace.
63 (btrace_stitch_trace, btrace_clear_history): New.
64 (btrace_fetch): Read delta trace, return if replaying.
65 (btrace_clear): Move clear history code to btrace_clear_history.
66 (parse_xml_btrace): Throw an error if parsing failed.
67 * target.h (struct target_ops) <to_read_btrace>: Change parameters
68 and return type to allow error reporting.
69 (target_read_btrace): Change parameters and return type to allow
70 error reporting.
71 * target.c (target_read_btrace): Update.
72 * remote.c (remote_read_btrace): Support delta reads. Pass
73 errors on.
74 * NEWS: Announce it.
75
0b722aec
MM
762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
77
78 * record.h (record_btrace_frame_unwind)
79 (record_btrace_tailcall_frame_unwind): New declarations.
80 * dwarf2-frame: Include record.h
81 (dwarf2_frame_cfa): Throw an error for btrace frames.
82 * record-btrace.c: Include hashtab.h.
83 (btrace_get_bfun_name): New.
84 (btrace_call_history): Call btrace_get_bfun_name.
85 (struct btrace_frame_cache): New.
86 (bfcache): New.
87 (bfcache_hash, bfcache_eq, bfcache_new): New.
88 (btrace_get_frame_function): New.
89 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
90 (record_btrace_frame_this_id): Compute own id.
91 (record_btrace_frame_prev_register): Provide PC, throw_error
92 for all other registers.
93 (record_btrace_frame_sniffer): Detect btrace frames.
94 (record_btrace_tailcall_frame_sniffer): New.
95 (record_btrace_frame_dealloc_cache): New.
96 (record_btrace_frame_unwind): Add new functions.
97 (record_btrace_tailcall_frame_unwind): New.
98 (_initialize_record_btrace): Allocate cache.
99 * btrace.c (btrace_clear): Call reinit_frame_cache.
100 * NEWS: Announce it.
101
066ce621
MM
1022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
103
104 * record-btrace.c (record_btrace_set_replay)
105 (record_btrace_goto_begin, record_btrace_goto_end)
106 (record_btrace_goto): New.
107 (init_record_btrace_ops): Initialize them.
108 * NEWS: Announce it.
109
e2887aa3
MM
1102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
111
112 * record-btrace.c (record_btrace_find_new_threads)
113 (record_btrace_thread_alive): New.
114 (init_record_btrace_ops): Initialize to_find_new_threads and
115 to_thread_alive.
116
b2f4cfde
MM
1172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
118
119 * record-btrace.c (record_btrace_resume): New.
120 (record_btrace_wait): New.
121 (init_record_btrace_ops): Initialize to_wait and to_resume.
122
633785ff
MM
1232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
124
125 * record-btrace.c (record_btrace_xfer_partial)
126 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
127 (record_btrace_allow_memory_access): New.
128 (init_record_btrace_ops): Initialize new methods.
129 * target.c (raw_memory_xfer_partial): Bail out if target reports
130 that this memory is not available.
131
3db08215
MM
1322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
133
134 * target.h (target_ops) <to_insert_breakpoint>
135 <to_remove_breakpoint>: Add target_ops parameter.
136 (forward_target_insert_breakpoint): New.
137 (forward_target_remove_breakpoint): New.
138 (memory_remove_breakpoint, memory_insert_breakpoint):
139 Add target_ops parameter.
140 * target.c (target_insert_breakpoint): Split into this and ...
141 (forward_target_insert_breakpoint): ... this.
142 (target_remove_breakpoint): Split into this and ...
143 (forward_target_remove_breakpoint): ... this.
144 (debug_to_insert_breakpoint): Add target_ops parameter.
145 Call forward_target_insert_breakpoint.
146 (debug_to_remove_breakpoint): Add target_ops parameter.
147 Call forward_target_remove_breakpoint.
148 (update_current_target): Do not inherit or default to_insert_breakpoint
149 and to_remove_breakpoint.
150 * corelow.c (ignore): Add target_ops parameter.
151 * exec.c (ignore): Add target_ops parameter.
152 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
153 Add target_ops parameter.
154 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
155 Add target_ops parameter.
156 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
157 Add target_ops parameter.
158 * record-full.c (record_full_beneath_to_insert_breakpoint)
159 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
160 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
161 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
162 (record_full_core_remove_breakpoint): Add target_ops parameter.
163 Update users.
164 (record_full_beneath_to_insert_breakpoint_ops)
165 (record_full_beneath_to_remove_breakpoint_ops)
166 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
167 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
168 tmp_to_remove_breakpoint_ops,
169 record_full_beneath_to_insert_breakpoint_ops, and
170 record_full_beneath_to_remove_breakpoint_ops.
171 * remote-m32r-sdi.c (m32r_insert_breakpoint)
172 (m32r_remove_breakpoint): Add target_ops parameter.
173 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
174 Add target_ops parameter.
175 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
176 Add target_ops parameter.
177
cecac1ab
MM
1782014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
179 Markus Metzger <markus.t.metzger@intel.com>
180
181 * record-btrace.c: Include frame-unwind.h.
182 (record_btrace_frame_unwind_stop_reason)
183 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
184 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
185 New.
186 (init_record_btrace_ops): Install it.
187
824344ca
MM
1882014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
189
190 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
191 get_prev_frame_1.
192
32261e52
MM
1932014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
194
195 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
196 earlier.
197
ea001bdc
MM
1982014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
199
200 * frame-unwind.c: Include target.h.
201 (frame_unwind_try_unwinder): New function with code from ...
202 (frame_unwind_find_by_frame): ... here. New variable
203 unwinder_from_target, call also target_get_unwinder)
204 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
205 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
206 * target.h (struct target_ops): New fields to_get_unwinder and
207 to_get_tailcall_unwinder.
208 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
209
1f3ef581
MM
2102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
211
212 * record-btrace.c (record_btrace_fetch_registers)
213 (record_btrace_store_registers)
214 (record_btrace_to_prepare_to_store): New.
215 (init_record_btrace_ops): Add the above.
216
f32dbf8c
MM
2172014-01-16 Tom Tromey <tromey@redhat.com>
218
219 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
220 * target.h (struct target_ops) <to_prepare_to_store>: Add
221 argument.
222 (target_prepare_to_store): Add argument.
223 * target.c (debug_to_prepare_to_store): Add argument.
224 (update_current_target): Update.
225 * remote.c (remote_prepare_to_store): Add 'self' argument.
226 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
227 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
228 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
229 * record-full.c (record_full_core_prepare_to_store): Add 'self'
230 argument.
231 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
232 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
233 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
234 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
235 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
236
07bbe694
MM
2372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
238
239 * btrace.h (replay) <replay>: New.
240 (btrace_is_replaying): New.
241 * btrace.c (btrace_clear): Free replay iterator.
242 (btrace_is_replaying): New.
243 * record-btrace.c (record_btrace_is_replaying): New.
244 (record_btrace_info): Print insn number if replaying.
245 (record_btrace_insn_history): Start at replay position.
246 (record_btrace_call_history): Start at replay position.
247 (init_record_btrace_ops): Init to_record_is_replaying.
248
0688d04e
MM
2492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
250
251 * record-btrace.c (record_btrace_insn_history_range): Include
252 end.
253 (record_btrace_insn_history_from): Adjust range.
254 (record_btrace_call_history_range): Include
255 end.
256 (record_btrace_call_history_from): Adjust range.
257 * NEWS: Announce changes.
258
8710b709
MM
2592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
260
261 * record.h (enum record_print_flag)
262 <record_print_indent_calls>: New.
263 * record.c (get_call_history_modifiers): Recognize /c modifier.
264 (_initialize_record): Document /c modifier.
265 * record-btrace.c (btrace_call_history): Add btinfo parameter.
266 Reorder fields. Optionally indent the function name. Update
267 all users.
268 * NEWS: Announce changes.
269
d0fa7535
MM
2702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
271
272 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
273
5de9129b
MM
2742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
275
276 * btrace.c (ftrace_new_function): Start counting at one.
277 * record-btrace.c (record_btrace_info): Adjust number of calls
278 and insns.
279 * NEWS: Announce it.
280
7acbe133
MM
2812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
282
283 * record-btrace.c (btrace_call_history_insn_range): Print
284 insn range as [begin, end].
285
23a7fe75
MM
2862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
287
288 * btrace.h (struct btrace_func_link): New.
289 (enum btrace_function_flag): New.
290 (struct btrace_inst): Rename to ...
291 (struct btrace_insn): ...this. Update all users.
292 (struct btrace_func) <ibegin, iend>: Remove.
293 (struct btrace_func_link): New.
294 (struct btrace_func): Rename to ...
295 (struct btrace_function): ...this. Update all users.
296 (struct btrace_function) <segment, flow, up, insn, insn_offset)
297 (number, level, flags>: New.
298 (struct btrace_insn_iterator): Rename to ...
299 (struct btrace_insn_history): ...this.
300 Update all users.
301 (struct btrace_insn_iterator, btrace_call_iterator): New.
302 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
303 (struct btrace_target_info) <begin, end, level>
304 <insn_history, call_history>: New.
305 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
306 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
307 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
308 (btrace_call_number, btrace_call_begin, btrace_call_end)
309 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
310 (btrace_find_function_by_number, btrace_set_insn_history)
311 (btrace_set_call_history): New.
312 * btrace.c (btrace_init_insn_iterator)
313 (btrace_init_func_iterator, compute_itrace): Remove.
314 (ftrace_print_function_name, ftrace_print_filename)
315 (ftrace_skip_file): Change
316 parameter to const.
317 (ftrace_init_func): Remove.
318 (ftrace_debug): Use new btrace_function fields.
319 (ftrace_function_switched): Also consider gaining and
320 losing symbol information).
321 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
322 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
323 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
324 New.
325 (ftrace_new_function): Move. Remove debug print.
326 (ftrace_update_lines, ftrace_update_insns): New.
327 (ftrace_update_function): Check for call, ret, and jump.
328 (compute_ftrace): Renamed to ...
329 (btrace_compute_ftrace): ...this. Rewritten to compute call
330 stack.
331 (btrace_fetch, btrace_clear): Updated.
332 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
333 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
334 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
335 (btrace_call_number, btrace_call_begin, btrace_call_end)
336 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
337 (btrace_find_function_by_number, btrace_set_insn_history)
338 (btrace_set_call_history): New.
339 * record-btrace.c (require_btrace): Use new btrace thread
340 info fields.
341 (record_btrace_info, btrace_insn_history)
342 (record_btrace_insn_history, record_btrace_insn_history_range):
343 Use new btrace thread info fields and new iterator.
344 (btrace_func_history_src_line): Rename to ...
345 (btrace_call_history_src_line): ...this. Use new btrace
346 thread info fields.
347 (btrace_func_history): Rename to ...
348 (btrace_call_history): ...this. Use new btrace thread info
349 fields and new iterator.
350 (record_btrace_call_history, record_btrace_call_history_range):
351 Use new btrace thread info fields and new iterator.
352
8372a7cb
MM
3532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
354
355 * frame.h (frame_id_build_unavailable_stack_special): New.
356 * frame.c (frame_id_build_unavailable_stack_special): New.
357
c2170eef
MM
3582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
359
360 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
361 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
362 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
363 to gdbarch.
364 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
365 (i386_insn_is_jump, i386_jmp_p): New.
366 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
367 insn_is_jump to gdbarch.
368 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
369 * gdbarch.h: Regenerated.
370 * gdbarch.c: Regenerated.
371 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
372 (default_insn_is_jump): New.
373 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
374 (default_insn_is_jump): New.
375
864089d2
MM
3762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
377
378 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
379 Change to ...
380 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
381 (btrace_read_type) <btrace_read_new>: Change to ...
382 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
383
ed9edfb5
MM
3842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
385
386 * common/linux-btrace.c (linux_read_btrace): Free trace from
387 previous iteration.
388
fbcbc3fd
DE
3892014-01-15 Doug Evans <dje@google.com>
390
391 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
392 uint32_t.
393
3d548a53
TT
3942014-01-15 Tom Tromey <tromey@redhat.com>
395
396 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
397 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
398 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
399 (set_objfile_main_name): New function.
400 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
401 language_of_main>: New fields.
402 (set_objfile_main_name): Declare.
403 * symtab.c (find_main_name): Loop over objfiles to find the main
404 name and language.
405 (set_main_name): Now static.
406 (get_main_info): Add comment.
407 * symtab.h (set_main_name): Don't declare.
408
32ac0d11
TT
4092014-01-15 Tom Tromey <tromey@redhat.com>
410
411 * symtab.c (main_progspace_key): New global.
412 (struct main_info): New.
413 (name_of_main, language_of_main): Remove.
414 (get_main_info, main_info_cleanup): New function.
415 (set_main_name, main_name, main_language): Use get_main_info.
416 (_initialize_symtab): Initialize main_progspace_key.
417
9e6c82ad
TT
4182014-01-15 Tom Tromey <tromey@redhat.com>
419
420 * dbxread.c (process_one_symbol): Update.
421 * dwarf2read.c (read_partial_die): Update.
422 * symfile.c (set_initial_language): Call main_language.
423 * symtab.c (language_of_main): Now static.
424 (set_main_name): Add 'lang' parameter.
425 (find_main_name): Update.
426 (main_language): New function.
427 (symtab_observer_executable_changed): Update.
428 * symtab.h (set_main_name): Update.
429 (language_of_main): Remove.
430 (main_language): Declare.
431
6ef55de7
TT
4322014-01-15 Tom Tromey <tromey@redhat.com>
433
434 * symfile.c (init_entry_point_info): Use new "initialized" field.
435 Update.
436 * objfiles.h (struct entry_point) <initialized>: New field.
437 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
438 (struct objfile) <ei>: ...here. Remove.
439 * objfiles.c (entry_point_address_query): Update.
440
53eddfa6
TT
4412014-01-15 Tom Tromey <tromey@redhat.com>
442
443 * objfiles.c (entry_point_address_query): Relocate entry point
444 address.
445 (objfile_relocate1): Do not relocate entry point address.
446 * objfiles.h (struct entry_info) <entry_point>: Update comment.
447 <the_bfd_section_index>: New field.
448 * symfile.c (init_entry_point_info): Find the entry point's
449 section.
450
d56e56aa
TT
4512014-01-15 Tom Tromey <tromey@redhat.com>
452
453 * solib-frv.c (enable_break): Use entry_point_address_query.
454
33a97bbe
OJ
4552014-01-15 Omair Javaid <omair.javaid@linaro.org>
456
457 * NEWS: Add note on improved process record-replay on
458 arm*-linux* targets.
459
c6ec2b30
OJ
4602014-01-15 Omair Javaid <omair.javaid@linaro.org>
461
462 * arm-tdep.c (enum arm_record_result): New enum.
463 (arm_record_unsupported_insn): New function.
464 (arm_record_coproc_data_proc): Removed.
465 (thumb2_record_ld_st_multiple): New function.
466 (thumb2_record_ld_st_dual_ex_tbb): New function.
467 (thumb2_record_data_proc_sreg_mimm): New function.
468 (thumb2_record_ps_dest_generic): New function.
469 (thumb2_record_branch_misc_cntrl): New function.
470 (thumb2_record_str_single_data): New function.
471 (thumb2_record_ld_mem_hints): New function.
472 (thumb2_record_ld_word): New function.
473 (thumb2_record_lmul_lmla_div): New function.
474 (thumb2_record_decode_insn_handler): New function.
475 (decode_insn): Add thumb32 instruction handlers.
476
97dfe206
OJ
4772014-01-15 Omair Javaid <omair.javaid@linaro.org>
478
479 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
480 (struct arm_linux_record_tdep): Declare.
481 (arm_canonicalize_syscall): New function.
482 (arm_all_but_pc_registers_record): New function.
483 (arm_linux_syscall_record): New function.
484 (arm_linux_init_abi): Add syscall recording constructs.
485 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
486 decoding. (arm_record_coproc_data_proc): Update arm syscall
487 decoding.
488 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
489 <arm_syscall_record>: New field.
490 * configure.tgt (arm*-*-linux*): Add linux-record.o to
491 gdb_target_obs.
492
9904a494
OJ
4932014-01-15 Omair Javaid <omair.javaid@linaro.org>
494
495 * arm-tdep.c (thumb_record_misc): Update to use sp as base
496 register for push instruction recording.
497
f969241e
OJ
4982014-01-15 Omair Javaid <omair.javaid@linaro.org>
499
500 * arm-tdep.c (thumb_record_misc): Update to correct logical
501 error while recording ldm, ldmia and pop instructions.
502
bfbbec00
OJ
5032014-01-15 Omair Javaid <omair.javaid@linaro.org>
504
505 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
506
e40adcc9
PA
5072014-01-15 Pedro Alves <palves@redhat.com>
508
509 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
510 (go32_resume, go32_fetch_registers, store_register)
511 (go32_store_registers, go32_prepare_to_store)
512 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
513 (go32_create_inferior, go32_can_run, go32_terminal_init)
514 (go32_terminal_inferior, go32_terminal_ours): Delete forward
515 declarations.
516
b0a16e66
TT
5172014-01-15 Tom Tromey <tromey@redhat.com>
518
519 * target.h (async_callback_ftype): New typedef.
520 (struct target_ops) <to_async>: Use it.
521
bf7105a4
JB
5222014-01-15 Joel Brobecker <brobecker@adacore.com>
523
524 * python/py-value.c (get_field_type): Remove unnecessary curly
525 braces for single-statement if block.
526
a8f35c2e
JB
5272014-01-15 Joel Brobecker <brobecker@adacore.com>
528
529 * python/py-type.c (convert_field): Add missing empty line
530 after declarations.
531
bb4142cf
DE
5322014-01-14 Doug Evans <dje@google.com>
533
534 * symfile.h (expand_symtabs_matching): Renamed from
535 expand_partial_symbol_names. Update prototype.
536 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
537 * symfile.c (expand_symtabs_matching): Renamed from
538 expand_partial_symbol_names. New args file_matcher, kind.
539 Rename arg fun to symbol_matcher.
540 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
541 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
542 ada_expand_partial_symbol_name.
543 (ada_make_symbol_completion_list): Update to call
544 expand_symtabs_matching.
545 (ada_add_global_exceptions): Call expand_symtabs_matching.
546 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
547 call map_symbol_filenames.
548 * symtab.c (sources_info): Update to call map_symbol_filenames.
549 (search_symbols): Call expand_symtabs_matching.
550 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
551 (default_make_symbol_completion_list_break_on): Update to call
552 expand_symtabs_matching.
553 (make_source_files_completion_list): Update to call
554 map_symbol_filenames.
555
206f2a57
DE
5562014-01-14 Doug Evans <dje@google.com>
557
558 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
559 (expand_symtabs_symbol_matcher_ftype): New typedef.
560 (quick_symbol_functions.expand_symtabs_matching): Update to use.
561 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
562 * symfile.c (expand_partial_symbol_names): Update to use
563 expand_symtabs_symbol_matcher_ftype.
564 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
565 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
566 Arg name_matcher renamed to symbol_matcher.
567 * psymtab.c (recursively_search_psymtabs): Update to use
568 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
569 sym_matcher.
570 (expand_symtabs_matching_via_partial): Update to use
571 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
572 Arg name_matcher renamed to symbol_matcher.
573
540c2971
DE
5742014-01-14 Doug Evans <dje@google.com>
575
576 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
577 (map_partial_symbol_filenames): Ditto.
578 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
579 (map_partial_symbol_filenames): Ditto.
580 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
581 (map_partial_symbol_filenames): Ditto.
582 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
583 (map_partial_symbol_filenames): Ditto.
584 * symtab.c: Delete #include "psymtab.h".
585
8213266a
PA
5862014-01-14 Pedro Alves <palves@redhat.com>
587 Tom Tromey <tromey@redhat.com>
588
589 * infrun.c (use_displaced_stepping): Use find_record_target
590 instead of RECORD_IS_USED.
591 (adjust_pc_after_break): Use record_full_is_used instead of
592 RECORD_IS_USED.
593 * record-btrace.c (record_btrace_open): Call record_preopen
594 instead of checking RECORD_IS_USED.
595 * record-full.c (record_full_shortname)
596 (record_full_core_shortname): New globals.
597 (record_full_is_used): New function.
598 (find_full_open): Call record_preopen instead of checking
599 RECORD_IS_USED.
600 (init_record_full_ops): Set the target's shortname to
601 record_full_shortname.
602 (init_record_full_core_ops): Set the target's shortname to
603 record_full_core_shortname.
604 * record-full.h (record_full_is_used): Declare.
605 * record.c (find_record_target): Make extern.
606 (record_preopen): New function.
607 * record.h (RECORD_IS_USED): Delete macro.
608 (find_record_target, record_preopen): Declare functions.
609
7ec1862d
YQ
6102014-01-14 Yao Qi <yao@codesourcery.com>
611
612 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
613 'len''s type to ULONGEST.
614 (core_xfer_shared_libraries_aix): Likewise.
615 * gdbarch.c, gdbarch.h: Regenerated.
616 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
617 Change type of 'len' to ULONGEST.
618 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
619 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
620
dea80a27
YQ
6212014-01-14 Yao Qi <yao@codesourcery.com>
622
623 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
624 type of 'len' to ULONGEST.
625 (linux_xfer_osdata_processgroups): Likewise.
626 (linux_xfer_osdata_threads): Likewise.
627 (linux_xfer_osdata_fds): Likewise.
628 (linux_xfer_osdata_isockets): Likewise.
629 (linux_xfer_osdata_shm): Likewise.
630 (linux_xfer_osdata_sem): Likewise.
631 (linux_xfer_osdata_msg): Likewise.
632 (linux_common_xfer_osdata): Likewise.
633 (struct osdata_type) <getter>: Likewise.
634 * common/linux-osdata.h (linux_common_xfer_osdata): Update
635 the declaration.
636
b55e14c7
YQ
6372014-01-14 Yao Qi <yao@codesourcery.com>
638
639 * target.h (target_xfer_partial_ftype): Update.
640 (struct target_ops) <to_xfer_partial>: Change 'len' type to
641 ULONGEST.
642 * aix-thread.c (aix_thread_xfer_partial): Change type of
643 argument 'len' to ULONGEST.
644 * auxv.c (procfs_xfer_auxv): Likewise.
645 (ld_so_xfer_auxv): Likewise.
646 (memory_xfer_auxv): Likewise.
647 * bfd-target.c (target_bfd_xfer_partial): Likewise.
648 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
649 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
650 * corelow.c (core_xfer_partial): Likewise.
651 * ctf.c (ctf_xfer_partial): Likewise.
652 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
653 '%u'.
654 (darwin_read_dyld_info): Likewise.
655 (darwin_xfer_partial): Likewise.
656 * exec.c (section_table_xfer_memory_partial): Likewise.
657 (exec_xfer_partial): Likewise.
658 * exec.h (section_table_xfer_memory_partial): Update
659 declaration.
660 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
661 instead of plongest.
662 (gnu_xfer_partial): Likewise.
663 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
664 (ia64_hpux_xfer_solib_got): Likewise.
665 (ia64_hpux_xfer_partial): Likewise.
666 * ia64-linux-nat.c (ia64_linux_xfer_partial):
667 * inf-ptrace.c (inf_ptrace_xfer_partial):
668 * inf-ttrace.c (inf_ttrace_xfer_partial):
669 * linux-nat.c (linux_xfer_siginfo): Likewise.
670 (linux_nat_xfer_partial): Likewise.
671 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
672 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
673 * monitor.c (monitor_xfer_memory): Likewise.
674 (monitor_xfer_partial): Likewise.
675 * procfs.c (procfs_xfer_partial): Likewise.
676 * record-full.c (record_full_xfer_partial): Likewise.
677 (record_full_core_xfer_partial): Likewise.
678 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
679 instead of plongest.
680 (gdbsim_xfer_partial): Likewise.
681 * remote.c (remote_xfer_partial): Likewise.
682 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
683 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
684 declaration.
685 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
686 (rs6000_xfer_shared_libraries): Likewise.
687 * sol-thread.c (sol_thread_xfer_partial): Likewise.
688 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
689 (sparc_xfer_partial): Likewise.
690 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
691 (spu_xfer_partial): Likewise.
692 * spu-multiarch.c (spu_xfer_partial): Likewise.
693 * target.c (target_read_live_memory): Likewise.
694 (memory_xfer_live_readonly_partial): Likewise.
695 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
696 (target_xfer_partial, default_xfer_partial): Likewise.
697 (current_xfer_partial): Likewise.
698 * tracepoint.c (tfile_xfer_partial): Likewise.
699 * windows-nat.c (windows_xfer_memory): Likewise. Call
700 pulongest instead of plongest.
701 (windows_xfer_partial): Likewise.
702 (windows_xfer_shared_libraries): Likewise.
703
05804640
YQ
7042014-01-14 Yao Qi <yao@codesourcery.com>
705
706 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
707 target_xfer_partial_ftype.
708
b5b08fb4
SC
7092014-01-13 Siva Chandra Reddy <sivachandra@google.com>
710
711 PR python/15464
712 PR python/16113
713 * valops.c (value_struct_elt_bitpos): New function
714 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
715 object to 'None' if the field name is an empty string ("").
716 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
717 attribute to look for a field when 'name' is 'None'.
718 (get_field_type): New function
719
13aaf454
DE
7202014-01-13 Doug Evans <dje@google.com>
721
722 PR symtab/16426
723 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
724 (try_open_dwop_file): Ditto.
725 * gdb_bfd.c: #include "vec.h".
726 (bfdp): New typedef.
727 (struct gdb_bfd_data): New member included_bfds.
728 (gdb_bfd_unref): Unref all included bfds.
729 (gdb_bfd_record_inclusion): New function.
730 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
731
c2cec97c
TT
7322014-01-13 Tom Tromey <tromey@redhat.com>
733
734 * gdbcore.h (deprecated_core_resize_section_table): Remove.
735
78e5999d
TT
7362014-01-13 Tom Tromey <tromey@redhat.com>
737
738 * defs.h (use_windows): Remove.
739 * gdb.c (main): Update.
740 * main.c (captured_main, gdb_main): Update.
741 * main.h (struct captured_main_args) <use_windows>: Remove.
742 * top.c (use_windows): Remove.
743
f2052bbe
TT
7442014-01-13 Tom Tromey <tromey@redhat.com>
745
746 * defs.h (deprecated_flush_hook): Remove.
747
fde4f8ed
JK
7482014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
749
750 PR threads/16216
751 * linux-thread-db.c (try_thread_db_load): Add parameter
752 check_auto_load_safe. Move here the file_is_auto_load_safe call.
753 (try_thread_db_load_from_pdir_1): Move it there from here.
754 (try_thread_db_load_from_sdir): Update caller.
755 (try_thread_db_load_from_dir): Move it there from here.
756
bdf61915
PP
7572014-01-13 Patrick Palka <patrick@parcs.ath.cx>
758
759 * regformats/regdat.sh: Always rewrite the register file.
760
f71e1a8d
PA
7612014-01-13 Pedro Alves <palves@redhat.com>
762
763 * Makefile.in (CHECK_HEADERS): New variable.
764 (check-headers:): New rule.
765
42c85435
TT
7662014-01-13 Tom Tromey <tromey@redhat.com>
767
768 * cli/cli-setshow.c (do_set_command): Update.
769 * defs.h (deprecated_set_hook): Remove.
770 * top.c (deprecated_set_hook): Remove.
771
f8de5129
PA
7722014-01-13 Pedro Alves <palves@redhat.com>
773
774 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
775 the tracepoint if the PC is a pseudo-register.
776
fc270c35
TT
7772014-01-13 Tom Tromey <tromey@redhat.com>
778
779 * defs.h (XCALLOC): Remove.
780 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
781 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
782 * dwarf2loc.c (allocate_piece_closure): Likewise.
783 * elfread.c (elf_symfile_segments): Likewise.
784 (elf_symfile_segments): Likewise.
785 * gdbtypes.c (copy_type_recursive): Likewise.
786 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
787 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
788 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
789 XCALLOC.
790 * mt-tdep.c (mt_gdbarch_init): Likewise.
791 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
792 XCALLOC.
793 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
794 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
795 * registry.c (registry_alloc_data): Likewise.
796 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
797 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
798 * serial.c (serial_fdopen_ops): Likewise.
799 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
800 XCALLOC.
801 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
802 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
803 not XCALLOC.
804
70ba0933
TT
8052014-01-13 Tom Tromey <tromey@redhat.com>
806
807 * defs.h (XMALLOC): Remove.
808 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
809 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
810 * cli-out.c (struct ui_out *): Likewise.
811 * cli/cli-dump.c (add_dump_command): Likewise.
812 (add_dump_command): Likewise.
813 * complaints.c (get_complaints): Likewise.
814 (find_complaint): Likewise.
815 * dwarf2-frame.c (execute_cfa_program): Likewise.
816 * dwarf2read.c (abbrev_table_read_table): Likewise.
817 * gdbarch.sh: Likewise.
818 * gdbarch.c: Rebuild.
819 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
820 * interps.c (interp_new): Likewise.
821 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
822 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
823 * mi/mi-console.c (mi_console_file_new): Likewise.
824 * mi/mi-interp.c (mi_interpreter_init): Likewise.
825 * mi/mi-out.c (mi_out_new): Likewise.
826 * mi/mi-parse.c (mi_parse): Likewise.
827 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
828 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
829 * observer.c (xalloc_observer_list_node): Likewise.
830 * regcache.c (regcache_xmalloc_1): Likewise.
831 * reggroups.c (reggroup_new): Likewise.
832 (_initialize_reggroup): Likewise.
833 * registry.c (register_data_with_cleanup): Likewise.
834 * remote.c (remote_notif_stop_alloc_reply): Likewise.
835 * ser-base.c (serial_ttystate): Likewise.
836 * ser-mingw.c (make_pipe_state): Likewise.
837 * ser-pipe.c (pipe_open): Likewise.
838 * serial.c (serial_open): Likewise.
839 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
840 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
841 (tui_alloc_win_info): Likewise.
842 (tui_add_content_elements): Likewise.
843 * tui/tui-file.c (tui_file_new): Likewise.
844 * tui/tui-out.c (tui_out_new): Likewise.
845 * ui-file.c (mem_file_new): Likewise.
846 * ui-out.c (push_level): Likewise.
847 (make_cleanup_ui_out_end): Likewise.
848 (append_header_to_list): Likewise.
849 (ui_out_new): Likewise.
850 * user-regs.c (user_reg_add_builtin): Likewise.
851
41bf6aca
TT
8522014-01-13 Tom Tromey <tromey@redhat.com>
853
854 * defs.h (XZALLOC): Remove.
855 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
856 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
857 (get_ada_tasks_inferior_data): Likewise.
858 * auto-load.c (get_auto_load_pspace_data): Likewise.
859 * auxv.c (get_auxv_inferior_data): Likewise.
860 * bfd-target.c (target_bfd_reopen): Likewise.
861 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
862 (deprecated_insert_raw_breakpoint): Likewise.
863 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
864 * corelow.c (core_open): Likewise.
865 * darwin-nat.c (darwin_check_new_threads): Likewise.
866 (darwin_attach_pid): Likewise.
867 * dummy-frame.c (dummy_frame_push): Likewise.
868 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
869 * dwarf2loc.c (allocate_piece_closure): Likewise.
870 * elfread.c (elf_symfile_segments): Likewise.
871 * eval.c (ptrmath_type_p): Likewise.
872 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
873 * gdbtypes.c (alloc_type_arch): Likewise.
874 (alloc_type_instance): Likewise.
875 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
876 * inf-child.c (inf_child_can_use_agent): Likewise.
877 * inflow.c (get_inflow_inferior_data): Likewise.
878 * infrun.c (save_infcall_suspend_state): Likewise.
879 * jit.c (jit_reader_load): Likewise.
880 (get_jit_objfile_data): Likewise.
881 (get_jit_program_space_data): Likewise.
882 (jit_object_open_impl): Likewise.
883 (jit_symtab_open_impl): Likewise.
884 (jit_block_open_impl): Likewise.
885 (jit_frame_sniffer): Likewise.
886 * linux-fork.c (add_fork): Likewise.
887 * maint.c (make_command_stats_cleanup): Likewise.
888 * objfiles.c (get_objfile_pspace_data): Likewise.
889 * opencl-lang.c (struct lval_closure): Likewise.
890 * osdata.c (osdata_start_osdata): Likewise.
891 * progspace.c (new_address_space): Likewise.
892 (add_program_space): Likewise.
893 * remote-sim.c (get_sim_inferior_data): Likewise.
894 * sh-tdep.c (sh_gdbarch_init): Likewise.
895 * skip.c (Ignore): Likewise.
896 (skip_delete_command): Likewise.
897 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
898 (library_list_start_library): Likewise.
899 (solib_aix_current_sos): Likewise.
900 * solib-darwin.c (get_darwin_info): Likewise.
901 (darwin_current_sos): Likewise.
902 * solib-dsbt.c (get_dsbt_info): Likewise.
903 * solib-ia64-hpux.c (new_so_list): Likewise.
904 (ia64_hpux_get_solib_linkage_addr): Likewise.
905 * solib-spu.c (append_ocl_sos): Likewise.
906 (spu_current_sos): Likewise.
907 * solib-svr4.c (get_svr4_info): Likewise.
908 (svr4_keep_data_in_core): Likewise.
909 (library_list_start_library): Likewise.
910 (svr4_default_sos): Likewise.
911 (svr4_read_so_list): Likewise.
912 * solib-target.c (library_list_start_library): Likewise.
913 (solib_target_current_sos): Likewise.
914 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
915 * symfile-debug.c (install_symfile_debug_logging): Likewise.
916 * symfile.c (default_symfile_segments): Likewise.
917 * target-descriptions.c (tdesc_data_init): Likewise.
918 (tdesc_create_reg): Likewise.
919 (struct tdesc_type *): Likewise.
920 (tdesc_create_vector): Likewise.
921 (tdesc_set_struct_size): Likewise.
922 (struct tdesc_type *): Likewise.
923 (tdesc_free_feature): Likewise.
924 (tdesc_create_feature): Likewise.
925 * windows-nat.c (windows_add_thread): Likewise.
926 (windows_make_so): Likewise.
927 * xml-support.c (gdb_xml_body_text): Likewise.
928 (gdb_xml_create_parser_and_cleanup): Likewise.
929 (xml_process_xincludes): Likewise.
930 * xml-syscall.c (allocate_syscalls_info): Likewise.
931 (syscall_create_syscall_desc): Likewise.
932
5acfdbae
SDJ
9332014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
934
935 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
936 function, with code from i386_stap_parse_special_token.
937 (i386_stap_parse_special_token_three_arg_disp): Likewise.
938 (i386_stap_parse_special_token): Move code to the two functions
939 above; simplify it.
940
0000e5cc
PA
9412014-01-09 Pedro Alves <palves@redhat.com>
942 Hui Zhu <hui@codesourcery.com>
943
944 PR gdb/16101
945 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
946 bp_err_string. Don't mark the location shlib_disabled if the
947 error thrown wasn't a generic or memory error. Catch errors
948 thrown while inserting breakpoints in overlayed code. Output
949 error message of software breakpoints.
950 * remote.c (remote_insert_breakpoint): If this breakpoint has
951 target-side commands but this stub doesn't support Z0 packets,
952 throw NOT_SUPPORTED_ERROR error.
953 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
954 * target.h (target_insert_breakpoint): Extend comment.
955 (target_insert_hw_breakpoint): Add comment.
956
b7ea362b
PA
9572014-01-08 Pedro Alves <palves@redhat.com>
958
959 * remote.c (remote_add_thread): Add threads silently if starting
960 up.
961 (remote_notice_new_inferior): If in all-stop, and starting up,
962 don't call notice_new_inferior.
963 (get_current_thread): New function, factored out from ...
964 (add_current_inferior_and_thread): ... this. Adjust.
965 (remote_start_remote) <all-stop>: Fetch the thread list. If we
966 found any thread, then select the remote's current thread as GDB's
967 current thread too.
968
b7bba001
JB
9692014-01-08 Joel Brobecker <brobecker@adacore.com>
970
971 * NEWS: Create a new section for the next release branch.
972 Rename the section of the current branch, now that it has
973 been cut.
974
16dfbded
JB
9752014-01-08 Joel Brobecker <brobecker@adacore.com>
976
977 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
978 * version.in: Bump version to 7.7.50.DATE-cvs.
979
22c90ac1
YQ
9802014-01-08 Yao Qi <yao@codesourcery.com>
981
982 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
983 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
984 (spu_xfer_partial): Cast 'buf' to 'const char *'.
985
d64ad97c
YQ
9862014-01-08 Yao Qi <yao@codesourcery.com>
987
988 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
989 return value of bfd_get_filename to symbol_file_add_from_bfd.
990
f93ba80c
PM
9912014-01-08 Pierre Muller <muller@sourceware.org>
992
993 Fix PR16201.
994 * coff-pe-read.c (struct read_pe_section_data): Add index field.
995 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
996 to prim_record_mininal_symbol_and_info.
997 (add_pe_forwarded_sym): Use known section number of forwarded symbol
998 in call to prim_record_minimal_symbol_and_info.
999 (read_pe_exported_syms): Set index field of section_data.
1000
a4d9ba85
AP
10012014-01-07 Andrew Pinski <apinski@cavium.com>
1002
1003 * features/aarch64-core.xml (cpsr): Change to be 64bit.
1004 * features/aarch64.c: Regenerate.
1005
1b67eb02
AS
10062014-01-07 Andreas Schwab <schwab@linux-m68k.org>
1007
1008 * target.c (return_null): Define.
1009 (update_current_target): Use it instead of return_zero for
1010 functions that return a pointer.
1011
5e3f4fab
EBM
10122014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1013
1014 * source.c (add_path): Fix check for duplicated paths in the previously
1015 included paths.
1016
e2616788
HK
10172014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
1018
1019 * ada-lang.c: Remove duplicated include statements.
1020 * alphabsd-nat.c: Ditto.
1021 * amd64-darwin-tdep.c: Ditto.
1022 * amd64fbsd-nat.c: Ditto.
1023 * auto-load.c: Ditto.
1024 * ax-gdb.c: Ditto.
1025 * breakpoint.c: Ditto.
1026 * dbxread.c: Ditto.
1027 * fork-child.c: Ditto.
1028 * gdb_usleep.c: Ditto.
1029 * i386-darwin-tdep.c: Ditto.
1030 * i386fbsd-nat.c: Ditto.
1031 * infcmd.c: Ditto.
1032 * inferior.c: Ditto.
1033 * jv-lang.c: Ditto.
1034 * linux-nat.c: Ditto.
1035 * linux-tdep.c: Ditto.
1036 * m68kbsd-nat.c: Ditto.
1037 * m68klinux-nat.c: Ditto.
1038 * microblaze-tdep.c: Ditto.
1039 * mips-linux-tdep.c: Ditto.
1040 * mn10300-tdep.c: Ditto.
1041 * nto-tdep.c: Ditto.
1042 * opencl-lang.c: Ditto.
1043 * osdata.c: Ditto.
1044 * printcmd.c: Ditto.
1045 * regcache.c: Ditto.
1046 * remote-m32r-sdi.c: Ditto.
1047 * remote.c: Ditto.
1048 * symfile.c: Ditto.
1049 * symtab.c: Ditto.
1050 * tilegx-linux-nat.c: Ditto.
1051 * tilegx-tdep.c: Ditto.
1052 * tracepoint.c: Ditto.
1053 * valops.c: Ditto.
1054 * vaxbsd-nat.c: Ditto.
1055 * windows-nat.c: Ditto.
1056 * xtensa-tdep.c: Ditto.
1057
bd1f7788
YQ
10582014-01-07 Yao Qi <yao@codesourcery.com>
1059
1060 * spu-linux-nat.c (_initialize_spu_nat): Declare.
1061
79301218
JB
10622014-01-07 Yao Qi <yao@codesourcery.com>
1063 Joel Brobecker <brobecker@adacore.com>
1064
1065 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
1066 (pdc_write_regs): Likewise.
1067 (fetch_regs_kernel_thread): Likewise.
1068 (store_regs_kernel_thread): Likewise.
1069
10702014-01-07 Joel Brobecker <brobecker@adacore.com>
1071
1072 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
1073 tagged type objects to their actual type.
1074
8e355c5d
JB
10752014-01-07 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-valprint.c (print_field_values): Add "language" parameter.
1078 Update calls to print_field_values and print_variant_part.
1079 Pass new parameter "language" in call to val_print instead
1080 of "current_language". Replace call to ada_val_print by call
1081 to val_print.
1082 (print_variant_part): Add "language" parameter.
1083 (ada_val_print_struct_union): Update call to print_field_values.
1084
4fbf5aa5
JB
10852014-01-07 Joel Brobecker <brobecker@adacore.com>
1086
1087 * ada-valprint.c (ui_memcpy): Delete.
1088 (ada_print_floating): Update documentation. Add empty line
1089 between between function documentation and implementation.
1090 Delete variable "buffer". Use ui_file_xstrdup in place of
1091 ui_file_put. Minor adjustments following this change.
1092
71855601
JB
10932014-01-07 Joel Brobecker <brobecker@adacore.com>
1094
1095 * ada-valprint.c (ada_val_print_string): New function,
1096 extracted from ada_val_print_array.
1097 (ada_val_print_array): Replace extracted code by call
1098 to ada_val_print_string followed by a return. Move
1099 "else" branch to the function's top block.
1100
4eb27a30
JB
11012014-01-07 Joel Brobecker <brobecker@adacore.com>
1102
1103 * ada-valprint.c (ada_val_print_array): Move implementation
1104 down. Rename parameter "offset" and "val" into "offset_aligned"
1105 and "original_value" respectively. Add parameter "offset".
1106
34b27950
JB
11072014-01-07 Joel Brobecker <brobecker@adacore.com>
1108
1109 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
1110 re-organizing the code. Change the "???" message printed
1111 when target type is a TYPE_CODE_UNDEF into
1112 "<ref to undefined type>".
1113
079e4591
JB
11142014-01-07 Joel Brobecker <brobecker@adacore.com>
1115
1116 * ada-valprint.c (print_record): Delete, implementation inlined...
1117 (ada_val_print_struct_union): ... here. Remove call to
1118 ada_check_typedef in inlined implementation.
1119
8004dfd1
JB
11202014-01-07 Joel Brobecker <brobecker@adacore.com>
1121
1122 * ada-valprint.c (ada_val_print_gnat_array): New function,
1123 extracted from ada_val_print_1;
1124 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
1125 (ada_val_print_flt, ada_val_print_struct_union)
1126 (ada_val_print_ref): Likewise.
1127 (ada_val_print_1): Delete variables i and elttype.
1128 Replace extracted-out code by call to corresponding
1129 new functions.
1130
760a2db0
JB
11312014-01-07 Joel Brobecker <brobecker@adacore.com>
1132
1133 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
1134
3a92c861
JB
11352014-01-07 Joel Brobecker <brobecker@adacore.com>
1136
1137 * ada-valprint.c (ada_val_print_1): Replace calls to
1138 ada_val_print_1 by calls to val_print.
1139
cd1630f9
JB
11402014-01-07 Joel Brobecker <brobecker@adacore.com>
1141
1142 * ada-valprint.c (ada_val_print_1): Add parameter "language".
1143 Update calls to self accordingly. Replace calls to c_val_print
1144 by calls to val_print.
1145
bdf779a0
JB
11462014-01-07 Joel Brobecker <brobecker@adacore.com>
1147
1148 * ada-valprint.c (print_record): Delete declaration.
1149 (adjust_type_signedness, ada_val_print_1): Likewise.
1150 (ada_val_print): Move function implementation down.
1151 (print_variant_part, print_field_values, print_record):
1152 Move function implementation up.
1153
c0d48811
JB
11542014-01-07 Joel Brobecker <brobecker@adacore.com>
1155
1156 * python/py-type.c (typy_get_name): New function.
1157 (type_object_getset): Add entry for attribute "name".
1158 * NEWS: Add entry mentioning this new attribute.
1159
c26e9cbb
YQ
11602014-01-07 Yao Qi <yao@codesourcery.com>
1161
1162 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
1163 statement.
1164
0cc6f43d
YQ
11652014-01-07 Yao Qi <yao@codesourcery.com>
1166
1167 * gnu-nat.c (info_port_rights): Add qualifier const to
1168 argument args.
1169
eec03155
YQ
11702014-01-07 Yao Qi <yao@codesourcery.com>
1171
1172 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
1173
f04a82ef
YQ
11742014-01-07 Yao Qi <yao@codesourcery.com>
1175
1176 * gnu-nat.c (make_inf) Update declaration.
1177 (make_inf): Make it static.
1178 (inf_set_traced): Likewise.
1179 (inf_port_to_thread, inf_task_died_status): Likewise.
1180
d57dda0a
YQ
11812014-01-07 Yao Qi <yao@codesourcery.com>
1182
1183 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
1184
3aa8c969
YQ
11852014-01-07 Yao Qi <yao@codesourcery.com>
1186
1187 * gnu-nat.c (_initialize_gnu_nat): Declare.
1188
94123b4f
YQ
11892014-01-07 Yao Qi <yao@codesourcery.com>
1190
1191 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
1192 'enum bfd_endian'.
1193 (struct gdbarch_info) <byte_order>: Change type to
1194 'enum bfd_endian'.
1195 <byte_order_for_code>: Likewise.
1196 * gdbarch.c, gdbarch.h: Regenerated.
1197
dc81d70a
TT
11982014-01-06 Sasha Smundak <asmundak@google.com>
1199
1200 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
1201
cc2f3c35
TT
12022014-01-06 Tom Tromey <tromey@redhat.com>
1203
1204 * doublest.c (convert_doublest_to_floatformat): Use const, not
1205 CONST.
1206 * somread.c (som_symtab_read): Likewise.
1207
adcf2eed
HZ
12082014-01-07 Hui Zhu <hui@codesourcery.com>
1209
1210 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
1211 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
1212 (gdb_bfd_fopen): Ditto.
1213 (gdb_bfd_openr): Ditto.
1214 (gdb_bfd_openw): Ditto.
1215 (gdb_bfd_openr_iovec): Ditto.
1216 (gdb_bfd_fdopenr): Ditto.
1217 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
1218 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
1219 with xstrdup.
1220 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
1221 with xstrdup.
1222 * symfile-mem.c (symbol_file_add_from_memory): Removed
1223 gdb_bfd_stash_filename.
1224
50722198
DE
12252014-01-03 Doug Evans <dje@google.com>
1226
1227 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
1228 output.
1229
2fa4b862
JB
12302014-01-01 Joel Brobecker <brobecker@adacore.com>
1231
1232 Update year range in copyright notice of all files.
1233
28498c42
JB
12342014-01-01 Joel Brobecker <brobecker@adacore.com>
1235
1236 * top.c (print_gdb_version): Set copyright year to 2014.
1237
7b6e1046
JB
12382014-01-01 Joel Brobecker <brobecker@adacore.com>
1239
1240 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
1241
df96af55 1242For older changes see ChangeLog-2013.
c906108c
SS
1243\f
1244Local Variables:
1245mode: change-log
1246left-margin: 8
1247fill-column: 74
1248version-control: never
57da7796 1249coding: utf-8
c906108c 1250End: