1 2014-02-12 Tom Tromey <tromey@redhat.com>
3 * common/rsp-low.h (unhexify): Don't declare.
4 * common/rsp-low.c (unhexify): Remove.
6 2014-02-12 Tom Tromey <tromey@redhat.com>
8 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9 * common/rsp-low.c (convert_int_to_ascii): Remove.
11 2014-02-12 Tom Tromey <tromey@redhat.com>
13 * common/rsp-low.h (hexify): Don't declare.
14 * common/rsp-low.c (hexify): Remove.
16 2014-02-12 Tom Tromey <tromey@redhat.com>
18 * common/rsp-low.c (hexify): Never take strlen of argument.
20 2014-02-12 Tom Tromey <tromey@redhat.com>
22 * common/rsp-low.c (bin2hex): Never take strlen of argument.
23 * remote.c (extended_remote_run, remote_rcmd)
24 (remote_download_trace_state_variable, remote_save_trace_data)
25 (remote_set_trace_notes): Update.
26 * tracepoint.c (encode_source_string, tfile_write_status)
27 (tfile_write_uploaded_tsv): Update.
29 2014-02-12 Tom Tromey <tromey@redhat.com>
31 * tracepoint.c: Include rsp-low.h.
32 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
33 * remote.c: Include rsp-low.h.
34 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
35 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
36 (remote_unescape_input): Move to common/rsp-low.c.
37 * common/rsp-low.h: New file.
38 * common/rsp-low.c: New file.
39 * Makefile.in (SFILES): Add common/rsp-low.c.
40 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
41 (COMMON_OBS): Add rsp-low.o.
42 (rsp-low.o): New target.
44 2014-02-12 Tom Tromey <tromey@redhat.com>
46 * utils.h: Include print-utils.h.
47 (host_address_to_string, plongest, pulongest, phex, phex_nz)
48 (int_string, core_addr_to_string, core_addr_to_string_nz)
49 (hex_string, hex_string_custom): Don't declare.
50 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
51 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
52 (hex_string_custom, int_string, core_addr_to_string)
53 (core_addr_to_string_nz, host_address_to_string): Move to
55 * common/print-utils.h: New file.
56 * common/print-utils.c: New file
57 * Makefile.in (SFILES): Add common/print-utils.c.
58 (HFILES_NO_SRCDIR): Add common/print-utils.h.
59 (COMMON_OBS): Add print-utils.o.
60 (print-utils.o): New target.
62 2014-02-12 Tom Tromey <tromey@redhat.com>
64 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
66 2014-02-12 Mark Kettenis <kettenis@gnu.org>
68 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
70 2014-02-12 Mark Kettenis <kettenis@gnu.org>
72 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
73 if a PT_IO ptrace request returns sucessfully but indicates that 0
74 bytes were transferred.
76 2014-02-12 Pedro Alves <palves@redhat.com>
77 Kevin Buettner <kevinb@redhat.com>
79 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
80 TYPE_INSTANCE_FLAG_CODE_SPACE.
82 2014-02-12 Pedro Alves <palves@redhat.com>
84 * h8300-tdep.c (pseudo_from_raw_register)
85 (raw_from_pseudo_register): New functions.
86 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
89 2014-02-12 Pedro Alves <palves@redhat.com>
91 * h8300-tdep.c (h8300_register_sim_regno): New function.
92 (h8300_gdbarch_init): Install h8300_register_sim_regno as
93 gdbarch_register_sim_regno hook.
95 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
97 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
99 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
101 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
103 2014-02-12 Mark Kettenis <kettenis@gnu.org>
105 * obsd-tdep.h (obsd_init_abi): New prototype.
106 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
107 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
108 (obsd_init_abi): New functions.
109 * i386obsd-tdep.c: Include "obsd-tdep.h".
110 (i386obsd_init_abi): Call obsd_init_abi.
111 * amd64obsd-tdep.c: Include "obsd-tdep.h".
112 (amd64obsd_init_abi): Call obsd_init_abi.
113 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
114 obsd-tdep.c to gdb_target_obs.
116 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
118 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
119 double float arguments to 16-byte in the argument slots.
121 2014-02-11 Doug Evans <xdje42@gmail.com>
123 * configure.ac: Don't crash if pkg-config is not found and guile
124 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
126 * configure: Regenerate.
128 2014-02-11 Yao Qi <yao@codesourcery.com>
130 * aix-thread.c (aix_thread_xfer_partial): Update comments.
131 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
132 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
133 * gnu-nat.c (gnu_xfer_memory): Likewise.
134 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
135 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
136 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
137 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
139 2014-02-11 Yao Qi <yao@codesourcery.com>
141 * target.h (enum target_xfer_error): Rename to ...
142 (enum target_xfer_status): ... it. New. All users updated.
143 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
145 (TARGET_XFER_STATUS_ERROR_P): New macro.
146 (target_xfer_error_to_string): Remove declaration.
147 (target_xfer_status_to_string): Declare.
148 (target_xfer_partial_ftype): Adjust it.
149 (struct target_ops) <to_xfer_partial>: Return
150 target_xfer_status. Add argument xfered_len. Update
152 * target.c (target_xfer_error_to_string): Rename to ...
153 (target_xfer_status_to_string): ... it. New. All callers
155 (target_read_live_memory): Likewise. Call target_xfer_partial
156 instead of target_read.
157 (memory_xfer_live_readonly_partial): Return
158 target_xfer_status. Add argument xfered_len.
159 (raw_memory_xfer_partial): Likewise.
160 (memory_xfer_partial_1): Likewise.
161 (memory_xfer_partial): Likewise.
162 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
163 properly. Update debug message.
164 (default_xfer_partial, current_xfer_partial): Likewise.
165 (target_write_partial): Likewise.
166 (target_read_partial): Likewise. All callers updated.
167 (read_whatever_is_readable): Likewise.
168 (target_write_with_progress): Likewise.
169 (target_read_alloc_1): Likewise.
171 * aix-thread.c (aix_thread_xfer_partial): Likewise.
172 * auxv.c (procfs_xfer_auxv): Likewise.
173 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
174 * bfd-target.c (target_bfd_xfer_partial): Likewise.
175 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
176 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
177 * corefile.c (read_memory): Adjust.
178 * corelow.c (core_xfer_partial): Likewise.
179 * ctf.c (ctf_xfer_partial): Likewise.
180 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
182 (darwin_xfer_partial): Likewise.
183 * exec.c (section_table_xfer_memory_partial): Likewise. All
185 (exec_xfer_partial): Likewise.
186 * exec.h (section_table_xfer_memory_partial): Update
188 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
190 (gnu_xfer_partial): Likewise.
191 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
192 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
193 (ia64_hpux_xfer_solib_got): Likewise.
194 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
195 type of 'partial_len' to ULONGEST.
196 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
197 * linux-nat.c (linux_xfer_siginfo ): Likewise.
198 (linux_nat_xfer_partial): Likewise.
199 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
200 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
201 * monitor.c (monitor_xfer_memory): Likewise.
202 (monitor_xfer_partial): Likewise.
203 * procfs.c (procfs_xfer_partial): Likewise.
204 * record-btrace.c (record_btrace_xfer_partial): Likewise.
205 * record-full.c (record_full_xfer_partial): Likewise.
206 (record_full_core_xfer_partial): Likewise.
207 * remote-sim.c (gdbsim_xfer_memory): Likewise.
208 (gdbsim_xfer_partial): Likewise.
209 * remote.c (remote_write_bytes_aux): Likewise. All callers
211 (remote_write_bytes, remote_read_bytes): Likewise. All
213 (remote_flash_erase): Likewise. All callers updated.
214 (remote_write_qxfer): Likewise. All callers updated.
215 (remote_read_qxfer): Likewise. All callers updated.
216 (remote_xfer_partial): Likewise.
217 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
218 (rs6000_xfer_shared_libraries): Likewise.
219 * sol-thread.c (sol_thread_xfer_partial): Likewise.
220 (sol_thread_xfer_partial): Likewise.
221 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
222 (sparc_xfer_partial): Likewise.
223 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
225 (spu_xfer_partial): Likewise.
226 * spu-multiarch.c (spu_xfer_partial): Likewise.
227 * tracepoint.c (tfile_xfer_partial): Likewise.
228 * windows-nat.c (windows_xfer_memory): Likewise.
229 (windows_xfer_shared_libraries): Likewise.
230 (windows_xfer_partial): Likewise.
231 * valprint.c: Replace 'target_xfer_error' with
232 'target_xfer_status' in comments.
234 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
236 Checked in by Joel Brobecker <brobecker@adacore.com>.
237 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
239 2014-02-11 Joel Brobecker <brobecker@adacore.com>
241 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
244 2014-02-10 Will Newton <will.newton@linaro.org>
246 * elfread.c (elf_rel_plt_read): Look for a .got section if
247 looking up .got.plt fails.
248 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
249 on address passed to elf_gnu_ifunc_record_cache.
250 (elf_gnu_ifunc_resolve_addr): Likewise.
251 (elf_gnu_ifunc_resolver_return_stop): Likewise.
253 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
255 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
256 (X_RETTURN): New macro.
257 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
259 * sparc64-tdep.c (sparc64_init_abi): Hook
260 sparc_in_function_epilogue_p.
262 2014-02-10 Gary Benson <gbenson@redhat.com>
264 * symfile-debug.c (debug_qf_expand_symtabs_matching):
265 Rename name_matcher to symbol_matcher.
267 2014-02-10 Gary Benson <gbenson@redhat.com>
269 * symfile-debug.c (debug_qf_expand_symtabs_matching):
270 Use expand_symtabs_file_matcher_ftype and
271 expand_symtabs_symbol_matcher_ftype.
273 2014-02-10 Joel Brobecker <brobecker@adacore.com>
275 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
276 (struct ada_symbol_cache): New.
277 (ada_free_symbol_cache): Forward declare.
278 (struct ada_pspace_data): New.
279 (ada_pspace_data_handle): New static global.
280 (get_ada_pspace_data, ada_pspace_data_cleanup)
281 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
282 (cache_space, cache): Delete, now folded inside struct
284 (ada_get_symbol_cache): New function.
285 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
287 (_initialize_ada_language): Remove initialization of cache_space.
288 Move call to observer_attach_inferior_exit up, grouping it
289 with the other observer registrations inside this function.
290 Rename command to be more general. Add call to
291 register_program_space_data_with_cleanup.
293 2014-02-10 Joel Brobecker <brobecker@adacore.com>
295 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
296 ada_new_objfile_observer.
297 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
298 (_initialize_tasks): Update uses of ada_new_objfile_observer
299 and ada_tasks_normal_stop_observer.
301 2014-02-10 Joel Brobecker <brobecker@adacore.com>
303 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
304 returned by the 'Length attribute to integer.
306 2014-02-10 Joel Brobecker <brobecker@adacore.com>
308 * ada-lang.c (_initialize_ada_language): Initialize
311 2014-02-10 Joel Brobecker <brobecker@adacore.com>
313 * ada-lang.c (HASH_SIZE): New macro.
314 (struct cache_entry): New type.
315 (cache_space, cache): New static globals.
316 (ada_clear_symbol_cache, find_entry): New functions.
317 (lookup_cached_symbol, cache_symbol): Implement.
318 (ada_new_objfile_observer, ada_free_objfile_observer): New.
319 (_initialize_ada_language): Attach ada_new_objfile_observer
320 and ada_free_objfile_observer.
322 2014-02-10 Joel Brobecker <brobecker@adacore.com>
324 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
325 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
326 struct block * parameter.
327 (ada_lookup_symbol_list_worker): Constify local variable "block".
328 Remove cast which is no longer necessary.
330 2014-02-10 Doug Evans <xdje42@gmail.com>
332 Add Guile as an extension language.
333 * NEWS: Mention Guile scripting.
334 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
335 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
336 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
337 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
338 (CLIBS): Add GUILE_LIBS.
339 (install-guile): New rule.
341 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
342 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
343 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
344 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
345 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
346 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
347 (scm-type.o, scm-utils.o, scm-value.o): New rules.
348 * configure.ac: New option --with-guile.
349 * configure: Regenerate.
350 * config.in: Regenerate.
351 * auto-load.c: Remove #include "python/python.h". Add #include
352 "gdb/section-scripts.h".
353 (source_section_scripts): Handle Guile scripts.
354 (_initialize_auto_load): Add name of Guile objfile script to
355 scripts-directory help text.
356 * breakpoint.c (condition_command): Tweak comment to include Scheme.
357 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
358 (struct breakpoint): New member scm_bp_object.
359 * defs.h (enum command_control_type): New value guile_control.
360 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
362 (show_user): Update comment.
363 (_initialize_cli_cmds): Update help text for "show user". Update help
364 text for max-user-call-depth.
365 * cli/cli-script.c: Remove #include "python/python.h". Add #include
367 (multi_line_command_p): Add guile_control.
368 (print_command_lines): Handle guile_control.
369 (execute_control_command, recurse_read_control_structure): Ditto.
370 (process_next_line): Recognize "guile" commands.
371 * disasm.c (gdb_disassemble_info): Make non-static.
372 * disasm.h: #include "dis-asm.h".
373 (struct gdbarch): Add forward decl.
374 (gdb_disassemble_info): Declare.
375 * extension.c: #include "guile/guile.h".
376 (extension_languages): Add guile.
377 (get_ext_lang_defn): Handle EXT_LANG_GDB.
378 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
379 * gdbtypes.c (get_unsigned_type_max): New function.
380 (get_signed_type_minmax): New function.
381 * gdbtypes.h (get_unsigned_type_max): Declare.
382 (get_signed_type_minmax): Declare.
383 * guile/README: New file.
384 * guile/guile-internal.h: New file.
385 * guile/guile.c: New file.
386 * guile/guile.h: New file.
387 * guile/scm-arch.c: New file.
388 * guile/scm-auto-load.c: New file.
389 * guile/scm-block.c: New file.
390 * guile/scm-breakpoint.c: New file.
391 * guile/scm-disasm.c: New file.
392 * guile/scm-exception.c: New file.
393 * guile/scm-frame.c: New file.
394 * guile/scm-gsmob.c: New file.
395 * guile/scm-iterator.c: New file.
396 * guile/scm-lazy-string.c: New file.
397 * guile/scm-math.c: New file.
398 * guile/scm-objfile.c: New file.
399 * guile/scm-ports.c: New file.
400 * guile/scm-pretty-print.c: New file.
401 * guile/scm-safe-call.c: New file.
402 * guile/scm-string.c: New file.
403 * guile/scm-symbol.c: New file.
404 * guile/scm-symtab.c: New file.
405 * guile/scm-type.c: New file.
406 * guile/scm-utils.c: New file.
407 * guile/scm-value.c: New file.
408 * guile/lib/gdb.scm: New file.
409 * guile/lib/gdb/boot.scm: New file.
410 * guile/lib/gdb/experimental.scm: New file.
411 * guile/lib/gdb/init.scm: New file.
412 * guile/lib/gdb/iterator.scm: New file.
413 * guile/lib/gdb/printing.scm: New file.
414 * guile/lib/gdb/types.scm: New file.
415 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
416 (VPATH): Add $(GUILE_SRCDIR).
417 (GUILE_DIR): New variable.
418 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
419 (all): Add stamp-guile dependency.
420 (stamp-guile): New rule.
421 (clean-guile, install-guile, uninstall-guile): New rules.
422 (install-only): Add install-guile dependency.
423 (uninstall): Add uninstall-guile dependency.
424 (clean): Add clean-guile dependency.
426 2014-02-09 Doug Evans <xdje42@gmail.com>
428 Revert this patch (which I approved, mea culpa).
430 2014-02-08 Mark Kettenis <kettenis@gnu.org>
432 * Makefile.in (all-lib): Remove.
433 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
435 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
437 Fix Python stack corruption.
438 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
441 2014-02-08 Mark Kettenis <kettenis@gnu.org>
443 * Makefile.in (all-lib): Remove.
444 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
446 2014-02-07 Doug Evans <dje@google.com>
448 * extension-priv.h (extension_language_script_ops): Add comment.
449 (extension_language_ops): Add comment.
450 (active_ext_lang_state): Fix typo in comment.
452 2014-02-07 Pedro Alves <palves@redhat.com>
454 * infrun.c (handle_signal_stop) <signal arrives while stepping
455 over a breakpoint>: Switch back to the stepping thread.
457 2014-02-07 Yao Qi <yao@codesourcery.com>
459 * target.c (target_xfer_partial): Return zero if LEN is zero.
461 2014-02-07 Yao Qi <yao@codesourcery.com>
463 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
464 (ld_so_xfer_auxv): Likewise.
465 * bfd-target.c (target_bfd_xfer_partial): Likewise.
466 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
467 * corelow.c (core_xfer_partial): Likewise.
468 * ctf.c (ctf_xfer_partial): Likewise.
469 * darwin-nat.c (darwin_read_dyld_info): Likewise.
470 (darwin_xfer_partial): Likewise.
471 * exec.c (exec_xfer_partial): Likewise.
472 * gnu-nat.c (gnu_xfer_partial): Likewise.
473 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
474 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
475 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
476 * linux-nat.c (linux_xfer_siginfo): Likewise.
477 (linux_proc_xfer_spu): Likewise.
478 * procfs.c (procfs_xfer_partial): Likewise.
479 * record-full.c (record_full_xfer_partial): Likewise.
480 (record_full_core_xfer_partial): Likewise.
481 * remote-sim.c (gdbsim_xfer_partial): Likewise.
482 * remote.c (remote_write_qxfer): Likewise.
483 (remote_write_qxfer, remote_read_qxfer): Likewise.
484 (remote_xfer_partial): Likewise.
485 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
486 (rs6000_xfer_shared_libraries): Likewise.
487 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
488 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
489 (spu_xfer_partial): Likewise.
490 * target.c (memory_xfer_partial_1): Likewise.
491 * tracepoint.c (tfile_xfer_partial): Likewise.
492 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
493 (windows_xfer_partial): Likewise.
495 2014-02-07 Yao Qi <yao@codesourcery.com>
497 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
499 (core_xfer_shared_libraries_aix): Likewise.
500 * gdbarch.c, gdbarch.h: Regenerated.
501 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
502 ULONGEST. Change 'len_avail' type to ULONGEST.
503 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
504 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
506 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
508 2014-02-07 Yao Qi <yao@codesourcery.com>
510 * corefile.c (memory_error): Get 'exception' from ERR and pass
511 'exception' to throw_error.
513 2014-02-06 Doug Evans <xdje42@gmail.com>
515 * configure.ac (libpython checking): Remove all but python.o from
516 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
517 * configure: Regenerate.
519 * Makefile.in (SFILES): Add extension.c.
520 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
521 (COMMON_OBS): Add extension.o.
522 * extension.h: New file.
523 * extension-priv.h: New file.
524 * extension.c: New file.
526 * python/python-internal.h: #include "extension.h".
527 (gdbpy_auto_load_enabled): Declare.
528 (gdbpy_apply_val_pretty_printer): Declare.
529 (gdbpy_apply_frame_filter): Declare.
530 (gdbpy_preserve_values): Declare.
531 (gdbpy_breakpoint_cond_says_stop): Declare.
532 (gdbpy_breakpoint_has_cond): Declare.
533 (void source_python_script_for_objfile): Delete.
534 * python/python.c: #include "extension-priv.h".
535 Delete inclusion of "observer.h".
536 (extension_language_python): Moved here and renamed from
537 script_language_python in py-auto-load.c.
538 Redefined to be of type extension_language_defn.
539 (python_extension_script_ops): New global.
540 (python_extension_ops): New global.
541 (struct python_env): New member previous_active.
542 (restore_python_env): Call restore_active_ext_lang.
543 (ensure_python_env): Call set_active_ext_lang.
544 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
546 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
548 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
550 (gdbpy_eval_from_control_command): Renamed from
551 eval_python_from_control_command, made static. New arg extlang.
552 (gdbpy_source_script) Renamed from source_python_script, made static.
554 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
555 result to int. New arg extlang.
556 (gdbpy_source_objfile_script): Renamed from
557 source_python_script_for_objfile, made static. New arg extlang.
558 (gdbpy_start_type_printers): Renamed from start_type_printers, made
559 static. New args extlang, extlang_printers. Change result type to
561 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
562 static. New arg extlang. Rename arg printers to extlang_printers
563 and change type to ext_lang_type_printers *.
564 (gdbpy_free_type_printers): Renamed from free_type_printers, made
565 static. Replace argument arg with extlang, extlang_printers.
566 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
567 (!HAVE_PYTHON, source_python_script): Delete.
568 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
569 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
570 (!HAVE_PYTHON, start_type_printers): Delete.
571 (!HAVE_PYTHON, apply_type_printers): Delete.
572 (!HAVE_PYTHON, free_type_printers): Delete.
573 (_initialize_python): Delete call to observer_attach_before_prompt.
574 (finalize_python): Set/restore active extension language.
575 (gdbpy_finish_initialization) Renamed from
576 finish_python_initialization, made static. New arg extlang.
577 (gdbpy_initialized): New function.
578 * python/python.h: #include "extension.h". Delete #include
579 "value.h", "mi/mi-cmds.h".
580 (extension_language_python): Declare.
581 (GDBPY_AUTO_FILE_NAME): Delete.
582 (enum py_bt_status): Moved to extension.h and renamed to
584 (enum frame_filter_flags): Moved to extension.h.
585 (enum py_frame_args): Moved to extension.h and renamed to
587 (finish_python_initialization): Delete.
588 (eval_python_from_control_command): Delete.
589 (source_python_script): Delete.
590 (apply_val_pretty_printer): Delete.
591 (apply_frame_filter): Delete.
592 (preserve_python_values): Delete.
593 (gdbpy_script_language_defn): Delete.
594 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
595 (start_type_printers, apply_type_printers, free_type_printers): Delete.
597 * auto-load.c: #include "extension.h".
598 (GDB_AUTO_FILE_NAME): Delete.
599 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
600 (script_language_gdb): Delete, moved to extension.c and renamed to
601 extension_language_gdb.
602 (source_gdb_script_for_objfile): Delete.
603 (auto_load_pspace_info): New member unsupported_script_warning_printed.
604 (loaded_script): Change type of language member to
605 struct extension_language_defn *.
606 (init_loaded_scripts_info): Initialize
607 unsupported_script_warning_printed.
608 (maybe_add_script): Make static. Change type of language arg to
609 struct extension_language_defn *.
610 (clear_section_scripts): Reset unsupported_script_warning_printed.
611 (auto_load_objfile_script_1): Rewrite to use extension language API.
612 (auto_load_objfile_script): Make public. Remove support-compiled-in
613 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
614 (source_section_scripts): Rewrite to use extension language API.
615 (load_auto_scripts_for_objfile): Rewrite to use
616 auto_load_scripts_for_objfile.
617 (collect_matching_scripts_data): Change type of language member to
618 struct extension_language_defn *.
619 (auto_load_info_scripts): Change type of language arg to
620 struct extension_language_defn *.
621 (unsupported_script_warning_print): New function.
622 (script_not_found_warning_print): Make static.
623 (_initialize_auto_load): Rewrite construction of scripts-directory
625 * auto-load.h (struct objfile): Add forward decl.
626 (struct script_language): Delete.
627 (struct auto_load_pspace_info): Add forward decl.
628 (struct extension_language_defn): Add forward decl.
629 (maybe_add_script): Delete.
630 (auto_load_objfile_script): Declare.
631 (script_not_found_warning_print): Delete.
632 (auto_load_info_scripts): Update prototype.
633 (auto_load_gdb_scripts_enabled): Declare.
634 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
635 auto_load_python_scripts_enabled and made public.
636 (script_language_python): Delete, moved to python.c.
637 (gdbpy_script_language_defn): Delete.
638 (info_auto_load_python_scripts): Update to use
639 extension_language_python.
641 * breakpoint.c (condition_command): Replace call to
642 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
643 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
644 with call to breakpoint_ext_lang_cond_says_stop.
645 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
646 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
647 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
648 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
650 (local_setattro): Print name of extension language with existing
653 * valprint.c (val_print, value_print): Update to call
654 apply_ext_lang_val_pretty_printer.
655 * cp-valprint.c (cp_print_value): Update call to
656 apply_ext_lang_val_pretty_printer.
657 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
658 (gdbpy_apply_val_pretty_printer): Renamed from
659 apply_val_pretty_printer. New arg extlang.
660 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
662 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
663 extension language API.
664 * cli/cli-script.c (execute_control_command): Update to call
665 eval_ext_lang_from_control_command.
667 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
668 enum ext_lang_bt_status values. Update call to
669 apply_ext_lang_frame_filter.
670 (mi_cmd_stack_list_locals): Ditto.
671 (mi_cmd_stack_list_args): Ditto.
672 (mi_cmd_stack_list_variables): Ditto.
673 * mi/mi-main.c: Delete #include "python/python-internal.h".
674 Add #include "extension.h".
675 (mi_cmd_list_features): Replace reference to python internal variable
676 gdb_python_initialized with call to ext_lang_initialized_p.
678 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
679 Update to use enum ext_lang_frame_args. Update to call
680 apply_ext_lang_frame_filter.
681 * python/py-framefilter.c (extract_sym): Update to use enum
683 (extract_value, py_print_type, py_print_value): Ditto.
684 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
685 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
686 (py_print_frame): Ditto.
687 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
688 New arg extlang. Update to use enum ext_lang_bt_status.
690 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
691 finish_python_initialization. Replace with call to
692 finish_ext_lang_initialization.
694 * typeprint.c (do_free_global_table): Update to call
695 free_ext_lang_type_printers.
696 (create_global_typedef_table): Update to call
697 start_ext_lang_type_printers.
698 (find_global_typedef): Update to call apply_ext_lang_type_printers.
699 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
700 (type_print_options): Change type of global_printers from "void *"
701 to "struct ext_lang_type_printers *".
703 * value.c (preserve_values): Update to call preserve_ext_lang_values.
704 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
705 (gdbpy_preserve_values): Renamed from preserve_python_values.
707 (!HAVE_PYTHON, preserve_python_values): Delete.
709 * utils.c (quit_flag): Delete, moved to extension.c.
710 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
713 * eval.c: Delete #include "python/python.h".
714 * main.c: Delete #include "python/python.h".
716 * defs.h: Update comment.
718 2014-02-06 Joel Brobecker <brobecker@adacore.com>
722 2014-02-05 Mark Kettenis <kettenis@gnu.org>
724 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
727 2014-02-05 Yao Qi <yao@codesourcery.com>
729 * remote.c (remote_pass_signals): Remove local 'buf' and use
731 (remote_program_signals): Likewise.
733 2014-02-05 Yao Qi <yao@codesourcery.com>
735 * ctf.c: Include "inferior.h" and "gdbthread.h".
736 (CTF_PID): A new macro.
737 (ctf_open): Call inferior_appeared and add_thread_silent.
738 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
739 (ctf_thread_alive): New function.
740 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
742 2014-02-05 Yao Qi <yao@codesourcery.com>
746 2013-05-24 Yao Qi <yao@codesourcery.com>
748 * tracepoint.c (TFILE_PID): Remove.
749 (tfile_open): Don't add thread and inferior.
750 (tfile_close): Don't set 'inferior_ptid'. Don't call
751 exit_inferior_silent.
752 (tfile_thread_alive): Remove.
753 (init_tfile_ops): Don't set field 'to_thread_alive' of
756 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
758 * remote.c (remote_start_remote): Call remote_check_symbols even
759 if only symbol-file (not file) has been given.
761 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
763 * gdbarch.sh (skip_entrypoint): New callback.
764 * gdbarch.c, gdbarch.h: Regenerate.
765 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
766 * infrun.c (fill_in_stop_func): Likewise.
767 * ppc-linux-tdep.c: Include "elf/ppc64.h".
768 (ppc_elfv2_elf_make_msymbol_special): New function.
769 (ppc_elfv2_skip_entrypoint): Likewise.
770 (ppc_linux_init_abi): Install them for ELFv2.
772 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
774 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
775 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
776 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
777 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
778 structures returned in GPRs.
780 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
782 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
783 offset to the stack parameter list for the ELFv2 ABI.
785 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
787 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
788 set_gdbarch_convert_from_func_ptr_addr and
789 set_gdbarch_elf_make_msymbol_special for ELFv1.
790 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
791 function descriptors on ELFv1.
792 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
793 set up r12 at function entry.
795 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
797 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
798 (struct gdbarch_tdep): New member elf_abi.
800 * rs6000-tdep.c: Include "elf/ppc64.h".
801 (rs6000_gdbarch_init): Detect ELF ABI version.
803 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
806 within a register pair holding a DFP 128-bit value on little-endian.
807 (ppc64_sysv_abi_return_value_base): Likewise.
808 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
809 (dfp_pseudo_register_write): Likewise.
811 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
813 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
814 offset on little-endian when passing _Decimal32.
815 (ppc64_sysv_abi_return_value_base): Likewise for return values.
817 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
819 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
820 of the overlapped FP register within the VSX register on little-
822 (efpr_pseudo_register_write): Likewise.
824 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
826 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
827 offset on little-endian when passing small structures.
829 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
831 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
832 (struct ppc64_sysv_argpos): New data structure.
833 (ppc64_sysv_abi_push_float): Remove.
834 (ppc64_sysv_abi_push_val): New function.
835 (ppc64_sysv_abi_push_integer): Likewise.
836 (ppc64_sysv_abi_push_freg): Likewise.
837 (ppc64_sysv_abi_push_vreg): Likewise.
838 (ppc64_sysv_abi_push_param): Likewise.
839 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
840 (ppc64_sysv_abi_return_value_base): New function.
841 (ppc64_sysv_abi_return_value): Refactor to use it.
843 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
845 * NEWS: Document new target powerpc64le-*-linux*.
847 2014-02-04 Mark Kettenis <kettenis@gnu.org>
849 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
850 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
852 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
853 register set used in ELF core dumps. Add floating-point register set.
855 2014-02-03 Kevin Buettner <kevinb@redhat.com>
857 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
858 dwarf2_to_gdb[] table using symbolic constants. Adjust
859 penultimate entry from number representing the PC register
860 to symbolic constant representing the MDR register. Add
861 constant for the PC register to the end of the table.
863 2014-02-03 Mark Kettenis <kettenis@gnu.org>
865 * bsd-kvm.c: Include <sys/param.h>
867 2014-02-03 Mark Kettenis <kettenis@gnu.org>
869 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
871 2014-01-31 Joel Brobecker <brobecker@adacore.com>
873 * ada-lang.h (clear_ada_sym_cache): Delete.
875 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
877 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
879 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
881 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
882 the sigreturn register save area only if the syscall is
885 2014-01-29 Joel Brobecker <brobecker@adacore.com>
887 * valops.c (value_slice): Minor reformatting.
889 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
891 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
893 2014-01-28 Joel Brobecker <brobecker@adacore.com>
895 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
897 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
898 (ada_ignore_descriptive_types_p): New static global.
899 (find_parallel_type_by_descriptive_type): Return immediately
900 if ada_ignore_descriptive_types_p is set.
901 (_initialize_ada_language): Register new commands "maintenance
902 set ada", "maintenance show ada", "maintenance set ada
903 ignore-descriptive-types" and "maintenance show ada
904 ignore-descriptive-types".
905 * NEWS: Add entry for new "maint ada set/show
906 ignore-descriptive-types" commands.
908 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
910 * record-btrace.c (record_btrace_close): Call btrace_teardown
913 2014-01-27 Joel Brobecker <brobecker@adacore.com>
915 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
918 2014-01-27 Joel Brobecker <brobecker@adacore.com>
920 * ada-typeprint (type_is_full_subrange_of_target_type):
922 (print_range): Add parameter bounds_prefered_p. If not set,
923 try printing range types using the name of their base type.
924 (print_range_type): Add parameter bounds_prefered_p.
925 Use it in call to print_range.
926 (print_array_type, ada_print_type): Update calls to print_range
927 and print_range_type.
929 2014-01-27 Joel Brobecker <brobecker@adacore.com>
931 * ada-typeprint.c (print_array_type, print_choices, print_range)
932 (print_range_bound, print_dynamic_range_bound, print_range_type):
935 2014-01-27 Joel Brobecker <brobecker@adacore.com>
937 * ada-typeprint.c (print_range): Add missing empty line
938 after local declaration.
940 2014-01-27 Joel Brobecker <brobecker@adacore.com>
942 * ada-valprint.c (print_optional_low_bound): Get index_type's
943 target type for as long as it is a TYPE_CODE_RANGE.
945 2014-01-27 Joel Brobecker <brobecker@adacore.com>
947 * procfs.c (procfs_make_note_section): Remove assertion and
950 2014-01-24 Yao Qi <yao@codesourcery.com>
952 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
953 * corelow.c (get_core_siginfo): Likewise.
955 2014-01-24 Yao Qi <yao@codesourcery.com>
957 * remote.c (remote_write_bytes_aux): Change type of 'len' to
958 ULONGEST. Don't check 'len' is negative.
959 (remote_write_bytes): Change type of 'len' to ULONGEST.
961 2014-01-23 Tom Tromey <tromey@redhat.com>
964 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
965 Handle exception from frame.block.
966 (FrameVars.fetch_frame_locals): Likewise.
968 2014-01-23 Tom Tromey <tromey@redhat.com>
971 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
972 on a NULL pointer. Move "goto error" to correct place.
974 2014-01-23 Tom Tromey <tromey@redhat.com>
977 * python/py-framefilter.c (apply_frame_filter): Call
978 ensure_python_env after computing gdbarch.
980 2014-01-23 Yao Qi <yao@codesourcery.com>
982 * target.c (raw_memory_xfer_partial): Change argument type
983 from void * to gdb_byte *.
984 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
986 2014-01-22 Doug Evans <dje@google.com>
988 New gdbserver option --debug-format=timestamp.
991 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
993 * syscalls/s390x-linux.xml: New file.
994 * syscalls/s390-linux.xml: New file.
995 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
996 (XML_SYSCALL_FILENAME_S390X): Likewise.
997 (op_svc): New enum value for SVC opcode.
998 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
999 (s390_linux_get_syscall_number): New function.
1000 (s390_gdbarch_init): Register '*get_syscall_number' and the
1001 syscall xml file name.
1002 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1003 "s390-linux.xml" and "s390x-linux.xml".
1004 * NEWS: Announce new feature.
1006 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1008 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1010 2014-01-22 Pedro Alves <palves@redhat.com>
1012 * xtensa-config.c: Include defs.h.
1014 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1016 * common/common-utils.h: Add "ARI:" comment beside __func__
1019 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1021 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1022 documentation a bit.
1024 2014-01-21 Roland McGrath <mcgrathr@google.com>
1026 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1027 * configure: Regenerate.
1028 * aclocal.m4: Regenerate.
1029 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1030 New substituted variables.
1031 (install-strip): New target.
1032 (INSTALL_SCRIPT): New substituted variable.
1033 (FLAGS_TO_PASS): Add it.
1034 (install-only): Use $(INSTALL_SCRIPT) rather than
1035 $(INSTALL_PROGRAM) for gcore.
1037 2014-01-20 Tom Tromey <tromey@redhat.com>
1039 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1042 2014-01-20 Tom Tromey <tromey@redhat.com>
1044 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1045 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1046 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1047 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1048 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1049 (struct cmd_list_element) <flags>: Remove.
1050 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1051 doc_allocated>: New fields.
1052 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1054 * maint.c (maintenance_do_deprecate): Update.
1055 * top.c (execute_command): Update.
1057 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1059 * xtensa-linux-nat.c: Include asm/ptrace.h.
1061 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1063 * Makefile.in (SFILES): Add d-support.c.
1064 (COMMON_OBS): Add d-support.o.
1065 * d-lang.h (d_parse_symbol): Add comment, now defined in
1067 * d-lang.c (parse_call_convention)
1068 (parse_attributes, parse_function_types)
1069 (parse_function_args, parse_type, parse_identifier)
1070 (call_convention_p, d_parse_symbol): Move functions to ...
1071 * d-support.c: ... New file.
1073 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1075 * d-lang.h (d_parse_symbol): Add declaration.
1076 * d-lang.c (extract_identifiers)
1077 (extract_type_info): Remove functions.
1078 (parse_call_convention, parse_attributes)
1079 (parse_function_types, parse_function_args)
1080 (parse_type, parse_identifier, call_convention_p)
1081 (d_parse_symbol): New functions.
1082 (d_demangle): Use d_parse_symbol to demangle D symbols.
1084 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1086 * d-lang.h (struct builtin_d_type): New data type.
1087 (builtin_d_type): Add declaration.
1088 * d-lang.c (d_language_arch_info, build_d_types)
1089 (builtin_d_type): New functions.
1090 (enum d_primitive_types): New data type.
1091 (d_language_defn): Change c_language_arch_info to
1092 d_language_arch_info.
1093 (d_type_data): New static variable.
1094 (_initialize_d_language): Initialize d_type_data.
1096 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1098 * d-lang.h (d_main_name): Add declaration.
1099 * d-lang.c (d_main_name): New function.
1100 * symtab.c (find_main_name): Add call to d_main_name.
1102 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1104 * d-lang.c (d_language_defn): Change macro_expansion_c to
1107 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1109 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1111 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1113 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1114 gdb_exception" declaration.
1115 * remote.c (getpkt_or_notif_sane): Likewise.
1117 2014-01-17 Doug Evans <dje@google.com>
1119 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1120 function, contents of dirnames_to_char_ptr_vec_append moved here.
1121 (delim_string_to_char_ptr_vec): New function.
1122 (dirnames_to_char_ptr_vec_append): Rewrite.
1123 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1125 2014-01-17 Doug Evans <dje@google.com>
1127 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1129 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1130 #include "common-utils.h".
1131 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1132 * common/vec.h (VEC_ASSERT_PASS): Update.
1133 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1134 (MACH_CHECK_ERROR): Update.
1136 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1138 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1140 * gdbarch.h: Regenerate.
1142 2014-01-16 Tom Tromey <tromey@redhat.com>
1144 * value.c (struct value) <regnum>: Move earlier.
1146 2014-01-16 Tom Tromey <tromey@redhat.com>
1148 * remote.c (extended_remote_create_inferior): Rename from
1149 extended_remote_create_inferior_1. Add "ops" argument. Remove
1152 2014-01-16 Pedro Alves <palves@redhat.com>
1154 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1155 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1158 2014-01-16 Doug Evans <dje@google.com>
1160 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1164 * btrace.h (btrace_thread_flag): New.
1165 (struct btrace_thread_info) <flags>: New.
1166 * record-btrace.c (record_btrace_resume_thread)
1167 (record_btrace_find_thread_to_move, btrace_step_no_history)
1168 (btrace_step_stopped, record_btrace_start_replaying)
1169 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1170 (record_btrace_find_resume_thread): New.
1171 (record_btrace_resume, record_btrace_wait): Extend.
1172 (record_btrace_can_execute_reverse): New.
1173 (record_btrace_open): Fail in non-stop mode.
1174 (record_btrace_set_replay): Split into this, ...
1175 (record_btrace_stop_replaying): ... this, ...
1176 (record_btrace_clear_histories): ... and this.
1177 (init_record_btrace_ops): Init to_can_execute_reverse.
1178 * NEWS: Announce it.
1180 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1182 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1183 (forward_target_decr_pc_after_break)
1184 (target_decr_pc_after_break): New.
1185 * target.c (forward_target_decr_pc_after_break)
1186 (target_decr_pc_after_break): New.
1187 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1188 instead of gdbarch_decr_pc_after_break.
1189 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1190 instead of gdbarch_decr_pc_after_break.
1191 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1192 instead of gdbarch_decr_pc_after_break.
1193 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1194 instead of gdbarch_decr_pc_after_break.
1195 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1196 instead of gdbarch_decr_pc_after_break.
1197 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1198 instead of gdbarch_decr_pc_after_break.
1200 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1202 * btrace.c: Include regcache.h.
1203 (btrace_add_pc): New.
1204 (btrace_enable): Call btrace_add_pc.
1205 (btrace_is_empty): New.
1206 * btrace.h (btrace_is_empty): New.
1207 * record-btrace.c (require_btrace, record_btrace_info): Call
1210 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1212 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1213 Support delta reads.
1214 (linux_disable_btrace): Change return type.
1215 * common/linux-btrace.h (linux_read_btrace): Change parameters
1216 and return type to allow error reporting. Update users.
1217 (linux_disable_btrace): Change return type. Update users.
1218 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1220 (btrace_error): New.
1221 (btrace_block) <begin>: Comment on BEGIN == 0.
1222 * btrace.c (btrace_compute_ftrace): Start from the end of
1224 (btrace_stitch_trace, btrace_clear_history): New.
1225 (btrace_fetch): Read delta trace, return if replaying.
1226 (btrace_clear): Move clear history code to btrace_clear_history.
1227 (parse_xml_btrace): Throw an error if parsing failed.
1228 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1229 and return type to allow error reporting.
1230 (target_read_btrace): Change parameters and return type to allow
1232 * target.c (target_read_btrace): Update.
1233 * remote.c (remote_read_btrace): Support delta reads. Pass
1235 * NEWS: Announce it.
1237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1239 * record.h (record_btrace_frame_unwind)
1240 (record_btrace_tailcall_frame_unwind): New declarations.
1241 * dwarf2-frame: Include record.h
1242 (dwarf2_frame_cfa): Throw an error for btrace frames.
1243 * record-btrace.c: Include hashtab.h.
1244 (btrace_get_bfun_name): New.
1245 (btrace_call_history): Call btrace_get_bfun_name.
1246 (struct btrace_frame_cache): New.
1248 (bfcache_hash, bfcache_eq, bfcache_new): New.
1249 (btrace_get_frame_function): New.
1250 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1251 (record_btrace_frame_this_id): Compute own id.
1252 (record_btrace_frame_prev_register): Provide PC, throw_error
1253 for all other registers.
1254 (record_btrace_frame_sniffer): Detect btrace frames.
1255 (record_btrace_tailcall_frame_sniffer): New.
1256 (record_btrace_frame_dealloc_cache): New.
1257 (record_btrace_frame_unwind): Add new functions.
1258 (record_btrace_tailcall_frame_unwind): New.
1259 (_initialize_record_btrace): Allocate cache.
1260 * btrace.c (btrace_clear): Call reinit_frame_cache.
1261 * NEWS: Announce it.
1263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1265 * record-btrace.c (record_btrace_set_replay)
1266 (record_btrace_goto_begin, record_btrace_goto_end)
1267 (record_btrace_goto): New.
1268 (init_record_btrace_ops): Initialize them.
1269 * NEWS: Announce it.
1271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1273 * record-btrace.c (record_btrace_find_new_threads)
1274 (record_btrace_thread_alive): New.
1275 (init_record_btrace_ops): Initialize to_find_new_threads and
1278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1280 * record-btrace.c (record_btrace_resume): New.
1281 (record_btrace_wait): New.
1282 (init_record_btrace_ops): Initialize to_wait and to_resume.
1284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1286 * record-btrace.c (record_btrace_xfer_partial)
1287 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1288 (record_btrace_allow_memory_access): New.
1289 (init_record_btrace_ops): Initialize new methods.
1290 * target.c (raw_memory_xfer_partial): Bail out if target reports
1291 that this memory is not available.
1293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1295 * target.h (target_ops) <to_insert_breakpoint>
1296 <to_remove_breakpoint>: Add target_ops parameter.
1297 (forward_target_insert_breakpoint): New.
1298 (forward_target_remove_breakpoint): New.
1299 (memory_remove_breakpoint, memory_insert_breakpoint):
1300 Add target_ops parameter.
1301 * target.c (target_insert_breakpoint): Split into this and ...
1302 (forward_target_insert_breakpoint): ... this.
1303 (target_remove_breakpoint): Split into this and ...
1304 (forward_target_remove_breakpoint): ... this.
1305 (debug_to_insert_breakpoint): Add target_ops parameter.
1306 Call forward_target_insert_breakpoint.
1307 (debug_to_remove_breakpoint): Add target_ops parameter.
1308 Call forward_target_remove_breakpoint.
1309 (update_current_target): Do not inherit or default to_insert_breakpoint
1310 and to_remove_breakpoint.
1311 * corelow.c (ignore): Add target_ops parameter.
1312 * exec.c (ignore): Add target_ops parameter.
1313 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1314 Add target_ops parameter.
1315 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1316 Add target_ops parameter.
1317 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1318 Add target_ops parameter.
1319 * record-full.c (record_full_beneath_to_insert_breakpoint)
1320 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1321 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1322 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1323 (record_full_core_remove_breakpoint): Add target_ops parameter.
1325 (record_full_beneath_to_insert_breakpoint_ops)
1326 (record_full_beneath_to_remove_breakpoint_ops)
1327 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1328 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1329 tmp_to_remove_breakpoint_ops,
1330 record_full_beneath_to_insert_breakpoint_ops, and
1331 record_full_beneath_to_remove_breakpoint_ops.
1332 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1333 (m32r_remove_breakpoint): Add target_ops parameter.
1334 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1335 Add target_ops parameter.
1336 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1337 Add target_ops parameter.
1339 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1340 Markus Metzger <markus.t.metzger@intel.com>
1342 * record-btrace.c: Include frame-unwind.h.
1343 (record_btrace_frame_unwind_stop_reason)
1344 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1345 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1347 (init_record_btrace_ops): Install it.
1349 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1351 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1354 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1356 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1359 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1361 * frame-unwind.c: Include target.h.
1362 (frame_unwind_try_unwinder): New function with code from ...
1363 (frame_unwind_find_by_frame): ... here. New variable
1364 unwinder_from_target, call also target_get_unwinder)
1365 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1366 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1367 * target.h (struct target_ops): New fields to_get_unwinder and
1368 to_get_tailcall_unwinder.
1369 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1371 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1373 * record-btrace.c (record_btrace_fetch_registers)
1374 (record_btrace_store_registers)
1375 (record_btrace_to_prepare_to_store): New.
1376 (init_record_btrace_ops): Add the above.
1378 2014-01-16 Tom Tromey <tromey@redhat.com>
1380 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1381 * target.h (struct target_ops) <to_prepare_to_store>: Add
1383 (target_prepare_to_store): Add argument.
1384 * target.c (debug_to_prepare_to_store): Add argument.
1385 (update_current_target): Update.
1386 * remote.c (remote_prepare_to_store): Add 'self' argument.
1387 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1388 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1389 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1390 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1392 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1393 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1394 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1395 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1396 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1400 * btrace.h (replay) <replay>: New.
1401 (btrace_is_replaying): New.
1402 * btrace.c (btrace_clear): Free replay iterator.
1403 (btrace_is_replaying): New.
1404 * record-btrace.c (record_btrace_is_replaying): New.
1405 (record_btrace_info): Print insn number if replaying.
1406 (record_btrace_insn_history): Start at replay position.
1407 (record_btrace_call_history): Start at replay position.
1408 (init_record_btrace_ops): Init to_record_is_replaying.
1410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1412 * record-btrace.c (record_btrace_insn_history_range): Include
1414 (record_btrace_insn_history_from): Adjust range.
1415 (record_btrace_call_history_range): Include
1417 (record_btrace_call_history_from): Adjust range.
1418 * NEWS: Announce changes.
1420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1422 * record.h (enum record_print_flag)
1423 <record_print_indent_calls>: New.
1424 * record.c (get_call_history_modifiers): Recognize /c modifier.
1425 (_initialize_record): Document /c modifier.
1426 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1427 Reorder fields. Optionally indent the function name. Update
1429 * NEWS: Announce changes.
1431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1433 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1437 * btrace.c (ftrace_new_function): Start counting at one.
1438 * record-btrace.c (record_btrace_info): Adjust number of calls
1440 * NEWS: Announce it.
1442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1444 * record-btrace.c (btrace_call_history_insn_range): Print
1445 insn range as [begin, end].
1447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1449 * btrace.h (struct btrace_func_link): New.
1450 (enum btrace_function_flag): New.
1451 (struct btrace_inst): Rename to ...
1452 (struct btrace_insn): ...this. Update all users.
1453 (struct btrace_func) <ibegin, iend>: Remove.
1454 (struct btrace_func_link): New.
1455 (struct btrace_func): Rename to ...
1456 (struct btrace_function): ...this. Update all users.
1457 (struct btrace_function) <segment, flow, up, insn, insn_offset)
1458 (number, level, flags>: New.
1459 (struct btrace_insn_iterator): Rename to ...
1460 (struct btrace_insn_history): ...this.
1462 (struct btrace_insn_iterator, btrace_call_iterator): New.
1463 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
1464 (struct btrace_target_info) <begin, end, level>
1465 <insn_history, call_history>: New.
1466 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1467 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1468 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1469 (btrace_call_number, btrace_call_begin, btrace_call_end)
1470 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1471 (btrace_find_function_by_number, btrace_set_insn_history)
1472 (btrace_set_call_history): New.
1473 * btrace.c (btrace_init_insn_iterator)
1474 (btrace_init_func_iterator, compute_itrace): Remove.
1475 (ftrace_print_function_name, ftrace_print_filename)
1476 (ftrace_skip_file): Change
1478 (ftrace_init_func): Remove.
1479 (ftrace_debug): Use new btrace_function fields.
1480 (ftrace_function_switched): Also consider gaining and
1481 losing symbol information).
1482 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
1483 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
1484 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
1486 (ftrace_new_function): Move. Remove debug print.
1487 (ftrace_update_lines, ftrace_update_insns): New.
1488 (ftrace_update_function): Check for call, ret, and jump.
1489 (compute_ftrace): Renamed to ...
1490 (btrace_compute_ftrace): ...this. Rewritten to compute call
1492 (btrace_fetch, btrace_clear): Updated.
1493 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1494 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1495 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1496 (btrace_call_number, btrace_call_begin, btrace_call_end)
1497 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1498 (btrace_find_function_by_number, btrace_set_insn_history)
1499 (btrace_set_call_history): New.
1500 * record-btrace.c (require_btrace): Use new btrace thread
1502 (record_btrace_info, btrace_insn_history)
1503 (record_btrace_insn_history, record_btrace_insn_history_range):
1504 Use new btrace thread info fields and new iterator.
1505 (btrace_func_history_src_line): Rename to ...
1506 (btrace_call_history_src_line): ...this. Use new btrace
1508 (btrace_func_history): Rename to ...
1509 (btrace_call_history): ...this. Use new btrace thread info
1510 fields and new iterator.
1511 (record_btrace_call_history, record_btrace_call_history_range):
1512 Use new btrace thread info fields and new iterator.
1514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1516 * frame.h (frame_id_build_unavailable_stack_special): New.
1517 * frame.c (frame_id_build_unavailable_stack_special): New.
1519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1521 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
1522 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
1523 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
1525 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
1526 (i386_insn_is_jump, i386_jmp_p): New.
1527 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
1528 insn_is_jump to gdbarch.
1529 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
1530 * gdbarch.h: Regenerated.
1531 * gdbarch.c: Regenerated.
1532 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
1533 (default_insn_is_jump): New.
1534 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
1535 (default_insn_is_jump): New.
1537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1539 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
1541 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
1542 (btrace_read_type) <btrace_read_new>: Change to ...
1543 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
1545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1547 * common/linux-btrace.c (linux_read_btrace): Free trace from
1550 2014-01-15 Doug Evans <dje@google.com>
1552 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
1555 2014-01-15 Tom Tromey <tromey@redhat.com>
1557 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
1558 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
1559 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
1560 (set_objfile_main_name): New function.
1561 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
1562 language_of_main>: New fields.
1563 (set_objfile_main_name): Declare.
1564 * symtab.c (find_main_name): Loop over objfiles to find the main
1566 (set_main_name): Now static.
1567 (get_main_info): Add comment.
1568 * symtab.h (set_main_name): Don't declare.
1570 2014-01-15 Tom Tromey <tromey@redhat.com>
1572 * symtab.c (main_progspace_key): New global.
1573 (struct main_info): New.
1574 (name_of_main, language_of_main): Remove.
1575 (get_main_info, main_info_cleanup): New function.
1576 (set_main_name, main_name, main_language): Use get_main_info.
1577 (_initialize_symtab): Initialize main_progspace_key.
1579 2014-01-15 Tom Tromey <tromey@redhat.com>
1581 * dbxread.c (process_one_symbol): Update.
1582 * dwarf2read.c (read_partial_die): Update.
1583 * symfile.c (set_initial_language): Call main_language.
1584 * symtab.c (language_of_main): Now static.
1585 (set_main_name): Add 'lang' parameter.
1586 (find_main_name): Update.
1587 (main_language): New function.
1588 (symtab_observer_executable_changed): Update.
1589 * symtab.h (set_main_name): Update.
1590 (language_of_main): Remove.
1591 (main_language): Declare.
1593 2014-01-15 Tom Tromey <tromey@redhat.com>
1595 * symfile.c (init_entry_point_info): Use new "initialized" field.
1597 * objfiles.h (struct entry_point) <initialized>: New field.
1598 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
1599 (struct objfile) <ei>: ...here. Remove.
1600 * objfiles.c (entry_point_address_query): Update.
1602 2014-01-15 Tom Tromey <tromey@redhat.com>
1604 * objfiles.c (entry_point_address_query): Relocate entry point
1606 (objfile_relocate1): Do not relocate entry point address.
1607 * objfiles.h (struct entry_info) <entry_point>: Update comment.
1608 <the_bfd_section_index>: New field.
1609 * symfile.c (init_entry_point_info): Find the entry point's
1612 2014-01-15 Tom Tromey <tromey@redhat.com>
1614 * solib-frv.c (enable_break): Use entry_point_address_query.
1616 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1618 * NEWS: Add note on improved process record-replay on
1619 arm*-linux* targets.
1621 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1623 * arm-tdep.c (enum arm_record_result): New enum.
1624 (arm_record_unsupported_insn): New function.
1625 (arm_record_coproc_data_proc): Removed.
1626 (thumb2_record_ld_st_multiple): New function.
1627 (thumb2_record_ld_st_dual_ex_tbb): New function.
1628 (thumb2_record_data_proc_sreg_mimm): New function.
1629 (thumb2_record_ps_dest_generic): New function.
1630 (thumb2_record_branch_misc_cntrl): New function.
1631 (thumb2_record_str_single_data): New function.
1632 (thumb2_record_ld_mem_hints): New function.
1633 (thumb2_record_ld_word): New function.
1634 (thumb2_record_lmul_lmla_div): New function.
1635 (thumb2_record_decode_insn_handler): New function.
1636 (decode_insn): Add thumb32 instruction handlers.
1638 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1640 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
1641 (struct arm_linux_record_tdep): Declare.
1642 (arm_canonicalize_syscall): New function.
1643 (arm_all_but_pc_registers_record): New function.
1644 (arm_linux_syscall_record): New function.
1645 (arm_linux_init_abi): Add syscall recording constructs.
1646 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
1647 decoding. (arm_record_coproc_data_proc): Update arm syscall
1649 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
1650 <arm_syscall_record>: New field.
1651 * configure.tgt (arm*-*-linux*): Add linux-record.o to
1654 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1656 * arm-tdep.c (thumb_record_misc): Update to use sp as base
1657 register for push instruction recording.
1659 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1661 * arm-tdep.c (thumb_record_misc): Update to correct logical
1662 error while recording ldm, ldmia and pop instructions.
1664 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1666 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
1668 2014-01-15 Pedro Alves <palves@redhat.com>
1670 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
1671 (go32_resume, go32_fetch_registers, store_register)
1672 (go32_store_registers, go32_prepare_to_store)
1673 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
1674 (go32_create_inferior, go32_can_run, go32_terminal_init)
1675 (go32_terminal_inferior, go32_terminal_ours): Delete forward
1678 2014-01-15 Tom Tromey <tromey@redhat.com>
1680 * target.h (async_callback_ftype): New typedef.
1681 (struct target_ops) <to_async>: Use it.
1683 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1685 * python/py-value.c (get_field_type): Remove unnecessary curly
1686 braces for single-statement if block.
1688 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1690 * python/py-type.c (convert_field): Add missing empty line
1693 2014-01-14 Doug Evans <dje@google.com>
1695 * symfile.h (expand_symtabs_matching): Renamed from
1696 expand_partial_symbol_names. Update prototype.
1697 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1698 * symfile.c (expand_symtabs_matching): Renamed from
1699 expand_partial_symbol_names. New args file_matcher, kind.
1700 Rename arg fun to symbol_matcher.
1701 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1702 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
1703 ada_expand_partial_symbol_name.
1704 (ada_make_symbol_completion_list): Update to call
1705 expand_symtabs_matching.
1706 (ada_add_global_exceptions): Call expand_symtabs_matching.
1707 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
1708 call map_symbol_filenames.
1709 * symtab.c (sources_info): Update to call map_symbol_filenames.
1710 (search_symbols): Call expand_symtabs_matching.
1711 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
1712 (default_make_symbol_completion_list_break_on): Update to call
1713 expand_symtabs_matching.
1714 (make_source_files_completion_list): Update to call
1715 map_symbol_filenames.
1717 2014-01-14 Doug Evans <dje@google.com>
1719 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
1720 (expand_symtabs_symbol_matcher_ftype): New typedef.
1721 (quick_symbol_functions.expand_symtabs_matching): Update to use.
1722 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1723 * symfile.c (expand_partial_symbol_names): Update to use
1724 expand_symtabs_symbol_matcher_ftype.
1725 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
1726 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1727 Arg name_matcher renamed to symbol_matcher.
1728 * psymtab.c (recursively_search_psymtabs): Update to use
1729 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
1731 (expand_symtabs_matching_via_partial): Update to use
1732 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1733 Arg name_matcher renamed to symbol_matcher.
1735 2014-01-14 Doug Evans <dje@google.com>
1737 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
1738 (map_partial_symbol_filenames): Ditto.
1739 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
1740 (map_partial_symbol_filenames): Ditto.
1741 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
1742 (map_partial_symbol_filenames): Ditto.
1743 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
1744 (map_partial_symbol_filenames): Ditto.
1745 * symtab.c: Delete #include "psymtab.h".
1747 2014-01-14 Pedro Alves <palves@redhat.com>
1748 Tom Tromey <tromey@redhat.com>
1750 * infrun.c (use_displaced_stepping): Use find_record_target
1751 instead of RECORD_IS_USED.
1752 (adjust_pc_after_break): Use record_full_is_used instead of
1754 * record-btrace.c (record_btrace_open): Call record_preopen
1755 instead of checking RECORD_IS_USED.
1756 * record-full.c (record_full_shortname)
1757 (record_full_core_shortname): New globals.
1758 (record_full_is_used): New function.
1759 (find_full_open): Call record_preopen instead of checking
1761 (init_record_full_ops): Set the target's shortname to
1762 record_full_shortname.
1763 (init_record_full_core_ops): Set the target's shortname to
1764 record_full_core_shortname.
1765 * record-full.h (record_full_is_used): Declare.
1766 * record.c (find_record_target): Make extern.
1767 (record_preopen): New function.
1768 * record.h (RECORD_IS_USED): Delete macro.
1769 (find_record_target, record_preopen): Declare functions.
1771 2014-01-14 Yao Qi <yao@codesourcery.com>
1773 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
1774 'len''s type to ULONGEST.
1775 (core_xfer_shared_libraries_aix): Likewise.
1776 * gdbarch.c, gdbarch.h: Regenerated.
1777 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
1778 Change type of 'len' to ULONGEST.
1779 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1780 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1782 2014-01-14 Yao Qi <yao@codesourcery.com>
1784 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
1785 type of 'len' to ULONGEST.
1786 (linux_xfer_osdata_processgroups): Likewise.
1787 (linux_xfer_osdata_threads): Likewise.
1788 (linux_xfer_osdata_fds): Likewise.
1789 (linux_xfer_osdata_isockets): Likewise.
1790 (linux_xfer_osdata_shm): Likewise.
1791 (linux_xfer_osdata_sem): Likewise.
1792 (linux_xfer_osdata_msg): Likewise.
1793 (linux_common_xfer_osdata): Likewise.
1794 (struct osdata_type) <getter>: Likewise.
1795 * common/linux-osdata.h (linux_common_xfer_osdata): Update
1798 2014-01-14 Yao Qi <yao@codesourcery.com>
1800 * target.h (target_xfer_partial_ftype): Update.
1801 (struct target_ops) <to_xfer_partial>: Change 'len' type to
1803 * aix-thread.c (aix_thread_xfer_partial): Change type of
1804 argument 'len' to ULONGEST.
1805 * auxv.c (procfs_xfer_auxv): Likewise.
1806 (ld_so_xfer_auxv): Likewise.
1807 (memory_xfer_auxv): Likewise.
1808 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1809 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1810 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1811 * corelow.c (core_xfer_partial): Likewise.
1812 * ctf.c (ctf_xfer_partial): Likewise.
1813 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
1815 (darwin_read_dyld_info): Likewise.
1816 (darwin_xfer_partial): Likewise.
1817 * exec.c (section_table_xfer_memory_partial): Likewise.
1818 (exec_xfer_partial): Likewise.
1819 * exec.h (section_table_xfer_memory_partial): Update
1821 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
1822 instead of plongest.
1823 (gnu_xfer_partial): Likewise.
1824 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
1825 (ia64_hpux_xfer_solib_got): Likewise.
1826 (ia64_hpux_xfer_partial): Likewise.
1827 * ia64-linux-nat.c (ia64_linux_xfer_partial):
1828 * inf-ptrace.c (inf_ptrace_xfer_partial):
1829 * inf-ttrace.c (inf_ttrace_xfer_partial):
1830 * linux-nat.c (linux_xfer_siginfo): Likewise.
1831 (linux_nat_xfer_partial): Likewise.
1832 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
1833 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
1834 * monitor.c (monitor_xfer_memory): Likewise.
1835 (monitor_xfer_partial): Likewise.
1836 * procfs.c (procfs_xfer_partial): Likewise.
1837 * record-full.c (record_full_xfer_partial): Likewise.
1838 (record_full_core_xfer_partial): Likewise.
1839 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
1840 instead of plongest.
1841 (gdbsim_xfer_partial): Likewise.
1842 * remote.c (remote_xfer_partial): Likewise.
1843 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1844 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1846 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1847 (rs6000_xfer_shared_libraries): Likewise.
1848 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1849 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1850 (sparc_xfer_partial): Likewise.
1851 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1852 (spu_xfer_partial): Likewise.
1853 * spu-multiarch.c (spu_xfer_partial): Likewise.
1854 * target.c (target_read_live_memory): Likewise.
1855 (memory_xfer_live_readonly_partial): Likewise.
1856 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
1857 (target_xfer_partial, default_xfer_partial): Likewise.
1858 (current_xfer_partial): Likewise.
1859 * tracepoint.c (tfile_xfer_partial): Likewise.
1860 * windows-nat.c (windows_xfer_memory): Likewise. Call
1861 pulongest instead of plongest.
1862 (windows_xfer_partial): Likewise.
1863 (windows_xfer_shared_libraries): Likewise.
1865 2014-01-14 Yao Qi <yao@codesourcery.com>
1867 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
1868 target_xfer_partial_ftype.
1870 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
1874 * valops.c (value_struct_elt_bitpos): New function
1875 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
1876 object to 'None' if the field name is an empty string ("").
1877 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
1878 attribute to look for a field when 'name' is 'None'.
1879 (get_field_type): New function
1881 2014-01-13 Doug Evans <dje@google.com>
1884 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
1885 (try_open_dwop_file): Ditto.
1886 * gdb_bfd.c: #include "vec.h".
1887 (bfdp): New typedef.
1888 (struct gdb_bfd_data): New member included_bfds.
1889 (gdb_bfd_unref): Unref all included bfds.
1890 (gdb_bfd_record_inclusion): New function.
1891 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
1893 2014-01-13 Tom Tromey <tromey@redhat.com>
1895 * gdbcore.h (deprecated_core_resize_section_table): Remove.
1897 2014-01-13 Tom Tromey <tromey@redhat.com>
1899 * defs.h (use_windows): Remove.
1900 * gdb.c (main): Update.
1901 * main.c (captured_main, gdb_main): Update.
1902 * main.h (struct captured_main_args) <use_windows>: Remove.
1903 * top.c (use_windows): Remove.
1905 2014-01-13 Tom Tromey <tromey@redhat.com>
1907 * defs.h (deprecated_flush_hook): Remove.
1909 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 * linux-thread-db.c (try_thread_db_load): Add parameter
1913 check_auto_load_safe. Move here the file_is_auto_load_safe call.
1914 (try_thread_db_load_from_pdir_1): Move it there from here.
1915 (try_thread_db_load_from_sdir): Update caller.
1916 (try_thread_db_load_from_dir): Move it there from here.
1918 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
1920 * regformats/regdat.sh: Always rewrite the register file.
1922 2014-01-13 Pedro Alves <palves@redhat.com>
1924 * Makefile.in (CHECK_HEADERS): New variable.
1925 (check-headers:): New rule.
1927 2014-01-13 Tom Tromey <tromey@redhat.com>
1929 * cli/cli-setshow.c (do_set_command): Update.
1930 * defs.h (deprecated_set_hook): Remove.
1931 * top.c (deprecated_set_hook): Remove.
1933 2014-01-13 Pedro Alves <palves@redhat.com>
1935 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
1936 the tracepoint if the PC is a pseudo-register.
1938 2014-01-13 Tom Tromey <tromey@redhat.com>
1940 * defs.h (XCALLOC): Remove.
1941 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
1942 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
1943 * dwarf2loc.c (allocate_piece_closure): Likewise.
1944 * elfread.c (elf_symfile_segments): Likewise.
1945 (elf_symfile_segments): Likewise.
1946 * gdbtypes.c (copy_type_recursive): Likewise.
1947 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
1948 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
1949 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
1951 * mt-tdep.c (mt_gdbarch_init): Likewise.
1952 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
1954 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
1955 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
1956 * registry.c (registry_alloc_data): Likewise.
1957 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
1958 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1959 * serial.c (serial_fdopen_ops): Likewise.
1960 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
1962 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
1963 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
1966 2014-01-13 Tom Tromey <tromey@redhat.com>
1968 * defs.h (XMALLOC): Remove.
1969 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
1970 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1971 * cli-out.c (struct ui_out *): Likewise.
1972 * cli/cli-dump.c (add_dump_command): Likewise.
1973 (add_dump_command): Likewise.
1974 * complaints.c (get_complaints): Likewise.
1975 (find_complaint): Likewise.
1976 * dwarf2-frame.c (execute_cfa_program): Likewise.
1977 * dwarf2read.c (abbrev_table_read_table): Likewise.
1978 * gdbarch.sh: Likewise.
1979 * gdbarch.c: Rebuild.
1980 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
1981 * interps.c (interp_new): Likewise.
1982 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
1983 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1984 * mi/mi-console.c (mi_console_file_new): Likewise.
1985 * mi/mi-interp.c (mi_interpreter_init): Likewise.
1986 * mi/mi-out.c (mi_out_new): Likewise.
1987 * mi/mi-parse.c (mi_parse): Likewise.
1988 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
1989 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
1990 * observer.c (xalloc_observer_list_node): Likewise.
1991 * regcache.c (regcache_xmalloc_1): Likewise.
1992 * reggroups.c (reggroup_new): Likewise.
1993 (_initialize_reggroup): Likewise.
1994 * registry.c (register_data_with_cleanup): Likewise.
1995 * remote.c (remote_notif_stop_alloc_reply): Likewise.
1996 * ser-base.c (serial_ttystate): Likewise.
1997 * ser-mingw.c (make_pipe_state): Likewise.
1998 * ser-pipe.c (pipe_open): Likewise.
1999 * serial.c (serial_open): Likewise.
2000 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2001 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2002 (tui_alloc_win_info): Likewise.
2003 (tui_add_content_elements): Likewise.
2004 * tui/tui-file.c (tui_file_new): Likewise.
2005 * tui/tui-out.c (tui_out_new): Likewise.
2006 * ui-file.c (mem_file_new): Likewise.
2007 * ui-out.c (push_level): Likewise.
2008 (make_cleanup_ui_out_end): Likewise.
2009 (append_header_to_list): Likewise.
2010 (ui_out_new): Likewise.
2011 * user-regs.c (user_reg_add_builtin): Likewise.
2013 2014-01-13 Tom Tromey <tromey@redhat.com>
2015 * defs.h (XZALLOC): Remove.
2016 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2017 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2018 (get_ada_tasks_inferior_data): Likewise.
2019 * auto-load.c (get_auto_load_pspace_data): Likewise.
2020 * auxv.c (get_auxv_inferior_data): Likewise.
2021 * bfd-target.c (target_bfd_reopen): Likewise.
2022 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2023 (deprecated_insert_raw_breakpoint): Likewise.
2024 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2025 * corelow.c (core_open): Likewise.
2026 * darwin-nat.c (darwin_check_new_threads): Likewise.
2027 (darwin_attach_pid): Likewise.
2028 * dummy-frame.c (dummy_frame_push): Likewise.
2029 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2030 * dwarf2loc.c (allocate_piece_closure): Likewise.
2031 * elfread.c (elf_symfile_segments): Likewise.
2032 * eval.c (ptrmath_type_p): Likewise.
2033 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2034 * gdbtypes.c (alloc_type_arch): Likewise.
2035 (alloc_type_instance): Likewise.
2036 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2037 * inf-child.c (inf_child_can_use_agent): Likewise.
2038 * inflow.c (get_inflow_inferior_data): Likewise.
2039 * infrun.c (save_infcall_suspend_state): Likewise.
2040 * jit.c (jit_reader_load): Likewise.
2041 (get_jit_objfile_data): Likewise.
2042 (get_jit_program_space_data): Likewise.
2043 (jit_object_open_impl): Likewise.
2044 (jit_symtab_open_impl): Likewise.
2045 (jit_block_open_impl): Likewise.
2046 (jit_frame_sniffer): Likewise.
2047 * linux-fork.c (add_fork): Likewise.
2048 * maint.c (make_command_stats_cleanup): Likewise.
2049 * objfiles.c (get_objfile_pspace_data): Likewise.
2050 * opencl-lang.c (struct lval_closure): Likewise.
2051 * osdata.c (osdata_start_osdata): Likewise.
2052 * progspace.c (new_address_space): Likewise.
2053 (add_program_space): Likewise.
2054 * remote-sim.c (get_sim_inferior_data): Likewise.
2055 * sh-tdep.c (sh_gdbarch_init): Likewise.
2056 * skip.c (Ignore): Likewise.
2057 (skip_delete_command): Likewise.
2058 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2059 (library_list_start_library): Likewise.
2060 (solib_aix_current_sos): Likewise.
2061 * solib-darwin.c (get_darwin_info): Likewise.
2062 (darwin_current_sos): Likewise.
2063 * solib-dsbt.c (get_dsbt_info): Likewise.
2064 * solib-ia64-hpux.c (new_so_list): Likewise.
2065 (ia64_hpux_get_solib_linkage_addr): Likewise.
2066 * solib-spu.c (append_ocl_sos): Likewise.
2067 (spu_current_sos): Likewise.
2068 * solib-svr4.c (get_svr4_info): Likewise.
2069 (svr4_keep_data_in_core): Likewise.
2070 (library_list_start_library): Likewise.
2071 (svr4_default_sos): Likewise.
2072 (svr4_read_so_list): Likewise.
2073 * solib-target.c (library_list_start_library): Likewise.
2074 (solib_target_current_sos): Likewise.
2075 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2076 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2077 * symfile.c (default_symfile_segments): Likewise.
2078 * target-descriptions.c (tdesc_data_init): Likewise.
2079 (tdesc_create_reg): Likewise.
2080 (struct tdesc_type *): Likewise.
2081 (tdesc_create_vector): Likewise.
2082 (tdesc_set_struct_size): Likewise.
2083 (struct tdesc_type *): Likewise.
2084 (tdesc_free_feature): Likewise.
2085 (tdesc_create_feature): Likewise.
2086 * windows-nat.c (windows_add_thread): Likewise.
2087 (windows_make_so): Likewise.
2088 * xml-support.c (gdb_xml_body_text): Likewise.
2089 (gdb_xml_create_parser_and_cleanup): Likewise.
2090 (xml_process_xincludes): Likewise.
2091 * xml-syscall.c (allocate_syscalls_info): Likewise.
2092 (syscall_create_syscall_desc): Likewise.
2094 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2096 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2097 function, with code from i386_stap_parse_special_token.
2098 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2099 (i386_stap_parse_special_token): Move code to the two functions
2102 2014-01-09 Pedro Alves <palves@redhat.com>
2103 Hui Zhu <hui@codesourcery.com>
2106 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2107 bp_err_string. Don't mark the location shlib_disabled if the
2108 error thrown wasn't a generic or memory error. Catch errors
2109 thrown while inserting breakpoints in overlayed code. Output
2110 error message of software breakpoints.
2111 * remote.c (remote_insert_breakpoint): If this breakpoint has
2112 target-side commands but this stub doesn't support Z0 packets,
2113 throw NOT_SUPPORTED_ERROR error.
2114 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2115 * target.h (target_insert_breakpoint): Extend comment.
2116 (target_insert_hw_breakpoint): Add comment.
2118 2014-01-08 Pedro Alves <palves@redhat.com>
2120 * remote.c (remote_add_thread): Add threads silently if starting
2122 (remote_notice_new_inferior): If in all-stop, and starting up,
2123 don't call notice_new_inferior.
2124 (get_current_thread): New function, factored out from ...
2125 (add_current_inferior_and_thread): ... this. Adjust.
2126 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2127 found any thread, then select the remote's current thread as GDB's
2130 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2132 * NEWS: Create a new section for the next release branch.
2133 Rename the section of the current branch, now that it has
2136 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2138 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2139 * version.in: Bump version to 7.7.50.DATE-cvs.
2141 2014-01-08 Yao Qi <yao@codesourcery.com>
2143 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2144 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2145 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2147 2014-01-08 Yao Qi <yao@codesourcery.com>
2149 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2150 return value of bfd_get_filename to symbol_file_add_from_bfd.
2152 2014-01-08 Pierre Muller <muller@sourceware.org>
2155 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2156 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2157 to prim_record_mininal_symbol_and_info.
2158 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2159 in call to prim_record_minimal_symbol_and_info.
2160 (read_pe_exported_syms): Set index field of section_data.
2162 2014-01-07 Andrew Pinski <apinski@cavium.com>
2164 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2165 * features/aarch64.c: Regenerate.
2167 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2169 * target.c (return_null): Define.
2170 (update_current_target): Use it instead of return_zero for
2171 functions that return a pointer.
2173 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2175 * source.c (add_path): Fix check for duplicated paths in the previously
2178 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2180 * ada-lang.c: Remove duplicated include statements.
2181 * alphabsd-nat.c: Ditto.
2182 * amd64-darwin-tdep.c: Ditto.
2183 * amd64fbsd-nat.c: Ditto.
2184 * auto-load.c: Ditto.
2186 * breakpoint.c: Ditto.
2188 * fork-child.c: Ditto.
2189 * gdb_usleep.c: Ditto.
2190 * i386-darwin-tdep.c: Ditto.
2191 * i386fbsd-nat.c: Ditto.
2193 * inferior.c: Ditto.
2195 * linux-nat.c: Ditto.
2196 * linux-tdep.c: Ditto.
2197 * m68kbsd-nat.c: Ditto.
2198 * m68klinux-nat.c: Ditto.
2199 * microblaze-tdep.c: Ditto.
2200 * mips-linux-tdep.c: Ditto.
2201 * mn10300-tdep.c: Ditto.
2202 * nto-tdep.c: Ditto.
2203 * opencl-lang.c: Ditto.
2205 * printcmd.c: Ditto.
2206 * regcache.c: Ditto.
2207 * remote-m32r-sdi.c: Ditto.
2211 * tilegx-linux-nat.c: Ditto.
2212 * tilegx-tdep.c: Ditto.
2213 * tracepoint.c: Ditto.
2215 * vaxbsd-nat.c: Ditto.
2216 * windows-nat.c: Ditto.
2217 * xtensa-tdep.c: Ditto.
2219 2014-01-07 Yao Qi <yao@codesourcery.com>
2221 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2223 2014-01-07 Yao Qi <yao@codesourcery.com>
2224 Joel Brobecker <brobecker@adacore.com>
2226 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2227 (pdc_write_regs): Likewise.
2228 (fetch_regs_kernel_thread): Likewise.
2229 (store_regs_kernel_thread): Likewise.
2231 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2233 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2234 tagged type objects to their actual type.
2236 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2238 * ada-valprint.c (print_field_values): Add "language" parameter.
2239 Update calls to print_field_values and print_variant_part.
2240 Pass new parameter "language" in call to val_print instead
2241 of "current_language". Replace call to ada_val_print by call
2243 (print_variant_part): Add "language" parameter.
2244 (ada_val_print_struct_union): Update call to print_field_values.
2246 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2248 * ada-valprint.c (ui_memcpy): Delete.
2249 (ada_print_floating): Update documentation. Add empty line
2250 between between function documentation and implementation.
2251 Delete variable "buffer". Use ui_file_xstrdup in place of
2252 ui_file_put. Minor adjustments following this change.
2254 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2256 * ada-valprint.c (ada_val_print_string): New function,
2257 extracted from ada_val_print_array.
2258 (ada_val_print_array): Replace extracted code by call
2259 to ada_val_print_string followed by a return. Move
2260 "else" branch to the function's top block.
2262 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2264 * ada-valprint.c (ada_val_print_array): Move implementation
2265 down. Rename parameter "offset" and "val" into "offset_aligned"
2266 and "original_value" respectively. Add parameter "offset".
2268 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2270 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2271 re-organizing the code. Change the "???" message printed
2272 when target type is a TYPE_CODE_UNDEF into
2273 "<ref to undefined type>".
2275 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2277 * ada-valprint.c (print_record): Delete, implementation inlined...
2278 (ada_val_print_struct_union): ... here. Remove call to
2279 ada_check_typedef in inlined implementation.
2281 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2283 * ada-valprint.c (ada_val_print_gnat_array): New function,
2284 extracted from ada_val_print_1;
2285 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2286 (ada_val_print_flt, ada_val_print_struct_union)
2287 (ada_val_print_ref): Likewise.
2288 (ada_val_print_1): Delete variables i and elttype.
2289 Replace extracted-out code by call to corresponding
2292 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2294 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2298 * ada-valprint.c (ada_val_print_1): Replace calls to
2299 ada_val_print_1 by calls to val_print.
2301 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2303 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2304 Update calls to self accordingly. Replace calls to c_val_print
2305 by calls to val_print.
2307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2309 * ada-valprint.c (print_record): Delete declaration.
2310 (adjust_type_signedness, ada_val_print_1): Likewise.
2311 (ada_val_print): Move function implementation down.
2312 (print_variant_part, print_field_values, print_record):
2313 Move function implementation up.
2315 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2317 * python/py-type.c (typy_get_name): New function.
2318 (type_object_getset): Add entry for attribute "name".
2319 * NEWS: Add entry mentioning this new attribute.
2321 2014-01-07 Yao Qi <yao@codesourcery.com>
2323 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2326 2014-01-07 Yao Qi <yao@codesourcery.com>
2328 * gnu-nat.c (info_port_rights): Add qualifier const to
2331 2014-01-07 Yao Qi <yao@codesourcery.com>
2333 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2335 2014-01-07 Yao Qi <yao@codesourcery.com>
2337 * gnu-nat.c (make_inf) Update declaration.
2338 (make_inf): Make it static.
2339 (inf_set_traced): Likewise.
2340 (inf_port_to_thread, inf_task_died_status): Likewise.
2342 2014-01-07 Yao Qi <yao@codesourcery.com>
2344 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2346 2014-01-07 Yao Qi <yao@codesourcery.com>
2348 * gnu-nat.c (_initialize_gnu_nat): Declare.
2350 2014-01-07 Yao Qi <yao@codesourcery.com>
2352 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2354 (struct gdbarch_info) <byte_order>: Change type to
2356 <byte_order_for_code>: Likewise.
2357 * gdbarch.c, gdbarch.h: Regenerated.
2359 2014-01-06 Sasha Smundak <asmundak@google.com>
2361 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2363 2014-01-06 Tom Tromey <tromey@redhat.com>
2365 * doublest.c (convert_doublest_to_floatformat): Use const, not
2367 * somread.c (som_symtab_read): Likewise.
2369 2014-01-07 Hui Zhu <hui@codesourcery.com>
2371 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2372 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2373 (gdb_bfd_fopen): Ditto.
2374 (gdb_bfd_openr): Ditto.
2375 (gdb_bfd_openw): Ditto.
2376 (gdb_bfd_openr_iovec): Ditto.
2377 (gdb_bfd_fdopenr): Ditto.
2378 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2379 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2381 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2383 * symfile-mem.c (symbol_file_add_from_memory): Removed
2384 gdb_bfd_stash_filename.
2386 2014-01-03 Doug Evans <dje@google.com>
2388 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2391 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2393 Update year range in copyright notice of all files.
2395 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2397 * top.c (print_gdb_version): Set copyright year to 2014.
2399 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2401 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2403 For older changes see ChangeLog-2013.
2409 version-control: never