Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
[external/binutils.git] / gdb / ChangeLog
1 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
5         variable search_flags.
6         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
7         (OPF_RETURN_REALPATH): ... here.
8         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
9         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
10         call.  Twice.
11         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
12         openp call.
13         * solib.c (solib_find): Likewise.  Four times.
14         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
15         in the function comment and for the realpath_fptr variable.
16         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
17         (find_and_open_source): Likewise.  Twice.
18         * symfile.c (symfile_bfd_open): Likewise, also twice.
19
20 2013-09-04  Doug Evans  <dje@google.com>
21
22         * progspace.c (save_current_space_and_thread): Remove unnecessary
23         call to save_current_inferior.
24
25 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
26
27         * sh64-tdep.c (sh64_do_register): Return after printing message
28         about unavailable register contents.
29
30 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
31             Pedro Alves  <palves@redhat.com>
32
33         * symfile.c (add_symbol_file_command): Error out on unknown
34         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
35         options and collapse into single conditional branch.
36
37 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
38
39         * inf-child.c (inf_child_follow_fork) New parameter
40         detach_fork.
41         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
42         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
43         * inferior.h (detach_fork): Remove.
44         * infrun.c (detach_fork): Adjust comment and make it
45         static.
46         (follow_fork): Pass detach_fork parameter to
47         target_follow_fork.
48         * linux-nat.c (linux_child_follow_fork): New parameter
49         detach_fork.
50         * target.c (target_follow_fork): New parameter detach_fork.
51         Pass detach_fork as parameter and print its value.
52         * target.h (struct target_ops) <to_follow_fork>: New int
53         parameter.
54         (target_follow_fork): New parameter detach_fork.
55
56 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
57
58         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
59         Replace sec->bfd by sec->the_bfd_section->owner.
60
61 2013-09-03  Yao Qi  <yao@codesourcery.com>
62
63         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
64         from linux_has_shared_address_space.
65         (linux_has_shared_address_space): Call linux_is_uclinux.
66         * linux-tdep.h (linux_is_uclinux): Declare.
67         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
68         linux_is_uclinux.
69
70 2013-09-03  Yao Qi  <yao@codesourcery.com>
71
72         * config/djgpp/fnchange.lst: Remove entry of
73         i386-interix-nat.c and i386-interix-tdep.c.
74         * configure.ac: Remove '*-*-interix*'.
75         * configure: Re-generated.
76         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
77         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
78         obsolete comments.
79         * osabi.c (gdb_osabi_names): Remove "Interix".
80
81 2013-09-03  Yao Qi  <yao@codesourcery.com>
82
83         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
84
85 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
86
87         * record.h (record_print_flag) <record_print_src_line,
88         record_print_insn_range>: Rename into ...
89         (record_print_flag) <record_print_src_line,
90         record_print_insn_range>: ... this.  Update all users.
91
92 2013-09-02  Pierre Muller  <muller@sourceware.org>
93
94         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
95         error code.
96
97 2013-09-02  Pierre Muller  <muller@sourceware.org>
98
99         * windows-nat.c (windows_xfer_memory): Fix compilation failure
100         by use of plongest function.
101
102 2013-09-02  Tristan Gingold  <gingold@adacore.com>
103
104         * NEWS: Add entry mentioning support for native Windows x64
105         SEH data.
106
107         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
108         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
109         (struct amd64_windows_frame_cache): New struct.
110         (amd64_windows_w2gdb_regnum): New global.
111         (pc_in_range, amd64_windows_frame_decode_epilogue)
112         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
113         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
114         (amd64_windows_frame_this_id): New functions.
115         (amd64_windows_frame_unwind): New static global.
116         (amd64_windows_skip_prologue): New function.
117         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
118         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
119         with amd64_windows_skip_prologue.
120
121 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
122
123         GDB 7.6.1 released.
124
125 2013-08-30  Pedro Alves  <palves@redhat.com>
126
127         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
128         SRC_AND_LOC.
129
130 2013-08-30  Pedro Alves  <palves@redhat.com>
131
132         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
133         warning text.
134
135 2013-08-30  Pedro Alves  <palves@redhat.com>
136
137         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
138         Adjust arguments to print_stack_frame.
139
140 2013-08-30  Pedro Alves  <palves@redhat.com>
141
142         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
143
144 2013-08-30  Pedro Alves  <palves@redhat.com>
145
146         * frame.h (show_and_print_stack_frame): Delete declaration.
147
148 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
149
150         PR python/15461
151
152         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
153         (archpy_name): Check for valid architecture.
154         (archpy_disassemble): Ditto.
155
156 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
157
158         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
159         instead of "long long" in call to ptrace64.
160
161 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
162
163         * mi/mi-interp.c (mi_command_loop): Change signature to match
164         interp_command_loop_ftype.
165         (mi1_command_loop): Remove.
166         (mi2_command_loop): Remove.
167         (mi3_command_loop): Remove.
168         (mi_interpreter_resume): Remove setting of
169         deprecated_command_loop_hook.
170         (_initialize_mi_interp): Set mi_command_loop as the command loop
171         callback.
172
173 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
174
175         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
176         value_type.
177
178 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
179
180         * value.c (allocate_value_contents): Make static.
181         * value.h (allocate_value_contents): Remove prototype.
182
183 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
184
185         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
186         of assembling value via allocate_value_lazy and attribute setter.
187         * findvar.c (default_read_var_value): Use value_at_lazy instead of
188         assembling value via allocate_value_lazy and attribute setter.
189         * valops.c (do_search_struct_field): Use value_at_lazy instead of
190         assembling value via allocate_value_lazy and attribute setter.
191
192 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
193
194         * value.c (value_from_contents_and_address): Replace allocate_value and
195         memcpy with value_from_contents.
196
197 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
198
199         * python/py-framefilter.c (py_print_frame): Remove usage of
200         PyString_AsString.  Use python_string_to_host_string instead.
201         Refactor function to work with a string as a new allocation
202         instead of a pointer.
203         (py_print_frame): Ditto.
204         * python/lib/gdb/frames.py (return_list): Cain iterators together
205         instead of adding them as a list.
206         (_sort_list): Call return_list, and remove duplicate code.
207         (execute_frame_filters): Convert iterator to a list with list().
208         * python/lib/gdb/command/frame_filters.py
209         (SetFrameFilterPriority._set_filter_priority): Convert priority
210         attribute to an integer.
211         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
212         wrapper function __next__.
213         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
214         define as "str".
215
216 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
217
218         PR python/15752
219         * python/py-framefilter.c (apply_frame_filter): Check
220         gdb_python_initialized.  Exit if the Python frame-filter code
221         cannot be initialized.
222
223 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
224
225         PR cli/15842
226         * top.c (print_gdb_version): Remove erroneous newline after help
227         text.
228
229 2013-08-29  Yao Qi  <yao@codesourcery.com>
230
231         * varobj.c (install_dynamic_child): Remove trailing space.
232         Add one blank line after variable declaration.
233
234 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
235
236         PR gdb/15415
237         * corefile.c (get_exec_file): Use exec_filename.
238         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
239         * exec.c (exec_close): Free EXEC_FILENAME.
240         (exec_file_attach): New variable canonical_pathname.  Use
241         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
242         EXEC_FILENAME.
243         * exec.h (exec_filename): New.
244         * inferior.c (print_inferior, inferior_command): Use
245         PSPACE_EXEC_FILENAME.
246         * mi/mi-main.c (print_one_inferior): Likewise.
247         * progspace.c (clone_program_space, print_program_space): Likewise.
248         * progspace.h (struct program_space): New field pspace_exec_filename.
249         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
250         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
251
252 2013-08-28  Will Newton  <will.newton@linaro.org>
253
254         * common/linux-ptrace.c: Include stdint.h unconditionally.
255
256 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
257
258         Code cleanup.
259         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
260
261 2013-08-28  Yao Qi  <yao@codesourcery.com>
262             Pedro Alves  <palves@redhat.com>
263
264         * event-top.c (gdb_setup_readline): Call stderr_fileopen
265         instead of stdio_fileopen.
266         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
267         .Call stderr_fileopen instead of stdio_fileopen.
268         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
269         [__MINGW32__] (stderr_file_fputs): New function.
270         (stderr_fileopen): New function.
271         * ui-file.h (stderr_fileopen): Declare.
272
273 2013-08-27  Doug Evans  <dje@google.com>
274
275         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
276         (struct dwarf2_per_cu_data): Ditto.
277         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
278         (process_imported_unit_die): Ditto.
279         (follow_die_sig_1): Simplify assert.
280
281 2013-08-27  Pedro Alves  <palves@redhat.com>
282
283         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
284         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
285         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
286         windows_xfer_memory directly.
287         (init_windows_ops): Don't install a deprecated_xfer_memory method.
288
289 2013-08-27  Pedro Alves  <palves@redhat.com>
290
291         * darwin-nat.c (darwin_xfer_memory): Delete.
292         (_initialize_darwin_inferior): Don't install a
293         deprecated_xfer_memory method.
294
295 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
296             Yao Qi  <yao@codesourcery.com>
297
298         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
299         (parse_no_frames_option): Remove.
300         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
301         (mi_cmd_stack_list_args): Adjust.
302         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
303         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
304         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
305         Caller update.
306         (list_args_or_locals): New parameter 'skip_unavailable'.
307         Handle it.
308         * valprint.c (scalar_type_p): Rename to ...
309         (val_print_scalar_type_p): ... this.  Make extern.
310         (val_print, value_check_printable): Adjust.
311         * valprint.h (val_print_scalar_type_p): Declare.
312         * value.c (value_entirely_unavailable): New function.
313         * value.h (value_entirely_unavailable): Declare.
314
315         * NEWS: Mention the new option "--skip-unavailable" to MI
316         commands '-stack-list-locals', '-stack-list-arguments' and
317         '-stack-list-variables'.
318
319 2013-08-27  Yao Qi  <yao@codesourcery.com>
320
321         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
322         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
323         options.
324         * mi/mi-getopt.c (mi_getopt): Remove.
325         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
326         'error_on_unknown'.
327         (mi_getopt): Call mi_getopt_1.
328         (mi_getopt_silent): New.
329         * mi/mi-getopt.h (mi_getopt_silent): Declare.
330
331 2013-08-26  Doug Evans  <dje@google.com>
332
333         PR symtab/15885
334         * dwarf2read.c (dw2_dump): Print some minimal information indicating
335         .gdb_index is in use.
336         * symfile.c (reread_symbols): Reset objfile->sf.
337
338         * NEWS: Document "mt print objfiles" now takes optional regexp.
339         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
340         regexp of objfiles to print.
341         (_initialize_symmisc): Update doc string for "mt print objfiles".
342
343         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
344         missing debug info checks.
345
346 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
347             Ulrich Weigand  <uweigand@de.ibm.com>
348
349         * xcoffread.c (arrange_linetable): Add fix to correctly handle
350         line tables generated by XLC compiled binaries.
351
352 2013-08-23  Doug Evans  <dje@google.com>
353
354         * symmisc.c (dump_symtab): Delete prototype.
355         (dump_msymbols, dump_objfile): Ditto.
356         (maintenance_info_symtabs): Mark as dont_repeat.
357         (_initialize_symmisc): Improve doc string for "mt info symtabs".
358
359         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
360         debugging printf to better location.
361
362 2013-08-23  Pedro Alves  <palves@redhat.com>
363
364         * target.c (target_read_live_memory): Change type of 'ret' local
365         to LONGEST.
366
367 2013-08-23  Pedro Alves  <palves@redhat.com>
368
369         * remote.c (remote_write_bytes_aux, remote_write_bytes)
370         (remote_read_bytes): Change return type to LONGEST, and adjust to
371         return a target_xfer_error on error.
372         (remote_xfer_memory): Delete.
373         (remote_flash_write): Change type of 'ret' local to LONGEST.
374         (remote_xfer_partial, remote_xfer_partial): Adjust.
375         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
376
377 2013-08-23  Pierre Muller  <muller@sourceware.org>
378
379         ARI fix: Push # directives to start of line.
380         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
381
382 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
383
384         PR gdb/15501
385         * breakpoint.c (enable_command, disable_command): Iterate over
386         all specified breakpoint locations.
387
388 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
389
390         * common/linux-ptrace.c (linux_fork_to_function): Push #
391         directives to the start of the line.
392         (linux_check_ptrace_features): Fix warning message to use
393         the "_" markup.
394
395 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
396
397         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
398         nat/linux-waitpid.h.
399         (linux-waitpid.o): New object file rule.
400         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
401         (current_ptrace_options): Moved from linux-nat.c.
402         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
403         parameters.
404         (linux_fork_to_function): New function.
405         (linux_grandchild_function): Likewise.
406         (linux_child_function): Likewise.
407         (linux_check_ptrace_features): New function, heavily
408         based on linux-nat.c:linux_test_for_tracefork.
409         (linux_enable_event_reporting): New function.
410         (ptrace_supports_feature): Likewise.
411         (linux_supports_tracefork): Likewise.
412         (linux_supports_traceclone): Likewise.
413         (linux_supports_tracevforkdone): Likewise.
414         (linux_supports_tracesysgood): Likewise.
415         * common/linux-ptrace.h (HAS_NOMMU): Moved from
416         gdbserver/linux-low.c.
417         (linux_enable_event_reporting): New declaration.
418         (linux_supports_tracefork): Likewise.
419         (linux_supports_traceclone): Likewise.
420         (linux_supports_tracevforkdone): Likewise.
421         (linux_supports_tracesysgood): Likewise.
422         * config.in (PTRACE_TYPE_ARG4): Regenerate.
423         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
424         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
425         * config/arm/linux.mh (NATDEPFILES): Likewise.
426         * config/i386/linux.mh (NATDEPFILES): Likewise.
427         * config/i386/linux64.mh (NATDEPFILES): Likewise.
428         * config/ia64/linux.mh (NATDEPFILES): Likewise.
429         * config/m32r/linux.mh (NATDEPFILES): Likewise.
430         * config/m68k/linux.mh (NATDEPFILES): Likewise.
431         * config/mips/linux.mh (NATDEPFILES): Likewise.
432         * config/pa/linux.mh (NATDEPFILES): Likewise..
433         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
434         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
435         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
436         * config/sparc/linux.mh (NATDEPFILES): Likewise.
437         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
438         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
439         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
440         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
441         ptrace's 4th argument's types.
442         Check the type of PTRACE_TYPE_ARG4.
443         * configure: Regenerate.
444         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
445         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
446         (linux_supports_tracefork_flag): Remove.
447         (linux_supports_tracesysgood_flag): Likewise.
448         (linux_supports_tracevforkdone_flag): Likewise.
449         (current_ptrace_options): Moved to
450         common/linux-ptrace.c.
451         (linux_tracefork_child): Remove.
452         (my_waitpid): Remove.
453         (linux_test_for_tracefork): Renamed to
454         linux_check_ptrace_features and moved to common/linux-ptrace.c.
455         (linux_test_for_tracesysgood): Remove.
456         (linux_supports_tracesysgood): Remove.
457         (linux_supports_tracefork): Remove.
458         (linux_supports_tracevforkdone): Remove.
459         (linux_enable_tracesysgood): Remove.
460         (linux_enable_event_reporting): Remove.
461         (linux_init_ptrace): New function.
462         (linux_child_post_attach): Call linux_init_ptrace.
463         (linux_child_post_startup_inferior): Call linux_init_ptrace.
464         (linux_child_follow_fork): Call linux_supports_tracefork
465         and linux_supports_tracevforkdone.
466         (linux_child_insert_fork_catchpoint): Call
467         linux_supports_tracefork.
468         (linux_child_insert_vfork_catchpoint): Likewise.
469         (linux_child_set_syscall_catchpoint): Call
470         linux_supports_tracesysgood.
471         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
472         * nat/linux-nat.h: New file.
473         * nat/linux-waitpid.c: New file.
474         * nat/linux-waitpid.h: New file.
475
476 2013-08-22  Samuel Bronson  <naesten@gmail.com>
477
478         ARM Linux support for `catch syscall'.
479         * syscalls/arm-linux.py: New file.
480         * syscalls/arm-linux.xml: Likewise.
481         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
482         (arm_linux_init_abi): Register the new function and syscall xml file.
483         * data-directory/Makefile.in: Install the new syscall xml file.
484         * NEWS: Brag about this.
485
486 2013-08-22  Pedro Alves  <palves@redhat.com>
487
488         PR gdb/15871
489         * corefile.c (target_xfer_memory_error): New function.
490         (memory_error): Defer EIO to target_memory_error.
491         (read_memory): Use target_xfer_partial, and handle finer-grained
492         target xfer errors.
493         * target.c (target_xfer_error_to_string): New function.
494         (memory_xfer_partial_1): If memory is known to be
495         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
496         (target_xfer_partial): Make extern.
497         * target.h (enum target_xfer_error): New enum.
498         (target_xfer_error_to_string): Declare function.
499         (target_xfer_partial): Declare function.
500         (struct target_ops) <xfer_partial>: Adjust describing comment.
501
502 2013-08-22  Alan Modra  <amodra@gmail.com>
503
504         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
505         * configure.tgt: Likewise as targets.
506
507 2013-08-20  Doug Evans  <dje@google.com>
508
509         * buildsym.c (subfile_stack): Move here from buildsym.h.
510         (pending_macros): Ditto.
511         (get_macro_table): New function.
512         (buildsym_init): Initialize subfile_stack.
513         * coffread.c (type_vector,type_vector_length): Moved here from
514         buildsym.h.
515         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
516         (coff_symtab_read): Use it.
517         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
518         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
519         with call to get_macro_table.
520         * stabsread.c (type_vector,type_vector_length): Moved here from
521         buildsym.h.
522         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
523         * buildsym.h (get_macro_table): Declare.
524
525 2013-08-20  Tom Tromey  <tromey@redhat.com>
526
527         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
528         Update.
529         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
530
531 2013-08-20  Doug Evans  <dje@google.com>
532
533         * blockframe.c: Remove #include "psymtab.h".
534         * cp-support.c: Ditto.
535         * source.c: Ditto.
536         * stack.c: Ditto.
537
538 2013-08-20  Tom Tromey  <tromey@redhat.com>
539
540         PR python/15816:
541         * exceptions.h (return_mask): Now an enum.
542         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
543         enum constants.
544
545 2013-08-20  Tom Tromey  <tromey@redhat.com>
546
547         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
548         get_objfile_arch.
549         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
550         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
551         * jit.c (jit_object_close_impl): Update.
552         * jv-lang.c (get_dynamics_objfile): Update.
553         * linespec.c (add_minsym): Use get_dynamics_objfile.
554         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
555         (allocate_objfile): Don't initialize 'gdbarch' field.
556         (get_objfile_arch): Update.
557         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
558         moved from...
559         (struct objfile) <gdbarch>: ... here.  Remove.
560         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
561         get_objfile_arch.
562         * symfile.c (init_entry_point_info): Use get_objfile_arch.
563
564 2013-08-20  Alan Modra  <amodra@gmail.com>
565
566         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
567         for IBM long double nan and inf.
568         (floatformat_is_negative, floatformat_classify,
569         floatformat_mantissa): Similarly.
570         (floatformat_ieee_single, floatformat_ieee_double,
571         floatformat_ieee_quad, floatformat_arm_ext,
572         floatformat_ia64_spill): Delete unused vars.
573         (_initialize_doublest): Delete unused function.
574         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
575         little-endian variants of floatformat_ibm_long_double.
576
577 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
578
579         * Makefile.in (SFILES): Remove common/target-common.c and
580         add target/waitstatus.c.
581         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
582         target/resume.h, target/wait.h and target/waitstatus.h.
583         (COMMON_OBS): Remove target-common.o and add
584         waitstatus.o.
585         (target-common.o): Remove.
586         (waitstatus.o): New target object file.
587         * common/target-common.c: Move contents to
588         target/waitstatus.c and remove.
589         * common/target-common.h: Move contents to other files and
590         remove.
591         (enum resume_kind: Move to target/resume.h.
592         (TARGET_WNOHANG): Move to target/wait.h.
593         (enum target_waitkind): Move to target/waitstatus.h.
594         (struct target_waitstatus): Likewise.
595         * target.h: Do not include target-common.h and
596         include target/resume.h, target/wait.h and
597         target/waitstatus.h.
598         * target/resume.h: New file.
599         * target/wait.h: New file.
600         * target/waitstatus.h: New file.
601         * target/waitstatus.c: New file.
602
603 2013-08-19  Pedro Alves  <palves@redhat.com>
604
605         * linux-nat.c (linux_test_for_tracefork)
606         (linux_test_for_tracesysgood, linux_child_follow_fork)
607         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
608         (linux_nat_wait_1): Extend comment.
609         (linux_async_pipe): Add comment.
610
611 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
612
613         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
614         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
615         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
616         Update to account for fact that PC is now a pseudo-register.
617         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
618         cases for RL78_PC_REGNUM.
619
620 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
621
622         PR cli/15841
623         * top.c (quit_force): Skip writing history file
624         if input is not from terminal.
625
626 2013-08-14  Tom Tromey  <tromey@redhat.com>
627
628         * remote.c (struct remote_state) <echo_nextthread, nextthread,
629         resultthreadlist>: New fields.
630         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
631         (remote_get_threadlist, remote_threadlist_iterator): Use
632         new fields.  Remove static variables.
633
634 2013-08-14  Tom Tromey  <tromey@redhat.com>
635
636         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
637         remote_watch_data_address>: New fields.
638         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
639         (process_stop_reply, remote_wait_as)
640         (remote_check_watch_resources, remote_stopped_data_address): Update.
641
642 2013-08-14  Tom Tromey  <tromey@redhat.com>
643
644         * remote.c (struct remote_state) <async_client_callback,
645         async_client_context>: New fields.
646         (async_client_callback, async_client_context): Remove.
647         (remote_async_serial_handler, remote_async): Update.
648
649 2013-08-14  Tom Tromey  <tromey@redhat.com>
650
651         * remote.c (sizeof_pkt): Remove.
652         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
653
654 2013-08-14  Tom Tromey  <tromey@redhat.com>
655
656         * remote.c (struct remote_state) <use_threadinfo_query,
657         use_threadextra_query>: New fields.
658         (remote_threads_info, remote_threads_extra_info)
659         (remote_open_1): Update.
660
661 2013-08-14  Tom Tromey  <tromey@redhat.com>
662
663         * remote.c (struct remote_state) <finished_object,
664         finished_annex, finished_offset>: New fields.
665         (remote_read_qxfer): Use remote_state fields; remove static
666         variables.
667
668 2013-08-14  Tom Tromey  <tromey@redhat.com>
669
670         * remote.c (struct remote_state) <last_sent_step>:
671         New field.
672         (last_sent_step): Remove.
673         (remote_resume, remote_wait_as): Update.
674
675 2013-08-14  Tom Tromey  <tromey@redhat.com>
676
677         * remote.c (struct remote_state) <last_sent_signal>:
678         New field.
679         (last_sent_signal): Remove.
680         (new_remote_state, remote_resume, remote_wait_as): Update.
681
682 2013-08-14  Tom Tromey  <tromey@redhat.com>
683
684         * remote.c (struct remote_state) <last_program_signals_packet>:
685         New field.
686         (last_program_signals_packet): Remove.
687         (remote_program_signals, remote_open_1): Update.
688
689 2013-08-14  Tom Tromey  <tromey@redhat.com>
690
691         * remote.c (struct remote_state) <last_pass_packet>:
692         New field.
693         (last_pass_packet): Remove.
694         (remote_pass_signals, remote_open_1): Update.
695
696 2013-08-14  Tom Tromey  <tromey@redhat.com>
697
698         * remote.c (struct remote_state) <remote_traceframe_number>:
699         New field.
700         (remote_traceframe_number): Remove.
701         (new_remote_state, remote_open_1, set_remote_traceframe)
702         (remote_trace_find): Update.
703
704 2013-08-14  Tom Tromey  <tromey@redhat.com>
705
706         * remote.c (struct remote_state) <general_thread, continue_thread>:
707         New fields.
708         (general_thread, continue_thread): Remove.
709         (record_currthread, set_thread, set_general_process)
710         (remote_open_1, extended_remote_attach_1, remote_wait_as)
711         (extended_remote_mourn_1): Update.
712
713 2013-08-14  Tom Tromey  <tromey@redhat.com>
714
715         * remote.c (struct remote_state) <remote_desc>: New field.
716         (remote_desc): Remove.
717         (remote_threads_info, remote_threads_extra_info, remote_close)
718         (send_interrupt_sequence, remote_start_remote, remote_open_1)
719         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
720         (remote_hostio_send_command, remote_file_put, remote_file_get)
721         (remote_file_delete, remote_can_async_p, remote_is_async_p)
722         (remote_async, remote_new_objfile, set_range_stepping): Update.
723
724 2013-08-14  Tom Tromey  <tromey@redhat.com>
725
726         * remote.c (remote_state): Now a pointer.
727         (get_remote_state_raw): Update.
728         (new_remote_state): New function.
729         (_initialize_remote): Use new_remote_state.
730
731 2013-08-14  Tom Tromey  <tromey@redhat.com>
732
733         * remote.c (remote_protocol_features): Now const.
734
735 2013-08-14  Tom Tromey  <tromey@redhat.com>
736
737         * remote.c (crc32_table, crc32): Remove.
738         (remote_verify_memory): Use xcrc32.
739
740 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
741
742         * value.h (create_internalvar_type_lazy): Adjust prototype
743         declaration.
744
745 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
746
747         * common/format.c (parse_format_string): Don't allow '#' flag for
748         pointer arguments in format string.
749
750 2013-08-13  Pierre Muller  <muller@sourceware.org>
751
752         * utils.c (init_page_info): Only call tgetnum function
753         if rl_get_screen_size did not return useful values.
754
755 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
756
757         PR breakpoints/15117
758         * linespec.c (linespec_parse_basic): Check for convenience
759         variable or history value while parsing.
760
761 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
762
763         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
764         AVR.
765         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
766         different signals between the generic Linux kernel implementation
767         and AVR's.
768         (avr_linux_gdb_signal_from_target): Delete.
769         (avr_linux_gdb_signal_to_target): Delete.
770         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
771
772 2013-08-09  Doug Evans  <dje@google.com>
773
774         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
775         entries.
776
777 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
778
779         * linux-tdep.c: Define enum with generic signal numbers.
780         (linux_gdb_signal_from_target): New function.
781         (linux_gdb_signal_to_target): Likewise.
782         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
783         methods to the functions above.
784         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
785         (linux_gdb_signal_to_target): Likewise.
786         * alpha-linux-tdep.c: Define new enum with signals different
787         from generic Linux kernel.
788         (alpha_linux_gdb_signal_from_target): New function.
789         (alpha_linux_gdb_signal_to_target): Likewise.
790         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
791         with the functions mentioned above.
792         * avr-tdep.c: Define enum with differences between Linux kernel
793         and AVR signals.
794         (avr_linux_gdb_signal_from_target): New function.
795         (avr_linux_gdb_signal_to_target): Likewise.
796         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
797         the functions mentioned above.
798         * sparc-linux-tdep.c: Define enum with differences between SPARC
799         and generic Linux kernel signal numbers.
800         (sparc32_linux_gdb_signal_from_target): New function.
801         (sparc32_linux_gdb_signal_to_target): Likewise.
802         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
803         to the functions defined above.
804         * xtensa-linux-tdep.c: Define enum with differences between
805         Xtensa and Linux kernel generic signals.
806         (xtensa_linux_gdb_signal_from_target): New function.
807         (xtensa_linux_gdb_signal_to_target): Likewise.
808         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
809         to the functions defined above.
810         * mips-linux-tdep.c: Define enum with differences between
811         signals in MIPS and Linux kernel generic ones.
812         (mips_gdb_signal_to_target): New function.
813         (mips_gdb_signal_from_target): Redefine to use new enum, handle
814         only different signals from the Linux kernel generic.
815         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
816         the functions defined above.
817         * mips-linux-tdep.h (enum mips_signals): Remove.
818
819 2013-08-09  Pedro Alves  <palves@redhat.com>
820
821         * avr-tdep.c (XMALLOC): Delete macro.
822         * cli/cli-dump.c (XMALLOC): Delete macro.
823
824 2013-08-09  Pedro Alves  <palves@redhat.com>
825
826         * cli/cli-dump.c: Don't include cli/cli-dump.h.
827         (scan_expression_with_cleanup, scan_filename_with_cleanup)
828         (fopen_with_cleanup, add_dump_command): Make static.
829         * cli/cli-dump.h: Delete file.
830         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
831         cli/cli-dump.h.
832
833 2013-08-09  Pedro Alves  <palves@redhat.com>
834
835         * tracepoint.c (tfile_start): Show tilde-expanded filename in
836         error message.
837
838 2013-08-09  Pedro Alves  <palves@redhat.com>
839
840         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
841         error message.
842
843 2013-08-09  Pedro Alves  <palves@redhat.com>
844
845         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
846         (gcore_command): Use tilde_expand here, and when showing the
847         filename to the user, show the expanded version.
848
849 2013-08-09  Yao Qi  <yao@codesourcery.com>
850
851         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
852         'entryval' is set.
853
854 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
855
856         * gcore.c (create_gcore_bfd): Use tilde_expand.
857
858 2013-08-08  Yao Qi  <yao@codesourcery.com>
859
860         * frame.h (read_frame_local): Declare.
861         * mi/mi-cmd-stack.c (list_args_or_locals): Call
862         read_frame_local.
863         * stack.c (read_frame_local): New.
864
865 2013-08-08  Yao Qi  <yao@codesourcery.com>
866
867         * mi/mi-cmd-stack.c: Update comments to function
868         list_args_or_locals.
869
870 2013-08-07  Tom Tromey  <tromey@redhat.com>
871
872         PR symtab/15028:
873         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
874         (process_psymtab_comp_unit_reader): Use it.
875         (process_psymtab_comp_unit): Update.  Add "pretend_language"
876         argument.
877         (dwarf2_build_psymtabs_hard): Update.
878         (scan_partial_symbols): Pass CU's language to
879         process_psymtab_comp_unit.
880
881 2013-08-07  Tom Tromey  <tromey@redhat.com>
882
883         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
884         (dwarf2_gdb_index_functions): Update.
885         * psymtab.c (find_symbol_file_from_partial): Remove.
886         (psym_functions): Update.
887         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
888         Remove.
889
890 2013-08-07  Tom Tromey  <tromey@redhat.com>
891
892         * symfile.c (set_initial_language): Look up "main" symbol
893         and use its language.
894         * symtab.c (find_main_filename): Remove.
895         * symtab.h (find_main_filename): Remove.
896
897 2013-08-07  Tom Tromey  <tromey@redhat.com>
898
899         * dwarf2read.c (recursively_compute_inclusions): Add
900         "immediate_parent" argument.  Set symtab's "user" field
901         if not set.
902         (compute_symtab_includes): Update.
903
904 2013-08-07  Tom Tromey  <tromey@redhat.com>
905
906         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
907         when adding label symbols.
908
909 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
910             Ulrich Weigand  <uweigand@de.ibm.com>
911
912         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
913         * configure.host (powerpc64-*-aix*): Likewise.
914
915 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
916             Ulrich Weigand  <uweigand@de.ibm.com>
917
918         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
919         is defined.
920         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
921         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
922         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
923         * configure.ac: Check for ptrace64.
924         * configure, config.in: Regenerate.
925
926 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
927             Ulrich Weigand  <uweigand@de.ibm.com>
928
929         * aixthread.c: Call ptrace64 instead of ptracex if defined.
930         Call ptrace64 instead of ptrace if defined.
931         Add macro addr_ptr to take care of ptrace address argument.
932         (pdc_read_regs): Likewise.
933         (pdc_write_regs): Likewise.
934         (aix_thread_resume): Likewise.
935         (fetch_regs_kernel_thread): Likewise.
936         (store_regs_kernel_thread): Likewise.
937
938 2013-08-07  Anton Blanchard  <anton@samba.org>
939
940         * MAINTAINERS: Add myself to Write After Approval.
941
942 2013-08-05  Tom Tromey  <tromey@redhat.com>
943
944         * aix-thread.c (_initialize_aix_thread): Use
945         complete_target_initialization.
946         * bsd-uthread.c (_initialize_bsd_uthread): Use
947         complete_target_initialization.
948         * dec-thread.c (_initialize_dec_thread): Use
949         complete_target_initialization.
950         * ravenscar-thread.c (_initialize_ravenscar): Use
951         complete_target_initialization.
952         * sol-thread.c (_initialize_sol_thread): Use
953         complete_target_initialization.
954         * spu-multiarch.c (_initialize_spu_multiarch): Use
955         complete_target_initialization.
956
957 2013-08-05  Tom Tromey  <tromey@redhat.com>
958
959         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
960         * ada-lang.c (ada_lookup_simple_minsym): Return
961         bound_minimal_symbol.
962         * ada-lang.h (ada_lookup_simple_minsym): Update.
963         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
964         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
965         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
966         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
967         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
968         * minsyms.c (msymbol_objfile): Remove.
969         (lookup_minimal_symbol_internal): New function, from
970         lookup_minimal_symbol.
971         (lookup_minimal_symbol): Rewrite using
972         lookup_minimal_symbol_internal.
973         (lookup_bound_minimal_symbol): New function.
974         * minsyms.h (msymbol_objfile): Remove.
975         (lookup_bound_minimal_symbol): Declare.
976         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
977         * parse.c (write_exp_msymbol): Change parameter to a
978         bound_minimal_symbol.
979         (write_dollar_variable): Use lookup_bound_minimal_symbol.
980         * parser-defs.h (write_exp_msymbol): Update.
981         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
982         * symfile.c (simple_read_overlay_table): Use
983         lookup_bound_minimal_symbol.
984         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
985         (search_symbols): Likewise.
986         (print_msymbol_info): Take a bound_minimal_symbol argument.
987         (symtab_symbol_info, rbreak_command): Update.
988         * symtab.h (struct symbol_search) <msymbol>: Change type
989         to bound_minimal_symbol.
990         * valops.c (find_function_in_inferior): Use
991         lookup_bound_minimal_symbol.
992         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
993
994 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
995
996         Code cleanup.
997         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
998         to ...
999         (async_cleanup_sigint_signal_handler): ... this.
1000         (initialize_sigint_signal_handler): Remove declaration.
1001         (handle_remote_sigint): Rename the declaration to ...
1002         (async_handle_remote_sigint): ... this.
1003         (handle_remote_sigint_twice): Rename the declaration to ...
1004         (async_handle_remote_sigint_twice): ... this.
1005         (async_remote_interrupt, async_remote_interrupt_twice)
1006         (remote_interrupt): Remove the declarations.
1007         (remote_interrupt_twice): Rename the declaration ...
1008         (sync_remote_interrupt_twice): ... this.
1009         (sigint_remote_twice_token): Rename the variable to ...
1010         (async_sigint_remote_twice_token): ... this.
1011         (sigint_remote_token): Rename the variable to ...
1012         (async_sigint_remote_token): ... this.
1013         (initialize_sigint_signal_handler): Rename the function to ...
1014         (async_initialize_sigint_signal_handler): ... this.  Update the name
1015         inside.
1016         (handle_remote_sigint): Rename the function to ...
1017         (async_handle_remote_sigint): ... this.  Update the names inside.
1018         (handle_remote_sigint_twice): Rename the function to ...
1019         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
1020         (cleanup_sigint_signal_handler): Rename the function to ...
1021         (async_cleanup_sigint_signal_handler): ... this.
1022         (remote_interrupt): Rename the function to ...
1023         (sync_remote_interrupt): this.  Update the names inside.
1024         (remote_interrupt_twice): Rename the function to ...
1025         (sync_remote_interrupt_twice): this.  Update the names inside.
1026         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1027         (_initialize_remote): Update the names inside.
1028
1029 2013-08-02  Tom Tromey  <tromey@redhat.com>
1030
1031         PR symtab/15719:
1032         * breakpoint.c (update_watchpoint, watchpoint_check)
1033         (watch_command_1): Update.
1034         * eval.c (fetch_subexp_value): Add "preserve_errors"
1035         parameter.
1036         * ppc-linux-nat.c (check_condition): Update.
1037         * value.h (fetch_subexp_value): Update.
1038
1039 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
1040
1041         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1042         add_file_handler.
1043
1044 2013-08-01  Doug Evans  <dje@google.com>
1045
1046         PR symtab/15691
1047         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1048         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1049         Add assert of sig_entry->dwo_unit == NULL.
1050         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1051         had already been read.
1052         (read_signatured_type): Set per_cu.tu_read.
1053
1054         PR symtab/15695
1055         * valops.c (value_struct_elt): Add missing call to check_typedef.
1056         (value_find_oload_method_list): Ditto.
1057
1058         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1059         effectively, struct symbol_search **.
1060         (make_cleanup_free_search_symbols): Change arg to struct
1061         symbol_search **.  All callers updated.
1062         (compare_search_syms): Compare symtab file name and block as well.
1063         (search_symbols_equal): New function.
1064         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1065         New args new_head, new_tail.  Result is now void.  Remove dups after
1066         sorting the symbols.
1067         (search_symbols): Sort all found symbols once, after all have been
1068         found, and remove duplicates.  Simplify cleanup tracking of result.
1069         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1070
1071         Further workarounds for binutils/15021.
1072         * dwarf2read.c (recursively_compute_inclusions): Change type of result
1073         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
1074         Watch for duplicate symtabs coming from type units.
1075         (compute_symtab_includes): Update call to
1076         recursively_compute_inclusions. Build vector of included symtabs
1077         instead of per_cus.
1078         * symtab.h (symtab_ptr): New typedef.
1079         (DEF_VEC_P (symtab_ptr)): New VEC type.
1080         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
1081         instead.
1082
1083 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
1084
1085         * cli/cli-script.c (script_from_file): Remove use of
1086         error_pre_print.
1087         * main.c (captured_main): Remove use of error_pre_print and
1088         quit_pre_print.
1089         * utils.c (error_pre_print, quit_pre_print): Remove.
1090         * utils.h (error_pre_print, quit_pre_print): Likewise.
1091
1092 2013-08-01  Yao Qi  <yao@codesourcery.com>
1093
1094         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1095         with mi_getopt.
1096         (mi_cmd_stack_list_variables): Likewise.
1097
1098 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
1099
1100         * exceptions.c (deprecated_throw_reason): Remove.
1101         * exceptions.h (deprecated_throw_reason): Remove.
1102
1103 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
1104
1105         * remote-mips.c (mips_error): Replace use of
1106         deprecated_throw_reason with throw_verror.  Use the error message
1107         passed to mips_error as the error message for throw_verror.
1108
1109 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
1110
1111         * monitor.c (monitor_interrupt_query): Replace use of
1112         deprecated_throw_reason with quit.
1113         * nto-procfs.c (interrupt_query): Likewise.
1114         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1115         * remote-mips.c (mips_kill): Likewise.
1116         * remote.c (interrupt_query): Likewise.
1117
1118 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
1119
1120         * utils.c (internal_verror): Replace use of deprecated_throw_reason
1121         with call to fatal.
1122
1123 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
1124             Yao Qi  <yao@codesourcery.com>
1125
1126         * tracepoint.c (trace_dump_command): Select the current frame.
1127
1128 2013-07-30  Doug Evans  <dje@google.com>
1129
1130         * dwarf2read.c (process_queue): Add type signature to debug output.
1131
1132 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
1133
1134         * value.c (value_fetch_lazy): Mark optimized out values as such
1135         rather than raising an error.
1136
1137 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
1138
1139         * value.c (value_fetch_lazy): Ensure parent value is not lazy
1140         before checking which bits of the parent, not the child, value are
1141         valid.
1142
1143 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
1144
1145         PR gdb/15715
1146         * top.c: Include "filenames.h".
1147         (set_history_filename): New function.
1148         (init_main): Install it as set hook of the "set history filename"
1149         command.
1150
1151 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
1152
1153         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1154         attribute parameter.
1155         (dwarf2_const_value_data): Constify struct attribute parameter.
1156         (dwarf2_const_value): Constify struct attribute parameter.
1157         (dwarf2_const_value_attr): Constify struct attribute parameter.
1158         (lookup_die_type): Constify struct attribute parameter.
1159         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1160         (follow_die_ref_or_sig): Constify struct attribute parameter.
1161         (follow_die_ref): Constify struct attribute parameter.
1162         (follow_die_sig): Constify struct attribute parameter.
1163         (get_DW_AT_signature_type): Constify struct attribute parameter.
1164         (get_type_unit_group): Constify struct attribute parameter.
1165         (fill_in_loclist_baton): Constify struct attribute parameter.
1166         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1167         (type_unit_group): Constify struct attribute parameter.
1168
1169 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
1170
1171         * dwarf2read.c (attr_form_is_block): Make argument const.
1172         (attr_form_is_section_offset): Make argument const.
1173         (attr_form_is_constant): Make argument const.
1174         (attr_form_is_ref): Make argument const.
1175
1176 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
1177
1178         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1179         All uses updated.
1180         (attr_form_is_ref): Moved below attr_form_is_constant.
1181
1182 2013-07-29  Doug Evans  <dje@google.com>
1183
1184         * main.c (captured_command_loop): Tweak comment.
1185
1186         * target.c (target_async_permitted_1): Fix comment.
1187
1188         * symtab.c (iterate_over_some_symtabs): Add comment.
1189
1190         * symtab.c (iterate_over_some_symtabs): Fix indentation.
1191
1192 2013-07-27  Yao Qi  <yao@codesourcery.com>
1193
1194         * NEWS: Mention that GDBserver now supports hardware
1195         watchpoints on the MIPS GNU/Linux target.
1196
1197 2013-07-27  Yao Qi  <yao@codesourcery.com>
1198
1199         * Makefile.in (HFILES_NO_SRCDIR): Add
1200         common/mips-linux-watch.h.
1201         (mips-linux-watch.o): New rule.
1202         * common/mips-linux-watch.c: New.
1203         * common/mips-linux-watch.h: New.
1204         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1205         * mips-linux-nat.c: Include mips-linux-watch.h.
1206         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1207         to common/mips-linux-watch.h.
1208         (MAX_DEBUG_REGISTER): Likewise.
1209         (enum pt_watch_style): Likewise.
1210         (struct mips32_watch_regs): Likewise.
1211         (struct mips64_watch_regs): Likewise.
1212         (struct pt_watch_regs): Likewise.
1213         (struct mips_watchpoint): Likewise.
1214         (mips_linux_watch_get_irw_mask): Move to
1215         common/mips-linux-watch.c.
1216         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1217         (mips_linux_watch_get_watchlo): Likewise.
1218         (mips_linux_watch_set_watchlo): Likewise.
1219         (mips_linux_watch_get_watchhi): Likewise.
1220         (mips_linux_watch_set_watchhi): Likewise.
1221         (mips_linux_read_watch_registers): Likewise.
1222         (mips_linux_watch_type_to_irw): Likewise.
1223         (mips_linux_stopped_data_address, fill_mask): Likewise.
1224         (mips_linux_watch_try_one_watch): Likewise.
1225         (mips_linux_watch_populate_regs): Likewise.
1226
1227 2013-07-27  Yao Qi  <yao@codesourcery.com>
1228
1229         * mips-linux-nat.c (get_irw_mask): Rename to ...
1230         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
1231         'set' to 'n'.  Update function comment.  All callers changed.
1232         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
1233         function comment.  All callers changed.
1234         (get_num_valid): Rename to ...
1235         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
1236         'set' to 'n'.  Update function comment.  All callers changed.
1237         (get_watchlo): Rename to ...
1238         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
1239         'set' to 'n'.  Update function comment.  All callers changed.
1240         (set_watchlo): Rename to ...
1241         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
1242         'set' to 'n'.  Update function comment.  All callers changed.
1243         (get_watchhi): Rename to ...
1244         (mips_linux_watch_get_watchhi): ... this.  Update function
1245         comment.  All callers changed.
1246         (set_watchhi): Rename to ...
1247         (mips_linux_watch_set_watchhi): ... this.  Update function
1248         comment.  All callers changed.
1249         (mips_linux_read_watch_registers): Update function comment.
1250         Add new parameters 'lwpid', 'watch_readback', and
1251         'watch_readback_valid'.  Update.
1252         (type_to_irw): Rename to ...
1253         (mips_linux_watch_type_to_irw): ... this.  Update function
1254         comment.  All callers changed.
1255         (fill_mask): Update function comment.
1256         (try_one_watch): Rename to ...
1257         (mips_linux_watch_try_one_watch): ... this.  Change the type
1258         of parameter 'irw' from 'unsigned' to 'uint32_t'.
1259         (populate_regs_from_watches): Rename to ...
1260         (mips_linux_watch_populate_regs): ... this.  Add parameter
1261         'current_watches'.  All callers changed.
1262
1263 2013-07-27  Yao Qi  <yao@codesourcery.com>
1264
1265         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1266         the code.
1267         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1268         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1269         (struct pt_watch_regs): Likewise.
1270         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1271         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1272         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1273         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1274         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
1275
1276 2013-07-27  Yao Qi  <yao@codesourcery.com>
1277
1278         * breakpoint.h: Include break-common.h.
1279         (enum target_hw_bp_type): Move to ...
1280         * common/break-common.h: ... here.  New.
1281
1282 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
1283
1284         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
1285         process group regardless of having tty on stdin.
1286
1287 2013-07-25  Doug Evans  <dje@google.com>
1288
1289         * linux-fork.h (detach_fork): Delete.
1290
1291 2013-07-25  Tom Tromey  <tromey@redhat.com>
1292
1293         PR remote/15256, PR remote/15266:
1294         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
1295         * monitor.c (monitor_detach): Use unpush_target.
1296         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
1297         * remote-mips.c (mips_detach): Use unpush_target.  Don't
1298         call mips_close.
1299         * remote-sim.c (gdbsim_detach): Use unpush_target.
1300         * target.c (pop_target): Remove.
1301         (pop_all_targets_above): Don't call target_close.
1302         (target_close): Assert that the target is unpushed.
1303         * target.h (pop_target): Don't declare.
1304         * tracepoint.c (tfile_open): Use unpush_target.
1305
1306 2013-07-25  Tom Tromey  <tromey@redhat.com>
1307
1308         * linux-thread-db.c (init_thread_db_ops): Call
1309         complete_target_initialization.
1310         (_initialize_thread_db): Don't call add_target.
1311         * target.c (complete_target_initialization): New function.
1312         (add_target_with_completer): Call it.
1313         * target.h (complete_target_initialization): Declare.
1314
1315 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
1316
1317         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
1318         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
1319         (HPPANBSD_SIZEOF_GREGS): New define.
1320         (hppaobsd_supply_gregset): Handle additional registers.
1321         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
1322         we provide more registers now.
1323         (hppabsd_supply_gregset): Supply additional registers.
1324         (hppabsd_collect_gregset): Collect additional registers.
1325
1326 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
1327
1328         * hppabsd-tdep.c: Include "dwarf2-frame.h".
1329         (hppabsd_dwarf2_frame_init_reg): New function.
1330         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
1331
1332 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
1333
1334         * mi/mi-main.c (output_register): Make MI 'r' format use standard
1335         'z' format code.  Remove error for optimized out values, standard
1336         code will handle these fine.
1337
1338 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
1339
1340         * NEWS: Mention new 'z' formatter.
1341         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
1342         (_initialize_printcmd): Mention 'z' formatter in help text of the
1343         'x' command.
1344
1345 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
1346
1347         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
1348         formatting.
1349
1350 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
1351
1352         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
1353         interface can evaluate arguments.  Fallback to the old mode if it
1354         cannot.
1355         (create_exception_master_breakpoint): Likewise.
1356         * elfread.c (elf_can_evaluate_probe_arguments): New function.
1357         (struct sym_probe_fns elf_probe_fns): Export function above to the
1358         probe interface.
1359         * probe.c (can_evaluate_probe_arguments): New function.
1360         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
1361         function pointer.
1362         (can_evaluate_probe_arguments): New function prototype.
1363         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
1364         probe interface can evaluate arguments.  Fallback to the old mode
1365         if it cannot.
1366         * stap-probe.c (stap_get_probe_argument_count): Check if probe
1367         interface can evaluate arguments.  Warning the user if it cannot.
1368         (stap_can_evaluate_probe_arguments): New function.
1369         (struct probe_ops stap_probe_ops): Export function above to the
1370         probe interface.
1371         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
1372         New function pointer.
1373
1374 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
1375
1376         * Makefile.in (SFILES): Add common/target-common.c.
1377         Add common/target-common.h to headers.
1378         (COMMON_OBS): Add target-common.o.
1379         (target-common.o): New target.
1380         * linux-nat.h (resume_kind): Move to common/target-common.h.
1381         * target.c (target_waitstatus_to_string): Move to
1382         common/target-common.c.
1383         * target.h: Include target-common.h.
1384         (target_waitkind): Move to common/target-common.h.
1385         (target_waitstatus): Likewise.
1386         (TARGET_WNOHANG): Likewise.
1387         * common/target-common.c: New file.
1388         * common/target-common.h: New file.
1389
1390 2013-07-24  Doug Evans  <dje@google.com>
1391
1392         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
1393         a warning.
1394
1395 2013-07-23  Yao Qi  <yao@codesourcery.com>
1396
1397         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
1398         parameter 'gdbarch'.
1399         (i386_stack_tramp_frame_sniffer): Caller update.
1400         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
1401         parameter 'gdbarch' and 'target'.
1402         (i386_linux_core_read_description): Caller update.
1403         * amd64-linux-tdep.c (amd64_linux_core_read_description):
1404         Likewise.
1405         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
1406         declaration.
1407
1408 2013-07-23  Tom Tromey  <tromey@redhat.com>
1409
1410         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
1411         2013-07-22.
1412
1413 2013-07-22  Doug Evans  <dje@google.com>
1414
1415         * exec.h (remove_target_sections): Delete arg abfd.
1416         * exec.c (exec_close): Update call to remove_target_sections.
1417         (remove_target_sections): Delete arg abfd.
1418         * solib.c (update_solib_list): Ditto.
1419         (reload_shared_libraries_1): Ditto.
1420         (clear_solib): Ditto, and unconditionally call remove_target_sections.
1421         * target.h (struct target_section): Rename key to owner.
1422         All uses updated.
1423
1424 2013-07-22  Tom Tromey  <tromey@redhat.com>
1425
1426         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
1427
1428 2013-07-22  Tom Tromey  <tromey@redhat.com>
1429
1430         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
1431         Simplify cleanup handling.
1432
1433 2013-07-22  Tom Tromey  <tromey@redhat.com>
1434
1435         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
1436         on all return paths.
1437
1438 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1439
1440         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
1441         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
1442         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
1443
1444 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
1445
1446         * top.c (print_gdb_version): Add help, apropos description and
1447         url to online documentation.
1448
1449 2013-07-19  Hui Zhu  <hui@codesourcery.com>
1450
1451         PR gdb/15692
1452         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
1453
1454 2013-07-19  Yao Qi  <yao@codesourcery.com>
1455
1456         * target.c (update_current_target): Change the default action
1457         of 'to_traceframe_info' from tcomplain to return_zero.
1458         * target.h (struct target_ops) <to_traceframe_info>: Add more
1459         comments.
1460         * valops.c (read_value_memory): Call
1461         traceframe_available_memory unconditionally.
1462
1463 2013-07-18  Yao Qi  <yao@codesourcery.com>
1464
1465         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
1466         if the name is prefixed by "__imp_" or "_imp_", look for minimal
1467         symbol without prefix.  If found, set its type to
1468         'mst_solib_trampoline'.
1469
1470 2013-07-17  Doug Evans  <dje@google.com>
1471
1472         * NEWS: Mention "set print raw frame-arguments".
1473         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
1474         * stack.c (print_raw_frame_arguments): New static global.
1475         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
1476         (_initialize_stack): New command "set/show print raw frame-arguments".
1477         * valprint.c (setprintrawlist, showprintrawlist): New globals.
1478         (set_print_raw, show_print_raw): New functions.
1479         (_initialize_valprint): New prefix command "set/show print raw".
1480         * valprint.h (value_print_options): Improve comments.
1481
1482         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
1483         of all *list variables.
1484
1485         * gdbcmd.h (togglelist): Delete.
1486         * cli/cli-cmds.c (togglelist): Delete.
1487         (init_cmd_lists): Update.
1488         * cli/cli-cmds.h (togglelist): Delete.
1489
1490 2013-07-17  Tom Tromey  <tromey@redhat.com>
1491
1492         * dwarf2read.c (dwarf2_per_objfile_free): Clear
1493         dwarf2_per_objfile.
1494
1495 2013-07-16  Doug Evans  <dje@google.com>
1496
1497         * nto-tdep.c (nto_relocate_section_addresses): Update,
1498         target_section.bfd deleted.
1499         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
1500         * s390-tdep.c (s390_load): Ditto.
1501         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
1502
1503 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
1504
1505         * common/format.c (parse_format_string): Add checks for NULL
1506         character before calling strchr.
1507
1508 2013-07-16  Doug Evans  <dje@google.com>
1509
1510         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
1511         temp_pathname argument.
1512         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
1513         when opening the file fails.
1514
1515         * target.h (struct target_section): Delete member bfd.
1516         All users updated to use the_bfd_section->owner instead.
1517         * exec.c (add_to_section_table): Assert bfd is expected value.
1518         Remove initialization of target_section.bfd.
1519         (remove_target_sections): Update.
1520         (section_table_available_memory): Update.
1521         (section_table_xfer_memory_partial): Update.
1522         (print_section_info): Update.
1523         (exec_set_section_address): Update.
1524         * record-full.c (record_full_core_xfer_partial): Update.
1525         * solib-svr4.c (svr4_relocate_section_addresses): Update.
1526         * solib-target.c (solib_target_relocate_section_addresses): Update.
1527         * symfile.c (build_section_addr_info_from_section_table): Update.
1528         * target.c (memory_xfer_live_readonly_partial): Update.
1529         (memory_xfer_partial_1): Update.
1530
1531 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1532
1533         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
1534         now available for embedded (BookE) and server (BookS) processors,
1535         correct mentions of 'booke' and adjust comments accordingly in order to
1536         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
1537         (have_ptrace_booke_interface): Rename function and variable
1538         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
1539         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
1540         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
1541         'hwdebug_point_cmp'. Update all uses.
1542         (booke_find_thread_points_by_tid): Rename function
1543         'booke_find_thread_points_by_tid' to
1544         'hwdebug_find_thread_points_by_tid'. Update all uses.
1545         (booke_insert_point): Rename function 'booke_insert_point' to
1546         'hwdebug_insert_point'. Update all uses.
1547         (booke_remove_point): Rename function 'booke_remove_point' to
1548         'hwdebug_remove_point'. Update all uses.
1549
1550 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
1551
1552         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
1553         numbers with enum values.
1554
1555 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
1556
1557         PR threads/13217
1558         * thread.c (thread_apply_all_command): Check for valid threads
1559         and thread count.
1560         (thread_array_cleanup): New struct.
1561         (set_thread_refcount): New function.
1562
1563 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
1564
1565         * infcmd.c (default_print_one_register_info): Reuse function
1566         print_hex_chars.
1567
1568 2013-07-10  Tom Tromey  <tromey@redhat.com>
1569
1570         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
1571         (ada-exp.o): New target.
1572
1573 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1574
1575         * mt-tdep.c (mt_registers_info): Call
1576         get_no_prettyformat_print_options instead of
1577         get_raw_print_options (regression by last patch from Doug
1578         Evans).
1579
1580 2013-07-09  Pedro Alves  <palves@redhat.com>
1581
1582         Checked in by Joel Brobecker  <brobecker@adacore.com>.
1583         * ada-lang.c (coerce_unspec_val_to_type): Use
1584         value_optimized_out_const.
1585         * value.c (value_optimized_out_const): New function.
1586         * value.h (value_optimized_out_const): New declaration.
1587
1588 2013-07-09  Doug Evans  <dje@google.com>
1589
1590         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
1591         Enum values rename as well.  All uses updated.
1592         * valprint.h (value_print_options): Rename member pretty to
1593         pretty format.  Rename member prettyprint_arrays to
1594         prettyformat_arrays.  Rename member prettyprint_structs to
1595         prettyformat_structs.  All uses updated.
1596         (get_no_prettyformat_print_options): Renamed from
1597         get_raw_print_options.
1598         * valprint.c (get_no_prettyformat_print_options): Renamed from
1599         get_raw_print_options.  All callers updated.
1600         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
1601         All callers updated.
1602         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
1603         All callers updated.
1604         (_initialize_valprint): Improve help text for "set print pretty" and
1605         "set print arrays".
1606
1607 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
1608
1609         * value.c (value_bits_valid): Revert previous change, and change
1610         by Pedro on 2013-07-04, due to regressions in
1611         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
1612
1613 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
1614             Pedro Alves  <palves@redhat.com>
1615
1616         * value.c (value_bits_valid): If the value is not lval_computed
1617         or has no check validity handler then the answer is the
1618         optimized_out flag, otherwise defer to the handler.
1619
1620 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
1621
1622         * top.c (print_gdb_configuration): Explain in output of
1623         --configuration what does "relocatable" mean.
1624
1625         * main.c (print_gdb_help): Regroup options in the --help text.
1626         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
1627         the relevant discussions.
1628
1629 2013-07-06  Yao Qi  <yao@codesourcery.com>
1630
1631         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
1632         Remove parameter 'lsal'.
1633         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
1634         to inner block.  Caller update.
1635         (base_breakpoint_create_breakpoints_sal): Update.
1636         (bkpt_create_breakpoints_sal): Likewise.
1637         (tracepoint_create_breakpoints_sal): Likewise.
1638         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
1639         element 0 of vector 'canonical->sals'.
1640
1641 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
1642
1643         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
1644         register number instead of the pseudo register one.
1645         (rs6000_dwarf2_reg_to_regnum): Likewise.
1646
1647 2013-07-04  Pedro Alves  <palves@redhat.com>
1648
1649         * findvar.c (value_of_register): Use allocate_optimized_out_value
1650         if the register has been optimized out, instead of
1651         set_value_optimized_out.
1652         * frame-unwind.c (frame_unwind_got_optimized): Use
1653         allocate_optimized_out_value.
1654
1655 2013-07-04  Pedro Alves  <palves@redhat.com>
1656
1657         * value.c (value_bits_valid): If the value is not lval_computed,
1658         or doesn't have a check_validity hook, assume the value is entirely
1659         valid.
1660
1661 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
1662
1663         * stack.c (read_frame_arg): No longer fetch lazy values.
1664         * value.c (value_optimized_out): If the value is not already
1665         marked optimized out, and is lazy then fetch it.
1666         (value_primitive_field): Move optimized out check to later in the
1667         function, after we have loaded any lazy values.
1668         (value_fetch_lazy): Use optimized out flag directly rather than
1669         calling optimized_out method.
1670
1671 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
1672
1673         * valops.c: Don't include "user-regs.h".
1674         (value_fetch_lazy): Moved to value.c.
1675         * value.c: Include "user-regs.h".
1676         (value_fetch_lazy): Moved from valops.c.
1677
1678 2013-07-04  Yao Qi  <yao@codesourcery.com>
1679
1680         Revert:
1681         2013-06-27  Yao Qi  <yao@codesourcery.com>
1682
1683         * common/create-version.sh: Update comments.  Handle the case
1684         that TARGET_ALIAS is empty.
1685
1686 2013-07-03  Pedro Alves  <palves@redhat.com>
1687
1688         * Makefile.in (config.status): Depend on development.sh.
1689         (aclocal_m4_deps): Add libmcheck.m4.
1690         * acinclude.m4: Include libmcheck.m4.
1691         * configure.ac: Source development.sh instead of setting
1692         'development' here.  --enable-libmcheck/--disable-libmcheck code
1693         factored out to GDB_AC_LIBMCHECK.  Run it.
1694         * development.sh: New file.
1695         * libmcheck.m4: New file.
1696         * configure: Regenerate.
1697
1698 2013-07-02  Tom Tromey  <tromey@redhat.com>
1699
1700         * contrib/ari/update-web-ari.sh: Update for version.in change.
1701
1702 2013-07-02  Tom Tromey  <tromey@redhat.com>
1703
1704         * common/ptid.h: Comment fixes.
1705
1706 2013-07-01  Tom Tromey  <tromey@redhat.com>
1707
1708         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
1709         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
1710         (dwarf2_read_index, create_all_comp_units): Update.
1711
1712 2013-07-01  Tom Tromey  <tromey@redhat.com>
1713
1714         * configure.ac (build_warnings): Add -Wold-style-definition.
1715         * configure: Rebuild.
1716         * machoread.c (_initialize_machoread): Use "(void)".
1717         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
1718         use "(void)".
1719
1720 2013-07-01  Tom Tromey  <tromey@redhat.com>
1721
1722         * configure.ac (build_warnings): Add -Wold-style-declaration.
1723         * configure: Rebuild.
1724         * dsrec.c (make_srec): Use "static const", not "const static".
1725         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
1726         not "const static".
1727         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
1728         Use "static const", not "const static".
1729         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
1730         not "const static".
1731         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
1732         not "const static".
1733         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
1734         not "const static".
1735         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
1736         not "const static".
1737         (v850_dbtrap_breakpoint_from_pc): Likewise.
1738         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
1739         not "const static".
1740
1741 2013-07-01  Tom Tromey  <tromey@redhat.com>
1742
1743         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
1744         * configure: Rebuild.
1745
1746 2013-07-01  Pedro Alves  <palves@redhat.com>
1747
1748         * defs.h: Include "pathmax.h".
1749         * utils.c: Don't include sys/param.h.
1750         (gdb_realpath): Remove code that checks for MAXPATHLEN.
1751         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
1752         instead of MAXPATHLEN.
1753         * solib-sunos.c: Don't include sys/param.h.
1754         * xcoffread.c: Don't include sys/param.h.
1755         * bsd-kvm.c: Don't include sys/param.h.
1756         * darwin-nat.c: Don't include sys/param.h.
1757         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1758         * darwin-nat-info.c: Don't include sys/param.h.
1759         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
1760         MAXPATHLEN.
1761         * i386obsd-nat.c: Don't include sys/param.h.
1762         * inf-child.c: Don't include sys/param.h.
1763         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
1764         * linux-fork.c: Don't include sys/param.h.
1765         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
1766         * linux-nat.c: Don't include sys/param.h.
1767         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
1768         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
1769         * m68klinux-nat.c: Don't include sys/param.h.
1770         * nbsd-nat.c: Don't include sys/param.h.
1771         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1772         * ppc-linux-nat.c: Don't include sys/param.h.
1773         * rs6000-nat.c: Don't include sys/param.h.
1774         * spu-linux-nat.c. Don't include sys/param.h.
1775         * windows-nat.c: Don't include sys/param.h.
1776         * xtensa-linux-nat.c: Don't include sys/param.h.
1777         * config/i386/nm-fbsd.h: Don't include sys/param.h.
1778
1779 2013-07-01  Pedro Alves  <palves@redhat.com>
1780
1781         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
1782         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
1783         * gnulib/aclocal.m4: Regenerate.
1784         * gnulib/config.in: Regenerate.
1785         * gnulib/configure: Regenerate.
1786         * gnulib/import/pathmax.h: New file.
1787         * gnulib/import/Makefile.am: Regenerate.
1788         * gnulib/import/Makefile.in: Regenerate.
1789         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1790         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1791         * gnulib/import/m4/pathmax.m4: New file.
1792
1793 2013-07-01  Pedro Alves  <palves@redhat.com>
1794
1795         * configure.ac (GDBINIT): Define, depending on host.
1796         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
1797         * top.c (PATH_MAX): Delete fallback definition.
1798         (GDBINIT_FILENAME): Delete.
1799         (gdbinit): Reimplement as const char array set to the GDBINIT
1800         string constant.
1801         * top.h (gdbinit): Make const.
1802         * configure, config.in: Regenerate.
1803
1804 2013-07-01  Pedro Alves  <palves@redhat.com>
1805
1806         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
1807         * cli/cli-cmds.h (source_script): Likewise.
1808         * exceptions.c (catch_command_errors_const): New function.
1809         * exceptions.h (catch_command_errors_const): Declare.
1810         * main.c (get_init_files): Make parameters const, and adjust.
1811         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
1812         'local_gdbinit' locals const.  Adjust to use
1813         catch_command_errors_const.
1814         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
1815         'local_gdbinit' locals const.
1816
1817 2013-07-01  Pedro Alves  <palves@redhat.com>
1818
1819         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
1820         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
1821         * tracepoint.c: Don't check HAVE_UNISTD_H before including
1822         <unistd.h>.
1823
1824 2013-07-01  Pedro Alves  <palves@redhat.com>
1825
1826         Import the "unistd" gnulib module.
1827         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
1828         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
1829         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
1830         import/m4/unistd_h.m4.
1831         * gnulib/aclocal.m4: Renenerate.
1832         * gnulib/config.in: Renenerate.
1833         * gnulib/configure: Renenerate.
1834         * gnulib/import/Makefile.am: Renenerate.
1835         * gnulib/import/Makefile.in: Renenerate.
1836         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
1837         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
1838         * gnulib/import/m4/off_t.m4: New file.
1839         * gnulib/import/m4/ssize_t.m4: New file.
1840         * gnulib/import/m4/sys_types_h.m4: New file.
1841         * gnulib/import/m4/unistd_h.m4: New file.
1842         * gnulib/import/sys_types.in.h: New file.
1843         * gnulib/import/unistd.c: New file.
1844         * gnulib/import/unistd.in.h: New file.
1845
1846 2013-07-01  Pedro Alves  <palves@redhat.com>
1847
1848         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
1849         defined instead of checking HAVE_UNISTD_H.
1850
1851 2013-07-01  Pedro Alves  <palves@redhat.com>
1852
1853         Reimport gnulib from scratch.
1854         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
1855         import/m4/onceonly.m4.
1856         * gnulib/aclocal.m4: Renegerate.
1857         * gnulib/config.in: Renegerate.
1858         * gnulib/configure: Renegerate.
1859         * gnulib/import/Makefile.in: Renegerate.
1860         * gnulib/import/extra/update-copyright: Renegerate.
1861         * gnulib/import/m4/onceonly.m4: Delete.
1862
1863 2013-07-01  Pedro Alves  <palves@redhat.com>
1864
1865         * tui/tui-regs.c (pagination_enabled): Delete declaration.
1866
1867 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1868
1869         Code cleanup.
1870         * remote.c (async_remote_interrupt_twice): Make it static.
1871         * remote.h (async_remote_interrupt_twice): Remove the declaration.
1872
1873 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
1874
1875         * ia64-linux-tdep.c: Include <ctype.h>.
1876         (ia64_linux_stap_is_single_operand): New function.
1877         (ia64_linux_init_abi): Initialize SystemTap related attributes.
1878
1879 2013-06-28  Tom Tromey  <tromey@redhat.com>
1880
1881         * Makefile.in (version.c): Use version.in, not
1882         common/version.in.
1883         * common/create-version.sh: Likewise.
1884         * common/version.in: Move...
1885         * version.in: ...here.
1886
1887 2013-06-28  Pedro Alves  <palves@redhat.com>
1888
1889         * infrun.c (set_observer_mode): Don't declare pagination_enabled
1890         here.
1891         * utils.h (pagination_enabled): Declare.
1892
1893 2013-06-28  Pedro Alves  <palves@redhat.com>
1894
1895         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
1896         Move higher up in file.
1897
1898 2013-06-28  Tom Tromey  <tromey@redhat.com>
1899
1900         * tracepoint.c (deprecated_readline_begin_hook)
1901         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
1902         declare.
1903
1904 2013-06-28  Pedro Alves  <palves@redhat.com>
1905
1906         PR tui/14880
1907         * tui/tui-regs.c (tui_get_register): Fetch value contents before
1908         checking if they're available.
1909         * value.c (value_available_contents_eq): Change comment.
1910         * value.h (value_available_contents_eq): Expand comment.
1911
1912 2013-06-27  Tom Tromey  <tromey@redhat.com>
1913
1914         * target.c (find_run_target): Remove.
1915         * target.h (find_run_target): Remove.
1916
1917 2013-06-27  Tom Tromey  <tromey@redhat.com>
1918
1919         * corelow.c (core_gdbarch): Now static.
1920
1921 2013-06-27  Tom Tromey  <tromey@redhat.com>
1922
1923         * target.c (target_struct_index): Remove.
1924
1925 2013-06-27  Pedro Alves  <palves@redhat.com>
1926
1927         * infrun.c: Remove comment describing the 'stepping over runtime
1928         loader dynamic symbol resolution code' mechanism; moved to
1929         gdbint.texinfo.
1930
1931 2013-06-27  Pedro Alves  <palves@redhat.com>
1932
1933         * exceptions.c (catch_command_errors): Remove spurious space.
1934         * exceptions.h (catch_command_errors): Second parameter is "arg",
1935         not "command".
1936
1937 2013-06-27  Yao Qi  <yao@codesourcery.com>
1938
1939         * common/create-version.sh: Update comments.  Handle the case
1940         that TARGET_ALIAS is empty.
1941
1942 2013-06-26  Pedro Alves  <palves@redhat.com>
1943
1944         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
1945         comment.
1946
1947 2013-06-26  Pedro Alves  <palves@redhat.com>
1948
1949         * infrun.c: Update comments on stepping over runtime loader
1950         dynamic symbol resolution code.
1951
1952 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
1953
1954         * ax-gdb.h (union exp_element): Forward declare.
1955         * parser-defs.h: Include expression.h.
1956
1957 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
1958
1959         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
1960
1961 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
1962
1963         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
1964
1965 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
1966
1967         Fix trace-status to output proper start-time and stop-time.
1968         * tracepoint.c (trace_status_command): Fix type of printf arg to
1969         prevent improper type conversion.
1970         (trace_status_mi): Likewise.
1971
1972 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
1973
1974         * mips-tdep.c (mips_next_pc): Fix a typo.
1975
1976 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
1977
1978         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
1979
1980 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
1981             Yao Qi  <yao@codesourcery.com>
1982
1983         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
1984         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
1985         * mi/mi-main.c (print_variable_or_computed): New function.
1986         (mi_cmd_trace_frame_collected): New function.
1987         * tracepoint.c (find_trace_state_variable_by_number): New.
1988         (struct traceframe_info): Move to tracepoint.h
1989         (struct collection_list): Likewise.
1990         (do_collect_symbol): Include locals and arguments in the
1991         collected variables list.
1992         (clear_collection_list): Clear wholly collected variables list
1993         and computed variables list.
1994         (append_exp): New function.
1995         (encode_actions_1): Include variables in the wholly
1996         collected variables list.  Include memory ranges and
1997         full-fledged expressions in the computed expressions list.
1998         (encode_actions): Move some code to ...
1999         Return the cleanup chain.
2000         (encode_actions_rsp): ... here.  New function.
2001         (get_traceframe_location, get_traceframe_info): Remove static.
2002         * tracepoint.h (struct memrange): Moved from tracepoint.c.
2003         (struct collection_list): Moved from tracepoint.c.  Add two
2004         new fields 'wholly_collected' and 'computed'.
2005         (find_trace_state_variable_by_number): Declare.
2006         (encode_actions): Adjust declaration.
2007         (encode_actions_rsp): Declare.
2008         (get_traceframe_info, get_traceframe_location): Declare.
2009
2010         * NEWS: Mention new MI command -trace-frame-collected.
2011
2012 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
2013             Yao Qi  <yao@codesourcery.com>
2014
2015         * ctf.c (ctf_traceframe_info): Push trace state variables
2016         present in the trace data into the traceframe info object.
2017         * breakpoint.c (DEF_VEC_I): Remove.
2018         * common/filestuff.c (DEF_VEC_I): Likewise.
2019         * dwarf2loc.c (DEF_VEC_I): Likewise.
2020         * mi/mi-main.c (DEF_VEC_I): Likewise.
2021         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2022         * features/traceframe-info.dtd: Add tvar element and its
2023         attributes.
2024         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2025         (build_traceframe_info): Push trace state variables present in
2026         the trace data into the traceframe info object.
2027         (traceframe_info_start_tvar): New function.
2028         (tvar_attributes): New.
2029         (traceframe_info_children): Add "tvar" element.
2030         * tracepoint.h (struct traceframe_info) <tvars>: New field.
2031
2032         * NEWS: Mention the change in GDB and GDBserver.
2033
2034 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
2035             Yao Qi  <yao@codesourcery.com>
2036
2037         * tracepoint.c (trace_dump_command): Move code to ...
2038         (get_traceframe_location): ... here.  New.
2039
2040 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
2041             Yao Qi  <yao@codesourcery.com>
2042
2043         * tracepoint.c (trace_dump_command): GDB emits an error
2044          instead of a warning when a traceframe is not selected.
2045
2046 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
2047             Yao Qi  <yao@codesourcery.com>
2048
2049         * tracepoint.c (tracepoint_list, stepping_list): Remove.
2050         (clear_collection_list): Free fields 'aexpre_list' and 'list'
2051         in collection_list.
2052         (do_clear_collection_list, init_collection_list): New.
2053         (encode_actions): Add local variables 'tracepoint_list' and
2054         'stepping_list'.  Call init_collection_list and make cleanup
2055         which calls do_clear_collection_list.  Don't call
2056         clear_collection_list.
2057         (_initialize_tracepoint): Delete references to
2058         'tracepoint_list' and 'stepping_list'.
2059
2060 2013-06-25  Tom Tromey  <tromey@redhat.com>
2061
2062         * common/create-version.sh (date): Use "$", not "$$" in sed
2063         expression.
2064
2065 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
2066
2067         * NEWS (New targets): Add entry for TI MSP430.
2068
2069 2013-06-25  Yao Qi  <yao@codesourcery.com>
2070
2071         * remote.c (remote_start_remote): Move code to upload tsv
2072         earlier.
2073
2074 2013-06-25  Yao Qi  <yao@codesourcery.com>
2075             Hui Zhu  <hui@codesourcery.com>
2076             Pedro Alves  <palves@redhat.com>
2077
2078         PR breakpoints/15075
2079         PR breakpoints/15434
2080         * breakpoint.c (bpstat_stop_status): Call
2081         b->ops->after_condition_true.
2082         (update_dprintf_command_list): Don't append "continue" command
2083         to the command list of dprintf breakpoint.
2084         (base_breakpoint_after_condition_true): New function.
2085         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2086         (dprintf_after_condition_true): New function.
2087         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2088         * breakpoint.h (breakpoint_ops): Add after_condition_true.
2089
2090 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
2091
2092         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2093         (ALLDEPFILES): Add msp430-tdep.c.
2094         * configure.tgt (msp430*-*-elf): New target.
2095         * msp430-tdep.c: New file.
2096
2097 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
2098
2099         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2100         microMIPS synthetic symbols.
2101
2102 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
2103
2104         * objfiles.h (pc_in_section): New prototype.
2105         (in_plt_section): Remove name argument, replace prototype with
2106         static inline function.
2107         * mips-tdep.h: Include "objfiles.h".
2108         (in_mips_stubs_section): New function.
2109         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2110         in_solib_call_trampoline member.
2111         (hppa_in_solib_call_trampoline): Remove name argument.
2112         * objfiles.c (pc_in_section): New function.
2113         (in_plt_section): Remove function.
2114         * mips-linux-tdep.c: Include "objfiles.h".
2115         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
2116         name argument.  Return 1 rather than the low 16-bit halfword of
2117         any instruction examined.
2118         (mips_linux_in_dynsym_resolve_code): Update
2119         mips_linux_in_dynsym_stub call accordingly.
2120         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2121         rather than an equivalent hand-coded sequence.
2122         * hppa-hpux-tdep.c (in_opd_section): Remove function.
2123         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2124         (hppa64_hpux_in_solib_call_trampoline): Likewise.
2125         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2126         in_opd_section.
2127         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2128         on call to tdep->in_solib_call_trampoline.
2129         (hppa_in_solib_call_trampoline): Remove name argument, update
2130         according to in_plt_section change.
2131         (hppa_skip_trampoline_code): Update according to in_plt_section
2132         change.
2133         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2134         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2135         Likewise.
2136         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2137         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2138         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2139         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2140         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2141         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2142         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2143         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2144         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2145         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2146         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2147         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2148         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2149
2150 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
2151
2152         * common/create-version.sh: Fix expansion of $host_alias
2153         and $target_alias in generation of HOST_NAME and TARGET_NAME
2154         (resp.).
2155
2156 2013-06-24  Tom Tromey  <tromey@redhat.com>
2157
2158         * common/create-version.sh: New file.
2159         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2160         create-version.sh.
2161         (HFILES_NO_SRCDIR): Use common/version.h.
2162         * version.in: Move to ...
2163         * common/version.in: ... here.  Replace date with "DATE".
2164         * version.h: Move to ...
2165         * common/version.h: ... here.
2166
2167 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
2168
2169         * gdb/gnulib/Makefile.in: Update date in copyright header.
2170         * gdb/gnulib/configure.ac: Ditto.
2171         * gdb/gnulib/update-gnulib.sh: Ditto.
2172
2173 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
2174
2175         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2176         "gdb/gnulib/import".
2177
2178 2013-06-21  Will Newton  <will.newton@linaro.org>
2179
2180         * doublest.c (ldfrexp): Remove function.
2181         (convert_doublest_to_floatformat): Call frexpl instead of
2182         ldfrexp.
2183
2184 2013-06-21  Will Newton  <will.newton@linaro.org>
2185
2186         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2187         * gnulib/aclocal.m4: Regenerate.
2188         * gnulib/config.in: Regenerate.
2189         * gnulib/configure: Regenerate.
2190         * gnulib/import/Makefile.am: Update.
2191         * gnulib/import/Makefile.in: Update.
2192         * gnulib/import/m4/gnulib-cache.m4: Update.
2193         * gnulib/import/m4/gnulib-comp.m4: Update.
2194         * gnulib/import/float+.h: Import.
2195         * gnulib/import/float.c: Import.
2196         * gnulib/import/float.in.h: Import.
2197         * gnulib/import/fpucw.h: Import.
2198         * gnulib/import/frexp.c: Import.
2199         * gnulib/import/frexpl.c: Import.
2200         * gnulib/import/isnan.c: Import.
2201         * gnulib/import/isnand-nolibm.h: Import.
2202         * gnulib/import/isnand.c: Import.
2203         * gnulib/import/isnanl-nolibm.h: Import.
2204         * gnulib/import/isnanl.c: Import.
2205         * gnulib/import/itold.c: Import.
2206         * gnulib/import/m4/exponentd.m4: Import.
2207         * gnulib/import/m4/exponentl.m4: Import.
2208         * gnulib/import/m4/float_h.m4: Import.
2209         * gnulib/import/m4/fpieee.m4: Import.
2210         * gnulib/import/m4/frexp.m4: Import.
2211         * gnulib/import/m4/frexpl.m4: Import.
2212         * gnulib/import/m4/isnand.m4: Import.
2213         * gnulib/import/m4/isnanl.m4: Import.
2214         * gnulib/import/m4/math_h.m4: Import.
2215         * gnulib/import/math.c: Import.
2216         * gnulib/import/math.in.h: Import.
2217
2218 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2219
2220         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2221         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2222         signature_INTEL_edx comparisons.
2223
2224 2013-06-20  Doug Evans  <dje@google.com>
2225
2226         symtab/15652
2227         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2228         All callers updated.
2229         (open_dwp_file): If we can't find the dwp file, search the basename
2230         in debug-file-directory.
2231
2232         * dwarf2read.c (struct dwp_file): Fix comment.
2233         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2234
2235         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2236         better.
2237
2238 2013-06-20  Yao Qi  <yao@codesourcery.com>
2239
2240         * breakpoint.c (create_breakpoint): Fix code indentation.
2241
2242 2013-06-20  Yao Qi  <yao@codesourcery.com>
2243
2244         * breakpoint.c (create_breakpoints_sal_default): Remove
2245         parameter 'lsal'.  Update declaration.
2246         (bkpt_create_breakpoints_sal): Caller update.
2247         (tracepoint_create_breakpoints_sal): Likewise.
2248
2249 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
2250             Yao Qi  <yao@codesourcery.com>
2251
2252         * NEWS: Mention the new option '--skip-unavailable' of command
2253         -data-list-register-values.
2254         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2255         --skip-unavailable option.  Adjust to use output_register.
2256         (output_register): Add new 'skip_unavailable' parameter.
2257         Handle it.
2258
2259 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
2260
2261         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2262         common/i386-gcc-cpuid.h.
2263         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2264         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2265         Copy the latest version from upstream gcc.
2266         * common/linux-btrace.c: Include i386-cpuid.h.
2267         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2268         call to i386_cpuid.
2269         (cpu_supports_btrace): Likewise.
2270         * go32-nat.c: Include i386-cpuid.h.
2271         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2272
2273 2013-06-19  Doug Evans  <dje@google.com>
2274
2275         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
2276         (get_section_index): Ditto.
2277
2278 2013-06-19  Tom Tromey  <tromey@redhat.com>
2279
2280         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
2281         "dprintf" help.
2282
2283 2013-06-18  Doug Evans  <dje@google.com>
2284
2285         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
2286         before using it.
2287         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
2288         Move test of cu_index closer to use.  Print complaint if cu_index
2289         is bad.
2290
2291 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
2292
2293         * machoread.c (oso_vector): Delete this global.
2294         (macho_register_oso): Add new parameter "oso_vector_ptr".
2295         Use it instead of the "oso_vector" global.
2296         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
2297         (macho_symfile_read): Use a local oso_vector, to be free'ed
2298         at the end of this function, in place of the old "oso_vector"
2299         global.  Update various function calls accordingly.  Use one
2300         single cleanup chain for the entire function.
2301
2302 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
2303
2304         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
2305         DWARF2_PER_OBJFILE by uses of DATA instead.
2306
2307 2013-06-18  Tom Tromey  <tromey@redhat.com>
2308
2309         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
2310         argument.
2311         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
2312         Special case signals other than GDB_SIGNAL_TRAP.
2313         (explains_signal_watchpoint): New function.
2314         (base_breakpoint_explains_signal): Add 'sig' argument.
2315         (initialize_breakpoint_ops): Set 'explains_signal' method for
2316         watchpoints.
2317         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
2318         signal argument.
2319         (bpstat_explains_signal): Likewise.
2320         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
2321
2322 2013-06-18  Tom Tromey  <tromey@redhat.com>
2323
2324         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2325
2326 2013-06-18  Tom Tromey  <tromey@redhat.com>
2327
2328         * python/python.c (finish_python_initialization): Decref
2329         'pythondir' on failure path as well.
2330
2331 2013-06-18  Tom Tromey  <tromey@redhat.com>
2332
2333         PR symtab/15391:
2334         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
2335         after taking bits_to_skip into account.  Sign extend byte_offset.
2336         * utils.h (gdb_sign_extend): Declare.
2337         * utils.c (gdb_sign_extend): New function.
2338
2339 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
2340
2341         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
2342
2343 2013-06-17  Pierre Muller  <muller@sourceware.org>
2344
2345         * corelow.c (core_open): Print GDB signal name instead of target
2346         signal number.
2347
2348 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
2349
2350         * .gitignore: Add /gcore.
2351
2352 2013-06-13  Doug Evans  <dje@google.com>
2353
2354         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
2355         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
2356
2357 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
2358
2359         * stack.c (backtrace_command_1): Fix indentation.
2360
2361 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
2362
2363         * window-nat.c (thread_rec): Add missing empty line after
2364         local variable declaration.
2365
2366 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
2367
2368         * windows-nat.c (thread_rec): Revert format used to print
2369         error code returned by SuspendThread from %d back to %u.
2370
2371 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
2372
2373         * windows-nat.c (windows_continue): Add "0x" prefix for thread
2374         ID in debug trace.
2375         (get_windows_debug_event): Likewise, for all debug traces.
2376
2377 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
2378
2379         * window-nat.c (thread_rec): Add thread ID in SuspendThread
2380         warning message.
2381
2382 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
2383             Yao Qi  <yao@codesourcery.com>
2384
2385         * mi/mi-main.c (get_register): Remove declaration.
2386         (output_register): Declare.
2387         (mi_cmd_data_list_register_values): Remove local variable
2388         'tuple_cleanup'.  Move some code into output_register.
2389         (get_register): Renamed to ...
2390         (output_register): ... this.  Output the register's
2391         "number" ui_out tuple here.
2392
2393 2013-06-07  Pedro Alves  <palves@redhat.com>
2394
2395         * darwin-nat.c: Fix formating in copyright header.
2396         * darwin-nat.h: Likewise.
2397         * gnu-nat.c: Likewise.
2398         * machoread.c: Likewise.
2399
2400 2013-06-07  Pedro Alves  <palves@redhat.com>
2401
2402         PR server/14823
2403         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
2404         static.  Output a global target description pointer.
2405         (init_registers_${name}): Adjust to initialize a
2406         target description structure.
2407
2408 2013-06-07  Will Newton  <will.newton@linaro.org>
2409
2410         * printcmd.c (build_address_symbolic): Call
2411         gdbarch_addr_bits_remove for text minimal symbols.
2412
2413 2013-06-07  Will Newton  <will.newton@linaro.org>
2414
2415         * MAINTAINERS: Add myself to Write After Approval.
2416
2417 2013-06-07  Yao Qi  <yao@codesourcery.com>
2418
2419         * tracepoint.c (start_tracing): Move code to ...
2420         (trace_reset_local_state): ... here.  New.
2421         (disconnect_tracing): Don't call set_current_traceframe,
2422         set_tracepoint_num, and set_traceframe_context. Call
2423         trace_reset_local_state instead.
2424         (tfile_close): Call trace_reset_local_state.
2425         * ctf.c (ctf_close): Likewise.
2426         * remote.c (remote_close): Likewise.
2427         * tracepoint.h (trace_reset_local_state): Declare.
2428
2429 2013-06-06  Doug Evans  <dje@google.com>
2430
2431         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
2432         and fix header docs.
2433
2434 2013-06-05  Doug Evans  <dje@google.com>
2435             Keith Seitz  <keiths@redhat.com>
2436
2437         PR 15519
2438         * cp-namespace.c (find_symbol_in_baseclass): Call
2439         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
2440         Check result of call to lookup_symbol_static.
2441         Call lookup_static_symbol_aux unconditionally.
2442         Call check_typedef on base types before accessing them.
2443         (cp_lookup_nested_symbol): Fix comment.
2444
2445 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
2446
2447         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
2448         minimal symbols pointing to function descriptors.
2449
2450 2013-06-05  Tom Tromey  <tromey@redhat.com>
2451
2452         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
2453
2454 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2455             Pedro Alves  <palves@redhat.com>
2456
2457         * remote.c (remote_wait_as): Restore signal handler before returning
2458         when GDB gets a notification.
2459
2460 2013-06-04  Gary Benson  <gbenson@redhat.com>
2461
2462         PR 2328
2463         * breakpoint.h (handle_solib_event): Moved function declaration
2464         to solib.h.
2465         * breakpoint.c (handle_solib_event): Moved function to solib.c.
2466         (bpstat_stop_status): Pass new argument to handle_solib_event.
2467         * solib.h (update_solib_breakpoints): New function declaration.
2468         (handle_solib_event): Moved function declaration from
2469         breakpoint.h.
2470         * solib.c (update_solib_breakpoints): New function.
2471         (handle_solib_event): Moved function from breakpoint.c.
2472         Updated to call solib_ops->handle_event if not NULL.
2473         * solist.h (target_so_ops): New fields "update_breakpoints" and
2474         "handle_event".
2475         * infrun.c (set_stop_on_solib_events): New function.
2476         (_initialize_infrun): Use the above for "set
2477         stop-on-solib-events".
2478         (handle_inferior_event): Pass new argument to handle_solib_event.
2479         * solib-svr4.c (probe.h): New include.
2480         (svr4_free_library_list): New forward declaration.
2481         (probe_action): New enum.
2482         (probe_info): New struct.
2483         (probe_info): New static variable.
2484         (NUM_PROBES): New definition.
2485         (svr4_info): New fields "using_xfer", "probes_table" and
2486         "solib_list".
2487         (free_probes_table): New function.
2488         (free_solib_list): New function.
2489         (svr4_pspace_data_cleanup): Free probes table and solib list.
2490         (svr4_copy_library_list): New function.
2491         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
2492         (svr4_read_so_list): New parameter "prev_lm".
2493         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
2494         (svr4_current_sos): New function.
2495         (probe_and_action): New struct.
2496         (hash_probe_and_action): New function.
2497         (equal_probe_and_action): Likewise.
2498         (register_solib_event_probe): Likewise.
2499         (solib_event_probe_at): Likewise.
2500         (solib_event_probe_action): Likewise.
2501         (solist_update_full): Likewise.
2502         (solist_update_incremental): Likewise.
2503         (disable_probes_interface_cleanup): Likewise.
2504         (svr4_handle_solib_event): Likewise.
2505         (svr4_update_solib_event_breakpoint): Likewise.
2506         (svr4_update_solib_event_breakpoints): Likewise.
2507         (svr4_create_solib_event_breakpoints): Likewise.
2508         (enable_break): Free probes table before creating breakpoints.
2509         Use svr4_create_solib_event_breakpoints to create breakpoints.
2510         (svr4_solib_create_inferior_hook): Free the solib list.
2511         (_initialize_svr4_solib): Initialise
2512         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
2513
2514 2013-06-04  Gary Benson  <gbenson@redhat.com>
2515
2516         * target.h (target_ops): New field
2517         "to_augmented_libraries_svr4_read".
2518         (target_augmented_libraries_svr4_read): New macro.
2519         * target.c (update_current_target): Handle
2520         to_augmented_libraries_svr4_read.
2521         * remote.c (remote_state): New field
2522         "augmented_libraries_svr4_read".
2523         (remote_augmented_libraries_svr4_read_feature): New function.
2524         (remote_protocol_features): Add entry for
2525         "augmented-libraries-svr4-read".
2526         (remote_augmented_libraries_svr4_read): New function.
2527         (init_remote_ops): Initialize
2528         remote_ops.to_augmented_libraries_svr4_read.
2529
2530 2013-06-04  Gary Benson  <gbenson@redhat.com>
2531
2532         * NEWS: Update.
2533
2534 2013-06-04  Gary Benson  <gbenson@redhat.com>
2535
2536         * objfiles.h (inhibit_section_map_updates): New function
2537         declaration.
2538         (resume_section_map_updates): Likewise.
2539         (resume_section_map_updates_cleanup): Likewise.
2540         * objfiles.c (objfile_pspace_info): Removed field
2541         "objfiles_changed_p".  New fields "new_objfiles_available",
2542         "section_map_dirty" and "inhibit_updates".
2543         (allocate_objfile): Set new_objfiles_available.
2544         (free_objfile): Set section_map_dirty.
2545         (objfile_relocate1): Likewise.
2546         (in_plt_section): Likewise.
2547         (find_pc_section): Update the conditions under which the
2548         section map will be updated.
2549         (inhibit_section_map_updates): New function.
2550         (resume_section_map_updates): Likewise.
2551         (resume_section_map_updates_cleanup): Likewise.
2552
2553 2013-06-04  Gary Benson  <gbenson@redhat.com>
2554
2555         * probe.h (get_probe_argument_count): New declaration.
2556         (evaluate_probe_argument): Likewise.
2557         * probe.c (get_probe_argument_count): New function.
2558         (evaluate_probe_argument): Likewise.
2559         (probe_safe_evaluate_at_pc): Use the above new functions.
2560
2561 2013-06-04  Alan Modra  <amodra@gmail.com>
2562
2563         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2564         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
2565         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
2566         target mem reads on optional insns.
2567         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
2568         ppc_insns_match_pattern calls.
2569         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
2570         Add match for power7 thread safety insns, and new order of
2571         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
2572         invocation in comment, and update rest of comment.
2573         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
2574         PPC64_STANDARD_LINKAGE3_LEN): Delete.
2575         (ppc64_standard_linkage2_target): Update insn offsets.
2576         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
2577         stubs first.  Update calls.
2578
2579 2013-06-04  Yao Qi  <yao@codesourcery.com>
2580
2581         * solib.c (solib_find): Don't need dir separator if path has
2582         drive spec.
2583
2584 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
2585
2586         Revert (indirectly causes a SIGSEGV):
2587         * machoread.c (macho_symfile_read): Assign first cleanup to
2588         'back_to'.
2589
2590 2013-06-03  Yao Qi  <yao@codesourcery.com>
2591
2592         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
2593         mi-parse.c.  Make them static.
2594         (mi_all_values): Likewise.
2595         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
2596         mi_parse_print_values.  Make it external.
2597         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
2598         Remove the declarations.
2599         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
2600         * mi/mi-parse.h (mi_parse_print_values): Declare.
2601         * mi/mi-cmd-stack.c: Include mi-parse.h.
2602         (parse_print_values): Remove
2603         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
2604         of parse_print_values.
2605         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
2606
2607 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
2608             Yao Qi  <yao@codesourcery.com>
2609
2610         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
2611         (encode_actions): Move code to ...
2612         (all_tracepoint_actions_and_cleanup): ... here.  New.
2613         (trace_dump_command): Likewise.
2614
2615 2013-05-30  Tom Tromey  <tromey@redhat.com>
2616
2617         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
2618
2619 2013-05-30  Tom Tromey  <tromey@redhat.com>
2620
2621         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
2622         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
2623         'old_chain' argument.  Add 'parser_result' argument.
2624         (gdb_xml_create_parser_and_cleanup): Remove old version.
2625         (gdb_xml_parse_quick): Update.
2626         (xml_process_xincludes): Update.
2627         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
2628         declare.
2629
2630 2013-05-30  Tom Tromey  <tromey@redhat.com>
2631
2632         * probe.c (collect_probes): Check arguments for NULL before
2633         calling compile_rx_or_error.
2634         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
2635         Remove NULL return.
2636
2637 2013-05-30  Tom Tromey  <tromey@redhat.com>
2638
2639         * infrun.c (adjust_pc_after_break): Introduce an outer null
2640         cleanup.
2641
2642 2013-05-30  Tom Tromey  <tromey@redhat.com>
2643
2644         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
2645
2646 2013-05-30  Tom Tromey  <tromey@redhat.com>
2647
2648         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
2649         for 'old_chain'.  Do not check 'head' before processing
2650         cleanups.
2651
2652 2013-05-30  Tom Tromey  <tromey@redhat.com>
2653
2654         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
2655         "cleanup_tuple".
2656
2657 2013-05-30  Tom Tromey  <tromey@redhat.com>
2658
2659         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
2660         inner scope.  Unconditionally call do_cleanups.
2661
2662 2013-05-30  Tom Tromey  <tromey@redhat.com>
2663
2664         * source.c (find_and_open_source): Call do_cleanups.
2665
2666 2013-05-30  Tom Tromey  <tromey@redhat.com>
2667
2668         * linux-thread-db.c (thread_db_load_search): Unconditionally
2669         call do_cleanups.
2670
2671 2013-05-30  Tom Tromey  <tromey@redhat.com>
2672
2673         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
2674         for 'cleanup'; instead use a later one.
2675
2676 2013-05-30  Tom Tromey  <tromey@redhat.com>
2677
2678         * python/py-breakpoint.c (bppy_get_commands): Use
2679         explicit, unconditional return.
2680         * python/py-frame.c (frapy_read_var): Likewise.
2681         * python/python.c (gdbpy_decode_line): Likewise.
2682
2683 2013-05-30  Tom Tromey  <tromey@redhat.com>
2684
2685         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
2686         do_cleanups on all return paths.
2687
2688 2013-05-30  Tom Tromey  <tromey@redhat.com>
2689
2690         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
2691
2692 2013-05-30  Tom Tromey  <tromey@redhat.com>
2693
2694         * stabsread.c (read_struct_type): Call do_cleanups along
2695         all return paths.
2696
2697 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
2698
2699         * mips-linux-tdep.c: Adjust formatting throughout.
2700
2701 2013-05-30  Tom Tromey  <tromey@redhat.com>
2702
2703         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
2704         along all return paths.
2705
2706 2013-05-30  Tom Tromey  <tromey@redhat.com>
2707
2708         * symfile.c (find_separate_debug_file): Call do_cleanups
2709         along all return paths.
2710
2711 2013-05-30  Tom Tromey  <tromey@redhat.com>
2712
2713         * symtab.c (search_symbols): Introduce a null cleanup for
2714         'retval_chain'.
2715
2716 2013-05-30  Tom Tromey  <tromey@redhat.com>
2717
2718         * python/py-value.c (valpy_binop): Call do_cleanups before
2719         exiting loop.
2720
2721 2013-05-30  Tom Tromey  <tromey@redhat.com>
2722
2723         * python/py-prettyprint.c (print_children): Remove extra
2724         do_cleanups call.
2725
2726 2013-05-30  Tom Tromey  <tromey@redhat.com>
2727
2728         * python/py-frame.c (frapy_read_var): Call do_cleanups along
2729         all return paths.
2730
2731 2013-05-30  Tom Tromey  <tromey@redhat.com>
2732
2733         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
2734         along all return paths.
2735
2736 2013-05-30  Tom Tromey  <tromey@redhat.com>
2737
2738         * cli/cli-logging.c (set_logging_redirect): Unconditionally
2739         call do_cleanups.
2740
2741 2013-05-30  Tom Tromey  <tromey@redhat.com>
2742
2743         * varobj.c (c_value_of_root): Call do_cleanups along all
2744         return paths.
2745
2746 2013-05-30  Tom Tromey  <tromey@redhat.com>
2747
2748         * tracepoint.c (trace_dump_command): Unconditionally call
2749         do_cleanups.
2750
2751 2013-05-30  Tom Tromey  <tromey@redhat.com>
2752
2753         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
2754         do_cleanups earlier.
2755
2756 2013-05-30  Tom Tromey  <tromey@redhat.com>
2757
2758         * machoread.c (macho_symfile_read): Assign first cleanup to
2759         'back_to'.
2760
2761 2013-05-30  Tom Tromey  <tromey@redhat.com>
2762
2763         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
2764
2765 2013-05-30  Tom Tromey  <tromey@redhat.com>
2766
2767         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
2768
2769 2013-05-30  Tom Tromey  <tromey@redhat.com>
2770
2771         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
2772         call discard_cleanups.
2773         (inf_ptrace_attach): Likewise.
2774
2775 2013-05-30  Tom Tromey  <tromey@redhat.com>
2776
2777         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
2778         return paths.
2779         (mips_initialize): Likewise.
2780         (common_open): Call do_cleanups.
2781
2782 2013-05-30  Tom Tromey  <tromey@redhat.com>
2783
2784         * utils.c (internal_vproblem): Call do_cleanups.
2785
2786 2013-05-30  Tom Tromey  <tromey@redhat.com>
2787
2788         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
2789
2790 2013-05-30  Tom Tromey  <tromey@redhat.com>
2791
2792         * cli/cli-script.c (setup_user_args): Don't return after error.
2793
2794 2013-05-30  Tom Tromey  <tromey@redhat.com>
2795
2796         * somread.c (som_symtab_read): Call do_cleanups.
2797
2798 2013-05-30  Tom Tromey  <tromey@redhat.com>
2799
2800         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
2801
2802 2013-05-30  Tom Tromey  <tromey@redhat.com>
2803
2804         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
2805         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
2806         * interps.c (interpreter_exec_cmd): Call do_cleanups.
2807         * source.c (show_substitute_path_command): Call do_cleanups.
2808         (unset_substitute_path_command, set_substitute_path_command):
2809         Likewise.
2810         * symfile.c (load_command): Call do_cleanups.
2811
2812 2013-05-30  Tom Tromey  <tromey@redhat.com>
2813
2814         * contrib/cleanup_check.py: New file.
2815         * contrib/gcc-with-excheck: Add option parsing.
2816
2817 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
2818
2819         * windows-nat.c (windows_delete_thread): Add missing space
2820         in cast expression.
2821
2822 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
2823
2824         * inferior.c (top level): Include tilde.h.
2825         (add_inferior_command): Call tilde_expand on the value of 'exec'
2826         argument.
2827
2828 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
2829             Yao Qi  <yao@codesourcery.com>
2830
2831         * tracepoint.c (encode_actions_1): Remove parameter 't'.
2832         Caller update.
2833         (encode_actions): Likewise.
2834         * remote.c (remote_download_tracepoint): Caller update.
2835         * tracepoint.h (encode_actions): Update declaration.
2836
2837 2013-05-30  Pedro Alves  <palves@redhat.com>
2838
2839         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
2840         pointer.
2841
2842 2013-05-30  Yao Qi  <yao@codesourcery.com>
2843
2844         * remote.c (remote_check_symbols): Remove unused parameter
2845         'objfile'.
2846         Declaration update.
2847         (remote_start_remote, remote_new_objfile): Caller update.
2848
2849 2013-05-30  Yao Qi  <yao@codesourcery.com>
2850
2851         * mi/mi-cmds.c (mi_cmds): Define MI command
2852         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
2853         DEF_MI_CMD_CLI.
2854
2855 2013-05-29  Pedro Alves  <palves@redhat.com>
2856
2857         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
2858         (remote_insert_watchpoint, remote_remove_watchpoint)
2859         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
2860         (remote_verify_memory, compare_sections_command)
2861         (remote_search_memory): Set the general process/thread on the
2862         remote side.
2863
2864 2013-05-29  Pedro Alves  <palves@redhat.com>
2865
2866         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
2867         (_initialize_aarch64_tdep): Don't call
2868         initialize_tdesc_aarch64_without_fpu.
2869         * features/Makefile (WHICH): Remove reference to
2870         aarch64-without-fpu.
2871         * features/aarch64-without-fpu.c: Delete file.
2872         * regformats/aarch64-without-fpu.dat: Delete file.
2873
2874 2013-05-28  Yao Qi  <yao@codesourcery.com>
2875
2876         * tracepoint.c (stringify_collection_list): Remove parameter
2877         'string'.
2878         (encode_actions): Caller update.  Remove local variables.
2879
2880 2013-05-24  Yao Qi  <yao@codesourcery.com>
2881
2882         * tracepoint.c (TFILE_PID): Remove.
2883         (tfile_open): Don't add thread and inferior.
2884         (tfile_close): Don't set 'inferior_ptid'.  Don't call
2885         exit_inferior_silent.
2886         (tfile_thread_alive): Remove.
2887         (init_tfile_ops): Don't set field 'to_thread_alive' of
2888         tfile_ops.
2889
2890 2013-05-23  Doug Evans  <dje@google.com>
2891
2892         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
2893
2894 2013-05-23  Pedro Alves  <palves@redhat.com>
2895
2896         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
2897         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
2898         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
2899         Only define if HAVE_SOCKETS is defined.
2900         * configure.ac: Check for sys/socket.h.
2901         * config.in, configure: Regenerate.
2902
2903 2013-05-23  Pedro Alves  <palves@redhat.com>
2904
2905         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
2906         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
2907         printing uint32_t variables.
2908
2909 2013-05-23  Pedro Alves  <palves@redhat.com>
2910
2911         * NEWS: Mention GDBserver range stepping support.
2912
2913 2013-05-23  Yao Qi  <yao@codesourcery.com>
2914             Pedro Alves  <palves@redhat.com>
2915
2916         * gdbthread.h (struct thread_control_state) <may_range_step>: New
2917         field.
2918         * infcmd.c (step_once, until_next_command): Enable range stepping.
2919         * infrun.c (displaced_step_prepare): Disable range stepping.
2920         (resume): Disable range stepping if stepping over a breakpoint or
2921         we have software watchpoints.  If range stepping is enabled,
2922         assert the thread is in the stepping range.
2923         (clear_proceed_status_thread): Clear may_range_step.
2924         (handle_inferior_event): Disable range stepping as soon as we know
2925         the thread that hit the event.  Re-enable it whenever we're going
2926         to step with a step range.
2927         * remote.c (struct vCont_action_support) <r>: New field.
2928         (use_range_stepping): New global.
2929         (remote_vcont_probe): Handle 'r' action.
2930         (append_resumption): Append an 'r' action if the thread may range
2931         step.
2932         (show_range_stepping): New function.
2933         (set_range_stepping): New function.
2934         (_initialize_remote): Call add_setshow_boolean_cmd to register the
2935         'set range-stepping' and 'show range-stepping' commands.
2936         * NEWS: Mention range stepping, the new vCont;r action, and the
2937         new "set/show range-stepping" commands.
2938
2939 2013-05-23  Yao Qi  <yao@codesourcery.com>
2940             Pedro Alves  <palves@redhat.com>
2941
2942         * remote.c (struct vCont_action_support): New struct.
2943         (struct remote_state) <support_vCont_t>: Remove field.
2944         <vCont_actions_support>: New field.
2945         (remote_vcont_probe, remote_stop_ns): Update.
2946
2947 2013-05-23  Yao Qi  <yao@codesourcery.com>
2948             Pedro Alves  <palves@redhat.com>
2949
2950         * gdbthread.h (pc_in_thread_step_range): New declaration.
2951         * thread.c (pc_in_thread_step_range): New function.
2952         * infrun.c (handle_inferior_event): Use it.
2953
2954 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
2955
2956         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
2957         of sprintf.
2958
2959 2013-05-22  Keith Seitz  <keiths@redhat.com>
2960
2961         * ada-lang.c (is_known_support_routine): Add explicit free of
2962         'func_name' from find_frame_funname.
2963         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
2964         for func_name from find_frame_funname.
2965         * python/py-frame.c (frapy_name): Add explicit free of
2966         'name' from find_frame_funname.
2967         * stack.c (find_frame_funname): Add comment explaining that
2968         funcp must be freed by the caller.
2969         Return copy of symbol names instead of pointers.
2970         (print_frame): Add a cleanup for 'funname' from
2971         find_frame_funname.
2972         * stack.h (find_frame_funname): Remove "const" from
2973         'funname' parameter.
2974
2975 2013-05-22  Tom Tromey  <tromey@redhat.com>
2976
2977         PR c++/15401:
2978         * c-valprint.c (c_value_print): Use value_addr for
2979         references.  Convert back to reference type with value_ref.
2980
2981 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
2982
2983         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
2984         unloaded DLL, it will be done by handle_solib_event.  See
2985         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
2986         details.
2987
2988 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
2989
2990         * ui-out.c: Create typedef ui_out_level_p and define vector
2991         operations for that type.
2992         (struct ui_out): Use a vector instead of an array.
2993         (current_level): Return level from a vector.
2994         (push_level): Create a level in a vector.
2995         (pop_level): Delete a level in a vector.
2996         (ui_out_new): Create initial level zero level, and store in a
2997         vector.
2998         (ui_out_destroy): Add vector cleanup.
2999
3000 2013-05-22  Pedro Alves  <palves@redhat.com>
3001
3002         * python/python-internal.h (gdb_Py_DECREF): Tag with
3003         "ARI: editCase function".
3004
3005 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
3006
3007         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3008
3009 2013-05-21  Pedro Alves  <palves@redhat.com>
3010
3011         * python/py-prettyprint.c (apply_val_pretty_printer): Check
3012         whether PRINTER is NULL before installing a Py_DECREF cleanup.
3013         * python/py-utils.c (py_decref): Don't check for NULL before
3014         calling Py_DECREF.
3015
3016 2013-05-21  Pedro Alves  <palves@redhat.com>
3017
3018         * python/py-utils.c (py_decref): Remove extra braces.
3019         (gdb_pymodule_addobject): Remove extra braces.
3020         * python-internal.h (gdb_Py_DECREF): New static inline function.
3021         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3022
3023 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3024
3025         * breakpoints.c (detach_breakpoints): Do not
3026         detach breakpoints locations with loc_type bp_loc_other.
3027
3028 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3029
3030         Workaround Python 2.6.
3031         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3032         a block.
3033
3034 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3035
3036         Code cleanup: constification.
3037         * solib.c (solib_ops): Make return type and ops variable type const.
3038         (set_solib_ops): Make the new_ops parameter and ops variable const.
3039         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3040         (solib_add, solib_keep_data_in_core, clear_solib)
3041         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3042         (reload_shared_libraries, solib_global_lookup): Make the ops variable
3043         const.
3044         * solib.h (set_solib_ops): Make the new_ops parameter const.
3045
3046 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
3047
3048         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3049         variable.
3050         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3051         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3052         (SYSTEM_GDBINIT_FILES): New variables.
3053         (all): Add stamp-system-gdbinit.
3054         (stamp-system-gdbinit): New rule.
3055         (clean-system-gdbinit, install-system-gdbinit)
3056         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
3057         (install-only): Add dependency on install-system-gdbinit.
3058         (uninstall): Add dependency on uninstall-system-gdbinit.
3059         (clean): Add dependency on clean-system-gdbinit.
3060         * system-gdbinit/elinos.py: New file.
3061         * system-gdbinit/wrs-linux.py: New file.
3062
3063 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
3064
3065         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3066
3067 2013-05-21  Hui Zhu  <hui@codesourcery.com>
3068
3069         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3070         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3071         * mi/mi-cmd-break.c (ctype.h): New include.
3072         (gdb_obstack.h): New include.
3073         (mi_argv_to_format, mi_cmd_break_insert_1): New.
3074         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3075         (mi_cmd_dprintf_insert): New.
3076         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3077         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3078
3079 2013-05-20  Tom Tromey  <tromey@redhat.com>
3080
3081         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3082
3083 2013-05-20  Tom Tromey  <tromey@redhat.com>
3084
3085         * python/py-value.c (valpy_get_dynamic_type): Simplify
3086         dynamic_type assignment.  Use Py_XINCREF.
3087
3088 2013-05-20  Tom Tromey  <tromey@redhat.com>
3089
3090         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3091
3092 2013-05-20  Tom Tromey  <tromey@redhat.com>
3093
3094         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3095         (gdbpy_selected_frame): Move object-construction code
3096         out of TRY_CATCH.
3097
3098 2013-05-20  Tom Tromey  <tromey@redhat.com>
3099
3100         * python/py-arch.c (gdbpy_initialize_arch): Use
3101         gdb_pymodule_addobject.
3102         * python/py-block.c (gdbpy_initialize_blocks): Use
3103         gdb_pymodule_addobject.
3104         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3105         gdb_pymodule_addobject.
3106         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3107         gdb_pymodule_addobject.
3108         * python/py-event.c (gdbpy_initialize_event_generic): Use
3109         gdb_pymodule_addobject.
3110         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3111         gdb_pymodule_addobject.
3112         * python/py-evts.c (add_new_registry): Use
3113         gdb_pymodule_addobject.
3114         (gdbpy_initialize_py_events): Likewise.
3115         * python/py-finishbreakpoint.c
3116         (gdbpy_initialize_finishbreakpoints): Use
3117         gdb_pymodule_addobject.
3118         * python/py-frame.c (gdbpy_initialize_frames): Use
3119         gdb_pymodule_addobject.
3120         * python/py-function.c (gdbpy_initialize_functions): Use
3121         gdb_pymodule_addobject.
3122         * python/py-inferior.c (gdbpy_initialize_inferior): Use
3123         gdb_pymodule_addobject.
3124         * python/py-infthread.c (gdbpy_initialize_thread): Use
3125         gdb_pymodule_addobject.
3126         * python/py-objfile.c (gdbpy_initialize_objfile): Use
3127         gdb_pymodule_addobject.
3128         * python/py-param.c (gdbpy_initialize_parameters): Use
3129         gdb_pymodule_addobject.
3130         * python/py-progspace.c (gdbpy_initialize_pspace): Use
3131         gdb_pymodule_addobject.
3132         * python/py-symbol.c (gdbpy_initialize_symbols): Use
3133         gdb_pymodule_addobject.
3134         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3135         gdb_pymodule_addobject.
3136         * python/py-type.c (gdbpy_initialize_types): Use
3137         gdb_pymodule_addobject.
3138         * python/py-utils.c (gdb_pymodule_addobject): New function.
3139         * python/py-value.c (gdbpy_initialize_values): Use
3140         gdb_pymodule_addobject.
3141         * python/python-internal.h (gdb_pymodule_addobject): Declare.
3142         * python/python.c (_initialize_python): Use
3143         gdb_pymodule_addobject.
3144
3145 2013-05-20  Tom Tromey  <tromey@redhat.com>
3146
3147         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3148         * python/py-param.c (get_set_value, get_show_value): Use
3149         explicit decrefs.
3150         * python/python.c (start_type_printers, apply_type_printers):
3151         Use explicit decrefs.
3152
3153 2013-05-20  Tom Tromey  <tromey@redhat.com>
3154
3155         * python/py-evts.c (gdbpy_initialize_py_events): Don't
3156         incref the module.
3157
3158 2013-05-20  Tom Tromey  <tromey@redhat.com>
3159
3160         * python/python.c (gdbpy_run_events): Decref the result
3161         of PyObject_CallObject.
3162
3163 2013-05-20  Tom Tromey  <tromey@redhat.com>
3164
3165         * python/py-symtab.c (set_sal): Use
3166         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
3167         (symtab_and_line_to_sal_object): Update.
3168
3169 2013-05-20  Tom Tromey  <tromey@redhat.com>
3170
3171         * python/py-param.c (compute_enum_values): Decref 'item'.
3172
3173 2013-05-20  Tom Tromey  <tromey@redhat.com>
3174
3175         * mi/mi-main.c: Include python-internal.h.
3176         (mi_cmd_list_features): Check gdb_python_initialized.
3177         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3178         (python_inferior_exit, python_new_objfile, add_thread_object)
3179         (delete_thread_object, py_free_inferior): Check
3180         gdb_python_initialized.
3181         * python/py-prettyprint.c (apply_val_pretty_printer): Check
3182         gdb_python_initialized.
3183         * python/py-type.c (save_objfile_types): Check
3184         gdb_python_initialized.
3185         * python/python-internal.h (gdb_python_initialized): Declare.
3186         * python/python.c (ensure_python_env): Throw exception if
3187         Python not initialized.
3188         (before_prompt_hook, source_python_script_for_objfile)
3189         (start_type_printers, apply_type_printers,
3190         free_type_printers): Check gdb_python_initialized.
3191         * varobj.c (varobj_get_display_hint)
3192         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3193         (install_new_value_visualizer, varobj_set_visualizer)
3194         (value_get_print_value): Check gdb_python_initialized.
3195
3196 2013-05-20  Tom Tromey  <tromey@redhat.com>
3197
3198         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3199         Check errors.
3200         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3201         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3202         Check errors.
3203         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3204         Check errors.
3205         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3206         Check errors.
3207         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3208         Check errors.
3209         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3210         init function to return 'int'.
3211         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3212         Return 'int'.  Check errors.
3213         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3214         Check errors.
3215         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3216         Return 'int'.  Check errors.
3217         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3218         Check errors.
3219         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3220         Check errors.
3221         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3222         Check errors.
3223         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3224         Check errors.
3225         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3226         Check errors.
3227         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3228         Check errors.
3229         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3230         Check errors.
3231         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3232         Check errors.
3233         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3234         Check errors.
3235         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3236         Check errors.
3237         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3238         Check errors.
3239         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3240         Check errors.
3241         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3242         Check errors.
3243         * python/python-internal.h (gdbpy_initialize_auto_load,
3244         gdbpy_initialize_values, gdbpy_initialize_frames,
3245         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3246         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3247         gdbpy_initialize_blocks, gdbpy_initialize_types,
3248         gdbpy_initialize_functions, gdbpy_initialize_pspace,
3249         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3250         gdbpy_initialize_finishbreakpoints,
3251         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3252         gdbpy_initialize_thread, gdbpy_initialize_inferior,
3253         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3254         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3255         gdbpy_initialize_signal_event,
3256         gdbpy_initialize_breakpoint_event,
3257         gdbpy_initialize_continue_event,
3258         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3259         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3260         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3261         * python/python.c (gdb_python_initialized): New global.
3262         (gdbpy_initialize_events): Return 'int'.  Check errors.
3263         (_initialize_python): Check errors.  Set
3264         gdb_python_initialized.
3265
3266 2013-05-20  Tom Tromey  <tromey@redhat.com>
3267
3268         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3269         Decref the reslut of PyObject_CallMethod.
3270
3271 2013-05-20  Tom Tromey  <tromey@redhat.com>
3272
3273         * python/py-event.c (gdbpy_initialize_event_generic): Return
3274         early if PyType_Ready fails.
3275
3276 2013-05-20  Tom Tromey  <tromey@redhat.com>
3277
3278         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
3279         as 'default' in the switch.
3280
3281 2013-05-20  Tom Tromey  <tromey@redhat.com>
3282
3283         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
3284         get_addr_from_python calls out of TRY_CATCH.
3285         (infpy_write_memory, infpy_search_memory): Likewise.
3286         * python/py-utils.c (get_addr_from_python): Return negative
3287         value on error.  Use TRY_CATCH.
3288         * python/python-internal.h (get_addr_from_python): Use
3289         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3290
3291 2013-05-20  Tom Tromey  <tromey@redhat.com>
3292
3293         * python/py-event.c (evpy_emit_event): Decref the
3294         result of PyObject_CallFunctionObjArgs.
3295
3296 2013-05-20  Tom Tromey  <tromey@redhat.com>
3297
3298         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
3299         Correctly decref.
3300
3301 2013-05-20  Tom Tromey  <tromey@redhat.com>
3302
3303         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
3304
3305 2013-05-20  Tom Tromey  <tromey@redhat.com>
3306
3307         * python/py-event.h (gdbpy_initialize_event_generic): Use
3308         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3309         * python/py-evts.c (add_new_registry): Use
3310         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3311         * python/python-internal.h
3312         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
3313
3314 2013-05-20  Tom Tromey  <tromey@redhat.com>
3315
3316         * python/py-arch.c (archpy_disassemble): Update.
3317         * python/py-type.c (typy_get_composite, typy_lookup_typename)
3318         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
3319         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
3320         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
3321         macro.
3322         (GDB_PY_HANDLE_EXCEPTION): Update.
3323         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
3324
3325 2013-05-20  Tom Tromey  <tromey@redhat.com>
3326
3327         * python/python-internal.h (events_object_type): Remove.
3328
3329 2013-05-20  Tom Tromey  <tromey@redhat.com>
3330
3331         * python/py-event.h (evpy_emit_event): Use
3332         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3333         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3334         New macro.
3335
3336 2013-05-20  Tom Tromey  <tromey@redhat.com>
3337
3338         * py-evtregistry.c (create_event_object): Decref
3339         eventregistry_object if PyList_New fails.
3340
3341 2013-05-20  Tom Tromey  <tromey@redhat.com>
3342
3343         * py-cmd.c (gdbpy_string_to_argv): Check result of
3344         PyList_New.
3345
3346 2013-05-20  Tom Tromey  <tromey@redhat.com>
3347
3348         * python/python.c (before_prompt_hook): Add cleanup to
3349         decref 'hook'.
3350
3351 2013-05-20  Tom Tromey  <tromey@redhat.com>
3352
3353         * python/py-function.c (fnpy_init): Decref result of
3354         PyObject_GetAttrString.
3355
3356 2013-05-20  Tom Tromey  <tromey@redhat.com>
3357
3358         * python/py-threadevent.c (get_event_thread): Use
3359         CPYCHECKER_RETURNS_BORROWED_REF.
3360         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3361         New define.
3362         (pspace_to_pspace_object, objfile_to_objfile_object)
3363         (find_thread_object): Use it.
3364
3365 2013-05-20  Tom Tromey  <tromey@redhat.com>
3366
3367         * python/py-arch.c (arch_object_type): Use
3368         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3369         * python/py-block.c (block_syms_iterator_object_type):
3370         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3371         * python/py-bpevent.c (breakpoint_event_object_type):
3372         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3373         * python/py-cmd.c (cmdpy_object_type): Use
3374         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3375         * python/py-continueevent.c (continue_event_object_type):
3376         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3377         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
3378         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3379         * python/py-events.h (thread_event_object_type):
3380         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3381         * python/py-evtregistry.c (eventregistry_object_type): Use
3382         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3383         * python/py-exitedevent.c (exited_event_object_type):
3384         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3385         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
3386         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3387         * python/py-function.c (fnpy_object_type): Use
3388         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3389         * python/py-inferior.c (inferior_object_type, membuf_object_type):
3390         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3391         * python/py-infthread.c (thread_object_type): Use
3392         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3393         * python/py-lazy-string.c (lazy_string_object_type):
3394         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3395         * python/py-newobjfileevent.c (new_objfile_event_object_type):
3396         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3397         * python/py-objfile.c (objfile_object_type): Use
3398         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3399         * python/py-param.c (parmpy_object_type):
3400         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3401         * python/py-progspace.c (pspace_object_type):
3402         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3403         * python/py-signalevent.c (signal_event_object_type):
3404         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3405         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
3406         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3407         * python/py-type.c (type_object_type, field_object_type)
3408         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3409         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
3410         define.
3411         (value_object_type, block_object_type, symbol_object_type)
3412         (event_object_type, stop_event_object_type, breakpoint_object_type)
3413         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3414
3415 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
3416
3417         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
3418         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
3419
3420 2013-05-20  Doug Evans  <dje@google.com>
3421
3422         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
3423         For Fission.
3424         * dwarf2read.c (struct dwarf2_per_cu_data): New member
3425         reading_dwo_directly.
3426         (struct signatured_type): New member dwo_unit.
3427         (struct die_reader_specs): New member comp_dir.
3428         (create_signatured_type_table_from_index): Use malloc for
3429         all_type_units instead of objfile's obstack.
3430         (create_all_type_units): Ditto.
3431         (fill_in_sig_entry_from_dwo_entry): New function.
3432         (add_type_unit): New function.
3433         (lookup_dwo_signatured_type): New function.
3434         (lookup_dwp_signatured_type): New function.
3435         (lookup_signatured_type): New arg cu.  All callers updated.
3436         (init_cu_die_reader): Initialize comp_dir.
3437         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
3438         Change assert of matching type signatures to call error on mismatch.
3439         (lookup_dwo_unit): Add assert.
3440         (init_tu_and_read_dwo_dies): New function.
3441         (init_cutu_and_read_dies): Call it.
3442         (build_type_unit_groups): Handle case of no type unit groups created.
3443         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
3444         (lookup_dwo_cutu): Tweak complaint.
3445         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
3446         (dwarf2_per_objfile_free): Free all_type_units.
3447
3448 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
3449
3450         * windows-nat.c (handle_unload_dll): Add missing empty line.
3451
3452 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
3453
3454         * dwarf2read.c (prototyped_function_p): New function.
3455         (read_subroutine_type): Use it.
3456
3457 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
3458
3459         * rs6000-aix-tdep.c: De-indent some example code provided
3460         as a comment.
3461
3462 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
3463
3464         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
3465         region is ok for a hardware watchpoint using the new ptrace interface
3466         on Power servers.
3467
3468 2013-05-17  Doug Evans  <dje@google.com>
3469
3470         * NEWS: Mention new maintenance commands check-symtabs, and
3471         expand-symtabs, and renamed check-psymtabs.
3472         * psymtab.c (maintenance_check_psymtabs): Renamed from
3473         maintenance_check_symtabs.  Only process already-expanded symbol
3474         tables.
3475         (_initialize_psymtab): Update.
3476         * symmisc.c (maintenance_check_symtabs): New function.
3477         (maintenance_expand_name_matcher): New function
3478         (maintenance_expand_file_matcher): New function
3479         (maintenance_expand_symtabs): New function.
3480         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
3481         commands.
3482
3483 2013-05-17  Tom Tromey  <tromey@redhat.com>
3484
3485         * python/py-inferior.c (infpy_read_memory): Don't call
3486         PyErr_SetString if PyObject_New fails.
3487         * python/py-frame.c (frame_info_to_frame_object): Don't call
3488         PyErr_SetString if PyObject_New fails.
3489
3490 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
3491
3492         * acinclude.m4: Add check for dlopen in libdl.
3493         * configure.ac: Ditto.
3494         * configure: Regenerate.
3495
3496 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
3497
3498         * frame.c (frame_stash): Convert to htab.
3499         (frame_addr_hash): New function.
3500         (frame_addr_hash_eq): New function.
3501         (frame_stash_create): Convert function to create
3502         a hash table.
3503         (frame_stash_add): Convert function to add an entry to a hash
3504         table.
3505         (frame_stash_find): Convert function to search the hash table.
3506         (frame_stash_invalidate): Convert function to empty the hash
3507         table.
3508         (get_frame_id): Only add to stash if a frame_id is created.
3509         (_initialize_frame): Call frame_stash_create.
3510
3511 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
3512
3513         * configure.ac: Ensure MIG is available when building for GNU Hurd
3514         hosts.
3515         * configure: Regenerate.
3516
3517 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
3518
3519         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
3520
3521 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
3522
3523         * ada-lang.c (ada_make_symbol_completion_list): Make sure
3524         all cleanups are done before returning from this function.
3525
3526 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
3527
3528         * utils.h: #include "exceptions.h".
3529         (enum errors): Remove partial declaration.
3530
3531 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
3532
3533         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
3534         * gdbarch.h, gdbarch.c: Regenerate.
3535         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
3536         handling.
3537
3538         * rs6000-aix-tdep.h: New file.
3539         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
3540         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
3541         "xml-utils.h".
3542         (struct field_info, struct ld_info_desc): New types.
3543         (ld_info32_desc, ld_info64_desc): New static constants.
3544         (struct ld_info): New type.
3545         (rs6000_aix_extract_ld_info): New function.
3546         (rs6000_aix_shared_library_to_xml): Likewise.
3547         (rs6000_aix_ld_info_to_xml): Likewise.
3548         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3549         (rs6000_aix_init_osabi): Add call to
3550         set_gdbarch_core_xfer_shared_libraries_aix.
3551         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
3552         Remove "xml-utils.h" include.
3553         (LdInfo): Delete typedef.
3554         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
3555         Delete macros.
3556         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
3557         Adjust code accordingly.
3558         (rs6000_core_ldinfo): Delete, folded into
3559         rs6000_aix_core_xfer_shared_libraries_aix.
3560         (rs6000_xfer_shared_library): Delete.
3561         (rs6000_xfer_shared_libraries): Reimplement.
3562
3563 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
3564
3565         * record.c (record_goto_cmdlist): New.
3566         (cmd_record_goto): Split into this ...
3567         (cmd_record_goto_begin): ... this
3568         (cmd_record_goto_end): ... and this.
3569         (_initialize_record): Change "record goto" to prefix command.
3570         Add commands for "record goto begin" and "record goto end".
3571         Add an alias for "record goto start" to "record goto begin".
3572
3573 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3574
3575         * linespec.c (convert_linespec_to_sals): New comment for
3576         SOURCE_FILENAME assignment.
3577
3578 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3579
3580         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
3581         internal_warning.
3582
3583 2013-05-14  Tom Tromey  <tromey@redhat.com>
3584
3585         * eval.c (parse_and_eval_long): Make 'exp' const.
3586         * value.h (parse_and_eval_long): Update.
3587
3588 2013-05-14  Tom Tromey  <tromey@redhat.com>
3589
3590         * ui-file.c (gdb_fopen): Make arguments const.
3591         * ui-file.h (gdb_fopen): Make arguments const.
3592
3593 2013-05-14  Tom Tromey  <tromey@redhat.com>
3594
3595         * remote.c (remote_set_trace_notes): Make arguments const.
3596         * target.c (update_current_target): Update cast.
3597         * target.h (to_set_trace_notes): Make arguments const.
3598
3599 2013-05-14  Tom Tromey  <tromey@redhat.com>
3600
3601         * go32-nat.c (go32_terminal_info): Make 'args' const.
3602         * inferior.h (child_terminal_info): Update.
3603         * inflow.c (child_terminal_info): Make 'args' const.
3604         * target.c (default_terminal_info): Make 'args' const.
3605         (debug_to_terminal_save_ours): Likewise.
3606         * target.h (struct target_ops) <to_terminal_info>: Make argument
3607         const.
3608
3609 2013-05-13  Tom Tromey  <tromey@redhat.com>
3610
3611         * gcore.c (create_gcore_bfd): Make 'filename' const.
3612         * gcore.h (create_gcore_bfd): Make 'filename' const.
3613         * record-full.c (record_full_save): Make 'recfilename' const.
3614         * target.c (target_save_record): Make 'filename' const.
3615         * target.h (struct target_ops) <to_save_record>: Make 'filename'
3616         const.
3617         (target_save_record): Likewise.
3618
3619 2013-05-13  Tom Tromey  <tromey@redhat.com>
3620
3621         PR gdb/15338:
3622         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
3623         ranges section has been read.
3624
3625 2013-05-13  Tom Tromey  <tromey@redhat.com>
3626
3627         PR exp/15364:
3628         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3629         STRUCTOP_PTR>: Return a not_lval value for
3630         EVAL_AVOID_SIDE_EFFECTS.
3631         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
3632         for EVAL_AVOID_SIDE_EFFECTS.
3633
3634 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
3635
3636         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
3637         floating point registers to register type before storing
3638         value.
3639         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
3640         Likewise.
3641
3642 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
3643             Tom Tromey  <tromey@redhat.com>
3644
3645         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3646         New functions.
3647         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
3648         Declare.
3649         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
3650         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
3651         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
3652         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
3653
3654 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
3655             Tom Tromey  <tromey@redhat.com>
3656
3657         PR build/15414:
3658         * configure: Rebuild.
3659         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
3660         with -Wno-format.
3661
3662 2013-05-10  Pedro Alves  <palves@redhat.com>
3663
3664         * remote.c (_initialize_remote): Fix spelling of
3665         qXfer:traceframe-info:read packet in packet config command.
3666
3667 2013-05-10  David Taylor  <dtaylor@emc.com>
3668
3669         PR remote/15455
3670
3671         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
3672         "QTro" at start of packet.
3673
3674 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
3675
3676         * solib-aix.c (solib_aix_relocate_section_addresses):
3677         For the .bss section action, apply the same offset as
3678         the .data section.
3679
3680 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
3681
3682         * solib-aix.c (solib_aix_relocate_section_addresses):
3683         Remove FIXME comment.
3684
3685 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
3686
3687         PR tdep/15420:
3688         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
3689         New functions, directly copied from sparc-sol-thread.c.
3690         * sparc-sol-thread.c: Delete.
3691         * configure.ac: Remove code handling sparc-solaris-thread.c.
3692         * configure: Regenerate.
3693
3694 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
3695
3696         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
3697         filter logic.
3698         (backtrace_command): Add "no-filters" option parsing.
3699         (_initialize_stack): Alter help to reflect "no-filters" option.
3700         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
3701         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
3702         (py-frame.o): Add target
3703         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
3704         filter files.
3705         * python/python.h: Add new frame filter constants, and flag enum.
3706         (apply_frame_filter): Add definition.
3707         * python/python.c (apply_frame_filter): New non-Python
3708         enabled function.
3709         * python/py-utils.c (py_xdecref): New function.
3710         (make_cleanup_py_xdecref): Ditto.
3711         * python/py-objfile.c: Declare frame_filters dictionary.
3712         (objfpy_dealloc): Add frame_filters dealloc.
3713         (objfpy_new): Initialize frame_filters attribute.
3714         (objfile_to_objfile_object): Ditto.
3715         (objfpy_get_frame_filters): New function.
3716         (objfpy_set_frame_filters): New function.
3717         * python/py-progspace.c: Declare frame_filters dictionary.
3718         (pspy_dealloc): Add frame_filters dealloc.
3719         (pspy_new): Initialize frame_filters attribute.
3720         (pspacee_to_pspace_object): Ditto.
3721         (pspy_get_frame_filters): New function.
3722         (pspy_set_frame_filters): New function.
3723         * python/py-framefilter.c: New file.
3724         * python/lib/gdb/command/frame_filters.py: New file.
3725         * python/lib/gdb/frames.py: New file.
3726         * python/lib/gdb/__init__.py: Initialize global frame_filters
3727         dictionary
3728         * python/lib/gdb/FrameDecorator.py: New file.
3729         * python/lib/gdb/FrameIterator.py: New file.
3730         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
3731         * mi/mi-cmds.h: Declare.
3732         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
3733         --no-frame-filter logic, and Python frame filter logic.
3734         (stack_enable_frame_filters): New function.
3735         (parse_no_frame_option): Ditto.
3736         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
3737         filter logic.
3738         (mi_cmd_stack_list_locals): Ditto.
3739         (mi_cmd_stack_list_args): Ditto.
3740         (mi_cmd_stack_list_variables): Ditto.
3741         * NEWS: Add frame filter note.
3742
3743 2013-05-09  Doug Evans  <dje@google.com>
3744
3745         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
3746         All callers updated.
3747         (syms_from_objfile): Ditto.  Make static.
3748         (symbol_file_add_with_addrs): Renamed from
3749         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
3750         num_offsets.  All callers updated.
3751         * symfile.h (syms_from_objfile): Delete.
3752
3753         * symfile.c (decrement_reading_symtab): Add assert.
3754         (increment_reading_symtab): Ditto.
3755
3756 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
3757
3758         * source.c (forward_search_command): Replace call to getc
3759         by call to fgetc.
3760         (reverse_search_command): Likewise.
3761
3762 2013-05-08  Doug Evans  <dje@google.com>
3763
3764         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
3765         matching test.
3766
3767 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
3768
3769         * sol-thread.c (info_cb): Factorize the code a little.
3770
3771 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
3772
3773         * sol-thread.c (info_cb): Rework the output of the "maintenance
3774         info sol-threads" command a bit.
3775
3776 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
3777
3778         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
3779         Replace ti.ti_startfunc by ti.ti_pc.
3780
3781 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
3782
3783         * solib-aix.c (solib_aix_free_library_list): New function
3784         for the case where HAVE_LIBEXPAT is not defined.
3785
3786 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
3787
3788         PR breakpoints/15413:
3789         * breakpoint.c (condition_completer): Simplify the code to
3790         disconsider multiple locations of breakpoints when completing the
3791         "condition" command.
3792
3793 2013-05-07  Pierre Muller  <muller@sourceware.org>
3794
3795         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
3796         instead of <sys/wait.h>.
3797
3798 2013-05-07  Pierre Muller  <muller@sourceware.org>
3799
3800         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
3801         trailing new line from warning message.
3802
3803 2013-05-07  Pierre Muller  <muller@sourceware.org>
3804
3805         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
3806         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
3807
3808 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
3809
3810         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
3811         error message (ARI fix).
3812
3813 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
3814
3815         * features/library-list-aix.dtd: Replace library-list by
3816         library-list-aix.
3817         * rs6000-nat.c: Replace library-list by library-list-aix
3818         throughout.
3819         * solib-aix.c: Likewise.
3820
3821 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
3822
3823         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
3824         Renames TARGET_OBJECT_AIX_LIBRARIES.
3825         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
3826         TARGET_OBJECT_LIBRARIES_AIX throughout.
3827         * solib-aix.c: Likwise.
3828
3829 2013-05-07  Yao Qi  <yao@codesourcery.com>
3830
3831         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
3832         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
3833
3834 2013-05-07  Yao Qi  <yao@codesourcery.com>
3835
3836         * solib-dsbt.c (enable_break): Declare.
3837         (dsbt_current_sos): Remove call to enable_break2.
3838         (enable_break2): Rename to enable_break.  Set solib breakpoint
3839         on '_dl_debug_state'.
3840         (enable_break): Remove.
3841
3842 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
3843
3844         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
3845         debug state prior to replicating existing hardware watchpoints or
3846         breakpoints.
3847
3848 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3849
3850         * gcore.c (gcore_create_callback): Ignore sections with
3851         separate_debug_objfile_backlink != NULL.
3852
3853 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
3854             Andrew Jenner  <andrew@codesourcery.com>
3855             Chung-Lin Tang  <cltang@codesourcery.com>
3856             Julian Brown  <julian@codesourcery.com>
3857
3858         Based on the nios2-elf port from Altera Corporation.
3859
3860         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
3861         nios2-linux-tdep.o.
3862         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
3863         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
3864         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
3865         * nios2-tdep.h: New.
3866         * nios2-tdep.c: New.
3867         * nios2-linux-tdep.c: New.
3868         * features/Makefile (WHICH): Add nios2-linux.
3869         (nios2-linux-expedite): Set.
3870         * features/nios2-cpu.xml: New.
3871         * features/nios2.xml: New.
3872         * features/nios2-linux.xml: New.
3873         * features/nios2.c: New (autogenerated).
3874         * features/nios2-linux.c: New (autogenerated).
3875         * regformats/nios2-linux.dat: New (autogenerated).
3876         * NEWS (Changes since GDB 7.6): Add new Nios II targets
3877         and commands.
3878
3879 2013-05-06  Doug Evans  <dje@google.com>
3880
3881         * symfile.c: Whitespace cleanup.
3882
3883         * solist.h (struct target_so_ops): New member clear_so.
3884         * solib-svr4.c (svr4_clear_so): New function.
3885         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
3886         * solib.c (clear_so): Renamed from free_so_symbols.
3887         All callers updated.  Call target clear_so if it exists.
3888
3889 2013-05-06  Tom Tromey  <tromey@redhat.com>
3890
3891         * ada-lang.c (ada_value_primitive_packed_val): Don't
3892         call value_incref.
3893         * value.c (set_value_parent): Incref the new parent and decref
3894         the old parent.
3895         (value_copy, value_primitive_field): Use set_value_parent.
3896
3897 2013-05-06  Tom Tromey  <tromey@redhat.com>
3898
3899         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
3900         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
3901         if needed.
3902         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
3903         * dwarf2read.c (write_constant_as_bytes)
3904         (dwarf2_fetch_constant_bytes): New functions.
3905
3906 2013-05-06  Tom Tromey  <tromey@redhat.com>
3907
3908         * dwarf2read.c (dwarf2_const_value_data): Remove unused
3909         parameters.
3910         (dwarf2_const_value_attr): Update.
3911
3912 2013-05-06  Tom Tromey  <tromey@redhat.com>
3913
3914         * somread.c (som_symfile_offsets): Add 'const' to addrs.
3915         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
3916         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
3917         Remove declaration.
3918
3919 2013-05-06  Tom Tromey  <tromey@redhat.com>
3920
3921         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
3922         objfile's obstack.
3923
3924 2013-05-06  Doug Evans  <dje@google.com>
3925
3926         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
3927         * stabsread.h (process_one_symbol): Update declaration.
3928         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
3929         * elfread.c (elf_symfile_relocate_probe): Ditto.
3930         * psymtab.c (relocate_psymtabs): Ditto.
3931         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
3932         (objfile_relocate): Ditto.
3933         * objfiles.h (objfile_relocate): Update declaration.
3934         * symfile.c (relative_addr_info_to_section_offsets): Constify
3935         addrs parameter.
3936         (default_symfile_offsets): Ditto.
3937         (syms_from_objfile_1): Constify offsets parameter.
3938         (syms_from_objfile): Ditto.
3939         (symbol_file_add_with_addrs_or_offsets): Ditto.
3940         (symfile_map_offsets_to_segments): Constify data parameter.
3941         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
3942         delta parameters of member relocate.
3943         (struct sym_probe_fns): Constify new_offsets,
3944         delta parameters of member sym_relocate_probe.
3945         (struct sym_fns): Constify section_addr_info parameter of member
3946         sym_offsets.
3947         (relative_addr_info_to_section_offsets): Update declaration.
3948         (default_symfile_offsets): Ditto.
3949         (syms_from_objfile): Ditto.
3950         (symfile_map_offsets_to_segments): Ditto.
3951
3952         * symfile.c (syms_from_objfile_1): Use correct section count when
3953         objfile->sf == NULL.
3954
3955 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
3956
3957         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
3958
3959 2013-05-06  Doug Evans  <dje@google.com>
3960
3961         * psympriv.h (struct partial_symtab): Augment comment for member
3962         section_offsets.
3963
3964 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
3965
3966         Reimplement shared library support on ppc-aix...
3967         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
3968         * features/library-list-aix.dtd: New file.
3969         * solib-aix.h, solib-aix.c: New file.
3970         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
3971         (rs6000_find_toc_address_hook): Delete.
3972         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
3973         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
3974         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
3975         "xml-utils.h".
3976         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
3977         (vmap_symtab, fixup_breakpoints): Delete.
3978         (rs6000_xfer_shared_libraries): New function.
3979         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
3980         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
3981         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
3982         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
3983         (rs6000_xfer_shared_library): New function.
3984         (find_toc_address): Delete.
3985         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
3986         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
3987         * xcoffread.c (record_minimal_symbol): Reloate symbol address
3988         before creating minimal symbol.  Adjust function description
3989         accordingly.
3990         (scan_xcoff_symtab): Replace call to
3991         prim_record_minimal_symbol_and_info by call to
3992         record_minimal_symbol.
3993         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
3994         around default_symfile_offsets.
3995         * configure.tgt: Add solib-aix.o to gdb_target_obs for
3996         powerpc-aix targets.
3997         * config/rs6000/nm-rs6000.h: Delete.
3998         * config/powerpc/aix.mh (NAT_FILE): Delete.
3999         (NATDEPFILES): Remove xcoffsolib.o.
4000         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4001         (ALL_TARGET_OBS): Add solib-aix.o.
4002         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4003         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
4004         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
4005         * xcoffsolib.h, xcoffsolib.c: Delete.
4006
4007         * solib.c (reload_shared_libraries): Remove reference to
4008         SOLIB_CREATE_INFERIOR_HOOK.
4009         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4010         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4011         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4012         comment.
4013         * corelow.c (deprecated_core_resize_section_table): Delete.
4014         * exec.c: Remove include of xcoffsolib.h".
4015         (map_vmap, vmap): Delete.
4016         (exec_close_1): Remove references to vmap.
4017         (exec_file_attach): Remove vmap handling code, and reference
4018         to DEPRECATED_IBM6000_TARGET.
4019         (bfdsec_to_vmap): Delete.
4020         (exec_files_info): Remove block of code handling VMAP.
4021         * infcmd.c (post_create_inferior): Remove reference to
4022         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4023         * infrun.c (follow_exec): Remove reference to
4024         SOLIB_CREATE_INFERIOR_HOOK.
4025         * stack.c (print_frame): Remove reference to PC_SOLIB.
4026         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4027         (dsbt_relocate_main_executable): Likewise.
4028         * solib-frv.c (frv_current_sos): Likewise.
4029
4030 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
4031
4032         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4033         to target_write_memory and target_read_memory.
4034
4035 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
4036
4037         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4038         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4039
4040 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
4041
4042         * darwin-nat.c: Replace all "%x" instances in format strings
4043         into "0x%x" throughout.
4044
4045 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
4046
4047         * darwin-nat.c (darwin_mourn_inferior): Replace call to
4048         gdb_assert by call to MACH_CHECK_ERROR.
4049         (darwin_attach_pid): Raise an error rather than a failed
4050         assertion when various system calls failed.  Report a warning
4051         instead of raising a failed assertion when PREV_NOT is not NULL
4052         after call to mach_port_request_notification.
4053         (darwin_ptrace_me): Raise an error rather than a failed
4054         assertion when read returns nonzero.
4055
4056 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
4057
4058         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4059
4060 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4061
4062         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4063
4064 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4065
4066         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4067         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4068         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
4069         a stale cleanup.  Fix double free of NAME.
4070
4071 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
4072
4073         * windows-nat.c (windows_delete_thread): Accept an additional
4074         argument, the thread's exit code, and announce thread death when
4075         print_thread_events is non-zero and we are deleting a thread that
4076         is not the main thread.
4077         (get_windows_debug_event): Pass thread exit code to
4078         windows_delete_thread.
4079
4080 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
4081
4082         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4083         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4084         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4085         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4086         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4087         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4088         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4089         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4090         (gdbarch_tdep): New struct.
4091         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4092         E_NUM_REGS.
4093         (v850e3v5_register_name): New function.
4094         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4095         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
4096         code handling the struct return conventions for the RH850 ABI.
4097         Update all callers.
4098         (v850_eight_byte_align_p): New function.
4099         (v850_push_call_dummy): Push structs by value, not by reference
4100         for the RH850 ABI.  Add support for eight byte alignment.
4101         (v850_dbtrap_breakpoint_from_pc): New function.
4102         (v850_gdbarch_init): Add ABI detection code.  Register
4103         v850e3v5_register_name for the v850e3v5 architecture.  Set the
4104         number of registers for v850e3v5.  Register
4105         v850_dbtrap_breakpoint_from_pc as appropriate.
4106         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4107
4108 2013-05-03  Doug Evans  <dje@google.com>
4109
4110         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4111         of bfd_count_sections.
4112         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4113         * symfile.c (default_symfile_offsets): Ditto.
4114         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
4115         one entry, not bfd_count_sections entries.
4116
4117 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
4118
4119         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4120         `save' and `restore' register groups.  Don't include SPL
4121         or SPH in these groups.
4122         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
4123         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
4124         RL78_ES_REGNUM, and RL78_CS_REGNUM.
4125         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
4126         dwarf2_append_unwinders().
4127
4128 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4129
4130         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4131         ignore SIGINT and SIGTRAP in case these internal signals are
4132         caught explicitely.
4133
4134 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
4135
4136         * darwin-nat.c (darwin_read_write_inferior): Change types
4137         of parameters rdaddr and wraddr to "gdb_byte *". Change type
4138         of copy_count to "mach_msg_type_number_t".
4139         (darwin_read_dyld_info): Change type of parameter
4140         rdaddr to "gdb_byte *".
4141
4142 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
4143
4144         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4145         of &info->load_map from "char *" to "gdb_byte *".
4146
4147 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
4148
4149         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4150         from "char *" to "gdb_byte *".
4151         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4152
4153 2013-04-30  Doug Evans  <dje@google.com>
4154
4155         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4156         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4157         DWO stub.  If DWO isn't found, just use stub.
4158         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4159
4160         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4161         calling init_cutu_and_read_dies.
4162
4163 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4164
4165         * target-descriptions.c (maint_print_c_tdesc_cmd):
4166         Add case to parse structures as register types and
4167         bitfields.
4168
4169 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4170
4171         * MAINTAINERS (Write After Approval): Add myself to the list.
4172
4173 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
4174
4175         * sol-thread.c (rw_common): Change type of parameter "buf"
4176         to "gdb_byte *".
4177         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4178         rw_common to "gdb_byte *" instead of "char *".
4179
4180 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
4181
4182         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4183         of local variable msym to const struct bound_minimal_symbol.
4184         Adjust use accordingly.
4185         [ti.ti_state == TD_THR_SLEEP]: Likewise.
4186
4187 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
4188
4189         * i386gnu-nat.c (CREG_OFFSET): New macro.
4190         (creg_offset): New array.
4191         (CREG_ADDR): Use creg_offset instead of reg_offset.
4192
4193 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
4194
4195         * mep-tdep.c (mep_write_pc): Delete.
4196         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4197         Add call to set_gdbarch_pc_regnum.
4198
4199 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
4200
4201         * common/filestuff.c: Replace #include <dirent.h> by
4202         #include "gdb_dirent.h".
4203
4204 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
4205
4206         * common/filestuff.c: Replace #include <sys/stat.h> by
4207         #include "gdb_stat.h".
4208
4209 2013-04-29  Pierre Muller  <muller@sourceware.org>
4210
4211         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4212         editCase function rule.
4213         (get_DW_AT_signature_type): Likewise.
4214
4215 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
4216
4217         * m32r-tdep.c (m32r_write_pc): Delete.
4218         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4219         Add call to set_gdbarch_pc_regnum.
4220
4221 2013-04-29  Pierre Muller  <muller@sourceware.org>
4222
4223         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4224
4225 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
4226
4227         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4228
4229 2013-04-28  Yao Qi  <yao@codesourcery.com>
4230
4231         * solib-dsbt.c (fetch_loadmap): Re-indent.
4232         (displacement_from_map, enable_break2): Likewise.
4233         (dsbt_relocate_section_addresses): Likewise.
4234
4235 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
4236
4237         GDB 7.6 released.
4238
4239 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
4240
4241         PR corefiles/14983:
4242         * dwarf2read.c (process_full_comp_unit): Always create a static
4243         block.
4244
4245 2013-04-25  Hui Zhu  <hui@codesourcery.com>
4246
4247         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4248         to loc->cmd_bytecode.
4249
4250 2013-04-24  Doug Evans  <dje@google.com>
4251
4252         * dwarf2read.c (setup_type_unit_groups): Fix comment.
4253
4254 2013-04-22  Keith Seitz  <keiths@redhat.com>
4255
4256         * tracepoint.c (trace_save):  Call the writer's start method.
4257
4258 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
4259
4260         PR gdb/10462
4261         * cli/cli-decode.c (lookup_command): Show an error if there is no space
4262         before argument.
4263
4264 2013-04-23  Tom Tromey  <tromey@redhat.com>
4265
4266         * common/filestuff.c: Check USE_WIN32API before including
4267         sys/socket.h.
4268         (HAVE_F_GETFD): New define.
4269         (mark_cloexec): Check HAVE_F_GETFD.
4270         (gdb_open_cloexec): Change 'mode' to unsigned long.
4271         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4272         (gdb_pipe_cloexec): Check HAVE_PIPE.
4273         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
4274         long.
4275
4276 2013-04-23  Hui Zhu  <hui@codesourcery.com>
4277
4278         PR gdb/15293
4279         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
4280
4281 2013-04-23  Hui Zhu  <hui@codesourcery.com>
4282
4283         PR gdb/15165
4284         * breakpoint.c (dprintf_print_recreate): New.
4285         (save_breakpoints): Let it not save dprintf commands.
4286         (initialize_breakpoint_ops): Set dprintf_print_recreate.
4287
4288 2013-04-22  Tom Tromey  <tromey@redhat.com>
4289
4290         PR gdb/7912:
4291         * Makefile.in (SFILES): Add filestuff.c
4292         (COMMON_OBS): Add filestuff.o.
4293         (filestuff.o): New target.
4294         * auto-load.c (auto_load_objfile_script_1): Use
4295         gdb_fopen_cloexec.
4296         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
4297         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
4298         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
4299         * common/agent.c (gdb_connect_sync_socket): Use
4300         gdb_socket_cloexec.
4301         * common/filestuff.c: New file.
4302         * common/filestuff.h: New file.
4303         * common/linux-osdata.c (linux_common_core_of_thread)
4304         (command_from_pid, commandline_from_pid, print_source_lines)
4305         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4306         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
4307         gdb_fopen_cloexec.
4308         * common/linux-procfs.c (linux_proc_get_int)
4309         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
4310         * config.in, configure: Rebuild.
4311         * configure.ac: Don't check for sys/socket.h.  Check for
4312         fdwalk, pipe2.
4313         * corelow.c (core_open): Use gdb_open_cloexec.
4314         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
4315         * fork-child.c (fork_inferior): Call close_most_fds.
4316         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
4317         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
4318         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
4319         Use gdb_fopen_cloexec.
4320         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
4321         gdb_open_cloexec.
4322         (linux_async_pipe): Use gdb_pipe_cloexec.
4323         * remote-fileio.c (remote_fileio_func_open): Use
4324         gdb_open_cloexec.
4325         * remote.c (remote_file_put, remote_file_get): Use
4326         gdb_fopen_cloexec.
4327         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
4328         close_most_fds.
4329         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
4330         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
4331         * solib.c (solib_find): Use gdb_open_cloexec.
4332         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
4333         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
4334         (tfile_open): Use gdb_open_cloexec.
4335         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
4336         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
4337         * xml-support.c (xml_fetch_content_from_file): Use
4338         gdb_fopen_cloexec.
4339         * main.c (captured_main): Call notice_open_fds.
4340
4341 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4342
4343         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
4344         'char *' to 'gdb_byte *'.
4345         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
4346         'gdb_byte'.
4347
4348 2013-04-22  Yao Qi  <yao@codesourcery.com>
4349
4350         * infrun.c: Fix typo in comment.
4351
4352 2013-04-22  Andrew Haley  <aph@redhat.com>
4353
4354         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
4355         instead of "long".
4356
4357 2013-04-20  Yao Qi  <yao@codesourcery.com>
4358
4359         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
4360         'char *' to 'gdb_byte *'.  Cast the return value of
4361         'bt_ctf_get_char_array' to 'gdb_byte *'.
4362
4363 2013-04-19  Pedro Alves  <palves@redhat.com>
4364
4365         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
4366         -Wpointer-sign.
4367         * configure: Regenerate.
4368
4369 2013-04-19  Pedro Alves  <palves@redhat.com>
4370
4371         * ser-tcp.c (net_read_prim): Cast second argument to recv to
4372         'void *'.
4373
4374 2013-04-19  Pedro Alves  <palves@redhat.com>
4375
4376         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
4377         Change type of 'myaddr' parameter to gdb_byte pointer.
4378         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
4379         to 'long long' pointer instead of to 'unsigned long long'.
4380         (monitor_write_memory_block, monitor_read_memory_single)
4381         (monitor_read_memory): Change type of 'myaddr' parameter to
4382         gdb_byte pointer.
4383
4384 2013-04-19  Pedro Alves  <palves@redhat.com>
4385
4386         * record.c (validate_history_size): Make parameter 'setting'
4387         unsigned.
4388
4389 2013-04-19  Pedro Alves  <palves@redhat.com>
4390
4391         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
4392         to 'gdb_byte *'.
4393
4394 2013-04-19  Pedro Alves  <palves@redhat.com>
4395
4396         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
4397         local to int.
4398
4399 2013-04-19  Pedro Alves  <palves@redhat.com>
4400
4401         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
4402         * ada-tasks.c (read_fat_string_value): Likewise.
4403
4404 2013-04-19  Pedro Alves  <palves@redhat.com>
4405
4406         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
4407         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
4408         'offset', and adjust.
4409
4410 2013-04-19  Pedro Alves  <palves@redhat.com>
4411
4412         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
4413         (read_index_from_section): Add cast to 'char *'.
4414
4415 2013-04-19  Pedro Alves  <palves@redhat.com>
4416
4417         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
4418
4419 2013-04-19  Pedro Alves  <palves@redhat.com>
4420
4421         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
4422
4423 2013-04-19  Pedro Alves  <palves@redhat.com>
4424
4425         * record-full.c (record_full_get_bookmark): Change local 'ret'
4426         type to char * and add cast to gdb_byte *.
4427         (record_full_goto_bookmark): Handle 'bookmark' argument as a
4428         string.
4429         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
4430
4431 2013-04-19  Pedro Alves  <palves@redhat.com>
4432
4433         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
4434         * python/py-prettyprint.c (print_string_repr): Change type of
4435         'output' local to char *.  Add cast to gdb_byte * in
4436         LA_PRINT_STRING call.
4437         (print_children): Change type of 'output' local to char *.
4438         * python/py-value.c (valpy_string): Add cast to const char * in
4439         PyUnicode_Decode call.
4440
4441 2013-04-19  Pedro Alves  <palves@redhat.com>
4442
4443         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
4444         and change its type to 'const char *'.  Adjust.
4445         (mips_send_packet): Add cast to 'char *', and remove cast to
4446         'unsigned char *'.
4447         (mips_receive_packet): Remove cast to 'unsigned char *'.
4448         (mips_load_srec): Use bfd_byte.
4449         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
4450         (pmon_checkset): Make 'value' parameter unsigned.
4451
4452 2013-04-19  Pedro Alves  <palves@redhat.com>
4453
4454         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
4455
4456 2013-04-19  Pedro Alves  <palves@redhat.com>
4457
4458         * remote.c (remote_write_bytes_aux, compare_sections_command)
4459         (remote_read_qxfer)
4460         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
4461         (remote_hostio_readlink, remote_bfd_iovec_pread)
4462         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
4463         binary buffer, and char when buffer is used as string.
4464         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
4465         (trace_save, tfile_open, traceframe_walk_blocks)
4466         (tfile_fetch_registers): Likewise.
4467
4468 2013-04-19  Pedro Alves  <palves@redhat.com>
4469
4470         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
4471         buffer and size_t size.  Adjust.
4472         * ser-base.h (ser_base_write): Adjust.
4473         * ser-go32.c (cnts): Change type to size_t.
4474         (dos_write): Change prototype -- take 'void *'
4475         buffer and size_t size.  Adjust.
4476         (dos_info): Print elements of 'cnts' as unsigned long.
4477         * serial.c (serial_write): Likewise.
4478         * serial.h (serial_write): Adjust.
4479         (struct serial_ops) <write>: Change prototype -- take 'void *'
4480         buffer and size_t size.  Adjust.
4481
4482 2013-04-19  Pedro Alves  <palves@redhat.com>
4483
4484         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
4485         gdb_byte *.
4486         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
4487
4488 2013-04-19  Pedro Alves  <palves@redhat.com>
4489
4490         * alpha-tdep.c (alpha_extract_return_value): Use
4491         regcache_cooked_read_unsigned to read 'v0'.
4492
4493 2013-04-19  Pedro Alves  <palves@redhat.com>
4494
4495         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
4496         parameters 'at', 'as' and 'offset' to uint32_t.
4497
4498 2013-04-19  Pedro Alves  <palves@redhat.com>
4499
4500         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4501         'is64' to signed 'int'.
4502
4503 2013-04-19  Pedro Alves  <palves@redhat.com>
4504
4505         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
4506         parameter to int *.
4507
4508 2013-04-19  Pedro Alves  <palves@redhat.com>
4509
4510         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
4511         'insnbuf' buffer type to unsigned int[].
4512
4513 2013-04-19  Pedro Alves  <palves@redhat.com>
4514
4515         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
4516
4517 2013-04-19  Pedro Alves  <palves@redhat.com>
4518
4519         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
4520         unsigned long *.
4521
4522 2013-04-19  Pedro Alves  <palves@redhat.com>
4523
4524         * alpha-tdep.c (heuristic_fence_post): Change type to int.
4525         (alpha_heuristic_proc_start): Adjust to check -1 instead of
4526         UINT_MAX.
4527         * mips-tdep.c (heuristic_fence_post): Change type to int.
4528         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
4529
4530 2013-04-19  Pedro Alves  <palves@redhat.com>
4531
4532         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
4533         (struct gdbarch_tdep) <cris_version>: Make unsigned.
4534         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
4535
4536 2013-04-19  Pedro Alves  <palves@redhat.com>
4537
4538         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
4539         it to get a string view of the byte buffer.
4540         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
4541         type to gdb_byte *.  Adjust.
4542         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
4543         Change local to char *.
4544         * solib-darwin.c (find_program_interpreter): Change return type to
4545         char *.  Adjust.
4546         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
4547         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
4548         * solib-frv.c (enable_break2): Change local 'buf' to char *.
4549         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
4550         * solib-svr4.c (find_program_interpreter): Change return type to
4551         char *.  Adjust.
4552         (enable_break): Change local 'interp_name' to char *.
4553         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4554         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
4555         (spu_pseudo_register_write_spu): Use char for string buffer.
4556         Adjust.
4557         (info_spu_event_command, info_spu_signal_command): Add casts to
4558         'char *'.
4559
4560 2013-04-19  Pedro Alves  <palves@redhat.com>
4561
4562         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
4563         gdb_byte[].
4564         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
4565         * ada-lang.c (ada_value_assign): Use gdb_byte.
4566         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
4567         (alphanbsd_sigtramp_offset): Use gdb_byte.
4568         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
4569         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
4570         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
4571         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
4572         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
4573         * arm-tdep.c (arm_stub_unwind_sniffer)
4574         (arm_displaced_init_closure): Use gdb_byte.
4575         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
4576         (arm_default_thumb_le_breakpoint)
4577         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
4578         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
4579         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
4580         * arm-wince-tdep.c (arm_wince_le_breakpoint)
4581         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
4582         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
4583         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
4584         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
4585         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
4586         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
4587         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
4588         (cris_store_return_value, cris_extract_return_value): Use
4589         gdb_byte.
4590         (constraint): Change type of parameter to char * from signed
4591         char*.  Use gdb_byte.
4592         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
4593         of local buffer to gdb_byte *.
4594         * dwarf2read.c (read_index_from_section): Use gdb_byte.
4595         (create_dwp_hash_table): Change type of locals to gdb_byte *.
4596         (add_address_entry): Change type of local buffer to gdb_byte[].
4597         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
4598         (frv_push_dummy_call): Use gdb_byte.
4599         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
4600         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
4601         (hppa_hpux_supply_save_state): Use gdb_byte.
4602         * hppa-tdep.c (hppa32_push_dummy_call)
4603         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
4604         * ia64-tdep.c (extract_bit_field, replace_bit_field)
4605         (slotN_contents, replace_slotN_contents): Change type of parameter
4606         to gdb_byte *.
4607         (fetch_instruction, ia64_pseudo_register_write)
4608         (ia64_register_to_value, ia64_value_to_register)
4609         (ia64_extract_return_value, ia64_store_return_value)
4610         (ia64_push_dummy_call): Use gdb_byte.
4611         * m32c-tdep.c (m32c_return_value): Remove cast.
4612         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
4613         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
4614         gdb_byte.
4615         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
4616         * mn10300-tdep.c (mn10300_store_return_value)
4617         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
4618         gdb_byte.
4619         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
4620         (moxie_process_record): Remove casts.
4621         * ppc-ravenscar-thread.c (supply_register_at_address)
4622         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
4623         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
4624         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
4625         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
4626         * remote.c (compare_sections_command): Use gdb_byte.
4627         * score-tdep.c (score7_free_memblock): Change type of parameter to
4628         gdb_byte *.
4629         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
4630         gdb_byte *.  Use gdb_byte.
4631         (sh_push_dummy_call_fpu): Use gdb_byte.
4632         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
4633         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
4634         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
4635         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
4636         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
4637         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
4638         (sh64_store_return_value, sh64_register_convert_to_virtual):
4639         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
4640         (sh64_pseudo_register_write): Use gdb_byte.
4641         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
4642         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
4643         buffer.
4644         (irix_current_sos): Use gdb_byte.
4645         * solib-som.c (som_current_sos): Use gdb_byte.
4646         * sparc-ravenscar-thread.c (supply_register_at_address)
4647         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
4648         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4649         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
4650         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
4651         'gdb_byte *'.
4652         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
4653         'gdb_byte *'.
4654         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
4655         * xstormy16-tdep.c (xstormy16_extract_return_value)
4656         (xstormy16_store_return_value): Change parameter type to
4657         'gdb_byte *'.  Adjust.
4658         (xstormy16_push_dummy_call): Use gdb_byte.
4659         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
4660         (call0_analyze_prologue, execute_code): Use gdb_byte.
4661
4662 2013-04-19  Vladimir Kargov <kargov@gmail.com>
4663             Pedro Alves  <palves@redhat.com>
4664
4665         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
4666         value contents.
4667
4668 2013-04-17  Doug Evans  <dje@google.com>
4669
4670         * dwarf2read.c (struct signatured_type): New member type.
4671         (struct attribute): Replace member signatured_type with signature.
4672         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
4673         (read_call_site_scope): Call follow_die_ref instead of
4674         follow_die_ref_or_sig.
4675         (read_structure_type): Rewrite handling of signatured types.
4676         (read_enumeration_type): Ditto.
4677         (read_attribute_value): Update.
4678         (build_error_marker_type): New function.
4679         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
4680         Don't call error for bad types, just build an error marker type.
4681         (dump_die_shallow): Update.
4682         (follow_die_sig_1): Renamed from follow_die_sig.
4683         Don't call error for bad types, instead return NULL.
4684         (follow_die_sig): New function.
4685         (get_signatured_type, get_DW_AT_signature_type): New functions.
4686
4687 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
4688
4689         * aarch64-tdep.c (aarch64_write_pc): Removed.
4690         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
4691         function.
4692
4693 2013-04-17  Yao Qi  <yao@codesourcery.com>
4694
4695         * top.c (print_gdb_configuration): Print configure-time
4696         parameter on using libbabeltrace or not.
4697
4698 2013-04-16  Pedro Alves  <palves@redhat.com>
4699
4700         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
4701
4702 2013-04-16  Pedro Alves  <palves@redhat.com>
4703
4704         * common/glibc_thread_db.h: Update from upstream glibc
4705         (git 568035b7874a099087b77f7bba3e36a1173787b0).
4706
4707 2013-04-16  Pedro Alves  <palves@redhat.com>
4708
4709         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
4710         * common/glibc_thread_db.h: ... this new file ...
4711         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
4712
4713 2013-04-16  Will Newton  <will.newton@gmail.com>
4714             Pedro Alves  <palves@redhat.com>
4715
4716         PR build/11881
4717
4718         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
4719         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
4720         HAVE_THREAD_DB_H.
4721
4722 2013-04-16  Pedro Alves  <palves@redhat.com>
4723             Eli Zaretskii  <eliz@gnu.org>
4724
4725         * NEWS: Mention "set foo unlimited".
4726
4727 2013-04-15  Doug Evans  <dje@google.com>
4728
4729         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
4730         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
4731         (create_dwo_cu_reader): Renamed from
4732         create_dwo_debug_info_hash_table_reader.
4733         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
4734         Remove support for multiple CUs in a DWO file.
4735         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
4736
4737         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
4738         instead of phex.
4739         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
4740         (create_dwo_in_dwp): Ditto.
4741
4742 2013-04-15  Tom Tromey  <tromey@redhat.com>
4743
4744         * NEWS: Move recent entries into "since 7.6" section.
4745
4746 2013-04-15  Tom Tromey  <tromey@redhat.com>
4747
4748         PR c++/13588:
4749         * NEWS: Update.
4750         * break-catch-throw.c (struct exception_catchpoint)
4751         <exception_rx, pattern>: New fields.
4752         (fetch_probe_arguments, dtor_exception_catchpoint)
4753         (check_status_exception_catchpoint)
4754         (print_one_detail_exception_catchpoint): New functions.
4755         (handle_gnu_v3_exceptions): Add "except_rx" argument.
4756         Compile regular expression if needed.
4757         (extract_exception_regexp): New function.
4758         (catch_exception_command_1): Use extract_exception_regexp.
4759         (compute_exception): Use fetch_probe_arguments.
4760         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
4761         and check_status fields.
4762         * cp-abi.c (cplus_typename_from_type_info): New function.
4763         * cp-abi.h (cplus_typename_from_type_info): Declare.
4764         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
4765         * gdb_regex.h (compile_rx_or_error): Declare.
4766         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
4767         comment.
4768         (init_gnuv3_ops): Set get_type_from_type_info field.
4769         * probe.c (compile_rx_or_error): Move...
4770         * utils.c (compile_rx_or_error): ... here.
4771
4772 2013-04-15  Tom Tromey  <tromey@redhat.com>
4773
4774         PR c++/15176:
4775         * NEWS: Update.
4776         * break-catch-throw.c (compute_exception): New function.
4777         (exception_funcs): New global.
4778         (_initialize_break_catch_throw): Create $_exception.
4779         * cp-abi.c (cplus_type_from_type_info): New function.
4780         * cp-abi.h (cplus_type_from_type_info): Declare.
4781         (struct cp_abi_ops) <get_type_from_type_info>: New field.
4782         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
4783         (gnuv3_get_type_from_type_info): New functions.
4784         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
4785
4786 2013-04-15  Tom Tromey  <tromey@redhat.com>
4787
4788         * break-catch-throw.c (struct exception_names): New.
4789         (exception_functions): Change type.
4790         (re_set_exception_catchpoint): Look for SDT probes.
4791
4792 2013-04-15  Tom Tromey  <tromey@redhat.com>
4793
4794         PR c++/10119:
4795         * break-catch-throw.c (exception_functions): New global.
4796         (gnu_v3_exception_catchpoint_ops): Move earlier.
4797         (struct exception_catchpoint): New.
4798         (classify_exception_breakpoint): Rewrite.
4799         (re_set_exception_catchpoint): New function.
4800         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
4801         Allocate a struct exception_catchpoint.
4802         (catch_exception_command_1): Update.
4803         (initialize_throw_catchpoint_ops): Set 're_set' method.
4804
4805 2013-04-15  Tom Tromey  <tromey@redhat.com>
4806
4807         * Makefile.in (SFILES): Add break-catch-throw.c
4808         (COMMON_OBS): Add break-catch-throw.o.
4809         * break-catch-throw.c: New file.
4810         * breakpoint.c: Move exception-catching code to new file.
4811         (ep_parse_optional_if_clause): No longer static.
4812         * breakpoint.h (ep_parse_optional_if_clause): Declare.
4813
4814 2013-04-15  Tom Tromey  <tromey@redhat.com>
4815
4816         PR c++/9065:
4817         * NEWS: Update.
4818         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
4819         * c-exp.y (TYPEID): New token.
4820         (exp): Add new TYPEID productions.
4821         (ident_tokens): Add "typeid".
4822         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
4823         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
4824         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
4825         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
4826         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
4827         case.
4828         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
4829         (build_std_type_info_type, gnuv3_get_typeid_type)
4830         (gnuv3_get_typeid): New functions.
4831         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
4832         new fields on ABI object.
4833         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
4834         * std-operator.def (OP_TYPEID): New.
4835
4836 2013-04-15  Tom Tromey  <tromey@redhat.com>
4837
4838         * elfread.c (elf_symtab_read): Install versioned symbol under
4839         unversioned name as well.
4840
4841 2013-04-15  Tom Tromey  <tromey@redhat.com>
4842
4843         PR c++/11990:
4844         * c-lang.c (cplus_language_defn): Use gdb_demangle.
4845         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
4846         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
4847         (gdb_demangle): New function.
4848         * cp-support.h (gdb_demangle): Declare.
4849         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
4850         (dwarf2_name): Use gdb_demangle.
4851         * gdbtypes.c (check_stub_method): Use gdb_demangle.
4852         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
4853         suffixes from name.
4854         (gnuv3_print_method_ptr): Use gdb_demangle.
4855         * jv-lang.c (java_demangle): Use gdb_demangle.
4856         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
4857         * language.c (unk_lang_demangle): Use gdb_demangle.
4858         * symtab.c (symbol_find_demangled_name)
4859         (demangle_for_lookup): Use gdb_demangle.
4860
4861 2013-04-15  Tom Tromey  <tromey@redhat.com>
4862
4863         PR c++/12824:
4864         * NEWS: Update.
4865         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
4866         New constant.
4867         (classify_exception_breakpoint): New function.
4868         (print_it_exception_catchpoint, print_one_exception_catchpoint)
4869         (print_mention_exception_catchpoint)
4870         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
4871         (catch_exception_command_1): Handle "rethrow" catchpoint.
4872         (catch_rethrow_command): New function.
4873         (_initialize_breakpoint): Add "catch rethrow" command.
4874
4875 2013-04-15  Pierre Muller  <muller@sourceware.org>
4876
4877         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
4878         set_gdbarch_write_pc as deprecated anymore.
4879
4880 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
4881
4882         * spu-tdep.c (spu_write_pc): Add empty line after local variable
4883         declarations.
4884
4885 2013-04-13  Yao Qi  <yao@codesourcery.com>
4886
4887         * ctf.c (_initialize_ctf): Include "completer.h".
4888         Call add_target_with_completer instead of add_target.
4889
4890 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4891
4892         Fix GDB regression related to PR binutils/14813.
4893         * jit.c (mem_bfd_iovec_close): Return 0 for success.
4894         * minidebug.c (lzma_close): Add return value comment.
4895         * remote.c (remote_bfd_iovec_close): Return 0 for success.
4896         * solib-spu.c (spu_bfd_iovec_close): Likewise.
4897         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
4898
4899 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4900
4901         * config.in: Regenerate.
4902
4903 2013-04-12  Tom Tromey  <tromey@redhat.com>
4904
4905         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
4906         const.
4907         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
4908         (struct die_reader_specs) <buffer>: Likewise.
4909         (die_reader_func_ftype): Make 'info_ptr' const.
4910         (struct line_header) <include_dirs, statement_program_start,
4911         statement_program_end>: Now const.
4912         (struct file_entry) <name>: Likewise.
4913         (struct partial_die_info) <sibling>: Likewise.
4914         (struct dwarf_block) <data>: Likewise.
4915         (dwarf2_read_section): Remove cast.
4916         (dwarf2_get_section_info): Make 'bufp' const.
4917         (read_index_from_section): Constify.
4918         (dw2_get_file_names_reader): Make 'info_ptr' const.
4919         (dw2_get_primary_filename_reader): Likewise.
4920         (read_comp_unit_head): Make 'info_ptr' and return type const.
4921         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
4922         Likewise.
4923         (read_abbrev_offset): Constify.
4924         (dwarf2_create_include_psymtab): Make 'name' const.
4925         (create_debug_types_hash_table): Update.
4926         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
4927         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
4928         Constify.
4929         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
4930         (load_partial_comp_unit_reader): Make 'info_ptr' const.
4931         (read_comp_units_from_section): Constify.
4932         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
4933         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
4934         const.
4935         (dwarf2_compute_name, setup_type_unit_groups): Constify.
4936         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
4937         (create_dwp_hash_table, dwarf2_ranges_read)
4938         (dwarf2_record_block_ranges): Constify.
4939         (read_die_and_children, read_die_and_siblings_1)
4940         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
4941         const.
4942         (read_full_die_1, read_full_die): Make 'info_ptr' const.
4943         (abbrev_table_read_table): Constify.
4944         (load_partial_dies): Make 'info_ptr' const.
4945         (read_partial_die, read_attribute_value, read_attribute): Make
4946         'info_ptr' and return type const.
4947         (read_address, read_initial_length)
4948         (read_checked_initial_length_and_offset, read_offset)
4949         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
4950         const.
4951         (read_direct_string): Make 'buf' and return type const.
4952         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
4953         (read_indirect_string): Make return type const.
4954         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
4955         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
4956         'info_ptr' const.
4957         (read_str_index): Make return type const.
4958         (add_include_dir): Make 'include_dir' const.
4959         (add_file_name): Make 'name' const.
4960         (dwarf_decode_line_header): Constify.
4961         (psymtab_include_file_name): Make return type const.
4962         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
4963         (dwarf2_start_subfile): Make 'filename' const.
4964         (dwarf2_const_value_attr): Make 'bytes' const.
4965         (read_signatured_type_reader): Make 'info_ptr' const.
4966         (decode_locdesc): Constify.
4967         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
4968         const.
4969         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
4970         'mac_end', and return type const.
4971         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
4972         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
4973         type const.
4974         (per_cu_header_read_in): Constify.
4975         * symfile.h (dwarf2_get_section_info): Update.
4976
4977 2013-04-12  Tom Tromey  <tromey@redhat.com>
4978
4979         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
4980
4981 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
4982
4983         * NEWS: Mention "show configuration", --configuration.
4984         * top.c (print_gdb_configuration): New function, displays the
4985         details about GDB configure-time parameters.
4986         (print_gdb_version): Mention "show configuration".
4987         * cli/cli-cmds.c (show_configuration): New function.
4988         (_initialize_cli_cmds): Add the "show configuration" command.
4989         * main.c (captured_main) <print_configuration>: New static var.
4990         <long_options>: Use it.
4991         If --configuration was given, call print_gdb_configuration.
4992
4993 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4994             Pedro Alves  <palves@redhat.com>
4995
4996         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
4997         (generated_files): Add gcore.
4998         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
4999         HAVE_NATIVE_GCORE_HOST.
5000         (gcore): New.
5001         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5002         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5003         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5004         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5005         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5006         Add HAVE_NATIVE_GCORE_HOST.
5007         * configure: Regenerate.
5008         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5009         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
5010         AC_CONFIG_FILES for gcore.
5011         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
5012         gdb_have_gcore.
5013         * gdb_gcore.sh: Rename to ...
5014         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
5015         and GCORE_TRANSFORM_NAME substitutions.
5016
5017         Fix parsing tabs in ${gdb_target_obs}.
5018         * configure.tgt (gdb_have_gcore): Replace case with for and if.
5019
5020 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5021
5022         * remote.c (unpush_and_perror): Add output message final dot.
5023
5024 2013-04-11  Yao Qi  <yao@codesourcery.com>
5025
5026         * tracepoint.c (tfile_interp_line): Fit parameters line and
5027         utpp in one line.
5028
5029 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
5030
5031         * solib.c (solib_map_sections): Remove code overwriting
5032         SO->SO_NAME with the bfd's filename.
5033
5034 2013-04-10  Pedro Alves  <palves@redhat.com>
5035
5036         * cli/cli-decode.c (integer_unlimited_completer): New function.
5037         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5038         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5039         completer.
5040         * cli/cli-setshow.c: Include "cli/cli-utils.h".
5041         (is_unlimited_literal): New function.
5042         (do_set_command): Handle literal "unlimited" arguments.
5043         * frame.c (_initialize_frame) <set backtrace limit>: Document
5044         "unlimited".
5045         * printcmd.c (_initialize_printcmd) <set print
5046         max-symbolic-offset>: Add help text.
5047         * record-full.c (_initialize_record_full) <set record full
5048         insn-number-max>: Likewise.
5049         * record.c (_initialize_record) <set record
5050         instruction-history-size, set record function-call-history-size>:
5051         Add help text.
5052         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5053         help text.
5054         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5055         Likewise.
5056         * source.c (_initialize_source) <set listsize>: Add help text.
5057         * utils.c (initialize_utils) <set height, set width>: Likewise.
5058         <set pagination>: Mention "set height unlimited".
5059         * valprint.c (_initialize_valprint) <set print elements, set print
5060         repeats>: Document "unlimited".
5061
5062 2013-04-10  Pedro Alves  <palves@redhat.com>
5063
5064         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5065         instead of disconnect_tracing.
5066         * infcmd.c (detach_command, disconnect_command): Call
5067         query_if_trace_running.  Adjust.
5068         * top.c: Include "tracepoint.h".
5069         (quit_target): Delete.  Contents moved ...
5070         (quit_force): ... here.  Wrap each stage of teardown in
5071         TRY_CATCH.  Call disconnect_tracing before detaching.
5072
5073 2013-04-10  Hui Zhu  <hui@codesourcery.com>
5074             Yao Qi  <yao@codesourcery.com>
5075
5076         * configure.ac: Check libbabeltrace is installed.
5077         * config.in: Regenerate.
5078         * configure: Regenerate.
5079         * Makefile.in (LIBBABELTRACE): New.
5080         (CLIBS): Add LIBBABELTRACE.
5081         * ctf.c: Include "exec.h".
5082         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5083         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5084         (ctf_save_metadata_header): Define new type aliases in
5085         metadata.
5086         (ctf_write_header): Define event type "tsv_def" and "tp_def"
5087         in metadata.  Start a new faked packet for trace status.
5088         (ctf_write_status): Write trace status to CTF.
5089         (ctf_write_uploaded_tsv): Write TSV to CTF.
5090         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5091         (ctf_write_definition_end): End the faked packet.
5092
5093         (ctx, ctf_iter, trace_dirname): New.
5094         (start_pos): New variable.
5095         (ctf_destroy, ctf_open_dir, ctf_open): New.
5096         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5097         macros.
5098         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5099         (ctf_fetch_registers, ctf_xfer_partial): New.
5100         (ctf_get_trace_state_variable_value): New.
5101         (ctf_get_tpnum_from_frame_event): New.
5102         (ctf_get_traceframe_address): New.
5103         (ctf_trace_find, ctf_has_stack): New.
5104         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5105         (ctf_get_trace_status, ctf_read_status): New.
5106         (_initialize_ctf): New.
5107         * tracepoint.c (get_tracepoint_number): New
5108         (get_uploaded_tsv): Remove 'static'.
5109         (struct traceframe_info, trace_regblock_size): Move it to ...
5110         * tracepoint.h: ... here.
5111         (get_tracepoint_number): Declare it.
5112         (get_uploaded_tsv): Declare it.
5113
5114         * NEWS: Mention new configure option.
5115
5116 2013-04-10  Pedro Alves  <palves@redhat.com>
5117             Hui Zhu  <hui@codesourcery.com>
5118
5119         * breakpoint.c (dprintf_re_set): New.
5120         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5121         to dprintf_re_set.
5122
5123 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
5124
5125         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5126         Remove solib-svr4.o from the list.
5127
5128 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
5129
5130         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5131         Use gdb_assert_not_reached instead of invalid boolean expression.
5132
5133 2013-04-09  Pedro Alves  <palves@redhat.com>
5134
5135         * remote.c (unpush_and_perror): New function.
5136         (readchar, remote_serial_write): Use it.
5137
5138 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
5139
5140         * NEWS: Mention new btrace RSP packets.
5141
5142 2013-04-08  Tom Tromey  <tromey@redhat.com>
5143
5144         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5145         long.
5146
5147 2013-04-08  Tom Tromey  <tromey@redhat.com>
5148
5149         * maint.c (print_bfd_section_info): Print the section index.
5150         * symmisc.c (dump_msymbols): Print the section index.
5151
5152 2013-04-08  Tom Tromey  <tromey@redhat.com>
5153
5154         PR symtab/8424:
5155         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5156         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5157         * breakpoint.c (resolve_sal_pc): Update.
5158         * elfread.c (elf_gnu_ifunc_record_cache): Update.
5159         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5160         (minsym_lookup_iterator_cb): Use it.
5161         (default_read_var_value): Update.
5162         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5163         Update.
5164         * infcmd.c (jump_command): Update.
5165         * linespec.c (minsym_found): Update.
5166         * maint.c (maintenance_translate_address): Update.
5167         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5168         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5169         * parse.c (write_exp_msymbol): Update.
5170         * printcmd.c (address_info): Update.
5171         * psymtab.c (find_pc_sect_psymbol): Update.
5172         (fixup_psymbol_section): Check SYMBOL_SECTION, not
5173         SYMBOL_OBJ_SECTION.
5174         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5175         Don't initialize SYMBOL_OBJ_SECTION.
5176         * spu-tdep.c (spu_catch_start): Update.
5177         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5178         * symmisc.c (dump_msymbols, print_symbol): Update.
5179         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
5180         how fallback section is computed.
5181         (fixup_symbol_section): Update.
5182         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5183         Update.
5184         (allocate_symbol, initialize_symbol, allocate_template_symbol):
5185         Initialize SYMBOL_SECTION.
5186         * symtab.h (struct general_symbol_info) <section>: Update comment.
5187         <obj_section>: Remove.
5188         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
5189         (SYMBOL_OBJFILE): New macro.
5190
5191 2013-04-08  Tom Tromey  <tromey@redhat.com>
5192
5193         * coffread.c (record_minimal_symbol): Update.
5194         * dbxread.c (record_minimal_symbol): Update.
5195         * elfread.c (record_minimal_symbol): Update.
5196         * machoread.c (macho_symtab_add_minsym): Update.
5197         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5198         Update.
5199         * minsyms.c (prim_record_minimal_symbol): Update.
5200         (prim_record_minimal_symbol_full): Remove 'bfd_section'
5201         argument.
5202         (prim_record_minimal_symbol_and_info): Likewise.
5203         * minsyms.h (prim_record_minimal_symbol_full)
5204         (prim_record_minimal_symbol_and_info): Update.
5205         * symtab.c (allocate_symbol, initialize_symbol)
5206         (allocate_template_symbol): Initialize SYMBOL_SECTION.
5207         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5208         Update.
5209
5210 2013-04-08  Tom Tromey  <tromey@redhat.com>
5211
5212         PR symtab/8423:
5213         * solib-som.c (som_solib_section_offsets): Use BFD section
5214         indices.  Set offsets for all sections.
5215         * somread.c (som_symtab_read): Compute BFD section for
5216         symbol.  Use prim_record_minimal_symbol_and_info.
5217         (som_symfile_read): Fix comment.
5218         (struct find_section_offset_arg): New.
5219         (find_section_offset, set_section_index): New functions.
5220         (som_symfile_offsets): Use set_section_index to compute
5221         section indices.
5222
5223 2013-04-08  Tom Tromey  <tromey@redhat.com>
5224
5225         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5226         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5227         gdb_bfd_section_index.
5228         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5229         New functions.
5230         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5231         Declare.
5232         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5233         Update.
5234         * objfiles.c (add_to_objfile_sections_full): New function.
5235         (add_to_objfile_sections): Use it.
5236         (build_section_table): Rewrite.
5237         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
5238         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5239         (struct objfile) <sections>: Update comment.
5240         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5241         is NULL.
5242         (ALL_OBJSECTIONS): Use it.
5243         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5244         * solib-frv.c (frv_relocate_main_executable): Update.
5245         * solib-target.c (solib_target_relocate_section_addresses):
5246         Use gdb_bfd_section_index.
5247         * symfile.c (build_section_addr_info_from_section_table):
5248         Use gdb_bfd_section_index.
5249         (build_section_addr_info_from_bfd, place_section): Likewise.
5250         * symtab.c (fixup_section): Update.
5251         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5252
5253 2013-04-08  Tom Tromey  <tromey@redhat.com>
5254
5255         * minsyms.h (struct bound_minimal_symbol): New.
5256         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5257         Remove objfile argument.
5258         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5259         Return bound_minimal_symbol.
5260         * minsyms.c (lookup_minimal_symbol_by_pc_1)
5261         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5262         Return bound_minimal_symbol.
5263         (in_gnu_ifunc_stub): Update.
5264         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5265         Remove 'objfile_p' argument.
5266         (lookup_solib_trampoline_symbol_by_pc): Update.
5267         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5268         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5269         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5270         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5271         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5272         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5273         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5274         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5275         stack.c, symtab.c, tui/tui-disasm.c: Update.
5276
5277 2013-04-08  Tom Tromey  <tromey@redhat.com>
5278
5279         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
5280         Use symbol's obstack, not an objfile.
5281         * coffread.c (process_coff_symbol): Update.
5282         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
5283         * jv-lang.c (add_class_symbol): Update.
5284         * mdebugread.c (new_symbol): Update.
5285         * minsyms.c (prim_record_minimal_symbol_full)
5286         (terminate_minimal_symbol_table): Update.
5287         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
5288         * stabsread.c (define_symbol, read_enum_type): Update.
5289         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
5290         Handle Ada specially.
5291         (symbol_set_language): Add 'obstack' argument.
5292         (symbol_set_names): Update.
5293         (symbol_natural_name, symbol_demangled_name): Always use
5294         ada_decode_symbol.
5295         * symtab.h (struct general_symbol_info)
5296         <language_specific::obstack>: New field.
5297         <ada_mangled>: New field.
5298         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
5299         (symbol_set_language): Update.
5300
5301 2013-04-08  Tom Tromey  <tromey@redhat.com>
5302
5303         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
5304         Take an obstack, not an objfile.
5305         (symbol_set_names): Update.
5306         * symtab.h (symbol_set_demangled_name): Update.
5307
5308 2013-04-08  Tom Tromey  <tromey@redhat.com>
5309
5310         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
5311         allocate_symbol.
5312         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
5313         (read_func_scope): Call allocate_template_symbol.
5314         (new_symbol_full): Call allocate_symbol.
5315         * jit.c (finalize_symtab): Call allocate_symbol.
5316         * jv-lang.c (add_class_symbol): Call allocate_symbol.
5317         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
5318         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5319         (common_block_end): Call allocate_symbol.
5320         * symtab.c (allocate_symbol, initialize_symbol)
5321         (allocate_template_symbol): New functions.
5322         * symtab.c (allocate_symbol, initialize_symbol)
5323         (allocate_template_symbol): Declare.
5324         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
5325
5326 2013-04-08  Pedro Alves  <palves@redhat.com>
5327             Keith Seitz  <keiths@redhat.com>
5328
5329         * breakpoint.c (create_breakpoint): Rename
5330         "parse_condition_and_thread" parameter to "parse_arg".  Update
5331         describing comment.  If !PARSE_ARG, then error out if ARG is not
5332         the empty string after extracting the location.
5333         * breakpoint.h (create_breakpoint): Rename
5334         "parse_condition_and_thread" parameter to "parse_arg".
5335
5336 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
5337
5338         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
5339
5340 2013-04-07  Yao Qi  <yao@codesourcery.com>
5341
5342         * remote.c (remote_trace_find): Change type of parameters 'addr1'
5343         and 'addr2' to CORE_ADDR.
5344         * target.c (update_current_target): Update.
5345         * target.h (struct target_ops) <to_trace_find>: Change parameter
5346         type to CORE_ADDR.
5347         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
5348         'addr2' to CORE_ADDR.
5349         (tfile_trace_find): Likewise.
5350         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
5351         Change local variable 'addr' to type CORE_ADDR.
5352         * tracepoint.h (tfind_1): Update declaration.
5353
5354 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
5355
5356         * windows-nat.c (windows_get_absolute_argv0): Move from here...
5357         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
5358         Include main.h.
5359
5360         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
5361         here...
5362         * main.h (windows_get_absolute_argv0): ...to here.
5363
5364 2013-04-05  Doug Evans  <dje@google.com>
5365
5366         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
5367         (read_cutu_die_from_dwo): Add comments.
5368         (read_structure_type): Update comment.
5369         (read_enumeration_type, read_namespace_type): Update comment.
5370         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
5371
5372 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5373
5374         Convert man pages to texinfo, new gdbinit.5 texinfo page.
5375         * Makefile.in (gdb.z): Remove.
5376         (install-only): Remove $(man1dir) and gdb.1 installation.
5377         * gdb.1: Remove.
5378
5379 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5380
5381         Fix compatibility with Linux kernel 3.8.3.
5382         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
5383         to more inner block.  Remove parsing of NUMBER from outer block.
5384         Parse NUMBER only if KEYWORD has been identified.
5385
5386 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5387
5388         Fix variable name shadowing.
5389         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
5390         filename to mapsfilename and update its uses.
5391
5392 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
5393
5394         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
5395         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
5396         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
5397         details of the problem.
5398
5399 2013-04-04  Pedro Alves  <palves@redhat.com>
5400             Hui Zhu  <hui@codesourcery.com>
5401
5402         * breakpoint.c (validate_commands_for_breakpoint): If validating a
5403         tracepoint, reset its STEP_COUNT and call validate_actionline.
5404
5405 2013-04-03  Doug Evans  <dje@google.com>
5406
5407         * dwarf2read.c (read_die_and_siblings_1): Renamed from
5408         read_die_and_siblings.
5409         (read_die_and_siblings): New function.
5410         (read_cutu_die_from_dwo): Dump die if requested.
5411         (read_die_and_children): Call read_full_die_1 and
5412         read_die_and_siblings_1.
5413         (read_full_die): Dump die if requested.
5414
5415         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
5416
5417         * dwarf2read.c (struct dwo_file): New member comp_dir.
5418         Rename member name to dwo_name.  All uses updated.
5419         (hash_dwo_file): Include comp_dir in computation.
5420         (eq_dwo_file): Ditto.
5421         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
5422         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
5423
5424         * psymtab.c (read_psymtabs_with_fullname): Don't call
5425         psymtab_to_fullname if the basenames are different.
5426
5427 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5428
5429         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
5430         New entry about "fullname" presence.
5431
5432 2013-04-03  Pedro Alves  <palves@redhat.com>
5433
5434         * NEWS: Mention x86_64/Cygwin as new native configuration.
5435
5436 2013-04-02  Doug Evans  <dje@google.com>
5437
5438         * dwarf2read.c (read_structure_type): Fix typo in comment.
5439
5440 2013-04-02  Pedro Alves  <palves@redhat.com>
5441
5442         * NEWS: Mention "set/show debug aarch64", "set/show debug
5443         coff-pe-read" and "set/show debug mach-o".
5444
5445 2013-04-02  Pedro Alves  <palves@redhat.com>
5446
5447         * NEWS: Mention "set/show remote trace-buffer-size-packet".
5448
5449 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
5450
5451         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
5452         gdb_string.h is now in common/.
5453
5454 2013-04-02  Pedro Alves  <palves@redhat.com>
5455
5456         * NEWS: Move "set debug notification" and "set trace-buffer-size"
5457         under "New options".
5458
5459 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5460
5461         Revert this patch:
5462         PR gdb/15275
5463         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5464
5465 2013-04-02  Pedro Alves  <palves@redhat.com>
5466
5467         PR gdb/15275
5468
5469         * remote.c (send_interrupt_sequence): Use remote_serial_write.
5470         (remote_serial_write): New function.
5471         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
5472
5473 2013-04-01  Jiong Wang  <jiwang@tilera.com>
5474
5475         * NEWS: Mention TILE-Gx in "New native configurations" and
5476         "New targets" sections.
5477
5478 2013-04-01  Doug Evans  <dje@google.com>
5479
5480         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
5481         (process_enumeration_scope): Simplify.
5482
5483         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
5484         type_unit_group ...
5485         (struct signatured_type): ... to here.
5486         (sig_type_ptr): New typedef.
5487         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
5488         out of union 't'.  All uses updated.
5489         (dw2_get_file_names_reader): Assert not called for a type unit.
5490         (dw2_get_file_names): Assert not called for a type unit or type
5491         unit group.
5492         (build_type_psymtabs_reader): Assert called for a type unit.
5493         (build_type_psymtab_dependencies): Assert called for a type unit group.
5494
5495         * dwarf2read.c (free_dwo_file): Add comment.
5496         (dwarf2_per_objfile_free): Unref dwp bfd.
5497
5498 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
5499
5500         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
5501         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
5502         (read_pe_exported_syms): Remove unused 'exportix'.
5503         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
5504         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
5505         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
5506
5507 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
5508
5509         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
5510         (print_it_watchpoint): Remove unused 'bl'.
5511         (say_where): Remove unused 'uiout'.
5512         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
5513         (bkpt_breakpoint_hit): Remove unused 'b'.
5514         (internal_bkpt_print_it): Remove unused 'uiout'.
5515         * buildsym.c (augment_type_symtab): Remove unused 'i'.
5516
5517 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
5518
5519         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
5520         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
5521
5522 2013-03-29  Doug Evans  <dje@google.com>
5523
5524         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
5525         Delete arg is_dwp.  All callers updated.
5526         (open_dwp_file): New function.
5527         (open_and_init_dwp_file): Call it.
5528         (get_dwp_file): New function.
5529         (lookup_dwo_cutu): Call it.
5530
5531         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
5532         unnecessary, cleanup.
5533
5534         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
5535
5536         * dwarf2read.c (read_cutu_die_from_dwo): New function.
5537         (lookup_dwo_unit): New function.
5538         (init_cutu_and_read_dies): Move DWO handling to new functions.
5539
5540         * dwarf2read.c (struct signatured_type): Tweak comment.
5541         (struct dwo_unit): Tweak comment.
5542         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
5543         (create_dwo_debug_info_hash_table): Tweak comment.
5544         (dwarf2_per_cu_offset_and_type): Tweak comment.
5545
5546         * dwarf2read.c (lookup_signatured_type): Remove complaint about
5547         missing .debug_types section.
5548
5549 2013-03-29  Yao Qi  <yao@codesourcery.com>
5550
5551         * corelow.c: Include "completer.h".
5552         (_initialize_corelow): Call add_target_with_completer with
5553         argument 'filename_completer'.
5554         * tracepoint.c: Likewise.
5555         * exec.c (_initialize_exec): Likewise.
5556         * target.c (add_target): Rename to ...
5557         (add_target_with_completer): ... this.  Call set_cmd_completer
5558         if parameter completer is not NULL.
5559         (add_target): New.
5560         * target.h: Include "command.h".
5561         (add_target_with_completer): Declare it.
5562
5563 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
5564
5565         * coffread.c (is_import_fixup_symbol): New function.
5566         (record_minimal_symbol): Use is_import_fixup_symbol to
5567         detect import fixup symbols, and discard them.
5568
5569 2013-03-28  Doug Evans  <dje@google.com>
5570
5571         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
5572         types hash table until we know we need it.
5573
5574         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
5575         index numbers.
5576
5577         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
5578         All callers updated.
5579         (dw2_print_stats): Print #read CUs too.
5580         (dump_die_shallow): Print signatured types better.
5581
5582         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
5583         info_or_types_section to section.  All uses updated.
5584         (struct dwo_unit): Ditto.
5585
5586 2013-03-28  Pedro Alves  <palves@redhat.com>
5587
5588         * NEWS (New options): New section.
5589         (New options): Mention set/show remote trace-status-packet.
5590         * remote.c (PACKET_qTStatus): New enumeration value.
5591         (remote_get_trace_status): Skip sending qTStatus if the packet is
5592         disabled.  Use packet_ok.
5593         (_initialize_remote): Register a configuration command for
5594         qTStatus packet.
5595
5596 2013-03-28  Doug Evans  <dje@google.com>
5597
5598         * symfile.c (find_separate_debug_file): Add comment.
5599         (terminate_after_last_dir_separator): Tweak comment.
5600
5601         * dwarf2read.c (create_partial_symtab): Add forward decl.
5602         (create_partial_symtab): Move to be closer to other psymtab functions.
5603         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
5604
5605         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
5606         (compute_symtab_includes): Remove unnecessary forward declaration.
5607         (die_needs_namespace): Add comment marking group of functions for
5608         dwarf2 name computation.
5609
5610         * typeprint.c (_initialize_typeprint): Improve type help text.
5611
5612         * python/python.c (finish_python_initialization): Provide suggestion
5613         for how to tell gdb to find its python files.
5614
5615 2013-03-28  Pedro Alves  <palves@redhat.com>
5616
5617         PR gdb/15294
5618
5619         * source.c (_initialize_source): Change back "set listsize" to an
5620         integer command.
5621
5622 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
5623
5624         PR gdb/15275
5625         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5626
5627 2013-03-27  Pedro Alves  <palves@redhat.com>
5628
5629         * top.c (history_size): Rename to ...
5630         (history_size_setshow_var): ... this.  Add comment.
5631         (show_commands): Use readline's 'history_length' instead of
5632         computing the history length by calling history_get in a loop.
5633         (set_history_size_command): Error out for sizes over INT_MAX.
5634         Restore previous history size on invalid size.
5635         (init_history): If HISTSIZE is negative, leave the history size as
5636         zero.  Add comments.
5637         (init_main): Adjust.
5638
5639 2013-03-27  Pedro Alves  <palves@redhat.com>
5640
5641         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
5642         coff_pe_read" command to "set debug coff-pe-read".
5643
5644 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
5645
5646         * record.c (command_size_to_target_size): Fix size comparison.
5647         Change parameter type from pointer to integer to integer.
5648         Update all users.
5649
5650 2013-03-27  Pierre Muller  <muller@sourceware.org>
5651
5652         * windows-nat.c (handle_output_debug_string): Avoid typecast
5653         from integer of different size warning.
5654
5655 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
5656
5657         * windows-nat.c (handle_output_debug_string): Add empty line
5658         after local block variable definition.
5659
5660 2013-03-26  Pedro Alves  <palves@redhat.com>
5661
5662         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
5663         (net_open): Make 'polls' local unsigned.
5664
5665 2013-03-26  Pedro Alves  <palves@redhat.com>
5666
5667         * remote.c (_initialize_remote): Make "set remoteaddresssize"
5668         a zuinteger command instead of uinteger.
5669
5670 2013-03-26  Pedro Alves  <palves@redhat.com>
5671
5672         * record-full.c (record_full_insn_num): Make it unsigned.
5673         (record_full_check_insn_num, record_full_message)
5674         (record_full_registers_change, record_full_xfer_partial): Remove
5675         record_full_insn_max_num check (it's always != 0).
5676         (record_full_info, record_full_restore): Use %u as format string.
5677         (): Use %u as format string.
5678         (set_record_full_insn_max_num): Remove record_full_insn_max_num
5679         check (it's always != 0).
5680
5681 2013-03-26  Pedro Alves  <palves@redhat.com>
5682
5683         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
5684         and "set dcache size" commands zuinteger instead of uinteger.
5685
5686 2013-03-26  Pedro Alves  <palves@redhat.com>
5687
5688         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
5689         command zuinteger instead of uinteger.
5690
5691 2013-03-26  Pedro Alves  <palves@redhat.com>
5692
5693         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
5694         zuinteger instead of uinteger.
5695
5696 2013-03-26  Pedro Alves  <palves@redhat.com>
5697
5698         * record.c (record_insn_history_size_setshow_var)
5699         (record_call_history_size_setshow_var): New globals.
5700         (command_size_to_target_size): New function.
5701         (cmd_record_insn_history, cmd_record_call_history): Use
5702         command_size_to_target_size instead of cast.
5703         (validate_history_size, set_record_insn_history_size)
5704         (set_record_call_history_size): New functions.
5705         (_initialize_record): Install set_record_insn_history_size and
5706         set_record_call_history_size as "set" hooks of "set record
5707         instruction-history-size" and "set record
5708         function-call-history-size".
5709
5710 2013-03-26  Pedro Alves  <palves@redhat.com>
5711
5712         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
5713         use with history_max_entries use.  Remove FIXME note.
5714
5715 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
5716
5717         * record-btrace.c (record_btrace_close): Call
5718         record_btrace_auto_disable.
5719
5720 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
5721
5722         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
5723
5724 2013-03-25  Doug Evans  <dje@google.com>
5725
5726         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
5727
5728 2013-03-25  Tom Tromey  <tromey@redhat.com>
5729
5730         PR symtab/11462:
5731         * c-exp.y (exp): Add new productions for destructors after '.' and
5732         '->'.
5733         (write_destructor_name): New function.
5734
5735 2013-03-25  Tom Tromey  <tromey@redhat.com>
5736
5737         PR c++/9197:
5738         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
5739         value_struct_elt, not lookup_struct_elt_type.
5740         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5741         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
5742         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
5743
5744 2013-03-25  Yao Qi  <yao@codesourcery.com>
5745
5746         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
5747         instead of '_mkdir'.
5748
5749 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
5750
5751         * windows-nat.c (windows_get_absolute_argv0): New function.
5752         * windows-nat.h: Add its prototype.
5753
5754         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
5755         Use IS_DIR_SEPARATOR instead of looking for a character inside
5756         SLASH_STRING.  Include filenames.h.
5757         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
5758         relocate_gdb_directory works when passed gdb_program_name.
5759         Include windows-nat.h.
5760
5761 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5762
5763         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
5764         * remote.c (trace_error): Remove the special handling of '2'.
5765         (readchar) <SERIAL_EOF>
5766         (readchar) <SERIAL_ERROR>
5767         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
5768         (remote_get_trace_status): Call throw_exception if EX is
5769         TARGET_CLOSE_ERROR.
5770         * utils.c (perror_with_name): Rename to ...
5771         (throw_perror_with_name): ... here.  New parameter errcode, describe it
5772         in the function comment.
5773         (perror_with_name): New function wrapper.
5774         * utils.h (enum errors): New stub declaration.
5775         (throw_perror_with_name): New declaration.
5776
5777 2013-03-22  Pedro Alves  <palves@redhat.com>
5778             Yao Qi  <yao@codesourcery.com>
5779             Mark Kettenis  <kettenis@gnu.org>
5780
5781         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
5782         Don't let the user set the value to UINT_MAX directly.
5783         <var_integer>: Don't let the user set the value to INT_MAX
5784         directly.
5785
5786 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5787
5788         * remote.c (remote_unpush_target): New function.
5789         (remote_open_1): Remove two pop_target calls, update one comment, add
5790         comment to target_preopen call.  Replace pop_target call by
5791         remote_unpush_target call.
5792         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
5793         pop_target calls by remote_unpush_target calls.
5794
5795 2013-03-22  Pedro Alves  <palves@redhat.com>
5796
5797         * linux-nat.c (linux_child_follow_fork): Don't call
5798         linux_enable_event_reporting.
5799         (linux_handle_extended_wait): Don't call
5800         linux_enable_event_reporting.
5801
5802 2013-03-22  Pedro Alves  <palves@redhat.com>
5803
5804         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
5805         use it to rewrite the trampoline buffers with type gdb_byte[], and
5806         undefine the macro.  Remove char* cast.
5807
5808 2013-03-21  Doug Evans  <dje@google.com>
5809
5810         New commands "mt set per-command {space,time,symtab} {on,off}".
5811         * NEWS: Add entry.
5812         * event-top.c: #include "maint.h".
5813         * main.c: #include "maint.h".
5814         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
5815         timeval-utils.h, maint.h, cli/cli-setshow.h.
5816         (per_command_time, per_command_space): New static globals.
5817         (per_command_symtab): New static global.
5818         (per_command_setlist, per_command_showlist): New static globals.
5819         (struct cmd_stats): Move here from utils.c.
5820         (set_per_command_time): Renamed from set_display_time in utils.c
5821         and moved here.  All callers updated.
5822         (set_per_command_space): Renamed from set_display_space in utils.c
5823         and moved here.  All callers updated.
5824         (count_symtabs_and_blocks): New function.
5825         (report_command_stats): Moved here from utils.c.  Add support for
5826         printing symtab stats.  Only print data if enabled before command
5827         executed.
5828         (make_command_stats_cleanup): Ditto.
5829         (sert_per_command_cmd, show_per_command_cmd): New functions.
5830         (_initialize_maint_cmds): Add new commands
5831         mt set per-command {space,time,symtab} {on,off}.
5832         * maint.h: New file.
5833         * top.c: #include "maint.h".
5834         * utils.c (reset_prompt_for_continue_wait_time): New function.
5835         (get_prompt_for_continue_wait_time): New function.
5836         * utils.h (reset_prompt_for_continue_wait_time): Declare
5837         (get_prompt_for_continue_wait_time): Declare.
5838         (make_command_stats_cleanup): Moved to maint.h.
5839         (set_display_time, set_display_space): Moved to maint.h and renamed
5840         to set_per_command_time, set_per_command_space.
5841         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
5842         parse_binary_operation and made non-static.  Don't call error,
5843         just return an error marker.  All callers updated.
5844         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
5845
5846 2013-03-21  Tom Tromey  <tromey@redhat.com>
5847
5848         * symfile.c (alloc_section_addr_info): Update header.  Don't set
5849         'num_sections' field.
5850         (build_section_addr_info_from_section_table): Set 'num_sections'.
5851         (build_section_addr_info_from_bfd): Likewise.
5852         (build_section_addr_info_from_objfile): Remove dead loop
5853         condition.
5854         (free_section_addr_info): Unconditionally call xfree.
5855         (relative_addr_info_to_section_offsets, addrs_section_sort)
5856         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
5857         condition.
5858         (syms_from_objfile_1): Remove dead 'if' condition.  Check
5859         'num_sections'.
5860         (add_symbol_file_command): Set 'num_sections'.
5861         * symfile-mem.c (symbol_file_add_from_memory): Set
5862         'num_sections'.
5863         * somread.c (som_symfile_offsets): Remove dead loop condition.
5864         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
5865         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
5866
5867 2013-03-21  Tom Tromey  <tromey@redhat.com>
5868
5869         * tracepoint.h (decode_agent_options): Add 'trace_string'
5870         argument.
5871         * tracepoint.c (decode_agent_options): Add 'trace_string'
5872         argument.
5873         (validate_actionline): Update.
5874         (collect_symbol): Add 'trace_string' argument.
5875         (struct add_local_symbols_data) <trace_string>: New field.
5876         (do_collect_symbol): Update.
5877         (add_local_symbols): Add 'trace_string' argument.
5878         (encode_actions_1): Update.
5879         (trace_dump_actions): Update.
5880         * dwarf2loc.c (access_memory): Update.
5881         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
5882         * ax-general.c (new_agent_expr): Update.
5883         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
5884         (gen_trace_for_return_address): Add argument.
5885         (trace_kludge, trace_string_kludge): Remove.
5886         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
5887         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
5888         (gen_trace_for_var): Add 'trace_string' argument.
5889         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
5890         (gen_printf, agent_eval_command_one): Update.
5891
5892 2013-03-21  Tom Tromey  <tromey@redhat.com>
5893
5894         PR exp/15109:
5895         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
5896         Handle FILENAME token.
5897
5898 2013-03-21  Tom Tromey  <tromey@redhat.com>
5899
5900         * c-exp.y (YYPRINT): Define.
5901         (c_print_token): New function.
5902
5903 2013-03-21  Tom Tromey  <tromey@redhat.com>
5904
5905         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
5906
5907 2013-03-21  Yao Qi  <yao@codesourcery.com>
5908
5909         * ctf.c: Include "gdb_stat.h".
5910         [USE_WIN32API]: New macro 'mkdir'.
5911         (ctf_start): Use permission bits macros if they are defined.
5912
5913 2013-03-20  Keith Seitz  <keiths@redhat.com>
5914
5915         * breakpoint.h (struct breakpoint): Add comment to
5916         extra_string indicating that this member is mallod'd.
5917         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
5918
5919 2013-03-20  Pedro Alves  <palves@redhat.com>
5920
5921         PR gdb/15289
5922
5923         * cli/cli-setshow.c (do_set_command)
5924         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
5925         the result of parsing the command argument.  Throw error if the
5926         value is greater than UINT_MAX.  Print the invalid value with
5927         plongest.
5928         <var_integer, var_zinteger>: Use LONGEST for variable holding the
5929         result of parsing the command argument.  Throw error if the value
5930         is greater than INT_MAX, not greater or equal.  Also throw error
5931         if the value is less than INT_MIN.  Print the invalid value with
5932         plongest.
5933         <var_zuinteger_unlimited>: Throw error if the value is greater
5934         than INT_MAX, not greater or equal.
5935         (do_show_command) <var_integer, var_zinteger,
5936         var_zuinteger_unlimited>: Use %d for printing int, not %u.
5937
5938 2013-03-20  Tom Tromey  <tromey@redhat.com>
5939
5940         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
5941         if possible.
5942         * dwarf2read.c (read_func_scope): Remove old FIXME.
5943         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
5944         not LOC_COMPUTED.
5945         * findvar.c (symbol_read_needs_frame, default_read_var_value):
5946         Unconditionally call via computed ops, if possible.
5947         * printcmd.c (address_info): Unconditionally call via computed ops,
5948         if possible.
5949         * stack.c (read_frame_arg): Unconditionally call via computed ops,
5950         if possible.
5951         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
5952         * tracepoint.c (scope_info): Unconditionally call via computed ops,
5953         if possible.
5954
5955 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5956             Tom Tromey  <tromey@redhat.com>
5957
5958         PR symtab/8421:
5959         * coffread.c (coff_register_index): New global.
5960         (process_coff_symbol, coff_read_enum_type): Set
5961         SYMBOL_ACLASS_INDEX.
5962         (_initialize_coffread): Initialize new global.
5963         * dwarf2loc.c (locexpr_find_frame_base_location)
5964         (dwarf2_block_frame_base_locexpr_funcs)
5965         (loclist_find_frame_base_location)
5966         (dwarf2_block_frame_base_loclist_funcs): New.
5967         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
5968         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
5969         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
5970         (dwarf2_block_frame_base_loclist_funcs): New.
5971         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
5972         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
5973         globals.
5974         (read_func_scope): Update.
5975         (fixup_go_packaging, mark_common_block_symbol_computed)
5976         (var_decode_location, new_symbol_full, dwarf2_const_value):
5977         Set SYMBOL_ACLASS_INDEX.
5978         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
5979         (_initialize_dwarf2_read): Initialize new globals.
5980         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
5981         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
5982         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
5983         globals.
5984         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
5985         (_initialize_mdebugread): Initialize new globals.
5986         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
5987         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
5988         (stab_register_index, stab_regparm_index): New globals.
5989         (define_symbol, read_enum_type, common_block_end): Set
5990         SYMBOL_ACLASS_INDEX.
5991         (_initialize_stabsread): Initialize new globals.
5992         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
5993         globals.
5994         (MAX_SYMBOL_IMPLS): New define.
5995         (register_symbol_computed_impl, register_symbol_block_impl)
5996         (register_symbol_register_impl)
5997         (initialize_ordinary_address_classes): New functions.
5998         (_initialize_symtab): Call initialize_ordinary_address_classes.
5999         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6000         (struct symbol_impl): New.
6001         (SYMBOL_ACLASS_BITS): New define.
6002         (struct symbol) <aclass, ops>: Remove fields.
6003         <aclass_index>: New field.
6004         (symbol_impls): Declare.
6005         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6006         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6007         (register_symbol_computed_impl, register_symbol_block_impl)
6008         (register_symbol_register_impl): Declare.
6009         (struct symbol_computed_ops): Add location_has_loclist.
6010         (struct symbol_block_ops): New.
6011         (SYMBOL_BLOCK_OPS): New.
6012         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6013
6014 2013-03-20  Tom Tromey  <tromey@redhat.com>
6015
6016         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6017         (print_partial_symbols, recursively_search_psymtabs): Use
6018         PSYMBOL_CLASS.
6019
6020 2013-03-20  Pierre Muller  <muller@sourceware.org>
6021
6022         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6023         addtion, subtraction, multiplication and division binary operator.
6024
6025 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6026
6027         Code cleanup.
6028         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6029         * bsd-kvm.c (bsd_kvm_close): Likewise.
6030         * bsd-uthread.c (bsd_uthread_close): Likewise.
6031         * corelow.c (core_close): Likewise.
6032         (core_close_cleanup): Remove parameter quitting from a caller.
6033         * event-top.c (async_disconnect): Likewise.
6034         * exec.c (exec_close_1): Remove parameter quitting.
6035         * go32-nat.c (go32_close): Likewise.
6036         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
6037         parameter quitting from a caller.
6038         * mips-linux-nat.c (super_close): Remove parameter quitting from the
6039         variable.
6040         (mips_linux_close): Remove parameter quitting.  Remove parameter
6041         quitting from a caller.
6042         * monitor.c (monitor_close): Remove parameter quitting.
6043         * monitor.h (monitor_close): Likewise.
6044         * record-btrace.c (record_btrace_close): Likewise.
6045         * record-full.c (record_full_close): Likewise.
6046         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6047         it also from fprintf_unfiltered.
6048         * remote-mips.c (mips_close): Remove parameter quitting.
6049         (mips_detach): Remove parameter quitting from a caller.
6050         * remote-sim.c (gdbsim_close): Remove parameter quitting.
6051         (gdbsim_close): Remove duplicate function comment.  Remove parameter
6052         quitting and remove it also from printf_filtered.
6053         * remote.c (remote_close): Remove parameter quitting.
6054         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6055         * target.c (update_current_target): Remove parameter int from to_close
6056         de_fault.
6057         (push_target, unpush_target, pop_target): Remove parameter quitting from
6058         a caller.
6059         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6060         Remove parameter quitting from a caller.
6061         (target_preopen): Remove parameter quitting from a caller.
6062         (target_close): Remove parameter quitting.  Remove parameter quitting
6063         from a caller two times.  Remove parameter quitting also from
6064         fprintf_unfiltered.
6065         * target.h (struct target_ops): Remove parameter quitting and as int
6066         from fields to_xclose and to_close.
6067         (extern struct target_ops current_target):
6068         (target_close, pop_all_targets): Remove parameter quitting.  Update the
6069         comment.
6070         (pop_all_targets_above): Remove parameter quitting.
6071         * top.c (quit_target): Remove parameter quitting from a caller.
6072         * tracepoint.c (tfile_close): Remove parameter quitting.
6073         * windows-nat.c (windows_close): Remove parameter quitting.
6074
6075 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
6076
6077         * windows-nat.c (handle_output_debug_string): Replace call
6078         to string_to_core_addr with call to strtoull.
6079
6080 2013-03-20  Yao Qi  <yao@codesourcery.com>
6081
6082         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6083         and write it to CTF metadata.
6084
6085 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
6086
6087         * windows-nat.c (handle_output_debug_string): Change type of n to
6088         SIZE_T to avoid crash on 64 bit systems.
6089
6090 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
6091
6092         * python/python-internal.h (HAVE_SNPRINTF)
6093         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6094         about redefinition of snprintf by pyerrors.h.
6095
6096 2013-03-15  Steve Ellcey  <sellcey@mips.com>
6097
6098         * remote-sim.c (sim_command_completer): Make char arguments const.
6099
6100 2013-03-15  Tom Tromey  <tromey@redhat.com>
6101
6102         PR c++/15116:
6103         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6104
6105 2013-03-14  Tom Tromey  <tromey@redhat.com>
6106
6107         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6108         New fields.
6109         (get_file_crc): Move from symfile.c.
6110         (gdb_bfd_crc): New function.
6111         * gdb_bfd.h (gdb_bfd_crc): Declare.
6112         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6113         * symfile.c (get_file_crc): Move to gdb_bfd.c.
6114         (separate_debug_file_exists): Use gdb_bfd_crc.
6115
6116 2013-03-14  Tom Tromey  <tromey@redhat.com>
6117
6118         * symfile.c (get_debug_link_info): Remove.
6119         (find_separate_debug_file_by_debuglink): Use
6120         bfd_get_debug_link_info.
6121
6122 2013-03-14  Tom Tromey  <tromey@redhat.com>
6123
6124         * symtab.c (error_in_psymtab_expansion): New function.
6125         (lookup_symbol_aux_quick)
6126         (basic_lookup_transparent_type_quick): Remove "last resort"
6127         code.  Use error_in_psymtab_expansion.
6128
6129 2013-03-14  Doug Evans  <dje@google.com>
6130             Jan Kratochvil  <jan.kratochvil@redhat.com>
6131
6132         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6133         any successful compare_filenames_for_search or FILENAME_CMP.
6134         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6135         * symtab.c (iterate_over_some_symtabs): Likewise.
6136
6137 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6138
6139         * source.c (print_source_lines_base): Make a local copy of
6140         symtab_to_fullname.
6141
6142 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
6143             Jan Kratochvil  <jan.kratochvil@redhat.com>
6144
6145         * source.c (print_source_lines_base): Suppress "file" for TUI.
6146
6147 2013-03-14  Keith Seitz  <keiths@redhat.com>
6148             Alan Matsuoka  <alanm@redhat.com>
6149
6150         PR c++/15203
6151         PR c++/15210
6152         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6153         TYPE_CODE_METHOD.
6154         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6155         symbols.
6156
6157 2013-03-14  Yao Qi  <yao@codesourcery.com>
6158
6159         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6160         status to tfile if trace is stopped by command 'tstop'.
6161
6162 2013-03-14  Yao Qi  <yao@codesourcery.com>
6163
6164         * tracepoint.c (tfile_write_status): Write trace notes and user
6165         name into tfile if they are not NULL.
6166
6167 2013-03-14  Hui Zhu  <hui@codesourcery.com>
6168             Yao Qi  <yao@codesourcery.com>
6169
6170         * Makefile.in (REMOTE_OBS): Add ctf.o.
6171         (SFILES): Add ctf.c.
6172         (HFILES_NO_SRCDIR): Add ctf.h.
6173         * ctf.c, ctf.h: New files.
6174         * tracepoint.c: Include 'ctf.h'.
6175         (collect_pseudocommand): Remove static.
6176         (trace_save_command): Parse option "-ctf".
6177         Produce different trace file writers per option.
6178         Adjust output message.
6179         (trace_save_tfile, trace_save_ctf): New.
6180         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6181         * mi/mi-main.c: Include 'ctf.h'.
6182         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
6183         trace_save_tfile or trace_save_ctf.
6184         * NEWS: Mention these changes.
6185
6186 2013-03-14  Yao Qi  <yao@codesourcery.com>
6187
6188         * tracepoint.c (trace_file_writer_xfree): New.
6189         (struct tfile_writer_data): New.
6190         (tfile_dtor, tfile_can_target_save, tfile_start): New.
6191         (tfile_write_header, tfile_write_regblock_type): New.
6192         (tfile_write_status, tfile_write_uploaded_tsv): New.
6193         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6194         (tfile_write_raw_data, (tfile_end): New.
6195         (tfile_write_ops): New global variable.
6196         (TRACE_WRITE_R_BLOCK): New macro.
6197         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6198         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6199         (TRACE_WRITE_V_BLOCK): New macro.
6200         (trace_save): Add extra one parameter WRITER.  Make it static.
6201         Use WRITER to writer trace.
6202         (tfile_trace_file_writer_new): New.
6203         (trace_save_command): Caller update.
6204         (trace_save_tfile): Write trace data in TFILE format.
6205         * tracepoint.h (struct trace_frame_write_ops): New.
6206         (struct trace_file_write_ops): New.
6207         (struct trace_file_writer): New.
6208         (trace_save): Remove its declaration.
6209         (trace_save_tfile): Declare it.
6210         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6211         instead of trace_save.
6212
6213 2013-03-13  Pedro Alves  <palves@redhat.com>
6214
6215         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6216
6217 2013-03-13  Pedro Alves  <palves@redhat.com>
6218
6219         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6220         commented out code.
6221         * demangle.c (current_demangling_style_string): Make it const.
6222         (set_demangling_command): Assert the demangling style is known.
6223         Remove all handling of unknown styles.  Set
6224         'current_demangling_style_string' to an element of the
6225         demangling_style_names array.
6226         (set_demangling_style): Delete.
6227         (_initialize_demangler): Set current_demangling_style_string to the
6228         element of the demangling_style_names array that corresponds to
6229         the default demangling style.  Remove FIXME note.  Don't call
6230         set_demangling_style.
6231         * gdb-demangle.h (set_demangling_style): Remove declaration.
6232
6233 2013-03-13  Pedro Alves  <palves@redhat.com>
6234
6235         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6236         fields const.
6237         (ada_make_symbol_completion_list): Make "text0" parameter const.
6238         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6239         * breakpoint.c (condition_completer): Make "text" and "word"
6240         parameters const.  Adjust.
6241         (check_tracepoint_command): Adjust to validate_actionline
6242         prototype change.
6243         (catch_syscall_completer): Make "text" and "word" parameters
6244         const.
6245         * cli/cli-cmds.c (show_user): Make "comname" local const.
6246         (valid_command_p): Make "command" parameter const.
6247         (alias_command): Make "alias_prefix" and "command_prefix" locals
6248         const.
6249         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6250         (add_alias_cmd): Make "name" and "oldname" parameters const.
6251         Adjust.  No longer make copy of OLDNAME.
6252         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6253         (add_setshow_cmd_full, add_setshow_enum_cmd)
6254         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6255         (add_setshow_filename_cmd, add_setshow_string_cmd)
6256         (add_setshow_string_noescape_cmd)
6257         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6258         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6259         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6260         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6261         Make "name" parameter const.
6262         (help_cmd): Rename "command" parameter to "arg".  New const local
6263         "command".
6264         (find_cmd): Make "command" parameter const.
6265         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
6266         deprecated_cmd_warning prototype change.
6267         (undef_cmd_error): Make "cmdtype" parameter const.
6268         (lookup_cmd): Make "line" parameter const.
6269         (deprecated_cmd_warning): Change type of "text" parameter to
6270         pointer to const char, from pointer to pointer to char.  Adjust.
6271         (lookup_cmd_composition): Make "text" parameter const.
6272         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6273         parameters const.
6274         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
6275         const.
6276         * cli/cli-script.c (validate_comname): Make "tem" local const.
6277         (define_command): New const local "tem_c".  Use it in calls to
6278         lookup_cmd.
6279         (document_command): Make "tem" and "comfull" locals const.
6280         (show_user_1): Make "prefix" and "name" parameters const.
6281         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
6282         const.
6283         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
6284         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
6285         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
6286         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
6287         (complete_on_enum, add_setshow_enum_cmd)
6288         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6289         (add_setshow_filename_cmd, add_setshow_string_cmd)
6290         (add_setshow_string_noescape_cmd)
6291         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6292         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6293         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
6294         Change prototypes, constifying strings.
6295         * completer.c (noop_completer, filename_completer): Make "text"
6296         and "prefix" parameters const.
6297         (location_completer, expression_completer)
6298         (complete_line_internal): Make "text" and "prefix" parameters
6299         const and adjust.
6300         (command_completer, signal_completer): Make "text" and "prefix"
6301         parameters const.
6302         * completer.h (noop_completer, filename_completer)
6303         (expression_completer, location_completer, command_completer)
6304         (signal_completer): Change prototypes.
6305         * corefile.c (complete_set_gnutarget): Make "text" and "word"
6306         parameters const.
6307         * cp-abi.c (cp_abi_completer): Likewise.
6308         * expression.h (parse_expression_for_completion): Change
6309         prototype.
6310         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
6311         parameters const.
6312         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
6313         * infrun.c (handle_completer): Make "text" and "word" parameters
6314         const.
6315         * interps.c (interpreter_completer): Make "text" and "word"
6316         parameters const.
6317         * language.h (struct language_defn)
6318         <la_make_symbol_completion_list>: Make "text" and "word"
6319         parameters const.
6320         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
6321         (parse_exp_in_context): Rename to ...
6322         (parse_exp_in_context_1): ... this.
6323         (parse_exp_in_context): Reimplement, with const hack from
6324         parse_exp_1.
6325         (parse_expression_for_completion): Make "string" parameter const.
6326         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
6327         to pointer to const char.  Adjust.
6328         (print_command_1): Make "exp" parameter const.
6329         (output_command): Rename to ...
6330         (output_command_const): ... this.  Make "exp" parameter const.
6331         (output_command): Reimplement.
6332         (x_command): Adjust.
6333         (display_command): Rename "exp" parameter to "arg".  New "exp"
6334         local, const version of "arg".
6335         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
6336         "cmd_name" local const.
6337         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
6338         call.
6339         (cmdpy_completer): Make "text" and "word" parameters const.
6340         (gdbpy_parse_command_name): Make "prefix_text2" local const.
6341         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
6342         const.
6343         * remote.c (_initialize_remote): Make "cmd_name" local const.
6344         * symtab.c (language_search_unquoted_string): Make "text" and "p"
6345         parameters const.  Adjust.
6346         (completion_list_add_fields): Make "sym_text", "text" and "word"
6347         parameters const.
6348         (struct add_name_data) <sym_text, text, word>: Make fields const.
6349         (default_make_symbol_completion_list_break_on): Make "text" and
6350         "word" parameters const.  Adjust locals.
6351         (default_make_symbol_completion_list)
6352         (make_symbol_completion_list, make_symbol_completion_type)
6353         (make_symbol_completion_list_fn): Make "text" and "word"
6354         parameters const.
6355         (make_file_symbol_completion_list): Make "text", "word" and
6356         "srcfile" parameters const.  Adjust locals.
6357         (add_filename_to_list): Make "text" and "word" parameters const.
6358         (struct add_partial_filename_data) <text, word>: Make fields
6359         const.
6360         (make_source_files_completion_list): Make "text" and "word"
6361         parameters const.
6362         * symtab.h (default_make_symbol_completion_list_break_on)
6363         (default_make_symbol_completion_list, make_symbol_completion_list)
6364         (make_symbol_completion_type enum type_code)
6365         (make_symbol_completion_list_fn make_file_symbol_completion_list)
6366         (make_source_files_completion_list): Change prototype.
6367         * top.c (execute_command): Adjust to pass pointer to pointer to
6368         const char to lookup_cmd, and to deprecated_cmd_warning prototype
6369         change.
6370         (set_verbose): Make "cmdname" local const.
6371         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
6372         and adjust.
6373         (validate_actionline): Make "line" parameter a pointer to const
6374         char, and adjust.
6375         (encode_actions_1): Make "action_exp" local const, and adjust.
6376         (encode_actions): Adjust.
6377         (replace_comma): Delete.
6378         (trace_dump_actions): Make "action_exp" and "next_comma" locals
6379         const, and adjust.  Don't frob the action string while splitting
6380         it at commas.  Instead, make a copy of each split substring in
6381         turn.
6382         (trace_dump_command): Adjust to validate_actionline prototype
6383         change.
6384         * tracepoint.h (decode_agent_options, decode_agent_options)
6385         (encode_actions, validate_actionline): Change prototypes.
6386         * valprint.h (output_command): Delete declaration.
6387         (output_command_const): Declare.
6388         * value.c (function_destroyer): Cast const away in xfree call.
6389
6390 2013-03-13  Pedro Alves  <palves@redhat.com>
6391
6392         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
6393         rather than casting 'const char * const *' to 'const char **'.
6394         * ada-lex.l (processInt): Make "trailer" local const.  Remove
6395         'const char **' cast.
6396         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
6397         locals, and use those as strtol output pointer, instead than doing
6398         invalid casts to from 'const char **' to 'char **'.
6399         (_initialize_demangle): Remove cast.
6400         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
6401         locals, and use those as strtol output pointer, instead than doing
6402         invalid casts to from 'const char **' to 'char **'.
6403         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
6404         casts.
6405         * stap-probe.c (stap_parse_register_operand)
6406         (stap_parse_single_operand): Likewise.
6407
6408 2013-03-13  Yao Qi  <yao@codesourcery.com>
6409
6410         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
6411         the last matched 'V' blcok in trace frame.
6412
6413 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
6414
6415         * NEWS: Create a new section for the next release branch.
6416         Rename the section of the current branch, now that it has
6417         been cut.
6418
6419 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
6420
6421         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
6422         * version.in: Bump version to 7.6.50.20130312-cvs.
6423
6424 2013-03-12  Keith Seitz  <keiths@redhat.com>
6425
6426         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
6427         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
6428         Remove temporary copy of input string.
6429         (mi_execute_command_wrapper): Make "cmd" const.
6430         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
6431         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
6432         Use const strings.
6433         (mi_parse): Make "cmd" const.
6434         Use const strings.
6435         * mi/mi-parse.h (mi_parse): Make "cmd" const.
6436
6437 2013-03-12  Keith Seitz  <keiths@redhat.com>
6438
6439         * ada-lang.c (ada_read_renaming_var_value): Pass const
6440         pointer to expression string to parse_exp_1.
6441         (create_excep_cond_exprs): Likewise.
6442         * ax-gdb.c (agent_eval_command_one): Likewise.
6443         (maint_agent_printf_command): Likewise.
6444         Constify much of the string handling/parsing.
6445         * breakpoint.c (set_breakpoint_condition): Pass const
6446         pointer to expression string to parse_exp_1.
6447         (update_watchpoint): Likewise.
6448         (parse_cmd_to_aexpr): Constify string handling.
6449         Pass const pointer to parse_exp_1.
6450         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
6451         (find_condition_and_thread): Likewise.
6452         Make TOK const.
6453         (watch_command_1): Make "arg" const.
6454         Constify string handling.
6455         Copy the expression string instead of changing the input
6456         string.
6457         (update_breakpoint_location): Pass const pointer to
6458         parse_exp_1.
6459         * eval.c (parse_and_eval_address): Make "exp" const.
6460         (parse_to_comma_and_eval): Make "expp" const.
6461         (parse_and_eval): Make "exp" const.
6462         * expression.h (parse_expression): Make argument const.
6463         (parse_exp_1): Make first argument const.
6464         * findcmd.c (parse_find_args): Treat "args" as const.
6465         * linespec.c (parse_linespec): Pass const pointer to
6466         linespec_expression_to_pc.
6467         (linespec_expression_to_pc): Make "exp_ptr" const.
6468         * parse.c (parse_exp_1): Make "stringptr" const.
6469         Make a copy of the expression to pass to parse_exp_in_context until
6470         this whole interface can be constified.
6471         (parse_expression): Make "string" const.
6472         * printcmd.c (ui_printf): Treat "arg" as const.
6473         Handle const strings.
6474         * tracepoint.c (validate_actionline): Pass const pointer to
6475         all calls to parse_exp_1.
6476         (encode_actions_1): Likewise.
6477         * value.h (parse_to_comma_and_eval): Make argument const.
6478         (parse_and_eval_address): Likewise.
6479         (parse_and_eval): Likewise.
6480         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
6481         (varobj_set_value): Likewise.
6482         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
6483         constify string handling.
6484         Pass const pointers to parse_and_eval_address and
6485         parse_to_comman_and_eval.
6486         * cli/cli-utils.c (skip_to_space): Rename to ...
6487         (skip_to_space_const): ... this. Handle const strings.
6488         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
6489         skip_to_space_const.
6490         (skip_to_space_const): Declare.
6491         * common/format.c (parse_format_string): Make "arg" const.
6492         Handle const strings.
6493         * common/format.h (parse_format_string): Make "arg" const.
6494         * gdbserver/ax.c (ax_printf): Make "format" const.
6495         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
6496         of the expression string.
6497
6498 2013-03-12  Hui Zhu  <hui@codesourcery.com>
6499
6500         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
6501
6502 2013-03-12  Yao Qi  <yao@codesourcery.com>
6503             Hui Zhu  <hui@codesourcery.com>
6504
6505         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
6506         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
6507         DW_OP_deref_size.
6508
6509 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
6510
6511         * ada-lex.l (rules): Only recognize 'thread' as a
6512         delimiter when followed by numerals, as for c-exp.y.
6513         Use new rewind_to_char function to rewind the input for
6514         expression-delimiting tokens.
6515         (rewind_to_char): New function.
6516
6517 2013-03-11  Pedro Alves  <palves@redhat.com>
6518             Jan Kratochvil  <jan.kratochvil@redhat.com>
6519
6520         * configure: Regenerate.
6521         * configure.ac (check dynamic export flag): Link python test with
6522         $PYTHON_LIBS.
6523
6524 2013-03-11  Doug Evans  <dje@google.com>
6525             Keith Seitz  <keiths@redhat.com>
6526
6527         * linespec.c (find_linespec_symbols): Call find_function_symbols
6528         first, and then call lookup_prefix_sym/find_method.
6529
6530 2013-03-11  Pedro Alves  <palves@redhat.com>
6531
6532         * charset.c (convert_between_encodings): Don't cast between
6533         different pointer to pointer types.  Instead, make the 'inp' local
6534         be of the type iconv expects.
6535         (wchar_iterate): Don't cast between different pointer to pointer
6536         types.  Instead, use new pointer local of the type iconv expects.
6537         * target.c (target_read_stralloc, target_fileio_read_stralloc):
6538         Add new local of type char pointer, and use it to get a
6539         char/string view of the byte buffer, instead of casting between
6540         pointer to pointer types.
6541
6542 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6543
6544         * remote.c (remote_set_trace_buffer_size): Move != operator
6545         to the start of next line to fix an ARI warning.
6546
6547 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6548
6549         * NEWS: Add record changes.
6550
6551 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6552
6553         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
6554         the instruction history disassembly.
6555         * disasm.c (dump_insns): Omit the pc prefix, if requested.
6556         * disasm.h (DISASSEMBLY_OMIT_PC): New.
6557
6558 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6559
6560         * Makefile.in (SFILES): Add record-btrace.c
6561         (COMMON_OBS): Add record-btrace.o
6562         * record-btrace.c: New.
6563         * objfiles.c: Include btrace.h.
6564         (free_objfile): call btrace_free_objfile.
6565
6566 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6567
6568         * target.c (target_call_history, target_call_history_from,
6569         target_call_history_range): New.
6570         * target.h (target_ops) <to_call_history, to_call_history_from,
6571         to_call_history_range>: New fields.
6572         (target_call_history, target_call_history_from,
6573         target_call_history_range): New declaration.
6574         * record.c (get_call_history_modifiers, cmd_record_call_history,
6575         record_call_history_size): New.
6576         (_initialize_record): Add the "record function-call-history" command.
6577         Add "set/show record function-call-history-size" commands.
6578         * record.h (record_print_flag): New.
6579
6580 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6581
6582         * target.h (target_ops) <to_insn_history, to_insn_history_from,
6583         to_insn_history_range>: New fields.
6584         (target_insn_history): New.
6585         (target_insn_history_from): New.
6586         (target_insn_history_range): New.
6587         * target.c (target_insn_history): New.
6588         (target_insn_history_from): New.
6589         (target_insn_history_range): New.
6590         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
6591         (record_insn_history_size): New.
6592         (get_insn_number): New.
6593         (get_context_size): New.
6594         (no_chunk): New.
6595         (get_insn_history_modifiers): New.
6596         (cmd_record_insn_history): New.
6597         (_initialize_record): Add "set/show record instruction-history-size"
6598         command. Add "record instruction-history" command.
6599
6600 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6601
6602         * record.h (record_disconnect): New.
6603         (record_detach): New.
6604         (record_mourn_inferior): New.
6605         (record_kill): New.
6606         * record-full.c (record_disconnect, record_detach,
6607         record_mourn_inferior, record_kill): Move to...
6608         * record.c: ...here.
6609         (DEBUG): New.
6610         (record_stop): New.
6611         (record_unpush): New.
6612         (cmd_record_stop): Call record_stop. Replace unpush_target
6613         call with record_unpush call.
6614         (record_disconnect, record_detach): Assert that the target
6615         is of record stratum. Call record_unpush, record_stop, and
6616         DEBUG.
6617         (record_mourn_inferior, record_kill): Assert that the target
6618         is of record stratum. Call record_unpush and DEBUG.
6619
6620 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6621
6622         * record-full.h, record-full.c (record_memory_query): Rename
6623         to ...
6624         (record_full_memory_query): ...this. Update all users.
6625         (record_arch_list_add_reg): Rename to ...
6626         (record_full_arch_list_add_reg): ...this. Update all users.
6627         (record_arch_list_add_mem): Rename to ...
6628         (record_full_arch_list_add_mem): ...this. Update all users.
6629         (record_arch_list_add_end): Rename to ...
6630         (record_full_arch_list_add_end): ...this. Update all users.
6631         (record_gdb_operation_disable_set): Rename to ...
6632         (record_full_gdb_operation_disable_set): ...this.
6633         Update all users.
6634
6635 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6636
6637         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
6638         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
6639         (RECORD_IS_REPLAY): Renamed to ...
6640         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
6641         (RECORD_FILE_MAGIC): Renamed to ...
6642         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
6643         (record_mem_entry): Renamed to ...
6644         (record_full_mem_entry): ... this. Updated all users.
6645         (record_reg_entry): Renamed to ...
6646         (record_full_reg_entry): ... this. Updated all users.
6647         (record_end_entry): Renamed to ...
6648         (record_full_end_entry): ... this. Updated all users.
6649         (record_type) <record_end, record_reg, record_mem>: Renamed
6650         to ...
6651         (record_full_type) <record_full_end, record_full_reg,
6652         record_full_mem>: ... this. Updated all users.
6653         (record_entry): Renamed to ...
6654         (record_full_entry): ... this. Updated all users.
6655         (record_core_buf_entry): Renamed to ...
6656         (record_full_core_buf_entry): ... this. Updated all users.
6657         (record_core_regbuf): Renamed to ...
6658         (record_full_core_regbuf): ... this. Updated all users.
6659         (record_core_start): Renamed to ...
6660         (record_full_core_start): ... this. Updated all users.
6661         (record_core_end): Renamed to ...
6662         (record_full_core_end): ... this. Updated all users.
6663         (record_core_buf_list): Renamed to ...
6664         (record_full_core_buf_list): ... this. Updated all users.
6665         (record_first): Renamed to ...
6666         (record_full_first): ... this. Updated all users.
6667         (record_list): Renamed to ...
6668         (record_full_list): ... this. Updated all users.
6669         (record_arch_list_head): Renamed to ...
6670         (record_full_arch_list_head): ... this. Updated all users.
6671         (record_arch_list_tail): Renamed to ...
6672         (record_full_arch_list_tail): ... this. Updated all users.
6673         (record_stop_at_limit): Renamed to ...
6674         (record_full_stop_at_limit): ... this. Updated all users.
6675         (record_insn_max_num): Renamed to ...
6676         (record_full_insn_max_num): ... this. Updated all users.
6677         (record_insn_num): Renamed to ...
6678         (record_full_insn_num): ... this. Updated all users.
6679         (record_insn_count): Renamed to ...
6680         (record_full_insn_count): ... this. Updated all users.
6681         (record_ops): Renamed to ...
6682         (record_full_ops): ... this. Updated all users.
6683         (record_core_ops): Renamed to ...
6684         (record_full_core_ops): ... this. Updated all users.
6685         (set_record_cmdlist): Renamed to ...
6686         (set_record_full_cmdlist): ... this. Updated all users.
6687         (show_record_cmdlist): Renamed to ...
6688         (show_record_full_cmdlist): ... this. Updated all users.
6689         (record_cmdlist): Renamed to ...
6690         (record_full_cmdlist): ... this. Updated all users.
6691         (record_beneath_to_resume_ops): Renamed to ...
6692         (record_full_beneath_to_resume_ops): ... this. Updated all users.
6693         (record_beneath_to_resume): Renamed to ...
6694         (record_full_beneath_to_resume): ... this. Updated all users.
6695         (record_beneath_to_wait_ops): Renamed to ...
6696         (record_full_beneath_to_wait_ops): ... this. Updated all users.
6697         (record_beneath_to_wait): Renamed to ...
6698         (record_full_beneath_to_wait): ... this. Updated all users.
6699         (record_beneath_to_store_registers_ops): Renamed to ...
6700         (record_full_beneath_to_store_registers_ops): ... this.
6701         Updated all users.
6702         (record_beneath_to_store_registers): Renamed to ...
6703         (record_full_beneath_to_store_registers): ... this.
6704         Updated all users.
6705         (record_beneath_to_xfer_partial_ops): Renamed to ...
6706         (record_full_beneath_to_xfer_partial_ops): ... this.
6707         Updated all users.
6708         (record_beneath_to_xfer_partial): Renamed to ...
6709         (record_full_beneath_to_xfer_partial): ... this.
6710         Updated all users.
6711         (record_beneath_to_insert_breakpoint): Renamed to ...
6712         (record_full_beneath_to_insert_breakpoint): ... this.
6713         Updated all users.
6714         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
6715         (record_full_beneath_to_stopped_by_watchpoint): ... this.
6716         Updated all users.
6717         (record_beneath_to_stopped_data_address): Renamed to ...
6718         (record_full_beneath_to_stopped_data_address): ... this.
6719         Updated all users.
6720         (record_beneath_to_async): Renamed to ...
6721         (record_full_beneath_to_async): ... this. Updated all users.
6722         (record_goto_insn): Renamed to ...
6723         (record_full_goto_insn): ... this. Updated all users.
6724         (record_save): Renamed to ...
6725         (record_full_save): ... this. Updated all users.
6726         (record_reg_alloc): Renamed to ...
6727         (record_full_reg_alloc): ... this. Updated all users.
6728         (record_reg_release): Renamed to ...
6729         (record_full_reg_release): ... this. Updated all users.
6730         (record_mem_alloc): Renamed to ...
6731         (record_full_mem_alloc): ... this. Updated all users.
6732         (record_mem_release): Renamed to ...
6733         (record_full_mem_release): ... this. Updated all users.
6734         (record_end_alloc): Renamed to ...
6735         (record_full_end_alloc): ... this. Updated all users.
6736         (record_end_release): Renamed to ...
6737         (record_full_end_release): ... this. Updated all users.
6738         (record_entry_release): Renamed to ...
6739         (record_full_entry_release): ... this. Updated all users.
6740         (record_list_release): Renamed to ...
6741         (record_full_list_release): ... this. Updated all users.
6742         (record_list_release_following): Renamed to ...
6743         (record_full_list_release_following): ... this.
6744         Updated all users.
6745         (record_list_release_first): Renamed to ...
6746         (record_full_list_release_first): ... this. Updated all users.
6747         (record_arch_list_add): Renamed to ...
6748         (record_full_arch_list_add): ... this. Updated all users.
6749         (record_get_loc): Renamed to ...
6750         (record_full_get_loc): ... this. Updated all users.
6751         (record_check_insn_num): Renamed to ...
6752         (record_full_check_insn_num): ... this. Updated all users.
6753         (record_arch_list_cleanups): Renamed to ...
6754         (record_full_arch_list_cleanups): ... this. Updated all users.
6755         (record_message): Renamed to ...
6756         (record_full_message): ... this. Updated all users.
6757         (record_message_wrapper): Renamed to ...
6758         (record_full_message_wrapper): ... this. Updated all users.
6759         (record_message_wrapper_safe): Renamed to ...
6760         (record_full_message_wrapper_safe): ... this. Updated all users.
6761         (record_gdb_operation_disable): Renamed to ...
6762         (record_full_gdb_operation_disable): ... this. Updated all users.
6763         (record_hw_watchpoint): Renamed to ...
6764         (record_full_hw_watchpoint): ... this. Updated all users.
6765         (record_exec_insn): Renamed to ...
6766         (record_full_exec_insn): ... this. Updated all users.
6767         (record_restore): Renamed to ...
6768         (record_full_restore): ... this. Updated all users.
6769         (record_async_inferior_event_token): Renamed to ...
6770         (record_full_async_inferior_event_token): ... this.
6771         Updated all users.
6772         (record_async_inferior_event_handler): Renamed to ...
6773         (record_full_async_inferior_event_handler): ... this.
6774         Updated all users.
6775         (record_core_open_1): Renamed to ...
6776         (record_full_core_open_1): ... this. Updated all users.
6777         (record_open_1): Renamed to ...
6778         (record_full_open_1): ... this. Updated all users.
6779         (record_open): Renamed to ...
6780         (record_full_open): ... this. Updated all users.
6781         (record_close): Renamed to ...
6782         (record_full_close): ... this. Updated all users.
6783         (record_resume_step): Renamed to ...
6784         (record_full_resume_step): ... this. Updated all users.
6785         (record_resumed): Renamed to ...
6786         (record_full_resumed): ... this. Updated all users.
6787         (record_execution_dir): Renamed to ...
6788         (record_full_execution_dir): ... this. Updated all users.
6789         (record_resume): Renamed to ...
6790         (record_full_resume): ... this. Updated all users.
6791         (record_get_sig): Renamed to ...
6792         (record_full_get_sig): ... this. Updated all users.
6793         (record_sig_handler): Renamed to ...
6794         (record_full_sig_handler): ... this. Updated all users.
6795         (record_wait_cleanups): Renamed to ...
6796         (record_full_wait_cleanups): ... this. Updated all users.
6797         (record_wait_1): Renamed to ...
6798         (record_full_wait_1): ... this. Updated all users.
6799         (record_wait): Renamed to ...
6800         (record_full_wait): ... this. Updated all users.
6801         (record_stopped_by_watchpoint): Renamed to ...
6802         (record_full_stopped_by_watchpoint): ... this. Updated all users.
6803         (record_disconnect): Renamed to ...
6804         (record_full_disconnect): ... this. Updated all users.
6805         (record_detach): Renamed to ...
6806         (record_full_detach): ... this. Updated all users.
6807         (record_mourn_inferior): Renamed to ...
6808         (record_full_mourn_inferior): ... this. Updated all users.
6809         (record_kill): Renamed to ...
6810         (record_full_kill): ... this. Updated all users.
6811         (record_stopped_data_address): Renamed to ...
6812         (record_full_stopped_data_address): ... this. Updated all users.
6813         (record_registers_change): Renamed to ...
6814         (record_full_registers_change): ... this. Updated all users.
6815         (record_store_registers): Renamed to ...
6816         (record_full_store_registers): ... this. Updated all users.
6817         (record_xfer_partial): Renamed to ...
6818         (record_full_xfer_partial): ... this. Updated all users.
6819         (record_breakpoint): Renamed to ...
6820         (record_full_breakpoint): ... this. Updated all users.
6821         (record_breakpoint_p): Renamed to ...
6822         (record_full_breakpoint_p): ... this. Updated all users.
6823         (record_breakpoints): Renamed to ...
6824         (record_full_breakpoints): ... this. Updated all users.
6825         (record_sync_record_breakpoints): Renamed to ...
6826         (record_full_sync_record_breakpoints): ... this.
6827         Updated all users.
6828         (record_init_record_breakpoints): Renamed to ...
6829         (record_full_init_record_breakpoints): ... this.
6830         Updated all users.
6831         (record_insert_breakpoint): Renamed to ...
6832         (record_full_insert_breakpoint): ... this. Updated all users.
6833         (record_remove_breakpoint): Renamed to ...
6834         (record_full_remove_breakpoint): ... this. Updated all users.
6835         (record_can_execute_reverse): Renamed to ...
6836         (record_full_can_execute_reverse): ... this. Updated all users.
6837         (record_get_bookmark): Renamed to ...
6838         (record_full_get_bookmark): ... this. Updated all users.
6839         (record_goto_bookmark): Renamed to ...
6840         (record_full_goto_bookmark): ... this. Updated all users.
6841         (record_async): Renamed to ...
6842         (record_full_async): ... this. Updated all users.
6843         (record_can_async_p): Renamed to ...
6844         (record_full_can_async_p): ... this. Updated all users.
6845         (record_is_async_p): Renamed to ...
6846         (record_full_is_async_p): ... this. Updated all users.
6847         (record_execution_direction): Renamed to ...
6848         (record_full_execution_direction): ... this. Updated all users.
6849         (record_info): Renamed to ...
6850         (record_full_info): ... this. Updated all users.
6851         (record_delete): Renamed to ...
6852         (record_full_delete): ... this. Updated all users.
6853         (record_is_replaying): Renamed to ...
6854         (record_full_is_replaying): ... this. Updated all users.
6855         (record_goto_entry): Renamed to ...
6856         (record_full_goto_entry): ... this. Updated all users.
6857         (record_goto_begin): Renamed to ...
6858         (record_full_goto_begin): ... this. Updated all users.
6859         (record_goto_end): Renamed to ...
6860         (record_full_goto_end): ... this. Updated all users.
6861         (record_goto): Renamed to ...
6862         (record_full_goto): ... this. Updated all users.
6863         (init_record_ops): Renamed to ...
6864         (init_record_full_ops): ... this. Updated all users.
6865         (record_core_resume): Renamed to ...
6866         (record_full_core_resume): ... this. Updated all users.
6867         (record_core_kill): Renamed to ...
6868         (record_full_core_kill): ... this. Updated all users.
6869         (record_core_fetch_registers): Renamed to ...
6870         (record_full_core_fetch_registers): ... this. Updated all users.
6871         (record_core_prepare_to_store): Renamed to ...
6872         (record_full_core_prepare_to_store): ... this. Updated all users.
6873         (record_core_store_registers): Renamed to ...
6874         (record_full_core_store_registers): ... this. Updated all users.
6875         (record_core_xfer_partial): Renamed to ...
6876         (record_full_core_xfer_partial): ... this. Updated all users.
6877         (record_core_insert_breakpoint): Renamed to ...
6878         (record_full_core_insert_breakpoint): ... this. Updated all users.
6879         (record_core_remove_breakpoint): Renamed to ...
6880         (record_full_core_remove_breakpoint): ... this. Updated all users.
6881         (record_core_has_execution): Renamed to ...
6882         (record_full_core_has_execution): ... this. Updated all users.
6883         (init_record_core_ops): Renamed to ...
6884         (init_record_full_core_ops): ... this. Updated all users.
6885         (cmd_record_restore): Renamed to ...
6886         (cmd_record_full_restore): ... this. Updated all users.
6887         (record_save_cleanups): Renamed to ...
6888         (record_full_save_cleanups): ... this. Updated all users.
6889         (cmd_record_start): Renamed to ...
6890         (cmd_record_full_start): ... this. Updated all users.
6891         (set_record_insn_max_num): Renamed to ...
6892         (set_record_full_insn_max_num): ... this. Updated all users.
6893         (set_record_command): Renamed to ...
6894         (set_record_full_command): ... this. Updated all users.
6895         (show_record_command): Renamed to ...
6896         (show_record_full_command): ... this. Updated all users.
6897         (_initialize_record): Renamed to ...
6898         (_initialize_record_full): ... this. Updated all users.
6899
6900 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6901
6902         * record.h: Split into this and ...
6903         * record-full.h: ... this.
6904         * record.c: Split into this and ...
6905         * record-full.c: ... this.
6906         * target.h (target_ops): Add new fields to_info_record,
6907         to_save_record, to_delete_record, to_record_is_replaying,
6908         to_goto_record_begin, to_goto_record_end, to_goto_record.
6909         (target_info_record): New.
6910         (target_save_record): New.
6911         (target_supports_delete_record): New.
6912         (target_delete_record): New.
6913         (target_record_is_replaying): New.
6914         (target_goto_record_begin): New.
6915         (target_goto_record_end): New.
6916         (target_goto_record): New.
6917         * target.c (target_info_record): New.
6918         (target_save_record): New.
6919         (target_supports_delete_record): New.
6920         (target_delete_record): New.
6921         (target_record_is_replaying): New.
6922         (target_goto_record_begin): New.
6923         (target_goto_record_end): New.
6924         (target_goto_record): New.
6925         * record.h: Declare struct cmd_list_element.
6926         (record_cmdlist): New declaration.
6927         (set_record_cmdlist): New declaration.
6928         (show_record_cmdlist): New declaration.
6929         (info_record_cmdlist): New declaration.
6930         (cmd_record_goto): New declaration.
6931         * record.c: Remove unnecessary includes.
6932         Include inferior.h.
6933         (cmd_record_goto): Remove declaration.
6934         (record_cmdlist): Now extern. Initialize.
6935         (set_record_cmdlist): Now extern. Initialize.
6936         (show_record_cmdlist): Now extern. Initialize.
6937         (info_record_cmdlist): Now extern. Initialize.
6938         (find_record_target): New.
6939         (require_record_target): New.
6940         (cmd_record_start): Update.
6941         (cmd_record_delete): Remove target-specific code.
6942         Call target_delete_record.
6943         (cmd_record_stop): Unpush any record target.
6944         (set_record_insn_max_num): Move to record-full.c
6945         (set_record_command): Add comment.
6946         (show_record_command): Add comment.
6947         (info_record_command): Update comment.
6948         Remove target-specific code.
6949         Call the record target's to_info_record.
6950         (cmd_record_start): New.
6951         (cmd_record_goto): Now extern.
6952         Remove target-specific code.
6953         Call target_goto_begin,  target_goto_end, or target_goto.
6954         (_initialize_record): Move record target ops initialization to
6955         record-full.c.
6956         Change "record" command help text.
6957         Move "record restore", "record set", and "record show" commands to
6958         record-full.c.
6959         * Makefile.in (SFILES): Add record-full.c.
6960         (HFILES_NO_SRCDIR): Add record-full.h.
6961         (COMMON_OBS): Add record-full.o.
6962         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
6963         * arm-tdep.c: Include record-full.h.
6964         * i386-linux-tdep.c: Include record-full.h instead of record.h.
6965         * i386-tdep.c: Include record-full.h.
6966         * infrun.c: Include record-full.h.
6967         * linux-record.c: Include record-full.h.
6968         * moxie-tdep.c: Include record-full.h.
6969         * record-full.c: Include record-full.h.
6970         Change module comment.
6971         (set_record_full_cmdlist): New.
6972         (show_record_full_cmdlist): New.
6973         (record_full_cmdlist): New.
6974         (record_goto_insn): New declaration.
6975         (record_save): New declaration.
6976         (record_check_insn_num): Change query string.
6977         (record_info): New.
6978         (record_delete): New.
6979         (record_is_replaying): New.
6980         (record_goto_entry): New.
6981         (record_goto_begin): New.
6982         (record_goto_end): New.
6983         (record_goto): New.
6984         (init_record_ops): Update.
6985         (init_record_core_ops): Update.
6986         (cmd_record_save): Rename to record_save. Remove target and arg checks.
6987         (cmd_record_start): New.
6988         (set_record_insn_max_num): Moved from record.c
6989         (set_record_full_command): New.
6990         (show_record_full_command): New.
6991         (_initialize_record_full): New.
6992
6993 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6994
6995         * target.h (add_deprecated_target_alias): New.
6996         * target.c (add_deprecated_target_alias): New.
6997
6998 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
6999
7000         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7001         and signal.h.
7002         (linux_supports_btrace): Add kernel and
7003         cpuid check.
7004         (kernel_supports_btrace): New function.
7005         (cpu_supports_btrace): New function.
7006         (intel_supports_btrace): New function.
7007
7008 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
7009
7010         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7011         * remote.c: Include btrace.h.
7012         (struct btrace_target_info): New struct.
7013         (remote_supports_btrace): New function.
7014         (send_Qbtrace): New function.
7015         (remote_enable_btrace): New function.
7016         (remote_disable_btrace): New function.
7017         (remote_teardown_btrace): New function.
7018         (remote_read_btrace): New function.
7019         (init_remote_ops): Add btrace ops.
7020         (enum <unnamed>): Add btrace packets.
7021         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7022         (_initialize_remote): Add packet configuration for branch tracing.
7023
7024 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
7025
7026         * features/btrace.dtd: New file.
7027         * Makefile.in (XMLFILES): Add btrace.dtd.
7028         * btrace.h (parse_xml_btrace): New declaration.
7029         * btrace.c: Include xml-support.h.
7030         (parse_xml_btrace): New function.
7031         (parse_xml_btrace_block): New function.
7032         (block_attributes): New struct.
7033         (btrace_attributes): New struct.
7034         (btrace_children): New struct.
7035         (btrace_elements): New struct.
7036
7037 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
7038
7039         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7040         (amd64_linux_enable_btrace): New.
7041         (amd64_linux_disable_btrace): New.
7042         (amd64_linux_teardown_btrace): New.
7043         (_initialize_amd64_linux_nat): Initialize btrace ops.
7044         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7045         (i386_linux_enable_btrace): New.
7046         (i386_linux_disable_btrace): New.
7047         (i386_linux_teardown_btrace): New.
7048         (_initialize_i386_linux_nat): Initialize btrace ops.
7049         * config/i386/linux.mh: Add linux-btrace.o.
7050         * config/i386/linux64.mh: Add linux-btrace.o.
7051
7052 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
7053
7054         * common/linux_btrace.h: New file.
7055         * common/linux_btrace.c: New file.
7056         * Makefile.in (SFILES): Add btrace.c.
7057         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7058         (COMMON_OBS): Add btrace.o.
7059         (linux-btrace.o): New rule.
7060
7061 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
7062
7063         * target.h: Include btrace.h.
7064         (struct target_ops) <to_supports_btrace, to_enable_btrace,
7065         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7066         * target.c (target_supports_btrace): New function.
7067         (target_enable_btrace): New function.
7068         (target_disable_btrace): New function.
7069         (target_teardown_btrace): New function.
7070         (target_read_btrace): New function.
7071         * btrace.h: New file.
7072         * btrace.c: New file.
7073         * Makefile.in: Add btrace.c.
7074         * gdbthread.h: Include btrace.h.
7075         (struct thread_info): Add btrace field.
7076         * thread.c: Include btrace.h.
7077         (clear_thread_inferior_resources): Call target_teardown_btrace.
7078         * common/btrace-common.h: New file.
7079
7080 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7081
7082         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7083         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7084         kill_status to outer block.
7085
7086 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7087
7088         Fix entry-values if the callee called a noreturn function.
7089         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7090         get_frame_address_in_block.  Add new comment.
7091
7092 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7093
7094         Fix entry-values in C++ across CUs.
7095         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7096         lookup_minimal_symbol.  Add a comment.
7097         * dwarf2read.c
7098         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7099         DW_AT_linkage_name.
7100
7101 2013-03-08  Yao Qi  <yao@codesourcery.com>
7102
7103         * tracepoint.c (_initialize_tracepoint): Indent the code.
7104
7105 2013-03-08  Pedro Alves  <palves@redhat.com>
7106
7107         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7108         (parse_find_args, find_command): Change type of pattern buffer
7109         locals to 'gdb_byte *'.
7110
7111 2013-03-08  Stan Shebs  <stan@codesourcery.com>
7112             Hafiz Abid Qadeer  <abidh@codesourcery.com>
7113
7114         * NEWS: Mention set and show trace-buffer-size commands.
7115         Mention new packet.
7116         * target.h (struct target_ops): New method
7117         to_set_trace_buffer_size.
7118         (target_set_trace_buffer_size): New macro.
7119         * target.c (update_current_target): Set up new method.
7120         * tracepoint.c (trace_buffer_size): New global.
7121         (start_tracing): Send it to the target.
7122         (set_trace_buffer_size): New function.
7123         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7124         * remote.c (remote_set_trace_buffer_size): New function.
7125         (_initialize_remote): Use it.
7126         (QTBuffer:size) New remote command.
7127         (PACKET_QTBuffer_size): New enum.
7128         (remote_protocol_features): Add an entry for
7129         PACKET_QTBuffer_size.
7130
7131 2013-03-08  Tom Tromey  <tromey@redhat.com>
7132
7133         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7134         variable.
7135
7136 2013-03-07  Pedro Alves  <palves@redhat.com>
7137
7138         * target.c (target_read_stralloc, target_fileio_read_alloc):
7139         *Cast pointer to 'gdb_byte *' in target call.
7140
7141 2013-03-07  Pedro Alves  <palves@redhat.com>
7142
7143         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7144         call.
7145
7146 2013-03-07  Keith Seitz  <keiths@redhat.com>
7147
7148         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7149         (trace_pass_command): Likewise.
7150         * cli/cli-cmds.c: Include cli/cli-utils.h.
7151         (source_command): Use skip-spaces.
7152         (disassemble_command): Likewise.
7153         * findcmd.c: Include cli/cli-utils.h.
7154         (parse_find_args): Use skip_spaces.
7155         * go32-nat.c: Include cli/cli-utils.h.
7156         (go32_sldt): Use skip_spaces.
7157         (go32_sgdt): Likewise.
7158         (go32_sidt): Likewise.
7159         (go32_pde): Likewise.
7160         (go32_pte): Likewise.
7161         (go32_pte_for_address): Likewise.
7162         * infcmd.c: Include cli/cli-utils.h.
7163         (registers_info): Use skip_spaces.
7164         * linux-tdep.c (read_mapping): Use skip_spaces_const.
7165         (linux_info_proc): Likewise.
7166         * linux-thread-db.c: Include cli/cli-utils.h.
7167         (info_auto_load_libthread_db): Use skip_spaces_const.
7168         * m32r-rom.c: Include cli/cli-utils.h.
7169         (m32r_upload_command): Use skip_spaces.
7170         * maint.c: Include cli/cli-utils.h.
7171         (maintenance_translate_address): Use skip_spaces.
7172         * mi/mi-parse.c: Include cli/cli-utils.h.
7173         (mi_parse_argv): Use skip_spaces.
7174         (mi_parse): Likewise.
7175         * minsyms.c: Include cli/cli-utils.h.
7176         (msymbol_hash_iw): Use skip_spaces_const.
7177         * objc-lang.c: Include cli/cli-utils.h.
7178         (parse_selector): Use skip_spaces.
7179         (parse_method): Likewise.
7180         * python/python.c: Include cli/cli-utils.h.
7181         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7182         (python_command)[HAVE_PYTHON]: Likewise.
7183         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7184         * remote-m32r-sdi.c: Include cli/cli-utils.h.
7185         (m32r_load): Use skip_spaces.
7186         * serial.c: Include cli/cli-utils.h.
7187         (serial_open): Use skip_spaces_const.
7188         * stack.c: Include cli/cli-utils.h.
7189         (parse_frame_specification_1): Use skip_spaces_const.
7190         * symfile.c: Include cli/cli-utils.h.
7191         (set_ext_lang_command): Use skip_spaces.
7192         * symtab.c: Include cli/cli-utils.h.
7193         (rbreak_command): Use skip_spaces.
7194         * thread.c (thread_name_command): Use skip_spaces.
7195         * tracepoint.c (validate_actionline): Use skip_spaces.
7196         (encode_actions_1): Likewise.
7197         (trace_find_range_command): Likewise.
7198         (trace_find_outside_command): Likewise.
7199         (trace_dump_actions): Likewise.
7200
7201 2013-03-07  Pedro Alves  <palves@redhat.com>
7202
7203         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7204         * expprint.c (print_subexp_standard): Likewise.
7205         * utils.c (host_char_to_target): Likewise.
7206         * valprint.c (generic_emit_char, generic_printstr): Likewise.
7207         * varobj.c (value_get_print_value): Change type of local to char*.
7208         Cast it gdb_byte * in call to language printer.
7209
7210 2013-03-07  Pedro Alves  <palves@redhat.com>
7211
7212         * charset.c (struct wchar_iterator) <input>: Change type to 'const
7213         gdb_byte *'.
7214         (make_wchar_iterator): Remove cast to char*.
7215         (wchar_iterate): Change type of local.
7216
7217 2013-03-07  Pedro Alves  <palves@redhat.com>
7218
7219         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7220         for 'regcache->register_status'.
7221
7222 2013-03-07  Pedro Alves  <palves@redhat.com>
7223
7224         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
7225         int.
7226
7227 2013-03-07  Pedro Alves  <palves@redhat.com>
7228
7229         * stap-probe.c (handle_stap_probe): Add cast to char*.
7230
7231 2013-03-07  Pedro Alves  <palves@redhat.com>
7232
7233         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7234         RECORD_MSGRCV>: Pass a signed variable to
7235         regcache_raw_read_signed, instead of an unsigned one.
7236
7237 2013-03-07  Pedro Alves  <palves@redhat.com>
7238
7239         * remote-notif.c (notif_debug): Change type to int.
7240         * remote-notif.h (notif_debug): Likewise.
7241
7242 2013-03-07  Pedro Alves  <palves@redhat.com>
7243
7244         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7245
7246 2013-03-07  Pedro Alves  <palves@redhat.com>
7247
7248         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7249         * remote.h (hex2bin, bin2hex): ... here.
7250         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7251
7252 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
7253
7254         * utils.c (initialize_utils): Improve doc strings of "set/show
7255         width", "set/show height", and "set/show pagination".
7256
7257 2013-03-06  Keith Seitz  <keiths@redhat.com>
7258
7259         * ax-gdb.c (gen_printf): Make FORMAT const.
7260         * ax-gdb.h (gen_printf): Likewise.
7261         * ax-general.c (ax_string): Make STR const.
7262         * ax.h (ax_string): Likewise.
7263
7264 2013-03-06  Doug Evans  <dje@google.com>
7265
7266         * elfread.c (elf_symfile_read): Move debugging printf to more
7267         logical location.
7268
7269 2013-03-06  Pedro Alves  <palves@redhat.com>
7270
7271         * python/py-utils.c (target_string_to_unicode): Delete function.
7272         * python/python-internal.h (target_string_to_unicode): Delete
7273         declaration.
7274
7275 2013-03-06  Pierre Muller  <muller@sourceware.org>
7276
7277         * linespec.c (get_current_search_block): ARI fix, use (void)
7278         for empty parameter list.
7279
7280 2013-03-05  Doug Evans  <dje@google.com>
7281
7282         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
7283         of old ada_lookup_symbol_list.  In !full_search case, don't
7284         search superblocks.
7285         (ada_lookup_symbol_list): Delete arg full_search, all callers
7286         updated.  Call ada_lookup_symbol_list_worker.
7287         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
7288         * ada-lang.h (ada_lookup_symbol_list): Update.
7289         * language.h (language_defn): Update comment for
7290         la_iterate_over_symbols.
7291         * linespec.c (iterate_over_file_blocks): New function.
7292         (iterate_over_all_matching_symtabs): Call it.
7293         (lookup_prefix_sym): Ditto.
7294         (get_current_search_block): New function.
7295         (get_search_block): Delete.
7296         (find_label_symbols): Call get_current_search_block.
7297         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
7298         * symtab.c (iterate_over_symbols): Don't search superblocks.
7299
7300 2013-03-05  Yao Qi  <yao@codesourcery.com>
7301
7302         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
7303         parameter VAR's type from "unsigned int" to "int".
7304         * command.h (var_zuinteger_unlimited): Update its comments.
7305         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
7306
7307 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
7308
7309         * NEWS: Mention new target x86_64-*-cygwin*.
7310
7311 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
7312
7313         * configure.host: Add x86_64-*-cygwin* as host.
7314         * configure.tgt: Add x86_64-*-cygwin* as target.
7315         * config/i386/cygwin64.mh: New file.
7316
7317 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7318
7319         * linespec.c (decode_line_2): Fix duplicate request off by two message.
7320
7321 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7322
7323         * linespec.c (struct linespec_canonical_name): New.
7324         (struct linespec_state): Change canonical_names type to it.
7325         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
7326         xrealloc element size.  Initialize the different CANONICAL fields.
7327         (canonical_to_fullform): New.
7328         (filter_results): Use it.  Add variables canonical, fullform and
7329         cleanup.
7330         (struct decode_line_2_item, decode_line_2_compare_items): New.
7331         (decode_line_2): Remove variables iter and item_names, add variables
7332         items and items_count.  Modify the code for these new variables.
7333
7334 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
7335
7336         * coff-pe-read.c (read_pe_exported_syms): Don't return without
7337         calling do_cleanup.
7338
7339 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
7340
7341         * tracepoint.c (build_traceframe_info): Add code for byte order.
7342
7343 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
7344
7345         * v850-tdep.c: (v850e2_register_name): Revise system register
7346         names to match current V850E2M architecture specifications.
7347         Update register number enum comments too.
7348
7349 2013-03-01  Jiong Wang  <jiwang@tilera.com>
7350             Pedro Alves  <palves@redhat.com>
7351
7352         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
7353         to END_ADDR.
7354         (tilegx_skip_prologue): Limit prologue analysis to section end.
7355
7356 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7357
7358         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
7359         use it.
7360
7361 2013-03-01  Pedro Alves  <palves@redhat.com>
7362
7363         Use gdb_byte for bytes from the program being debugged.
7364
7365         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
7366         Change type of local 'buf' to gdb_byte.
7367         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
7368         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
7369         * cris-tdep.c (cris_sigcontext_addr)
7370         (cris_sigtramp_frame_unwind_cache): Likewise.
7371         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
7372         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
7373         Likewise.
7374         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
7375         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
7376         (hppa32_hpux_search_dummy_call_sequence)
7377         (hppa_hpux_supply_save_state): Likewise.
7378         * hppa-linux-tdep.c (insns_match_pattern)
7379         (hppa_linux_find_global_pointer): Likewise.
7380         * hppa-tdep.c (hppa_in_function_epilogue_p)
7381         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
7382         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
7383         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
7384         (i386fbsd_collect_uthread): Likewise.
7385         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
7386         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
7387         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
7388         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
7389         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
7390         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
7391         (ia64_libunwind_frame_prev_register)
7392         (ia64_libunwind_sigtramp_frame_this_id)
7393         (ia64_find_global_pointer_from_dynamic_section)
7394         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
7395         (ia64_unwind_pc): Likewise.
7396         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
7397         * m68hc11-tdep.c (m68hc11_push_dummy_call)
7398         (m68hc11_extract_return_value): Likewise.
7399         * m68klinux-nat.c (fetch_register, store_register): Likewise.
7400         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
7401         (mep_get_insn, mep_push_dummy_call): Likewise.
7402         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
7403         (mips_linux_in_dynsym_stub): Likewise.
7404         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
7405         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
7406         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
7407         to gdb_byte.
7408         * remote-mips.c (mips_set_register): Likewise.
7409         * remote-sim.c (gdbsim_fetch_register): Likewise.
7410         * score-tdep.c (score7_fetch_inst): Change type of parameter
7411         'memblock' and local 'buf' to gdb_byte.
7412         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
7413         Change type of local 'buf' to gdb_byte.  Adjust.
7414         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
7415         to gdb_byte**.
7416         (score7_analyze_prologue): Change type of 'memblock' and
7417         'memblock_ptr' locals to gdb_byte*.
7418         * sh64-tdep.c (sh64_extract_return_value)
7419         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
7420         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
7421         * solib-pa64.c (pa64_solib_create_inferior_hook)
7422         (pa64_open_symbol_file_object): Remove local 'buf'.
7423         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
7424         (som_open_symbol_file_object): Likewise.
7425         * solib-spu.c (spu_current_sos): Likewise.
7426         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7427         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
7428         (spu_store_registers): Likewise.
7429         * target.c (debug_print_register): Likewise.
7430         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
7431         * xstormy16-tdep.c (xstormy16_store_return_value)
7432         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
7433         (xstormy16_find_jmp_table_entry): Likewise.
7434
7435 2013-03-01  Jiong Wang  <jiwang@tilera.com>
7436
7437         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
7438         (tilegx_gdbarch_init): Install it.
7439
7440 2013-02-28  Tom Tromey  <tromey@redhat.com>
7441
7442         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
7443         PyLong_Check.
7444
7445 2013-02-28  Doug Evans  <dje@google.com>
7446
7447         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
7448         * python/python.c (gdbpy_find_pc_line): Ditto.
7449
7450 2013-02-28  Tom Tromey  <tromey@redhat.com>
7451
7452         * contrib/excheck.py: New file.
7453         * contrib/exsummary.py: New file.
7454         * contrib/gcc-with-excheck: New file.
7455
7456 2013-02-28  Tom Tromey  <tromey@redhat.com>
7457
7458         * python/python.c (gdbpy_print_stack): Call begin_line and
7459         fprintf_filtered inside TRY_CATCH.
7460
7461 2013-02-28  Tom Tromey  <tromey@redhat.com>
7462
7463         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
7464         inside TRY_CATCH.
7465
7466 2013-02-28  Tom Tromey  <tromey@redhat.com>
7467
7468         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
7469         frame_object_to_frame_info inside TRY_CATCH.
7470
7471 2013-02-28  Tom Tromey  <tromey@redhat.com>
7472
7473         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
7474         TRY_CATCH.
7475
7476 2013-02-28  Tom Tromey  <tromey@redhat.com>
7477
7478         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
7479
7480 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
7481
7482         * windows-nat.c: Throughout, fix format strings and casts of
7483         printf-like functions to avoid type related warnings on all
7484         platforms.
7485         (handle_output_debug_string): Fetch context information address
7486         from debug string using string_to_core_addr.
7487
7488 2013-02-27  Jiong Wang  <jiwang@tilera.com>
7489
7490         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
7491         * regformats/reg-tilegx32.dat: New.
7492
7493 2013-02-27  Jiong Wang  <jiwang@tilera.com>
7494
7495         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
7496
7497 2013-02-27  Jiong Wang  <jiwang@tilera.com>
7498
7499         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
7500
7501 2013-02-27  Yao Qi  <yao@codesourcery.com>
7502             Pedro Alves  <palves@redhat.com>
7503
7504         * tracepoint.c (tfile_trace_find): For tfind
7505         pc/tp/range/outside, look for the next trace frame instead of
7506         always starting from frame 0.
7507
7508 2013-02-26  Anthony Green  <green@moxielogic.com>
7509
7510         * configure.tgt: Add support for moxie-*-rtems* target.
7511
7512 2013-02-25  Pedro Alves  <palves@redhat.com>
7513
7514         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
7515         warning text.
7516
7517 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
7518
7519         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
7520         if $fp is used as the virtual frame pointer.
7521
7522 2013-02-23  Alan Modra  <amodra@gmail.com>
7523
7524         * elfread.c (elf_symtab_read): Do not use udata.p here to find
7525         symbol size.
7526         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
7527         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
7528         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
7529         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
7530
7531 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7532
7533         Code cleanup.
7534         * elfread.c (build_id_bfd_get): Make the return type const.
7535         (build_id_verify): Make the check parameter const.
7536         (build_id_to_debug_filename): Make the build_id parameter and variable
7537         data const.
7538         (find_separate_debug_file_by_buildid): Make the variable build_id const.
7539
7540 2013-02-21  Alan Modra  <amodra@gmail.com>
7541
7542         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
7543
7544 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
7545
7546         Add a new method 'disassemble' to gdb.Architecture class.
7547         * python/py-arch.c (archpy_disassmble): Implementation of the
7548         new method gdb.Architecture.disassemble.
7549         (arch_object_methods): Add entry for the new method.
7550
7551 2013-02-20  Jiong Wang  <jiwang@tilera.com>
7552
7553         * MAINTAINERS (Write After Approval): Add myself to the list.
7554
7555 2013-02-19  Pedro Alves  <palves@redhat.com>
7556
7557         Garbage collect 'struct monitor_ops'::load_routine.
7558
7559         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
7560         * monitor.c (monitor_load): No longer call
7561         current_monitor->load_routine.
7562         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
7563         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
7564         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
7565
7566 2013-02-19  Pedro Alves  <palves@redhat.com>
7567
7568         PR gdb/15161
7569
7570         Harmonize with generic_load.
7571
7572         * monitor.c: Include "readline/readline.h".
7573         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
7574         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
7575         long/strtol for the 'load_offset' local.  Error out if no argument
7576         is given or if too many arguments are given.  Tilde expand the
7577         passed in file name.
7578
7579 2013-02-19  Kai Tietz  <ktietz@redhat.com>
7580
7581         PR gdb/15161
7582         * symfile.c (load_section_data): Change type of load_offset
7583         to CORE_ADDR.
7584         (generic_load): User strtoulst instead of strtoul for conversion
7585         of load_offset.
7586
7587 2013-02-19  Jiong Wang  <jiwang@tilera.com>
7588
7589         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
7590          for return address, "lr" register, saved on stack.
7591         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
7592         after we invoke tilegx_analyze_prologue.
7593
7594 2013-02-19  Jiong Wang  <jiwang@tilera.com>
7595
7596         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
7597
7598 2013-02-19  Jiong Wang  <jiwang@tilera.com>
7599
7600         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
7601
7602 2013-02-19  Jiong Wang  <jiwang@tilera.com>
7603
7604         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
7605         (tilegx_write_pc): New function.
7606         (tilegx_cannot_reference_register): Return zero if REGNO
7607         is TILEGX_FAULTNUM_REGNUM.
7608         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
7609         (tilegx_register_name): Add handling of "faultnum" register.
7610         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
7611         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
7612         handling of TILEGX_FAULTNUM_REGNUM.
7613         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
7614
7615 2013-02-19  Jiong Wang  <jiwang@tilera.com>
7616
7617         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
7618         should be aligned to 64bit.
7619
7620 2013-02-19  Kai Tietz  <ktietz@redhat.com>
7621
7622         * windows-nat.c (windows_xfer_memory): Fix debug-output
7623         for LLP64.
7624
7625 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
7626
7627         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
7628         Don't check DSP register number if HAVE_DSP is not set.
7629
7630 2013-02-19  Alan Modra  <amodra@gmail.com>
7631
7632         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
7633         throughout file instead.
7634         (build_id_bfd_get): Update to use new elf_tdata build_id field.
7635         Don't xmalloc return value.
7636         (build_id_verify): Similarly.  Don't xfree.
7637         (build_id_to_debug_filename): Update.
7638         (find_separate_debug_file_by_buildid): Update, don't xfree.
7639
7640 2013-02-18  Tom Tromey  <tromey@redhat.com>
7641
7642         PR gdb/15102:
7643         * dwarf2read.c (read_subrange_type): Use result of
7644         'check_typedef'.
7645
7646 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
7647
7648         * frame.c: Remove one extra white space after #include
7649         directive.
7650
7651 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7652
7653         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
7654
7655 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7656
7657         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
7658         and dir commands into an if block.
7659
7660 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
7661
7662         * python/py-breakpoint (struct pybp_code):  Use int instead of
7663         enum type_code.
7664
7665 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
7666             Hafiz Abid Qadeer  <abidh@codesourcery.com>
7667
7668         * NEWS: Mention new field "trace-file".
7669         * tracepoint.c (trace_status_mi): Output "trace-file" field.
7670         (tfile_open): Record the trace file's filename in the trace
7671         status.
7672         (tfile_files_info): Mention the name of the trace file.
7673         Check the "filename" field explicitely.
7674         (trace_status_command): Explicitely check "filename" field.
7675         (trace_find_command): Ditto.
7676         (trace_find_pc_command): Ditto.
7677         (trace_find_tracepoint_command): Ditto.
7678         (trace_find_line_command): Ditto.
7679         (trace_find_range_command): Ditto.
7680         (trace_find_outside_command): Ditto.
7681         * tracepoint.h (struct trace_status) <from_file>: Rename it
7682         to "filename" and make it hold the trace file's filename
7683         instead of a boolean.
7684         * remote.c (remote_get_trace_status): Initialize "filename"
7685         field with NULL instead of 0.
7686
7687 2013-02-15  Yao Qi  <yao@codesourcery.com>
7688
7689         * remote.c: Fix a typo.
7690
7691 2013-02-14  Pierre Muller  <muller@sourceware.org>
7692
7693         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
7694
7695 2013-02-14  Pedro Alves  <palves@redhat.com>
7696
7697         * utils.c (savestring): Don't #undef it.  Move function to
7698         common/common-utils.c.
7699         * common/common-utils.c: Include gdb_string.h.
7700         (savestring): Move here from utils.c.
7701         * common/common-utils.h (savestring): Declare.
7702
7703 2013-02-14  Pedro Alves  <palves@redhat.com>
7704
7705         * utils.c (savestring): Rename parameter 'size' to 'len'.
7706
7707 2013-02-14  Pedro Alves  <palves@redhat.com>
7708             Yufeng Zhang  <yufeng.zhang@arm.com>
7709
7710         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
7711         (aarch64_inferior_data, struct aarch64_inferior_data):
7712         Delete.
7713         (struct aarch64_process_info): New.
7714         (aarch64_process_list): New global.
7715         (aarch64_find_process_pid, aarch64_add_process)
7716         (aarch64_process_info_get): New functions.
7717         (aarch64_inferior_data_get): Delete.
7718         (aarch64_process_info_get): New function.
7719         (aarch64_forget_process): New function.
7720         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
7721         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
7722         aarch64_get_debug_reg_state.
7723         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
7724         instead of linux_nat_iterate_watchpoint_lwps.
7725         (aarch64_linux_new_fork): New function.
7726         (aarch64_linux_child_post_startup_inferior): Use
7727         aarch64_forget_process instead of aarch64_init_debug_reg_state.
7728         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
7729         (aarch64_linux_remove_hw_breakpoint)
7730         (aarch64_handle_aligned_watchpoint)
7731         (aarch64_handle_unaligned_watchpoint)
7732         (aarch64_linux_insert_watchpoint)
7733         (aarch64_linux_remove_watchpoint)
7734         (aarch64_linux_stopped_data_address): Adjust to pass the current
7735         process id to aarch64_debug_reg_state.
7736         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
7737         linux_nat_new_fork hook, and aarch64_forget_process as
7738         linux_nat_forget_process hook; remove the call to
7739         register_inferior_data_with_cleanup.
7740
7741 2013-02-14  Pedro Alves  <palves@redhat.com>
7742
7743         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
7744         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
7745         lval_memory.
7746
7747 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
7748             Hafiz Abid Qadeer  <abidh@codesourcery.com>
7749
7750         * tracepoint.h (validate_trace_state_variable_name): Declare.
7751         * tracepoint.c (validate_trace_state_variable_name): New.
7752         (trace_variable_command): Parse the trace state variable's name
7753         without using parse_expression.  Do several validations.
7754         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
7755         trace state variable's name with parse_expression.  Validate it.
7756
7757 2013-02-14  Yao Qi  <yao@codesourcery.com>
7758
7759         * infcmd.c (breakpoint_proceeded): Remove it.
7760
7761 2013-02-14  Yao Qi  <yao@codesourcery.com>
7762
7763         * tracepoint.c (end_actions_pseudocommand): Make it static.
7764         (while_stepping_pseudocommand): Likewise.
7765         * tracepoint.h (end_actions_pseudocommand): Remove the
7766         declaration.
7767         (while_stepping_pseudocommand): Likewise.
7768
7769 2013-02-14  Yao Qi  <yao@codesourcery.com>
7770
7771         * cli/cli-decode.c (help_cmd): Remove the declaration of
7772         "cmdlist".
7773         (help_all): Likewise.
7774
7775 2013-02-13  Pedro Alves  <palves@redhat.com>
7776
7777         * amd64-linux-nat.c (update_debug_registers_callback):
7778         Update comment.
7779         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7780         iterate_over_lwps.
7781         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
7782         i386_debug_reg_state.
7783         (amd64_linux_new_fork): New function.
7784         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
7785         linux_nat_new_fork hook, and i386_forget_process as
7786         linux_nat_forget_process hook.
7787         * i386-linux-nat.c (update_debug_registers_callback):
7788         Update comment.
7789         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7790         iterate_over_lwps.
7791         (i386_linux_prepare_to_resume): Pass the lwp's pid to
7792         i386_debug_reg_state.
7793         (i386_linux_new_fork): New function.
7794         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
7795         linux_nat_new_fork hook, and i386_forget_process as
7796         linux_nat_forget_process hook.
7797         * i386-nat.c (i386_init_dregs): Delete.
7798         (i386_inferior_data, struct i386_inferior_data):
7799         Delete.
7800         (struct i386_process_info): New.
7801         (i386_process_list): New global.
7802         (i386_find_process_pid, i386_add_process, i386_process_info_get):
7803         New functions.
7804         (i386_inferior_data_get): Delete.
7805         (i386_process_info_get): New function.
7806         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
7807         (i386_forget_process): New function.
7808         (i386_cleanup_dregs): Rewrite.
7809         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
7810         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7811         (i386_stopped_data_address, i386_insert_hw_breakpoint)
7812         (i386_remove_hw_breakpoint): Adjust to pass the current process id
7813         to i386_debug_reg_state.
7814         (i386_use_watchpoints): Don't register inferior data.
7815         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
7816         adjust comment.
7817         (i386_forget_process): Declare.
7818         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
7819         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
7820         New static globals.
7821         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
7822         (add_initial_lwp): New, factored out from ...
7823         (add_lwp): ... this.  Don't check the number of lwps before
7824         calling linux_nat_new_thread.
7825         (linux_nat_iterate_watchpoint_lwps): Delete.
7826         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
7827         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
7828         forks and vforks.
7829         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
7830         initial lwp.
7831         (linux_nat_kill, linux_nat_mourn_inferior): Call
7832         linux_nat_forget_process.
7833         (linux_nat_set_new_fork, linux_nat_set_forget_process)
7834         (linux_nat_forget_process): New functions.
7835         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
7836         type.
7837         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
7838         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
7839         types.
7840         (linux_nat_set_new_fork, linux_nat_set_forget_process)
7841         (linux_nat_forget_process): New declarations.
7842
7843         * amd64fbsd-nat.c (super_mourn_inferior): New global.
7844         (amd64fbsd_mourn_inferior): New function.
7845         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
7846         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
7847
7848 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7849
7850         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7851         Adding _().
7852
7853 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7854
7855         * aarch64-linux-nat.c (debug_reg_change_callback)
7856         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
7857         %s and phex().
7858
7859 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7860
7861         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
7862         with LONGEST.
7863
7864 2013-02-13  Pedro Alves  <palves@redhat.com>
7865             Hafiz Abid Qadeer  <abidh@codesourcery.com>
7866
7867         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
7868
7869 2013-02-12  Tom Tromey  <tromey@redhat.com>
7870
7871         PR symtab/11464:
7872         * c-exp.y (lex_one_token): Initialize other fields of yylval on
7873         NAME return.
7874         (classify_inner_name): Remove 'first_name' argument, add
7875         'context'.  Remove unused variable.
7876         (yylex): Explicitly maintain the context type.  Exit loop earlier
7877         if NAME result is seen.
7878
7879 2013-02-12  Pedro Alves  <palves@redhat.com>
7880
7881         * amd64-darwin-tdep.c: Add (C) after Copyright.
7882         * cli/cli-cmds.h: Ditto.
7883         * cli/cli-decode.c: Ditto.
7884         * cli/cli-decode.h: Ditto.
7885         * cli/cli-dump.c: Ditto.
7886         * cli/cli-dump.h: Ditto.
7887         * cli/cli-interp.c: Ditto.
7888         * cli/cli-logging.c: Ditto.
7889         * cli/cli-script.c: Ditto.
7890         * cli/cli-script.h: Ditto.
7891         * cli/cli-setshow.c: Ditto.
7892         * cli/cli-setshow.h: Ditto.
7893         * cli/cli-utils.c: Ditto.
7894         * cli/cli-utils.h: Ditto.
7895         * config/alpha/nm-osf3.h: Ditto.
7896         * config/djgpp/djconfig.sh: Ditto.
7897         * config/i386/nm-fbsd.h: Ditto.
7898         * config/i386/nm-i386gnu.h: Ditto.
7899         * config/nm-linux.h: Ditto.
7900         * config/nm-nto.h: Ditto.
7901         * config/rs6000/nm-rs6000.h: Ditto.
7902         * config/sparc/nm-sol2.h: Ditto.
7903         * darwin-nat-info.c: Ditto.
7904         * dfp.c: Ditto.
7905         * dfp.h: Ditto.
7906         * gdb-demangle.h: Ditto.
7907         * i386-darwin-nat.c: Ditto.
7908         * i386-darwin-tdep.c: Ditto.
7909         * linux-fork.h: Ditto.
7910         * m32c-tdep.c: Ditto.
7911         * microblaze-linux-tdep.c: Ditto.
7912         * microblaze-rom.c: Ditto.
7913         * microblaze-tdep.c: Ditto.
7914         * microblaze-tdep.h: Ditto.
7915         * mips-linux-tdep.h: Ditto.
7916         * ppc-ravenscar-thread.c: Ditto.
7917         * ppc-ravenscar-thread.h: Ditto.
7918         * prologue-value.c: Ditto.
7919         * prologue-value.h: Ditto.
7920         * ravenscar-thread.c: Ditto.
7921         * ravenscar-thread.h: Ditto.
7922         * sparc-ravenscar-thread.c: Ditto.
7923         * sparc-ravenscar-thread.h: Ditto.
7924         * tilegx-linux-tdep.c: Ditto.
7925         * unwind_stop_reasons.def: Ditto.
7926         * windows-nat.h: Ditto.
7927         * xtensa-linux-tdep.c: Ditto.
7928         * xtensa-xtregs.c: Ditto.
7929         * regformats/regdat.sh: Ditto.
7930         * regformats/regdef.h: Ditto.
7931
7932 2013-02-12  Pedro Alves  <palves@redhat.com>
7933
7934         * break-catch-sig.c: Update copyright years.
7935
7936 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
7937
7938         Add support for a destructor for ui_out data and use it to
7939         provide a ui_out destructor.
7940         * ui-out.h: Declare the new ui_out destructor.
7941         (ui_out_impl): Add a field for data destructor in ui_out_impl.
7942         * ui-out.c (default_data_destroy): Add a default data destructor
7943         which does nothing.
7944         (default_ui_out_impl): Set the new data_destroy field to
7945         default_data_destroy
7946         (uo_data_destroy): Local function which invokes the data
7947         destructor if present.
7948         (clear_table): Local function which clears the table data of a
7949         ui_out object.
7950         (ui_out_destroy): Public function which frees a ui_out object.
7951         (ui_out_table_end): Use the new clear_table function.
7952         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
7953         NULL.
7954         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
7955         to NULL.
7956
7957 2013-02-11  Doug Evans  <dje@google.com>
7958
7959         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
7960         (printf_decfloat): New function.  Broken out from ui_printf.
7961         Remove unnecessary code to shift the entire format string down.
7962         (printf_pointer): New function.
7963         (ui_printf): Code to print C strings, wide C strings, decfloats,
7964         and pointers moved to separate functions.
7965
7966 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
7967
7968         * valops.c (value_assign): Handling bitfield offset in
7969         `lval_internalvar_component' case.
7970
7971 2013-02-08  Doug Evans  <dje@google.com>
7972
7973         * common/format.c (parse_format_string): Fix whitespace.
7974
7975 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
7976
7977         * stack.c (return_command): Work around uninitialized variable
7978         warning.
7979
7980 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
7981
7982         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
7983         number of the registers from 36 to 34.
7984
7985 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7986
7987         * NEWS: Mention new AArch64 native and target support.
7988
7989 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7990
7991         * MAINTAINERS (Write After Approval): Add myself.
7992
7993 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
7994             Marcus Shawcroft  <marcus.shawcroft@arm.com>
7995             Nigel Stephens  <nigel.stephens@arm.com>
7996             Yufeng Zhang  <yufeng.zhang@arm.com>
7997
7998         * aarch64-linux-nat.c: New file.
7999         * config/aarch64/linux.mh: New file.
8000         * configure.host: Add AArch64.
8001         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8002
8003 2013-02-07  Doug Evans  <dje@google.com>
8004
8005         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8006         disassemble command.
8007
8008 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8009
8010         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8011         set_gdbarch_fetch_tls_load_module_address.
8012
8013 2013-02-06  David S. Miller  <davem@davemloft.net>
8014
8015         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8016         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8017         * value.c (struct_return_convention): New function.
8018         (using_struct_return): Implement in terms of struct_return_convention.
8019         * value.h (struct_return_convention): Declare.
8020         * stack.c (return_command): Allow successful overriding of the return
8021         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8022
8023 2013-02-06  Tom Tromey  <tromey@redhat.com>
8024
8025         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8026         outside of TRY_CATCH.
8027
8028 2013-02-06  Yao Qi  <yao@codesourcery.com>
8029
8030         * mi/mi-interp.c: Include "tracepoint.h".
8031         (mi_tsv_modified): Declare.
8032         (mi_tsv_created, mi_tsv_deleted): Update declaration.
8033         (mi_interpreter_init): Call observer_attach_tsv_modified.
8034         (mi_tsv_modified): New.
8035         (mi_tsv_created, mi_tsv_deleted): Update.
8036         * tracepoint.c (trace_variable_command): Call
8037         observer_notify_tsv_modified if the initial value of tsv is
8038         changed.
8039         (delete_trace_state_variable): Call
8040         observer_notify_tsv_deleted earlier.
8041         (trace_variable_command): Caller update.
8042         (create_tsv_from_upload): Likewise.
8043         * observer.sh: Declare "struct trace_state_variable".
8044
8045         * NEWS: Mention the new MI notification "=tsv-modified".
8046
8047 2013-02-05  Doug Evans  <dje@google.com>
8048
8049         * completer.c (location_completer): Fix typo in comment.
8050
8051 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8052
8053         * breakpoint.c (add_location_to_breakpoint): Insert the location with
8054         ADDRESS sorted.
8055
8056 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8057
8058         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8059         Refactor if statement to avoid trailing || operator.
8060
8061 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
8062
8063         * NEWS: Add PowerPC FreeBSD as a new native configuration.
8064
8065 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
8066
8067         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8068         * configure.host: Add powerpc*-*-freebsd* target.
8069         * configure.tgt: Add target info for powerpc*-*-freebsd*.
8070         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8071         * config/powerpc/fbsd.mh: New file.
8072
8073 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
8074             Denys Vlasenko  <dvlasenk@redhat.com>
8075             Pedro Alves  <palves@redhat.com>
8076
8077         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8078         (struct elf_internal_linux_prpsinfo): Forward declare.
8079         * gdbarch.h, gdbarch.c: Regenerate.
8080         * linux-tdep.c: Include `cli/cli-utils.h'.
8081         (linux_fill_prpsinfo): New function.
8082         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
8083         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8084         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8085         depending on gdbarch pointer bitness.
8086         * ppc-linux-tdep.c: Include elf-bfd.h.
8087         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8088         on 32-bit.
8089
8090 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
8091             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8092             Nigel Stephens  <nigel.stephens@arm.com>
8093             Yufeng Zhang  <yufeng.zhang@arm.com>
8094
8095         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8096
8097 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
8098             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8099             Nigel Stephens  <nigel.stephens@arm.com>
8100             Yufeng Zhang  <yufeng.zhang@arm.com>
8101
8102         * aarch64-newlib-tdep.c: New file.
8103         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8104         aarch64*-*-elf.
8105         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8106         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8107         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8108         * osabi.c (gdb_osabi_names): Add "Newlib".
8109
8110 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
8111             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8112             Nigel Stephens  <nigel.stephens@arm.com>
8113             Yufeng Zhang  <yufeng.zhang@arm.com>
8114
8115         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8116         (ALLDEPFILES): Add aarch64-linux-tdep.c.
8117         * aarch64-linux-tdep.c: New file.
8118         * aarch64-linux-tdep.h: New file.
8119         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8120         * configure.tgt: Add aarch64-none-linux-gnu.
8121
8122 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
8123             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8124             Nigel Stephens  <nigel.stephens@arm.com>
8125             Yufeng Zhang  <yufeng.zhang@arm.com>
8126
8127         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8128         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8129         (ALLDEPFILES): Add aarch64-tdep.c.
8130         * aarch64-tdep.c: New file.
8131         * aarch64-tdep.h: New file.
8132         * configure.tgt: Add AArch64.
8133         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8134         (aarch64-expedite): New definition.
8135         * features/aarch64-core.xml: New file.
8136         * features/aarch64-fpu.xml: New file.
8137         * features/aarch64-without-fpu.c: New file (generated).
8138         * features/aarch64-without-fpu.xml: New file.
8139         * features/aarch64.c: New file (generated).
8140         * features/aarch64.xml: New file.
8141         * regformats/aarch64-without-fpu.dat: New file (generated).
8142         * regformats/aarch64.dat: New file (generated).
8143
8144 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8145
8146         * contrib/expect-read1.c: New file.
8147         * contrib/expect-read1.sh: New file.
8148
8149 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8150
8151         * dwarf2read.c (file_file_name): New function with code from
8152         file_full_name.
8153         (file_full_name): Move most of the code to file_file_name.
8154         (macro_start_file): Rename variable full_name to file_name and use
8155         file_file_name for it.  Add comp_dir parameter to new_macro_table.
8156         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
8157         macro_source_file->filename access by macro_source_fullname call.
8158         * macroscope.c (_initialize_macroscope): Update the new_macro_table
8159         caller.
8160         * macrotab.c (struct macro_table): New field comp_dir.
8161         (macro_include): New variables link_fullname and source_fullname.
8162         Replace any macro_source_file->filename access by macro_source_fullname
8163         call.
8164         (macro_lookup_inclusion): Remove the partial filenames checking code.
8165         (check_for_redefinition): New variables source_fullname and
8166         found_key_fullname.  Replace any macro_source_file->filename access by
8167         macro_source_fullname call.
8168         (macro_undef): New variables source_fullname and key_fullname.  Replace
8169         any macro_source_file->filename access by macro_source_fullname call.
8170         (macro_lookup_definition): New variables retval and source_fullname.
8171         Replace any macro_source_file->filename access by macro_source_fullname
8172         call.
8173         (foreach_macro): New variable key_fullname.  Replace any
8174         macro_source_file->filename access by macro_source_fullname call.
8175         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
8176         macro_source_file->filename access by macro_source_fullname call.
8177         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
8178         (macro_source_fullname): New function.
8179         * macrotab.h (struct macro_source_file): Extent the filename field
8180         comment.
8181         (new_macro_table): New parameter comp_dir, add a comment for it.
8182         (macro_source_fullname): new declaration.
8183
8184 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8185
8186         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8187         this_real_name to outer block.  Use it also for
8188         compare_filenames_for_search.
8189         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
8190         with dw2_get_real_path for file_matcher, considering also
8191         BASENAMES_MAY_DIFFER.
8192         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8193
8194 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8195
8196         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8197         to the file_matcher parameter.  Pass 0 to it.
8198         (dwarf2_create_include_psymtab): Copy also DIRNAME.
8199         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8200         NULL psymtab_to_fullname result.
8201         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
8202         an expected filename instead.
8203         (expand_symtabs_matching_via_partial): Add basenames parameter to the
8204         file_matcher parameter.  Call also psymtab_to_fullname, after newly
8205         considering BASENAMES_MAY_DIFFER.
8206         * source.c (rewrite_source_path): Remove static.
8207         * source.h (rewrite_source_path): New declaration.
8208         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8209         the expand_symtabs_matching field.  Comment it.
8210         * symtab.c (file_matches): New function comment.  Add parameter
8211         basenames, implement it.
8212         (search_symbols_file_matches): Add basenames parameter.  Update the
8213         file_matches caller.
8214         (search_symbols): Match FILES also against symtab_to_fullname.
8215         Optimize it for BASENAMES_MAY_DIFFER.
8216
8217 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8218
8219         * source.c (print_source_lines_base): Print for TUI also "fullname".
8220         * tui/tui-data.c (init_content_element): Change tui_locator_element
8221         field to full_name.
8222         * tui/tui-data.h (struct tui_locator_element): Likewise.
8223         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8224         tui_update_locator_filename calls to tui_update_locator_fullname.
8225         Replace symtab->filename refererence by symtab_to_fullname call.
8226         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8227         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8228         field to full_name.  Replace symtab->filename refererence by
8229         symtab_to_fullname call.
8230         (tui_show_symtab_source): Rename parameter to fullname.  Change
8231         tui_locator_element field to full_name.
8232         * tui/tui-stack.c: Include source.h.
8233         (tui_set_locator_filename): Rename the declaration to ...
8234         (tui_set_locator_fullname): ... here.  Rename its parameter to
8235         fullname, updates its comment.
8236         (tui_set_locator_info): Rename its parameter to fullname.
8237         (tui_set_locator_filename): Rename the definition to ...
8238         (tui_set_locator_fullname): ... here.  Rename its parameter to
8239         fullname, updates its comment.  Change tui_locator_element field to
8240         full_name.
8241         (tui_set_locator_info): Rename its parameter to fullname.
8242         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8243         (tui_update_locator_filename): Rename to ...
8244         (tui_update_locator_fullname): ... here. Rename callee to
8245         tui_set_locator_fullname.
8246         (tui_show_frame_info): Replace symtab->filename refererence by
8247         symtab_to_fullname call.
8248         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8249         (tui_update_locator_fullname): ... here.
8250         * tui/tui-winsource.c (tui_display_main): Rename the callee to
8251         tui_update_locator_fullname.  Replace symtab->filename refererence by
8252         symtab_to_fullname call.
8253         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8254         Rename the callee to tui_update_locator_fullname.
8255         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8256
8257 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8258
8259         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8260         by symtab_to_filename_for_display calls.
8261         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8262         (clear_command): New variable sal_fullname, initialize it.  Replace
8263         compare_filenames_for_search by filename_cmp with sal_fullname.
8264         (say_where, update_static_tracepoint): Replace symtab->filename
8265         refererences by symtab_to_filename_for_display calls.
8266         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8267         Likewise.
8268         * dwarf2read.c: Include source.h.
8269         (fixup_go_packaging): Replace symtab->filename refererences by
8270         symtab_to_filename_for_display calls.
8271         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8272         Replace symtab->filename refererences by symtab_to_filename_for_display
8273         calls.
8274         (create_sals_line_offset, convert_linespec_to_sals): New variable
8275         fullname, initialize it, replace symtab->filename reference by the
8276         variable.
8277         * linux-fork.c: Include source.h.
8278         (info_checkpoints_command): Replace symtab->filename refererences by
8279         symtab_to_filename_for_display calls.
8280         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
8281         by symtab_to_filename_for_display calls.
8282         * mdebugread.c: Include source.h.
8283         (psymtab_to_symtab_1): Replace symtab->filename refererences by
8284         symtab_to_filename_for_display calls.
8285         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8286         (mi_cmd_file_list_exec_source_files): Likewise.
8287         * printcmd.c: Include source.h.
8288         (build_address_symbolic): Replace symtab->filename refererences by
8289         symtab_to_filename_for_display calls.
8290         * psymtab.c (partial_map_symtabs_matching_filename)
8291         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
8292         with psymtab_to_fullname.
8293         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
8294         by symtab_to_filename_for_display calls.
8295         (stpy_get_filename): New variable filename, initialize it, use instead
8296         of symtab->filename refererences.
8297         (salpy_str): Make variable filename const char *.  Replace
8298         symtab->filename refererences by symtab_to_filename_for_display calls.
8299         * skip.c: Include source.h and filenames.h.
8300         (skip_file_command): Remove const from the symtab variable.  Replace
8301         symtab->filename refererences by symtab_to_fullname call.
8302         (function_name_is_marked_for_skip): New variables searched_for_fullname
8303         and fullname.  Use them to search also with symtab's fullname.
8304         * source.c (find_source_lines): Replace symtab->filename refererences
8305         by symtab_to_filename_for_display calls.
8306         (print_source_lines_base): New variable filename, use it instead of
8307         symtab->filename.  Replace symtab->filename refererences by
8308         symtab_to_filename_for_display calls.
8309         (line_info, forward_search_command): Replace symtab->filename
8310         refererences by symtab_to_filename_for_display calls.
8311         (reverse_search_command): Replace symtab->filename refererences by
8312         symtab_to_filename_for_display calls.  New variable filename for it.
8313         * stack.c (frame_info): Likewise.
8314         * symmisc.c: Include source.h.
8315         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
8316         (maintenance_info_symtabs): Replace symtab->filename refererences by
8317         symtab_to_filename_for_display calls.
8318         * symtab.c (iterate_over_some_symtabs): Call
8319         compare_filenames_for_search also with symtab_to_fullname.
8320         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
8321         symtab->filename refererences by symtab_to_filename_for_display calls.
8322         (find_line_symtab): Replace symtab->filename refererences by
8323         symtab_to_filename_for_display calls.
8324         (file_matches): Replace filename_cmp by compare_filenames_for_search.
8325         (print_symbol_info): Make the last parameter const char *.  New
8326         variable s_filename.  Use it in the function.
8327         (symtab_symbol_info): Make the last_filename variable const char *.
8328         Replace symtab->filename refererences by symtab_to_filename_for_display
8329         calls.
8330         (rbreak_command): New variable fullname.  Use it.  Replace
8331         symtab->filename refererence by symtab_to_filename_for_display call.
8332         * tracepoint.c (set_traceframe_context, trace_find_line_command)
8333         (print_one_static_tracepoint_marker): Replace symtab->filename
8334         refererences by symtab_to_filename_for_display calls.
8335         * tui/tui-source.c (tui_set_source_content): New variables filename and
8336         s_filename.  Replace symtab->filename refererences by this variable.
8337         Replace other symtab->filename refererences by
8338         symtab_to_filename_for_display calls.
8339
8340 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
8341             Jan Kratochvil  <jan.kratochvil@redhat.com>
8342
8343         Add a new variable that controls a way in which filenames are
8344         displayed.
8345         * NEWS (set filename-display): New entry.
8346         * source.c (filename_display_basename, filename_display_relative)
8347         (filename_display_absolute, filename_display_kind_names)
8348         (filename_display_string, show_filename_display_string)
8349         (symtab_to_filename_for_display): New.
8350         (_initialize_source): Added initialization of 'filename-display'
8351         variable.
8352         * source.h (symtab_to_filename_for_display): Added declaration.
8353         * stack.c (print_frame): Added new variable and calling of a new
8354         function and condition with this variable. Changed third argument of
8355         calling of a function.
8356
8357 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8358
8359         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
8360         Rename field reference filename to fullname.
8361         * tui/tui-data.h (struct tui_source_info): Rename field filename to
8362         fullname.  New comment for it.
8363         * tui/tui-source.c (tui_set_source_content): Rename field reference
8364         filename to fullname.  Initialize field by symtab_to_fullname now.
8365         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
8366         reference filename to fullname.  Use symtab_to_fullname during
8367         comparison.
8368
8369 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8370
8371         Code cleanup.
8372         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
8373         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
8374         filename to fullname.  Rename variable this_name to this_fullname.
8375         Lowercase FILENAME_CMP call.
8376         (dw2_find_symbol_file): New comment for the returned string.
8377         (dwarf2_gdb_index_functions): Rename the function to
8378         dw2_expand_symtabs_with_fullname.
8379         * psymtab.c (read_psymtabs_with_filename): Rename to ...
8380         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
8381         fullname.
8382         (psym_functions): Rename the function to read_psymtabs_with_fullname.
8383         * symfile.h (struct quick_symbol_functions): Rename field
8384         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
8385         parameter filename to fullname.  Document returned string meaning for
8386         find_symbol_file.
8387         * symtab.c (find_line_symtab): Rename the called function to
8388         expand_symtabs_with_fullname.
8389
8390 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8391
8392         Code cleanup.
8393         * breakpoint.c (clear_command): Remove variable is_abs, unify the
8394         call of filename_cmp with compare_filenames_for_search.
8395         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
8396         is_abs, unify the call of FILENAME_CMP with
8397         compare_filenames_for_search.  New gdb_asserts for real_path and name.
8398         Unify the call of compare_filenames_for_search with FILENAME_CMP.
8399         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8400         * symfile.h (struct quick_symbol_functions): Extend the comment for
8401         map_symtabs_matching_filename.
8402         * symtab.c (compare_filenames_for_search): Remove the function comment
8403         relative path requirement.  Handle absolute filenames, with a comment.
8404         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
8405         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
8406         real_path and name.  Unify the call of compare_filenames_for_search
8407         with FILENAME_CMP.
8408         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
8409
8410 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8411
8412         Code cleanup.
8413         * breakpoint.c (print_breakpoint_location): Replace bp_location field
8414         source_file references by symtab field references.  Remove variables
8415         sal and fullname.
8416         (momentary_breakpoint_from_master, add_location_to_breakpoint):
8417         (clear_command, say_where): Replace bp_location field source_file
8418         references by symtab field references.
8419         (bp_location_dtor): Remove the source_file reference.
8420         (update_static_tracepoint): Replace bp_location field source_file
8421         references by symtab field references.
8422         (breakpoint_free_objfile): New function.
8423         * breakpoint.h (struct bp_location): Extend the comment for line_number.
8424         Replace the field source_file by field symtab, extend its comment.
8425         (breakpoint_free_objfile): New declaration.
8426         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
8427         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
8428         field source_file references by symtab field references.
8429
8430 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8431
8432         Replace xfullpath calls by gdb_realpath calls.
8433         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
8434         function comment.
8435         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
8436         Remove it from the iterate_over_some_symtabs call.
8437         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
8438         Remove it from the dw2_map_expand_apply calls, remove a block handling
8439         it.
8440         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
8441         Remove it from the iterate_over_some_symtabs call.
8442         (partial_map_symtabs_matching_filename): Remove parameter full_path.
8443         Remove it from the partial_map_expand_apply calls, remove a block
8444         handling it.  Drop gdb_realpath call and cleanups from the real_path
8445         handling.
8446         * source.c (openp): Drop the comment part about xfullpath.  Replace
8447         xfullpath calls by gdb_realpath calls.
8448         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
8449         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
8450         from method map_symtabs_matching_filename and its comment.
8451         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
8452         gdb_realpath call.
8453         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
8454         remove it also from the function comment, remove a block handling it.
8455         Drop gdb_realpath call and cleanups from the real_path handling.
8456         (iterate_over_symtabs): Drop variable full_path and its use.
8457         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
8458         * utils.c (xfullpath): Remove.
8459         * utils.h (xfullpath): Remove.
8460
8461 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
8462
8463         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
8464         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
8465         (ALLDEPFILES): Add ppc64-tdep.c.
8466         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
8467         ppc64-tdep.o to gdb_target_obs.
8468         * ppc64-tdep.h: New file.
8469         * ppc64-tdep.c: New file.
8470         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
8471         ppc-linux-tdep.c to here.
8472         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
8473         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
8474         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
8475         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
8476         from ppc-linux-tdep.c to here.
8477         (ppc64_convert_from_func_ptr_addr): Rename from
8478         ppc64_linux_convert_from_func_ptr_addr to
8479         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
8480         here.
8481         * rs6000-tdep.c:
8482         (read_insn): Move from ppc-linux-tdep.c to here.
8483         (insns_match_pattern, insn_d_field, insn_ds_field): Move
8484         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
8485         * ppc-linux-tdep.c: Include ppc64-tdep.h.
8486         Removed above functions.
8487         (ppc_linux_init_abi): Adjust.
8488
8489 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
8490
8491         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
8492
8493 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
8494
8495         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
8496
8497 2013-02-01  Pedro Alves  <palves@redhat.com>
8498
8499         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
8500         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
8501
8502 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8503
8504         * elfread.c (elf_symfile_read): Limit separate debug info additions to
8505         files with no separate debug info.
8506         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
8507         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
8508         only for files with no separate debug info.
8509
8510 2013-01-31  Tom Tromey  <tromey@redhat.com>
8511
8512         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
8513         change type.
8514         (struct jit_program_space_data): Rename from jit_inferior_data.
8515         Update comments.
8516         (get_jit_program_space_data): Rename from get_jit_inferior_data.
8517         Change return type.  Attach data to program space.
8518         (jit_program_space_data_cleanup): Rename from
8519         jit_inferior_data_cleanup; change argument type.
8520         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
8521         change type.
8522         (jit_register_code): Update.
8523         (jit_update_inferior_cache): Remove.
8524         (jit_breakpoint_deleted): Get jit data from the location's program
8525         space.
8526         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
8527         'ps_data', change type.
8528         (jit_inferior_init, jit_breakpoint_re_set_internal)
8529         (jit_event_handler): Update.
8530         (free_objfile_data): Get data from objfile's program space.
8531         (_initialize_jit): Update.
8532
8533 2013-01-31  Tom Tromey  <tromey@redhat.com>
8534
8535         PR gdb/13987:
8536         * jit.c (struct jit_inferior_data) <cached_code_address,
8537         jit_breakpoint>: New fields.
8538         (jit_breakpoint_re_set_internal): Fix logging.  Only create
8539         breakpoint if cached address has changed.
8540         (jit_update_inferior_cache, jit_breakpoint_deleted): New
8541         functions.
8542         (_initialize_jit): Register breakpoint deleted observer.
8543
8544 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8545
8546         * infrun.c (handle_syscall_event): Remove unused gdbarch.
8547         (save_infcall_suspend_state): Ifdef out unused inf.
8548         (restore_infcall_suspend_state): Ifdef out unused inf.
8549         * jit.c (jit_register_code): Remove unused i, b, inf_data.
8550         (jit_frame_sniffer): Remove unused inf_data.
8551
8552 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8553
8554         * c-exp.y (classify_inner_name): Remove unused type.
8555         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
8556         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
8557         need_escape.
8558         (c_get_string): Remove unused kind.
8559         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
8560
8561 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8562
8563         * charset.c (intermediate_encoding): Remove unused i.
8564         * completer.c (signal_completer): Remove unused i.
8565         * continuations.c (discard_my_continuations_1): Remove unused
8566         continuation_ptr.
8567         * corelow.c (core_close): Remove unuseD name.
8568         (get_core_siginfo): Remove unused pid.
8569         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
8570         i, cps.
8571         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
8572         (loclist_describe_location): Remove unused first.
8573         * event-top.c (command_line_handler): Remove unused got_eof.
8574         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
8575         (resize_section_table): Remove unused old_value.
8576         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
8577         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
8578         * i386-tdep.c (i386_process_record): Remove unused rex.
8579         * infcmd.c (get_return_value): Remove unused uiout.
8580         * jv-lang.c (type_from_class): Remove unused is_array.
8581         * jv-valprint.c (java_val_print): Remove unused i.
8582         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
8583         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
8584         * m2-typeprint.c (m2_print_type): Remove unused code.
8585         * macroexp.c (get_character_constant): Remove unused body_start.
8586         (macro_stringify): Remove unused result.
8587         * objc-lang.c (find_methods): Remove unused gdbarch.
8588         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
8589         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
8590         * stack.c (print_frame_args): Remove unused summary.
8591         * thread.c (thread_apply_command): Remove unused p.
8592         * valarith.c (value_x_unop): Remove unused mangle_ptr.
8593         * valops.c (search_struct_method): Remove unused skip.
8594         * valprint.c (generic_val_print): Remove unused byte_order.
8595         * varobj.c (varobj_update): Remove unused changed.
8596         * cli/cli-cmds.c (complete_command): Remove unused next_item.
8597         (alias_command): Remove unused c.
8598         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
8599         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
8600         format.
8601         (mi_cmd_data_write_memory): Remove unused word_format.
8602         (mi_cmd_data_write_memory_bytes): Remove unused r.
8603         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
8604         p_start, p_end.
8605         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
8606         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
8607         line_width.
8608
8609 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8610
8611         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
8612         * symtab.c (iterate_over_symtabs): Remove unused s.
8613         (find_pc_sect_symtab): Remove unused pspAce.
8614         (find_pc_sect_line): Remove unused alt_symtab.
8615         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
8616         (completion_list_add_name): Remove unused newsize.
8617
8618 2013-01-31  Tom Tromey  <tromey@redhat.com>
8619
8620         PR c++/14998:
8621         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
8622         TYPE_CODE_FUNC.
8623
8624 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8625
8626         * target.c (target_read_string): Remove unused origlen.
8627
8628 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8629
8630         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
8631         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
8632         * ax-general.c (ax_print): Remove unused is_float.
8633         * blockframe.c (block_innermost_frame): Remove unused start, end.
8634         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
8635
8636 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
8637
8638         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
8639         (svr4_read_so_list): Remove unused lmo.
8640         * solib-target.c (solib_target_relocate_section_addresses): Remove
8641         unused flags.
8642
8643 2013-01-30  Tom Tromey  <tromey@redhat.com>
8644
8645         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
8646
8647 2013-01-30  Tom Tromey  <tromey@redhat.com>
8648
8649         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
8650         * utils.c (gnu_debuglink_crc32): Remove.
8651         * utils.h (gnu_debuglink_crc32): Don't declare.
8652
8653 2013-01-30  Tom Tromey  <tromey@redhat.com>
8654
8655         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
8656         (read_structure_type, read_enumeration_type): Remove cast.
8657
8658 2013-01-30  Tom Tromey  <tromey@redhat.com>
8659
8660         * dwarf2read.c (read_namespace_type): Remove cast.
8661         (read_typedef): Likewise.
8662
8663 2013-01-29  Tom Tromey  <tromey@redhat.com>
8664
8665         * dwarf2read.c (free_dwo_file): Remove assert.
8666
8667 2013-01-29  Tom Tromey  <tromey@redhat.com>
8668
8669         * value.c (deprecated_set_value_modifiable): Remove.
8670         * value.h (deprecated_set_value_modifiable): Remove.
8671
8672 2013-01-28  Doug Evans  <dje@google.com>
8673
8674         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
8675         to addresses from dwo files.
8676
8677 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
8678
8679         * valops.c (find_overload_match): Remove unused argument 'lax'.
8680         * value.h: Remove unused argument 'lax' from the declaration of
8681         find_overload_match.
8682         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
8683         to find_overload_match.
8684         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
8685         argument to find_overload_match.
8686
8687 2013-01-25  Tom Tromey  <tromey@redhat.com>
8688
8689         * dwarf2read.c (processing_has_namespace_info): Remove.
8690         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
8691         (process_die, read_func_scope, dwarf2_start_symtab)
8692         (new_symbol_full): Update.
8693
8694 2013-01-25  Tom Tromey  <tromey@redhat.com>
8695
8696         * cp-namespace.c (cp_set_block_scope): Remove.
8697         * cp-support.h (cp_set_block_scope): Remove.
8698         * dbxread.c: Include block.h.
8699         (cp_set_block_scope): New function.
8700         (process_one_symbol): Update.
8701         * dwarf2read.c (read_func_scope): Use block_set_scope.
8702
8703 2013-01-25  Pedro Alves  <palves@redhat.com>
8704
8705         * remote.c (add_current_inferior_and_thread): Tweak comment.
8706
8707 2013-01-25  Tom Tromey  <tromey@redhat.com>
8708
8709         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
8710         (cp_add_using_directive): Add 'copy_names' argument.
8711         * cp-support.h (cp_add_using_directive): Update.
8712         (struct using_direct) <import_src, import_dest, alias,
8713         declaration>: Now const.
8714         * dwarf2read.c (read_import_statement): Use obconcat.
8715         Don't copy names passed to cp_add_using_directive.
8716
8717 2013-01-25  Tom Tromey  <tromey@redhat.com>
8718
8719         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
8720
8721 2013-01-25  Pedro Alves  <palves@redhat.com>
8722
8723         * remote.c (stop_reply_extract_thread): New.
8724         (add_current_inferior_and_thread): New parameter 'wait_status'.
8725         Handle it.
8726         (remote_start_remote): Pass wait status to
8727         add_current_inferior_and_thread.
8728         (extended_remote_run): Update comment.
8729         (extended_remote_create_inferior_1): Pass wait status to
8730         add_current_inferior_and_thread.
8731
8732 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
8733             Ulrich Weigand  <uweigand@de.ibm.com>
8734
8735         * valarith.c (value_vector_widen): New function for replicating a
8736         scalar into a vector.
8737         (value_binop): Use value_vector_widen to widen scalar to vector
8738         rather than casting, this better matches gcc C behaviour.
8739         * valops.c (value_casst): Update logic for casting between vector
8740         types, and for casting from scalar to vector, try to match gcc C
8741         behaviour.
8742         * value.h (value_vector_widen): Declare.
8743         * opencl-lang.c (opencl_value_cast): New opencl specific casting
8744         function, handle special case for casting scalar to vector.
8745         (opencl_relop): Use opencl_value_cast.
8746         (evaluate_subexp_opencl): Use opencl_value_cast instead of
8747         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
8748         in order to use opencl_value_cast.
8749
8750 2013-01-25  Yao Qi  <yao@codesourcery.com>
8751
8752         * event-loop.c: Include "queue.h".
8753         (gdb_event_p): New typedef.
8754         (DECLARE_QUEUE_P): Use.
8755         (DEFINE_QUEUE_P): Use.
8756         (async_queue_event): Remove.
8757         (gdb_event_xfree): New.
8758         (initialize_event_loop): New.
8759         (process_event): Use QUEUE macros.
8760         (event_queue): Remove.
8761         (gdb_wait_for_event): Caller update.
8762         (check_async_event_handlers): Likewise.
8763         (poll_timers): Likewise.
8764         * event-loop.h (initialize_event_loop): Declare.
8765         * event-loop.c (gdb_event_xfree): New.
8766         * top.c (gdb_init): Call initialize_event_loop.
8767
8768 2013-01-25  Yao Qi  <yao@codesourcery.com>
8769
8770         * event-loop.c (async_queue_event): Remove one parameter
8771         'position'.  Remove code handling 'position' == TAIL.
8772         (gdb_wait_for_event): Caller update.
8773         (check_async_event_handlers): Caller update.
8774         (poll_timers): Caller update.
8775         * event-loop.h (enum queue_position): Remove.
8776
8777 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
8778
8779         * MAINTAINERS: Update my email.
8780
8781 2013-01-25  Yao Qi  <yao@codesourcery.com>
8782
8783         * main.c (print_gdb_help): Remove "--epoch" from the help
8784         message.
8785
8786 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
8787
8788         * symtab.c (skip_prologue_using_sal): Consider a file
8789         change the same as an increased line number
8790
8791 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
8792
8793         * MAINTAINERS (Write After Approval): Add myself to the list.
8794
8795 2013-01-24  Tom Tromey  <tromey@redhat.com>
8796
8797         * ada-lang.h (ada_decode_symbol): Make return type const.
8798         * ada-lang.c (ada_decode_symbol): Likewise.
8799
8800 2013-01-23  Doug Evans  <dje@google.com>
8801
8802         * linespec.c (find_linespec_symbols): Make static.
8803
8804 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
8805
8806         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
8807         type on float conversion for complex type.
8808
8809 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
8810
8811         Add a new class gdb.Architecture which exposes GDB's
8812         internal representation of architecture via GDB Python API.
8813         * Makefile.in: Add entries corresponding to the new file
8814         python/py-arch.c.
8815         * NEWS (Python Scripting): Add entries for the new class
8816         gdb.Architecture and the new method gdb.Frame.architecture.
8817         * python/py-arch.c: Implement gdb.Architecture class.
8818         * python/py-frame.c (frapy_arch): Implement the method
8819         gdb.Frame.architecture().
8820         (frame_object_methods): Add 'architecture' to the method table.
8821         * python/python-internal.h: Add declarations of new utility
8822         functions.
8823         * python/python.c (_initialize_python): Initialize
8824         gdb.Architecture class.
8825
8826 2013-01-23  Doug Evans  <dje@google.com>
8827
8828         Work around binutils/15021.
8829         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
8830         type_unit_group out of union s.  All uses updated.
8831         (read_index_from_section): Watch for index version 8.
8832         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
8833         an imported symtab.
8834         (write_psymtabs_to_index): Increment version number to 8.
8835
8836 2013-01-22  Pedro Alves  <palves@redhat.com>
8837
8838         * annotate.c (breakpoint_changed): Skip if breakpoint is not
8839         user-visible.
8840
8841 2013-01-22  Pedro Alves  <palves@redhat.com>
8842
8843         * annotate.c (annotate_breakpoints_changed): Rename to ...
8844         (annotate_breakpoints_invalid): ... this.  Make static.
8845         (breakpoint_changed): Adjust.
8846         (_initialize_annotate): Always install the observers.  Install a
8847         "breakpoint_created" observer.
8848         * annotate.h (annotate_breakpoints_changed): Delete declaration.
8849         * breakpoint.c (set_breakpoint_condition)
8850         (breakpoint_set_commands, do_map_commands_command)
8851         (init_raw_breakpoint, clear_command, set_ignore_count)
8852         (enable_breakpoint_disp): No longer call
8853         annotate_breakpoints_changed.
8854
8855 2013-01-22  Pedro Alves  <palves@redhat.com>
8856
8857         * annotate.c: Include "inferior.h".
8858         (frames_invalid_emitted)
8859         (breakpoints_invalid_emitted): New globals.
8860         (async_background_execution_p): New function.
8861         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
8862         emitting the annotation if it has already been emitted.
8863         (annotate_display_prompt): New function.
8864         * annotate.h (annotate_display_prompt): New declaration.
8865         * event-top.c: Include annotate.h.
8866         (display_gdb_prompt): Call annotate_display_prompt.
8867
8868 2013-01-22  Pedro Alves  <palves@redhat.com>
8869
8870         * annotate.c (ignore_count_changed): Delete.
8871         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
8872         (annotate_ignore_count_change): Delete.
8873         (annotate_stopped): Don't emit a delayed breakpoints-changed
8874         annotation.
8875         * annotate.h (annotate_ignore_count_change): Delete.
8876         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
8877         annotate_ignore_count_change.
8878
8879 2013-01-22  Tom Tromey  <tromey@redhat.com>
8880
8881         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
8882         require_rvalue for a register location.
8883
8884 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
8885
8886         * breakpoint.c (print_one_breakpoint_location): Add MI
8887         field 'thread-groups' when printing a breakpoint.
8888         (output_thread_groups): New function.
8889
8890 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
8891
8892         * python/lib/gdb/commands/explore.py
8893         (CompoundExplorer.explore_expr): Correct the name of a method
8894         being invoked.
8895         (ExploreTypeCommand.invoke): Add a missing 'return'.
8896
8897 2013-01-21  Tom Tromey  <tromey@redhat.com>
8898
8899         * gdb_obstack.h (obconcat): Move declaration here, from...
8900         * symfile.h (obconcat): ... here.
8901         * gdb_obstack.c: New file.
8902         (obconcat): Move from...
8903         * symfile.c (obconcat): ... here.
8904         * Makefile.in (SFILES): Add gdb_obstack.c.
8905         (COMMON_OBS): Add gdb_obstack.o.
8906
8907 2013-01-21  Tom Tromey  <tromey@redhat.com>
8908
8909         * symfile.h (obsavestring): Don't declare.
8910         * symfile.c (obsavestring): Remove.
8911         * ada-exp.y: Use obstack_copy0, not obsavestring.
8912         * ada-lang.c: Use obstack_copy0, not obsavestring.
8913         * coffread.c: Use obstack_copy0, not obsavestring.
8914         * cp-namespace.c: Use obstack_copy0, not obsavestring.
8915         * dbxread.c: Use obstack_copy0, not obsavestring.
8916         * dwarf2read.c: Use obstack_copy0, not obsavestring.
8917         * jit.c: Use obstack_copy0, not obsavestring.
8918         * mdebugread.c: Use obstack_copy0, not obsavestring.
8919         * psymtab.c: Use obstack_copy0, not obsavestring.
8920         * stabsread.c: Use obstack_copy0, not obsavestring.
8921         * xcoffread.c: Use obstack_copy0, not obsavestring.
8922
8923 2013-01-21  Tom Tromey  <tromey@redhat.com>
8924
8925         * dwarf2read.c (fixup_go_packaging): Save package name
8926         on objfile obstack.
8927         * gdbtypes.c (init_type): Don't copy name.
8928
8929 2013-01-21  Tom Tromey  <tromey@redhat.com>
8930
8931         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
8932         const.
8933         (struct attribute) <u.str>: Now const.
8934         (struct fnfieldlist) <name>: Now const.
8935         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
8936         (partial_die_parent_scope): Make return type const.
8937         (partial_die_full_name, add_partial_symbol): Update.
8938         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
8939         'name' const.
8940         (find_file_and_directory): Make 'name' and 'comp_dir' const.
8941         (read_file_scope, read_func_scope, dwarf2_add_field)
8942         (dwarf2_add_member_fn, read_structure_type)
8943         (process_enumeration_scope, read_array_type, read_module_type)
8944         (read_base_type, read_subrange_type): Update.
8945         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
8946         (new_symbol_full, guess_full_die_structure_name): Update.
8947         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
8948         (dwarf2_name): Return const type.
8949         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
8950         const.
8951
8952 2013-01-21  Tom Tromey  <tromey@redhat.com>
8953
8954         * gdbtypes.c (init_type): Make 'name' const.
8955         * gdbtypes.h (init_type): Update.
8956
8957 2013-01-21  Tom Tromey  <tromey@redhat.com>
8958
8959         * buildsym.c (patch_subfile_names): Use set_last_source_file.
8960         (start_symtab): Make 'name' and 'dirname' const.  Use
8961         set_last_source_file.
8962         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
8963         (last_source_file): Define.  Now static.
8964         (set_last_source_file, get_last_source_file): New functions.
8965         * buildsym.h (last_source_file): Don't declare.
8966         (start_symtab): Update.
8967         (set_last_source_file, get_last_source_file): Declare.
8968         * coffread.c (complete_symtab): Use set_last_source_file.
8969         (coff_end_symtab): Likewise.
8970         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
8971         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
8972         set_last_source_file.
8973         (process_one_symbol): Use get_last_source_file.
8974         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
8975         (psymtab_to_symtab_1): Use get_last_source_file.
8976         * xcoffread.c (process_linenos): Use get_last_source_file.
8977         (complete_symtab): Use set_last_source_file.
8978         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
8979         (scan_xcoff_symtab): Use set_last_source_file.
8980
8981 2013-01-21  Tom Tromey  <tromey@redhat.com>
8982
8983         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
8984         (symbol_set_names): Remove casts.  Handle field const-ness.
8985
8986 2013-01-21  Tom Tromey  <tromey@redhat.com>
8987
8988         * dwarf2read.c (new_symbol_full): Remove cast.
8989         * symtab.c (symbol_set_demangled_name): Make 'name' const.
8990         * symtab.h (symbol_set_demangled_name): Update.
8991
8992 2013-01-21  Tom Tromey  <tromey@redhat.com>
8993
8994         * main.c (captured_main): Call bfd_init.
8995
8996 2013-01-21  Tom Tromey  <tromey@redhat.com>
8997
8998         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
8999         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9000         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9001         * NEWS: Update.
9002
9003 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9004
9005         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9006
9007 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9008
9009         Fix gdb.fortran/common-block.exp crash in PIE mode.
9010         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9011         LOC_COMMON_BLOCK.
9012         * f-valprint.c (info_common_command_for_block): Expect
9013         LOC_COMMON_BLOCK in gdb_assert.
9014         * symtab.h (struct general_symbol_info): Update comment for the
9015         common_block member.
9016         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9017         (enum address_class): New member LOC_COMMON_BLOCK.
9018
9019 2013-01-18  David Blaikie  <dblaikie@gmail.com>
9020
9021         * MAINTAINERS (Write After Approval): Add "David Blaikie".
9022
9023 2013-01-18  Tom Tromey  <tromey@redhat.com>
9024
9025         PR c++/14999:
9026         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9027         Call require_rvalue.
9028
9029 2013-01-18  Yao Qi  <yao@codesourcery.com>
9030
9031         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9032         (dbx_read_symtab): New declaration.
9033         (dbx_psymtab_to_symtab): Delete.
9034         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9035         Rename parameter PST to SELF.  Exchanged two parameters.
9036         (start_psymtab): Caller update.
9037         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9038         (dwarf2_read_symtab): New declaration.
9039         (dwarf2_psymtab_to_symtab): Delete.
9040         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9041         Rename parameter PST to SELF.  Exchanged two parameters.
9042         (create_partial_symtab): Caller update.
9043         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9044         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9045         Rename parameter PST to SELF.  Exchanged two parameters.
9046         (parse_partial_symbols, new_psymtab): Caller update.
9047         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9048         two parameters.
9049         * psymtab.c (psymtab_to_symtab): Caller update.
9050         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9051         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9052         Rename parameter PST to SELF.  Exchanged two parameters.
9053         (xcoff_start_psymtab): Caller update.
9054
9055 2013-01-18  Yao Qi  <yao@codesourcery.com>
9056
9057         * infrun.c (proceed): Rename local variable 'oneproc' to
9058         'force_step'.
9059
9060 2013-01-17  Doug Evans  <dje@google.com>
9061
9062         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9063         (dw2_build_type_unit_groups): Delete.  All uses updated.
9064
9065         * symtab.h (struct symbol_search): Add comment.
9066
9067 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9068
9069         * symtab.c (compare_filenames_for_search): New comment for
9070         HAS_DRIVE_SPEC.
9071
9072 2013-01-17  Tom Tromey  <tromey@redhat.com>
9073
9074         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9075
9076 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9077
9078         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9079         initialize it by existing make_cleanup.  Call new do_cleanups.
9080
9081 2013-01-17  Tom Tromey  <tromey@redhat.com>
9082
9083         * cp-abi.c (cp_abi_completer): New function.
9084         (_initialize_cp_abi): Set completer for "set cp-abi".
9085
9086 2013-01-17  Tom Tromey  <tromey@redhat.com>
9087
9088         * mem-break.c: Remove obsolete comment.
9089         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9090
9091 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
9092
9093         * jit.c (jit_reader_load_command): Interpret the jit reader name
9094         as an absolute path if it begins with a forward slash.
9095
9096 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
9097
9098         PR gdb/14550
9099
9100         * jit.c (finalize_symtab): Ensure that only the global block has a
9101         NULL superblock.
9102
9103 2013-01-17  Pedro Alves  <palves@redhat.com>
9104
9105         * acinclude.m4: Include ../config/plugins.m4,
9106         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
9107         * Makefile.in (aclocal_m4_deps): Update.
9108         * aclocal.m4: Renegerate.
9109
9110 2013-01-16  Doug Evans  <dje@google.com>
9111
9112         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9113
9114 2013-01-16  Pedro Alves  <palves@redhat.com>
9115             Tom Tromey  <tromey@redhat.com>
9116
9117         PR cli/7221:
9118         * NEWS: Add "catch signal".
9119         * breakpoint.c (base_breakpoint_ops): No longer static.
9120         (bpstat_explains_signal): New function.
9121         (init_catchpoint): No longer static.
9122         (base_breakpoint_explains_signal): New function.
9123         (base_breakpoint_ops): Initialize new field.
9124         * breakpoint.h (enum bpstat_signal_value): New.
9125         (struct breakpoint_ops) <explains_signal>: New field.
9126         (bpstat_explains_signal): Remove macro, declare as function.
9127         (base_breakpoint_ops, init_catchpoint): Declare.
9128         * break-catch-sig.c: New file.
9129         * inferior.h (signal_catch_update): Declare.
9130         * infrun.c (signal_catch): New global.
9131         (handle_syscall_event): Update for change to
9132         bpstat_explains_signal.
9133         (handle_inferior_event): Likewise.  Always handle random signals
9134         via bpstats.
9135         (signal_cache_update): Check signal_catch.
9136         (signal_catch_update): New function.
9137         (_initialize_infrun): Initialize signal_catch.
9138         * Makefile.in (SFILES): Add break-catch-sig.c.
9139         (COMMON_OBS): Add break-catch-sig.o.
9140
9141 2013-01-16  Tom Tromey  <tromey@redhat.com>
9142
9143         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9144         (print_one_catch_solib, print_one_catch_syscall)
9145         (print_one_catch_exec, print_one_exception_catchpoint): Emit
9146         "catch-type".
9147
9148 2013-01-16  Yao Qi  <yao@codesourcery.com>
9149
9150         * printcmd.c (current_display_number): Make it static.
9151
9152 2013-01-16  Yao Qi  <yao@codesourcery.com>
9153
9154         * infcmd.c (step_once): Don't check '!single_inst' as it was
9155         checked before.
9156
9157 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9158
9159         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9160
9161 2013-01-14  Tom Tromey  <tromey@redhat.com>
9162
9163         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9164         set command.
9165         * command.h (add_setshow_string_noescape_cmd): Update.
9166         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9167         (complete_set_gnutarget): New function.
9168         (_initialize_core): Set the "set gnutarget" completer.
9169
9170 2013-01-14  Tom Tromey  <tromey@redhat.com>
9171
9172         PR symtab/14442:
9173         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9174         (c_type_print_modifier): Likewise.
9175         * dwarf2read.c (read_tag_restrict_type): New function.
9176         (read_type_die_1): Handle DW_TAG_restrict_type.
9177         * gdbtypes.c (make_restrict_type): New function.
9178         (recursive_dump_type): Handle TYPE_RESTRICT.
9179         * gdbtypes.h (enum type_flag_values): Renumber.
9180         (enum type_instance_flag_value): Add
9181         TYPE_INSTANCE_FLAG_RESTRICT.
9182         (TYPE_RESTRICT): New macro.
9183         (make_restrict_type): Declare.
9184
9185 2013-01-14  Tom Tromey  <tromey@redhat.com>
9186
9187         PR symtab/14931:
9188         * psymtab.c (struct psymtab_state): New.
9189         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9190         functions.
9191         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9192         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9193
9194 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
9195             Pedro Alves  <palves@redhat.com>
9196
9197         PR remote/14786
9198
9199         * remote.c (remote_threads_info): Make a copy of the reply from
9200         qfThreadInfo and use that instead of rs->buf.
9201
9202 2013-01-14  Yao Qi  <yao@codesourcery.com>
9203
9204         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9205         (dbx_psymtab_to_symtab): Likewise.
9206         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9207         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9208         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9209
9210 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9211
9212         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
9213         make_cleanup_restore_current_language.  Call set_language.  Move
9214         OLD_CHAIN and INNER_CHAIN cleanups.
9215         * utils.c (do_restore_current_language)
9216         (make_cleanup_restore_current_language): New functions.
9217         * utils.h (make_cleanup_restore_current_language): New declaration.
9218
9219 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9220
9221         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9222         non-existing files.
9223
9224         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9225         non-existing files if FILENAME is already absolute.
9226
9227 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9228
9229         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9230         fputs_filtered.  Append trailing newline.
9231
9232 2013-01-11  Yao Qi  <yao@codesourcery.com>
9233             Stan Shebs  <stan@codesourcery.com>
9234
9235         * psymtab.c (init_psymbol_list): Clarify the comment.
9236
9237 2013-01-11  Yao Qi  <yao@codesourcery.com>
9238
9239         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9240         (update_dprintf_command_list): Assert that 'printf_line' is
9241         non-null.  Remove condition check.
9242
9243 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9244
9245         Code cleanup.
9246         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9247         type const char *.
9248         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9249         const char *.
9250         * tui/tui-source.h (tui_source_is_displayed): Likewise.
9251
9252 2013-01-09  Anthony Green  <green@moxielogic.com>
9253
9254         * cp-abi.c (cplus_print_vtable): Don't return value from void
9255         function.
9256         * ada-lang.c (re_set_catch_assert): Ditto.
9257
9258 2013-01-09  Doug Evans  <dje@google.com>
9259
9260         * symfile.h (quick_symbol_functions): Delete member
9261         pre_expand_symtabs_matching.  All uses removed.
9262         * dwarf2read.c (dw2_lookup_symbol): Implement.
9263         (dw2_do_expand_symtabs_matching): Delete.
9264         (dw2_pre_expand_symtabs_matching): Delete.
9265         (struct dw2_symtab_iterator): New type.
9266         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9267         (dw2_expand_symtabs_for_function): Rewrite.
9268         (dwarf2_gdb_index_functions): Update.
9269         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9270         (psym_functions): Update.
9271
9272 2013-01-09  Tom Tromey  <tromey@redhat.com>
9273
9274         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9275         * configure: Rebuild.
9276         * configure.ac: Add somread.o to the build if BFD has SOM
9277         support.
9278         * somread.c: Include som/aout.h, not syms.h.
9279         (som_symtab_read): Use som_external_symbol_dictionary_record.
9280         Unpack records manually.
9281         (_initialize_somread): Declare.
9282
9283 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
9284
9285         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
9286         Cast return_address to 64bits.
9287
9288 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
9289
9290         * printcmd.c: Remove define of function output_command.
9291         * tracepoint.c: Remove extern of function output_command.
9292         * valprint.h: (output_command): New extern.
9293
9294 2013-01-07  Tom Tromey  <tromey@redhat.com>
9295
9296         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
9297         Remove.
9298         (objc_language_defn): Use c_printchar, c_printstr,
9299         c_emit_char.
9300
9301 2013-01-07  Tom Tromey  <tromey@redhat.com>
9302
9303         PR cli/7719:
9304         * NEWS: Update.
9305         * ada-valprint.c (printstr, print_field_values): Remove
9306         "inspect_it" code.
9307         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
9308         code.
9309         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
9310         code.
9311         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
9312         * main.c (captured_main): Remove "epoch" argument.
9313         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
9314         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
9315         * p-valprint.c (pascal_object_print_value_fields): Remove
9316         "inspect_it" code.
9317         * printcmd.c (print_command_1): Remove 'inspect' argument.
9318         (print_command, call_command): Update.
9319         (inspect_command): Remove.
9320         (_initialize_printcmd): Make "inspect" an alias for "print".
9321         * top.c (epoch_interface): Remove.
9322         * top.h (epoch_interface): Remove.
9323         * valprint.c (user_print_options): Update.
9324         (print_converted_chars_to_obstack): Remove "inspect_it" code.
9325         * valprint.h (struct value_print_options) <inspect_it>: Remove
9326         field.
9327
9328 2013-01-04  Tom Tromey  <tromey@redhat.com>
9329
9330         * valprint.h (read_string): Add 'extern'.
9331
9332 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
9333
9334         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
9335         used to decide whether to define darwin_read_dyld_info or not.
9336
9337 2013-01-03  Pierre Muller  <muller@sourceware.org>
9338
9339         * main.c (relocate_gdb_directory): Avoid calling stat function
9340         if DIR is empty.
9341
9342 2013-01-03  Yao Qi  <yao@codesourcery.com>
9343
9344         * psymtab.c (fixup_psymbol_section): Update declaration.
9345         (fixup_psymbol_section): Remove code returning value.
9346
9347 2013-01-03  Yao Qi  <yao@codesourcery.com>
9348
9349         * symtab.h: Remove some out of date comments.
9350          (enum exception_event_kind): Move it ...
9351         * breakpoint.c: ... here.
9352
9353 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
9354
9355         PR gdb/14405
9356         * darwin-nat.c (darwin_read_dyld_info): Only build if
9357         TASK_DYLD_INFO_COUNT is defined.
9358         (darwin_xfer_partial): Call darwin_read_dyld_info only if
9359         TASK_DYLD_INFO_COUNT is defined.
9360
9361 2013-01-02  Tom Tromey  <tromey@redhat.com>
9362
9363         * symfile.h (struct ecoff_debug_hack): Remove.
9364         * objfiles.c: Don't include mdebugread.h.
9365
9366 2013-01-02  Tom Tromey  <tromey@redhat.com>
9367
9368         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
9369         * configure.ac: Check for Mach-O support in BFD.  Update
9370         CONFIG_OBS.
9371         * configure: Rebuild.
9372
9373 2013-01-02  Tom Tromey  <tromey@redhat.com>
9374
9375         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
9376         * configure.ac: Use GDB_AC_CHECK_BFD.
9377         * configure: Rebuild.
9378
9379 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9380
9381         * MAINTAINERS: Update my email.
9382
9383 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
9384
9385         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
9386
9387 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
9388
9389         * rs6000-nat.c (bss_data_overlap): New function.
9390         (vmap_symtab): Use it to adjust the .bss section's offset.
9391
9392 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
9393
9394         Update year range in copyright notice of all files.
9395
9396 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
9397
9398         * top.c (print_gdb_version): Update copyright year.
9399
9400 For older changes see ChangeLog-2012.
9401 \f
9402 Local Variables:
9403 mode: change-log
9404 left-margin: 8
9405 fill-column: 74
9406 version-control: never
9407 coding: utf-8
9408 End: