gdbarch: add instruction predicate methods
[external/binutils.git] / gdb / ChangeLog
1 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2
3         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
4         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
5         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6         to gdbarch.
7         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8         (i386_insn_is_jump, i386_jmp_p): New.
9         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10         insn_is_jump to gdbarch.
11         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12         * gdbarch.h: Regenerated.
13         * gdbarch.c: Regenerated.
14         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15         (default_insn_is_jump): New.
16         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
17         (default_insn_is_jump): New.
18
19 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
20
21         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
22         Change to ...
23         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
24         (btrace_read_type) <btrace_read_new>: Change to ...
25         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
26
27 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
28
29         * common/linux-btrace.c (linux_read_btrace): Free trace from
30         previous iteration.
31
32 2014-01-15  Doug Evans  <dje@google.com>
33
34         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
35         uint32_t.
36
37 2014-01-15  Tom Tromey  <tromey@redhat.com>
38
39         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
40         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
41         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
42         (set_objfile_main_name): New function.
43         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
44         language_of_main>: New fields.
45         (set_objfile_main_name): Declare.
46         * symtab.c (find_main_name): Loop over objfiles to find the main
47         name and language.
48         (set_main_name): Now static.
49         (get_main_info): Add comment.
50         * symtab.h (set_main_name): Don't declare.
51
52 2014-01-15  Tom Tromey  <tromey@redhat.com>
53
54         * symtab.c (main_progspace_key): New global.
55         (struct main_info): New.
56         (name_of_main, language_of_main): Remove.
57         (get_main_info, main_info_cleanup): New function.
58         (set_main_name, main_name, main_language): Use get_main_info.
59         (_initialize_symtab): Initialize main_progspace_key.
60
61 2014-01-15  Tom Tromey  <tromey@redhat.com>
62
63         * dbxread.c (process_one_symbol): Update.
64         * dwarf2read.c (read_partial_die): Update.
65         * symfile.c (set_initial_language): Call main_language.
66         * symtab.c (language_of_main): Now static.
67         (set_main_name): Add 'lang' parameter.
68         (find_main_name): Update.
69         (main_language): New function.
70         (symtab_observer_executable_changed): Update.
71         * symtab.h (set_main_name): Update.
72         (language_of_main): Remove.
73         (main_language): Declare.
74
75 2014-01-15  Tom Tromey  <tromey@redhat.com>
76
77         * symfile.c (init_entry_point_info): Use new "initialized" field.
78         Update.
79         * objfiles.h (struct entry_point) <initialized>: New field.
80         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
81         (struct objfile) <ei>: ...here.  Remove.
82         * objfiles.c (entry_point_address_query): Update.
83
84 2014-01-15  Tom Tromey  <tromey@redhat.com>
85
86         * objfiles.c (entry_point_address_query): Relocate entry point
87         address.
88         (objfile_relocate1): Do not relocate entry point address.
89         * objfiles.h (struct entry_info) <entry_point>: Update comment.
90         <the_bfd_section_index>: New field.
91         * symfile.c (init_entry_point_info): Find the entry point's
92         section.
93
94 2014-01-15  Tom Tromey  <tromey@redhat.com>
95
96         * solib-frv.c (enable_break): Use entry_point_address_query.
97
98 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
99
100         * NEWS: Add note on improved process record-replay on
101         arm*-linux* targets.
102
103 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
104
105         * arm-tdep.c (enum arm_record_result): New enum.
106         (arm_record_unsupported_insn): New function.
107         (arm_record_coproc_data_proc): Removed.
108         (thumb2_record_ld_st_multiple): New function.
109         (thumb2_record_ld_st_dual_ex_tbb): New function.
110         (thumb2_record_data_proc_sreg_mimm): New function.
111         (thumb2_record_ps_dest_generic): New function.
112         (thumb2_record_branch_misc_cntrl): New function.
113         (thumb2_record_str_single_data): New function.
114         (thumb2_record_ld_mem_hints): New function.
115         (thumb2_record_ld_word): New function.
116         (thumb2_record_lmul_lmla_div): New function.
117         (thumb2_record_decode_insn_handler): New function.
118         (decode_insn): Add thumb32 instruction handlers.
119
120 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
121
122         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
123         (struct arm_linux_record_tdep): Declare.
124         (arm_canonicalize_syscall): New function.
125         (arm_all_but_pc_registers_record): New function.
126         (arm_linux_syscall_record): New function.
127         (arm_linux_init_abi): Add syscall recording constructs.
128         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
129         decoding.  (arm_record_coproc_data_proc): Update arm syscall
130         decoding.
131         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
132         <arm_syscall_record>: New field.
133         * configure.tgt (arm*-*-linux*): Add linux-record.o to
134         gdb_target_obs.
135
136 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
137
138         * arm-tdep.c (thumb_record_misc): Update to use sp as base
139         register for push instruction recording.
140
141 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
142
143         * arm-tdep.c (thumb_record_misc): Update to correct logical
144         error while recording ldm, ldmia and pop instructions.
145
146 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
147
148         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
149
150 2014-01-15  Pedro Alves  <palves@redhat.com>
151
152         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
153         (go32_resume, go32_fetch_registers, store_register)
154         (go32_store_registers, go32_prepare_to_store)
155         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
156         (go32_create_inferior, go32_can_run, go32_terminal_init)
157         (go32_terminal_inferior, go32_terminal_ours): Delete forward
158         declarations.
159
160 2014-01-15  Tom Tromey  <tromey@redhat.com>
161
162         * target.h (async_callback_ftype): New typedef.
163         (struct target_ops) <to_async>: Use it.
164
165 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
166
167         * python/py-value.c (get_field_type): Remove unnecessary curly
168         braces for single-statement if block.
169
170 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
171
172         * python/py-type.c (convert_field): Add missing empty line
173         after declarations.
174
175 2014-01-14  Doug Evans  <dje@google.com>
176
177         * symfile.h (expand_symtabs_matching): Renamed from
178         expand_partial_symbol_names.  Update prototype.
179         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
180         * symfile.c (expand_symtabs_matching): Renamed from
181         expand_partial_symbol_names.  New args file_matcher, kind.
182         Rename arg fun to symbol_matcher.
183         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
184         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
185         ada_expand_partial_symbol_name.
186         (ada_make_symbol_completion_list): Update to call
187         expand_symtabs_matching.
188         (ada_add_global_exceptions): Call expand_symtabs_matching.
189         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
190         call map_symbol_filenames.
191         * symtab.c (sources_info): Update to call map_symbol_filenames.
192         (search_symbols): Call expand_symtabs_matching.
193         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
194         (default_make_symbol_completion_list_break_on): Update to call
195         expand_symtabs_matching.
196         (make_source_files_completion_list): Update to call
197         map_symbol_filenames.
198
199 2014-01-14  Doug Evans  <dje@google.com>
200
201         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
202         (expand_symtabs_symbol_matcher_ftype): New typedef.
203         (quick_symbol_functions.expand_symtabs_matching): Update to use.
204         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
205         * symfile.c (expand_partial_symbol_names): Update to use
206         expand_symtabs_symbol_matcher_ftype.
207         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
208         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
209         Arg name_matcher renamed to symbol_matcher.
210         * psymtab.c (recursively_search_psymtabs): Update to use
211         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
212         sym_matcher.
213         (expand_symtabs_matching_via_partial): Update to use
214         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
215         Arg name_matcher renamed to symbol_matcher.
216
217 2014-01-14  Doug Evans  <dje@google.com>
218
219         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
220         (map_partial_symbol_filenames): Ditto.
221         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
222         (map_partial_symbol_filenames): Ditto.
223         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
224         (map_partial_symbol_filenames): Ditto.
225         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
226         (map_partial_symbol_filenames): Ditto.
227         * symtab.c: Delete #include "psymtab.h".
228
229 2014-01-14  Pedro Alves  <palves@redhat.com>
230             Tom Tromey  <tromey@redhat.com>
231
232         * infrun.c (use_displaced_stepping): Use find_record_target
233         instead of RECORD_IS_USED.
234         (adjust_pc_after_break): Use record_full_is_used instead of
235         RECORD_IS_USED.
236         * record-btrace.c (record_btrace_open): Call record_preopen
237         instead of checking RECORD_IS_USED.
238         * record-full.c (record_full_shortname)
239         (record_full_core_shortname): New globals.
240         (record_full_is_used): New function.
241         (find_full_open): Call record_preopen instead of checking
242         RECORD_IS_USED.
243         (init_record_full_ops): Set the target's shortname to
244         record_full_shortname.
245         (init_record_full_core_ops): Set the target's shortname to
246         record_full_core_shortname.
247         * record-full.h (record_full_is_used): Declare.
248         * record.c (find_record_target): Make extern.
249         (record_preopen): New function.
250         * record.h (RECORD_IS_USED): Delete macro.
251         (find_record_target, record_preopen): Declare functions.
252
253 2014-01-14  Yao Qi  <yao@codesourcery.com>
254
255         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
256         'len''s type to ULONGEST.
257         (core_xfer_shared_libraries_aix): Likewise.
258         * gdbarch.c, gdbarch.h: Regenerated.
259         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
260         Change type of 'len' to ULONGEST.
261         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
262         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
263
264 2014-01-14  Yao Qi  <yao@codesourcery.com>
265
266         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
267         type of 'len' to ULONGEST.
268         (linux_xfer_osdata_processgroups): Likewise.
269         (linux_xfer_osdata_threads): Likewise.
270         (linux_xfer_osdata_fds): Likewise.
271         (linux_xfer_osdata_isockets): Likewise.
272         (linux_xfer_osdata_shm): Likewise.
273         (linux_xfer_osdata_sem): Likewise.
274         (linux_xfer_osdata_msg): Likewise.
275         (linux_common_xfer_osdata): Likewise.
276         (struct osdata_type) <getter>: Likewise.
277         * common/linux-osdata.h (linux_common_xfer_osdata): Update
278         the declaration.
279
280 2014-01-14  Yao Qi  <yao@codesourcery.com>
281
282         * target.h (target_xfer_partial_ftype): Update.
283         (struct target_ops) <to_xfer_partial>: Change 'len' type to
284         ULONGEST.
285         * aix-thread.c (aix_thread_xfer_partial): Change type of
286         argument 'len' to ULONGEST.
287         * auxv.c (procfs_xfer_auxv): Likewise.
288         (ld_so_xfer_auxv): Likewise.
289         (memory_xfer_auxv): Likewise.
290         * bfd-target.c (target_bfd_xfer_partial): Likewise.
291         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
292         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
293         * corelow.c (core_xfer_partial): Likewise.
294         * ctf.c (ctf_xfer_partial): Likewise.
295         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
296         '%u'.
297         (darwin_read_dyld_info): Likewise.
298         (darwin_xfer_partial): Likewise.
299         * exec.c (section_table_xfer_memory_partial): Likewise.
300         (exec_xfer_partial): Likewise.
301         * exec.h (section_table_xfer_memory_partial): Update
302         declaration.
303         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
304         instead of plongest.
305         (gnu_xfer_partial): Likewise.
306         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
307         (ia64_hpux_xfer_solib_got): Likewise.
308         (ia64_hpux_xfer_partial): Likewise.
309         * ia64-linux-nat.c (ia64_linux_xfer_partial):
310         * inf-ptrace.c (inf_ptrace_xfer_partial):
311         * inf-ttrace.c (inf_ttrace_xfer_partial):
312         * linux-nat.c (linux_xfer_siginfo): Likewise.
313         (linux_nat_xfer_partial): Likewise.
314         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
315         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
316         * monitor.c (monitor_xfer_memory): Likewise.
317         (monitor_xfer_partial): Likewise.
318         * procfs.c (procfs_xfer_partial): Likewise.
319         * record-full.c (record_full_xfer_partial): Likewise.
320         (record_full_core_xfer_partial): Likewise.
321         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
322         instead of plongest.
323         (gdbsim_xfer_partial): Likewise.
324         * remote.c (remote_xfer_partial): Likewise.
325         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
326         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
327         declaration.
328         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
329         (rs6000_xfer_shared_libraries): Likewise.
330         * sol-thread.c (sol_thread_xfer_partial): Likewise.
331         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
332         (sparc_xfer_partial): Likewise.
333         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
334         (spu_xfer_partial): Likewise.
335         * spu-multiarch.c (spu_xfer_partial): Likewise.
336         * target.c (target_read_live_memory): Likewise.
337         (memory_xfer_live_readonly_partial): Likewise.
338         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
339         (target_xfer_partial, default_xfer_partial): Likewise.
340         (current_xfer_partial): Likewise.
341         * tracepoint.c (tfile_xfer_partial): Likewise.
342         * windows-nat.c (windows_xfer_memory): Likewise.  Call
343         pulongest instead of plongest.
344         (windows_xfer_partial): Likewise.
345         (windows_xfer_shared_libraries): Likewise.
346
347 2014-01-14  Yao Qi  <yao@codesourcery.com>
348
349         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
350         target_xfer_partial_ftype.
351
352 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
353
354         PR python/15464
355         PR python/16113
356         * valops.c (value_struct_elt_bitpos): New function
357         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
358         object to 'None' if the field name is an empty string ("").
359         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
360         attribute to look for a field when 'name' is 'None'.
361         (get_field_type): New function
362
363 2014-01-13  Doug Evans  <dje@google.com>
364
365         PR symtab/16426
366         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
367         (try_open_dwop_file): Ditto.
368         * gdb_bfd.c: #include "vec.h".
369         (bfdp): New typedef.
370         (struct gdb_bfd_data): New member included_bfds.
371         (gdb_bfd_unref): Unref all included bfds.
372         (gdb_bfd_record_inclusion): New function.
373         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
374
375 2014-01-13  Tom Tromey  <tromey@redhat.com>
376
377         * gdbcore.h (deprecated_core_resize_section_table): Remove.
378
379 2014-01-13  Tom Tromey  <tromey@redhat.com>
380
381         * defs.h (use_windows): Remove.
382         * gdb.c (main): Update.
383         * main.c (captured_main, gdb_main): Update.
384         * main.h (struct captured_main_args) <use_windows>: Remove.
385         * top.c (use_windows): Remove.
386
387 2014-01-13  Tom Tromey  <tromey@redhat.com>
388
389         * defs.h (deprecated_flush_hook): Remove.
390
391 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
392
393         PR threads/16216
394         * linux-thread-db.c (try_thread_db_load): Add parameter
395         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
396         (try_thread_db_load_from_pdir_1): Move it there from here.
397         (try_thread_db_load_from_sdir): Update caller.
398         (try_thread_db_load_from_dir): Move it there from here.
399
400 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
401
402         * regformats/regdat.sh: Always rewrite the register file.
403
404 2014-01-13  Pedro Alves  <palves@redhat.com>
405
406         * Makefile.in (CHECK_HEADERS): New variable.
407         (check-headers:): New rule.
408
409 2014-01-13  Tom Tromey  <tromey@redhat.com>
410
411         * cli/cli-setshow.c (do_set_command): Update.
412         * defs.h (deprecated_set_hook): Remove.
413         * top.c (deprecated_set_hook): Remove.
414
415 2014-01-13  Pedro Alves  <palves@redhat.com>
416
417         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
418         the tracepoint if the PC is a pseudo-register.
419
420 2014-01-13  Tom Tromey  <tromey@redhat.com>
421
422         * defs.h (XCALLOC): Remove.
423         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
424         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
425         * dwarf2loc.c (allocate_piece_closure): Likewise.
426         * elfread.c (elf_symfile_segments): Likewise.
427         (elf_symfile_segments): Likewise.
428         * gdbtypes.c (copy_type_recursive): Likewise.
429         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
430         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
431         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
432         XCALLOC.
433         * mt-tdep.c (mt_gdbarch_init): Likewise.
434         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
435         XCALLOC.
436         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
437         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
438         * registry.c (registry_alloc_data): Likewise.
439         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
440         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
441         * serial.c (serial_fdopen_ops): Likewise.
442         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
443         XCALLOC.
444         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
445         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
446         not XCALLOC.
447
448 2014-01-13  Tom Tromey  <tromey@redhat.com>
449
450         * defs.h (XMALLOC): Remove.
451         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
452         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
453         * cli-out.c (struct ui_out *): Likewise.
454         * cli/cli-dump.c (add_dump_command): Likewise.
455         (add_dump_command): Likewise.
456         * complaints.c (get_complaints): Likewise.
457         (find_complaint): Likewise.
458         * dwarf2-frame.c (execute_cfa_program): Likewise.
459         * dwarf2read.c (abbrev_table_read_table): Likewise.
460         * gdbarch.sh: Likewise.
461         * gdbarch.c: Rebuild.
462         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
463         * interps.c (interp_new): Likewise.
464         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
465         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
466         * mi/mi-console.c (mi_console_file_new): Likewise.
467         * mi/mi-interp.c (mi_interpreter_init): Likewise.
468         * mi/mi-out.c (mi_out_new): Likewise.
469         * mi/mi-parse.c (mi_parse): Likewise.
470         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
471         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
472         * observer.c (xalloc_observer_list_node): Likewise.
473         * regcache.c (regcache_xmalloc_1): Likewise.
474         * reggroups.c (reggroup_new): Likewise.
475         (_initialize_reggroup): Likewise.
476         * registry.c (register_data_with_cleanup): Likewise.
477         * remote.c (remote_notif_stop_alloc_reply): Likewise.
478         * ser-base.c (serial_ttystate): Likewise.
479         * ser-mingw.c (make_pipe_state): Likewise.
480         * ser-pipe.c (pipe_open): Likewise.
481         * serial.c (serial_open): Likewise.
482         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
483         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
484         (tui_alloc_win_info): Likewise.
485         (tui_add_content_elements): Likewise.
486         * tui/tui-file.c (tui_file_new): Likewise.
487         * tui/tui-out.c (tui_out_new): Likewise.
488         * ui-file.c (mem_file_new): Likewise.
489         * ui-out.c (push_level): Likewise.
490         (make_cleanup_ui_out_end): Likewise.
491         (append_header_to_list): Likewise.
492         (ui_out_new): Likewise.
493         * user-regs.c (user_reg_add_builtin): Likewise.
494
495 2014-01-13  Tom Tromey  <tromey@redhat.com>
496
497         * defs.h (XZALLOC): Remove.
498         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
499         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
500         (get_ada_tasks_inferior_data): Likewise.
501         * auto-load.c (get_auto_load_pspace_data): Likewise.
502         * auxv.c (get_auxv_inferior_data): Likewise.
503         * bfd-target.c (target_bfd_reopen): Likewise.
504         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
505         (deprecated_insert_raw_breakpoint): Likewise.
506         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
507         * corelow.c (core_open): Likewise.
508         * darwin-nat.c (darwin_check_new_threads): Likewise.
509         (darwin_attach_pid): Likewise.
510         * dummy-frame.c (dummy_frame_push): Likewise.
511         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
512         * dwarf2loc.c (allocate_piece_closure): Likewise.
513         * elfread.c (elf_symfile_segments): Likewise.
514         * eval.c (ptrmath_type_p): Likewise.
515         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
516         * gdbtypes.c (alloc_type_arch): Likewise.
517         (alloc_type_instance): Likewise.
518         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
519         * inf-child.c (inf_child_can_use_agent): Likewise.
520         * inflow.c (get_inflow_inferior_data): Likewise.
521         * infrun.c (save_infcall_suspend_state): Likewise.
522         * jit.c (jit_reader_load): Likewise.
523         (get_jit_objfile_data): Likewise.
524         (get_jit_program_space_data): Likewise.
525         (jit_object_open_impl): Likewise.
526         (jit_symtab_open_impl): Likewise.
527         (jit_block_open_impl): Likewise.
528         (jit_frame_sniffer): Likewise.
529         * linux-fork.c (add_fork): Likewise.
530         * maint.c (make_command_stats_cleanup): Likewise.
531         * objfiles.c (get_objfile_pspace_data): Likewise.
532         * opencl-lang.c (struct lval_closure): Likewise.
533         * osdata.c (osdata_start_osdata): Likewise.
534         * progspace.c (new_address_space): Likewise.
535         (add_program_space): Likewise.
536         * remote-sim.c (get_sim_inferior_data): Likewise.
537         * sh-tdep.c (sh_gdbarch_init): Likewise.
538         * skip.c (Ignore): Likewise.
539         (skip_delete_command): Likewise.
540         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
541         (library_list_start_library): Likewise.
542         (solib_aix_current_sos): Likewise.
543         * solib-darwin.c (get_darwin_info): Likewise.
544         (darwin_current_sos): Likewise.
545         * solib-dsbt.c (get_dsbt_info): Likewise.
546         * solib-ia64-hpux.c (new_so_list): Likewise.
547         (ia64_hpux_get_solib_linkage_addr): Likewise.
548         * solib-spu.c (append_ocl_sos): Likewise.
549         (spu_current_sos): Likewise.
550         * solib-svr4.c (get_svr4_info): Likewise.
551         (svr4_keep_data_in_core): Likewise.
552         (library_list_start_library): Likewise.
553         (svr4_default_sos): Likewise.
554         (svr4_read_so_list): Likewise.
555         * solib-target.c (library_list_start_library): Likewise.
556         (solib_target_current_sos): Likewise.
557         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
558         * symfile-debug.c (install_symfile_debug_logging): Likewise.
559         * symfile.c (default_symfile_segments): Likewise.
560         * target-descriptions.c (tdesc_data_init): Likewise.
561         (tdesc_create_reg): Likewise.
562         (struct tdesc_type *): Likewise.
563         (tdesc_create_vector): Likewise.
564         (tdesc_set_struct_size): Likewise.
565         (struct tdesc_type *): Likewise.
566         (tdesc_free_feature): Likewise.
567         (tdesc_create_feature): Likewise.
568         * windows-nat.c (windows_add_thread): Likewise.
569         (windows_make_so): Likewise.
570         * xml-support.c (gdb_xml_body_text): Likewise.
571         (gdb_xml_create_parser_and_cleanup): Likewise.
572         (xml_process_xincludes): Likewise.
573         * xml-syscall.c (allocate_syscalls_info): Likewise.
574         (syscall_create_syscall_desc): Likewise.
575
576 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
577
578         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
579         function, with code from i386_stap_parse_special_token.
580         (i386_stap_parse_special_token_three_arg_disp): Likewise.
581         (i386_stap_parse_special_token): Move code to the two functions
582         above; simplify it.
583
584 2014-01-09  Pedro Alves  <palves@redhat.com>
585             Hui Zhu  <hui@codesourcery.com>
586
587         PR gdb/16101
588         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
589         bp_err_string.  Don't mark the location shlib_disabled if the
590         error thrown wasn't a generic or memory error.  Catch errors
591         thrown while inserting breakpoints in overlayed code.  Output
592         error message of software breakpoints.
593         * remote.c (remote_insert_breakpoint): If this breakpoint has
594         target-side commands but this stub doesn't support Z0 packets,
595         throw NOT_SUPPORTED_ERROR error.
596         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
597         * target.h (target_insert_breakpoint): Extend comment.
598         (target_insert_hw_breakpoint): Add comment.
599
600 2014-01-08  Pedro Alves  <palves@redhat.com>
601
602         * remote.c (remote_add_thread): Add threads silently if starting
603         up.
604         (remote_notice_new_inferior): If in all-stop, and starting up,
605         don't call notice_new_inferior.
606         (get_current_thread): New function, factored out from ...
607         (add_current_inferior_and_thread): ... this.  Adjust.
608         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
609         found any thread, then select the remote's current thread as GDB's
610         current thread too.
611
612 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
613
614         * NEWS: Create a new section for the next release branch.
615         Rename the section of the current branch, now that it has
616         been cut.
617
618 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
619
620         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
621         * version.in: Bump version to 7.7.50.DATE-cvs.
622
623 2014-01-08  Yao Qi  <yao@codesourcery.com>
624
625         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
626         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
627         (spu_xfer_partial): Cast 'buf' to 'const char *'.
628
629 2014-01-08  Yao Qi  <yao@codesourcery.com>
630
631         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
632         return value of bfd_get_filename to symbol_file_add_from_bfd.
633
634 2014-01-08  Pierre Muller  <muller@sourceware.org>
635
636         Fix PR16201.
637         * coff-pe-read.c (struct read_pe_section_data): Add index field.
638         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
639         to prim_record_mininal_symbol_and_info.
640         (add_pe_forwarded_sym): Use known section number of forwarded symbol
641         in call to prim_record_minimal_symbol_and_info.
642         (read_pe_exported_syms): Set index field of section_data.
643
644 2014-01-07  Andrew Pinski  <apinski@cavium.com>
645
646         * features/aarch64-core.xml (cpsr): Change to be 64bit.
647         * features/aarch64.c: Regenerate.
648
649 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
650
651         * target.c (return_null): Define.
652         (update_current_target): Use it instead of return_zero for
653         functions that return a pointer.
654
655 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
656
657         * source.c (add_path): Fix check for duplicated paths in the previously
658         included paths.
659
660 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
661
662         * ada-lang.c: Remove duplicated include statements.
663         * alphabsd-nat.c: Ditto.
664         * amd64-darwin-tdep.c: Ditto.
665         * amd64fbsd-nat.c: Ditto.
666         * auto-load.c: Ditto.
667         * ax-gdb.c: Ditto.
668         * breakpoint.c: Ditto.
669         * dbxread.c: Ditto.
670         * fork-child.c: Ditto.
671         * gdb_usleep.c: Ditto.
672         * i386-darwin-tdep.c: Ditto.
673         * i386fbsd-nat.c: Ditto.
674         * infcmd.c: Ditto.
675         * inferior.c: Ditto.
676         * jv-lang.c: Ditto.
677         * linux-nat.c: Ditto.
678         * linux-tdep.c: Ditto.
679         * m68kbsd-nat.c: Ditto.
680         * m68klinux-nat.c: Ditto.
681         * microblaze-tdep.c: Ditto.
682         * mips-linux-tdep.c: Ditto.
683         * mn10300-tdep.c: Ditto.
684         * nto-tdep.c: Ditto.
685         * opencl-lang.c: Ditto.
686         * osdata.c: Ditto.
687         * printcmd.c: Ditto.
688         * regcache.c: Ditto.
689         * remote-m32r-sdi.c: Ditto.
690         * remote.c: Ditto.
691         * symfile.c: Ditto.
692         * symtab.c: Ditto.
693         * tilegx-linux-nat.c: Ditto.
694         * tilegx-tdep.c: Ditto.
695         * tracepoint.c: Ditto.
696         * valops.c: Ditto.
697         * vaxbsd-nat.c: Ditto.
698         * windows-nat.c: Ditto.
699         * xtensa-tdep.c: Ditto.
700
701 2014-01-07  Yao Qi  <yao@codesourcery.com>
702
703         * spu-linux-nat.c (_initialize_spu_nat): Declare.
704
705 2014-01-07  Yao Qi  <yao@codesourcery.com>
706             Joel Brobecker  <brobecker@adacore.com>
707
708         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
709         (pdc_write_regs): Likewise.
710         (fetch_regs_kernel_thread): Likewise.
711         (store_regs_kernel_thread): Likewise.
712
713 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
714
715         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
716         tagged type objects to their actual type.
717
718 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
719
720         * ada-valprint.c (print_field_values): Add "language" parameter.
721         Update calls to print_field_values and print_variant_part.
722         Pass new parameter "language" in call to val_print instead
723         of "current_language".  Replace call to ada_val_print by call
724         to val_print.
725         (print_variant_part): Add "language" parameter.
726         (ada_val_print_struct_union): Update call to print_field_values.
727
728 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
729
730         * ada-valprint.c (ui_memcpy): Delete.
731         (ada_print_floating): Update documentation.  Add empty line
732         between between function documentation and implementation.
733         Delete variable "buffer".  Use ui_file_xstrdup in place of
734         ui_file_put.  Minor adjustments following this change.
735
736 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
737
738         * ada-valprint.c (ada_val_print_string): New function,
739         extracted from ada_val_print_array.
740         (ada_val_print_array): Replace extracted code by call
741         to ada_val_print_string followed by a return.  Move
742         "else" branch to the function's top block.
743
744 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
745
746         * ada-valprint.c (ada_val_print_array): Move implementation
747         down.  Rename parameter "offset" and "val" into "offset_aligned"
748         and "original_value" respectively.  Add parameter "offset".
749
750 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
751
752         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
753         re-organizing the code. Change the "???" message printed
754         when target type is a TYPE_CODE_UNDEF into
755         "<ref to undefined type>".
756
757 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
758
759         * ada-valprint.c (print_record): Delete, implementation inlined...
760         (ada_val_print_struct_union): ... here.  Remove call to
761         ada_check_typedef in inlined implementation.
762
763 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
764
765         * ada-valprint.c (ada_val_print_gnat_array): New function,
766         extracted from ada_val_print_1;
767         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
768         (ada_val_print_flt, ada_val_print_struct_union)
769         (ada_val_print_ref): Likewise.
770         (ada_val_print_1): Delete variables i and elttype.
771         Replace extracted-out code by call to corresponding
772         new functions.
773
774 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
775
776         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
777
778 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
779
780         * ada-valprint.c (ada_val_print_1): Replace calls to
781         ada_val_print_1 by calls to val_print.
782
783 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
784
785         * ada-valprint.c (ada_val_print_1): Add parameter "language".
786         Update calls to self accordingly.  Replace calls to c_val_print
787         by calls to val_print.
788
789 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
790
791         * ada-valprint.c (print_record): Delete declaration.
792         (adjust_type_signedness, ada_val_print_1): Likewise.
793         (ada_val_print): Move function implementation down.
794         (print_variant_part, print_field_values, print_record):
795         Move function implementation up.
796
797 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
798
799         * python/py-type.c (typy_get_name): New function.
800         (type_object_getset): Add entry for attribute "name".
801         * NEWS: Add entry mentioning this new attribute.
802
803 2014-01-07  Yao Qi  <yao@codesourcery.com>
804
805         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
806         statement.
807
808 2014-01-07  Yao Qi  <yao@codesourcery.com>
809
810         * gnu-nat.c (info_port_rights): Add qualifier const to
811         argument args.
812
813 2014-01-07  Yao Qi  <yao@codesourcery.com>
814
815         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
816
817 2014-01-07  Yao Qi  <yao@codesourcery.com>
818
819         * gnu-nat.c (make_inf) Update declaration.
820         (make_inf): Make it static.
821         (inf_set_traced): Likewise.
822         (inf_port_to_thread, inf_task_died_status): Likewise.
823
824 2014-01-07  Yao Qi  <yao@codesourcery.com>
825
826         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
827
828 2014-01-07  Yao Qi  <yao@codesourcery.com>
829
830         * gnu-nat.c (_initialize_gnu_nat): Declare.
831
832 2014-01-07  Yao Qi  <yao@codesourcery.com>
833
834         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
835         'enum bfd_endian'.
836         (struct gdbarch_info) <byte_order>: Change type to
837         'enum bfd_endian'.
838         <byte_order_for_code>: Likewise.
839         * gdbarch.c, gdbarch.h: Regenerated.
840
841 2014-01-06  Sasha Smundak  <asmundak@google.com>
842
843         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
844
845 2014-01-06  Tom Tromey  <tromey@redhat.com>
846
847         * doublest.c (convert_doublest_to_floatformat): Use const, not
848         CONST.
849         * somread.c (som_symtab_read): Likewise.
850
851 2014-01-07  Hui Zhu  <hui@codesourcery.com>
852
853         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
854         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
855         (gdb_bfd_fopen): Ditto.
856         (gdb_bfd_openr): Ditto.
857         (gdb_bfd_openw): Ditto.
858         (gdb_bfd_openr_iovec): Ditto.
859         (gdb_bfd_fdopenr): Ditto.
860         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
861         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
862         with xstrdup.
863         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
864         with xstrdup.
865         * symfile-mem.c (symbol_file_add_from_memory): Removed
866         gdb_bfd_stash_filename.
867
868 2014-01-03  Doug Evans  <dje@google.com>
869
870         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
871         output.
872
873 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
874
875         Update year range in copyright notice of all files.
876
877 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
878
879         * top.c (print_gdb_version): Set copyright year to 2014.
880
881 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
882
883         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
884
885 For older changes see ChangeLog-2013.
886 \f
887 Local Variables:
888 mode: change-log
889 left-margin: 8
890 fill-column: 74
891 version-control: never
892 coding: utf-8
893 End: