Add Guile as an extension language.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-02-10 Doug Evans <xdje42@gmail.com>
2
3 Add Guile as an extension language.
4 * NEWS: Mention Guile scripting.
5 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9 (CLIBS): Add GUILE_LIBS.
10 (install-guile): New rule.
11 (guile.o): New rule.
12 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
15 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
16 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
17 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
18 (scm-type.o, scm-utils.o, scm-value.o): New rules.
19 * configure.ac: New option --with-guile.
20 * configure: Regenerate.
21 * config.in: Regenerate.
22 * auto-load.c: Remove #include "python/python.h". Add #include
23 "gdb/section-scripts.h".
24 (source_section_scripts): Handle Guile scripts.
25 (_initialize_auto_load): Add name of Guile objfile script to
26 scripts-directory help text.
27 * breakpoint.c (condition_command): Tweak comment to include Scheme.
28 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
29 (struct breakpoint): New member scm_bp_object.
30 * defs.h (enum command_control_type): New value guile_control.
31 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
32 "extension.h".
33 (show_user): Update comment.
34 (_initialize_cli_cmds): Update help text for "show user". Update help
35 text for max-user-call-depth.
36 * cli/cli-script.c: Remove #include "python/python.h". Add #include
37 "extension.h".
38 (multi_line_command_p): Add guile_control.
39 (print_command_lines): Handle guile_control.
40 (execute_control_command, recurse_read_control_structure): Ditto.
41 (process_next_line): Recognize "guile" commands.
42 * disasm.c (gdb_disassemble_info): Make non-static.
43 * disasm.h: #include "dis-asm.h".
44 (struct gdbarch): Add forward decl.
45 (gdb_disassemble_info): Declare.
46 * extension.c: #include "guile/guile.h".
47 (extension_languages): Add guile.
48 (get_ext_lang_defn): Handle EXT_LANG_GDB.
49 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
50 * gdbtypes.c (get_unsigned_type_max): New function.
51 (get_signed_type_minmax): New function.
52 * gdbtypes.h (get_unsigned_type_max): Declare.
53 (get_signed_type_minmax): Declare.
54 * guile/README: New file.
55 * guile/guile-internal.h: New file.
56 * guile/guile.c: New file.
57 * guile/guile.h: New file.
58 * guile/scm-arch.c: New file.
59 * guile/scm-auto-load.c: New file.
60 * guile/scm-block.c: New file.
61 * guile/scm-breakpoint.c: New file.
62 * guile/scm-disasm.c: New file.
63 * guile/scm-exception.c: New file.
64 * guile/scm-frame.c: New file.
65 * guile/scm-gsmob.c: New file.
66 * guile/scm-iterator.c: New file.
67 * guile/scm-lazy-string.c: New file.
68 * guile/scm-math.c: New file.
69 * guile/scm-objfile.c: New file.
70 * guile/scm-ports.c: New file.
71 * guile/scm-pretty-print.c: New file.
72 * guile/scm-safe-call.c: New file.
73 * guile/scm-string.c: New file.
74 * guile/scm-symbol.c: New file.
75 * guile/scm-symtab.c: New file.
76 * guile/scm-type.c: New file.
77 * guile/scm-utils.c: New file.
78 * guile/scm-value.c: New file.
79 * guile/lib/gdb.scm: New file.
80 * guile/lib/gdb/boot.scm: New file.
81 * guile/lib/gdb/experimental.scm: New file.
82 * guile/lib/gdb/init.scm: New file.
83 * guile/lib/gdb/iterator.scm: New file.
84 * guile/lib/gdb/printing.scm: New file.
85 * guile/lib/gdb/types.scm: New file.
86 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
87 (VPATH): Add $(GUILE_SRCDIR).
88 (GUILE_DIR): New variable.
89 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
90 (all): Add stamp-guile dependency.
91 (stamp-guile): New rule.
92 (clean-guile, install-guile, uninstall-guile): New rules.
93 (install-only): Add install-guile dependency.
94 (uninstall): Add uninstall-guile dependency.
95 (clean): Add clean-guile dependency.
96
97 2014-02-09 Doug Evans <xdje42@gmail.com>
98
99 Revert this patch (which I approved, mea culpa).
100
101 2014-02-08 Mark Kettenis <kettenis@gnu.org>
102
103 * Makefile.in (all-lib): Remove.
104 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
105
106 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 Fix Python stack corruption.
109 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
110 gdb_py_longest.
111
112 2014-02-08 Mark Kettenis <kettenis@gnu.org>
113
114 * Makefile.in (all-lib): Remove.
115 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
116
117 2014-02-07 Doug Evans <dje@google.com>
118
119 * extension-priv.h (extension_language_script_ops): Add comment.
120 (extension_language_ops): Add comment.
121 (active_ext_lang_state): Fix typo in comment.
122
123 2014-02-07 Pedro Alves <palves@redhat.com>
124
125 * infrun.c (handle_signal_stop) <signal arrives while stepping
126 over a breakpoint>: Switch back to the stepping thread.
127
128 2014-02-07 Yao Qi <yao@codesourcery.com>
129
130 * target.c (target_xfer_partial): Return zero if LEN is zero.
131
132 2014-02-07 Yao Qi <yao@codesourcery.com>
133
134 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
135 (ld_so_xfer_auxv): Likewise.
136 * bfd-target.c (target_bfd_xfer_partial): Likewise.
137 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
138 * corelow.c (core_xfer_partial): Likewise.
139 * ctf.c (ctf_xfer_partial): Likewise.
140 * darwin-nat.c (darwin_read_dyld_info): Likewise.
141 (darwin_xfer_partial): Likewise.
142 * exec.c (exec_xfer_partial): Likewise.
143 * gnu-nat.c (gnu_xfer_partial): Likewise.
144 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
145 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
146 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
147 * linux-nat.c (linux_xfer_siginfo): Likewise.
148 (linux_proc_xfer_spu): Likewise.
149 * procfs.c (procfs_xfer_partial): Likewise.
150 * record-full.c (record_full_xfer_partial): Likewise.
151 (record_full_core_xfer_partial): Likewise.
152 * remote-sim.c (gdbsim_xfer_partial): Likewise.
153 * remote.c (remote_write_qxfer): Likewise.
154 (remote_write_qxfer, remote_read_qxfer): Likewise.
155 (remote_xfer_partial): Likewise.
156 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
157 (rs6000_xfer_shared_libraries): Likewise.
158 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
159 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
160 (spu_xfer_partial): Likewise.
161 * target.c (memory_xfer_partial_1): Likewise.
162 * tracepoint.c (tfile_xfer_partial): Likewise.
163 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
164 (windows_xfer_partial): Likewise.
165
166 2014-02-07 Yao Qi <yao@codesourcery.com>
167
168 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
169 comments.
170 (core_xfer_shared_libraries_aix): Likewise.
171 * gdbarch.c, gdbarch.h: Regenerated.
172 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
173 ULONGEST. Change 'len_avail' type to ULONGEST.
174 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
175 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
176 declaration.
177 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
178
179 2014-02-07 Yao Qi <yao@codesourcery.com>
180
181 * corefile.c (memory_error): Get 'exception' from ERR and pass
182 'exception' to throw_error.
183
184 2014-02-06 Doug Evans <xdje42@gmail.com>
185
186 * configure.ac (libpython checking): Remove all but python.o from
187 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
188 * configure: Regenerate.
189
190 * Makefile.in (SFILES): Add extension.c.
191 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
192 (COMMON_OBS): Add extension.o.
193 * extension.h: New file.
194 * extension-priv.h: New file.
195 * extension.c: New file.
196
197 * python/python-internal.h: #include "extension.h".
198 (gdbpy_auto_load_enabled): Declare.
199 (gdbpy_apply_val_pretty_printer): Declare.
200 (gdbpy_apply_frame_filter): Declare.
201 (gdbpy_preserve_values): Declare.
202 (gdbpy_breakpoint_cond_says_stop): Declare.
203 (gdbpy_breakpoint_has_cond): Declare.
204 (void source_python_script_for_objfile): Delete.
205 * python/python.c: #include "extension-priv.h".
206 Delete inclusion of "observer.h".
207 (extension_language_python): Moved here and renamed from
208 script_language_python in py-auto-load.c.
209 Redefined to be of type extension_language_defn.
210 (python_extension_script_ops): New global.
211 (python_extension_ops): New global.
212 (struct python_env): New member previous_active.
213 (restore_python_env): Call restore_active_ext_lang.
214 (ensure_python_env): Call set_active_ext_lang.
215 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
216 New arg extlang.
217 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
218 New arg extlang.
219 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
220 New arg extlang.
221 (gdbpy_eval_from_control_command): Renamed from
222 eval_python_from_control_command, made static. New arg extlang.
223 (gdbpy_source_script) Renamed from source_python_script, made static.
224 New arg extlang.
225 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
226 result to int. New arg extlang.
227 (gdbpy_source_objfile_script): Renamed from
228 source_python_script_for_objfile, made static. New arg extlang.
229 (gdbpy_start_type_printers): Renamed from start_type_printers, made
230 static. New args extlang, extlang_printers. Change result type to
231 "void".
232 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
233 static. New arg extlang. Rename arg printers to extlang_printers
234 and change type to ext_lang_type_printers *.
235 (gdbpy_free_type_printers): Renamed from free_type_printers, made
236 static. Replace argument arg with extlang, extlang_printers.
237 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
238 (!HAVE_PYTHON, source_python_script): Delete.
239 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
240 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
241 (!HAVE_PYTHON, start_type_printers): Delete.
242 (!HAVE_PYTHON, apply_type_printers): Delete.
243 (!HAVE_PYTHON, free_type_printers): Delete.
244 (_initialize_python): Delete call to observer_attach_before_prompt.
245 (finalize_python): Set/restore active extension language.
246 (gdbpy_finish_initialization) Renamed from
247 finish_python_initialization, made static. New arg extlang.
248 (gdbpy_initialized): New function.
249 * python/python.h: #include "extension.h". Delete #include
250 "value.h", "mi/mi-cmds.h".
251 (extension_language_python): Declare.
252 (GDBPY_AUTO_FILE_NAME): Delete.
253 (enum py_bt_status): Moved to extension.h and renamed to
254 ext_lang_bt_status.
255 (enum frame_filter_flags): Moved to extension.h.
256 (enum py_frame_args): Moved to extension.h and renamed to
257 ext_lang_frame_args.
258 (finish_python_initialization): Delete.
259 (eval_python_from_control_command): Delete.
260 (source_python_script): Delete.
261 (apply_val_pretty_printer): Delete.
262 (apply_frame_filter): Delete.
263 (preserve_python_values): Delete.
264 (gdbpy_script_language_defn): Delete.
265 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
266 (start_type_printers, apply_type_printers, free_type_printers): Delete.
267
268 * auto-load.c: #include "extension.h".
269 (GDB_AUTO_FILE_NAME): Delete.
270 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
271 (script_language_gdb): Delete, moved to extension.c and renamed to
272 extension_language_gdb.
273 (source_gdb_script_for_objfile): Delete.
274 (auto_load_pspace_info): New member unsupported_script_warning_printed.
275 (loaded_script): Change type of language member to
276 struct extension_language_defn *.
277 (init_loaded_scripts_info): Initialize
278 unsupported_script_warning_printed.
279 (maybe_add_script): Make static. Change type of language arg to
280 struct extension_language_defn *.
281 (clear_section_scripts): Reset unsupported_script_warning_printed.
282 (auto_load_objfile_script_1): Rewrite to use extension language API.
283 (auto_load_objfile_script): Make public. Remove support-compiled-in
284 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
285 (source_section_scripts): Rewrite to use extension language API.
286 (load_auto_scripts_for_objfile): Rewrite to use
287 auto_load_scripts_for_objfile.
288 (collect_matching_scripts_data): Change type of language member to
289 struct extension_language_defn *.
290 (auto_load_info_scripts): Change type of language arg to
291 struct extension_language_defn *.
292 (unsupported_script_warning_print): New function.
293 (script_not_found_warning_print): Make static.
294 (_initialize_auto_load): Rewrite construction of scripts-directory
295 help.
296 * auto-load.h (struct objfile): Add forward decl.
297 (struct script_language): Delete.
298 (struct auto_load_pspace_info): Add forward decl.
299 (struct extension_language_defn): Add forward decl.
300 (maybe_add_script): Delete.
301 (auto_load_objfile_script): Declare.
302 (script_not_found_warning_print): Delete.
303 (auto_load_info_scripts): Update prototype.
304 (auto_load_gdb_scripts_enabled): Declare.
305 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
306 auto_load_python_scripts_enabled and made public.
307 (script_language_python): Delete, moved to python.c.
308 (gdbpy_script_language_defn): Delete.
309 (info_auto_load_python_scripts): Update to use
310 extension_language_python.
311
312 * breakpoint.c (condition_command): Replace call to
313 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
314 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
315 with call to breakpoint_ext_lang_cond_says_stop.
316 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
317 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
318 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
319 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
320 New arg slang.
321 (local_setattro): Print name of extension language with existing
322 stop condition.
323
324 * valprint.c (val_print, value_print): Update to call
325 apply_ext_lang_val_pretty_printer.
326 * cp-valprint.c (cp_print_value): Update call to
327 apply_ext_lang_val_pretty_printer.
328 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
329 (gdbpy_apply_val_pretty_printer): Renamed from
330 apply_val_pretty_printer. New arg extlang.
331 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
332
333 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
334 extension language API.
335 * cli/cli-script.c (execute_control_command): Update to call
336 eval_ext_lang_from_control_command.
337
338 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
339 enum ext_lang_bt_status values. Update call to
340 apply_ext_lang_frame_filter.
341 (mi_cmd_stack_list_locals): Ditto.
342 (mi_cmd_stack_list_args): Ditto.
343 (mi_cmd_stack_list_variables): Ditto.
344 * mi/mi-main.c: Delete #include "python/python-internal.h".
345 Add #include "extension.h".
346 (mi_cmd_list_features): Replace reference to python internal variable
347 gdb_python_initialized with call to ext_lang_initialized_p.
348
349 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
350 Update to use enum ext_lang_frame_args. Update to call
351 apply_ext_lang_frame_filter.
352 * python/py-framefilter.c (extract_sym): Update to use enum
353 ext_lang_bt_status.
354 (extract_value, py_print_type, py_print_value): Ditto.
355 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
356 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
357 (py_print_frame): Ditto.
358 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
359 New arg extlang. Update to use enum ext_lang_bt_status.
360
361 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
362 finish_python_initialization. Replace with call to
363 finish_ext_lang_initialization.
364
365 * typeprint.c (do_free_global_table): Update to call
366 free_ext_lang_type_printers.
367 (create_global_typedef_table): Update to call
368 start_ext_lang_type_printers.
369 (find_global_typedef): Update to call apply_ext_lang_type_printers.
370 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
371 (type_print_options): Change type of global_printers from "void *"
372 to "struct ext_lang_type_printers *".
373
374 * value.c (preserve_values): Update to call preserve_ext_lang_values.
375 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
376 (gdbpy_preserve_values): Renamed from preserve_python_values.
377 New arg extlang.
378 (!HAVE_PYTHON, preserve_python_values): Delete.
379
380 * utils.c (quit_flag): Delete, moved to extension.c.
381 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
382 extension.c.
383
384 * eval.c: Delete #include "python/python.h".
385 * main.c: Delete #include "python/python.h".
386
387 * defs.h: Update comment.
388
389 2014-02-06 Joel Brobecker <brobecker@adacore.com>
390
391 GDB 7.7 released.
392
393 2014-02-05 Mark Kettenis <kettenis@gnu.org>
394
395 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
396 defined.
397
398 2014-02-05 Yao Qi <yao@codesourcery.com>
399
400 * remote.c (remote_pass_signals): Remove local 'buf' and use
401 rs->buf.
402 (remote_program_signals): Likewise.
403
404 2014-02-05 Yao Qi <yao@codesourcery.com>
405
406 * ctf.c: Include "inferior.h" and "gdbthread.h".
407 (CTF_PID): A new macro.
408 (ctf_open): Call inferior_appeared and add_thread_silent.
409 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
410 (ctf_thread_alive): New function.
411 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
412
413 2014-02-05 Yao Qi <yao@codesourcery.com>
414
415 Revert this patch:
416
417 2013-05-24 Yao Qi <yao@codesourcery.com>
418
419 * tracepoint.c (TFILE_PID): Remove.
420 (tfile_open): Don't add thread and inferior.
421 (tfile_close): Don't set 'inferior_ptid'. Don't call
422 exit_inferior_silent.
423 (tfile_thread_alive): Remove.
424 (init_tfile_ops): Don't set field 'to_thread_alive' of
425 tfile_ops.
426
427 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
428
429 * remote.c (remote_start_remote): Call remote_check_symbols even
430 if only symbol-file (not file) has been given.
431
432 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
433
434 * gdbarch.sh (skip_entrypoint): New callback.
435 * gdbarch.c, gdbarch.h: Regenerate.
436 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
437 * infrun.c (fill_in_stop_func): Likewise.
438 * ppc-linux-tdep.c: Include "elf/ppc64.h".
439 (ppc_elfv2_elf_make_msymbol_special): New function.
440 (ppc_elfv2_skip_entrypoint): Likewise.
441 (ppc_linux_init_abi): Install them for ELFv2.
442
443 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
444
445 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
446 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
447 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
448 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
449 structures returned in GPRs.
450
451 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
452
453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
454 offset to the stack parameter list for the ELFv2 ABI.
455
456 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
457
458 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
459 set_gdbarch_convert_from_func_ptr_addr and
460 set_gdbarch_elf_make_msymbol_special for ELFv1.
461 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
462 function descriptors on ELFv1.
463 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
464 set up r12 at function entry.
465
466 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
467
468 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
469 (struct gdbarch_tdep): New member elf_abi.
470
471 * rs6000-tdep.c: Include "elf/ppc64.h".
472 (rs6000_gdbarch_init): Detect ELF ABI version.
473
474 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
475
476 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
477 within a register pair holding a DFP 128-bit value on little-endian.
478 (ppc64_sysv_abi_return_value_base): Likewise.
479 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
480 (dfp_pseudo_register_write): Likewise.
481
482 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
483
484 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
485 offset on little-endian when passing _Decimal32.
486 (ppc64_sysv_abi_return_value_base): Likewise for return values.
487
488 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
489
490 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
491 of the overlapped FP register within the VSX register on little-
492 endian platforms.
493 (efpr_pseudo_register_write): Likewise.
494
495 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
496
497 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
498 offset on little-endian when passing small structures.
499
500 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
501
502 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
503 (struct ppc64_sysv_argpos): New data structure.
504 (ppc64_sysv_abi_push_float): Remove.
505 (ppc64_sysv_abi_push_val): New function.
506 (ppc64_sysv_abi_push_integer): Likewise.
507 (ppc64_sysv_abi_push_freg): Likewise.
508 (ppc64_sysv_abi_push_vreg): Likewise.
509 (ppc64_sysv_abi_push_param): Likewise.
510 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
511 (ppc64_sysv_abi_return_value_base): New function.
512 (ppc64_sysv_abi_return_value): Refactor to use it.
513
514 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
515
516 * NEWS: Document new target powerpc64le-*-linux*.
517
518 2014-02-04 Mark Kettenis <kettenis@gnu.org>
519
520 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
521 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
522 core dumps.
523 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
524 register set used in ELF core dumps. Add floating-point register set.
525
526 2014-02-03 Kevin Buettner <kevinb@redhat.com>
527
528 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
529 dwarf2_to_gdb[] table using symbolic constants. Adjust
530 penultimate entry from number representing the PC register
531 to symbolic constant representing the MDR register. Add
532 constant for the PC register to the end of the table.
533
534 2014-02-03 Mark Kettenis <kettenis@gnu.org>
535
536 * bsd-kvm.c: Include <sys/param.h>
537
538 2014-02-03 Mark Kettenis <kettenis@gnu.org>
539
540 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
541
542 2014-01-31 Joel Brobecker <brobecker@adacore.com>
543
544 * ada-lang.h (clear_ada_sym_cache): Delete.
545
546 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
547
548 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
549
550 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
551
552 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
553 the sigreturn register save area only if the syscall is
554 sigreturn.
555
556 2014-01-29 Joel Brobecker <brobecker@adacore.com>
557
558 * valops.c (value_slice): Minor reformatting.
559
560 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
561
562 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
563
564 2014-01-28 Joel Brobecker <brobecker@adacore.com>
565
566 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
567 New static globals.
568 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
569 (ada_ignore_descriptive_types_p): New static global.
570 (find_parallel_type_by_descriptive_type): Return immediately
571 if ada_ignore_descriptive_types_p is set.
572 (_initialize_ada_language): Register new commands "maintenance
573 set ada", "maintenance show ada", "maintenance set ada
574 ignore-descriptive-types" and "maintenance show ada
575 ignore-descriptive-types".
576 * NEWS: Add entry for new "maint ada set/show
577 ignore-descriptive-types" commands.
578
579 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
580
581 * record-btrace.c (record_btrace_close): Call btrace_teardown
582 for all threads.
583
584 2014-01-27 Joel Brobecker <brobecker@adacore.com>
585
586 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
587 "ui-out.h".
588
589 2014-01-27 Joel Brobecker <brobecker@adacore.com>
590
591 * ada-typeprint (type_is_full_subrange_of_target_type):
592 New function.
593 (print_range): Add parameter bounds_prefered_p. If not set,
594 try printing range types using the name of their base type.
595 (print_range_type): Add parameter bounds_prefered_p.
596 Use it in call to print_range.
597 (print_array_type, ada_print_type): Update calls to print_range
598 and print_range_type.
599
600 2014-01-27 Joel Brobecker <brobecker@adacore.com>
601
602 * ada-typeprint.c (print_array_type, print_choices, print_range)
603 (print_range_bound, print_dynamic_range_bound, print_range_type):
604 Remove declaration.
605
606 2014-01-27 Joel Brobecker <brobecker@adacore.com>
607
608 * ada-typeprint.c (print_range): Add missing empty line
609 after local declaration.
610
611 2014-01-27 Joel Brobecker <brobecker@adacore.com>
612
613 * ada-valprint.c (print_optional_low_bound): Get index_type's
614 target type for as long as it is a TYPE_CODE_RANGE.
615
616 2014-01-27 Joel Brobecker <brobecker@adacore.com>
617
618 * procfs.c (procfs_make_note_section): Remove assertion and
619 associated comment.
620
621 2014-01-24 Yao Qi <yao@codesourcery.com>
622
623 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
624 * corelow.c (get_core_siginfo): Likewise.
625
626 2014-01-24 Yao Qi <yao@codesourcery.com>
627
628 * remote.c (remote_write_bytes_aux): Change type of 'len' to
629 ULONGEST. Don't check 'len' is negative.
630 (remote_write_bytes): Change type of 'len' to ULONGEST.
631
632 2014-01-23 Tom Tromey <tromey@redhat.com>
633
634 PR python/16485:
635 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
636 Handle exception from frame.block.
637 (FrameVars.fetch_frame_locals): Likewise.
638
639 2014-01-23 Tom Tromey <tromey@redhat.com>
640
641 PR python/16487:
642 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
643 on a NULL pointer. Move "goto error" to correct place.
644
645 2014-01-23 Tom Tromey <tromey@redhat.com>
646
647 PR python/16491:
648 * python/py-framefilter.c (apply_frame_filter): Call
649 ensure_python_env after computing gdbarch.
650
651 2014-01-23 Yao Qi <yao@codesourcery.com>
652
653 * target.c (raw_memory_xfer_partial): Change argument type
654 from void * to gdb_byte *.
655 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
656
657 2014-01-22 Doug Evans <dje@google.com>
658
659 New gdbserver option --debug-format=timestamp.
660 * NEWS: Mention it.
661
662 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
663
664 * syscalls/s390x-linux.xml: New file.
665 * syscalls/s390-linux.xml: New file.
666 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
667 (XML_SYSCALL_FILENAME_S390X): Likewise.
668 (op_svc): New enum value for SVC opcode.
669 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
670 (s390_linux_get_syscall_number): New function.
671 (s390_gdbarch_init): Register '*get_syscall_number' and the
672 syscall xml file name.
673 * data-directory/Makefile.in (SYSCALLS_FILES): Add
674 "s390-linux.xml" and "s390x-linux.xml".
675 * NEWS: Announce new feature.
676
677 2014-01-22 Baruch Siach <baruch@tkos.co.il>
678
679 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
680
681 2014-01-22 Pedro Alves <palves@redhat.com>
682
683 * xtensa-config.c: Include defs.h.
684
685 2014-01-22 Joel Brobecker <brobecker@adacore.com>
686
687 * common/common-utils.h: Add "ARI:" comment beside __func__
688 reference.
689
690 2014-01-22 Joel Brobecker <brobecker@adacore.com>
691
692 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
693 documentation a bit.
694
695 2014-01-21 Roland McGrath <mcgrathr@google.com>
696
697 * configure.ac: Call AM_PROG_INSTALL_STRIP.
698 * configure: Regenerate.
699 * aclocal.m4: Regenerate.
700 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
701 New substituted variables.
702 (install-strip): New target.
703 (INSTALL_SCRIPT): New substituted variable.
704 (FLAGS_TO_PASS): Add it.
705 (install-only): Use $(INSTALL_SCRIPT) rather than
706 $(INSTALL_PROGRAM) for gcore.
707
708 2014-01-20 Tom Tromey <tromey@redhat.com>
709
710 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
711 together.
712
713 2014-01-20 Tom Tromey <tromey@redhat.com>
714
715 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
716 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
717 (deprecated_cmd_warning, complete_on_cmdlist): Update.
718 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
719 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
720 (struct cmd_list_element) <flags>: Remove.
721 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
722 doc_allocated>: New fields.
723 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
724 bitfields.
725 * maint.c (maintenance_do_deprecate): Update.
726 * top.c (execute_command): Update.
727
728 2014-01-20 Baruch Siach <baruch@tkos.co.il>
729
730 * xtensa-linux-nat.c: Include asm/ptrace.h.
731
732 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
733
734 * Makefile.in (SFILES): Add d-support.c.
735 (COMMON_OBS): Add d-support.o.
736 * d-lang.h (d_parse_symbol): Add comment, now defined in
737 d-support.c.
738 * d-lang.c (parse_call_convention)
739 (parse_attributes, parse_function_types)
740 (parse_function_args, parse_type, parse_identifier)
741 (call_convention_p, d_parse_symbol): Move functions to ...
742 * d-support.c: ... New file.
743
744 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
745
746 * d-lang.h (d_parse_symbol): Add declaration.
747 * d-lang.c (extract_identifiers)
748 (extract_type_info): Remove functions.
749 (parse_call_convention, parse_attributes)
750 (parse_function_types, parse_function_args)
751 (parse_type, parse_identifier, call_convention_p)
752 (d_parse_symbol): New functions.
753 (d_demangle): Use d_parse_symbol to demangle D symbols.
754
755 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
756
757 * d-lang.h (struct builtin_d_type): New data type.
758 (builtin_d_type): Add declaration.
759 * d-lang.c (d_language_arch_info, build_d_types)
760 (builtin_d_type): New functions.
761 (enum d_primitive_types): New data type.
762 (d_language_defn): Change c_language_arch_info to
763 d_language_arch_info.
764 (d_type_data): New static variable.
765 (_initialize_d_language): Initialize d_type_data.
766
767 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
768
769 * d-lang.h (d_main_name): Add declaration.
770 * d-lang.c (d_main_name): New function.
771 * symtab.c (find_main_name): Add call to d_main_name.
772
773 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
774
775 * d-lang.c (d_language_defn): Change macro_expansion_c to
776 macro_expansion_no.
777
778 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
779
780 * MAINTAINERS: Add myself as a write-after-approval maintainer.
781
782 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
783
784 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
785 gdb_exception" declaration.
786 * remote.c (getpkt_or_notif_sane): Likewise.
787
788 2014-01-17 Doug Evans <dje@google.com>
789
790 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
791 function, contents of dirnames_to_char_ptr_vec_append moved here.
792 (delim_string_to_char_ptr_vec): New function.
793 (dirnames_to_char_ptr_vec_append): Rewrite.
794 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
795
796 2014-01-17 Doug Evans <dje@google.com>
797
798 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
799 and moved here ...
800 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
801 #include "common-utils.h".
802 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
803 * common/vec.h (VEC_ASSERT_PASS): Update.
804 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
805 (MACH_CHECK_ERROR): Update.
806
807 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
808
809 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
810 comments.
811 * gdbarch.h: Regenerate.
812
813 2014-01-16 Tom Tromey <tromey@redhat.com>
814
815 * value.c (struct value) <regnum>: Move earlier.
816
817 2014-01-16 Tom Tromey <tromey@redhat.com>
818
819 * remote.c (extended_remote_create_inferior): Rename from
820 extended_remote_create_inferior_1. Add "ops" argument. Remove
821 old implementation.
822
823 2014-01-16 Pedro Alves <palves@redhat.com>
824
825 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
826 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
827 the backchain.
828
829 2014-01-16 Doug Evans <dje@google.com>
830
831 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
832
833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
834
835 * btrace.h (btrace_thread_flag): New.
836 (struct btrace_thread_info) <flags>: New.
837 * record-btrace.c (record_btrace_resume_thread)
838 (record_btrace_find_thread_to_move, btrace_step_no_history)
839 (btrace_step_stopped, record_btrace_start_replaying)
840 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
841 (record_btrace_find_resume_thread): New.
842 (record_btrace_resume, record_btrace_wait): Extend.
843 (record_btrace_can_execute_reverse): New.
844 (record_btrace_open): Fail in non-stop mode.
845 (record_btrace_set_replay): Split into this, ...
846 (record_btrace_stop_replaying): ... this, ...
847 (record_btrace_clear_histories): ... and this.
848 (init_record_btrace_ops): Init to_can_execute_reverse.
849 * NEWS: Announce it.
850
851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
852
853 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
854 (forward_target_decr_pc_after_break)
855 (target_decr_pc_after_break): New.
856 * target.c (forward_target_decr_pc_after_break)
857 (target_decr_pc_after_break): New.
858 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
859 instead of gdbarch_decr_pc_after_break.
860 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
861 instead of gdbarch_decr_pc_after_break.
862 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
863 instead of gdbarch_decr_pc_after_break.
864 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
865 instead of gdbarch_decr_pc_after_break.
866 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
867 instead of gdbarch_decr_pc_after_break.
868 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
869 instead of gdbarch_decr_pc_after_break.
870
871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
872
873 * btrace.c: Include regcache.h.
874 (btrace_add_pc): New.
875 (btrace_enable): Call btrace_add_pc.
876 (btrace_is_empty): New.
877 * btrace.h (btrace_is_empty): New.
878 * record-btrace.c (require_btrace, record_btrace_info): Call
879 btrace_is_empty.
880
881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
882
883 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
884 Support delta reads.
885 (linux_disable_btrace): Change return type.
886 * common/linux-btrace.h (linux_read_btrace): Change parameters
887 and return type to allow error reporting. Update users.
888 (linux_disable_btrace): Change return type. Update users.
889 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
890 New.
891 (btrace_error): New.
892 (btrace_block) <begin>: Comment on BEGIN == 0.
893 * btrace.c (btrace_compute_ftrace): Start from the end of
894 the current trace.
895 (btrace_stitch_trace, btrace_clear_history): New.
896 (btrace_fetch): Read delta trace, return if replaying.
897 (btrace_clear): Move clear history code to btrace_clear_history.
898 (parse_xml_btrace): Throw an error if parsing failed.
899 * target.h (struct target_ops) <to_read_btrace>: Change parameters
900 and return type to allow error reporting.
901 (target_read_btrace): Change parameters and return type to allow
902 error reporting.
903 * target.c (target_read_btrace): Update.
904 * remote.c (remote_read_btrace): Support delta reads. Pass
905 errors on.
906 * NEWS: Announce it.
907
908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
909
910 * record.h (record_btrace_frame_unwind)
911 (record_btrace_tailcall_frame_unwind): New declarations.
912 * dwarf2-frame: Include record.h
913 (dwarf2_frame_cfa): Throw an error for btrace frames.
914 * record-btrace.c: Include hashtab.h.
915 (btrace_get_bfun_name): New.
916 (btrace_call_history): Call btrace_get_bfun_name.
917 (struct btrace_frame_cache): New.
918 (bfcache): New.
919 (bfcache_hash, bfcache_eq, bfcache_new): New.
920 (btrace_get_frame_function): New.
921 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
922 (record_btrace_frame_this_id): Compute own id.
923 (record_btrace_frame_prev_register): Provide PC, throw_error
924 for all other registers.
925 (record_btrace_frame_sniffer): Detect btrace frames.
926 (record_btrace_tailcall_frame_sniffer): New.
927 (record_btrace_frame_dealloc_cache): New.
928 (record_btrace_frame_unwind): Add new functions.
929 (record_btrace_tailcall_frame_unwind): New.
930 (_initialize_record_btrace): Allocate cache.
931 * btrace.c (btrace_clear): Call reinit_frame_cache.
932 * NEWS: Announce it.
933
934 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
935
936 * record-btrace.c (record_btrace_set_replay)
937 (record_btrace_goto_begin, record_btrace_goto_end)
938 (record_btrace_goto): New.
939 (init_record_btrace_ops): Initialize them.
940 * NEWS: Announce it.
941
942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
943
944 * record-btrace.c (record_btrace_find_new_threads)
945 (record_btrace_thread_alive): New.
946 (init_record_btrace_ops): Initialize to_find_new_threads and
947 to_thread_alive.
948
949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
950
951 * record-btrace.c (record_btrace_resume): New.
952 (record_btrace_wait): New.
953 (init_record_btrace_ops): Initialize to_wait and to_resume.
954
955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
956
957 * record-btrace.c (record_btrace_xfer_partial)
958 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
959 (record_btrace_allow_memory_access): New.
960 (init_record_btrace_ops): Initialize new methods.
961 * target.c (raw_memory_xfer_partial): Bail out if target reports
962 that this memory is not available.
963
964 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
965
966 * target.h (target_ops) <to_insert_breakpoint>
967 <to_remove_breakpoint>: Add target_ops parameter.
968 (forward_target_insert_breakpoint): New.
969 (forward_target_remove_breakpoint): New.
970 (memory_remove_breakpoint, memory_insert_breakpoint):
971 Add target_ops parameter.
972 * target.c (target_insert_breakpoint): Split into this and ...
973 (forward_target_insert_breakpoint): ... this.
974 (target_remove_breakpoint): Split into this and ...
975 (forward_target_remove_breakpoint): ... this.
976 (debug_to_insert_breakpoint): Add target_ops parameter.
977 Call forward_target_insert_breakpoint.
978 (debug_to_remove_breakpoint): Add target_ops parameter.
979 Call forward_target_remove_breakpoint.
980 (update_current_target): Do not inherit or default to_insert_breakpoint
981 and to_remove_breakpoint.
982 * corelow.c (ignore): Add target_ops parameter.
983 * exec.c (ignore): Add target_ops parameter.
984 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
985 Add target_ops parameter.
986 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
987 Add target_ops parameter.
988 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
989 Add target_ops parameter.
990 * record-full.c (record_full_beneath_to_insert_breakpoint)
991 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
992 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
993 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
994 (record_full_core_remove_breakpoint): Add target_ops parameter.
995 Update users.
996 (record_full_beneath_to_insert_breakpoint_ops)
997 (record_full_beneath_to_remove_breakpoint_ops)
998 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
999 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1000 tmp_to_remove_breakpoint_ops,
1001 record_full_beneath_to_insert_breakpoint_ops, and
1002 record_full_beneath_to_remove_breakpoint_ops.
1003 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1004 (m32r_remove_breakpoint): Add target_ops parameter.
1005 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1006 Add target_ops parameter.
1007 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1008 Add target_ops parameter.
1009
1010 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1011 Markus Metzger <markus.t.metzger@intel.com>
1012
1013 * record-btrace.c: Include frame-unwind.h.
1014 (record_btrace_frame_unwind_stop_reason)
1015 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1016 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1017 New.
1018 (init_record_btrace_ops): Install it.
1019
1020 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1021
1022 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1023 get_prev_frame_1.
1024
1025 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1026
1027 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1028 earlier.
1029
1030 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1031
1032 * frame-unwind.c: Include target.h.
1033 (frame_unwind_try_unwinder): New function with code from ...
1034 (frame_unwind_find_by_frame): ... here. New variable
1035 unwinder_from_target, call also target_get_unwinder)
1036 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1037 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1038 * target.h (struct target_ops): New fields to_get_unwinder and
1039 to_get_tailcall_unwinder.
1040 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1041
1042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1043
1044 * record-btrace.c (record_btrace_fetch_registers)
1045 (record_btrace_store_registers)
1046 (record_btrace_to_prepare_to_store): New.
1047 (init_record_btrace_ops): Add the above.
1048
1049 2014-01-16 Tom Tromey <tromey@redhat.com>
1050
1051 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1052 * target.h (struct target_ops) <to_prepare_to_store>: Add
1053 argument.
1054 (target_prepare_to_store): Add argument.
1055 * target.c (debug_to_prepare_to_store): Add argument.
1056 (update_current_target): Update.
1057 * remote.c (remote_prepare_to_store): Add 'self' argument.
1058 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1059 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1060 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1061 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1062 argument.
1063 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1064 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1065 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1066 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1067 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1068
1069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1070
1071 * btrace.h (replay) <replay>: New.
1072 (btrace_is_replaying): New.
1073 * btrace.c (btrace_clear): Free replay iterator.
1074 (btrace_is_replaying): New.
1075 * record-btrace.c (record_btrace_is_replaying): New.
1076 (record_btrace_info): Print insn number if replaying.
1077 (record_btrace_insn_history): Start at replay position.
1078 (record_btrace_call_history): Start at replay position.
1079 (init_record_btrace_ops): Init to_record_is_replaying.
1080
1081 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1082
1083 * record-btrace.c (record_btrace_insn_history_range): Include
1084 end.
1085 (record_btrace_insn_history_from): Adjust range.
1086 (record_btrace_call_history_range): Include
1087 end.
1088 (record_btrace_call_history_from): Adjust range.
1089 * NEWS: Announce changes.
1090
1091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1092
1093 * record.h (enum record_print_flag)
1094 <record_print_indent_calls>: New.
1095 * record.c (get_call_history_modifiers): Recognize /c modifier.
1096 (_initialize_record): Document /c modifier.
1097 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1098 Reorder fields. Optionally indent the function name. Update
1099 all users.
1100 * NEWS: Announce changes.
1101
1102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1103
1104 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1105
1106 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1107
1108 * btrace.c (ftrace_new_function): Start counting at one.
1109 * record-btrace.c (record_btrace_info): Adjust number of calls
1110 and insns.
1111 * NEWS: Announce it.
1112
1113 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1114
1115 * record-btrace.c (btrace_call_history_insn_range): Print
1116 insn range as [begin, end].
1117
1118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1119
1120 * btrace.h (struct btrace_func_link): New.
1121 (enum btrace_function_flag): New.
1122 (struct btrace_inst): Rename to ...
1123 (struct btrace_insn): ...this. Update all users.
1124 (struct btrace_func) <ibegin, iend>: Remove.
1125 (struct btrace_func_link): New.
1126 (struct btrace_func): Rename to ...
1127 (struct btrace_function): ...this. Update all users.
1128 (struct btrace_function) <segment, flow, up, insn, insn_offset)
1129 (number, level, flags>: New.
1130 (struct btrace_insn_iterator): Rename to ...
1131 (struct btrace_insn_history): ...this.
1132 Update all users.
1133 (struct btrace_insn_iterator, btrace_call_iterator): New.
1134 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
1135 (struct btrace_target_info) <begin, end, level>
1136 <insn_history, call_history>: New.
1137 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1138 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1139 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1140 (btrace_call_number, btrace_call_begin, btrace_call_end)
1141 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1142 (btrace_find_function_by_number, btrace_set_insn_history)
1143 (btrace_set_call_history): New.
1144 * btrace.c (btrace_init_insn_iterator)
1145 (btrace_init_func_iterator, compute_itrace): Remove.
1146 (ftrace_print_function_name, ftrace_print_filename)
1147 (ftrace_skip_file): Change
1148 parameter to const.
1149 (ftrace_init_func): Remove.
1150 (ftrace_debug): Use new btrace_function fields.
1151 (ftrace_function_switched): Also consider gaining and
1152 losing symbol information).
1153 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
1154 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
1155 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
1156 New.
1157 (ftrace_new_function): Move. Remove debug print.
1158 (ftrace_update_lines, ftrace_update_insns): New.
1159 (ftrace_update_function): Check for call, ret, and jump.
1160 (compute_ftrace): Renamed to ...
1161 (btrace_compute_ftrace): ...this. Rewritten to compute call
1162 stack.
1163 (btrace_fetch, btrace_clear): Updated.
1164 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1165 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1166 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1167 (btrace_call_number, btrace_call_begin, btrace_call_end)
1168 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1169 (btrace_find_function_by_number, btrace_set_insn_history)
1170 (btrace_set_call_history): New.
1171 * record-btrace.c (require_btrace): Use new btrace thread
1172 info fields.
1173 (record_btrace_info, btrace_insn_history)
1174 (record_btrace_insn_history, record_btrace_insn_history_range):
1175 Use new btrace thread info fields and new iterator.
1176 (btrace_func_history_src_line): Rename to ...
1177 (btrace_call_history_src_line): ...this. Use new btrace
1178 thread info fields.
1179 (btrace_func_history): Rename to ...
1180 (btrace_call_history): ...this. Use new btrace thread info
1181 fields and new iterator.
1182 (record_btrace_call_history, record_btrace_call_history_range):
1183 Use new btrace thread info fields and new iterator.
1184
1185 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1186
1187 * frame.h (frame_id_build_unavailable_stack_special): New.
1188 * frame.c (frame_id_build_unavailable_stack_special): New.
1189
1190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1191
1192 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
1193 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
1194 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
1195 to gdbarch.
1196 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
1197 (i386_insn_is_jump, i386_jmp_p): New.
1198 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
1199 insn_is_jump to gdbarch.
1200 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
1201 * gdbarch.h: Regenerated.
1202 * gdbarch.c: Regenerated.
1203 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
1204 (default_insn_is_jump): New.
1205 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
1206 (default_insn_is_jump): New.
1207
1208 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1209
1210 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
1211 Change to ...
1212 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
1213 (btrace_read_type) <btrace_read_new>: Change to ...
1214 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
1215
1216 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1217
1218 * common/linux-btrace.c (linux_read_btrace): Free trace from
1219 previous iteration.
1220
1221 2014-01-15 Doug Evans <dje@google.com>
1222
1223 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
1224 uint32_t.
1225
1226 2014-01-15 Tom Tromey <tromey@redhat.com>
1227
1228 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
1229 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
1230 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
1231 (set_objfile_main_name): New function.
1232 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
1233 language_of_main>: New fields.
1234 (set_objfile_main_name): Declare.
1235 * symtab.c (find_main_name): Loop over objfiles to find the main
1236 name and language.
1237 (set_main_name): Now static.
1238 (get_main_info): Add comment.
1239 * symtab.h (set_main_name): Don't declare.
1240
1241 2014-01-15 Tom Tromey <tromey@redhat.com>
1242
1243 * symtab.c (main_progspace_key): New global.
1244 (struct main_info): New.
1245 (name_of_main, language_of_main): Remove.
1246 (get_main_info, main_info_cleanup): New function.
1247 (set_main_name, main_name, main_language): Use get_main_info.
1248 (_initialize_symtab): Initialize main_progspace_key.
1249
1250 2014-01-15 Tom Tromey <tromey@redhat.com>
1251
1252 * dbxread.c (process_one_symbol): Update.
1253 * dwarf2read.c (read_partial_die): Update.
1254 * symfile.c (set_initial_language): Call main_language.
1255 * symtab.c (language_of_main): Now static.
1256 (set_main_name): Add 'lang' parameter.
1257 (find_main_name): Update.
1258 (main_language): New function.
1259 (symtab_observer_executable_changed): Update.
1260 * symtab.h (set_main_name): Update.
1261 (language_of_main): Remove.
1262 (main_language): Declare.
1263
1264 2014-01-15 Tom Tromey <tromey@redhat.com>
1265
1266 * symfile.c (init_entry_point_info): Use new "initialized" field.
1267 Update.
1268 * objfiles.h (struct entry_point) <initialized>: New field.
1269 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
1270 (struct objfile) <ei>: ...here. Remove.
1271 * objfiles.c (entry_point_address_query): Update.
1272
1273 2014-01-15 Tom Tromey <tromey@redhat.com>
1274
1275 * objfiles.c (entry_point_address_query): Relocate entry point
1276 address.
1277 (objfile_relocate1): Do not relocate entry point address.
1278 * objfiles.h (struct entry_info) <entry_point>: Update comment.
1279 <the_bfd_section_index>: New field.
1280 * symfile.c (init_entry_point_info): Find the entry point's
1281 section.
1282
1283 2014-01-15 Tom Tromey <tromey@redhat.com>
1284
1285 * solib-frv.c (enable_break): Use entry_point_address_query.
1286
1287 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1288
1289 * NEWS: Add note on improved process record-replay on
1290 arm*-linux* targets.
1291
1292 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1293
1294 * arm-tdep.c (enum arm_record_result): New enum.
1295 (arm_record_unsupported_insn): New function.
1296 (arm_record_coproc_data_proc): Removed.
1297 (thumb2_record_ld_st_multiple): New function.
1298 (thumb2_record_ld_st_dual_ex_tbb): New function.
1299 (thumb2_record_data_proc_sreg_mimm): New function.
1300 (thumb2_record_ps_dest_generic): New function.
1301 (thumb2_record_branch_misc_cntrl): New function.
1302 (thumb2_record_str_single_data): New function.
1303 (thumb2_record_ld_mem_hints): New function.
1304 (thumb2_record_ld_word): New function.
1305 (thumb2_record_lmul_lmla_div): New function.
1306 (thumb2_record_decode_insn_handler): New function.
1307 (decode_insn): Add thumb32 instruction handlers.
1308
1309 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1310
1311 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
1312 (struct arm_linux_record_tdep): Declare.
1313 (arm_canonicalize_syscall): New function.
1314 (arm_all_but_pc_registers_record): New function.
1315 (arm_linux_syscall_record): New function.
1316 (arm_linux_init_abi): Add syscall recording constructs.
1317 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
1318 decoding. (arm_record_coproc_data_proc): Update arm syscall
1319 decoding.
1320 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
1321 <arm_syscall_record>: New field.
1322 * configure.tgt (arm*-*-linux*): Add linux-record.o to
1323 gdb_target_obs.
1324
1325 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1326
1327 * arm-tdep.c (thumb_record_misc): Update to use sp as base
1328 register for push instruction recording.
1329
1330 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1331
1332 * arm-tdep.c (thumb_record_misc): Update to correct logical
1333 error while recording ldm, ldmia and pop instructions.
1334
1335 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1336
1337 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
1338
1339 2014-01-15 Pedro Alves <palves@redhat.com>
1340
1341 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
1342 (go32_resume, go32_fetch_registers, store_register)
1343 (go32_store_registers, go32_prepare_to_store)
1344 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
1345 (go32_create_inferior, go32_can_run, go32_terminal_init)
1346 (go32_terminal_inferior, go32_terminal_ours): Delete forward
1347 declarations.
1348
1349 2014-01-15 Tom Tromey <tromey@redhat.com>
1350
1351 * target.h (async_callback_ftype): New typedef.
1352 (struct target_ops) <to_async>: Use it.
1353
1354 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1355
1356 * python/py-value.c (get_field_type): Remove unnecessary curly
1357 braces for single-statement if block.
1358
1359 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1360
1361 * python/py-type.c (convert_field): Add missing empty line
1362 after declarations.
1363
1364 2014-01-14 Doug Evans <dje@google.com>
1365
1366 * symfile.h (expand_symtabs_matching): Renamed from
1367 expand_partial_symbol_names. Update prototype.
1368 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1369 * symfile.c (expand_symtabs_matching): Renamed from
1370 expand_partial_symbol_names. New args file_matcher, kind.
1371 Rename arg fun to symbol_matcher.
1372 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1373 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
1374 ada_expand_partial_symbol_name.
1375 (ada_make_symbol_completion_list): Update to call
1376 expand_symtabs_matching.
1377 (ada_add_global_exceptions): Call expand_symtabs_matching.
1378 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
1379 call map_symbol_filenames.
1380 * symtab.c (sources_info): Update to call map_symbol_filenames.
1381 (search_symbols): Call expand_symtabs_matching.
1382 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
1383 (default_make_symbol_completion_list_break_on): Update to call
1384 expand_symtabs_matching.
1385 (make_source_files_completion_list): Update to call
1386 map_symbol_filenames.
1387
1388 2014-01-14 Doug Evans <dje@google.com>
1389
1390 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
1391 (expand_symtabs_symbol_matcher_ftype): New typedef.
1392 (quick_symbol_functions.expand_symtabs_matching): Update to use.
1393 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1394 * symfile.c (expand_partial_symbol_names): Update to use
1395 expand_symtabs_symbol_matcher_ftype.
1396 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
1397 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1398 Arg name_matcher renamed to symbol_matcher.
1399 * psymtab.c (recursively_search_psymtabs): Update to use
1400 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
1401 sym_matcher.
1402 (expand_symtabs_matching_via_partial): Update to use
1403 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1404 Arg name_matcher renamed to symbol_matcher.
1405
1406 2014-01-14 Doug Evans <dje@google.com>
1407
1408 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
1409 (map_partial_symbol_filenames): Ditto.
1410 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
1411 (map_partial_symbol_filenames): Ditto.
1412 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
1413 (map_partial_symbol_filenames): Ditto.
1414 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
1415 (map_partial_symbol_filenames): Ditto.
1416 * symtab.c: Delete #include "psymtab.h".
1417
1418 2014-01-14 Pedro Alves <palves@redhat.com>
1419 Tom Tromey <tromey@redhat.com>
1420
1421 * infrun.c (use_displaced_stepping): Use find_record_target
1422 instead of RECORD_IS_USED.
1423 (adjust_pc_after_break): Use record_full_is_used instead of
1424 RECORD_IS_USED.
1425 * record-btrace.c (record_btrace_open): Call record_preopen
1426 instead of checking RECORD_IS_USED.
1427 * record-full.c (record_full_shortname)
1428 (record_full_core_shortname): New globals.
1429 (record_full_is_used): New function.
1430 (find_full_open): Call record_preopen instead of checking
1431 RECORD_IS_USED.
1432 (init_record_full_ops): Set the target's shortname to
1433 record_full_shortname.
1434 (init_record_full_core_ops): Set the target's shortname to
1435 record_full_core_shortname.
1436 * record-full.h (record_full_is_used): Declare.
1437 * record.c (find_record_target): Make extern.
1438 (record_preopen): New function.
1439 * record.h (RECORD_IS_USED): Delete macro.
1440 (find_record_target, record_preopen): Declare functions.
1441
1442 2014-01-14 Yao Qi <yao@codesourcery.com>
1443
1444 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
1445 'len''s type to ULONGEST.
1446 (core_xfer_shared_libraries_aix): Likewise.
1447 * gdbarch.c, gdbarch.h: Regenerated.
1448 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
1449 Change type of 'len' to ULONGEST.
1450 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1451 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1452
1453 2014-01-14 Yao Qi <yao@codesourcery.com>
1454
1455 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
1456 type of 'len' to ULONGEST.
1457 (linux_xfer_osdata_processgroups): Likewise.
1458 (linux_xfer_osdata_threads): Likewise.
1459 (linux_xfer_osdata_fds): Likewise.
1460 (linux_xfer_osdata_isockets): Likewise.
1461 (linux_xfer_osdata_shm): Likewise.
1462 (linux_xfer_osdata_sem): Likewise.
1463 (linux_xfer_osdata_msg): Likewise.
1464 (linux_common_xfer_osdata): Likewise.
1465 (struct osdata_type) <getter>: Likewise.
1466 * common/linux-osdata.h (linux_common_xfer_osdata): Update
1467 the declaration.
1468
1469 2014-01-14 Yao Qi <yao@codesourcery.com>
1470
1471 * target.h (target_xfer_partial_ftype): Update.
1472 (struct target_ops) <to_xfer_partial>: Change 'len' type to
1473 ULONGEST.
1474 * aix-thread.c (aix_thread_xfer_partial): Change type of
1475 argument 'len' to ULONGEST.
1476 * auxv.c (procfs_xfer_auxv): Likewise.
1477 (ld_so_xfer_auxv): Likewise.
1478 (memory_xfer_auxv): Likewise.
1479 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1480 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1481 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1482 * corelow.c (core_xfer_partial): Likewise.
1483 * ctf.c (ctf_xfer_partial): Likewise.
1484 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
1485 '%u'.
1486 (darwin_read_dyld_info): Likewise.
1487 (darwin_xfer_partial): Likewise.
1488 * exec.c (section_table_xfer_memory_partial): Likewise.
1489 (exec_xfer_partial): Likewise.
1490 * exec.h (section_table_xfer_memory_partial): Update
1491 declaration.
1492 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
1493 instead of plongest.
1494 (gnu_xfer_partial): Likewise.
1495 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
1496 (ia64_hpux_xfer_solib_got): Likewise.
1497 (ia64_hpux_xfer_partial): Likewise.
1498 * ia64-linux-nat.c (ia64_linux_xfer_partial):
1499 * inf-ptrace.c (inf_ptrace_xfer_partial):
1500 * inf-ttrace.c (inf_ttrace_xfer_partial):
1501 * linux-nat.c (linux_xfer_siginfo): Likewise.
1502 (linux_nat_xfer_partial): Likewise.
1503 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
1504 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
1505 * monitor.c (monitor_xfer_memory): Likewise.
1506 (monitor_xfer_partial): Likewise.
1507 * procfs.c (procfs_xfer_partial): Likewise.
1508 * record-full.c (record_full_xfer_partial): Likewise.
1509 (record_full_core_xfer_partial): Likewise.
1510 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
1511 instead of plongest.
1512 (gdbsim_xfer_partial): Likewise.
1513 * remote.c (remote_xfer_partial): Likewise.
1514 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1515 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1516 declaration.
1517 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1518 (rs6000_xfer_shared_libraries): Likewise.
1519 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1520 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1521 (sparc_xfer_partial): Likewise.
1522 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1523 (spu_xfer_partial): Likewise.
1524 * spu-multiarch.c (spu_xfer_partial): Likewise.
1525 * target.c (target_read_live_memory): Likewise.
1526 (memory_xfer_live_readonly_partial): Likewise.
1527 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
1528 (target_xfer_partial, default_xfer_partial): Likewise.
1529 (current_xfer_partial): Likewise.
1530 * tracepoint.c (tfile_xfer_partial): Likewise.
1531 * windows-nat.c (windows_xfer_memory): Likewise. Call
1532 pulongest instead of plongest.
1533 (windows_xfer_partial): Likewise.
1534 (windows_xfer_shared_libraries): Likewise.
1535
1536 2014-01-14 Yao Qi <yao@codesourcery.com>
1537
1538 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
1539 target_xfer_partial_ftype.
1540
1541 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
1542
1543 PR python/15464
1544 PR python/16113
1545 * valops.c (value_struct_elt_bitpos): New function
1546 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
1547 object to 'None' if the field name is an empty string ("").
1548 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
1549 attribute to look for a field when 'name' is 'None'.
1550 (get_field_type): New function
1551
1552 2014-01-13 Doug Evans <dje@google.com>
1553
1554 PR symtab/16426
1555 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
1556 (try_open_dwop_file): Ditto.
1557 * gdb_bfd.c: #include "vec.h".
1558 (bfdp): New typedef.
1559 (struct gdb_bfd_data): New member included_bfds.
1560 (gdb_bfd_unref): Unref all included bfds.
1561 (gdb_bfd_record_inclusion): New function.
1562 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
1563
1564 2014-01-13 Tom Tromey <tromey@redhat.com>
1565
1566 * gdbcore.h (deprecated_core_resize_section_table): Remove.
1567
1568 2014-01-13 Tom Tromey <tromey@redhat.com>
1569
1570 * defs.h (use_windows): Remove.
1571 * gdb.c (main): Update.
1572 * main.c (captured_main, gdb_main): Update.
1573 * main.h (struct captured_main_args) <use_windows>: Remove.
1574 * top.c (use_windows): Remove.
1575
1576 2014-01-13 Tom Tromey <tromey@redhat.com>
1577
1578 * defs.h (deprecated_flush_hook): Remove.
1579
1580 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1581
1582 PR threads/16216
1583 * linux-thread-db.c (try_thread_db_load): Add parameter
1584 check_auto_load_safe. Move here the file_is_auto_load_safe call.
1585 (try_thread_db_load_from_pdir_1): Move it there from here.
1586 (try_thread_db_load_from_sdir): Update caller.
1587 (try_thread_db_load_from_dir): Move it there from here.
1588
1589 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
1590
1591 * regformats/regdat.sh: Always rewrite the register file.
1592
1593 2014-01-13 Pedro Alves <palves@redhat.com>
1594
1595 * Makefile.in (CHECK_HEADERS): New variable.
1596 (check-headers:): New rule.
1597
1598 2014-01-13 Tom Tromey <tromey@redhat.com>
1599
1600 * cli/cli-setshow.c (do_set_command): Update.
1601 * defs.h (deprecated_set_hook): Remove.
1602 * top.c (deprecated_set_hook): Remove.
1603
1604 2014-01-13 Pedro Alves <palves@redhat.com>
1605
1606 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
1607 the tracepoint if the PC is a pseudo-register.
1608
1609 2014-01-13 Tom Tromey <tromey@redhat.com>
1610
1611 * defs.h (XCALLOC): Remove.
1612 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
1613 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
1614 * dwarf2loc.c (allocate_piece_closure): Likewise.
1615 * elfread.c (elf_symfile_segments): Likewise.
1616 (elf_symfile_segments): Likewise.
1617 * gdbtypes.c (copy_type_recursive): Likewise.
1618 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
1619 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
1620 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
1621 XCALLOC.
1622 * mt-tdep.c (mt_gdbarch_init): Likewise.
1623 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
1624 XCALLOC.
1625 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
1626 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
1627 * registry.c (registry_alloc_data): Likewise.
1628 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
1629 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1630 * serial.c (serial_fdopen_ops): Likewise.
1631 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
1632 XCALLOC.
1633 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
1634 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
1635 not XCALLOC.
1636
1637 2014-01-13 Tom Tromey <tromey@redhat.com>
1638
1639 * defs.h (XMALLOC): Remove.
1640 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
1641 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1642 * cli-out.c (struct ui_out *): Likewise.
1643 * cli/cli-dump.c (add_dump_command): Likewise.
1644 (add_dump_command): Likewise.
1645 * complaints.c (get_complaints): Likewise.
1646 (find_complaint): Likewise.
1647 * dwarf2-frame.c (execute_cfa_program): Likewise.
1648 * dwarf2read.c (abbrev_table_read_table): Likewise.
1649 * gdbarch.sh: Likewise.
1650 * gdbarch.c: Rebuild.
1651 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
1652 * interps.c (interp_new): Likewise.
1653 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
1654 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1655 * mi/mi-console.c (mi_console_file_new): Likewise.
1656 * mi/mi-interp.c (mi_interpreter_init): Likewise.
1657 * mi/mi-out.c (mi_out_new): Likewise.
1658 * mi/mi-parse.c (mi_parse): Likewise.
1659 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
1660 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
1661 * observer.c (xalloc_observer_list_node): Likewise.
1662 * regcache.c (regcache_xmalloc_1): Likewise.
1663 * reggroups.c (reggroup_new): Likewise.
1664 (_initialize_reggroup): Likewise.
1665 * registry.c (register_data_with_cleanup): Likewise.
1666 * remote.c (remote_notif_stop_alloc_reply): Likewise.
1667 * ser-base.c (serial_ttystate): Likewise.
1668 * ser-mingw.c (make_pipe_state): Likewise.
1669 * ser-pipe.c (pipe_open): Likewise.
1670 * serial.c (serial_open): Likewise.
1671 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1672 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1673 (tui_alloc_win_info): Likewise.
1674 (tui_add_content_elements): Likewise.
1675 * tui/tui-file.c (tui_file_new): Likewise.
1676 * tui/tui-out.c (tui_out_new): Likewise.
1677 * ui-file.c (mem_file_new): Likewise.
1678 * ui-out.c (push_level): Likewise.
1679 (make_cleanup_ui_out_end): Likewise.
1680 (append_header_to_list): Likewise.
1681 (ui_out_new): Likewise.
1682 * user-regs.c (user_reg_add_builtin): Likewise.
1683
1684 2014-01-13 Tom Tromey <tromey@redhat.com>
1685
1686 * defs.h (XZALLOC): Remove.
1687 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
1688 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1689 (get_ada_tasks_inferior_data): Likewise.
1690 * auto-load.c (get_auto_load_pspace_data): Likewise.
1691 * auxv.c (get_auxv_inferior_data): Likewise.
1692 * bfd-target.c (target_bfd_reopen): Likewise.
1693 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
1694 (deprecated_insert_raw_breakpoint): Likewise.
1695 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
1696 * corelow.c (core_open): Likewise.
1697 * darwin-nat.c (darwin_check_new_threads): Likewise.
1698 (darwin_attach_pid): Likewise.
1699 * dummy-frame.c (dummy_frame_push): Likewise.
1700 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1701 * dwarf2loc.c (allocate_piece_closure): Likewise.
1702 * elfread.c (elf_symfile_segments): Likewise.
1703 * eval.c (ptrmath_type_p): Likewise.
1704 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
1705 * gdbtypes.c (alloc_type_arch): Likewise.
1706 (alloc_type_instance): Likewise.
1707 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1708 * inf-child.c (inf_child_can_use_agent): Likewise.
1709 * inflow.c (get_inflow_inferior_data): Likewise.
1710 * infrun.c (save_infcall_suspend_state): Likewise.
1711 * jit.c (jit_reader_load): Likewise.
1712 (get_jit_objfile_data): Likewise.
1713 (get_jit_program_space_data): Likewise.
1714 (jit_object_open_impl): Likewise.
1715 (jit_symtab_open_impl): Likewise.
1716 (jit_block_open_impl): Likewise.
1717 (jit_frame_sniffer): Likewise.
1718 * linux-fork.c (add_fork): Likewise.
1719 * maint.c (make_command_stats_cleanup): Likewise.
1720 * objfiles.c (get_objfile_pspace_data): Likewise.
1721 * opencl-lang.c (struct lval_closure): Likewise.
1722 * osdata.c (osdata_start_osdata): Likewise.
1723 * progspace.c (new_address_space): Likewise.
1724 (add_program_space): Likewise.
1725 * remote-sim.c (get_sim_inferior_data): Likewise.
1726 * sh-tdep.c (sh_gdbarch_init): Likewise.
1727 * skip.c (Ignore): Likewise.
1728 (skip_delete_command): Likewise.
1729 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1730 (library_list_start_library): Likewise.
1731 (solib_aix_current_sos): Likewise.
1732 * solib-darwin.c (get_darwin_info): Likewise.
1733 (darwin_current_sos): Likewise.
1734 * solib-dsbt.c (get_dsbt_info): Likewise.
1735 * solib-ia64-hpux.c (new_so_list): Likewise.
1736 (ia64_hpux_get_solib_linkage_addr): Likewise.
1737 * solib-spu.c (append_ocl_sos): Likewise.
1738 (spu_current_sos): Likewise.
1739 * solib-svr4.c (get_svr4_info): Likewise.
1740 (svr4_keep_data_in_core): Likewise.
1741 (library_list_start_library): Likewise.
1742 (svr4_default_sos): Likewise.
1743 (svr4_read_so_list): Likewise.
1744 * solib-target.c (library_list_start_library): Likewise.
1745 (solib_target_current_sos): Likewise.
1746 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
1747 * symfile-debug.c (install_symfile_debug_logging): Likewise.
1748 * symfile.c (default_symfile_segments): Likewise.
1749 * target-descriptions.c (tdesc_data_init): Likewise.
1750 (tdesc_create_reg): Likewise.
1751 (struct tdesc_type *): Likewise.
1752 (tdesc_create_vector): Likewise.
1753 (tdesc_set_struct_size): Likewise.
1754 (struct tdesc_type *): Likewise.
1755 (tdesc_free_feature): Likewise.
1756 (tdesc_create_feature): Likewise.
1757 * windows-nat.c (windows_add_thread): Likewise.
1758 (windows_make_so): Likewise.
1759 * xml-support.c (gdb_xml_body_text): Likewise.
1760 (gdb_xml_create_parser_and_cleanup): Likewise.
1761 (xml_process_xincludes): Likewise.
1762 * xml-syscall.c (allocate_syscalls_info): Likewise.
1763 (syscall_create_syscall_desc): Likewise.
1764
1765 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
1766
1767 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
1768 function, with code from i386_stap_parse_special_token.
1769 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1770 (i386_stap_parse_special_token): Move code to the two functions
1771 above; simplify it.
1772
1773 2014-01-09 Pedro Alves <palves@redhat.com>
1774 Hui Zhu <hui@codesourcery.com>
1775
1776 PR gdb/16101
1777 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
1778 bp_err_string. Don't mark the location shlib_disabled if the
1779 error thrown wasn't a generic or memory error. Catch errors
1780 thrown while inserting breakpoints in overlayed code. Output
1781 error message of software breakpoints.
1782 * remote.c (remote_insert_breakpoint): If this breakpoint has
1783 target-side commands but this stub doesn't support Z0 packets,
1784 throw NOT_SUPPORTED_ERROR error.
1785 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
1786 * target.h (target_insert_breakpoint): Extend comment.
1787 (target_insert_hw_breakpoint): Add comment.
1788
1789 2014-01-08 Pedro Alves <palves@redhat.com>
1790
1791 * remote.c (remote_add_thread): Add threads silently if starting
1792 up.
1793 (remote_notice_new_inferior): If in all-stop, and starting up,
1794 don't call notice_new_inferior.
1795 (get_current_thread): New function, factored out from ...
1796 (add_current_inferior_and_thread): ... this. Adjust.
1797 (remote_start_remote) <all-stop>: Fetch the thread list. If we
1798 found any thread, then select the remote's current thread as GDB's
1799 current thread too.
1800
1801 2014-01-08 Joel Brobecker <brobecker@adacore.com>
1802
1803 * NEWS: Create a new section for the next release branch.
1804 Rename the section of the current branch, now that it has
1805 been cut.
1806
1807 2014-01-08 Joel Brobecker <brobecker@adacore.com>
1808
1809 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
1810 * version.in: Bump version to 7.7.50.DATE-cvs.
1811
1812 2014-01-08 Yao Qi <yao@codesourcery.com>
1813
1814 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
1815 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
1816 (spu_xfer_partial): Cast 'buf' to 'const char *'.
1817
1818 2014-01-08 Yao Qi <yao@codesourcery.com>
1819
1820 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
1821 return value of bfd_get_filename to symbol_file_add_from_bfd.
1822
1823 2014-01-08 Pierre Muller <muller@sourceware.org>
1824
1825 Fix PR16201.
1826 * coff-pe-read.c (struct read_pe_section_data): Add index field.
1827 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
1828 to prim_record_mininal_symbol_and_info.
1829 (add_pe_forwarded_sym): Use known section number of forwarded symbol
1830 in call to prim_record_minimal_symbol_and_info.
1831 (read_pe_exported_syms): Set index field of section_data.
1832
1833 2014-01-07 Andrew Pinski <apinski@cavium.com>
1834
1835 * features/aarch64-core.xml (cpsr): Change to be 64bit.
1836 * features/aarch64.c: Regenerate.
1837
1838 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
1839
1840 * target.c (return_null): Define.
1841 (update_current_target): Use it instead of return_zero for
1842 functions that return a pointer.
1843
1844 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1845
1846 * source.c (add_path): Fix check for duplicated paths in the previously
1847 included paths.
1848
1849 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
1850
1851 * ada-lang.c: Remove duplicated include statements.
1852 * alphabsd-nat.c: Ditto.
1853 * amd64-darwin-tdep.c: Ditto.
1854 * amd64fbsd-nat.c: Ditto.
1855 * auto-load.c: Ditto.
1856 * ax-gdb.c: Ditto.
1857 * breakpoint.c: Ditto.
1858 * dbxread.c: Ditto.
1859 * fork-child.c: Ditto.
1860 * gdb_usleep.c: Ditto.
1861 * i386-darwin-tdep.c: Ditto.
1862 * i386fbsd-nat.c: Ditto.
1863 * infcmd.c: Ditto.
1864 * inferior.c: Ditto.
1865 * jv-lang.c: Ditto.
1866 * linux-nat.c: Ditto.
1867 * linux-tdep.c: Ditto.
1868 * m68kbsd-nat.c: Ditto.
1869 * m68klinux-nat.c: Ditto.
1870 * microblaze-tdep.c: Ditto.
1871 * mips-linux-tdep.c: Ditto.
1872 * mn10300-tdep.c: Ditto.
1873 * nto-tdep.c: Ditto.
1874 * opencl-lang.c: Ditto.
1875 * osdata.c: Ditto.
1876 * printcmd.c: Ditto.
1877 * regcache.c: Ditto.
1878 * remote-m32r-sdi.c: Ditto.
1879 * remote.c: Ditto.
1880 * symfile.c: Ditto.
1881 * symtab.c: Ditto.
1882 * tilegx-linux-nat.c: Ditto.
1883 * tilegx-tdep.c: Ditto.
1884 * tracepoint.c: Ditto.
1885 * valops.c: Ditto.
1886 * vaxbsd-nat.c: Ditto.
1887 * windows-nat.c: Ditto.
1888 * xtensa-tdep.c: Ditto.
1889
1890 2014-01-07 Yao Qi <yao@codesourcery.com>
1891
1892 * spu-linux-nat.c (_initialize_spu_nat): Declare.
1893
1894 2014-01-07 Yao Qi <yao@codesourcery.com>
1895 Joel Brobecker <brobecker@adacore.com>
1896
1897 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
1898 (pdc_write_regs): Likewise.
1899 (fetch_regs_kernel_thread): Likewise.
1900 (store_regs_kernel_thread): Likewise.
1901
1902 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1903
1904 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
1905 tagged type objects to their actual type.
1906
1907 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1908
1909 * ada-valprint.c (print_field_values): Add "language" parameter.
1910 Update calls to print_field_values and print_variant_part.
1911 Pass new parameter "language" in call to val_print instead
1912 of "current_language". Replace call to ada_val_print by call
1913 to val_print.
1914 (print_variant_part): Add "language" parameter.
1915 (ada_val_print_struct_union): Update call to print_field_values.
1916
1917 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1918
1919 * ada-valprint.c (ui_memcpy): Delete.
1920 (ada_print_floating): Update documentation. Add empty line
1921 between between function documentation and implementation.
1922 Delete variable "buffer". Use ui_file_xstrdup in place of
1923 ui_file_put. Minor adjustments following this change.
1924
1925 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1926
1927 * ada-valprint.c (ada_val_print_string): New function,
1928 extracted from ada_val_print_array.
1929 (ada_val_print_array): Replace extracted code by call
1930 to ada_val_print_string followed by a return. Move
1931 "else" branch to the function's top block.
1932
1933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1934
1935 * ada-valprint.c (ada_val_print_array): Move implementation
1936 down. Rename parameter "offset" and "val" into "offset_aligned"
1937 and "original_value" respectively. Add parameter "offset".
1938
1939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1940
1941 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
1942 re-organizing the code. Change the "???" message printed
1943 when target type is a TYPE_CODE_UNDEF into
1944 "<ref to undefined type>".
1945
1946 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1947
1948 * ada-valprint.c (print_record): Delete, implementation inlined...
1949 (ada_val_print_struct_union): ... here. Remove call to
1950 ada_check_typedef in inlined implementation.
1951
1952 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1953
1954 * ada-valprint.c (ada_val_print_gnat_array): New function,
1955 extracted from ada_val_print_1;
1956 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
1957 (ada_val_print_flt, ada_val_print_struct_union)
1958 (ada_val_print_ref): Likewise.
1959 (ada_val_print_1): Delete variables i and elttype.
1960 Replace extracted-out code by call to corresponding
1961 new functions.
1962
1963 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1964
1965 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
1966
1967 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1968
1969 * ada-valprint.c (ada_val_print_1): Replace calls to
1970 ada_val_print_1 by calls to val_print.
1971
1972 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1973
1974 * ada-valprint.c (ada_val_print_1): Add parameter "language".
1975 Update calls to self accordingly. Replace calls to c_val_print
1976 by calls to val_print.
1977
1978 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1979
1980 * ada-valprint.c (print_record): Delete declaration.
1981 (adjust_type_signedness, ada_val_print_1): Likewise.
1982 (ada_val_print): Move function implementation down.
1983 (print_variant_part, print_field_values, print_record):
1984 Move function implementation up.
1985
1986 2014-01-07 Joel Brobecker <brobecker@adacore.com>
1987
1988 * python/py-type.c (typy_get_name): New function.
1989 (type_object_getset): Add entry for attribute "name".
1990 * NEWS: Add entry mentioning this new attribute.
1991
1992 2014-01-07 Yao Qi <yao@codesourcery.com>
1993
1994 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
1995 statement.
1996
1997 2014-01-07 Yao Qi <yao@codesourcery.com>
1998
1999 * gnu-nat.c (info_port_rights): Add qualifier const to
2000 argument args.
2001
2002 2014-01-07 Yao Qi <yao@codesourcery.com>
2003
2004 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2005
2006 2014-01-07 Yao Qi <yao@codesourcery.com>
2007
2008 * gnu-nat.c (make_inf) Update declaration.
2009 (make_inf): Make it static.
2010 (inf_set_traced): Likewise.
2011 (inf_port_to_thread, inf_task_died_status): Likewise.
2012
2013 2014-01-07 Yao Qi <yao@codesourcery.com>
2014
2015 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2016
2017 2014-01-07 Yao Qi <yao@codesourcery.com>
2018
2019 * gnu-nat.c (_initialize_gnu_nat): Declare.
2020
2021 2014-01-07 Yao Qi <yao@codesourcery.com>
2022
2023 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2024 'enum bfd_endian'.
2025 (struct gdbarch_info) <byte_order>: Change type to
2026 'enum bfd_endian'.
2027 <byte_order_for_code>: Likewise.
2028 * gdbarch.c, gdbarch.h: Regenerated.
2029
2030 2014-01-06 Sasha Smundak <asmundak@google.com>
2031
2032 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2033
2034 2014-01-06 Tom Tromey <tromey@redhat.com>
2035
2036 * doublest.c (convert_doublest_to_floatformat): Use const, not
2037 CONST.
2038 * somread.c (som_symtab_read): Likewise.
2039
2040 2014-01-07 Hui Zhu <hui@codesourcery.com>
2041
2042 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2043 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2044 (gdb_bfd_fopen): Ditto.
2045 (gdb_bfd_openr): Ditto.
2046 (gdb_bfd_openw): Ditto.
2047 (gdb_bfd_openr_iovec): Ditto.
2048 (gdb_bfd_fdopenr): Ditto.
2049 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2050 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2051 with xstrdup.
2052 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2053 with xstrdup.
2054 * symfile-mem.c (symbol_file_add_from_memory): Removed
2055 gdb_bfd_stash_filename.
2056
2057 2014-01-03 Doug Evans <dje@google.com>
2058
2059 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2060 output.
2061
2062 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2063
2064 Update year range in copyright notice of all files.
2065
2066 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2067
2068 * top.c (print_gdb_version): Set copyright year to 2014.
2069
2070 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2071
2072 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2073
2074 For older changes see ChangeLog-2013.
2075 \f
2076 Local Variables:
2077 mode: change-log
2078 left-margin: 8
2079 fill-column: 74
2080 version-control: never
2081 coding: utf-8
2082 End:
This page took 0.083819 seconds and 4 git commands to generate.