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