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