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