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