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