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