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