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