infrun.c: Don't set ecs->random_signal for "catchpoint" events (eliminate ecs->random...
[external/binutils.git] / gdb / ChangeLog
1 2013-11-14  Pedro Alves  <palves@redhat.com>
2
3         * infrun.c (struct execution_control_state): Remove
4         'random_signal' field.
5         (handle_syscall_event): Use bpstat_causes_stop instead of
6         bpstat_explains_signal.  Don't set ecs->random_signal.
7         (handle_inferior_event): New 'random_signal' local.
8         <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
9         TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
10         bpstat_explains_signal.  Don't set ecs->random_signal.
11         <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
12         ecs->random_signal.
13
14 2013-11-14  Pedro Alves  <palves@redhat.com>
15
16         * infrun.c (handle_inferior_event): Move comment from the
17         function's body to the function's description, adjusted.
18
19 2013-11-14  Pedro Alves  <palves@redhat.com>
20
21         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
22         Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
23         Assert we never fall through out of the TARGET_WAITKIND_LOADED
24         case.
25
26 2013-11-14  Tom Tromey  <tromey@redhat.com>
27
28         * python/py-linetable.c (ltpy_has_line)
29         (ltpy_get_all_source_lines): Fix loop termination condition.
30
31 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
32
33         * mi/mi-parse.h (struct mi_parse) <language>: New field.
34         * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
35         PARSE->LANGUAGE during command execution, if set.
36         * mi/mi-parse.c: Add "language.h" #include.
37         (mi_parse): Add parsing of "--language" command option.
38
39         * NEWS: Add entry mentioning the new "--language" command option.
40
41 2013-11-14  Pedro Alves  <palves@redhat.com>
42             Joel Brobecker  <brobecker@adacore.com>
43
44         * cli/cli-utils.h (extract_arg_const): Add declaration.
45         * cli/cli-utils.c (extract_arg_const): New function.
46         (extract_arg): Reimplement using extract_arg_const.
47
48 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
49
50         * language.h: Add "symtab.h" #include.
51
52 2013-11-13  Doug Evans  <xdje42@gmail.com>
53
54         * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
55         specific breakpoints, don't evaluate breakpoint condition if
56         different thread.
57
58 2013-11-13  Keith Seitz  <keiths@redhat.com>
59
60         PR c++/7935
61         PR c++/10541
62         * cp-support.c (insepct_type): Add support for substituting
63         namespace aliases, too.
64         * dwarf2read.c (scan_partial_symbols): Add a partial symbol
65         for DW_TAG_imported_declaration.
66         (add_partial_symbol): Likewise.
67         (process_die): Handle namespace aliases with
68         read_namespace_alias.
69         (die_needs_namespace): Add DW_TAG_imported_declaration.
70         (read_namespace_alias): New function.
71         (load_partial_dies): Load DW_TAG_imported_declaration, too.
72         (new_symbol_full): Handle DW_TAG_imported_declaration.
73
74 2013-11-13  Keith Seitz  <keiths@redhat.com>
75
76         * p-exp.y (uptok): Make first parameter const.
77         (yylex): Make `tokstart' and `tokptr' const.
78         Don't copy the lexer input to a temporary buffer.
79         Make `p' const.
80         Remove const workaround for parse_escape.
81         Create a temporary buffer for a convenience variable instead
82         of doing in-place modification of the input.
83         If a match is found with a different case from the input,
84         do not change the input at all.
85         Use `tmp' to construct the resultant stoken instead of
86         `tokstart'.
87
88 2013-11-13  Doug Evans  <xdje42@gmail.com>
89
90         * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
91
92 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
93
94         * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
95         entry with "ada-exceptions".
96
97 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
98
99         * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
100         after re-initialization of OBJFILE's obstack.
101
102 2013-11-12  Doug Evans  <xdje42@gmail.com>
103
104         * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
105         bs->stop != 0 on entry.  Update function comment.  Simplify early
106         exit for frame mismatch.  Reindent rest of function.
107
108 2013-11-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
109
110         * objc-lang.c (uniquify_strings): Prevent invoking qsort with
111         NULL.
112
113 2013-11-12  Doug Evans  <dje@google.com>
114
115         Work around gold/15646.
116         * dwarf2read.c (read_index_from_section): Update comment.
117         (struct dw2_symtab_iterator): New member global_seen.
118         (dw2_symtab_iter_init): Initialize it.
119         (dw2_symtab_iter_next): Skip duplicate global symbols.
120         (dw2_expand_symtabs_matching): Ditto.
121
122 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
123
124         * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
125         * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
126         command.
127         * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
128         (mi_cmd_info_ada_exceptions): New function.
129         * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
130
131 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
132
133         * ada-lang.h: #include "vec.h".
134         (struct ada_exc_info): New.
135         (ada_exc_info): New typedef.
136         (DEF_VEC_O(ada_exc_info)): New vector.
137         (ada_exceptions_list): Add declaration.
138         * ada-lang.c (ada_is_exception_sym)
139         (ada_is_non_standard_exception_sym, compare_ada_exception_info)
140         (sort_remove_dups_ada_exceptions_list)
141         (ada_exc_search_name_matches, ada_add_standard_exceptions)
142         (ada_add_exceptions_from_frame, ada_add_global_exceptions)
143         (ada_exceptions_list_1, ada_exceptions_list)
144         (info_exceptions_command): New function.
145         (_initialize_ada_language): Add "info exception" command.
146
147 2013-11-11  Phil Muldoon  <pmuldoon@redhat.com>
148
149         PR python/15629
150         * NEWS: Add linetable feature.
151         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
152         * python/py-linetable.c: New file.
153         * python/py-symtab.c (stpy_get_linetable): New function.
154         * python/python-internal.h (symtab_to_linetable_object): Declare.
155         (gdbpy_initialize_linetable): Ditto.
156         * python/python.c (_initialize_python): Call
157         gdbpy_initialize_linetable.
158
159 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
160
161         * ada-lang.c (create_ada_exception_catchpoint): Enhance
162         the documentation of fields "except_string" and "condition".
163         * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
164         CONDITION on the heap before passing it to
165         create_ada_exception_catchpoint.
166         (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
167         CONDITION.
168
169 2013-11-11  Tom Tromey  <tromey@redhat.com>
170
171         * config.in, configure: Rebuild.
172         * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
173
174 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
175
176         * remote-sim.c (gdbsim_detach): Break declaration into
177         shorter lines.  No code change.
178
179 2013-11-11  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
180
181         * remote-sim.c (gdbsim_detach): Fix prototype.
182
183 2013-11-08  Doug Evans  <dje@google.com>
184
185         * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
186         (create_debug_types_hash_table): Only print debugging messages for
187         each TU if dwarf2-read >= 2.
188         (process_queue): Ditto.
189         (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
190         Update doc string.
191
192 2013-11-08  Tom Tromey  <tromey@redhat.com>
193
194         * configure: Rebuild.
195         * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
196
197 2013-11-08  Tom Tromey  <tromey@redhat.com>
198
199         * configure, config.in: Rebuild.
200         * configure.ac: Remove unused configury.
201
202 2013-11-08  Tom Tromey  <tromey@redhat.com>
203
204         * m32c-tdep.c: Use gdb_string.h.
205
206 2013-11-08  Tom Tromey  <tromey@redhat.com>
207
208         * configure, config.in: Rebuild.
209         * configure.ac: Remove all link.h-related checks.
210
211 2013-11-08  Tom Tromey  <tromey@redhat.com>
212
213         * acinclude.m4: Include common.m4.
214         * common/common.m4: New file.
215         * configure, config.in: Rebuild.
216         * configure.ac: Use GDB_AC_COMMON.
217
218 2013-11-08  Doug Evans  <dje@google.com>
219
220         * NEWS: Mention that "set debug symtab-create" now accepts a
221         verbosity level.
222         * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
223         to set the symtab's primary flag.
224         * jit.c (finalize_symtab): Ditto.
225         * mdebugread.c (psymtab_to_symtab_1): Ditto.
226         * symfile.c (allocate_symtab): Only print debugging messages for
227         symtab_create_debug levels 2 and higher.
228         * symtab.c (symtab_create_debug): Change type to unsigned int.
229         (set_symtab_primary): New function.
230         (_initialize_symtab): Change "set debug symtab-create" to a
231         zuinteger option.
232         * symtab.h (set_symtab_primary): Declare.
233         (symtab_create_debug): Update decl.
234
235 2013-11-08  Tom Tromey  <tromey@redhat.com>
236
237         * aix-thread.c (aix_thread_detach): Update.
238         * corelow.c (core_detach): Update.
239         * darwin-nat.c (darwin_detach): Update.
240         * dec-thread.c (dec_thread_detach): Update.
241         * gnu-nat.c (gnu_detach): Update.
242         * go32-nat.c (go32_detach): Update.
243         * inf-ptrace.c (inf_ptrace_detach): Update.
244         * inf-ttrace.c (inf_ttrace_detach): Update.
245         * linux-fork.c (linux_fork_detach): Update.
246         * linux-fork.h (linux_fork_detach): Update.
247         * linux-nat.c (linux_nat_detach): Update.  Introduce "tem"
248         local for const-correctness.
249         * linux-thread-db.c (thread_db_detach): Update.
250         * monitor.c (monitor_detach): Update.
251         * nto-procfs.c (procfs_detach): Update.
252         * procfs.c (procfs_detach): Update.
253         * record.c (record_detach): Update.
254         * record.h (record_detach): Update.
255         * remote-m32r-sdi.c (m32r_detach): Update.
256         * remote-mips.c (mips_detach): Update.
257         * remote-sim.c (gdbsim_detach): Update.
258         * remote.c (remote_detach_1, remote_detach)
259         (extended_remote_detach): Update.
260         * sol-thread.c (sol_thread_detach): Update.
261         * target.c (target_detach): Make "args" const.
262         (init_dummy_target): Update.
263         * target.h (struct target_ops) <to_detach>: Make argument const.
264         (target_detach): Likewise.
265         * windows-nat.c (windows_detach): Update.
266
267 2013-11-07  Doug Evans  <dje@google.com>
268
269         PR 11786
270         *  solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
271         and align fields for PT_GNU_RELRO segments.
272
273 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
274
275         PR python/15747
276         * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
277
278 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
279
280         * NEWS: Document Python temporary breakpoint support.
281         * python/py-breakpoint.c (bppy_get_temporary): New function.
282         (bppy_init): New keyword: temporary. Parse it and set breakpoint
283         to temporary if True.
284
285 2013-11-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
286
287         * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
288         removed to allow analyzing unconditional branch instructions
289         with PC-relative offsets of zero.
290
291 2013-11-07  Yao Qi  <yao@codesourcery.com>
292
293         * mi/mi-cmd-var.c: Include "language.h".
294         (mi_cmd_var_info_expression): Get language name from
295         language_defn.
296         * varobj.c (varobj_language_string): Remove.
297         (variable_language): Remove declaration.
298         (languages): Remove.
299         (varobj_get_language): Change the type of return value.
300         (variable_language): Remove.
301         * varobj.h (enum varobj_languages): Remove.
302         (varobj_language_string): Remove declaration.
303         (varobj_get_language): Update declaration.
304
305 2013-11-07  Yao Qi  <yao@codesourcery.com>
306
307         * language.h (struct language_defn) <la_natural_name>: New
308         field.
309         * ada-lang.c (ada_language_defn): Initialize field
310         'la_natural_name'.
311         * c-lang.c (c_language_defn): Likewise.
312         (cplus_language_defn, asm_language_defn): Likewise.
313         * d-lang.c (d_language_defn): Likewise.
314         * f-lang.c (f_language_defn): Likewise.
315         * go-lang.c (go_language_defn): Likewise.
316         * jv-lang.c (java_language_defn): Likewise.
317         * language.c (unknown_language_defn ): Likewise.
318         (auto_language_defn): Likewise.
319         * m2-lang.c (m2_language_defn): Likewise.
320         * objc-lang.c (objc_language_defn): Likewise.
321         * opencl-lang.c (opencl_language_defn): Likewise.
322         * p-lang.c (pascal_language_defn): Likewise.
323
324 2013-11-07  Yao Qi  <yao@codesourcery.com>
325
326         * language.c (language_str): Return const char *.
327         (add_language): Add const to 'language_names'
328         * language.h (struct language_defn) <la_name>: Add const.
329         (language_str: Update declaration.
330
331 2013-11-06  Andreas Arnez  <arnez@linux.vnet.ibm.com>
332
333         * s390-linux-nat.c (s390_read_description): Consider the TE field
334         in the HWCAP for determining 'have_regset_tdb'.
335
336 2013-11-06  Will Newton  <will.newton@linaro.org>
337
338         PR gdb/12866
339         * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
340         values.  (read_partial_die): Likewise.
341
342 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
343
344         PR cli/16122
345         * top.c (command_line_input): Unify interactivity tests to use
346         input_from_terminal_p.
347         * event-top.c (command_line_handler): Likewise.
348
349 2013-11-06  Yao Qi  <yao@codesourcery.com>
350
351         * Makefile.in (check-perf): New target.
352
353 2013-11-05  Will Newton  <will.newton@linaro.org>
354
355         PR gdb/7670
356         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
357         (arm_print_float_info): Likewise.
358
359 2013-11-04  Anton Blanchard  <anton@samba.org>
360
361         * target.c (memory_xfer_partial): Cap write to 4KB.
362
363 2013-11-01  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
364
365         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
366         probe scan even when the arch provides no get_longjmp_target.
367
368 2013-10-31  Pedro Alves  <palves@redhat.com>
369
370         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
371         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
372         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
373         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
374         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
375         <bpstat handling>: If the bpstat chain wants the signal to be
376         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
377         GDB_SIGNAL_TRAP.
378
379 2013-10-31  Andrew Burgess  <aburgess@broadcom.com>
380
381         * breakpoint.c (update_watchpoint): Update error message and add
382         an additional error message.
383
384 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
385
386         * s390-tdep.h: Rename to...
387         * s390-linux-tdep.h: ...here.
388         * s390-tdep.c: Rename to...
389         * s390-linux-tdep.c: ...here.  Adjust #include.
390         * s390-nat.c: Rename to...
391         * s390-linux-nat.c: ...here.  Adjust #include.
392         * config/s390/s390.mh: Rename to...
393         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
394         s390-linux-nat.o.
395         * configure.host: Reflect host rename "s390" -> "linux".
396         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
397         * Makefile.in (ALL_TARGET_OBS): Likewise.
398         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
399         s390-linux-tdep.h.
400         (ALLDEPFILES): Reflect rename of .c files.
401
402 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
403
404         * s390-nat.c: Whitespace cleanup.
405         * s390-tdep.c: Likewise.
406         * s390-tdep.h: Remove empty line at end of file.
407
408 2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
409
410         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
411         siginfo_size.
412
413 2013-10-29  Tom Tromey  <tromey@redhat.com>
414
415         * utils.c (reg): Move undefinition...
416         * gdb_curses.h: ... here.  Update comment to mention AIX.
417
418 2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>
419
420         * exec.h (add_target_sections_of_objfile): New declaration.
421         * exec.c (add_target_sections_of_objfile): New function.
422         * symfile.c (add_symbol_file_command): Update current target sections.
423         (remove_symbol_file_command): New command.
424         (symfile_free_objfile): New function.
425         (_initialize_symfile): Register observer for free_objfile events.
426         * NEWS: Add description of the remove-symbol-file command.
427         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
428         * objfiles.c (free_objfile): Notify free_objfile.
429         (is_addr_in_objfile): New function.
430         * objfiles.h (is_addr_in_objfile): New declaration.
431         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
432         events instead of solib_unloaded events.
433         (_initialize_printcmd): Register observer for free_objfile instead
434         of solib_unloaded notifications.
435         * solib.c (remove_user_added_objfile): New function.
436         (_initialize_symfile): Add remove-symbol-file.
437
438 2013-10-29  Andrew Burgess  <aburgess@broadcom.com>
439
440         * infcmd.c (default_print_one_register_info): Use val_print to
441         print all values even optimized out or unavailable ones.  Don't
442         try to print a raw form of optimized out or unavailable values.
443
444 2013-10-29  Yao Qi  <yao@codesourcery.com>
445
446         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
447         parameter 'arg' instead of from program_space_data.
448         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
449         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
450         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
451         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
452         * inflow.c (inflow_inferior_data_cleanup): Get data from
453         parameter 'arg' instead of inferior_data.
454         * registry.h: Add comments.
455
456 2013-10-28  Pedro Alves  <palves@redhat.com>
457
458         * breakpoint.c (watchpoints_triggered)
459         <!target_stopped_data_address>: Hardcode return 1.
460
461 2013-10-28  Pedro Alves  <palves@redhat.com>
462
463         * infrun.c (process_event_stop_test): Remove unnecessary scoping
464         level and reindent.
465
466 2013-10-28  Pedro Alves  <palves@redhat.com>
467
468         * infrun.c (process_event_stop_test): New function, factored out
469         from handle_inferior_event.
470         (handle_inferior_event): 'process_event_stop_test' is now a
471         function instead of a goto label -- adjust.
472
473 2013-10-28  Pedro Alves  <palves@redhat.com>
474
475         * infrun.c (handle_inferior_event): Move process_event_stop_test
476         goto label to the else branch of the ecs->random_signal check,
477         along with FRAME and GDBARCH re-fetching.
478
479 2013-10-28  Pedro Alves  <palves@redhat.com>
480
481         * infrun.c (switch_back_to_stepped_thread): New function, factored
482         out from handle_inferior_event.
483         (handle_inferior_event): Adjust to call
484         switch_back_to_stepped_thread.  Call it also at the tail of the
485         random signal handling, and return, instead of also handling
486         random signals just before the stepping tests.
487
488 2013-10-28  Pedro Alves  <palves@redhat.com>
489
490         * infrun.c (clear_stop_func): Delete.
491         (handle_inferior_event): Don't call clear_stop_func and don't
492         clear 'ecs->random_signal'.
493
494 2013-10-27  Yao Qi  <yao@codesourcery.com>
495
496         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
497         (varobj_create, varobj_get_path_expr): Update.
498         (varobj_value_has_mutated, varobj_update): Likewise.
499         (create_child_with_value, new_root_variable): Likewise.
500         (number_of_children, name_of_variable): Likewise.
501         (value_of_child, my_value_of_variable): Likewise.
502         (varobj_value_is_changeable_p): Likewise.
503
504 2013-10-25  Yao Qi  <yao@codesourcery.com>
505
506         * language.h (struct lang_varobj_ops): Declare.
507         (struct language_defn) <la_varobj_ops>: New field.
508         * ada-lang.c: Include "varobj.h"
509         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
510         ada_varobj_ops.
511         * c-lang.c: Include "varobj.h"
512         (c_language_defn): Initialize field 'la_varobj_ops' with
513         c_varobj_ops.
514         (cplus_language_defn): Initialize field 'la_varobj_ops' with
515         cplus_varobj_ops.
516         (asm_language_defn): Initialize field 'la_varobj_ops' with
517         default_varobj_ops.
518         (minimal_language_defn): Likewise.
519         * d-lang.c (d_language_defn): Likewise.
520         * f-lang.c (f_language_defn): Likewise.
521         * go-lang.c (go_language_defn): Likewise.
522         * m2-lang.c (m2_language_defn): Likewise.
523         * objc-lang.c (objc_language_defn): Likewise.
524         * opencl-lang.c (opencl_language_defn): Likewise.
525         * p-lang.c (pascal_language_defn): Likewise.
526         * language.c (unknown_language_defn): Likewise.
527         (auto_language_defn): Likewise.
528         (local_language_defn): Likewise.
529         * jv-lang.c (java_language_defn): Initialize field
530         'la_varobj_ops' with java_varobj_ops.
531         * varobj.c (varobj_create): Update.
532         * varobj.h (default_varobj_ops): Define macro.
533
534 2013-10-25  Pedro Alves  <palves@redhat.com>
535
536         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
537         static field value.
538         (cp_print_static_field): If the value is entirely optimized out,
539         print <optimized out> here.
540         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
541         static field value.
542         * p-valprint.c (pascal_object_print_static_field): If the value is
543         entirely optimized out, print <optimized out> here.
544         * valops.c (do_search_struct_field)
545         (value_struct_elt_for_reference): No longer handle a NULL static
546         field value.
547         * value.c (value_static_field): Return an optimized out value
548         instead of NULL.
549
550 2013-10-25  Yao Qi  <yao@codesourcery.com>
551
552         * remote.c (remote_traceframe_info): Return early if
553         traceframe is not selected.
554
555 2013-10-25  Yao Qi  <yao@codesourcery.com>
556
557         * tracepoint.c (traceframe_fun): Remove.
558         (traceframe_sal): Remove.
559         (set_traceframe_context): Add local variables.
560
561 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
562
563         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
564         and parameter name.
565
566 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
567
568         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
569         failure from register information collection.
570
571 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
572
573         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
574         member.
575         (linux_corefile_thread_callback): Update accordingly.
576         (linux_make_corefile_notes): Likewise.
577
578 2013-10-24  Pedro Alves   <palves@redhat.com>
579
580         * NEWS (New options): Mention set/show startup-with-shell.
581         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
582         instead of 3.
583         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
584         startup-with-shell'.
585         (show_startup_with_shell): New function.
586         (_initialize_fork_child): Register the set/show startup-with-shell
587         commands.
588         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
589         * inf-ttrace.c (inf_ttrace_him): Remove comment.
590         * procfs.c (procfs_init_inferior): Remove comment.
591         * infcmd.c (startup_with_shell): New global.
592         * inferior.h (startup_with_shell): Declare global.
593         (STARTUP_WITH_SHELL): Delete.
594         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
595
596 2013-10-23  Pedro Alves  <palves@redhat.com>
597
598         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
599         * common/signals.c: Include "gdb_assert.h".
600         (signals): New field 'symbol'.
601         (SET): Use the 'symbol' parameter.
602         (gdb_signal_to_symbol_string): New function.
603         * infrun.c (handle_inferior_event) <random signal>: In debug
604         output, print the random signal enum as string in addition to its
605         number.
606         * target/waitstatus.c (target_waitstatus_to_string): Print the
607         signal's enum value as string instead of the (POSIX) signal name.
608
609 2013-10-23  Gary Benson  <gbenson@redhat.com>
610
611         PR 16013
612         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
613         from 32 to 18.  Adjusted fscanf format string accordingly.
614         (Avoids leaving cmd unterminated.)
615         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
616         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
617         that local_address and remote_address will not overflow.
618         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
619         leaving dependencies unterminated.  Parse size as "%u" to match
620         definition.
621
622 2013-10-22  Pedro Alves  <palves@redhat.com>
623
624         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
625         set ecs->random signal.
626
627 2013-10-22  Pedro Alves  <palves@redhat.com>
628
629         * infrun.c (keep_going): Update comments.
630
631 2013-10-22  Pedro Alves  <palves@redhat.com>
632
633         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
634         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
635
636 2013-10-22  Pedro Alves  <palves@redhat.com>
637
638         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
639         GDB_EXC_BAD_ACCESS.
640         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
641         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
642         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
643         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
644         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
645         (GDB_SIGNAL_LAST): Change description string.
646         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
647         Adjust to signal renaming.
648         * darwin-nat.c (darwin_decode_message): Likewise.
649
650 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
651
652         * MAINTAINERS (Write After Approval): Add myself to the list.
653
654 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
655
656         * breakpoint.c (update_watchpoint): If hardware watchpoints are
657         forced off, downgrade them to software watchpoints if possible,
658         and error out if not possible.
659         (watch_command_1): Move watchpoint type selection closer to
660         watchpoint creation, and extend the comments.
661
662 2013-10-18  Pedro Alves  <palves@redhat.com>
663
664         PR gdb/16062
665         * infrun.c (handle_inferior_event): Keep going if we got a random
666         signal we should not stop for, instead of falling through to the
667         step tests.
668
669 2013-10-18  Yao Qi  <yao@codesourcery.com>
670
671         * c-varobj.c (cplus_number_of_children): Fix indentation.
672
673 2013-10-17  Tom Tromey  <tromey@redhat.com>
674
675         PR gdb/15995:
676         * printcmd.c (printcmd): Call gdb_flush.
677
678 2013-10-17  Tom Tromey  <tromey@redhat.com>
679
680         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
681         (elf_locate_sections): Update.
682
683 2013-10-17  Yao Qi  <yao@codesourcery.com>
684
685         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
686         * ada-varobj.c: Remove the include of ada-varobj.h.
687         (ada_varobj_get_number_of_children): Declare.
688         (ada_varobj_get_name_of_child): Make it static.
689         (ada_varobj_get_path_expr_of_child): Likewise.
690         (ada_varobj_get_value_of_child): Likewise.
691         (ada_varobj_get_type_of_child): Likewise.
692         (ada_varobj_get_value_of_array_variable): Likewise.
693         * ada-varobj.h: Remove.
694
695 2013-10-17  Yao Qi  <yao@codesourcery.com>
696
697         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
698         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
699         * ada-varobj.c: Include "varobj.h".
700         (ada_number_of_children): New.  Moved from varobj.c.
701         (ada_name_of_variable, ada_name_of_child): Likewise.
702         (ada_path_expr_of_child, ada_value_of_child): Likewise.
703         (ada_type_of_child, ada_value_of_variable): Likewise.
704         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
705         (ada_varobj_ops): New.
706         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
707         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
708         * gdbtypes.h (get_target_type): Declare.
709         * varobj.c: Remove the inclusion of "ada-varobj.h" and
710         "ada-lang.h".
711         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
712         (ANONYMOUS_UNION_NAME): Likewise.
713         (get_type, get_value_type, get_target_type): Remove declarations.
714         (value_get_print_value, varobj_value_get_print_value): Likewise.
715         (c_number_of_children, c_name_of_variable): Likewise.
716         (c_name_of_child, c_path_expr_of_child): Likewise.
717         (c_value_of_child, c_type_of_child): Likewise.
718         (c_value_of_variable, cplus_number_of_children): Likewise.
719         (cplus_class_num_children, cplus_name_of_variable): Likewise.
720         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
721         (cplus_value_of_child, cplus_type_of_child): Likewise.
722         (cplus_value_of_variable, java_number_of_children): Likewise.
723         (java_name_of_variable, java_name_of_child): Likewise.
724         (java_path_expr_of_child, java_value_of_child): Likewise.
725         (java_type_of_child, java_value_of_variable): Likewise.
726         (ada_number_of_children, ada_name_of_variable): Likewise.
727         (ada_name_of_child, ada_path_expr_of_child): Likewise.
728         (ada_value_of_child, ada_type_of_child): Likewise.
729         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
730         (ada_value_has_mutated): Likewise.
731         (struct language_specific): Move it to varobj.h.
732         (CPLUS_FAKE_CHILD): Move it to varobj.h.
733         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
734         Callers update.
735         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
736         Make it extern.
737         (is_anonymous_child): Move it to c-varobj.c and rename to
738         varobj_is_anonymous_child.  Caller update.
739         (get_type): Move it to c-varobj.c.
740         (get_value_type): Rename it varobj_get_value_type.  Make it
741         extern.
742         (get_target_type): Move it gdbtypes.c.
743         (varobj_formatted_print_options): New function.
744         (value_get_print_value): Rename it to
745         varobj_value_get_print_value and make it extern.
746         (varobj_value_is_changeable_p): Make it extern.
747         (adjust_value_for_child_access): Move it to c-varobj.c.
748         (default_value_is_changeable_p): Rename it to
749         varobj_default_value_is_changeable_p.  Make it extern.
750         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
751         (c_name_of_child, c_path_expr_of_child): Likewise.
752         (c_value_of_child, c_type_of_child): Likewise.
753         (c_value_of_variable, cplus_number_of_children): Likewise.
754         (cplus_class_num_children, cplus_name_of_variable): Likewise.
755         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
756         (cplus_value_of_child, cplus_type_of_child): Likewise.
757         (cplus_value_of_variable): Likewise.
758         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
759         (java_name_of_child, java_path_expr_of_child): Likewise.
760         (java_value_of_child, java_type_of_child): Likewise.
761         (java_value_of_variable): Likewise.
762         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
763         (ada_name_of_child, ada_path_expr_of_child): Likewise.
764         (ada_value_of_child, ada_type_of_child): Likewise.
765         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
766         (ada_value_has_mutated): Likewise.
767         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
768         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
769         (c_varobj_ops, cplus_varobj_ops): Declare.
770         (java_varobj_ops, ada_varobj_ops): Declare.
771         (varobj_default_value_is_changeable_p): Declare.
772         (varobj_value_is_changeable_p): Declare.
773         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
774         (varobj_get_path_expr_parent): Declare.
775         (varobj_value_get_print_value): Declare.
776         (varobj_formatted_print_options): Declare.
777         (varobj_restrict_range): Declare.
778
779 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
780
781         * target/waitstatus.h (target_waitkind): Remove spurious
782         character from the comments.
783
784 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
785
786         * gdbarch.sh (get_longjmp_target): Add method documentation.
787         * gdbarch.h: Regenerate.
788
789 2013-10-16  Tom Tromey  <tromey@redhat.com>
790
791         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
792         label.
793
794 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
795
796         * gcore.in: Call GDB using the full path to the gcore script.
797         Error out if the GDB binary is not found.
798
799 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
800
801         PR gdb/16014
802         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
803         sizeof.
804
805 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
806
807         PR gdb/16042
808         * target.c (target_disable_btrace): Fix invalid return value for
809         void function.
810         (target_teardown_btrace): Likewise.
811
812 2013-10-14  Yao Qi  <yao@codesourcery.com>
813
814         * varobj.c (struct varobj): Move most of the fields to
815         varobj.h.
816         (struct varobj_dynamic): New struct.
817         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
818         (varobj_has_more): Likewise.
819         (dynamic_varobj_has_child_method): Likewise.
820         (update_dynamic_varobj_children): Likewise.
821         (varobj_get_num_children): Likewise.
822         (varobj_list_children, varobj_pretty_printed_p): Likewise.
823         (install_new_value_visualizer): Likewise.
824         (install_new_value_visualizer, install_new_value): Likewise.
825         (varobj_update, new_variable, free_variable): Likewise.
826         (my_value_of_variable, value_get_print_value): Likewise.
827         (install_visualizer): Change the type of parameter 'var' to
828         'struct varobjd_dynamic *'.  Callers update.
829         * varobj.h (struct varobj): Moved from varobj.c.
830         (struct varobj) <dynamic>: New field.
831
832 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
833
834         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
835         as the preferred name of r30.
836         * nios2-linux-tdep.c (reg_offsets): Likewise.
837         * features/nios2-cpu.xml: Likewise.
838         * features/nios2-linux.c: Regenerated.
839         * features/nios2.c: Regenerated.
840         * regformats/nios2-linux.dat: Regenerated.
841
842 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
843
844         Canonicalize directories for EXEC_FILENAME.
845         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
846         exec_filename.
847         * utils.c (gdb_realpath_keepfile): New function.
848         * utils.h (gdb_realpath_keepfile): New declaration.
849
850 2013-10-11  Doug Evans  <dje@google.com>
851
852         * Makefile.in (GDBFLAGS): New variable.
853         (run): New rule.
854
855 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
856
857         * NEWS: Add entry documenting the new "-catch-assert" and
858         "-catch-exception" GDB/MI commands.
859
860 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
861
862         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
863         "enabled".
864         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
865         "enabled".  Set B->ENABLE_STATE accordingly.
866         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
867         ada-lang.c.
868         (create_ada_exception_catchpoint): Add declaration.
869         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
870         (create_ada_exception_catchpoint): Make non-static. Add new
871         parameter "disabled". Use it in call to
872         init_ada_exception_breakpoint.
873         (catch_ada_exception_command): Add parameter "enabled" in call
874         to create_ada_exception_catchpoint.
875         (catch_assert_command): Likewise.
876
877         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
878         Add declarations.
879         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
880         "catch-exception" commands.
881         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
882         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
883
884 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
885
886         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
887         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
888         of all its enumerates with "ada_".  Update the rest of this
889         file throughout.
890
891 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
892
893         * ada-lang.c (ada_decode_exception_location): Delete.
894         (create_ada_exception_catchpoint): Remove arguments "sal",
895         "addr_string" and "ops".  Add argument "ex_kind" instead.
896         Adjust implementation accordingly, calling ada_exception_sal
897         to get the entities it no longer gets passed as arguments.
898         Document the function's arguments.
899         (catch_ada_exception_command): Use catch_ada_exception_command_split
900         instead of ada_decode_exception_location, and update call to
901         create_ada_exception_catchpoint.
902         (catch_ada_assert_command_split): Renames
903         ada_decode_assert_location.  Remove parameters "addr_string" and
904         "ops", and now returns void.  Adjust implementation accordingly.
905         Update the function documentation.
906         (catch_assert_command): Use catch_ada_assert_command_split
907         instead of ada_decode_assert_location.  Update call to
908         create_ada_exception_catchpoint.
909
910 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
911
912         * utils.h (perror_warning_with_name): Add declaration.
913         * utils.c (perror_warning_with_name): New function.
914         * cli/cli-cmds.c (source_script_with_search): Add call to
915         perror_warning_with_name if from_tty is nul.
916
917 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
918
919         * utils.c (perror_string): New function, extracted out of
920         throw_perror_with_name.
921         (throw_perror_with_name): Rework to use perror_string.
922
923 2013-10-11  Yao Qi  <yao@codesourcery.com>
924
925         * remote.c (discard_pending_stop_replies_in_queue): Update
926         declaration.
927         (struct stop_reply) <rs>: New field.
928         (remove_stop_reply_of_remote_state): New function.
929         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
930         Callers update.  Pass remove_stop_reply_of_remote_state to
931         QUEUE_iterate.
932         (remote_parse_stop_reply): Initialize field 'rs'.
933
934 2013-10-10  Will Newton  <will.newton@linaro.org>
935
936         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
937         linux_init_abi.
938
939 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
940
941         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
942         serial_baud_show_cmd.
943         (_initialize_cli_cmds): Delete the code creating the
944         "set/show remotebaud" commands.
945         * serial.c (baud_rate): Move here from top.c.
946         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
947         (_initialize_serial): Create "set/show serial baud" commands.
948         Add "set/show remotebaud" command aliases.
949         * top.c (baud_rate): Moved to serial.c.
950         * NEWS: Document the new "set/show serial baud" commands,
951         replacing "set/show remotebaud".
952
953 2013-10-09  Pedro Alves  <palves@redhat.com>
954
955         * breakpoint.c (insert_bp_location): Use memory_error_message to
956         build the memory error string.
957         * c-lang.c: Include "gdbcore.h".
958         (c_get_string): Use memory_error to throw error.
959         (target_xfer_memory_error): Delete.
960         (memory_error_message): New, factored out from
961         target_xfer_memory_error.
962         (memory_error): Change parameter type to target_xfer_error.
963         Rewrite.
964         (read_memory): Use memory_error instead of
965         target_xfer_memory_error.
966         * gdbcore.h: Include "target.h".
967         (memory_error): Change parameter type to target_xfer_error.
968         (memory_error_message): Declare function.
969         * target.c (target_read_memory, target_read_stack)
970         (target_write_memory, target_write_raw_memory): Return
971         TARGET_XFER_E_IO on error.  Adjust comments.
972         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
973         instead of EIO.
974         * target.h (target_read, target_insert_breakpoint)
975         (target_remove_breakpoint): Adjust comments.
976         * valprint.c (partial_memory_read): Rename parameter, and adjust
977         comment.
978         (val_print_string): Use memory_error_message to build the memory
979         error string.
980
981 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
982
983         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
984         result variable.  Rename variable fopen_e_ever_failed to
985         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
986
987 2013-10-09  Pedro Alves  <palves@redhat.com>
988
989         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
990         (monitor_write_memory_longlongs, monitor_write_memory_block):
991         Constify 'myaddr' parameter.
992         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
993         helper.
994         (monitor_xfer_partial): New function.
995         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
996         hook.  Install a to_xfer_partial hook.
997
998 2013-10-09  Tom Tromey  <tromey@redhat.com>
999
1000         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1001         bfd_get_alt_debug_link_info.
1002
1003 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1004
1005         New flag OBJF_NOT_FILENAME.
1006         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1007         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1008         allocate_objfile.
1009         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1010         symbol_file_add_from_bfd.
1011         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1012         allocate_objfile.
1013         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1014         NULL.
1015         * objfiles.h (OBJF_NOT_FILENAME): New.
1016
1017 2013-10-08  Tom Tromey  <tromey@redhat.com>
1018
1019         * Makefile.in (SFILES): Add build-id.c.
1020         (HFILES_NO_SRCDIR): Add build-id.h.
1021         * build-id.c: New file, largely from elfread.c.  Modified
1022         most functions.
1023         * build-id.h: New file.
1024         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1025         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
1026         Search for dwz file using build-id.
1027         * elfread.c (build_id_bfd_get, build_id_verify)
1028         (build_id_to_debug_filename, find_separate_debug_file): Remove.
1029
1030 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
1031
1032         * ada-lang.c (compare_names_with_case): Renamed from
1033         compare_names, adding a new parameter "casing" and its handling.
1034         New function documentation.
1035         (compare_names): New function, implemented using
1036         compare_names_with_case.
1037
1038 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
1039
1040         * ada-lang.c (ada_exception_sal): Remove advance declaration.
1041
1042 2013-10-07  Tom Tromey  <tromey@redhat.com>
1043
1044         * objfiles.c (free_objfile_per_bfd_storage): Delete the
1045         demangled_names_hash.
1046         (free_objfile): Don't delete the demangled_names_hash.
1047         * objfiles.h (struct objfile_per_bfd_storage)
1048         <demangled_names_hash>: New field.
1049         (struct objfile) <demangled_names_hash>: Move to
1050         objfile_per_bfd_storage.
1051         * symfile.c (reread_symbols): Don't delete the
1052         demangled_names_hash.
1053         * symtab.c (create_demangled_names_hash): Update.
1054         (symbol_set_names): Update.
1055
1056 2013-10-07  Tom Tromey  <tromey@redhat.com>
1057
1058         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1059         needs_relocations>: New fields.
1060         (gdb_bfd_requires_relocations): New function.
1061         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1062         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1063         the BFD needs relocations applied.
1064
1065 2013-10-07  Pedro Alves  <palves@redhat.com>
1066
1067         PR breakpoints/11568
1068         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1069         the thread list" instead of "gone".
1070
1071 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
1072
1073         * NEWS: Mention new convenience variable $_exitsignal.
1074         * corelow.c (core_open): Reset exit convenience variables.  Set
1075         $_exitsignal to the uncaught signal which generated the corefile.
1076         * infrun.c (handle_inferior_event): Reset exit convenience
1077         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1078         (clear_exit_convenience_vars): New function.
1079         * inferior.h (clear_exit_convenience_vars): New prototype.
1080
1081 2013-10-06  Yao Qi  <yao@codesourcery.com>
1082
1083         * varobj.h: Add comments to enum varobj_languages.
1084
1085 2013-10-04  Doug Evans  <dje@google.com>
1086
1087         Add support for DWP file format version 2.
1088         * NEWS: Mention support for DWP file format version 2.
1089         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1090         union of asection, containing_section.  New fields virtual_offset
1091         and is_virtual.  Change type of readin filed from int to char.
1092         (dwo_sections, dwo_file): Tweak comments.
1093         (dwp_v2_section_ids): New enum.
1094         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1095         str_offsets, types.
1096         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1097         All uses updated.
1098         (virtual_v2_dwo_sections): New struct.
1099         (dwp_hash_table): New fields version, nr_columns.  Change type of
1100         section_pool field to a union.
1101         (dwp_file): New field version.
1102         (dwarf2_has_info): Check for virtual sections.
1103         (get_containing_section): New function.
1104         (get_section_bfd_owner, get_section_bfd_section): Call it.
1105         (dwarf2_locate_sections): Update.
1106         (dwarf2_section_empty_p): Update.
1107         (dwarf2_read_section): Handle virtual sections.
1108         (locate_dwz_sections): Update.
1109         (create_dwp_hash_table): Document and handle V2 format.
1110         (locate_v1_virtual_dwo_sections): Renamed from
1111         locate_virtual_dwo_sections and update.  All callers updated.
1112         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1113         Delete arg htab.  Rename arg section_index to unit_index.
1114         All callers updated.
1115         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1116         All uses updated.
1117         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1118         (lookup_dwo_unit_in_dwp): Add V2 support.
1119         (dwarf2_locate_dwo_sections): Update.
1120         (dwarf2_locate_common_dwp_sections): Renamed from
1121         dwarf2_locate_dwp_sections and update.  All callers updated.
1122         (dwarf2_locate_v2_dwp_sections): New function.
1123         (open_and_init_dwp_file): Add V2 support.
1124         (read_str_index): New locals str_section, str_offsets_section.
1125
1126 2013-10-04  Pedro Alves  <palves@redhat.com>
1127
1128         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1129         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1130         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1131         describing comments with references to ptid.h.
1132         * common/ptid.h: Remove intro description of constructors,
1133         accessors and predicates.
1134         (struct ptid): Reformat.
1135         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1136         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1137         describing comments.
1138
1139 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1140
1141         * aix-thread.c (sync_threadlists): Add missing ')' in call
1142         to ptid_build.
1143
1144 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1145
1146         * procfs.c (procfs_init_inferior): Fix typo causing the build
1147         to fail.
1148
1149 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1150
1151         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1152
1153 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1154
1155         * mi/mi-main.c (run_one_inferior): Add function description.
1156         Make ARG a pointer to an integer whose value determines whether
1157         we should "run" or "start" the program.
1158         (mi_cmd_exec_run): Add handling of the "--start" option.
1159         Reject all other command-line options.
1160         * NEWS: Add entry for "-exec-run"'s new "--start" option.
1161
1162 2013-10-04  Yao Qi  <yao@codesourcery.com>
1163
1164         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1165         (struct notif_client) <pending_event>: Moved
1166         to struct remote_notif_state.
1167         <id>: New field.
1168         (struct remote_notif_state) <pending_event>: New field.
1169         (notif_event_xfree): Declare.
1170         * remote-notif.c (handle_notification): Adjust.
1171         (notif_event_xfree): New function.
1172         (do_notif_event_xfree): Call notif_event_xfree.
1173         (remote_notif_state_xfree): Call notif_event_xfree to free
1174         each element in field pending_event.
1175         * remote.c (discard_pending_stop_replies): Remove declaration.
1176         (discard_pending_stop_replies_in_queue): Declare.
1177         (remote_close): Call discard_pending_stop_replies_in_queue
1178         instead of discard_pending_stop_replies.
1179         (remote_start_remote): Adjust.
1180         (stop_reply_xfree): Call notif_event_xfree.
1181         (notif_client_stop): Adjust initialization.
1182         (remote_notif_remove_all): Rename it to ...
1183         (remove_stop_reply_for_inferior): ... this.  Update comments.
1184         Don't check INF is NULL.
1185         (discard_pending_stop_replies): Return early if notif_state is
1186         NULL.  Adjust.  Don't check INF is NULL.
1187         (remote_notif_get_pending_events): Adjust.
1188         (discard_pending_stop_replies_in_queue): New function.
1189         (remote_wait_ns): Likewise.
1190
1191 2013-10-04  Yao Qi  <yao@codesourcery.com>
1192
1193         * remote-notif.c (DECLARE_QUEUE_P): Remove.
1194         (notif_queue): Remove.
1195         (remote_notif_process): Add one parameter 'notif_queue'.
1196         Update comments.  Callers update.
1197         (remote_async_get_pending_events_token): Remove.
1198         (remote_notif_register_async_event_handler): Remove.
1199         (remote_notif_unregister_async_event_handler): Remove.
1200         (handle_notification): Add parameter 'notif_queue'.  Update
1201         comments.  Callers update.
1202         (notif_xfree): Remove.
1203         (remote_notif_state_allocate): New function.
1204         (remote_notif_state_xfree): New function.
1205         (_initialize_notif): Remove code to allocate queue.
1206         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1207         (struct remote_notif_state): New.
1208         (handle_notification): Update declaration.
1209         (remote_notif_process): Likewise.
1210         (remote_notif_register_async_event_handler): Remove.
1211         (remote_notif_unregister_async_event_handler): Remove.
1212         (remote_notif_state_allocate): Declare.
1213         (remote_notif_state_xfree): Declare.
1214         * remote.c (struct remote_state) <notif_state>: New field.
1215         (remote_close): Don't call
1216         remote_notif_unregister_async_event_handler.  Call
1217         remote_notif_state_xfree.
1218         (remote_open_1): Don't call
1219         remote_notif_register_async_event_handler.  Call
1220         remote_notif_state_allocate.
1221
1222 2013-10-04  Yao Qi  <yao@codesourcery.com>
1223
1224         * varobj.c (create_child_with_value): Remove 'const' from the
1225         type of parameter 'name'.
1226         (varobj_add_child): Likewise.
1227         (install_dynamic_child): Remove 'const' from the type of
1228         parameter 'name'.
1229         (varobj_add_child): Likewise.
1230         (create_child_with_value): Likewise.  Update comments.  Don't
1231         duplicate 'name'.
1232         (update_dynamic_varobj_children): Duplicate 'name'
1233         and pass it to install_dynamic_child.
1234
1235 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
1236
1237         * python/py-value.c (convert_value_from_python): Move PyInt_Check
1238         conversion logic to occur after PyLong_Check.  Comment on order
1239         change significance.
1240         * python/py-arch.c (archpy_disassemble): Comment on order of
1241         conversion for integers and longs.
1242
1243 2013-10-03  Pedro Alves  <palves@redhat.com>
1244
1245         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1246         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1247         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
1248         PTRACE_O_TRACEFORK is not supported.
1249         (linux_test_for_tracesysgood): New function.
1250         (linux_test_for_tracefork): New function, factored out from
1251         linux_check_ptrace_features, and also don't kill child_pid here.
1252
1253 2013-10-03  Tristan Gingold  <gingold@adacore.com>
1254
1255         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1256         Remove verbose error reporting.  Use detected state to
1257         thread_set_state call.
1258         (i386_darwin_dr_get): Fix return type.  Remove verbose error
1259         report.
1260         Remove trailing spaces.
1261
1262 2013-10-02  Pedro Alves  <palves@redhat.com>
1263
1264         * cp-valprint.c (cp_print_value_fields): Adjust calls to
1265         val_print_optimized_out.
1266         * jv-valprint.c (java_print_value_fields): Likewise.
1267         * p-valprint.c (pascal_object_print_value_fields): Likewise.
1268         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1269         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1270         new optimized out value.
1271         * findvar.c (address_from_register): Likewise.
1272         * frame.c (put_frame_register): Tweak error string to say the
1273         register was not saved, rather than optimized out.
1274         * infcmd.c (default_print_one_register_info): Adjust call to
1275         val_print_optimized_out.  Use value_of_register instead of
1276         get_frame_register_value.
1277         * mi/mi-main.c (output_register): Use value_of_register instead of
1278         get_frame_register_value.
1279         * valprint.c (valprint_check_validity): Likewise.
1280         (val_print_optimized_out): New value parameter.  If the value is
1281         lval_register, print <not saved> instead.
1282         (value_check_printable, val_print_scalar_formatted): Adjust calls
1283         to val_print_optimized_out.
1284         * valprint.h (val_print_optimized_out): New value parameter.
1285         * value.c (struct value) <optimized_out>: Extend comment.
1286         (error_value_optimized_out): New function.
1287         (require_not_optimized_out): Use it.  Use a different string for
1288         lval_register values.
1289         * value.h (error_value_optimized_out): New declaration.
1290         * NEWS: Mention <not saved>.
1291
1292 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
1293
1294         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1295         strcmp to compare two symtab filenames.
1296
1297 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
1298
1299         * symtab.c (search_symbols_equal): Delete.
1300         (sort_search_symbols_remove_dups): Replace call to
1301         search_symbols_equal by call to compare_search_syms,
1302         adjusting as necessary.
1303
1304 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1305
1306         PR python/15579
1307         * python/python.c: Document gdb.execute command in Python help.
1308
1309 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1310
1311         * python/py-frame.c (frame_info_to_frame_object): Use
1312         gdbpy_convert_exception. Clean up Python object on failure.
1313
1314 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1315
1316         * python/lib/gdb/command/frame_filters.py
1317         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1318         (ShowFrameFilterPriority.invoke): Ditto.
1319
1320 2013-10-01  Keith Seitz  <keiths@redhat.com>
1321
1322         * linespec.c (struct ls_parser): Make 'saved_arg' const.
1323         (parse_linespec): Make 'argptr' const.
1324         Remove temporary cast of 'argptr' to const char **.
1325         (decode_line_full): Pass const pointer to parse_linespec.
1326         (decode_line_1): Likewise.
1327         (decode_objc): Make local variable 'new_argptr' const.
1328         (find_function_symbols): Remove temporary cast to char *
1329         to find_imps.
1330         * objc-lang.c (find_imps): Make argument 'method' const.
1331         Return const.
1332         * objc-lang.h (find_imps): Likewise.
1333
1334 2013-10-01  Keith Seitz  <keiths@redhat.com>
1335
1336         * completer.c (skip_quoted_chars): Make all arguments const.
1337         Return const.
1338         (skip_quoted): Likewise.
1339         * completer.h (skip_quoted_chars): Likewise.
1340         (skip_quoted): Likewise.
1341         * defs.h (skip_quoted): Remove duplicate declaration.
1342         * jv-exp.y: Include completer.h.
1343         (yylex): Remove unneccessary cast to char * fro skip_quoted.
1344         * p-exp.y: Include completer.h.
1345
1346 2013-10-01  Keith Seitz  <keiths@redhat.com>
1347
1348         * c-exp.y (parse_number): Make first argument const.
1349         Make a copy of the input to manipulate.
1350         (c_parse_escape): Make first argument const.
1351         Make local variable 'tokptr' const.
1352         (parse_string_or_char): Make first two arguments const.
1353         (macro_original_text): Make const.
1354         (lex_one_token): Make local variable 'tokstart' const.
1355         Likewise for local variables named 'p'.
1356         Cast away const for struct stoken (temporary).
1357         * c-lang.h (c_parse_escpae): Make first argument const.
1358         * cli/cli-cmds.c (echo_command): Make local variable 'p'
1359         const.
1360         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1361         var_string case.
1362         * f-exp.y (parse_number): Make first argument const.
1363         (match_string_literal): Make local variable 'tokstart'
1364         const.
1365         (yylex): Make local variable 'p' const.
1366         Cast away const for struct stoken (temporary).
1367         * go-exp.y (parse_number): Make first argument const.
1368         (parse_string_or_char): Likewise.
1369         Make local variable 'tokstart' const.
1370         (lex_one_token): Likewise for numerous locals called 'p'.
1371         Cast away const for struct stoken (temporary).
1372         * jv-exp.y (parse_number): Make first argument const.
1373         Make local variables 'tokstart' and 'tokptr' const.
1374         Cast away const for call to skip_quoted (temporary).
1375         (yylex): Make local variable 'p' const.
1376         Cast away const for struct stoken (temporary).
1377         * m2-exp.y (parse_number): Make local variable 'p' const.
1378         (yylex): Likewise for 'tokstart'.
1379         Cast away const for struct stoken (temporary).
1380         Make local variable 'p' const.
1381         * macroexp.c (get_character_constant): Pass a const string
1382         to c_parse_escape.
1383         (get_string_literal): Likewise.
1384         (macro_expand_next): Make first argument const.
1385         Cast away const for init_shared_buffer.
1386         * macroexp.h (macro_expand_next): Make first argument const.
1387         * p-exp.y (yylex): Make a local copy of 'lexptr'.
1388         Pass a const string to c_parse_escape.
1389         Make local variables 'p' and 'namestart' const.
1390         * parse.c (lexptr): Make const.
1391         (prev_lexptr): Likewise.
1392         (find_template_name_end): Return const.
1393         Make argument const, too.
1394         (parse_exp_in_context): Make first argument const.
1395         Remove the entire const_hack.
1396         (parse_exp_in_context_1): Make first argument const.
1397         * parser-defs.h (find_template_name_end): Return const.
1398         Make argument const, too.
1399         (lexptr): Make const.
1400         (prev_lexptr): Likewise.
1401         * utils.c (parse_escape): Make second argument const.
1402         * utils.h (parse_escape): Likewise.
1403
1404 2013-10-01  Keith Seitz  <keiths@redhat.com>
1405
1406         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1407         is now const.
1408         (block_lookup): Make 'raw_name' and 'name' const.
1409         * ada-lex.l (processString): Update for struct stoken.ptr.
1410         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1411         (operator_stoken): Likewise.
1412         (lex_one_token): Remove temporary cast to char * for
1413         'yylval.sval.ptr'.
1414         * f-exp.y (yylex): Likewise.
1415         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1416         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1417         * go-exp.y (lex_one_token): Remove temporary cast to char * for
1418         'yylval.sval.ptr'.
1419         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1420         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1421         * linespec.c (struct ls_parser): Make 'stream' const.
1422         (find_parameter_list_end): Make argument 'input' and local
1423         variable 'p' const.
1424         (linespec_lexer_lex_string): Make local variables 'start' and
1425         'p' const.
1426         Use skip_spaces_const instead of skip_spaces.
1427         (linespec_lexer_peek_token): Make local variable 'saved_stream'
1428         const.
1429         (parse_linespec): Temporarily cast 'argptr' to const for
1430         'parser->lexer.stream'.
1431         * m2-exp.y (yylex): Remove temporary cast to char * for
1432         'yylval.sval.ptr'.
1433         * objc-lang.c (add_msglist): Make local variable 'p' const.
1434         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1435         (exp : STRING): Make 'sp' const.
1436         (parse_number): Make argument 'p' const.
1437         * parser-defs.h (struct stoken): Make 'ptr' const.
1438
1439 2013-10-01  Doug Evans  <dje@google.com>
1440
1441         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1442
1443 2013-10-01  Yao Qi  <yao@codesourcery.com>
1444
1445         * varobj.c (c_value_of_root): Remove declaration.
1446         (cplus_value_of_root, java_value_of_root): Likewise.
1447         (ada_value_of_root): Likewise.
1448         (struct language_specific) <value_of_root>: Remove.
1449         (languages): Update initialization.
1450         (check_scope): Move earlier.
1451         (c_value_of_root): Move earlier and rename to ...
1452         (value_of_root_1): ... this.
1453         (value_of_root): Caller update.
1454         (cplus_value_of_root, java_value_of_root): Remove.
1455         (ada_value_of_root): Remove.
1456
1457 2013-10-01  Yao Qi  <yao@codesourcery.com>
1458
1459         * varobj.c (varobj_format_string): Remove "unknown".
1460         (languages): Remove the first element.
1461         * varobj.h (enum varobj_languages): Remove vlang_c.
1462
1463 2013-10-01  Yao Qi  <yao@codesourcery.com>
1464
1465         * varobj.c (struct language_specific) <language>: Remove.
1466         (languages): Update the initialization.
1467
1468 2013-10-01  Yao Qi  <yao@codesourcery.com>
1469
1470         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1471         "solib-target.h".  Include "windows-tdep.h".
1472         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
1473         set_solib_ops and set_gdbarch_has_dos_based_file_system.
1474         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1475         windows-tdep.o to gdb_target_obs.
1476
1477 2013-10-01  Yao Qi  <yao@codesourcery.com>
1478
1479         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1480         "solib-target.h".
1481         (amd64_windows_init_abi): Don't call set_solib_ops and
1482         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1483         windows_init_abi instead.
1484         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1485         "solib-target.h".
1486         (i386_cygwin_init_abi): Don't call set_solib_ops,
1487         set_gdbarch_has_dos_based_file_system and
1488         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1489         windows_init_abi instead.
1490         * windows-tdep.c: Include "solib.h" and "solib-target.h".
1491         (windows_init_abi): New function.
1492         (windows_iterate_over_objfiles_in_search_order): Make it
1493         static.
1494         * windows-tdep.h (windows_init_abi): Declare.
1495         (windows_iterate_over_objfiles_in_search_order): Remove
1496         declaration.
1497
1498 2013-10-01  Jerome Guitton  <guitton@adacore.com>
1499
1500         Checked in by Joel Brobecker  <brobecker@adacore.com>
1501         * system-gdbinit/elinos.py (get_elinos_environment): Return an
1502         incomplete dictionnary instead of None in case of missing
1503         environment variables.
1504         (elinos_init): in case of an incomplete environment, best
1505         effort to load system libraries instead of abort.
1506
1507 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
1508
1509         * ada-lang.c (ada_has_this_exception_support): Ignore
1510         mst_solib_trampoline minimal symbols.
1511
1512 2013-09-30  Tristan Gingold  <gingold@adacore.com>
1513
1514         * i386-darwin-nat.c (darwin_complete_target): Install methods for
1515         hardware watchpoint.
1516         (i386_darwin_dr_set): Support 32 and 64 bit states.
1517         (i386_darwin_dr_get): Likewise.
1518         (i386_darwin_dr_set_control): Make static.
1519         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1520         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1521
1522 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
1523
1524         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1525         Replace TIDGET with ptid_get_lwp.
1526         Replace GET_LWP with ptid_get_lwp.
1527         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1528         Replace BUILD_THREAD with ptid_build.
1529         Replace BUILD_LWP with ptid_build.
1530         Replace PIDGET with ptid_get_pid.
1531         Replace TIDGET with ptid_get_lwp.
1532         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1533         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1534         Replace TIDGET with ptid_get_lwp.
1535         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1536         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1537         Replace TIDGET with ptid_get_lwp.
1538         Replace GET_LWP with ptid_get_lwp.
1539         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1540         * auxv.c: Likewise.
1541         * breakpoint.c: Likewise.
1542         * common/ptid.c (ptid_is_pid): Condense check for
1543         null_ptid and minus_one_ptid.
1544         (ptid_lwp_p): New function.
1545         (ptid_tid_p): New function.
1546         * common/ptid.h: Update comments for accessors.
1547         (ptid_lwp_p): New prototype.
1548         (ptid_tid_p): New prototype.
1549         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1550         * gcore.c: Replace PIDGET with ptid_get_pid.
1551         * gdbthread.h: Likewise.
1552         * gnu-nat.c: Likewise.
1553         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1554         Replace TIDGET with ptid_get_lwp.
1555         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1556         * hppanbsd-nat.c: Likewise.
1557         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1558         Replace TIDGET with ptid_get_lwp.
1559         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1560         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1561         * infcmd.c: Likewise.
1562         * inferior.h: Likewise.
1563         * inflow.c: Likewise.
1564         * infrun.c: Likewise.
1565         * linux-fork.c: Likewise.
1566         * linux-nat.c: Replace PIDGET with ptid_get_pid.
1567         Replace GET_PID with ptid_get_pid.
1568         Replace is_lwp with ptid_lwp_p.
1569         Replace GET_LWP with ptid_get_lwp.
1570         Replace BUILD_LWP with ptid_build.
1571
1572 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1573
1574         * common/linux-btrace.c: Move sys/syscall.h out of the
1575         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1576         Also check for SYS_perf_event_open before attempting to buid.
1577
1578 2013-09-27  Doug Evans  <dje@google.com>
1579
1580         * dwarf2read.c (dwarf2_section_info): Add comment.
1581         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1582         All uses updated.
1583         (dwarf2_section_empty_p): Rename arg from "info" to "section".
1584         (dwarf2_read_section): Delete unused local "header".  Add section
1585         name to error message.
1586         (create_dwo_in_dwp): Tweak comment.
1587         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1588
1589         * dwarf2read.c (die_reader_specs): Tweak comment.
1590         (get_section_bfd_owner, get_section_bfd_section): New functions.
1591         (get_section_name, get_section_file_name): New functions.
1592         (get_section_id, get_section_flags): New functions.
1593         (*): Use new functions to access section fields.
1594
1595         * dwarf2read.c (struct dwo_file): Add/tweak comments.
1596         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
1597         arg "htab".  All callers updated.
1598         (create_debug_types_hash_table): Remove redundant copy of
1599         abbrev_section.
1600         (create_dwo_in_dwp): Tweak comments.
1601         (read_str_index): Tweak comment.  Record dwarf form name in static
1602         local.
1603
1604 2013-09-27  Pedro Alves  <palves@redhat.com>
1605
1606         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1607         (remote_filename_p): Add comment.
1608         * remote.c (remote_filename_p): Adjust to use
1609         REMOTE_SYSROOT_PREFIX.
1610         * solib.c (solib_find): When deciding whether we need to add a
1611         directory separator, check whether the sysroot is "remote:"
1612         instead of checking whether the patch has a drive spec.  Add
1613         comments.
1614
1615 2013-09-27  Pedro Alves  <palves@redhat.com>
1616
1617         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1618         Delete fields.
1619         (remote_parse_stop_reply): Adjust, setting event->ws.kind
1620         directly.
1621
1622 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1623
1624         Fix set debug frame output.
1625         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
1626         SENTINEL_FRAME entry lower to match enum frame_type order.
1627
1628 2013-09-26  Pierre Muller  <muller@sourceware.org>
1629
1630         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1631         AMD64_R15_REGNUM when a register index is expected.
1632         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1633         Substitute in array.
1634         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1635         (amd64_push_arguments): Substitute in integer_regnum array.
1636
1637 2013-09-25  Doug Evans  <dje@google.com>
1638
1639         * objfiles.c (allocate_objfile): Move comment to better place.
1640
1641         New option "set debug symfile on".
1642         * NEWS: Mention "set debug symfile".
1643         * Makefile.in (SFILES): Add symfile-debug.c.
1644         (COMMON_OBS): Add symfile-debug.o.
1645         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1646         objfile's symbol functions.
1647         * objfiles.h (objfile_set_sym_fns): Declare.
1648         * symfile-debug.c: New file.
1649         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1650         objfile's symbol functions.
1651         (reread_symbols): Ditto.
1652
1653         * symfile.h (struct sym_fns): Delete member "sym_flavour".
1654         All uses updated.
1655         (add_symtab_fns): Update prototype.
1656         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
1657         (registered_sym_fns): ... this.
1658         (symtab_fns): Update.
1659         (add_symtab_fns): New arg "flavour".  All callers updated.
1660         (find_sym_fns): Rewrite to use new sym_fns registry.
1661
1662         * symfile.h (struct sym_fns): Add "objfile" argument to
1663         sym_read_linetable.  All uses updated.
1664
1665         * symtab.c (domain_name, search_domain_name): New functions.
1666         * symtab.h (domain_name, search_domain_name): Declare.
1667
1668         * symfile.h (struct quick_symbol_functions): Reorg arg list of
1669         map_matching_symbols so objfile is first.  All uses updated.
1670         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1671         * psymtab.c (map_matching_symbols_psymtab): Update signature.
1672
1673 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1674
1675         PR shlibs/8882
1676         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1677         link map entries.
1678
1679 2013-09-24  Doug Evans  <dje@google.com>
1680
1681         * objfiles.c (free_objfile): Move comment.
1682
1683 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1684
1685         * ada-exp.y (string_to_operator): Delete.
1686         (dummy_string_to_ada_operator): Delete.
1687
1688 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1689
1690         Revert:
1691         * i386-tdep.h (enum amd64_reg_class): New, moved here from
1692         amd64-tdep.c.
1693         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1694         call_dummy_integer_regs, and classify.
1695         * amd64-tdep.h (amd64_classify): Add declaration.
1696         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1697         (amd64_reg_class): Delete, moved to i386-tdep.h.
1698         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
1699         Replace call to amd64_classify by call to tdep->classify.
1700         (amd64_push_arguments): Get the list of registers to use for
1701         passing integer parameters from the gdbarch tdep structure,
1702         rather than using a hardcoded one.  Replace calls to amd64_classify
1703         by calls to tdep->classify.
1704         (amd64_push_dummy_call): Get the register number used for
1705         the "hidden" argument from tdep->call_dummy_integer_regs.
1706         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1707         and tdep->call_dummy_integer_regs.  Set tdep->classify.
1708
1709 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1710
1711         Revert:
1712         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1713         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1714         where tdep->memory_args_by_pointer is non-zero.
1715
1716 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1717
1718         Revert:
1719         * i386-tdep.h (struct gdbarch_tdep): Add new field
1720         integer_param_regs_saved_in_caller_frame.
1721         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1722         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1723
1724 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1725
1726         * amd64-windows-tdep.c: #include "value.h"
1727         (amd64_windows_classify): Delete.
1728         (amd64_windows_passed_by_integer_register)
1729         (amd64_windows_passed_by_xmm_register)
1730         (amd64_windows_passed_by_pointer)
1731         (amd64_windows_adjust_args_passed_by_pointer)
1732         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1733         (amd64_windows_push_dummy_call): New functions.
1734         (amd64_windows_init_abi): Remove setting of
1735         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1736         tdep->classify, tdep->memory_args_by_pointer and
1737         tdep->integer_param_regs_saved_in_caller_frame.
1738         Add call to set_gdbarch_push_dummy_call.
1739
1740 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1741
1742         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1743         objfile->original_name.
1744
1745 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1746
1747         Pass down original filename for objfile.
1748         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1749         * elfread.c (elf_symfile_read): Likewise.
1750         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1751         longer set ORIGINAL_NAME.
1752         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1753         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1754         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
1755         symbol_file_add_from_bfd call.
1756         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1757         (macho_check_dsym): Add parameter filenamep.  Change function comment.
1758         Set *filenamep.
1759         (macho_symfile_read): New variable dsym_filename.  Update
1760         macho_check_dsym call.  Use it for symbol_file_add_separate.
1761         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
1762         it.  Use it for objfile->original_name.
1763         (objfile_name): Return OBFD's filename, if available.
1764         * objfiles.h (allocate_objfile): Add new parameter name.
1765         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1766         * symfile-mem.c (symbol_file_add_from_memory): Update
1767         symbol_file_add_from_bfd call.
1768         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1769         comment for it.
1770         (symbol_file_add_with_addrs): New parameter name, add function comment
1771         for it.  Remove variable name.  Update allocate_objfile call.
1772         (symbol_file_add_separate): New parameter name, add function comment
1773         for it.  Update symbol_file_add_with_addrs call.
1774         (symbol_file_add_from_bfd): New parameter name.  Update
1775         symbol_file_add_with_addrs call.
1776         (symbol_file_add): Update symbol_file_add_from_bfd call.
1777         (reread_symbols): New variable original_name.  Save
1778         objfile->original_name by it.
1779         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1780         second parameter.
1781
1782 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1783
1784         Code cleanup: Add objfile_name accessor function.
1785         * ada-lang.c (is_known_support_routine): Use objfile_name.
1786         * auto-load.c (source_gdb_script_for_objfile)
1787         (auto_load_objfile_script): Likewise.
1788         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1789         * dbxread.c (dbx_symfile_read): Likewise.
1790         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1791         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1792         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1793         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1794         (lookup_dwp_signatured_type, lookup_dwo_unit)
1795         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1796         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1797         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1798         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1799         (dwarf2_record_block_ranges, read_common_block, read_typedef)
1800         (read_subrange_type, load_partial_dies, read_partial_die)
1801         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1802         (die_containing_type, build_error_marker_type, lookup_die_type)
1803         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1804         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1805         (get_DW_AT_signature_type, write_psymtabs_to_index)
1806         (save_gdb_index_command): Likewise.
1807         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1808         Likewise.
1809         * expprint.c (dump_subexp_body_standard): Likewise.
1810         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1811         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1812         original_name.
1813         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1814         obj_name, use objfile_name for it, use the variable.
1815         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1816         Use objfile_name.
1817         * machoread.c (macho_symtab_read, macho_check_dsym)
1818         (macho_symfile_relocate): Likewise.
1819         * maint.c (maintenance_translate_address): Likewise.
1820         * minidebug.c (find_separate_debug_file_in_section): Likewise.
1821         * minsyms.c (install_minimal_symbols): Likewise.
1822         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1823         original_name.
1824         (filter_overlapping_sections): Use objfile_name.
1825         (objfile_name): New function.
1826         * objfiles.h (struct objfile): Rename field name to original_name.
1827         (objfile_name): New prototype.
1828         * printcmd.c (sym_info, address_info): Use objfile_name.
1829         * probe.c (parse_probes, collect_probes, compare_probes)
1830         (info_probes_for_ops): Likewise.
1831         * progspace.c (clone_program_space): Likewise.
1832         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1833         (maintenance_info_psymtabs): Likewise.
1834         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1835         (source_section_scripts): Likewise.
1836         * python/py-objfile.c (objfpy_get_filename): Likewise.
1837         * python/py-progspace.c (pspy_get_filename): Likewise.
1838         * solib-aix.c (solib_aix_get_toc_value): Likewise.
1839         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1840         * solib.c (solib_read_symbols): Likewise.
1841         * stabsread.c (scan_file_globals): Likewise.
1842         * stap-probe.c (handle_stap_probe): Likewise.
1843         * symfile.c (symbol_file_clear, separate_debug_file_exists)
1844         (find_separate_debug_file_by_debuglink): Likewise.
1845         (reread_symbols): Likewise.  Use the objfile field name renamed to
1846         original_name.
1847         (allocate_symtab): Use objfile_name.
1848         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1849         (dump_objfile, dump_msymbols, dump_symtab_1)
1850         (maintenance_print_msymbols, maintenance_print_objfiles)
1851         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1852         * target.c (target_translate_tls_address, target_info): Likewise.
1853         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
1854         objfile_name.
1855
1856 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1857
1858         Code cleanup.
1859         * probe.c (parse_probes): Rename variable objfile_name to
1860         objfile_namestr.
1861
1862 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1863
1864         Remove solib-sunos.c.
1865         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1866         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1867         * objfiles.c (rt_common_objfile): Remove.
1868         (free_objfile): Remove rt_common_objfile comparison.
1869         * objfiles.h (rt_common_objfile): Remove.
1870         * solib-sunos.c: Remove.
1871         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1872
1873 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1874
1875         Remove a.out NetBSD and OpenBSD hosts.
1876         * NEWS (Removed native configurations): New.
1877         * config/arm/nbsdaout.mh: Remove.
1878         * config/i386/nbsdaout.mh: Remove.
1879         * config/i386/obsdaout.mh: Remove.
1880         * config/m68k/nbsdaout.mh: Remove.
1881         * config/sparc/nbsdaout.mh: Remove.
1882         * config/vax/nbsdaout.mh: Remove.
1883         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1884         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1885         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1886         error.
1887         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1888         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1889         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1890
1891 2013-09-23  Tom Tromey  <tromey@redhat.com>
1892
1893         * linespec.c (struct minsym_and_objfile): Remove.
1894         (minsym_and_objfile_d): Remove.
1895         (struct linespec, struct collect_info, linespec_parse_basic)
1896         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1897         (compare_msymbols, find_method, find_function_symbols)
1898         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1899         (add_minsym, search_minsyms_for_name): Update.
1900
1901 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1902
1903         * regcache.c: Add include of valprint.h.
1904         (dump_endian_bytes): Delete.
1905         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1906
1907 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1908
1909         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1910
1911 2013-09-19  Pedro Alves  <palves@redhat.com>
1912
1913         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1914         breakpoints.
1915
1916 2013-09-19  Pedro Alves  <palves@redhat.com>
1917             Thomas Schwinge  <thomas@codesourcery.com>
1918             Yue Lu  <hacklu.newborn@gmail.com>
1919
1920         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1921         Take a gdb_byte pointer instead of a char pointer.
1922
1923         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1924         gnu_xfer_partial helper.
1925         (gnu_xfer_partial): New function.
1926         (gnu_target): Don't install a deprecated_xfer_memory hook.
1927         Install a to_xfer_partial hook.
1928
1929 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1930
1931         Constification.
1932         * main.c (captured_main): Replace catch_command_errors by
1933         catch_command_errors_const.  Twice.
1934         * symfile.c (symbol_file_add_main_1): Make args parameter const.
1935         (symbol_file_add): Make name parameter const.
1936         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1937         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
1938         variable name.  Change their usage accordingly.
1939         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1940         const.
1941         (symbol_file_add_main): Make args parameter const.
1942
1943 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
1944             Ulrich Weigand  <uweigand@de.ibm.com>
1945
1946         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1947         of c_value member.
1948         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1949
1950 2013-09-18  Pedro Alves  <palves@redhat.com>
1951             Yue Lu  <hacklu.newborn@gmail.com>
1952
1953         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1954         (gnu_create_inferior)
1955         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1956         (set_sig_thread_cmd): Use the lwpid field of ptids to
1957         store/extract thread ids instead of the tid field.
1958         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1959
1960 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1961
1962         * infcmd.c (default_print_one_register_info): Add detection of
1963         optimized out values.
1964         (default_print_registers_info): Switch to using
1965         get_frame_register_value.
1966
1967 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1968
1969         * infrun.c (handle_inferior_event): Check if we know the
1970         function start address before setting a resume breakpoint.
1971
1972 2013-09-18  Pedro Alves  <palves@redhat.com>
1973
1974         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1975         minus_one_ptid instead of looking at the ptid's tid field and
1976         comparing that to -1.
1977
1978 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1979
1980         * main.h (get_gdb_program_name): Remove extra whitespace.
1981
1982 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1983
1984         * main.h (get_gdb_program_name): Add declaration.
1985         * main.c (get_gdb_program_name): Add definition.
1986
1987 2013-09-17  Doug Evans  <dje@google.com>
1988
1989         * dwarf2read.c: Move definitions of complaint functions to after
1990         forward declarations of local functions.
1991
1992 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
1993             Pedro Alves  <palves@redhat.com>
1994
1995         PR gdb/11568
1996         * breakpoint.c (remove_threaded_breakpoints): New function.
1997         (_initialize_breakpoint): Attach remove_threaded_breakpoints
1998         as thread_exit observer.
1999
2000 2013-09-17  Pedro Alves  <palves@redhat.com>
2001
2002         PR gdb/15911
2003         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2004         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2005         * corelow.c (core_open):
2006         * frame.h (print_stack_frame, print_frame_info): New
2007         'set_current_sal' parameter.
2008         * infcmd.c (finish_command, kill_command): Adjust call to
2009         print_stack_frame.
2010         * inferior.c (inferior_command): Likewise.
2011         * infrun.c (normal_stop): Likewise.
2012         * linux-fork.c (linux_fork_context): Likewise.
2013         * record-full.c (record_full_goto_entry, record_full_restore):
2014         Likewise.
2015         * remote-mips.c (common_open): Likewise.
2016         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2017         Use it.
2018         (print_frame_info): New 'set_current_sal' parameter.  Set the last
2019         displayed sal depending on the new paremeter instead of looking at
2020         print_what.
2021         (backtrace_command_1, select_and_print_frame, frame_command)
2022         (current_frame_command, up_command, down_command): Adjust call to
2023         print_stack_frame.
2024         * thread.c (print_thread_info, restore_selected_frame)
2025         (do_captured_thread_select): Adjust call to print_stack_frame.
2026         * tracepoint.c (tfind_1): Likewise.
2027         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2028         (mi_cmd_stack_info_frame): Likewise.
2029         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2030         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2031
2032 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2033
2034         * value.c (isvoid_internal_fn): Replace "parameter" with
2035         "argument".
2036
2037 2013-09-16  Stan Shebs  <stan@codesourcery.com>
2038
2039         * README: Update references to writing code for GDB.
2040         * configure.ac (build_warnings): Remove obsolete comment.
2041         * configure: Regenerate.
2042         * gdbarch.sh: Remove references to gdbint.texinfo.
2043         * gdbarch.h: Regenerate.
2044         * gdbtypes.c (objfile_type): Remove comments referencing internals
2045         manual and D10V.
2046
2047 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2048
2049         * NEWS: Mention new convenience function $_isvoid.
2050         * value.c (isvoid_internal_fn): New function.
2051         (_initialize_values): Add new convenience function $_isvoid.
2052
2053 2013-09-16  Pierre Muller  <muller@sourceware.org>
2054
2055         * arm-linux-tdep.c: Add "elf/common.h" header.
2056         Remove AT_HWCAP macro definintion as it is provided in
2057         added include file.
2058         * s390-tdep.c: Remove system header <elf.h>
2059         Add "elf/common.h" header for AT_HWCAP definition.
2060         (s390_core_read_description): Use correct CORE_ADDR
2061         for hwcap local variable used as third parameter
2062         of function target_auxv_search.
2063
2064 2013-09-14  Pierre Muller  <muller@sourceware.org>
2065             Tom Tromey  <tromey@redhat.com>
2066             Pedro Alves  <palves@redhat.com>
2067
2068         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2069         mode if operating system doesn't know O_CLOEXEC.
2070
2071 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2072
2073         Code cleanup.
2074         * symfile.c (reread_symbols): Move variable obfd_filename to a more
2075         inner block.
2076
2077 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2078
2079         * NEWS: Mention TDB support.
2080         * features/s390-tdb.xml: New file.
2081         * features/s390-te-linux64.xml: New file.
2082         * features/s390x-te-linux64.xml: New file.
2083         * features/Makefile (WHICH): Add new tdescs above.
2084         (s390-te-linux64-expedite): Set.
2085         (s390x-te-linux64-expedite): Set.
2086         * features/s390-te-linux64.c: New file (generated).
2087         * features/s390x-te-linux64.c: New file (generated).
2088         * regformats/s390-te-linux64.dat: New file (generated).
2089         * regformats/s390x-te-linux64.dat: New file (generated).
2090         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2091         (HWCAP_S390_TE): Likewise.
2092         (S390_TDB_DWORD0_REGNUM): Likewise.
2093         (S390_TDB_DWORD0_REGNUM): Likewise.
2094         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2095         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2096         (S390_TDB_ATIA_REGNUM): Likewise.
2097         (S390_TDB_R0_REGNUM): Likewise.
2098         (S390_TDB_R1_REGNUM): Likewise.
2099         (S390_TDB_R2_REGNUM): Likewise.
2100         (S390_TDB_R3_REGNUM): Likewise.
2101         (S390_TDB_R4_REGNUM): Likewise.
2102         (S390_TDB_R5_REGNUM): Likewise.
2103         (S390_TDB_R6_REGNUM): Likewise.
2104         (S390_TDB_R7_REGNUM): Likewise.
2105         (S390_TDB_R8_REGNUM): Likewise.
2106         (S390_TDB_R9_REGNUM): Likewise.
2107         (S390_TDB_R10_REGNUM): Likewise.
2108         (S390_TDB_R11_REGNUM): Likewise.
2109         (S390_TDB_R12_REGNUM): Likewise.
2110         (S390_TDB_R13_REGNUM): Likewise.
2111         (S390_TDB_R14_REGNUM): Likewise.
2112         (S390_TDB_R15_REGNUM): Likewise.
2113         (S390_NUM_REGS): Increase.
2114         (S390_IS_TDBREGSET_REGNUM): New macro.
2115         (s390_regmap_tdb): Declare.
2116         (s390_sizeof_tdbregset): Define.
2117         (tdesc_s390_te_linux64): Declare.
2118         (tdesc_s390x_te_linux64): Likewise.
2119         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2120         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2121         (s390_regmap_tdb): New regmap.
2122         (s390_supply_tdb_regset): New function.
2123         (s390_tdb_regset): New regset.
2124         (s390_linux64v2_regset_sections): Add TDB regset to list.
2125         (s390x_linux64v2_regset_sections): Likewise.
2126         (s390_regset_from_core_section): Recognize TDB core note section.
2127         (s390_core_read_description): If HWCAP indicates TE support,
2128         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2129         (s390_gdbarch_init): Handle TDB regset.
2130         (_initialize_s390_tdep): Initialize new tdescs.
2131         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2132         (have_regset_tdb): New variable.
2133         (s390_native_supply): Support register invalidation.
2134         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2135         (check_regset): Treat ENODATA as "regset exists".
2136         (s390_linux_fetch_inferior_registers): Add TDB.
2137         (s390_read_description): Check for TDB existence and select
2138         appropriate tdesc.
2139         * gdbserver/Makefile.in (clean): Add removal of new makefile
2140         targets.
2141         (s390-te-linux64.c): New makefile target.
2142         (s390x-te-linux64.c): Likewise.
2143         * gdbserver/configure.srv (srv_regobj): Append new objects
2144         s390-te-linux64.o and s390x-te-linux64.o.
2145         (srv_xmlfiles): Append new files s390-te-linux64.xml,
2146         s390x-te-linux64.xml, and s390-tdb.xml.
2147         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2148         declaration.
2149         (tdesc_s390_te_linux64): Likewise.
2150         (init_registers_s390x_te_linux64): Likewise.
2151         (tdesc_s390x_te_linux64): Likewise.
2152         (s390_check_regset): Treat ENODATA as "regset exists".
2153         (s390_arch_setup): Add TDB regset support.
2154         (initialize_low_arch): Initialize registers for new tdescs.
2155
2156 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2157
2158         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2159         (S390_IS_FPREGSET_REGNUM): New macro.
2160         * s390-tdep.c (s390_dwarf_regmap): Make const.
2161         (regnum_is_gpr_full): New function for replacing repeated code.
2162         (s390_pseudo_register_name): Use it.
2163         (s390_pseudo_register_type): Likewise.
2164         (s390_pseudo_register_read): Likewise.
2165         (s390_pseudo_register_write): Likewise.
2166         (s390_unwind_pseudo_register): Likewise.
2167         (s390_regmap_gregset): New format for regmap.
2168         (s390x_regmap_gregset): Likewise.
2169         (s390_regmap_fpregset): Likewise.
2170         (s390_regmap_upper): Likewise.
2171         (s390_regmap_last_break): Likewise.
2172         (s390_regmap_system_call): Likewise.
2173         (s390_supply_regset): Adjust to new regmap format.
2174         (s390_collect_regset): Likewise.
2175         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2176         (s390_native_collect): Likewise.
2177         (supply_gregset): Likewise.
2178         (fill_gregset): Likewise.
2179         (supply_fpregset): Likewise.
2180         (fill_fpregset): Likewise.
2181         (fetch_regset): Likewise.
2182         (store_regset): Likewise.
2183         (s390_linux_fetch_inferior_registers): Likewise.
2184         (s390_linux_fetch_inferior_registers): Likewise.
2185
2186 2013-09-12  Andrew Pinski  <apinski@cavium.com>
2187
2188         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2189
2190 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2191
2192         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2193
2194 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
2195
2196         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2197
2198 2013-09-06  Pedro Alves <palves@redhat.com>
2199
2200         * remote-sim.c (dump_mem, gdbsim_fetch_register)
2201         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2202         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2203         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2204         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2205         gdb_stdlog.
2206
2207 2013-09-06  Pedro Alves  <palves@redhat.com>
2208
2209         * remote-sim.c (dump_mem): Constify buf parameter.
2210         gdbsim_xfer_inferior_memory): Rename to ...
2211         (gdbsim_xfer_memory): ... this.  Adjust interface as
2212         target_xfer_partial helper.
2213         (gdbsim_xfer_partial): New function.
2214         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2215         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
2216
2217 2013-09-06  Pedro Alves  <palves@redhat.com>
2218
2219         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2220         host_address_to_string, and send debug output to gdb_stdlog.
2221
2222 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2223
2224         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2225         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2226         gdb_target_obs for cris target.
2227         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2228         (cris_gdbarch_init): Move calls to
2229         set_gdbarch_fetch_tls_load_module_address and
2230         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2231         Add call to gdbarch_init_osabi.
2232         * cris-linux-tdep.c: New file.
2233         * cris-tdep.h: New file.
2234
2235 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
2236
2237         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2238         to deprecated_init_ui_hook.
2239
2240 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
2241
2242         * cli/cli-interp.c (_initialize_cli_interp): Add a
2243         command_loop_proc to interp_procs.
2244         * event-top.c (cli_command_loop): Change signature to match
2245         interp_command_loop_ftype.
2246         * event-top.h (cli_command_loop): Same.
2247         * interps.c (interp_new): Require every interpreter to have a
2248         command_loop_proc.
2249         (current_interp_command_loop): Just call the command_loop_proc on
2250         the current interpreter.
2251         * tui/tui-interp.c (_initialize_tui_interp): Add a
2252         command_loop_proc to interp_procs.
2253
2254 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2255
2256         * cris-tdep.c (cris_gdbarch_init): Add call to
2257         get_gdbarch_fetch_tls_load_module_address.
2258
2259 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2260
2261         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2262         (cris_elf_gregset_t): Rename from elf_gregset_t.
2263         (crisv32_elf_gregset_t): Adjust.
2264         (cris_supply_gregset, fetch_core_registers): Adjust.
2265
2266 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2267
2268         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2269
2270 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
2271
2272         * defs.h (deprecated_command_loop_hook): Remove, including
2273         references in comments.
2274         * interps.c (current_interp_command_loop): No longer use
2275         deprecated_command_loop_hook.
2276         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2277         setup.
2278         * top.c (deprecated_command_loop_hook): Remove.
2279
2280 2013-09-05  Pedro Alves  <palves@redhat.com>
2281
2282         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2283         local is now int instead of ULONGEST.  Print it with %d
2284         instead of paddress.
2285
2286 2013-09-05  Tristan Gingold  <gingold@adacore.com>
2287
2288         * MAINTAINERS: Remove avr maintainership.
2289
2290 2013-09-05  Pedro Alves  <palves@redhat.com>
2291
2292         * findvar.c (value_of_register): Rework in terms of
2293         value_of_register_lazy.
2294
2295 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
2296
2297         * symfile.c (add_symbol_file_command): Remove trailing
2298          whitespaces and blank line after comment.
2299
2300 2013-09-05  Pedro Alves  <palves@redhat.com>
2301
2302         * tui/tui-regs.c (tui_register_format): Don't look at the
2303         register's name here.  Return string representing register
2304         value instead of storing it in the data element.
2305         (tui_get_register): Compare register string representations
2306         instead of register value states and contents.
2307
2308 2013-09-05  Pedro Alves  <palves@redhat.com>
2309
2310         PR tui/15933
2311         * tui/tui-regs.c (tui_show_registers): Show registers of the
2312         selected frame, not the current frame.
2313
2314 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
2315
2316         * MAINTAINERS (Write After Approval): Add myself to the list.
2317
2318 2013-09-04  Doug Evans  <dje@google.com>
2319
2320         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2321         (queue_and_load_dwo_tu): New function.
2322         (lookup_dwo_signatured_type): Set per_cu.tu_read.
2323         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2324         Make dependent_cu optional.
2325         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2326         and an older .gdb_index is in use, queue and load all its TUs too.
2327
2328 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2329
2330         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2331         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2332         variable search_flags.
2333         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2334         (OPF_RETURN_REALPATH): ... here.
2335         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2336         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2337         call.  Twice.
2338         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2339         openp call.
2340         * solib.c (solib_find): Likewise.  Four times.
2341         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2342         in the function comment and for the realpath_fptr variable.
2343         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2344         (find_and_open_source): Likewise.  Twice.
2345         * symfile.c (symfile_bfd_open): Likewise, also twice.
2346
2347 2013-09-04  Doug Evans  <dje@google.com>
2348
2349         * progspace.c (save_current_space_and_thread): Remove unnecessary
2350         call to save_current_inferior.
2351
2352 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
2353
2354         * sh64-tdep.c (sh64_do_register): Return after printing message
2355         about unavailable register contents.
2356
2357 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
2358             Pedro Alves  <palves@redhat.com>
2359
2360         * symfile.c (add_symbol_file_command): Error out on unknown
2361         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2362         options and collapse into single conditional branch.
2363
2364 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
2365
2366         * inf-child.c (inf_child_follow_fork): New parameter
2367         detach_fork.
2368         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2369         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2370         * inferior.h (detach_fork): Remove.
2371         * infrun.c (detach_fork): Adjust comment and make it
2372         static.
2373         (follow_fork): Pass detach_fork parameter to
2374         target_follow_fork.
2375         * linux-nat.c (linux_child_follow_fork): New parameter
2376         detach_fork.
2377         * target.c (target_follow_fork): New parameter detach_fork.
2378         Pass detach_fork as parameter and print its value.
2379         * target.h (struct target_ops) <to_follow_fork>: New int
2380         parameter.
2381         (target_follow_fork): New parameter detach_fork.
2382
2383 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
2384
2385         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2386         Replace sec->bfd by sec->the_bfd_section->owner.
2387
2388 2013-09-03  Yao Qi  <yao@codesourcery.com>
2389
2390         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
2391         from linux_has_shared_address_space.
2392         (linux_has_shared_address_space): Call linux_is_uclinux.
2393         * linux-tdep.h (linux_is_uclinux): Declare.
2394         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2395         linux_is_uclinux.
2396
2397 2013-09-03  Yao Qi  <yao@codesourcery.com>
2398
2399         * config/djgpp/fnchange.lst: Remove entry of
2400         i386-interix-nat.c and i386-interix-tdep.c.
2401         * configure.ac: Remove '*-*-interix*'.
2402         * configure: Re-generated.
2403         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2404         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2405         obsolete comments.
2406         * osabi.c (gdb_osabi_names): Remove "Interix".
2407
2408 2013-09-03  Yao Qi  <yao@codesourcery.com>
2409
2410         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2411
2412 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
2413
2414         * record.h (record_print_flag) <record_print_src_line,
2415         record_print_insn_range>: Rename into ...
2416         (record_print_flag) <record_print_src_line,
2417         record_print_insn_range>: ... this.  Update all users.
2418
2419 2013-09-02  Pierre Muller  <muller@sourceware.org>
2420
2421         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2422         error code.
2423
2424 2013-09-02  Pierre Muller  <muller@sourceware.org>
2425
2426         * windows-nat.c (windows_xfer_memory): Fix compilation failure
2427         by use of plongest function.
2428
2429 2013-09-02  Tristan Gingold  <gingold@adacore.com>
2430
2431         * NEWS: Add entry mentioning support for native Windows x64
2432         SEH data.
2433
2434         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2435         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2436         (struct amd64_windows_frame_cache): New struct.
2437         (amd64_windows_w2gdb_regnum): New global.
2438         (pc_in_range, amd64_windows_frame_decode_epilogue)
2439         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2440         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2441         (amd64_windows_frame_this_id): New functions.
2442         (amd64_windows_frame_unwind): New static global.
2443         (amd64_windows_skip_prologue): New function.
2444         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2445         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2446         with amd64_windows_skip_prologue.
2447
2448 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
2449
2450         GDB 7.6.1 released.
2451
2452 2013-08-30  Pedro Alves  <palves@redhat.com>
2453
2454         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2455         SRC_AND_LOC.
2456
2457 2013-08-30  Pedro Alves  <palves@redhat.com>
2458
2459         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2460         warning text.
2461
2462 2013-08-30  Pedro Alves  <palves@redhat.com>
2463
2464         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2465         Adjust arguments to print_stack_frame.
2466
2467 2013-08-30  Pedro Alves  <palves@redhat.com>
2468
2469         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2470
2471 2013-08-30  Pedro Alves  <palves@redhat.com>
2472
2473         * frame.h (show_and_print_stack_frame): Delete declaration.
2474
2475 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
2476
2477         PR python/15461
2478         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2479         (archpy_name): Check for valid architecture.
2480         (archpy_disassemble): Ditto.
2481
2482 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
2483
2484         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2485         instead of "long long" in call to ptrace64.
2486
2487 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
2488
2489         * mi/mi-interp.c (mi_command_loop): Change signature to match
2490         interp_command_loop_ftype.
2491         (mi1_command_loop): Remove.
2492         (mi2_command_loop): Remove.
2493         (mi3_command_loop): Remove.
2494         (mi_interpreter_resume): Remove setting of
2495         deprecated_command_loop_hook.
2496         (_initialize_mi_interp): Set mi_command_loop as the command loop
2497         callback.
2498
2499 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2500
2501         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2502         value_type.
2503
2504 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2505
2506         * value.c (allocate_value_contents): Make static.
2507         * value.h (allocate_value_contents): Remove prototype.
2508
2509 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2510
2511         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2512         of assembling value via allocate_value_lazy and attribute setter.
2513         * findvar.c (default_read_var_value): Use value_at_lazy instead of
2514         assembling value via allocate_value_lazy and attribute setter.
2515         * valops.c (do_search_struct_field): Use value_at_lazy instead of
2516         assembling value via allocate_value_lazy and attribute setter.
2517
2518 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2519
2520         * value.c (value_from_contents_and_address): Replace allocate_value and
2521         memcpy with value_from_contents.
2522
2523 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2524
2525         * python/py-framefilter.c (py_print_frame): Remove usage of
2526         PyString_AsString.  Use python_string_to_host_string instead.
2527         Refactor function to work with a string as a new allocation
2528         instead of a pointer.
2529         (py_print_frame): Ditto.
2530         * python/lib/gdb/frames.py (return_list): Cain iterators together
2531         instead of adding them as a list.
2532         (_sort_list): Call return_list, and remove duplicate code.
2533         (execute_frame_filters): Convert iterator to a list with list().
2534         * python/lib/gdb/command/frame_filters.py
2535         (SetFrameFilterPriority._set_filter_priority): Convert priority
2536         attribute to an integer.
2537         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2538         wrapper function __next__.
2539         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2540         define as "str".
2541
2542 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2543
2544         PR python/15752
2545         * python/py-framefilter.c (apply_frame_filter): Check
2546         gdb_python_initialized.  Exit if the Python frame-filter code
2547         cannot be initialized.
2548
2549 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2550
2551         PR cli/15842
2552         * top.c (print_gdb_version): Remove erroneous newline after help
2553         text.
2554
2555 2013-08-29  Yao Qi  <yao@codesourcery.com>
2556
2557         * varobj.c (install_dynamic_child): Remove trailing space.
2558         Add one blank line after variable declaration.
2559
2560 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2561
2562         PR gdb/15415
2563         * corefile.c (get_exec_file): Use exec_filename.
2564         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
2565         * exec.c (exec_close): Free EXEC_FILENAME.
2566         (exec_file_attach): New variable canonical_pathname.  Use
2567         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
2568         EXEC_FILENAME.
2569         * exec.h (exec_filename): New.
2570         * inferior.c (print_inferior, inferior_command): Use
2571         PSPACE_EXEC_FILENAME.
2572         * mi/mi-main.c (print_one_inferior): Likewise.
2573         * progspace.c (clone_program_space, print_program_space): Likewise.
2574         * progspace.h (struct program_space): New field pspace_exec_filename.
2575         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
2576         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2577
2578 2013-08-28  Will Newton  <will.newton@linaro.org>
2579
2580         * common/linux-ptrace.c: Include stdint.h unconditionally.
2581
2582 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2583
2584         Code cleanup.
2585         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2586
2587 2013-08-28  Yao Qi  <yao@codesourcery.com>
2588             Pedro Alves  <palves@redhat.com>
2589
2590         * event-top.c (gdb_setup_readline): Call stderr_fileopen
2591         instead of stdio_fileopen.
2592         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2593         .Call stderr_fileopen instead of stdio_fileopen.
2594         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2595         [__MINGW32__] (stderr_file_fputs): New function.
2596         (stderr_fileopen): New function.
2597         * ui-file.h (stderr_fileopen): Declare.
2598
2599 2013-08-27  Doug Evans  <dje@google.com>
2600
2601         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2602         (struct dwarf2_per_cu_data): Ditto.
2603         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
2604         (process_imported_unit_die): Ditto.
2605         (follow_die_sig_1): Simplify assert.
2606
2607 2013-08-27  Pedro Alves  <palves@redhat.com>
2608
2609         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2610         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
2611         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2612         windows_xfer_memory directly.
2613         (init_windows_ops): Don't install a deprecated_xfer_memory method.
2614
2615 2013-08-27  Pedro Alves  <palves@redhat.com>
2616
2617         * darwin-nat.c (darwin_xfer_memory): Delete.
2618         (_initialize_darwin_inferior): Don't install a
2619         deprecated_xfer_memory method.
2620
2621 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
2622             Yao Qi  <yao@codesourcery.com>
2623
2624         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2625         (parse_no_frames_option): Remove.
2626         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2627         (mi_cmd_stack_list_args): Adjust.
2628         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2629         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
2630         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2631         Caller update.
2632         (list_args_or_locals): New parameter 'skip_unavailable'.
2633         Handle it.
2634         * valprint.c (scalar_type_p): Rename to ...
2635         (val_print_scalar_type_p): ... this.  Make extern.
2636         (val_print, value_check_printable): Adjust.
2637         * valprint.h (val_print_scalar_type_p): Declare.
2638         * value.c (value_entirely_unavailable): New function.
2639         * value.h (value_entirely_unavailable): Declare.
2640
2641         * NEWS: Mention the new option "--skip-unavailable" to MI
2642         commands '-stack-list-locals', '-stack-list-arguments' and
2643         '-stack-list-variables'.
2644
2645 2013-08-27  Yao Qi  <yao@codesourcery.com>
2646
2647         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2648         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2649         options.
2650         * mi/mi-getopt.c (mi_getopt): Remove.
2651         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
2652         'error_on_unknown'.
2653         (mi_getopt): Call mi_getopt_1.
2654         (mi_getopt_silent): New.
2655         * mi/mi-getopt.h (mi_getopt_silent): Declare.
2656
2657 2013-08-26  Doug Evans  <dje@google.com>
2658
2659         PR symtab/15885
2660         * dwarf2read.c (dw2_dump): Print some minimal information indicating
2661         .gdb_index is in use.
2662         * symfile.c (reread_symbols): Reset objfile->sf.
2663
2664         * NEWS: Document "mt print objfiles" now takes optional regexp.
2665         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2666         regexp of objfiles to print.
2667         (_initialize_symmisc): Update doc string for "mt print objfiles".
2668
2669         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2670         missing debug info checks.
2671
2672 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
2673             Ulrich Weigand  <uweigand@de.ibm.com>
2674
2675         * xcoffread.c (arrange_linetable): Add fix to correctly handle
2676         line tables generated by XLC compiled binaries.
2677
2678 2013-08-23  Doug Evans  <dje@google.com>
2679
2680         * symmisc.c (dump_symtab): Delete prototype.
2681         (dump_msymbols, dump_objfile): Ditto.
2682         (maintenance_info_symtabs): Mark as dont_repeat.
2683         (_initialize_symmisc): Improve doc string for "mt info symtabs".
2684
2685         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2686         debugging printf to better location.
2687
2688 2013-08-23  Pedro Alves  <palves@redhat.com>
2689
2690         * target.c (target_read_live_memory): Change type of 'ret' local
2691         to LONGEST.
2692
2693 2013-08-23  Pedro Alves  <palves@redhat.com>
2694
2695         * remote.c (remote_write_bytes_aux, remote_write_bytes)
2696         (remote_read_bytes): Change return type to LONGEST, and adjust to
2697         return a target_xfer_error on error.
2698         (remote_xfer_memory): Delete.
2699         (remote_flash_write): Change type of 'ret' local to LONGEST.
2700         (remote_xfer_partial, remote_xfer_partial): Adjust.
2701         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2702
2703 2013-08-23  Pierre Muller  <muller@sourceware.org>
2704
2705         ARI fix: Push # directives to start of line.
2706         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2707
2708 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
2709
2710         PR gdb/15501
2711         * breakpoint.c (enable_command, disable_command): Iterate over
2712         all specified breakpoint locations.
2713
2714 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2715
2716         * common/linux-ptrace.c (linux_fork_to_function): Push #
2717         directives to the start of the line.
2718         (linux_check_ptrace_features): Fix warning message to use
2719         the "_" markup.
2720
2721 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2722
2723         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2724         nat/linux-waitpid.h.
2725         (linux-waitpid.o): New object file rule.
2726         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2727         (current_ptrace_options): Moved from linux-nat.c.
2728         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2729         parameters.
2730         (linux_fork_to_function): New function.
2731         (linux_grandchild_function): Likewise.
2732         (linux_child_function): Likewise.
2733         (linux_check_ptrace_features): New function, heavily
2734         based on linux-nat.c:linux_test_for_tracefork.
2735         (linux_enable_event_reporting): New function.
2736         (ptrace_supports_feature): Likewise.
2737         (linux_supports_tracefork): Likewise.
2738         (linux_supports_traceclone): Likewise.
2739         (linux_supports_tracevforkdone): Likewise.
2740         (linux_supports_tracesysgood): Likewise.
2741         * common/linux-ptrace.h (HAS_NOMMU): Moved from
2742         gdbserver/linux-low.c.
2743         (linux_enable_event_reporting): New declaration.
2744         (linux_supports_tracefork): Likewise.
2745         (linux_supports_traceclone): Likewise.
2746         (linux_supports_tracevforkdone): Likewise.
2747         (linux_supports_tracesysgood): Likewise.
2748         * config.in (PTRACE_TYPE_ARG4): Regenerate.
2749         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2750         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2751         * config/arm/linux.mh (NATDEPFILES): Likewise.
2752         * config/i386/linux.mh (NATDEPFILES): Likewise.
2753         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2754         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2755         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2756         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2757         * config/mips/linux.mh (NATDEPFILES): Likewise.
2758         * config/pa/linux.mh (NATDEPFILES): Likewise..
2759         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2760         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2761         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2762         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2763         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2764         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2765         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2766         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2767         ptrace's 4th argument's types.
2768         Check the type of PTRACE_TYPE_ARG4.
2769         * configure: Regenerate.
2770         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2771         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2772         (linux_supports_tracefork_flag): Remove.
2773         (linux_supports_tracesysgood_flag): Likewise.
2774         (linux_supports_tracevforkdone_flag): Likewise.
2775         (current_ptrace_options): Moved to
2776         common/linux-ptrace.c.
2777         (linux_tracefork_child): Remove.
2778         (my_waitpid): Remove.
2779         (linux_test_for_tracefork): Renamed to
2780         linux_check_ptrace_features and moved to common/linux-ptrace.c.
2781         (linux_test_for_tracesysgood): Remove.
2782         (linux_supports_tracesysgood): Remove.
2783         (linux_supports_tracefork): Remove.
2784         (linux_supports_tracevforkdone): Remove.
2785         (linux_enable_tracesysgood): Remove.
2786         (linux_enable_event_reporting): Remove.
2787         (linux_init_ptrace): New function.
2788         (linux_child_post_attach): Call linux_init_ptrace.
2789         (linux_child_post_startup_inferior): Call linux_init_ptrace.
2790         (linux_child_follow_fork): Call linux_supports_tracefork
2791         and linux_supports_tracevforkdone.
2792         (linux_child_insert_fork_catchpoint): Call
2793         linux_supports_tracefork.
2794         (linux_child_insert_vfork_catchpoint): Likewise.
2795         (linux_child_set_syscall_catchpoint): Call
2796         linux_supports_tracesysgood.
2797         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2798         * nat/linux-nat.h: New file.
2799         * nat/linux-waitpid.c: New file.
2800         * nat/linux-waitpid.h: New file.
2801
2802 2013-08-22  Samuel Bronson  <naesten@gmail.com>
2803
2804         ARM Linux support for `catch syscall'.
2805         * syscalls/arm-linux.py: New file.
2806         * syscalls/arm-linux.xml: Likewise.
2807         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2808         (arm_linux_init_abi): Register the new function and syscall xml file.
2809         * data-directory/Makefile.in: Install the new syscall xml file.
2810         * NEWS: Brag about this.
2811
2812 2013-08-22  Pedro Alves  <palves@redhat.com>
2813
2814         PR gdb/15871
2815         * corefile.c (target_xfer_memory_error): New function.
2816         (memory_error): Defer EIO to target_memory_error.
2817         (read_memory): Use target_xfer_partial, and handle finer-grained
2818         target xfer errors.
2819         * target.c (target_xfer_error_to_string): New function.
2820         (memory_xfer_partial_1): If memory is known to be
2821         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2822         (target_xfer_partial): Make extern.
2823         * target.h (enum target_xfer_error): New enum.
2824         (target_xfer_error_to_string): Declare function.
2825         (target_xfer_partial): Declare function.
2826         (struct target_ops) <xfer_partial>: Adjust describing comment.
2827
2828 2013-08-22  Alan Modra  <amodra@gmail.com>
2829
2830         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2831         * configure.tgt: Likewise as targets.
2832
2833 2013-08-20  Doug Evans  <dje@google.com>
2834
2835         * buildsym.c (subfile_stack): Move here from buildsym.h.
2836         (pending_macros): Ditto.
2837         (get_macro_table): New function.
2838         (buildsym_init): Initialize subfile_stack.
2839         * coffread.c (type_vector,type_vector_length): Moved here from
2840         buildsym.h.
2841         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2842         (coff_symtab_read): Use it.
2843         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2844         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2845         with call to get_macro_table.
2846         * stabsread.c (type_vector,type_vector_length): Moved here from
2847         buildsym.h.
2848         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2849         * buildsym.h (get_macro_table): Declare.
2850
2851 2013-08-20  Tom Tromey  <tromey@redhat.com>
2852
2853         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2854         Update.
2855         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
2856
2857 2013-08-20  Doug Evans  <dje@google.com>
2858
2859         * blockframe.c: Remove #include "psymtab.h".
2860         * cp-support.c: Ditto.
2861         * source.c: Ditto.
2862         * stack.c: Ditto.
2863
2864 2013-08-20  Tom Tromey  <tromey@redhat.com>
2865
2866         PR python/15816:
2867         * exceptions.h (return_mask): Now an enum.
2868         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2869         enum constants.
2870
2871 2013-08-20  Tom Tromey  <tromey@redhat.com>
2872
2873         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2874         get_objfile_arch.
2875         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2876         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2877         * jit.c (jit_object_close_impl): Update.
2878         * jv-lang.c (get_dynamics_objfile): Update.
2879         * linespec.c (add_minsym): Use get_dynamics_objfile.
2880         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2881         (allocate_objfile): Don't initialize 'gdbarch' field.
2882         (get_objfile_arch): Update.
2883         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2884         moved from...
2885         (struct objfile) <gdbarch>: ... here.  Remove.
2886         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2887         get_objfile_arch.
2888         * symfile.c (init_entry_point_info): Use get_objfile_arch.
2889
2890 2013-08-20  Alan Modra  <amodra@gmail.com>
2891
2892         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2893         for IBM long double nan and inf.
2894         (floatformat_is_negative, floatformat_classify,
2895         floatformat_mantissa): Similarly.
2896         (floatformat_ieee_single, floatformat_ieee_double,
2897         floatformat_ieee_quad, floatformat_arm_ext,
2898         floatformat_ia64_spill): Delete unused vars.
2899         (_initialize_doublest): Delete unused function.
2900         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2901         little-endian variants of floatformat_ibm_long_double.
2902
2903 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
2904
2905         * Makefile.in (SFILES): Remove common/target-common.c and
2906         add target/waitstatus.c.
2907         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2908         target/resume.h, target/wait.h and target/waitstatus.h.
2909         (COMMON_OBS): Remove target-common.o and add
2910         waitstatus.o.
2911         (target-common.o): Remove.
2912         (waitstatus.o): New target object file.
2913         * common/target-common.c: Move contents to
2914         target/waitstatus.c and remove.
2915         * common/target-common.h: Move contents to other files and
2916         remove.
2917         (enum resume_kind: Move to target/resume.h.
2918         (TARGET_WNOHANG): Move to target/wait.h.
2919         (enum target_waitkind): Move to target/waitstatus.h.
2920         (struct target_waitstatus): Likewise.
2921         * target.h: Do not include target-common.h and
2922         include target/resume.h, target/wait.h and
2923         target/waitstatus.h.
2924         * target/resume.h: New file.
2925         * target/wait.h: New file.
2926         * target/waitstatus.h: New file.
2927         * target/waitstatus.c: New file.
2928
2929 2013-08-19  Pedro Alves  <palves@redhat.com>
2930
2931         * linux-nat.c (linux_test_for_tracefork)
2932         (linux_test_for_tracesysgood, linux_child_follow_fork)
2933         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2934         (linux_nat_wait_1): Extend comment.
2935         (linux_async_pipe): Add comment.
2936
2937 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
2938
2939         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2940         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2941         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2942         Update to account for fact that PC is now a pseudo-register.
2943         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
2944         cases for RL78_PC_REGNUM.
2945
2946 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
2947
2948         PR cli/15841
2949         * top.c (quit_force): Skip writing history file
2950         if input is not from terminal.
2951
2952 2013-08-14  Tom Tromey  <tromey@redhat.com>
2953
2954         * remote.c (struct remote_state) <echo_nextthread, nextthread,
2955         resultthreadlist>: New fields.
2956         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2957         (remote_get_threadlist, remote_threadlist_iterator): Use
2958         new fields.  Remove static variables.
2959
2960 2013-08-14  Tom Tromey  <tromey@redhat.com>
2961
2962         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2963         remote_watch_data_address>: New fields.
2964         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2965         (process_stop_reply, remote_wait_as)
2966         (remote_check_watch_resources, remote_stopped_data_address): Update.
2967
2968 2013-08-14  Tom Tromey  <tromey@redhat.com>
2969
2970         * remote.c (struct remote_state) <async_client_callback,
2971         async_client_context>: New fields.
2972         (async_client_callback, async_client_context): Remove.
2973         (remote_async_serial_handler, remote_async): Update.
2974
2975 2013-08-14  Tom Tromey  <tromey@redhat.com>
2976
2977         * remote.c (sizeof_pkt): Remove.
2978         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2979
2980 2013-08-14  Tom Tromey  <tromey@redhat.com>
2981
2982         * remote.c (struct remote_state) <use_threadinfo_query,
2983         use_threadextra_query>: New fields.
2984         (remote_threads_info, remote_threads_extra_info)
2985         (remote_open_1): Update.
2986
2987 2013-08-14  Tom Tromey  <tromey@redhat.com>
2988
2989         * remote.c (struct remote_state) <finished_object,
2990         finished_annex, finished_offset>: New fields.
2991         (remote_read_qxfer): Use remote_state fields; remove static
2992         variables.
2993
2994 2013-08-14  Tom Tromey  <tromey@redhat.com>
2995
2996         * remote.c (struct remote_state) <last_sent_step>:
2997         New field.
2998         (last_sent_step): Remove.
2999         (remote_resume, remote_wait_as): Update.
3000
3001 2013-08-14  Tom Tromey  <tromey@redhat.com>
3002
3003         * remote.c (struct remote_state) <last_sent_signal>:
3004         New field.
3005         (last_sent_signal): Remove.
3006         (new_remote_state, remote_resume, remote_wait_as): Update.
3007
3008 2013-08-14  Tom Tromey  <tromey@redhat.com>
3009
3010         * remote.c (struct remote_state) <last_program_signals_packet>:
3011         New field.
3012         (last_program_signals_packet): Remove.
3013         (remote_program_signals, remote_open_1): Update.
3014
3015 2013-08-14  Tom Tromey  <tromey@redhat.com>
3016
3017         * remote.c (struct remote_state) <last_pass_packet>:
3018         New field.
3019         (last_pass_packet): Remove.
3020         (remote_pass_signals, remote_open_1): Update.
3021
3022 2013-08-14  Tom Tromey  <tromey@redhat.com>
3023
3024         * remote.c (struct remote_state) <remote_traceframe_number>:
3025         New field.
3026         (remote_traceframe_number): Remove.
3027         (new_remote_state, remote_open_1, set_remote_traceframe)
3028         (remote_trace_find): Update.
3029
3030 2013-08-14  Tom Tromey  <tromey@redhat.com>
3031
3032         * remote.c (struct remote_state) <general_thread, continue_thread>:
3033         New fields.
3034         (general_thread, continue_thread): Remove.
3035         (record_currthread, set_thread, set_general_process)
3036         (remote_open_1, extended_remote_attach_1, remote_wait_as)
3037         (extended_remote_mourn_1): Update.
3038
3039 2013-08-14  Tom Tromey  <tromey@redhat.com>
3040
3041         * remote.c (struct remote_state) <remote_desc>: New field.
3042         (remote_desc): Remove.
3043         (remote_threads_info, remote_threads_extra_info, remote_close)
3044         (send_interrupt_sequence, remote_start_remote, remote_open_1)
3045         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3046         (remote_hostio_send_command, remote_file_put, remote_file_get)
3047         (remote_file_delete, remote_can_async_p, remote_is_async_p)
3048         (remote_async, remote_new_objfile, set_range_stepping): Update.
3049
3050 2013-08-14  Tom Tromey  <tromey@redhat.com>
3051
3052         * remote.c (remote_state): Now a pointer.
3053         (get_remote_state_raw): Update.
3054         (new_remote_state): New function.
3055         (_initialize_remote): Use new_remote_state.
3056
3057 2013-08-14  Tom Tromey  <tromey@redhat.com>
3058
3059         * remote.c (remote_protocol_features): Now const.
3060
3061 2013-08-14  Tom Tromey  <tromey@redhat.com>
3062
3063         * remote.c (crc32_table, crc32): Remove.
3064         (remote_verify_memory): Use xcrc32.
3065
3066 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
3067
3068         * value.h (create_internalvar_type_lazy): Adjust prototype
3069         declaration.
3070
3071 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
3072
3073         * common/format.c (parse_format_string): Don't allow '#' flag for
3074         pointer arguments in format string.
3075
3076 2013-08-13  Pierre Muller  <muller@sourceware.org>
3077
3078         * utils.c (init_page_info): Only call tgetnum function
3079         if rl_get_screen_size did not return useful values.
3080
3081 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
3082
3083         PR breakpoints/15117
3084         * linespec.c (linespec_parse_basic): Check for convenience
3085         variable or history value while parsing.
3086
3087 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
3088
3089         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3090         AVR.
3091         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
3092         different signals between the generic Linux kernel implementation
3093         and AVR's.
3094         (avr_linux_gdb_signal_from_target): Delete.
3095         (avr_linux_gdb_signal_to_target): Delete.
3096         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3097
3098 2013-08-09  Doug Evans  <dje@google.com>
3099
3100         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3101         entries.
3102
3103 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
3104
3105         * linux-tdep.c: Define enum with generic signal numbers.
3106         (linux_gdb_signal_from_target): New function.
3107         (linux_gdb_signal_to_target): Likewise.
3108         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3109         methods to the functions above.
3110         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3111         (linux_gdb_signal_to_target): Likewise.
3112         * alpha-linux-tdep.c: Define new enum with signals different
3113         from generic Linux kernel.
3114         (alpha_linux_gdb_signal_from_target): New function.
3115         (alpha_linux_gdb_signal_to_target): Likewise.
3116         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3117         with the functions mentioned above.
3118         * avr-tdep.c: Define enum with differences between Linux kernel
3119         and AVR signals.
3120         (avr_linux_gdb_signal_from_target): New function.
3121         (avr_linux_gdb_signal_to_target): Likewise.
3122         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3123         the functions mentioned above.
3124         * sparc-linux-tdep.c: Define enum with differences between SPARC
3125         and generic Linux kernel signal numbers.
3126         (sparc32_linux_gdb_signal_from_target): New function.
3127         (sparc32_linux_gdb_signal_to_target): Likewise.
3128         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3129         to the functions defined above.
3130         * xtensa-linux-tdep.c: Define enum with differences between
3131         Xtensa and Linux kernel generic signals.
3132         (xtensa_linux_gdb_signal_from_target): New function.
3133         (xtensa_linux_gdb_signal_to_target): Likewise.
3134         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3135         to the functions defined above.
3136         * mips-linux-tdep.c: Define enum with differences between
3137         signals in MIPS and Linux kernel generic ones.
3138         (mips_gdb_signal_to_target): New function.
3139         (mips_gdb_signal_from_target): Redefine to use new enum, handle
3140         only different signals from the Linux kernel generic.
3141         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3142         the functions defined above.
3143         * mips-linux-tdep.h (enum mips_signals): Remove.
3144
3145 2013-08-09  Pedro Alves  <palves@redhat.com>
3146
3147         * avr-tdep.c (XMALLOC): Delete macro.
3148         * cli/cli-dump.c (XMALLOC): Delete macro.
3149
3150 2013-08-09  Pedro Alves  <palves@redhat.com>
3151
3152         * cli/cli-dump.c: Don't include cli/cli-dump.h.
3153         (scan_expression_with_cleanup, scan_filename_with_cleanup)
3154         (fopen_with_cleanup, add_dump_command): Make static.
3155         * cli/cli-dump.h: Delete file.
3156         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3157         cli/cli-dump.h.
3158
3159 2013-08-09  Pedro Alves  <palves@redhat.com>
3160
3161         * tracepoint.c (tfile_start): Show tilde-expanded filename in
3162         error message.
3163
3164 2013-08-09  Pedro Alves  <palves@redhat.com>
3165
3166         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3167         error message.
3168
3169 2013-08-09  Pedro Alves  <palves@redhat.com>
3170
3171         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3172         (gcore_command): Use tilde_expand here, and when showing the
3173         filename to the user, show the expanded version.
3174
3175 2013-08-09  Yao Qi  <yao@codesourcery.com>
3176
3177         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3178         'entryval' is set.
3179
3180 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
3181
3182         * gcore.c (create_gcore_bfd): Use tilde_expand.
3183
3184 2013-08-08  Yao Qi  <yao@codesourcery.com>
3185
3186         * frame.h (read_frame_local): Declare.
3187         * mi/mi-cmd-stack.c (list_args_or_locals): Call
3188         read_frame_local.
3189         * stack.c (read_frame_local): New.
3190
3191 2013-08-08  Yao Qi  <yao@codesourcery.com>
3192
3193         * mi/mi-cmd-stack.c: Update comments to function
3194         list_args_or_locals.
3195
3196 2013-08-07  Tom Tromey  <tromey@redhat.com>
3197
3198         PR symtab/15028:
3199         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3200         (process_psymtab_comp_unit_reader): Use it.
3201         (process_psymtab_comp_unit): Update.  Add "pretend_language"
3202         argument.
3203         (dwarf2_build_psymtabs_hard): Update.
3204         (scan_partial_symbols): Pass CU's language to
3205         process_psymtab_comp_unit.
3206
3207 2013-08-07  Tom Tromey  <tromey@redhat.com>
3208
3209         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3210         (dwarf2_gdb_index_functions): Update.
3211         * psymtab.c (find_symbol_file_from_partial): Remove.
3212         (psym_functions): Update.
3213         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3214         Remove.
3215
3216 2013-08-07  Tom Tromey  <tromey@redhat.com>
3217
3218         * symfile.c (set_initial_language): Look up "main" symbol
3219         and use its language.
3220         * symtab.c (find_main_filename): Remove.
3221         * symtab.h (find_main_filename): Remove.
3222
3223 2013-08-07  Tom Tromey  <tromey@redhat.com>
3224
3225         * dwarf2read.c (recursively_compute_inclusions): Add
3226         "immediate_parent" argument.  Set symtab's "user" field
3227         if not set.
3228         (compute_symtab_includes): Update.
3229
3230 2013-08-07  Tom Tromey  <tromey@redhat.com>
3231
3232         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3233         when adding label symbols.
3234
3235 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
3236             Ulrich Weigand  <uweigand@de.ibm.com>
3237
3238         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3239         * configure.host (powerpc64-*-aix*): Likewise.
3240
3241 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
3242             Ulrich Weigand  <uweigand@de.ibm.com>
3243
3244         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3245         is defined.
3246         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3247         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3248         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3249         * configure.ac: Check for ptrace64.
3250         * configure, config.in: Regenerate.
3251
3252 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
3253             Ulrich Weigand  <uweigand@de.ibm.com>
3254
3255         * aixthread.c: Call ptrace64 instead of ptracex if defined.
3256         Call ptrace64 instead of ptrace if defined.
3257         Add macro addr_ptr to take care of ptrace address argument.
3258         (pdc_read_regs): Likewise.
3259         (pdc_write_regs): Likewise.
3260         (aix_thread_resume): Likewise.
3261         (fetch_regs_kernel_thread): Likewise.
3262         (store_regs_kernel_thread): Likewise.
3263
3264 2013-08-07  Anton Blanchard  <anton@samba.org>
3265
3266         * MAINTAINERS: Add myself to Write After Approval.
3267
3268 2013-08-05  Tom Tromey  <tromey@redhat.com>
3269
3270         * aix-thread.c (_initialize_aix_thread): Use
3271         complete_target_initialization.
3272         * bsd-uthread.c (_initialize_bsd_uthread): Use
3273         complete_target_initialization.
3274         * dec-thread.c (_initialize_dec_thread): Use
3275         complete_target_initialization.
3276         * ravenscar-thread.c (_initialize_ravenscar): Use
3277         complete_target_initialization.
3278         * sol-thread.c (_initialize_sol_thread): Use
3279         complete_target_initialization.
3280         * spu-multiarch.c (_initialize_spu_multiarch): Use
3281         complete_target_initialization.
3282
3283 2013-08-05  Tom Tromey  <tromey@redhat.com>
3284
3285         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3286         * ada-lang.c (ada_lookup_simple_minsym): Return
3287         bound_minimal_symbol.
3288         * ada-lang.h (ada_lookup_simple_minsym): Update.
3289         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3290         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3291         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3292         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3293         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3294         * minsyms.c (msymbol_objfile): Remove.
3295         (lookup_minimal_symbol_internal): New function, from
3296         lookup_minimal_symbol.
3297         (lookup_minimal_symbol): Rewrite using
3298         lookup_minimal_symbol_internal.
3299         (lookup_bound_minimal_symbol): New function.
3300         * minsyms.h (msymbol_objfile): Remove.
3301         (lookup_bound_minimal_symbol): Declare.
3302         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3303         * parse.c (write_exp_msymbol): Change parameter to a
3304         bound_minimal_symbol.
3305         (write_dollar_variable): Use lookup_bound_minimal_symbol.
3306         * parser-defs.h (write_exp_msymbol): Update.
3307         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3308         * symfile.c (simple_read_overlay_table): Use
3309         lookup_bound_minimal_symbol.
3310         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3311         (search_symbols): Likewise.
3312         (print_msymbol_info): Take a bound_minimal_symbol argument.
3313         (symtab_symbol_info, rbreak_command): Update.
3314         * symtab.h (struct symbol_search) <msymbol>: Change type
3315         to bound_minimal_symbol.
3316         * valops.c (find_function_in_inferior): Use
3317         lookup_bound_minimal_symbol.
3318         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3319
3320 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3321
3322         Code cleanup.
3323         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3324         to ...
3325         (async_cleanup_sigint_signal_handler): ... this.
3326         (initialize_sigint_signal_handler): Remove declaration.
3327         (handle_remote_sigint): Rename the declaration to ...
3328         (async_handle_remote_sigint): ... this.
3329         (handle_remote_sigint_twice): Rename the declaration to ...
3330         (async_handle_remote_sigint_twice): ... this.
3331         (async_remote_interrupt, async_remote_interrupt_twice)
3332         (remote_interrupt): Remove the declarations.
3333         (remote_interrupt_twice): Rename the declaration ...
3334         (sync_remote_interrupt_twice): ... this.
3335         (sigint_remote_twice_token): Rename the variable to ...
3336         (async_sigint_remote_twice_token): ... this.
3337         (sigint_remote_token): Rename the variable to ...
3338         (async_sigint_remote_token): ... this.
3339         (initialize_sigint_signal_handler): Rename the function to ...
3340         (async_initialize_sigint_signal_handler): ... this.  Update the name
3341         inside.
3342         (handle_remote_sigint): Rename the function to ...
3343         (async_handle_remote_sigint): ... this.  Update the names inside.
3344         (handle_remote_sigint_twice): Rename the function to ...
3345         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
3346         (cleanup_sigint_signal_handler): Rename the function to ...
3347         (async_cleanup_sigint_signal_handler): ... this.
3348         (remote_interrupt): Rename the function to ...
3349         (sync_remote_interrupt): this.  Update the names inside.
3350         (remote_interrupt_twice): Rename the function to ...
3351         (sync_remote_interrupt_twice): this.  Update the names inside.
3352         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3353         (_initialize_remote): Update the names inside.
3354
3355 2013-08-02  Tom Tromey  <tromey@redhat.com>
3356
3357         PR symtab/15719:
3358         * breakpoint.c (update_watchpoint, watchpoint_check)
3359         (watch_command_1): Update.
3360         * eval.c (fetch_subexp_value): Add "preserve_errors"
3361         parameter.
3362         * ppc-linux-nat.c (check_condition): Update.
3363         * value.h (fetch_subexp_value): Update.
3364
3365 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
3366
3367         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3368         add_file_handler.
3369
3370 2013-08-01  Doug Evans  <dje@google.com>
3371
3372         PR symtab/15691
3373         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3374         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3375         Add assert of sig_entry->dwo_unit == NULL.
3376         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3377         had already been read.
3378         (read_signatured_type): Set per_cu.tu_read.
3379
3380         PR symtab/15695
3381         * valops.c (value_struct_elt): Add missing call to check_typedef.
3382         (value_find_oload_method_list): Ditto.
3383
3384         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3385         effectively, struct symbol_search **.
3386         (make_cleanup_free_search_symbols): Change arg to struct
3387         symbol_search **.  All callers updated.
3388         (compare_search_syms): Compare symtab file name and block as well.
3389         (search_symbols_equal): New function.
3390         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3391         New args new_head, new_tail.  Result is now void.  Remove dups after
3392         sorting the symbols.
3393         (search_symbols): Sort all found symbols once, after all have been
3394         found, and remove duplicates.  Simplify cleanup tracking of result.
3395         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3396
3397         Further workarounds for binutils/15021.
3398         * dwarf2read.c (recursively_compute_inclusions): Change type of result
3399         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
3400         Watch for duplicate symtabs coming from type units.
3401         (compute_symtab_includes): Update call to
3402         recursively_compute_inclusions. Build vector of included symtabs
3403         instead of per_cus.
3404         * symtab.h (symtab_ptr): New typedef.
3405         (DEF_VEC_P (symtab_ptr)): New VEC type.
3406         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
3407         instead.
3408
3409 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
3410
3411         * cli/cli-script.c (script_from_file): Remove use of
3412         error_pre_print.
3413         * main.c (captured_main): Remove use of error_pre_print and
3414         quit_pre_print.
3415         * utils.c (error_pre_print, quit_pre_print): Remove.
3416         * utils.h (error_pre_print, quit_pre_print): Likewise.
3417
3418 2013-08-01  Yao Qi  <yao@codesourcery.com>
3419
3420         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3421         with mi_getopt.
3422         (mi_cmd_stack_list_variables): Likewise.
3423
3424 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3425
3426         * exceptions.c (deprecated_throw_reason): Remove.
3427         * exceptions.h (deprecated_throw_reason): Remove.
3428
3429 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3430
3431         * remote-mips.c (mips_error): Replace use of
3432         deprecated_throw_reason with throw_verror.  Use the error message
3433         passed to mips_error as the error message for throw_verror.
3434
3435 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3436
3437         * monitor.c (monitor_interrupt_query): Replace use of
3438         deprecated_throw_reason with quit.
3439         * nto-procfs.c (interrupt_query): Likewise.
3440         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3441         * remote-mips.c (mips_kill): Likewise.
3442         * remote.c (interrupt_query): Likewise.
3443
3444 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3445
3446         * utils.c (internal_verror): Replace use of deprecated_throw_reason
3447         with call to fatal.
3448
3449 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
3450             Yao Qi  <yao@codesourcery.com>
3451
3452         * tracepoint.c (trace_dump_command): Select the current frame.
3453
3454 2013-07-30  Doug Evans  <dje@google.com>
3455
3456         * dwarf2read.c (process_queue): Add type signature to debug output.
3457
3458 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3459
3460         * value.c (value_fetch_lazy): Mark optimized out values as such
3461         rather than raising an error.
3462
3463 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3464
3465         * value.c (value_fetch_lazy): Ensure parent value is not lazy
3466         before checking which bits of the parent, not the child, value are
3467         valid.
3468
3469 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
3470
3471         PR gdb/15715
3472         * top.c: Include "filenames.h".
3473         (set_history_filename): New function.
3474         (init_main): Install it as set hook of the "set history filename"
3475         command.
3476
3477 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3478
3479         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3480         attribute parameter.
3481         (dwarf2_const_value_data): Constify struct attribute parameter.
3482         (dwarf2_const_value): Constify struct attribute parameter.
3483         (dwarf2_const_value_attr): Constify struct attribute parameter.
3484         (lookup_die_type): Constify struct attribute parameter.
3485         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3486         (follow_die_ref_or_sig): Constify struct attribute parameter.
3487         (follow_die_ref): Constify struct attribute parameter.
3488         (follow_die_sig): Constify struct attribute parameter.
3489         (get_DW_AT_signature_type): Constify struct attribute parameter.
3490         (get_type_unit_group): Constify struct attribute parameter.
3491         (fill_in_loclist_baton): Constify struct attribute parameter.
3492         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3493         (type_unit_group): Constify struct attribute parameter.
3494
3495 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3496
3497         * dwarf2read.c (attr_form_is_block): Make argument const.
3498         (attr_form_is_section_offset): Make argument const.
3499         (attr_form_is_constant): Make argument const.
3500         (attr_form_is_ref): Make argument const.
3501
3502 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3503
3504         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3505         All uses updated.
3506         (attr_form_is_ref): Moved below attr_form_is_constant.
3507
3508 2013-07-29  Doug Evans  <dje@google.com>
3509
3510         * main.c (captured_command_loop): Tweak comment.
3511
3512         * target.c (target_async_permitted_1): Fix comment.
3513
3514         * symtab.c (iterate_over_some_symtabs): Add comment.
3515
3516         * symtab.c (iterate_over_some_symtabs): Fix indentation.
3517
3518 2013-07-27  Yao Qi  <yao@codesourcery.com>
3519
3520         * NEWS: Mention that GDBserver now supports hardware
3521         watchpoints on the MIPS GNU/Linux target.
3522
3523 2013-07-27  Yao Qi  <yao@codesourcery.com>
3524
3525         * Makefile.in (HFILES_NO_SRCDIR): Add
3526         common/mips-linux-watch.h.
3527         (mips-linux-watch.o): New rule.
3528         * common/mips-linux-watch.c: New.
3529         * common/mips-linux-watch.h: New.
3530         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3531         * mips-linux-nat.c: Include mips-linux-watch.h.
3532         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3533         to common/mips-linux-watch.h.
3534         (MAX_DEBUG_REGISTER): Likewise.
3535         (enum pt_watch_style): Likewise.
3536         (struct mips32_watch_regs): Likewise.
3537         (struct mips64_watch_regs): Likewise.
3538         (struct pt_watch_regs): Likewise.
3539         (struct mips_watchpoint): Likewise.
3540         (mips_linux_watch_get_irw_mask): Move to
3541         common/mips-linux-watch.c.
3542         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3543         (mips_linux_watch_get_watchlo): Likewise.
3544         (mips_linux_watch_set_watchlo): Likewise.
3545         (mips_linux_watch_get_watchhi): Likewise.
3546         (mips_linux_watch_set_watchhi): Likewise.
3547         (mips_linux_read_watch_registers): Likewise.
3548         (mips_linux_watch_type_to_irw): Likewise.
3549         (mips_linux_stopped_data_address, fill_mask): Likewise.
3550         (mips_linux_watch_try_one_watch): Likewise.
3551         (mips_linux_watch_populate_regs): Likewise.
3552
3553 2013-07-27  Yao Qi  <yao@codesourcery.com>
3554
3555         * mips-linux-nat.c (get_irw_mask): Rename to ...
3556         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
3557         'set' to 'n'.  Update function comment.  All callers changed.
3558         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
3559         function comment.  All callers changed.
3560         (get_num_valid): Rename to ...
3561         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
3562         'set' to 'n'.  Update function comment.  All callers changed.
3563         (get_watchlo): Rename to ...
3564         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
3565         'set' to 'n'.  Update function comment.  All callers changed.
3566         (set_watchlo): Rename to ...
3567         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
3568         'set' to 'n'.  Update function comment.  All callers changed.
3569         (get_watchhi): Rename to ...
3570         (mips_linux_watch_get_watchhi): ... this.  Update function
3571         comment.  All callers changed.
3572         (set_watchhi): Rename to ...
3573         (mips_linux_watch_set_watchhi): ... this.  Update function
3574         comment.  All callers changed.
3575         (mips_linux_read_watch_registers): Update function comment.
3576         Add new parameters 'lwpid', 'watch_readback', and
3577         'watch_readback_valid'.  Update.
3578         (type_to_irw): Rename to ...
3579         (mips_linux_watch_type_to_irw): ... this.  Update function
3580         comment.  All callers changed.
3581         (fill_mask): Update function comment.
3582         (try_one_watch): Rename to ...
3583         (mips_linux_watch_try_one_watch): ... this.  Change the type
3584         of parameter 'irw' from 'unsigned' to 'uint32_t'.
3585         (populate_regs_from_watches): Rename to ...
3586         (mips_linux_watch_populate_regs): ... this.  Add parameter
3587         'current_watches'.  All callers changed.
3588
3589 2013-07-27  Yao Qi  <yao@codesourcery.com>
3590
3591         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3592         the code.
3593         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3594         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3595         (struct pt_watch_regs): Likewise.
3596         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3597         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3598         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3599         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3600         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3601
3602 2013-07-27  Yao Qi  <yao@codesourcery.com>
3603
3604         * breakpoint.h: Include break-common.h.
3605         (enum target_hw_bp_type): Move to ...
3606         * common/break-common.h: ... here.  New.
3607
3608 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
3609
3610         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3611         process group regardless of having tty on stdin.
3612
3613 2013-07-25  Doug Evans  <dje@google.com>
3614
3615         * linux-fork.h (detach_fork): Delete.
3616
3617 2013-07-25  Tom Tromey  <tromey@redhat.com>
3618
3619         PR remote/15256, PR remote/15266:
3620         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3621         * monitor.c (monitor_detach): Use unpush_target.
3622         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3623         * remote-mips.c (mips_detach): Use unpush_target.  Don't
3624         call mips_close.
3625         * remote-sim.c (gdbsim_detach): Use unpush_target.
3626         * target.c (pop_target): Remove.
3627         (pop_all_targets_above): Don't call target_close.
3628         (target_close): Assert that the target is unpushed.
3629         * target.h (pop_target): Don't declare.
3630         * tracepoint.c (tfile_open): Use unpush_target.
3631
3632 2013-07-25  Tom Tromey  <tromey@redhat.com>
3633
3634         * linux-thread-db.c (init_thread_db_ops): Call
3635         complete_target_initialization.
3636         (_initialize_thread_db): Don't call add_target.
3637         * target.c (complete_target_initialization): New function.
3638         (add_target_with_completer): Call it.
3639         * target.h (complete_target_initialization): Declare.
3640
3641 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3642
3643         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3644         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3645         (HPPANBSD_SIZEOF_GREGS): New define.
3646         (hppaobsd_supply_gregset): Handle additional registers.
3647         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3648         we provide more registers now.
3649         (hppabsd_supply_gregset): Supply additional registers.
3650         (hppabsd_collect_gregset): Collect additional registers.
3651
3652 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3653
3654         * hppabsd-tdep.c: Include "dwarf2-frame.h".
3655         (hppabsd_dwarf2_frame_init_reg): New function.
3656         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3657
3658 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3659
3660         * mi/mi-main.c (output_register): Make MI 'r' format use standard
3661         'z' format code.  Remove error for optimized out values, standard
3662         code will handle these fine.
3663
3664 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3665
3666         * NEWS: Mention new 'z' formatter.
3667         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3668         (_initialize_printcmd): Mention 'z' formatter in help text of the
3669         'x' command.
3670
3671 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
3672
3673         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3674         formatting.
3675
3676 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
3677
3678         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3679         interface can evaluate arguments.  Fallback to the old mode if it
3680         cannot.
3681         (create_exception_master_breakpoint): Likewise.
3682         * elfread.c (elf_can_evaluate_probe_arguments): New function.
3683         (struct sym_probe_fns elf_probe_fns): Export function above to the
3684         probe interface.
3685         * probe.c (can_evaluate_probe_arguments): New function.
3686         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3687         function pointer.
3688         (can_evaluate_probe_arguments): New function prototype.
3689         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3690         probe interface can evaluate arguments.  Fallback to the old mode
3691         if it cannot.
3692         * stap-probe.c (stap_get_probe_argument_count): Check if probe
3693         interface can evaluate arguments.  Warning the user if it cannot.
3694         (stap_can_evaluate_probe_arguments): New function.
3695         (struct probe_ops stap_probe_ops): Export function above to the
3696         probe interface.
3697         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3698         New function pointer.
3699
3700 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
3701
3702         * Makefile.in (SFILES): Add common/target-common.c.
3703         Add common/target-common.h to headers.
3704         (COMMON_OBS): Add target-common.o.
3705         (target-common.o): New target.
3706         * linux-nat.h (resume_kind): Move to common/target-common.h.
3707         * target.c (target_waitstatus_to_string): Move to
3708         common/target-common.c.
3709         * target.h: Include target-common.h.
3710         (target_waitkind): Move to common/target-common.h.
3711         (target_waitstatus): Likewise.
3712         (TARGET_WNOHANG): Likewise.
3713         * common/target-common.c: New file.
3714         * common/target-common.h: New file.
3715
3716 2013-07-24  Doug Evans  <dje@google.com>
3717
3718         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3719         a warning.
3720
3721 2013-07-23  Yao Qi  <yao@codesourcery.com>
3722
3723         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3724         parameter 'gdbarch'.
3725         (i386_stack_tramp_frame_sniffer): Caller update.
3726         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3727         parameter 'gdbarch' and 'target'.
3728         (i386_linux_core_read_description): Caller update.
3729         * amd64-linux-tdep.c (amd64_linux_core_read_description):
3730         Likewise.
3731         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3732         declaration.
3733
3734 2013-07-23  Tom Tromey  <tromey@redhat.com>
3735
3736         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3737         2013-07-22.
3738
3739 2013-07-22  Doug Evans  <dje@google.com>
3740
3741         * exec.h (remove_target_sections): Delete arg abfd.
3742         * exec.c (exec_close): Update call to remove_target_sections.
3743         (remove_target_sections): Delete arg abfd.
3744         * solib.c (update_solib_list): Ditto.
3745         (reload_shared_libraries_1): Ditto.
3746         (clear_solib): Ditto, and unconditionally call remove_target_sections.
3747         * target.h (struct target_section): Rename key to owner.
3748         All uses updated.
3749
3750 2013-07-22  Tom Tromey  <tromey@redhat.com>
3751
3752         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3753
3754 2013-07-22  Tom Tromey  <tromey@redhat.com>
3755
3756         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3757         Simplify cleanup handling.
3758
3759 2013-07-22  Tom Tromey  <tromey@redhat.com>
3760
3761         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3762         on all return paths.
3763
3764 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3765
3766         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3767         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3768         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3769
3770 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
3771
3772         * top.c (print_gdb_version): Add help, apropos description and
3773         url to online documentation.
3774
3775 2013-07-19  Hui Zhu  <hui@codesourcery.com>
3776
3777         PR gdb/15692
3778         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3779
3780 2013-07-19  Yao Qi  <yao@codesourcery.com>
3781
3782         * target.c (update_current_target): Change the default action
3783         of 'to_traceframe_info' from tcomplain to return_zero.
3784         * target.h (struct target_ops) <to_traceframe_info>: Add more
3785         comments.
3786         * valops.c (read_value_memory): Call
3787         traceframe_available_memory unconditionally.
3788
3789 2013-07-18  Yao Qi  <yao@codesourcery.com>
3790
3791         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3792         if the name is prefixed by "__imp_" or "_imp_", look for minimal
3793         symbol without prefix.  If found, set its type to
3794         'mst_solib_trampoline'.
3795
3796 2013-07-17  Doug Evans  <dje@google.com>
3797
3798         * NEWS: Mention "set print raw frame-arguments".
3799         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3800         * stack.c (print_raw_frame_arguments): New static global.
3801         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3802         (_initialize_stack): New command "set/show print raw frame-arguments".
3803         * valprint.c (setprintrawlist, showprintrawlist): New globals.
3804         (set_print_raw, show_print_raw): New functions.
3805         (_initialize_valprint): New prefix command "set/show print raw".
3806         * valprint.h (value_print_options): Improve comments.
3807
3808         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3809         of all *list variables.
3810
3811         * gdbcmd.h (togglelist): Delete.
3812         * cli/cli-cmds.c (togglelist): Delete.
3813         (init_cmd_lists): Update.
3814         * cli/cli-cmds.h (togglelist): Delete.
3815
3816 2013-07-17  Tom Tromey  <tromey@redhat.com>
3817
3818         * dwarf2read.c (dwarf2_per_objfile_free): Clear
3819         dwarf2_per_objfile.
3820
3821 2013-07-16  Doug Evans  <dje@google.com>
3822
3823         * nto-tdep.c (nto_relocate_section_addresses): Update,
3824         target_section.bfd deleted.
3825         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3826         * s390-tdep.c (s390_load): Ditto.
3827         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3828
3829 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
3830
3831         * common/format.c (parse_format_string): Add checks for NULL
3832         character before calling strchr.
3833
3834 2013-07-16  Doug Evans  <dje@google.com>
3835
3836         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3837         temp_pathname argument.
3838         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3839         when opening the file fails.
3840
3841         * target.h (struct target_section): Delete member bfd.
3842         All users updated to use the_bfd_section->owner instead.
3843         * exec.c (add_to_section_table): Assert bfd is expected value.
3844         Remove initialization of target_section.bfd.
3845         (remove_target_sections): Update.
3846         (section_table_available_memory): Update.
3847         (section_table_xfer_memory_partial): Update.
3848         (print_section_info): Update.
3849         (exec_set_section_address): Update.
3850         * record-full.c (record_full_core_xfer_partial): Update.
3851         * solib-svr4.c (svr4_relocate_section_addresses): Update.
3852         * solib-target.c (solib_target_relocate_section_addresses): Update.
3853         * symfile.c (build_section_addr_info_from_section_table): Update.
3854         * target.c (memory_xfer_live_readonly_partial): Update.
3855         (memory_xfer_partial_1): Update.
3856
3857 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3858
3859         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3860         now available for embedded (BookE) and server (BookS) processors,
3861         correct mentions of 'booke' and adjust comments accordingly in order to
3862         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3863         (have_ptrace_booke_interface): Rename function and variable
3864         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3865         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3866         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3867         'hwdebug_point_cmp'. Update all uses.
3868         (booke_find_thread_points_by_tid): Rename function
3869         'booke_find_thread_points_by_tid' to
3870         'hwdebug_find_thread_points_by_tid'. Update all uses.
3871         (booke_insert_point): Rename function 'booke_insert_point' to
3872         'hwdebug_insert_point'. Update all uses.
3873         (booke_remove_point): Rename function 'booke_remove_point' to
3874         'hwdebug_remove_point'. Update all uses.
3875
3876 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
3877
3878         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3879         numbers with enum values.
3880
3881 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
3882
3883         PR threads/13217
3884         * thread.c (thread_apply_all_command): Check for valid threads
3885         and thread count.
3886         (thread_array_cleanup): New struct.
3887         (set_thread_refcount): New function.
3888
3889 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
3890
3891         * infcmd.c (default_print_one_register_info): Reuse function
3892         print_hex_chars.
3893
3894 2013-07-10  Tom Tromey  <tromey@redhat.com>
3895
3896         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3897         (ada-exp.o): New target.
3898
3899 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3900
3901         * mt-tdep.c (mt_registers_info): Call
3902         get_no_prettyformat_print_options instead of
3903         get_raw_print_options (regression by last patch from Doug
3904         Evans).
3905
3906 2013-07-09  Pedro Alves  <palves@redhat.com>
3907
3908         Checked in by Joel Brobecker  <brobecker@adacore.com>.
3909         * ada-lang.c (coerce_unspec_val_to_type): Use
3910         value_optimized_out_const.
3911         * value.c (value_optimized_out_const): New function.
3912         * value.h (value_optimized_out_const): New declaration.
3913
3914 2013-07-09  Doug Evans  <dje@google.com>
3915
3916         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3917         Enum values rename as well.  All uses updated.
3918         * valprint.h (value_print_options): Rename member pretty to
3919         pretty format.  Rename member prettyprint_arrays to
3920         prettyformat_arrays.  Rename member prettyprint_structs to
3921         prettyformat_structs.  All uses updated.
3922         (get_no_prettyformat_print_options): Renamed from
3923         get_raw_print_options.
3924         * valprint.c (get_no_prettyformat_print_options): Renamed from
3925         get_raw_print_options.  All callers updated.
3926         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3927         All callers updated.
3928         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3929         All callers updated.
3930         (_initialize_valprint): Improve help text for "set print pretty" and
3931         "set print arrays".
3932
3933 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
3934
3935         * value.c (value_bits_valid): Revert previous change, and change
3936         by Pedro on 2013-07-04, due to regressions in
3937         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3938
3939 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
3940             Pedro Alves  <palves@redhat.com>
3941
3942         * value.c (value_bits_valid): If the value is not lval_computed
3943         or has no check validity handler then the answer is the
3944         optimized_out flag, otherwise defer to the handler.
3945
3946 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
3947
3948         * top.c (print_gdb_configuration): Explain in output of
3949         --configuration what does "relocatable" mean.
3950
3951         * main.c (print_gdb_help): Regroup options in the --help text.
3952         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3953         the relevant discussions.
3954
3955 2013-07-06  Yao Qi  <yao@codesourcery.com>
3956
3957         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3958         Remove parameter 'lsal'.
3959         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3960         to inner block.  Caller update.
3961         (base_breakpoint_create_breakpoints_sal): Update.
3962         (bkpt_create_breakpoints_sal): Likewise.
3963         (tracepoint_create_breakpoints_sal): Likewise.
3964         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3965         element 0 of vector 'canonical->sals'.
3966
3967 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
3968
3969         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3970         register number instead of the pseudo register one.
3971         (rs6000_dwarf2_reg_to_regnum): Likewise.
3972
3973 2013-07-04  Pedro Alves  <palves@redhat.com>
3974
3975         * findvar.c (value_of_register): Use allocate_optimized_out_value
3976         if the register has been optimized out, instead of
3977         set_value_optimized_out.
3978         * frame-unwind.c (frame_unwind_got_optimized): Use
3979         allocate_optimized_out_value.
3980
3981 2013-07-04  Pedro Alves  <palves@redhat.com>
3982
3983         * value.c (value_bits_valid): If the value is not lval_computed,
3984         or doesn't have a check_validity hook, assume the value is entirely
3985         valid.
3986
3987 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3988
3989         * stack.c (read_frame_arg): No longer fetch lazy values.
3990         * value.c (value_optimized_out): If the value is not already
3991         marked optimized out, and is lazy then fetch it.
3992         (value_primitive_field): Move optimized out check to later in the
3993         function, after we have loaded any lazy values.
3994         (value_fetch_lazy): Use optimized out flag directly rather than
3995         calling optimized_out method.
3996
3997 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3998
3999         * valops.c: Don't include "user-regs.h".
4000         (value_fetch_lazy): Moved to value.c.
4001         * value.c: Include "user-regs.h".
4002         (value_fetch_lazy): Moved from valops.c.
4003
4004 2013-07-04  Yao Qi  <yao@codesourcery.com>
4005
4006         Revert:
4007         2013-06-27  Yao Qi  <yao@codesourcery.com>
4008
4009         * common/create-version.sh: Update comments.  Handle the case
4010         that TARGET_ALIAS is empty.
4011
4012 2013-07-03  Pedro Alves  <palves@redhat.com>
4013
4014         * Makefile.in (config.status): Depend on development.sh.
4015         (aclocal_m4_deps): Add libmcheck.m4.
4016         * acinclude.m4: Include libmcheck.m4.
4017         * configure.ac: Source development.sh instead of setting
4018         'development' here.  --enable-libmcheck/--disable-libmcheck code
4019         factored out to GDB_AC_LIBMCHECK.  Run it.
4020         * development.sh: New file.
4021         * libmcheck.m4: New file.
4022         * configure: Regenerate.
4023
4024 2013-07-02  Tom Tromey  <tromey@redhat.com>
4025
4026         * contrib/ari/update-web-ari.sh: Update for version.in change.
4027
4028 2013-07-02  Tom Tromey  <tromey@redhat.com>
4029
4030         * common/ptid.h: Comment fixes.
4031
4032 2013-07-01  Tom Tromey  <tromey@redhat.com>
4033
4034         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4035         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
4036         (dwarf2_read_index, create_all_comp_units): Update.
4037
4038 2013-07-01  Tom Tromey  <tromey@redhat.com>
4039
4040         * configure.ac (build_warnings): Add -Wold-style-definition.
4041         * configure: Rebuild.
4042         * machoread.c (_initialize_machoread): Use "(void)".
4043         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4044         use "(void)".
4045
4046 2013-07-01  Tom Tromey  <tromey@redhat.com>
4047
4048         * configure.ac (build_warnings): Add -Wold-style-declaration.
4049         * configure: Rebuild.
4050         * dsrec.c (make_srec): Use "static const", not "const static".
4051         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4052         not "const static".
4053         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4054         Use "static const", not "const static".
4055         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4056         not "const static".
4057         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4058         not "const static".
4059         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4060         not "const static".
4061         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4062         not "const static".
4063         (v850_dbtrap_breakpoint_from_pc): Likewise.
4064         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4065         not "const static".
4066
4067 2013-07-01  Tom Tromey  <tromey@redhat.com>
4068
4069         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4070         * configure: Rebuild.
4071
4072 2013-07-01  Pedro Alves  <palves@redhat.com>
4073
4074         * defs.h: Include "pathmax.h".
4075         * utils.c: Don't include sys/param.h.
4076         (gdb_realpath): Remove code that checks for MAXPATHLEN.
4077         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4078         instead of MAXPATHLEN.
4079         * solib-sunos.c: Don't include sys/param.h.
4080         * xcoffread.c: Don't include sys/param.h.
4081         * bsd-kvm.c: Don't include sys/param.h.
4082         * darwin-nat.c: Don't include sys/param.h.
4083         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4084         * darwin-nat-info.c: Don't include sys/param.h.
4085         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4086         MAXPATHLEN.
4087         * i386obsd-nat.c: Don't include sys/param.h.
4088         * inf-child.c: Don't include sys/param.h.
4089         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4090         * linux-fork.c: Don't include sys/param.h.
4091         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4092         * linux-nat.c: Don't include sys/param.h.
4093         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4094         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4095         * m68klinux-nat.c: Don't include sys/param.h.
4096         * nbsd-nat.c: Don't include sys/param.h.
4097         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4098         * ppc-linux-nat.c: Don't include sys/param.h.
4099         * rs6000-nat.c: Don't include sys/param.h.
4100         * spu-linux-nat.c. Don't include sys/param.h.
4101         * windows-nat.c: Don't include sys/param.h.
4102         * xtensa-linux-nat.c: Don't include sys/param.h.
4103         * config/i386/nm-fbsd.h: Don't include sys/param.h.
4104
4105 2013-07-01  Pedro Alves  <palves@redhat.com>
4106
4107         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4108         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4109         * gnulib/aclocal.m4: Regenerate.
4110         * gnulib/config.in: Regenerate.
4111         * gnulib/configure: Regenerate.
4112         * gnulib/import/pathmax.h: New file.
4113         * gnulib/import/Makefile.am: Regenerate.
4114         * gnulib/import/Makefile.in: Regenerate.
4115         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4116         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4117         * gnulib/import/m4/pathmax.m4: New file.
4118
4119 2013-07-01  Pedro Alves  <palves@redhat.com>
4120
4121         * configure.ac (GDBINIT): Define, depending on host.
4122         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4123         * top.c (PATH_MAX): Delete fallback definition.
4124         (GDBINIT_FILENAME): Delete.
4125         (gdbinit): Reimplement as const char array set to the GDBINIT
4126         string constant.
4127         * top.h (gdbinit): Make const.
4128         * configure, config.in: Regenerate.
4129
4130 2013-07-01  Pedro Alves  <palves@redhat.com>
4131
4132         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4133         * cli/cli-cmds.h (source_script): Likewise.
4134         * exceptions.c (catch_command_errors_const): New function.
4135         * exceptions.h (catch_command_errors_const): Declare.
4136         * main.c (get_init_files): Make parameters const, and adjust.
4137         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4138         'local_gdbinit' locals const.  Adjust to use
4139         catch_command_errors_const.
4140         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4141         'local_gdbinit' locals const.
4142
4143 2013-07-01  Pedro Alves  <palves@redhat.com>
4144
4145         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4146         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4147         * tracepoint.c: Don't check HAVE_UNISTD_H before including
4148         <unistd.h>.
4149
4150 2013-07-01  Pedro Alves  <palves@redhat.com>
4151
4152         Import the "unistd" gnulib module.
4153         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4154         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4155         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4156         import/m4/unistd_h.m4.
4157         * gnulib/aclocal.m4: Renenerate.
4158         * gnulib/config.in: Renenerate.
4159         * gnulib/configure: Renenerate.
4160         * gnulib/import/Makefile.am: Renenerate.
4161         * gnulib/import/Makefile.in: Renenerate.
4162         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4163         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4164         * gnulib/import/m4/off_t.m4: New file.
4165         * gnulib/import/m4/ssize_t.m4: New file.
4166         * gnulib/import/m4/sys_types_h.m4: New file.
4167         * gnulib/import/m4/unistd_h.m4: New file.
4168         * gnulib/import/sys_types.in.h: New file.
4169         * gnulib/import/unistd.c: New file.
4170         * gnulib/import/unistd.in.h: New file.
4171
4172 2013-07-01  Pedro Alves  <palves@redhat.com>
4173
4174         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4175         defined instead of checking HAVE_UNISTD_H.
4176
4177 2013-07-01  Pedro Alves  <palves@redhat.com>
4178
4179         Reimport gnulib from scratch.
4180         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4181         import/m4/onceonly.m4.
4182         * gnulib/aclocal.m4: Renegerate.
4183         * gnulib/config.in: Renegerate.
4184         * gnulib/configure: Renegerate.
4185         * gnulib/import/Makefile.in: Renegerate.
4186         * gnulib/import/extra/update-copyright: Renegerate.
4187         * gnulib/import/m4/onceonly.m4: Delete.
4188
4189 2013-07-01  Pedro Alves  <palves@redhat.com>
4190
4191         * tui/tui-regs.c (pagination_enabled): Delete declaration.
4192
4193 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4194
4195         Code cleanup.
4196         * remote.c (async_remote_interrupt_twice): Make it static.
4197         * remote.h (async_remote_interrupt_twice): Remove the declaration.
4198
4199 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
4200
4201         * ia64-linux-tdep.c: Include <ctype.h>.
4202         (ia64_linux_stap_is_single_operand): New function.
4203         (ia64_linux_init_abi): Initialize SystemTap related attributes.
4204
4205 2013-06-28  Tom Tromey  <tromey@redhat.com>
4206
4207         * Makefile.in (version.c): Use version.in, not
4208         common/version.in.
4209         * common/create-version.sh: Likewise.
4210         * common/version.in: Move...
4211         * version.in: ...here.
4212
4213 2013-06-28  Pedro Alves  <palves@redhat.com>
4214
4215         * infrun.c (set_observer_mode): Don't declare pagination_enabled
4216         here.
4217         * utils.h (pagination_enabled): Declare.
4218
4219 2013-06-28  Pedro Alves  <palves@redhat.com>
4220
4221         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4222         Move higher up in file.
4223
4224 2013-06-28  Tom Tromey  <tromey@redhat.com>
4225
4226         * tracepoint.c (deprecated_readline_begin_hook)
4227         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4228         declare.
4229
4230 2013-06-28  Pedro Alves  <palves@redhat.com>
4231
4232         PR tui/14880
4233         * tui/tui-regs.c (tui_get_register): Fetch value contents before
4234         checking if they're available.
4235         * value.c (value_available_contents_eq): Change comment.
4236         * value.h (value_available_contents_eq): Expand comment.
4237
4238 2013-06-27  Tom Tromey  <tromey@redhat.com>
4239
4240         * target.c (find_run_target): Remove.
4241         * target.h (find_run_target): Remove.
4242
4243 2013-06-27  Tom Tromey  <tromey@redhat.com>
4244
4245         * corelow.c (core_gdbarch): Now static.
4246
4247 2013-06-27  Tom Tromey  <tromey@redhat.com>
4248
4249         * target.c (target_struct_index): Remove.
4250
4251 2013-06-27  Pedro Alves  <palves@redhat.com>
4252
4253         * infrun.c: Remove comment describing the 'stepping over runtime
4254         loader dynamic symbol resolution code' mechanism; moved to
4255         gdbint.texinfo.
4256
4257 2013-06-27  Pedro Alves  <palves@redhat.com>
4258
4259         * exceptions.c (catch_command_errors): Remove spurious space.
4260         * exceptions.h (catch_command_errors): Second parameter is "arg",
4261         not "command".
4262
4263 2013-06-27  Yao Qi  <yao@codesourcery.com>
4264
4265         * common/create-version.sh: Update comments.  Handle the case
4266         that TARGET_ALIAS is empty.
4267
4268 2013-06-26  Pedro Alves  <palves@redhat.com>
4269
4270         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4271         comment.
4272
4273 2013-06-26  Pedro Alves  <palves@redhat.com>
4274
4275         * infrun.c: Update comments on stepping over runtime loader
4276         dynamic symbol resolution code.
4277
4278 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
4279
4280         * ax-gdb.h (union exp_element): Forward declare.
4281         * parser-defs.h: Include expression.h.
4282
4283 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4284
4285         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4286
4287 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
4288
4289         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4290
4291 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
4292
4293         Fix trace-status to output proper start-time and stop-time.
4294         * tracepoint.c (trace_status_command): Fix type of printf arg to
4295         prevent improper type conversion.
4296         (trace_status_mi): Likewise.
4297
4298 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4299
4300         * mips-tdep.c (mips_next_pc): Fix a typo.
4301
4302 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4303
4304         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4305
4306 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4307             Yao Qi  <yao@codesourcery.com>
4308
4309         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4310         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4311         * mi/mi-main.c (print_variable_or_computed): New function.
4312         (mi_cmd_trace_frame_collected): New function.
4313         * tracepoint.c (find_trace_state_variable_by_number): New.
4314         (struct traceframe_info): Move to tracepoint.h
4315         (struct collection_list): Likewise.
4316         (do_collect_symbol): Include locals and arguments in the
4317         collected variables list.
4318         (clear_collection_list): Clear wholly collected variables list
4319         and computed variables list.
4320         (append_exp): New function.
4321         (encode_actions_1): Include variables in the wholly
4322         collected variables list.  Include memory ranges and
4323         full-fledged expressions in the computed expressions list.
4324         (encode_actions): Move some code to ...
4325         Return the cleanup chain.
4326         (encode_actions_rsp): ... here.  New function.
4327         (get_traceframe_location, get_traceframe_info): Remove static.
4328         * tracepoint.h (struct memrange): Moved from tracepoint.c.
4329         (struct collection_list): Moved from tracepoint.c.  Add two
4330         new fields 'wholly_collected' and 'computed'.
4331         (find_trace_state_variable_by_number): Declare.
4332         (encode_actions): Adjust declaration.
4333         (encode_actions_rsp): Declare.
4334         (get_traceframe_info, get_traceframe_location): Declare.
4335
4336         * NEWS: Mention new MI command -trace-frame-collected.
4337
4338 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4339             Yao Qi  <yao@codesourcery.com>
4340
4341         * ctf.c (ctf_traceframe_info): Push trace state variables
4342         present in the trace data into the traceframe info object.
4343         * breakpoint.c (DEF_VEC_I): Remove.
4344         * common/filestuff.c (DEF_VEC_I): Likewise.
4345         * dwarf2loc.c (DEF_VEC_I): Likewise.
4346         * mi/mi-main.c (DEF_VEC_I): Likewise.
4347         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4348         * features/traceframe-info.dtd: Add tvar element and its
4349         attributes.
4350         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4351         (build_traceframe_info): Push trace state variables present in
4352         the trace data into the traceframe info object.
4353         (traceframe_info_start_tvar): New function.
4354         (tvar_attributes): New.
4355         (traceframe_info_children): Add "tvar" element.
4356         * tracepoint.h (struct traceframe_info) <tvars>: New field.
4357
4358         * NEWS: Mention the change in GDB and GDBserver.
4359
4360 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4361             Yao Qi  <yao@codesourcery.com>
4362
4363         * tracepoint.c (trace_dump_command): Move code to ...
4364         (get_traceframe_location): ... here.  New.
4365
4366 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4367             Yao Qi  <yao@codesourcery.com>
4368
4369         * tracepoint.c (trace_dump_command): GDB emits an error
4370          instead of a warning when a traceframe is not selected.
4371
4372 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4373             Yao Qi  <yao@codesourcery.com>
4374
4375         * tracepoint.c (tracepoint_list, stepping_list): Remove.
4376         (clear_collection_list): Free fields 'aexpre_list' and 'list'
4377         in collection_list.
4378         (do_clear_collection_list, init_collection_list): New.
4379         (encode_actions): Add local variables 'tracepoint_list' and
4380         'stepping_list'.  Call init_collection_list and make cleanup
4381         which calls do_clear_collection_list.  Don't call
4382         clear_collection_list.
4383         (_initialize_tracepoint): Delete references to
4384         'tracepoint_list' and 'stepping_list'.
4385
4386 2013-06-25  Tom Tromey  <tromey@redhat.com>
4387
4388         * common/create-version.sh (date): Use "$", not "$$" in sed
4389         expression.
4390
4391 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
4392
4393         * NEWS (New targets): Add entry for TI MSP430.
4394
4395 2013-06-25  Yao Qi  <yao@codesourcery.com>
4396
4397         * remote.c (remote_start_remote): Move code to upload tsv
4398         earlier.
4399
4400 2013-06-25  Yao Qi  <yao@codesourcery.com>
4401             Hui Zhu  <hui@codesourcery.com>
4402             Pedro Alves  <palves@redhat.com>
4403
4404         PR breakpoints/15075
4405         PR breakpoints/15434
4406         * breakpoint.c (bpstat_stop_status): Call
4407         b->ops->after_condition_true.
4408         (update_dprintf_command_list): Don't append "continue" command
4409         to the command list of dprintf breakpoint.
4410         (base_breakpoint_after_condition_true): New function.
4411         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4412         (dprintf_after_condition_true): New function.
4413         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4414         * breakpoint.h (breakpoint_ops): Add after_condition_true.
4415
4416 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
4417
4418         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4419         (ALLDEPFILES): Add msp430-tdep.c.
4420         * configure.tgt (msp430*-*-elf): New target.
4421         * msp430-tdep.c: New file.
4422
4423 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4424
4425         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4426         microMIPS synthetic symbols.
4427
4428 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4429
4430         * objfiles.h (pc_in_section): New prototype.
4431         (in_plt_section): Remove name argument, replace prototype with
4432         static inline function.
4433         * mips-tdep.h: Include "objfiles.h".
4434         (in_mips_stubs_section): New function.
4435         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4436         in_solib_call_trampoline member.
4437         (hppa_in_solib_call_trampoline): Remove name argument.
4438         * objfiles.c (pc_in_section): New function.
4439         (in_plt_section): Remove function.
4440         * mips-linux-tdep.c: Include "objfiles.h".
4441         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
4442         name argument.  Return 1 rather than the low 16-bit halfword of
4443         any instruction examined.
4444         (mips_linux_in_dynsym_resolve_code): Update
4445         mips_linux_in_dynsym_stub call accordingly.
4446         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4447         rather than an equivalent hand-coded sequence.
4448         * hppa-hpux-tdep.c (in_opd_section): Remove function.
4449         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4450         (hppa64_hpux_in_solib_call_trampoline): Likewise.
4451         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4452         in_opd_section.
4453         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4454         on call to tdep->in_solib_call_trampoline.
4455         (hppa_in_solib_call_trampoline): Remove name argument, update
4456         according to in_plt_section change.
4457         (hppa_skip_trampoline_code): Update according to in_plt_section
4458         change.
4459         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4460         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4461         Likewise.
4462         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4463         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4464         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4465         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4466         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4467         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4468         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4469         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4470         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4471         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4472         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4473         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4474         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4475
4476 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
4477
4478         * common/create-version.sh: Fix expansion of $host_alias
4479         and $target_alias in generation of HOST_NAME and TARGET_NAME
4480         (resp.).
4481
4482 2013-06-24  Tom Tromey  <tromey@redhat.com>
4483
4484         * common/create-version.sh: New file.
4485         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4486         create-version.sh.
4487         (HFILES_NO_SRCDIR): Use common/version.h.
4488         * version.in: Move to ...
4489         * common/version.in: ... here.  Replace date with "DATE".
4490         * version.h: Move to ...
4491         * common/version.h: ... here.
4492
4493 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4494
4495         * gdb/gnulib/Makefile.in: Update date in copyright header.
4496         * gdb/gnulib/configure.ac: Ditto.
4497         * gdb/gnulib/update-gnulib.sh: Ditto.
4498
4499 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4500
4501         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4502         "gdb/gnulib/import".
4503
4504 2013-06-21  Will Newton  <will.newton@linaro.org>
4505
4506         * doublest.c (ldfrexp): Remove function.
4507         (convert_doublest_to_floatformat): Call frexpl instead of
4508         ldfrexp.
4509
4510 2013-06-21  Will Newton  <will.newton@linaro.org>
4511
4512         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4513         * gnulib/aclocal.m4: Regenerate.
4514         * gnulib/config.in: Regenerate.
4515         * gnulib/configure: Regenerate.
4516         * gnulib/import/Makefile.am: Update.
4517         * gnulib/import/Makefile.in: Update.
4518         * gnulib/import/m4/gnulib-cache.m4: Update.
4519         * gnulib/import/m4/gnulib-comp.m4: Update.
4520         * gnulib/import/float+.h: Import.
4521         * gnulib/import/float.c: Import.
4522         * gnulib/import/float.in.h: Import.
4523         * gnulib/import/fpucw.h: Import.
4524         * gnulib/import/frexp.c: Import.
4525         * gnulib/import/frexpl.c: Import.
4526         * gnulib/import/isnan.c: Import.
4527         * gnulib/import/isnand-nolibm.h: Import.
4528         * gnulib/import/isnand.c: Import.
4529         * gnulib/import/isnanl-nolibm.h: Import.
4530         * gnulib/import/isnanl.c: Import.
4531         * gnulib/import/itold.c: Import.
4532         * gnulib/import/m4/exponentd.m4: Import.
4533         * gnulib/import/m4/exponentl.m4: Import.
4534         * gnulib/import/m4/float_h.m4: Import.
4535         * gnulib/import/m4/fpieee.m4: Import.
4536         * gnulib/import/m4/frexp.m4: Import.
4537         * gnulib/import/m4/frexpl.m4: Import.
4538         * gnulib/import/m4/isnand.m4: Import.
4539         * gnulib/import/m4/isnanl.m4: Import.
4540         * gnulib/import/m4/math_h.m4: Import.
4541         * gnulib/import/math.c: Import.
4542         * gnulib/import/math.in.h: Import.
4543
4544 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4545
4546         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4547         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4548         signature_INTEL_edx comparisons.
4549
4550 2013-06-20  Doug Evans  <dje@google.com>
4551
4552         symtab/15652
4553         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4554         All callers updated.
4555         (open_dwp_file): If we can't find the dwp file, search the basename
4556         in debug-file-directory.
4557
4558         * dwarf2read.c (struct dwp_file): Fix comment.
4559         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4560
4561         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4562         better.
4563
4564 2013-06-20  Yao Qi  <yao@codesourcery.com>
4565
4566         * breakpoint.c (create_breakpoint): Fix code indentation.
4567
4568 2013-06-20  Yao Qi  <yao@codesourcery.com>
4569
4570         * breakpoint.c (create_breakpoints_sal_default): Remove
4571         parameter 'lsal'.  Update declaration.
4572         (bkpt_create_breakpoints_sal): Caller update.
4573         (tracepoint_create_breakpoints_sal): Likewise.
4574
4575 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
4576             Yao Qi  <yao@codesourcery.com>
4577
4578         * NEWS: Mention the new option '--skip-unavailable' of command
4579         -data-list-register-values.
4580         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4581         --skip-unavailable option.  Adjust to use output_register.
4582         (output_register): Add new 'skip_unavailable' parameter.
4583         Handle it.
4584
4585 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
4586
4587         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4588         common/i386-gcc-cpuid.h.
4589         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4590         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4591         Copy the latest version from upstream gcc.
4592         * common/linux-btrace.c: Include i386-cpuid.h.
4593         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4594         call to i386_cpuid.
4595         (cpu_supports_btrace): Likewise.
4596         * go32-nat.c: Include i386-cpuid.h.
4597         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4598
4599 2013-06-19  Doug Evans  <dje@google.com>
4600
4601         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4602         (get_section_index): Ditto.
4603
4604 2013-06-19  Tom Tromey  <tromey@redhat.com>
4605
4606         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4607         "dprintf" help.
4608
4609 2013-06-18  Doug Evans  <dje@google.com>
4610
4611         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4612         before using it.
4613         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4614         Move test of cu_index closer to use.  Print complaint if cu_index
4615         is bad.
4616
4617 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4618
4619         * machoread.c (oso_vector): Delete this global.
4620         (macho_register_oso): Add new parameter "oso_vector_ptr".
4621         Use it instead of the "oso_vector" global.
4622         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4623         (macho_symfile_read): Use a local oso_vector, to be free'ed
4624         at the end of this function, in place of the old "oso_vector"
4625         global.  Update various function calls accordingly.  Use one
4626         single cleanup chain for the entire function.
4627
4628 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4629
4630         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4631         DWARF2_PER_OBJFILE by uses of DATA instead.
4632
4633 2013-06-18  Tom Tromey  <tromey@redhat.com>
4634
4635         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4636         argument.
4637         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4638         Special case signals other than GDB_SIGNAL_TRAP.
4639         (explains_signal_watchpoint): New function.
4640         (base_breakpoint_explains_signal): Add 'sig' argument.
4641         (initialize_breakpoint_ops): Set 'explains_signal' method for
4642         watchpoints.
4643         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4644         signal argument.
4645         (bpstat_explains_signal): Likewise.
4646         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4647
4648 2013-06-18  Tom Tromey  <tromey@redhat.com>
4649
4650         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4651
4652 2013-06-18  Tom Tromey  <tromey@redhat.com>
4653
4654         * python/python.c (finish_python_initialization): Decref
4655         'pythondir' on failure path as well.
4656
4657 2013-06-18  Tom Tromey  <tromey@redhat.com>
4658
4659         PR symtab/15391:
4660         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4661         after taking bits_to_skip into account.  Sign extend byte_offset.
4662         * utils.h (gdb_sign_extend): Declare.
4663         * utils.c (gdb_sign_extend): New function.
4664
4665 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4666
4667         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4668
4669 2013-06-17  Pierre Muller  <muller@sourceware.org>
4670
4671         * corelow.c (core_open): Print GDB signal name instead of target
4672         signal number.
4673
4674 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
4675
4676         * .gitignore: Add /gcore.
4677
4678 2013-06-13  Doug Evans  <dje@google.com>
4679
4680         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4681         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4682
4683 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
4684
4685         * stack.c (backtrace_command_1): Fix indentation.
4686
4687 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4688
4689         * window-nat.c (thread_rec): Add missing empty line after
4690         local variable declaration.
4691
4692 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4693
4694         * windows-nat.c (thread_rec): Revert format used to print
4695         error code returned by SuspendThread from %d back to %u.
4696
4697 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4698
4699         * windows-nat.c (windows_continue): Add "0x" prefix for thread
4700         ID in debug trace.
4701         (get_windows_debug_event): Likewise, for all debug traces.
4702
4703 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4704
4705         * window-nat.c (thread_rec): Add thread ID in SuspendThread
4706         warning message.
4707
4708 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
4709             Yao Qi  <yao@codesourcery.com>
4710
4711         * mi/mi-main.c (get_register): Remove declaration.
4712         (output_register): Declare.
4713         (mi_cmd_data_list_register_values): Remove local variable
4714         'tuple_cleanup'.  Move some code into output_register.
4715         (get_register): Renamed to ...
4716         (output_register): ... this.  Output the register's
4717         "number" ui_out tuple here.
4718
4719 2013-06-07  Pedro Alves  <palves@redhat.com>
4720
4721         * darwin-nat.c: Fix formating in copyright header.
4722         * darwin-nat.h: Likewise.
4723         * gnu-nat.c: Likewise.
4724         * machoread.c: Likewise.
4725
4726 2013-06-07  Pedro Alves  <palves@redhat.com>
4727
4728         PR server/14823
4729         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
4730         static.  Output a global target description pointer.
4731         (init_registers_${name}): Adjust to initialize a
4732         target description structure.
4733
4734 2013-06-07  Will Newton  <will.newton@linaro.org>
4735
4736         * printcmd.c (build_address_symbolic): Call
4737         gdbarch_addr_bits_remove for text minimal symbols.
4738
4739 2013-06-07  Will Newton  <will.newton@linaro.org>
4740
4741         * MAINTAINERS: Add myself to Write After Approval.
4742
4743 2013-06-07  Yao Qi  <yao@codesourcery.com>
4744
4745         * tracepoint.c (start_tracing): Move code to ...
4746         (trace_reset_local_state): ... here.  New.
4747         (disconnect_tracing): Don't call set_current_traceframe,
4748         set_tracepoint_num, and set_traceframe_context. Call
4749         trace_reset_local_state instead.
4750         (tfile_close): Call trace_reset_local_state.
4751         * ctf.c (ctf_close): Likewise.
4752         * remote.c (remote_close): Likewise.
4753         * tracepoint.h (trace_reset_local_state): Declare.
4754
4755 2013-06-06  Doug Evans  <dje@google.com>
4756
4757         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4758         and fix header docs.
4759
4760 2013-06-05  Doug Evans  <dje@google.com>
4761             Keith Seitz  <keiths@redhat.com>
4762
4763         PR 15519
4764         * cp-namespace.c (find_symbol_in_baseclass): Call
4765         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4766         Check result of call to lookup_symbol_static.
4767         Call lookup_static_symbol_aux unconditionally.
4768         Call check_typedef on base types before accessing them.
4769         (cp_lookup_nested_symbol): Fix comment.
4770
4771 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
4772
4773         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4774         minimal symbols pointing to function descriptors.
4775
4776 2013-06-05  Tom Tromey  <tromey@redhat.com>
4777
4778         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4779
4780 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4781             Pedro Alves  <palves@redhat.com>
4782
4783         * remote.c (remote_wait_as): Restore signal handler before returning
4784         when GDB gets a notification.
4785
4786 2013-06-04  Gary Benson  <gbenson@redhat.com>
4787
4788         PR 2328
4789         * breakpoint.h (handle_solib_event): Moved function declaration
4790         to solib.h.
4791         * breakpoint.c (handle_solib_event): Moved function to solib.c.
4792         (bpstat_stop_status): Pass new argument to handle_solib_event.
4793         * solib.h (update_solib_breakpoints): New function declaration.
4794         (handle_solib_event): Moved function declaration from
4795         breakpoint.h.
4796         * solib.c (update_solib_breakpoints): New function.
4797         (handle_solib_event): Moved function from breakpoint.c.
4798         Updated to call solib_ops->handle_event if not NULL.
4799         * solist.h (target_so_ops): New fields "update_breakpoints" and
4800         "handle_event".
4801         * infrun.c (set_stop_on_solib_events): New function.
4802         (_initialize_infrun): Use the above for "set
4803         stop-on-solib-events".
4804         (handle_inferior_event): Pass new argument to handle_solib_event.
4805         * solib-svr4.c (probe.h): New include.
4806         (svr4_free_library_list): New forward declaration.
4807         (probe_action): New enum.
4808         (probe_info): New struct.
4809         (probe_info): New static variable.
4810         (NUM_PROBES): New definition.
4811         (svr4_info): New fields "using_xfer", "probes_table" and
4812         "solib_list".
4813         (free_probes_table): New function.
4814         (free_solib_list): New function.
4815         (svr4_pspace_data_cleanup): Free probes table and solib list.
4816         (svr4_copy_library_list): New function.
4817         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4818         (svr4_read_so_list): New parameter "prev_lm".
4819         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4820         (svr4_current_sos): New function.
4821         (probe_and_action): New struct.
4822         (hash_probe_and_action): New function.
4823         (equal_probe_and_action): Likewise.
4824         (register_solib_event_probe): Likewise.
4825         (solib_event_probe_at): Likewise.
4826         (solib_event_probe_action): Likewise.
4827         (solist_update_full): Likewise.
4828         (solist_update_incremental): Likewise.
4829         (disable_probes_interface_cleanup): Likewise.
4830         (svr4_handle_solib_event): Likewise.
4831         (svr4_update_solib_event_breakpoint): Likewise.
4832         (svr4_update_solib_event_breakpoints): Likewise.
4833         (svr4_create_solib_event_breakpoints): Likewise.
4834         (enable_break): Free probes table before creating breakpoints.
4835         Use svr4_create_solib_event_breakpoints to create breakpoints.
4836         (svr4_solib_create_inferior_hook): Free the solib list.
4837         (_initialize_svr4_solib): Initialise
4838         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4839
4840 2013-06-04  Gary Benson  <gbenson@redhat.com>
4841
4842         * target.h (target_ops): New field
4843         "to_augmented_libraries_svr4_read".
4844         (target_augmented_libraries_svr4_read): New macro.
4845         * target.c (update_current_target): Handle
4846         to_augmented_libraries_svr4_read.
4847         * remote.c (remote_state): New field
4848         "augmented_libraries_svr4_read".
4849         (remote_augmented_libraries_svr4_read_feature): New function.
4850         (remote_protocol_features): Add entry for
4851         "augmented-libraries-svr4-read".
4852         (remote_augmented_libraries_svr4_read): New function.
4853         (init_remote_ops): Initialize
4854         remote_ops.to_augmented_libraries_svr4_read.
4855
4856 2013-06-04  Gary Benson  <gbenson@redhat.com>
4857
4858         * NEWS: Update.
4859
4860 2013-06-04  Gary Benson  <gbenson@redhat.com>
4861
4862         * objfiles.h (inhibit_section_map_updates): New function
4863         declaration.
4864         (resume_section_map_updates): Likewise.
4865         (resume_section_map_updates_cleanup): Likewise.
4866         * objfiles.c (objfile_pspace_info): Removed field
4867         "objfiles_changed_p".  New fields "new_objfiles_available",
4868         "section_map_dirty" and "inhibit_updates".
4869         (allocate_objfile): Set new_objfiles_available.
4870         (free_objfile): Set section_map_dirty.
4871         (objfile_relocate1): Likewise.
4872         (in_plt_section): Likewise.
4873         (find_pc_section): Update the conditions under which the
4874         section map will be updated.
4875         (inhibit_section_map_updates): New function.
4876         (resume_section_map_updates): Likewise.
4877         (resume_section_map_updates_cleanup): Likewise.
4878
4879 2013-06-04  Gary Benson  <gbenson@redhat.com>
4880
4881         * probe.h (get_probe_argument_count): New declaration.
4882         (evaluate_probe_argument): Likewise.
4883         * probe.c (get_probe_argument_count): New function.
4884         (evaluate_probe_argument): Likewise.
4885         (probe_safe_evaluate_at_pc): Use the above new functions.
4886
4887 2013-06-04  Alan Modra  <amodra@gmail.com>
4888
4889         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4890         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4891         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
4892         target mem reads on optional insns.
4893         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4894         ppc_insns_match_pattern calls.
4895         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4896         Add match for power7 thread safety insns, and new order of
4897         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
4898         invocation in comment, and update rest of comment.
4899         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4900         PPC64_STANDARD_LINKAGE3_LEN): Delete.
4901         (ppc64_standard_linkage2_target): Update insn offsets.
4902         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
4903         stubs first.  Update calls.
4904
4905 2013-06-04  Yao Qi  <yao@codesourcery.com>
4906
4907         * solib.c (solib_find): Don't need dir separator if path has
4908         drive spec.
4909
4910 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
4911
4912         Revert (indirectly causes a SIGSEGV):
4913         * machoread.c (macho_symfile_read): Assign first cleanup to
4914         'back_to'.
4915
4916 2013-06-03  Yao Qi  <yao@codesourcery.com>
4917
4918         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4919         mi-parse.c.  Make them static.
4920         (mi_all_values): Likewise.
4921         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
4922         mi_parse_print_values.  Make it external.
4923         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4924         Remove the declarations.
4925         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4926         * mi/mi-parse.h (mi_parse_print_values): Declare.
4927         * mi/mi-cmd-stack.c: Include mi-parse.h.
4928         (parse_print_values): Remove
4929         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4930         of parse_print_values.
4931         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4932
4933 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
4934             Yao Qi  <yao@codesourcery.com>
4935
4936         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4937         (encode_actions): Move code to ...
4938         (all_tracepoint_actions_and_cleanup): ... here.  New.
4939         (trace_dump_command): Likewise.
4940
4941 2013-05-30  Tom Tromey  <tromey@redhat.com>
4942
4943         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4944
4945 2013-05-30  Tom Tromey  <tromey@redhat.com>
4946
4947         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4948         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
4949         'old_chain' argument.  Add 'parser_result' argument.
4950         (gdb_xml_create_parser_and_cleanup): Remove old version.
4951         (gdb_xml_parse_quick): Update.
4952         (xml_process_xincludes): Update.
4953         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4954         declare.
4955
4956 2013-05-30  Tom Tromey  <tromey@redhat.com>
4957
4958         * probe.c (collect_probes): Check arguments for NULL before
4959         calling compile_rx_or_error.
4960         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4961         Remove NULL return.
4962
4963 2013-05-30  Tom Tromey  <tromey@redhat.com>
4964
4965         * infrun.c (adjust_pc_after_break): Introduce an outer null
4966         cleanup.
4967
4968 2013-05-30  Tom Tromey  <tromey@redhat.com>
4969
4970         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4971
4972 2013-05-30  Tom Tromey  <tromey@redhat.com>
4973
4974         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4975         for 'old_chain'.  Do not check 'head' before processing
4976         cleanups.
4977
4978 2013-05-30  Tom Tromey  <tromey@redhat.com>
4979
4980         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4981         "cleanup_tuple".
4982
4983 2013-05-30  Tom Tromey  <tromey@redhat.com>
4984
4985         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4986         inner scope.  Unconditionally call do_cleanups.
4987
4988 2013-05-30  Tom Tromey  <tromey@redhat.com>
4989
4990         * source.c (find_and_open_source): Call do_cleanups.
4991
4992 2013-05-30  Tom Tromey  <tromey@redhat.com>
4993
4994         * linux-thread-db.c (thread_db_load_search): Unconditionally
4995         call do_cleanups.
4996
4997 2013-05-30  Tom Tromey  <tromey@redhat.com>
4998
4999         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5000         for 'cleanup'; instead use a later one.
5001
5002 2013-05-30  Tom Tromey  <tromey@redhat.com>
5003
5004         * python/py-breakpoint.c (bppy_get_commands): Use
5005         explicit, unconditional return.
5006         * python/py-frame.c (frapy_read_var): Likewise.
5007         * python/python.c (gdbpy_decode_line): Likewise.
5008
5009 2013-05-30  Tom Tromey  <tromey@redhat.com>
5010
5011         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5012         do_cleanups on all return paths.
5013
5014 2013-05-30  Tom Tromey  <tromey@redhat.com>
5015
5016         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5017
5018 2013-05-30  Tom Tromey  <tromey@redhat.com>
5019
5020         * stabsread.c (read_struct_type): Call do_cleanups along
5021         all return paths.
5022
5023 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
5024
5025         * mips-linux-tdep.c: Adjust formatting throughout.
5026
5027 2013-05-30  Tom Tromey  <tromey@redhat.com>
5028
5029         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5030         along all return paths.
5031
5032 2013-05-30  Tom Tromey  <tromey@redhat.com>
5033
5034         * symfile.c (find_separate_debug_file): Call do_cleanups
5035         along all return paths.
5036
5037 2013-05-30  Tom Tromey  <tromey@redhat.com>
5038
5039         * symtab.c (search_symbols): Introduce a null cleanup for
5040         'retval_chain'.
5041
5042 2013-05-30  Tom Tromey  <tromey@redhat.com>
5043
5044         * python/py-value.c (valpy_binop): Call do_cleanups before
5045         exiting loop.
5046
5047 2013-05-30  Tom Tromey  <tromey@redhat.com>
5048
5049         * python/py-prettyprint.c (print_children): Remove extra
5050         do_cleanups call.
5051
5052 2013-05-30  Tom Tromey  <tromey@redhat.com>
5053
5054         * python/py-frame.c (frapy_read_var): Call do_cleanups along
5055         all return paths.
5056
5057 2013-05-30  Tom Tromey  <tromey@redhat.com>
5058
5059         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5060         along all return paths.
5061
5062 2013-05-30  Tom Tromey  <tromey@redhat.com>
5063
5064         * cli/cli-logging.c (set_logging_redirect): Unconditionally
5065         call do_cleanups.
5066
5067 2013-05-30  Tom Tromey  <tromey@redhat.com>
5068
5069         * varobj.c (c_value_of_root): Call do_cleanups along all
5070         return paths.
5071
5072 2013-05-30  Tom Tromey  <tromey@redhat.com>
5073
5074         * tracepoint.c (trace_dump_command): Unconditionally call
5075         do_cleanups.
5076
5077 2013-05-30  Tom Tromey  <tromey@redhat.com>
5078
5079         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5080         do_cleanups earlier.
5081
5082 2013-05-30  Tom Tromey  <tromey@redhat.com>
5083
5084         * machoread.c (macho_symfile_read): Assign first cleanup to
5085         'back_to'.
5086
5087 2013-05-30  Tom Tromey  <tromey@redhat.com>
5088
5089         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5090
5091 2013-05-30  Tom Tromey  <tromey@redhat.com>
5092
5093         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5094
5095 2013-05-30  Tom Tromey  <tromey@redhat.com>
5096
5097         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5098         call discard_cleanups.
5099         (inf_ptrace_attach): Likewise.
5100
5101 2013-05-30  Tom Tromey  <tromey@redhat.com>
5102
5103         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5104         return paths.
5105         (mips_initialize): Likewise.
5106         (common_open): Call do_cleanups.
5107
5108 2013-05-30  Tom Tromey  <tromey@redhat.com>
5109
5110         * utils.c (internal_vproblem): Call do_cleanups.
5111
5112 2013-05-30  Tom Tromey  <tromey@redhat.com>
5113
5114         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5115
5116 2013-05-30  Tom Tromey  <tromey@redhat.com>
5117
5118         * cli/cli-script.c (setup_user_args): Don't return after error.
5119
5120 2013-05-30  Tom Tromey  <tromey@redhat.com>
5121
5122         * somread.c (som_symtab_read): Call do_cleanups.
5123
5124 2013-05-30  Tom Tromey  <tromey@redhat.com>
5125
5126         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5127
5128 2013-05-30  Tom Tromey  <tromey@redhat.com>
5129
5130         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5131         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5132         * interps.c (interpreter_exec_cmd): Call do_cleanups.
5133         * source.c (show_substitute_path_command): Call do_cleanups.
5134         (unset_substitute_path_command, set_substitute_path_command):
5135         Likewise.
5136         * symfile.c (load_command): Call do_cleanups.
5137
5138 2013-05-30  Tom Tromey  <tromey@redhat.com>
5139
5140         * contrib/cleanup_check.py: New file.
5141         * contrib/gcc-with-excheck: Add option parsing.
5142
5143 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
5144
5145         * windows-nat.c (windows_delete_thread): Add missing space
5146         in cast expression.
5147
5148 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5149
5150         * inferior.c (top level): Include tilde.h.
5151         (add_inferior_command): Call tilde_expand on the value of 'exec'
5152         argument.
5153
5154 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
5155             Yao Qi  <yao@codesourcery.com>
5156
5157         * tracepoint.c (encode_actions_1): Remove parameter 't'.
5158         Caller update.
5159         (encode_actions): Likewise.
5160         * remote.c (remote_download_tracepoint): Caller update.
5161         * tracepoint.h (encode_actions): Update declaration.
5162
5163 2013-05-30  Pedro Alves  <palves@redhat.com>
5164
5165         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5166         pointer.
5167
5168 2013-05-30  Yao Qi  <yao@codesourcery.com>
5169
5170         * remote.c (remote_check_symbols): Remove unused parameter
5171         'objfile'.
5172         Declaration update.
5173         (remote_start_remote, remote_new_objfile): Caller update.
5174
5175 2013-05-30  Yao Qi  <yao@codesourcery.com>
5176
5177         * mi/mi-cmds.c (mi_cmds): Define MI command
5178         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5179         DEF_MI_CMD_CLI.
5180
5181 2013-05-29  Pedro Alves  <palves@redhat.com>
5182
5183         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5184         (remote_insert_watchpoint, remote_remove_watchpoint)
5185         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5186         (remote_verify_memory, compare_sections_command)
5187         (remote_search_memory): Set the general process/thread on the
5188         remote side.
5189
5190 2013-05-29  Pedro Alves  <palves@redhat.com>
5191
5192         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5193         (_initialize_aarch64_tdep): Don't call
5194         initialize_tdesc_aarch64_without_fpu.
5195         * features/Makefile (WHICH): Remove reference to
5196         aarch64-without-fpu.
5197         * features/aarch64-without-fpu.c: Delete file.
5198         * regformats/aarch64-without-fpu.dat: Delete file.
5199
5200 2013-05-28  Yao Qi  <yao@codesourcery.com>
5201
5202         * tracepoint.c (stringify_collection_list): Remove parameter
5203         'string'.
5204         (encode_actions): Caller update.  Remove local variables.
5205
5206 2013-05-24  Yao Qi  <yao@codesourcery.com>
5207
5208         * tracepoint.c (TFILE_PID): Remove.
5209         (tfile_open): Don't add thread and inferior.
5210         (tfile_close): Don't set 'inferior_ptid'.  Don't call
5211         exit_inferior_silent.
5212         (tfile_thread_alive): Remove.
5213         (init_tfile_ops): Don't set field 'to_thread_alive' of
5214         tfile_ops.
5215
5216 2013-05-23  Doug Evans  <dje@google.com>
5217
5218         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5219
5220 2013-05-23  Pedro Alves  <palves@redhat.com>
5221
5222         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5223         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5224         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5225         Only define if HAVE_SOCKETS is defined.
5226         * configure.ac: Check for sys/socket.h.
5227         * config.in, configure: Regenerate.
5228
5229 2013-05-23  Pedro Alves  <palves@redhat.com>
5230
5231         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5232         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5233         printing uint32_t variables.
5234
5235 2013-05-23  Pedro Alves  <palves@redhat.com>
5236
5237         * NEWS: Mention GDBserver range stepping support.
5238
5239 2013-05-23  Yao Qi  <yao@codesourcery.com>
5240             Pedro Alves  <palves@redhat.com>
5241
5242         * gdbthread.h (struct thread_control_state) <may_range_step>: New
5243         field.
5244         * infcmd.c (step_once, until_next_command): Enable range stepping.
5245         * infrun.c (displaced_step_prepare): Disable range stepping.
5246         (resume): Disable range stepping if stepping over a breakpoint or
5247         we have software watchpoints.  If range stepping is enabled,
5248         assert the thread is in the stepping range.
5249         (clear_proceed_status_thread): Clear may_range_step.
5250         (handle_inferior_event): Disable range stepping as soon as we know
5251         the thread that hit the event.  Re-enable it whenever we're going
5252         to step with a step range.
5253         * remote.c (struct vCont_action_support) <r>: New field.
5254         (use_range_stepping): New global.
5255         (remote_vcont_probe): Handle 'r' action.
5256         (append_resumption): Append an 'r' action if the thread may range
5257         step.
5258         (show_range_stepping): New function.
5259         (set_range_stepping): New function.
5260         (_initialize_remote): Call add_setshow_boolean_cmd to register the
5261         'set range-stepping' and 'show range-stepping' commands.
5262         * NEWS: Mention range stepping, the new vCont;r action, and the
5263         new "set/show range-stepping" commands.
5264
5265 2013-05-23  Yao Qi  <yao@codesourcery.com>
5266             Pedro Alves  <palves@redhat.com>
5267
5268         * remote.c (struct vCont_action_support): New struct.
5269         (struct remote_state) <support_vCont_t>: Remove field.
5270         <vCont_actions_support>: New field.
5271         (remote_vcont_probe, remote_stop_ns): Update.
5272
5273 2013-05-23  Yao Qi  <yao@codesourcery.com>
5274             Pedro Alves  <palves@redhat.com>
5275
5276         * gdbthread.h (pc_in_thread_step_range): New declaration.
5277         * thread.c (pc_in_thread_step_range): New function.
5278         * infrun.c (handle_inferior_event): Use it.
5279
5280 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
5281
5282         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5283         of sprintf.
5284
5285 2013-05-22  Keith Seitz  <keiths@redhat.com>
5286
5287         * ada-lang.c (is_known_support_routine): Add explicit free of
5288         'func_name' from find_frame_funname.
5289         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5290         for func_name from find_frame_funname.
5291         * python/py-frame.c (frapy_name): Add explicit free of
5292         'name' from find_frame_funname.
5293         * stack.c (find_frame_funname): Add comment explaining that
5294         funcp must be freed by the caller.
5295         Return copy of symbol names instead of pointers.
5296         (print_frame): Add a cleanup for 'funname' from
5297         find_frame_funname.
5298         * stack.h (find_frame_funname): Remove "const" from
5299         'funname' parameter.
5300
5301 2013-05-22  Tom Tromey  <tromey@redhat.com>
5302
5303         PR c++/15401:
5304         * c-valprint.c (c_value_print): Use value_addr for
5305         references.  Convert back to reference type with value_ref.
5306
5307 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
5308
5309         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5310         unloaded DLL, it will be done by handle_solib_event.  See
5311         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5312         details.
5313
5314 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
5315
5316         * ui-out.c: Create typedef ui_out_level_p and define vector
5317         operations for that type.
5318         (struct ui_out): Use a vector instead of an array.
5319         (current_level): Return level from a vector.
5320         (push_level): Create a level in a vector.
5321         (pop_level): Delete a level in a vector.
5322         (ui_out_new): Create initial level zero level, and store in a
5323         vector.
5324         (ui_out_destroy): Add vector cleanup.
5325
5326 2013-05-22  Pedro Alves  <palves@redhat.com>
5327
5328         * python/python-internal.h (gdb_Py_DECREF): Tag with
5329         "ARI: editCase function".
5330
5331 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5332
5333         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5334
5335 2013-05-21  Pedro Alves  <palves@redhat.com>
5336
5337         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5338         whether PRINTER is NULL before installing a Py_DECREF cleanup.
5339         * python/py-utils.c (py_decref): Don't check for NULL before
5340         calling Py_DECREF.
5341
5342 2013-05-21  Pedro Alves  <palves@redhat.com>
5343
5344         * python/py-utils.c (py_decref): Remove extra braces.
5345         (gdb_pymodule_addobject): Remove extra braces.
5346         * python-internal.h (gdb_Py_DECREF): New static inline function.
5347         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5348
5349 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5350
5351         * breakpoints.c (detach_breakpoints): Do not
5352         detach breakpoints locations with loc_type bp_loc_other.
5353
5354 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5355
5356         Workaround Python 2.6.
5357         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5358         a block.
5359
5360 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5361
5362         Code cleanup: constification.
5363         * solib.c (solib_ops): Make return type and ops variable type const.
5364         (set_solib_ops): Make the new_ops parameter and ops variable const.
5365         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5366         (solib_add, solib_keep_data_in_core, clear_solib)
5367         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5368         (reload_shared_libraries, solib_global_lookup): Make the ops variable
5369         const.
5370         * solib.h (set_solib_ops): Make the new_ops parameter const.
5371
5372 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5373
5374         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5375         variable.
5376         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5377         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5378         (SYSTEM_GDBINIT_FILES): New variables.
5379         (all): Add stamp-system-gdbinit.
5380         (stamp-system-gdbinit): New rule.
5381         (clean-system-gdbinit, install-system-gdbinit)
5382         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
5383         (install-only): Add dependency on install-system-gdbinit.
5384         (uninstall): Add dependency on uninstall-system-gdbinit.
5385         (clean): Add dependency on clean-system-gdbinit.
5386         * system-gdbinit/elinos.py: New file.
5387         * system-gdbinit/wrs-linux.py: New file.
5388
5389 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5390
5391         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5392
5393 2013-05-21  Hui Zhu  <hui@codesourcery.com>
5394
5395         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5396         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5397         * mi/mi-cmd-break.c (ctype.h): New include.
5398         (gdb_obstack.h): New include.
5399         (mi_argv_to_format, mi_cmd_break_insert_1): New.
5400         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5401         (mi_cmd_dprintf_insert): New.
5402         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5403         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5404
5405 2013-05-20  Tom Tromey  <tromey@redhat.com>
5406
5407         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5408
5409 2013-05-20  Tom Tromey  <tromey@redhat.com>
5410
5411         * python/py-value.c (valpy_get_dynamic_type): Simplify
5412         dynamic_type assignment.  Use Py_XINCREF.
5413
5414 2013-05-20  Tom Tromey  <tromey@redhat.com>
5415
5416         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5417
5418 2013-05-20  Tom Tromey  <tromey@redhat.com>
5419
5420         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5421         (gdbpy_selected_frame): Move object-construction code
5422         out of TRY_CATCH.
5423
5424 2013-05-20  Tom Tromey  <tromey@redhat.com>
5425
5426         * python/py-arch.c (gdbpy_initialize_arch): Use
5427         gdb_pymodule_addobject.
5428         * python/py-block.c (gdbpy_initialize_blocks): Use
5429         gdb_pymodule_addobject.
5430         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5431         gdb_pymodule_addobject.
5432         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5433         gdb_pymodule_addobject.
5434         * python/py-event.c (gdbpy_initialize_event_generic): Use
5435         gdb_pymodule_addobject.
5436         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5437         gdb_pymodule_addobject.
5438         * python/py-evts.c (add_new_registry): Use
5439         gdb_pymodule_addobject.
5440         (gdbpy_initialize_py_events): Likewise.
5441         * python/py-finishbreakpoint.c
5442         (gdbpy_initialize_finishbreakpoints): Use
5443         gdb_pymodule_addobject.
5444         * python/py-frame.c (gdbpy_initialize_frames): Use
5445         gdb_pymodule_addobject.
5446         * python/py-function.c (gdbpy_initialize_functions): Use
5447         gdb_pymodule_addobject.
5448         * python/py-inferior.c (gdbpy_initialize_inferior): Use
5449         gdb_pymodule_addobject.
5450         * python/py-infthread.c (gdbpy_initialize_thread): Use
5451         gdb_pymodule_addobject.
5452         * python/py-objfile.c (gdbpy_initialize_objfile): Use
5453         gdb_pymodule_addobject.
5454         * python/py-param.c (gdbpy_initialize_parameters): Use
5455         gdb_pymodule_addobject.
5456         * python/py-progspace.c (gdbpy_initialize_pspace): Use
5457         gdb_pymodule_addobject.
5458         * python/py-symbol.c (gdbpy_initialize_symbols): Use
5459         gdb_pymodule_addobject.
5460         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5461         gdb_pymodule_addobject.
5462         * python/py-type.c (gdbpy_initialize_types): Use
5463         gdb_pymodule_addobject.
5464         * python/py-utils.c (gdb_pymodule_addobject): New function.
5465         * python/py-value.c (gdbpy_initialize_values): Use
5466         gdb_pymodule_addobject.
5467         * python/python-internal.h (gdb_pymodule_addobject): Declare.
5468         * python/python.c (_initialize_python): Use
5469         gdb_pymodule_addobject.
5470
5471 2013-05-20  Tom Tromey  <tromey@redhat.com>
5472
5473         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5474         * python/py-param.c (get_set_value, get_show_value): Use
5475         explicit decrefs.
5476         * python/python.c (start_type_printers, apply_type_printers):
5477         Use explicit decrefs.
5478
5479 2013-05-20  Tom Tromey  <tromey@redhat.com>
5480
5481         * python/py-evts.c (gdbpy_initialize_py_events): Don't
5482         incref the module.
5483
5484 2013-05-20  Tom Tromey  <tromey@redhat.com>
5485
5486         * python/python.c (gdbpy_run_events): Decref the result
5487         of PyObject_CallObject.
5488
5489 2013-05-20  Tom Tromey  <tromey@redhat.com>
5490
5491         * python/py-symtab.c (set_sal): Use
5492         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
5493         (symtab_and_line_to_sal_object): Update.
5494
5495 2013-05-20  Tom Tromey  <tromey@redhat.com>
5496
5497         * python/py-param.c (compute_enum_values): Decref 'item'.
5498
5499 2013-05-20  Tom Tromey  <tromey@redhat.com>
5500
5501         * mi/mi-main.c: Include python-internal.h.
5502         (mi_cmd_list_features): Check gdb_python_initialized.
5503         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5504         (python_inferior_exit, python_new_objfile, add_thread_object)
5505         (delete_thread_object, py_free_inferior): Check
5506         gdb_python_initialized.
5507         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5508         gdb_python_initialized.
5509         * python/py-type.c (save_objfile_types): Check
5510         gdb_python_initialized.
5511         * python/python-internal.h (gdb_python_initialized): Declare.
5512         * python/python.c (ensure_python_env): Throw exception if
5513         Python not initialized.
5514         (before_prompt_hook, source_python_script_for_objfile)
5515         (start_type_printers, apply_type_printers,
5516         free_type_printers): Check gdb_python_initialized.
5517         * varobj.c (varobj_get_display_hint)
5518         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5519         (install_new_value_visualizer, varobj_set_visualizer)
5520         (value_get_print_value): Check gdb_python_initialized.
5521
5522 2013-05-20  Tom Tromey  <tromey@redhat.com>
5523
5524         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5525         Check errors.
5526         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5527         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5528         Check errors.
5529         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5530         Check errors.
5531         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5532         Check errors.
5533         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5534         Check errors.
5535         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5536         init function to return 'int'.
5537         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5538         Return 'int'.  Check errors.
5539         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5540         Check errors.
5541         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5542         Return 'int'.  Check errors.
5543         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5544         Check errors.
5545         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5546         Check errors.
5547         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5548         Check errors.
5549         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5550         Check errors.
5551         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5552         Check errors.
5553         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5554         Check errors.
5555         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5556         Check errors.
5557         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5558         Check errors.
5559         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5560         Check errors.
5561         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5562         Check errors.
5563         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5564         Check errors.
5565         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5566         Check errors.
5567         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5568         Check errors.
5569         * python/python-internal.h (gdbpy_initialize_auto_load,
5570         gdbpy_initialize_values, gdbpy_initialize_frames,
5571         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5572         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5573         gdbpy_initialize_blocks, gdbpy_initialize_types,
5574         gdbpy_initialize_functions, gdbpy_initialize_pspace,
5575         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5576         gdbpy_initialize_finishbreakpoints,
5577         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5578         gdbpy_initialize_thread, gdbpy_initialize_inferior,
5579         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5580         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5581         gdbpy_initialize_signal_event,
5582         gdbpy_initialize_breakpoint_event,
5583         gdbpy_initialize_continue_event,
5584         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5585         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5586         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5587         * python/python.c (gdb_python_initialized): New global.
5588         (gdbpy_initialize_events): Return 'int'.  Check errors.
5589         (_initialize_python): Check errors.  Set
5590         gdb_python_initialized.
5591
5592 2013-05-20  Tom Tromey  <tromey@redhat.com>
5593
5594         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5595         Decref the reslut of PyObject_CallMethod.
5596
5597 2013-05-20  Tom Tromey  <tromey@redhat.com>
5598
5599         * python/py-event.c (gdbpy_initialize_event_generic): Return
5600         early if PyType_Ready fails.
5601
5602 2013-05-20  Tom Tromey  <tromey@redhat.com>
5603
5604         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5605         as 'default' in the switch.
5606
5607 2013-05-20  Tom Tromey  <tromey@redhat.com>
5608
5609         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
5610         get_addr_from_python calls out of TRY_CATCH.
5611         (infpy_write_memory, infpy_search_memory): Likewise.
5612         * python/py-utils.c (get_addr_from_python): Return negative
5613         value on error.  Use TRY_CATCH.
5614         * python/python-internal.h (get_addr_from_python): Use
5615         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5616
5617 2013-05-20  Tom Tromey  <tromey@redhat.com>
5618
5619         * python/py-event.c (evpy_emit_event): Decref the
5620         result of PyObject_CallFunctionObjArgs.
5621
5622 2013-05-20  Tom Tromey  <tromey@redhat.com>
5623
5624         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5625         Correctly decref.
5626
5627 2013-05-20  Tom Tromey  <tromey@redhat.com>
5628
5629         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5630
5631 2013-05-20  Tom Tromey  <tromey@redhat.com>
5632
5633         * python/py-event.h (gdbpy_initialize_event_generic): Use
5634         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5635         * python/py-evts.c (add_new_registry): Use
5636         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5637         * python/python-internal.h
5638         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5639
5640 2013-05-20  Tom Tromey  <tromey@redhat.com>
5641
5642         * python/py-arch.c (archpy_disassemble): Update.
5643         * python/py-type.c (typy_get_composite, typy_lookup_typename)
5644         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5645         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5646         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5647         macro.
5648         (GDB_PY_HANDLE_EXCEPTION): Update.
5649         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
5650
5651 2013-05-20  Tom Tromey  <tromey@redhat.com>
5652
5653         * python/python-internal.h (events_object_type): Remove.
5654
5655 2013-05-20  Tom Tromey  <tromey@redhat.com>
5656
5657         * python/py-event.h (evpy_emit_event): Use
5658         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5659         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5660         New macro.
5661
5662 2013-05-20  Tom Tromey  <tromey@redhat.com>
5663
5664         * py-evtregistry.c (create_event_object): Decref
5665         eventregistry_object if PyList_New fails.
5666
5667 2013-05-20  Tom Tromey  <tromey@redhat.com>
5668
5669         * py-cmd.c (gdbpy_string_to_argv): Check result of
5670         PyList_New.
5671
5672 2013-05-20  Tom Tromey  <tromey@redhat.com>
5673
5674         * python/python.c (before_prompt_hook): Add cleanup to
5675         decref 'hook'.
5676
5677 2013-05-20  Tom Tromey  <tromey@redhat.com>
5678
5679         * python/py-function.c (fnpy_init): Decref result of
5680         PyObject_GetAttrString.
5681
5682 2013-05-20  Tom Tromey  <tromey@redhat.com>
5683
5684         * python/py-threadevent.c (get_event_thread): Use
5685         CPYCHECKER_RETURNS_BORROWED_REF.
5686         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5687         New define.
5688         (pspace_to_pspace_object, objfile_to_objfile_object)
5689         (find_thread_object): Use it.
5690
5691 2013-05-20  Tom Tromey  <tromey@redhat.com>
5692
5693         * python/py-arch.c (arch_object_type): Use
5694         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5695         * python/py-block.c (block_syms_iterator_object_type):
5696         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5697         * python/py-bpevent.c (breakpoint_event_object_type):
5698         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5699         * python/py-cmd.c (cmdpy_object_type): Use
5700         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5701         * python/py-continueevent.c (continue_event_object_type):
5702         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5703         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5704         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5705         * python/py-events.h (thread_event_object_type):
5706         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5707         * python/py-evtregistry.c (eventregistry_object_type): Use
5708         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5709         * python/py-exitedevent.c (exited_event_object_type):
5710         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5711         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5712         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5713         * python/py-function.c (fnpy_object_type): Use
5714         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5715         * python/py-inferior.c (inferior_object_type, membuf_object_type):
5716         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5717         * python/py-infthread.c (thread_object_type): Use
5718         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5719         * python/py-lazy-string.c (lazy_string_object_type):
5720         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5721         * python/py-newobjfileevent.c (new_objfile_event_object_type):
5722         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5723         * python/py-objfile.c (objfile_object_type): Use
5724         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5725         * python/py-param.c (parmpy_object_type):
5726         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5727         * python/py-progspace.c (pspace_object_type):
5728         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5729         * python/py-signalevent.c (signal_event_object_type):
5730         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5731         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5732         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5733         * python/py-type.c (type_object_type, field_object_type)
5734         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5735         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5736         define.
5737         (value_object_type, block_object_type, symbol_object_type)
5738         (event_object_type, stop_event_object_type, breakpoint_object_type)
5739         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5740
5741 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
5742
5743         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5744         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5745
5746 2013-05-20  Doug Evans  <dje@google.com>
5747
5748         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
5749         For Fission.
5750         * dwarf2read.c (struct dwarf2_per_cu_data): New member
5751         reading_dwo_directly.
5752         (struct signatured_type): New member dwo_unit.
5753         (struct die_reader_specs): New member comp_dir.
5754         (create_signatured_type_table_from_index): Use malloc for
5755         all_type_units instead of objfile's obstack.
5756         (create_all_type_units): Ditto.
5757         (fill_in_sig_entry_from_dwo_entry): New function.
5758         (add_type_unit): New function.
5759         (lookup_dwo_signatured_type): New function.
5760         (lookup_dwp_signatured_type): New function.
5761         (lookup_signatured_type): New arg cu.  All callers updated.
5762         (init_cu_die_reader): Initialize comp_dir.
5763         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
5764         Change assert of matching type signatures to call error on mismatch.
5765         (lookup_dwo_unit): Add assert.
5766         (init_tu_and_read_dwo_dies): New function.
5767         (init_cutu_and_read_dies): Call it.
5768         (build_type_unit_groups): Handle case of no type unit groups created.
5769         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5770         (lookup_dwo_cutu): Tweak complaint.
5771         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5772         (dwarf2_per_objfile_free): Free all_type_units.
5773
5774 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5775
5776         * windows-nat.c (handle_unload_dll): Add missing empty line.
5777
5778 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5779
5780         * dwarf2read.c (prototyped_function_p): New function.
5781         (read_subroutine_type): Use it.
5782
5783 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5784
5785         * rs6000-aix-tdep.c: De-indent some example code provided
5786         as a comment.
5787
5788 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5789
5790         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5791         region is ok for a hardware watchpoint using the new ptrace interface
5792         on Power servers.
5793
5794 2013-05-17  Doug Evans  <dje@google.com>
5795
5796         * NEWS: Mention new maintenance commands check-symtabs, and
5797         expand-symtabs, and renamed check-psymtabs.
5798         * psymtab.c (maintenance_check_psymtabs): Renamed from
5799         maintenance_check_symtabs.  Only process already-expanded symbol
5800         tables.
5801         (_initialize_psymtab): Update.
5802         * symmisc.c (maintenance_check_symtabs): New function.
5803         (maintenance_expand_name_matcher): New function
5804         (maintenance_expand_file_matcher): New function
5805         (maintenance_expand_symtabs): New function.
5806         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5807         commands.
5808
5809 2013-05-17  Tom Tromey  <tromey@redhat.com>
5810
5811         * python/py-inferior.c (infpy_read_memory): Don't call
5812         PyErr_SetString if PyObject_New fails.
5813         * python/py-frame.c (frame_info_to_frame_object): Don't call
5814         PyErr_SetString if PyObject_New fails.
5815
5816 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
5817
5818         * acinclude.m4: Add check for dlopen in libdl.
5819         * configure.ac: Ditto.
5820         * configure: Regenerate.
5821
5822 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
5823
5824         * frame.c (frame_stash): Convert to htab.
5825         (frame_addr_hash): New function.
5826         (frame_addr_hash_eq): New function.
5827         (frame_stash_create): Convert function to create
5828         a hash table.
5829         (frame_stash_add): Convert function to add an entry to a hash
5830         table.
5831         (frame_stash_find): Convert function to search the hash table.
5832         (frame_stash_invalidate): Convert function to empty the hash
5833         table.
5834         (get_frame_id): Only add to stash if a frame_id is created.
5835         (_initialize_frame): Call frame_stash_create.
5836
5837 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
5838
5839         * configure.ac: Ensure MIG is available when building for GNU Hurd
5840         hosts.
5841         * configure: Regenerate.
5842
5843 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5844
5845         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5846
5847 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5848
5849         * ada-lang.c (ada_make_symbol_completion_list): Make sure
5850         all cleanups are done before returning from this function.
5851
5852 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5853
5854         * utils.h: #include "exceptions.h".
5855         (enum errors): Remove partial declaration.
5856
5857 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5858
5859         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5860         * gdbarch.h, gdbarch.c: Regenerate.
5861         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5862         handling.
5863
5864         * rs6000-aix-tdep.h: New file.
5865         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5866         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5867         "xml-utils.h".
5868         (struct field_info, struct ld_info_desc): New types.
5869         (ld_info32_desc, ld_info64_desc): New static constants.
5870         (struct ld_info): New type.
5871         (rs6000_aix_extract_ld_info): New function.
5872         (rs6000_aix_shared_library_to_xml): Likewise.
5873         (rs6000_aix_ld_info_to_xml): Likewise.
5874         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5875         (rs6000_aix_init_osabi): Add call to
5876         set_gdbarch_core_xfer_shared_libraries_aix.
5877         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5878         Remove "xml-utils.h" include.
5879         (LdInfo): Delete typedef.
5880         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5881         Delete macros.
5882         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5883         Adjust code accordingly.
5884         (rs6000_core_ldinfo): Delete, folded into
5885         rs6000_aix_core_xfer_shared_libraries_aix.
5886         (rs6000_xfer_shared_library): Delete.
5887         (rs6000_xfer_shared_libraries): Reimplement.
5888
5889 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
5890
5891         * record.c (record_goto_cmdlist): New.
5892         (cmd_record_goto): Split into this ...
5893         (cmd_record_goto_begin): ... this
5894         (cmd_record_goto_end): ... and this.
5895         (_initialize_record): Change "record goto" to prefix command.
5896         Add commands for "record goto begin" and "record goto end".
5897         Add an alias for "record goto start" to "record goto begin".
5898
5899 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5900
5901         * linespec.c (convert_linespec_to_sals): New comment for
5902         SOURCE_FILENAME assignment.
5903
5904 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5905
5906         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5907         internal_warning.
5908
5909 2013-05-14  Tom Tromey  <tromey@redhat.com>
5910
5911         * eval.c (parse_and_eval_long): Make 'exp' const.
5912         * value.h (parse_and_eval_long): Update.
5913
5914 2013-05-14  Tom Tromey  <tromey@redhat.com>
5915
5916         * ui-file.c (gdb_fopen): Make arguments const.
5917         * ui-file.h (gdb_fopen): Make arguments const.
5918
5919 2013-05-14  Tom Tromey  <tromey@redhat.com>
5920
5921         * remote.c (remote_set_trace_notes): Make arguments const.
5922         * target.c (update_current_target): Update cast.
5923         * target.h (to_set_trace_notes): Make arguments const.
5924
5925 2013-05-14  Tom Tromey  <tromey@redhat.com>
5926
5927         * go32-nat.c (go32_terminal_info): Make 'args' const.
5928         * inferior.h (child_terminal_info): Update.
5929         * inflow.c (child_terminal_info): Make 'args' const.
5930         * target.c (default_terminal_info): Make 'args' const.
5931         (debug_to_terminal_save_ours): Likewise.
5932         * target.h (struct target_ops) <to_terminal_info>: Make argument
5933         const.
5934
5935 2013-05-13  Tom Tromey  <tromey@redhat.com>
5936
5937         * gcore.c (create_gcore_bfd): Make 'filename' const.
5938         * gcore.h (create_gcore_bfd): Make 'filename' const.
5939         * record-full.c (record_full_save): Make 'recfilename' const.
5940         * target.c (target_save_record): Make 'filename' const.
5941         * target.h (struct target_ops) <to_save_record>: Make 'filename'
5942         const.
5943         (target_save_record): Likewise.
5944
5945 2013-05-13  Tom Tromey  <tromey@redhat.com>
5946
5947         PR gdb/15338:
5948         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5949         ranges section has been read.
5950
5951 2013-05-13  Tom Tromey  <tromey@redhat.com>
5952
5953         PR exp/15364:
5954         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5955         STRUCTOP_PTR>: Return a not_lval value for
5956         EVAL_AVOID_SIDE_EFFECTS.
5957         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5958         for EVAL_AVOID_SIDE_EFFECTS.
5959
5960 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
5961
5962         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5963         floating point registers to register type before storing
5964         value.
5965         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5966         Likewise.
5967
5968 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5969             Tom Tromey  <tromey@redhat.com>
5970
5971         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5972         New functions.
5973         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5974         Declare.
5975         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5976         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5977         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5978         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5979
5980 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
5981             Tom Tromey  <tromey@redhat.com>
5982
5983         PR build/15414:
5984         * configure: Rebuild.
5985         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5986         with -Wno-format.
5987
5988 2013-05-10  Pedro Alves  <palves@redhat.com>
5989
5990         * remote.c (_initialize_remote): Fix spelling of
5991         qXfer:traceframe-info:read packet in packet config command.
5992
5993 2013-05-10  David Taylor  <dtaylor@emc.com>
5994
5995         PR remote/15455
5996
5997         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5998         "QTro" at start of packet.
5999
6000 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6001
6002         * solib-aix.c (solib_aix_relocate_section_addresses):
6003         For the .bss section action, apply the same offset as
6004         the .data section.
6005
6006 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6007
6008         * solib-aix.c (solib_aix_relocate_section_addresses):
6009         Remove FIXME comment.
6010
6011 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6012
6013         PR tdep/15420:
6014         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6015         New functions, directly copied from sparc-sol-thread.c.
6016         * sparc-sol-thread.c: Delete.
6017         * configure.ac: Remove code handling sparc-solaris-thread.c.
6018         * configure: Regenerate.
6019
6020 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
6021
6022         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6023         filter logic.
6024         (backtrace_command): Add "no-filters" option parsing.
6025         (_initialize_stack): Alter help to reflect "no-filters" option.
6026         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6027         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6028         (py-frame.o): Add target
6029         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6030         filter files.
6031         * python/python.h: Add new frame filter constants, and flag enum.
6032         (apply_frame_filter): Add definition.
6033         * python/python.c (apply_frame_filter): New non-Python
6034         enabled function.
6035         * python/py-utils.c (py_xdecref): New function.
6036         (make_cleanup_py_xdecref): Ditto.
6037         * python/py-objfile.c: Declare frame_filters dictionary.
6038         (objfpy_dealloc): Add frame_filters dealloc.
6039         (objfpy_new): Initialize frame_filters attribute.
6040         (objfile_to_objfile_object): Ditto.
6041         (objfpy_get_frame_filters): New function.
6042         (objfpy_set_frame_filters): New function.
6043         * python/py-progspace.c: Declare frame_filters dictionary.
6044         (pspy_dealloc): Add frame_filters dealloc.
6045         (pspy_new): Initialize frame_filters attribute.
6046         (pspacee_to_pspace_object): Ditto.
6047         (pspy_get_frame_filters): New function.
6048         (pspy_set_frame_filters): New function.
6049         * python/py-framefilter.c: New file.
6050         * python/lib/gdb/command/frame_filters.py: New file.
6051         * python/lib/gdb/frames.py: New file.
6052         * python/lib/gdb/__init__.py: Initialize global frame_filters
6053         dictionary
6054         * python/lib/gdb/FrameDecorator.py: New file.
6055         * python/lib/gdb/FrameIterator.py: New file.
6056         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6057         * mi/mi-cmds.h: Declare.
6058         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6059         --no-frame-filter logic, and Python frame filter logic.
6060         (stack_enable_frame_filters): New function.
6061         (parse_no_frame_option): Ditto.
6062         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6063         filter logic.
6064         (mi_cmd_stack_list_locals): Ditto.
6065         (mi_cmd_stack_list_args): Ditto.
6066         (mi_cmd_stack_list_variables): Ditto.
6067         * NEWS: Add frame filter note.
6068
6069 2013-05-09  Doug Evans  <dje@google.com>
6070
6071         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6072         All callers updated.
6073         (syms_from_objfile): Ditto.  Make static.
6074         (symbol_file_add_with_addrs): Renamed from
6075         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
6076         num_offsets.  All callers updated.
6077         * symfile.h (syms_from_objfile): Delete.
6078
6079         * symfile.c (decrement_reading_symtab): Add assert.
6080         (increment_reading_symtab): Ditto.
6081
6082 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
6083
6084         * source.c (forward_search_command): Replace call to getc
6085         by call to fgetc.
6086         (reverse_search_command): Likewise.
6087
6088 2013-05-08  Doug Evans  <dje@google.com>
6089
6090         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6091         matching test.
6092
6093 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6094
6095         * sol-thread.c (info_cb): Factorize the code a little.
6096
6097 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6098
6099         * sol-thread.c (info_cb): Rework the output of the "maintenance
6100         info sol-threads" command a bit.
6101
6102 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6103
6104         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6105         Replace ti.ti_startfunc by ti.ti_pc.
6106
6107 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6108
6109         * solib-aix.c (solib_aix_free_library_list): New function
6110         for the case where HAVE_LIBEXPAT is not defined.
6111
6112 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6113
6114         PR breakpoints/15413:
6115         * breakpoint.c (condition_completer): Simplify the code to
6116         disconsider multiple locations of breakpoints when completing the
6117         "condition" command.
6118
6119 2013-05-07  Pierre Muller  <muller@sourceware.org>
6120
6121         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6122         instead of <sys/wait.h>.
6123
6124 2013-05-07  Pierre Muller  <muller@sourceware.org>
6125
6126         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6127         trailing new line from warning message.
6128
6129 2013-05-07  Pierre Muller  <muller@sourceware.org>
6130
6131         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6132         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6133
6134 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
6135
6136         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6137         error message (ARI fix).
6138
6139 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
6140
6141         * features/library-list-aix.dtd: Replace library-list by
6142         library-list-aix.
6143         * rs6000-nat.c: Replace library-list by library-list-aix
6144         throughout.
6145         * solib-aix.c: Likewise.
6146
6147 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
6148
6149         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6150         Renames TARGET_OBJECT_AIX_LIBRARIES.
6151         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6152         TARGET_OBJECT_LIBRARIES_AIX throughout.
6153         * solib-aix.c: Likwise.
6154
6155 2013-05-07  Yao Qi  <yao@codesourcery.com>
6156
6157         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6158         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6159
6160 2013-05-07  Yao Qi  <yao@codesourcery.com>
6161
6162         * solib-dsbt.c (enable_break): Declare.
6163         (dsbt_current_sos): Remove call to enable_break2.
6164         (enable_break2): Rename to enable_break.  Set solib breakpoint
6165         on '_dl_debug_state'.
6166         (enable_break): Remove.
6167
6168 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
6169
6170         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6171         debug state prior to replicating existing hardware watchpoints or
6172         breakpoints.
6173
6174 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
6175
6176         * gcore.c (gcore_create_callback): Ignore sections with
6177         separate_debug_objfile_backlink != NULL.
6178
6179 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
6180             Andrew Jenner  <andrew@codesourcery.com>
6181             Chung-Lin Tang  <cltang@codesourcery.com>
6182             Julian Brown  <julian@codesourcery.com>
6183
6184         Based on the nios2-elf port from Altera Corporation.
6185
6186         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6187         nios2-linux-tdep.o.
6188         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6189         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6190         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6191         * nios2-tdep.h: New.
6192         * nios2-tdep.c: New.
6193         * nios2-linux-tdep.c: New.
6194         * features/Makefile (WHICH): Add nios2-linux.
6195         (nios2-linux-expedite): Set.
6196         * features/nios2-cpu.xml: New.
6197         * features/nios2.xml: New.
6198         * features/nios2-linux.xml: New.
6199         * features/nios2.c: New (autogenerated).
6200         * features/nios2-linux.c: New (autogenerated).
6201         * regformats/nios2-linux.dat: New (autogenerated).
6202         * NEWS (Changes since GDB 7.6): Add new Nios II targets
6203         and commands.
6204
6205 2013-05-06  Doug Evans  <dje@google.com>
6206
6207         * symfile.c: Whitespace cleanup.
6208
6209         * solist.h (struct target_so_ops): New member clear_so.
6210         * solib-svr4.c (svr4_clear_so): New function.
6211         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6212         * solib.c (clear_so): Renamed from free_so_symbols.
6213         All callers updated.  Call target clear_so if it exists.
6214
6215 2013-05-06  Tom Tromey  <tromey@redhat.com>
6216
6217         * ada-lang.c (ada_value_primitive_packed_val): Don't
6218         call value_incref.
6219         * value.c (set_value_parent): Incref the new parent and decref
6220         the old parent.
6221         (value_copy, value_primitive_field): Use set_value_parent.
6222
6223 2013-05-06  Tom Tromey  <tromey@redhat.com>
6224
6225         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6226         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6227         if needed.
6228         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6229         * dwarf2read.c (write_constant_as_bytes)
6230         (dwarf2_fetch_constant_bytes): New functions.
6231
6232 2013-05-06  Tom Tromey  <tromey@redhat.com>
6233
6234         * dwarf2read.c (dwarf2_const_value_data): Remove unused
6235         parameters.
6236         (dwarf2_const_value_attr): Update.
6237
6238 2013-05-06  Tom Tromey  <tromey@redhat.com>
6239
6240         * somread.c (som_symfile_offsets): Add 'const' to addrs.
6241         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6242         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6243         Remove declaration.
6244
6245 2013-05-06  Tom Tromey  <tromey@redhat.com>
6246
6247         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6248         objfile's obstack.
6249
6250 2013-05-06  Doug Evans  <dje@google.com>
6251
6252         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6253         * stabsread.h (process_one_symbol): Update declaration.
6254         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6255         * elfread.c (elf_symfile_relocate_probe): Ditto.
6256         * psymtab.c (relocate_psymtabs): Ditto.
6257         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6258         (objfile_relocate): Ditto.
6259         * objfiles.h (objfile_relocate): Update declaration.
6260         * symfile.c (relative_addr_info_to_section_offsets): Constify
6261         addrs parameter.
6262         (default_symfile_offsets): Ditto.
6263         (syms_from_objfile_1): Constify offsets parameter.
6264         (syms_from_objfile): Ditto.
6265         (symbol_file_add_with_addrs_or_offsets): Ditto.
6266         (symfile_map_offsets_to_segments): Constify data parameter.
6267         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6268         delta parameters of member relocate.
6269         (struct sym_probe_fns): Constify new_offsets,
6270         delta parameters of member sym_relocate_probe.
6271         (struct sym_fns): Constify section_addr_info parameter of member
6272         sym_offsets.
6273         (relative_addr_info_to_section_offsets): Update declaration.
6274         (default_symfile_offsets): Ditto.
6275         (syms_from_objfile): Ditto.
6276         (symfile_map_offsets_to_segments): Ditto.
6277
6278         * symfile.c (syms_from_objfile_1): Use correct section count when
6279         objfile->sf == NULL.
6280
6281 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
6282
6283         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6284
6285 2013-05-06  Doug Evans  <dje@google.com>
6286
6287         * psympriv.h (struct partial_symtab): Augment comment for member
6288         section_offsets.
6289
6290 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6291
6292         Reimplement shared library support on ppc-aix...
6293         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6294         * features/library-list-aix.dtd: New file.
6295         * solib-aix.h, solib-aix.c: New file.
6296         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6297         (rs6000_find_toc_address_hook): Delete.
6298         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6299         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6300         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
6301         "xml-utils.h".
6302         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6303         (vmap_symtab, fixup_breakpoints): Delete.
6304         (rs6000_xfer_shared_libraries): New function.
6305         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6306         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6307         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6308         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6309         (rs6000_xfer_shared_library): New function.
6310         (find_toc_address): Delete.
6311         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6312         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6313         * xcoffread.c (record_minimal_symbol): Reloate symbol address
6314         before creating minimal symbol.  Adjust function description
6315         accordingly.
6316         (scan_xcoff_symtab): Replace call to
6317         prim_record_minimal_symbol_and_info by call to
6318         record_minimal_symbol.
6319         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6320         around default_symfile_offsets.
6321         * configure.tgt: Add solib-aix.o to gdb_target_obs for
6322         powerpc-aix targets.
6323         * config/rs6000/nm-rs6000.h: Delete.
6324         * config/powerpc/aix.mh (NAT_FILE): Delete.
6325         (NATDEPFILES): Remove xcoffsolib.o.
6326         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6327         (ALL_TARGET_OBS): Add solib-aix.o.
6328         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6329         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
6330         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
6331         * xcoffsolib.h, xcoffsolib.c: Delete.
6332
6333         * solib.c (reload_shared_libraries): Remove reference to
6334         SOLIB_CREATE_INFERIOR_HOOK.
6335         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6336         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6337         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6338         comment.
6339         * corelow.c (deprecated_core_resize_section_table): Delete.
6340         * exec.c: Remove include of xcoffsolib.h".
6341         (map_vmap, vmap): Delete.
6342         (exec_close_1): Remove references to vmap.
6343         (exec_file_attach): Remove vmap handling code, and reference
6344         to DEPRECATED_IBM6000_TARGET.
6345         (bfdsec_to_vmap): Delete.
6346         (exec_files_info): Remove block of code handling VMAP.
6347         * infcmd.c (post_create_inferior): Remove reference to
6348         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6349         * infrun.c (follow_exec): Remove reference to
6350         SOLIB_CREATE_INFERIOR_HOOK.
6351         * stack.c (print_frame): Remove reference to PC_SOLIB.
6352         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6353         (dsbt_relocate_main_executable): Likewise.
6354         * solib-frv.c (frv_current_sos): Likewise.
6355
6356 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6357
6358         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6359         to target_write_memory and target_read_memory.
6360
6361 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6362
6363         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6364         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6365
6366 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6367
6368         * darwin-nat.c: Replace all "%x" instances in format strings
6369         into "0x%x" throughout.
6370
6371 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6372
6373         * darwin-nat.c (darwin_mourn_inferior): Replace call to
6374         gdb_assert by call to MACH_CHECK_ERROR.
6375         (darwin_attach_pid): Raise an error rather than a failed
6376         assertion when various system calls failed.  Report a warning
6377         instead of raising a failed assertion when PREV_NOT is not NULL
6378         after call to mach_port_request_notification.
6379         (darwin_ptrace_me): Raise an error rather than a failed
6380         assertion when read returns nonzero.
6381
6382 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6383
6384         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6385
6386 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6387
6388         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6389
6390 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6391
6392         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6393         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6394         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
6395         a stale cleanup.  Fix double free of NAME.
6396
6397 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
6398
6399         * windows-nat.c (windows_delete_thread): Accept an additional
6400         argument, the thread's exit code, and announce thread death when
6401         print_thread_events is non-zero and we are deleting a thread that
6402         is not the main thread.
6403         (get_windows_debug_event): Pass thread exit code to
6404         windows_delete_thread.
6405
6406 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6407
6408         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6409         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6410         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6411         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6412         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6413         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6414         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6415         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6416         (gdbarch_tdep): New struct.
6417         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6418         E_NUM_REGS.
6419         (v850e3v5_register_name): New function.
6420         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6421         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
6422         code handling the struct return conventions for the RH850 ABI.
6423         Update all callers.
6424         (v850_eight_byte_align_p): New function.
6425         (v850_push_call_dummy): Push structs by value, not by reference
6426         for the RH850 ABI.  Add support for eight byte alignment.
6427         (v850_dbtrap_breakpoint_from_pc): New function.
6428         (v850_gdbarch_init): Add ABI detection code.  Register
6429         v850e3v5_register_name for the v850e3v5 architecture.  Set the
6430         number of registers for v850e3v5.  Register
6431         v850_dbtrap_breakpoint_from_pc as appropriate.
6432         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6433
6434 2013-05-03  Doug Evans  <dje@google.com>
6435
6436         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6437         of bfd_count_sections.
6438         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6439         * symfile.c (default_symfile_offsets): Ditto.
6440         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
6441         one entry, not bfd_count_sections entries.
6442
6443 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6444
6445         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6446         `save' and `restore' register groups.  Don't include SPL
6447         or SPH in these groups.
6448         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
6449         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
6450         RL78_ES_REGNUM, and RL78_CS_REGNUM.
6451         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
6452         dwarf2_append_unwinders().
6453
6454 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6455
6456         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6457         ignore SIGINT and SIGTRAP in case these internal signals are
6458         caught explicitely.
6459
6460 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6461
6462         * darwin-nat.c (darwin_read_write_inferior): Change types
6463         of parameters rdaddr and wraddr to "gdb_byte *". Change type
6464         of copy_count to "mach_msg_type_number_t".
6465         (darwin_read_dyld_info): Change type of parameter
6466         rdaddr to "gdb_byte *".
6467
6468 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6469
6470         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6471         of &info->load_map from "char *" to "gdb_byte *".
6472
6473 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6474
6475         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6476         from "char *" to "gdb_byte *".
6477         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6478
6479 2013-04-30  Doug Evans  <dje@google.com>
6480
6481         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6482         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6483         DWO stub.  If DWO isn't found, just use stub.
6484         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6485
6486         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6487         calling init_cutu_and_read_dies.
6488
6489 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6490
6491         * target-descriptions.c (maint_print_c_tdesc_cmd):
6492         Add case to parse structures as register types and
6493         bitfields.
6494
6495 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6496
6497         * MAINTAINERS (Write After Approval): Add myself to the list.
6498
6499 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6500
6501         * sol-thread.c (rw_common): Change type of parameter "buf"
6502         to "gdb_byte *".
6503         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6504         rw_common to "gdb_byte *" instead of "char *".
6505
6506 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6507
6508         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6509         of local variable msym to const struct bound_minimal_symbol.
6510         Adjust use accordingly.
6511         [ti.ti_state == TD_THR_SLEEP]: Likewise.
6512
6513 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
6514
6515         * i386gnu-nat.c (CREG_OFFSET): New macro.
6516         (creg_offset): New array.
6517         (CREG_ADDR): Use creg_offset instead of reg_offset.
6518
6519 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6520
6521         * mep-tdep.c (mep_write_pc): Delete.
6522         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6523         Add call to set_gdbarch_pc_regnum.
6524
6525 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6526
6527         * common/filestuff.c: Replace #include <dirent.h> by
6528         #include "gdb_dirent.h".
6529
6530 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6531
6532         * common/filestuff.c: Replace #include <sys/stat.h> by
6533         #include "gdb_stat.h".
6534
6535 2013-04-29  Pierre Muller  <muller@sourceware.org>
6536
6537         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6538         editCase function rule.
6539         (get_DW_AT_signature_type): Likewise.
6540
6541 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6542
6543         * m32r-tdep.c (m32r_write_pc): Delete.
6544         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6545         Add call to set_gdbarch_pc_regnum.
6546
6547 2013-04-29  Pierre Muller  <muller@sourceware.org>
6548
6549         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6550
6551 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6552
6553         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6554
6555 2013-04-28  Yao Qi  <yao@codesourcery.com>
6556
6557         * solib-dsbt.c (fetch_loadmap): Re-indent.
6558         (displacement_from_map, enable_break2): Likewise.
6559         (dsbt_relocate_section_addresses): Likewise.
6560
6561 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
6562
6563         GDB 7.6 released.
6564
6565 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
6566
6567         PR corefiles/14983:
6568         * dwarf2read.c (process_full_comp_unit): Always create a static
6569         block.
6570
6571 2013-04-25  Hui Zhu  <hui@codesourcery.com>
6572
6573         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6574         to loc->cmd_bytecode.
6575
6576 2013-04-24  Doug Evans  <dje@google.com>
6577
6578         * dwarf2read.c (setup_type_unit_groups): Fix comment.
6579
6580 2013-04-22  Keith Seitz  <keiths@redhat.com>
6581
6582         * tracepoint.c (trace_save):  Call the writer's start method.
6583
6584 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
6585
6586         PR gdb/10462
6587         * cli/cli-decode.c (lookup_command): Show an error if there is no space
6588         before argument.
6589
6590 2013-04-23  Tom Tromey  <tromey@redhat.com>
6591
6592         * common/filestuff.c: Check USE_WIN32API before including
6593         sys/socket.h.
6594         (HAVE_F_GETFD): New define.
6595         (mark_cloexec): Check HAVE_F_GETFD.
6596         (gdb_open_cloexec): Change 'mode' to unsigned long.
6597         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6598         (gdb_pipe_cloexec): Check HAVE_PIPE.
6599         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6600         long.
6601
6602 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6603
6604         PR gdb/15293
6605         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6606
6607 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6608
6609         PR gdb/15165
6610         * breakpoint.c (dprintf_print_recreate): New.
6611         (save_breakpoints): Let it not save dprintf commands.
6612         (initialize_breakpoint_ops): Set dprintf_print_recreate.
6613
6614 2013-04-22  Tom Tromey  <tromey@redhat.com>
6615
6616         PR gdb/7912:
6617         * Makefile.in (SFILES): Add filestuff.c
6618         (COMMON_OBS): Add filestuff.o.
6619         (filestuff.o): New target.
6620         * auto-load.c (auto_load_objfile_script_1): Use
6621         gdb_fopen_cloexec.
6622         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6623         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6624         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6625         * common/agent.c (gdb_connect_sync_socket): Use
6626         gdb_socket_cloexec.
6627         * common/filestuff.c: New file.
6628         * common/filestuff.h: New file.
6629         * common/linux-osdata.c (linux_common_core_of_thread)
6630         (command_from_pid, commandline_from_pid, print_source_lines)
6631         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6632         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6633         gdb_fopen_cloexec.
6634         * common/linux-procfs.c (linux_proc_get_int)
6635         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6636         * config.in, configure: Rebuild.
6637         * configure.ac: Don't check for sys/socket.h.  Check for
6638         fdwalk, pipe2.
6639         * corelow.c (core_open): Use gdb_open_cloexec.
6640         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6641         * fork-child.c (fork_inferior): Call close_most_fds.
6642         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6643         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6644         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6645         Use gdb_fopen_cloexec.
6646         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6647         gdb_open_cloexec.
6648         (linux_async_pipe): Use gdb_pipe_cloexec.
6649         * remote-fileio.c (remote_fileio_func_open): Use
6650         gdb_open_cloexec.
6651         * remote.c (remote_file_put, remote_file_get): Use
6652         gdb_fopen_cloexec.
6653         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6654         close_most_fds.
6655         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6656         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6657         * solib.c (solib_find): Use gdb_open_cloexec.
6658         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6659         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6660         (tfile_open): Use gdb_open_cloexec.
6661         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6662         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6663         * xml-support.c (xml_fetch_content_from_file): Use
6664         gdb_fopen_cloexec.
6665         * main.c (captured_main): Call notice_open_fds.
6666
6667 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6668
6669         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6670         'char *' to 'gdb_byte *'.
6671         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6672         'gdb_byte'.
6673
6674 2013-04-22  Yao Qi  <yao@codesourcery.com>
6675
6676         * infrun.c: Fix typo in comment.
6677
6678 2013-04-22  Andrew Haley  <aph@redhat.com>
6679
6680         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6681         instead of "long".
6682
6683 2013-04-20  Yao Qi  <yao@codesourcery.com>
6684
6685         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6686         'char *' to 'gdb_byte *'.  Cast the return value of
6687         'bt_ctf_get_char_array' to 'gdb_byte *'.
6688
6689 2013-04-19  Pedro Alves  <palves@redhat.com>
6690
6691         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6692         -Wpointer-sign.
6693         * configure: Regenerate.
6694
6695 2013-04-19  Pedro Alves  <palves@redhat.com>
6696
6697         * ser-tcp.c (net_read_prim): Cast second argument to recv to
6698         'void *'.
6699
6700 2013-04-19  Pedro Alves  <palves@redhat.com>
6701
6702         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6703         Change type of 'myaddr' parameter to gdb_byte pointer.
6704         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
6705         to 'long long' pointer instead of to 'unsigned long long'.
6706         (monitor_write_memory_block, monitor_read_memory_single)
6707         (monitor_read_memory): Change type of 'myaddr' parameter to
6708         gdb_byte pointer.
6709
6710 2013-04-19  Pedro Alves  <palves@redhat.com>
6711
6712         * record.c (validate_history_size): Make parameter 'setting'
6713         unsigned.
6714
6715 2013-04-19  Pedro Alves  <palves@redhat.com>
6716
6717         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6718         to 'gdb_byte *'.
6719
6720 2013-04-19  Pedro Alves  <palves@redhat.com>
6721
6722         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6723         local to int.
6724
6725 2013-04-19  Pedro Alves  <palves@redhat.com>
6726
6727         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6728         * ada-tasks.c (read_fat_string_value): Likewise.
6729
6730 2013-04-19  Pedro Alves  <palves@redhat.com>
6731
6732         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6733         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
6734         'offset', and adjust.
6735
6736 2013-04-19  Pedro Alves  <palves@redhat.com>
6737
6738         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6739         (read_index_from_section): Add cast to 'char *'.
6740
6741 2013-04-19  Pedro Alves  <palves@redhat.com>
6742
6743         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6744
6745 2013-04-19  Pedro Alves  <palves@redhat.com>
6746
6747         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6748
6749 2013-04-19  Pedro Alves  <palves@redhat.com>
6750
6751         * record-full.c (record_full_get_bookmark): Change local 'ret'
6752         type to char * and add cast to gdb_byte *.
6753         (record_full_goto_bookmark): Handle 'bookmark' argument as a
6754         string.
6755         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6756
6757 2013-04-19  Pedro Alves  <palves@redhat.com>
6758
6759         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6760         * python/py-prettyprint.c (print_string_repr): Change type of
6761         'output' local to char *.  Add cast to gdb_byte * in
6762         LA_PRINT_STRING call.
6763         (print_children): Change type of 'output' local to char *.
6764         * python/py-value.c (valpy_string): Add cast to const char * in
6765         PyUnicode_Decode call.
6766
6767 2013-04-19  Pedro Alves  <palves@redhat.com>
6768
6769         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6770         and change its type to 'const char *'.  Adjust.
6771         (mips_send_packet): Add cast to 'char *', and remove cast to
6772         'unsigned char *'.
6773         (mips_receive_packet): Remove cast to 'unsigned char *'.
6774         (mips_load_srec): Use bfd_byte.
6775         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6776         (pmon_checkset): Make 'value' parameter unsigned.
6777
6778 2013-04-19  Pedro Alves  <palves@redhat.com>
6779
6780         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6781
6782 2013-04-19  Pedro Alves  <palves@redhat.com>
6783
6784         * remote.c (remote_write_bytes_aux, compare_sections_command)
6785         (remote_read_qxfer)
6786         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6787         (remote_hostio_readlink, remote_bfd_iovec_pread)
6788         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6789         binary buffer, and char when buffer is used as string.
6790         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6791         (trace_save, tfile_open, traceframe_walk_blocks)
6792         (tfile_fetch_registers): Likewise.
6793
6794 2013-04-19  Pedro Alves  <palves@redhat.com>
6795
6796         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6797         buffer and size_t size.  Adjust.
6798         * ser-base.h (ser_base_write): Adjust.
6799         * ser-go32.c (cnts): Change type to size_t.
6800         (dos_write): Change prototype -- take 'void *'
6801         buffer and size_t size.  Adjust.
6802         (dos_info): Print elements of 'cnts' as unsigned long.
6803         * serial.c (serial_write): Likewise.
6804         * serial.h (serial_write): Adjust.
6805         (struct serial_ops) <write>: Change prototype -- take 'void *'
6806         buffer and size_t size.  Adjust.
6807
6808 2013-04-19  Pedro Alves  <palves@redhat.com>
6809
6810         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6811         gdb_byte *.
6812         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6813
6814 2013-04-19  Pedro Alves  <palves@redhat.com>
6815
6816         * alpha-tdep.c (alpha_extract_return_value): Use
6817         regcache_cooked_read_unsigned to read 'v0'.
6818
6819 2013-04-19  Pedro Alves  <palves@redhat.com>
6820
6821         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6822         parameters 'at', 'as' and 'offset' to uint32_t.
6823
6824 2013-04-19  Pedro Alves  <palves@redhat.com>
6825
6826         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6827         'is64' to signed 'int'.
6828
6829 2013-04-19  Pedro Alves  <palves@redhat.com>
6830
6831         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6832         parameter to int *.
6833
6834 2013-04-19  Pedro Alves  <palves@redhat.com>
6835
6836         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6837         'insnbuf' buffer type to unsigned int[].
6838
6839 2013-04-19  Pedro Alves  <palves@redhat.com>
6840
6841         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6842
6843 2013-04-19  Pedro Alves  <palves@redhat.com>
6844
6845         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6846         unsigned long *.
6847
6848 2013-04-19  Pedro Alves  <palves@redhat.com>
6849
6850         * alpha-tdep.c (heuristic_fence_post): Change type to int.
6851         (alpha_heuristic_proc_start): Adjust to check -1 instead of
6852         UINT_MAX.
6853         * mips-tdep.c (heuristic_fence_post): Change type to int.
6854         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6855
6856 2013-04-19  Pedro Alves  <palves@redhat.com>
6857
6858         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6859         (struct gdbarch_tdep) <cris_version>: Make unsigned.
6860         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6861
6862 2013-04-19  Pedro Alves  <palves@redhat.com>
6863
6864         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
6865         it to get a string view of the byte buffer.
6866         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6867         type to gdb_byte *.  Adjust.
6868         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6869         Change local to char *.
6870         * solib-darwin.c (find_program_interpreter): Change return type to
6871         char *.  Adjust.
6872         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6873         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6874         * solib-frv.c (enable_break2): Change local 'buf' to char *.
6875         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6876         * solib-svr4.c (find_program_interpreter): Change return type to
6877         char *.  Adjust.
6878         (enable_break): Change local 'interp_name' to char *.
6879         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6880         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6881         (spu_pseudo_register_write_spu): Use char for string buffer.
6882         Adjust.
6883         (info_spu_event_command, info_spu_signal_command): Add casts to
6884         'char *'.
6885
6886 2013-04-19  Pedro Alves  <palves@redhat.com>
6887
6888         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6889         gdb_byte[].
6890         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6891         * ada-lang.c (ada_value_assign): Use gdb_byte.
6892         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6893         (alphanbsd_sigtramp_offset): Use gdb_byte.
6894         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6895         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6896         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6897         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6898         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6899         * arm-tdep.c (arm_stub_unwind_sniffer)
6900         (arm_displaced_init_closure): Use gdb_byte.
6901         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6902         (arm_default_thumb_le_breakpoint)
6903         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6904         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6905         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6906         * arm-wince-tdep.c (arm_wince_le_breakpoint)
6907         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6908         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6909         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6910         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6911         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6912         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6913         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6914         (cris_store_return_value, cris_extract_return_value): Use
6915         gdb_byte.
6916         (constraint): Change type of parameter to char * from signed
6917         char*.  Use gdb_byte.
6918         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6919         of local buffer to gdb_byte *.
6920         * dwarf2read.c (read_index_from_section): Use gdb_byte.
6921         (create_dwp_hash_table): Change type of locals to gdb_byte *.
6922         (add_address_entry): Change type of local buffer to gdb_byte[].
6923         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6924         (frv_push_dummy_call): Use gdb_byte.
6925         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6926         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6927         (hppa_hpux_supply_save_state): Use gdb_byte.
6928         * hppa-tdep.c (hppa32_push_dummy_call)
6929         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6930         * ia64-tdep.c (extract_bit_field, replace_bit_field)
6931         (slotN_contents, replace_slotN_contents): Change type of parameter
6932         to gdb_byte *.
6933         (fetch_instruction, ia64_pseudo_register_write)
6934         (ia64_register_to_value, ia64_value_to_register)
6935         (ia64_extract_return_value, ia64_store_return_value)
6936         (ia64_push_dummy_call): Use gdb_byte.
6937         * m32c-tdep.c (m32c_return_value): Remove cast.
6938         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6939         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6940         gdb_byte.
6941         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6942         * mn10300-tdep.c (mn10300_store_return_value)
6943         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6944         gdb_byte.
6945         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6946         (moxie_process_record): Remove casts.
6947         * ppc-ravenscar-thread.c (supply_register_at_address)
6948         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6949         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6950         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6951         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6952         * remote.c (compare_sections_command): Use gdb_byte.
6953         * score-tdep.c (score7_free_memblock): Change type of parameter to
6954         gdb_byte *.
6955         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6956         gdb_byte *.  Use gdb_byte.
6957         (sh_push_dummy_call_fpu): Use gdb_byte.
6958         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6959         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6960         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6961         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6962         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6963         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6964         (sh64_store_return_value, sh64_register_convert_to_virtual):
6965         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6966         (sh64_pseudo_register_write): Use gdb_byte.
6967         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6968         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
6969         buffer.
6970         (irix_current_sos): Use gdb_byte.
6971         * solib-som.c (som_current_sos): Use gdb_byte.
6972         * sparc-ravenscar-thread.c (supply_register_at_address)
6973         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6974         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6975         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6976         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6977         'gdb_byte *'.
6978         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6979         'gdb_byte *'.
6980         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6981         * xstormy16-tdep.c (xstormy16_extract_return_value)
6982         (xstormy16_store_return_value): Change parameter type to
6983         'gdb_byte *'.  Adjust.
6984         (xstormy16_push_dummy_call): Use gdb_byte.
6985         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6986         (call0_analyze_prologue, execute_code): Use gdb_byte.
6987
6988 2013-04-19  Vladimir Kargov <kargov@gmail.com>
6989             Pedro Alves  <palves@redhat.com>
6990
6991         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6992         value contents.
6993
6994 2013-04-17  Doug Evans  <dje@google.com>
6995
6996         * dwarf2read.c (struct signatured_type): New member type.
6997         (struct attribute): Replace member signatured_type with signature.
6998         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6999         (read_call_site_scope): Call follow_die_ref instead of
7000         follow_die_ref_or_sig.
7001         (read_structure_type): Rewrite handling of signatured types.
7002         (read_enumeration_type): Ditto.
7003         (read_attribute_value): Update.
7004         (build_error_marker_type): New function.
7005         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
7006         Don't call error for bad types, just build an error marker type.
7007         (dump_die_shallow): Update.
7008         (follow_die_sig_1): Renamed from follow_die_sig.
7009         Don't call error for bad types, instead return NULL.
7010         (follow_die_sig): New function.
7011         (get_signatured_type, get_DW_AT_signature_type): New functions.
7012
7013 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
7014
7015         * aarch64-tdep.c (aarch64_write_pc): Removed.
7016         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7017         function.
7018
7019 2013-04-17  Yao Qi  <yao@codesourcery.com>
7020
7021         * top.c (print_gdb_configuration): Print configure-time
7022         parameter on using libbabeltrace or not.
7023
7024 2013-04-16  Pedro Alves  <palves@redhat.com>
7025
7026         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7027
7028 2013-04-16  Pedro Alves  <palves@redhat.com>
7029
7030         * common/glibc_thread_db.h: Update from upstream glibc
7031         (git 568035b7874a099087b77f7bba3e36a1173787b0).
7032
7033 2013-04-16  Pedro Alves  <palves@redhat.com>
7034
7035         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7036         * common/glibc_thread_db.h: ... this new file ...
7037         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7038
7039 2013-04-16  Will Newton  <will.newton@gmail.com>
7040             Pedro Alves  <palves@redhat.com>
7041
7042         PR build/11881
7043
7044         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7045         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7046         HAVE_THREAD_DB_H.
7047
7048 2013-04-16  Pedro Alves  <palves@redhat.com>
7049             Eli Zaretskii  <eliz@gnu.org>
7050
7051         * NEWS: Mention "set foo unlimited".
7052
7053 2013-04-15  Doug Evans  <dje@google.com>
7054
7055         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7056         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7057         (create_dwo_cu_reader): Renamed from
7058         create_dwo_debug_info_hash_table_reader.
7059         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7060         Remove support for multiple CUs in a DWO file.
7061         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7062
7063         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7064         instead of phex.
7065         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7066         (create_dwo_in_dwp): Ditto.
7067
7068 2013-04-15  Tom Tromey  <tromey@redhat.com>
7069
7070         * NEWS: Move recent entries into "since 7.6" section.
7071
7072 2013-04-15  Tom Tromey  <tromey@redhat.com>
7073
7074         PR c++/13588:
7075         * NEWS: Update.
7076         * break-catch-throw.c (struct exception_catchpoint)
7077         <exception_rx, pattern>: New fields.
7078         (fetch_probe_arguments, dtor_exception_catchpoint)
7079         (check_status_exception_catchpoint)
7080         (print_one_detail_exception_catchpoint): New functions.
7081         (handle_gnu_v3_exceptions): Add "except_rx" argument.
7082         Compile regular expression if needed.
7083         (extract_exception_regexp): New function.
7084         (catch_exception_command_1): Use extract_exception_regexp.
7085         (compute_exception): Use fetch_probe_arguments.
7086         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7087         and check_status fields.
7088         * cp-abi.c (cplus_typename_from_type_info): New function.
7089         * cp-abi.h (cplus_typename_from_type_info): Declare.
7090         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7091         * gdb_regex.h (compile_rx_or_error): Declare.
7092         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7093         comment.
7094         (init_gnuv3_ops): Set get_type_from_type_info field.
7095         * probe.c (compile_rx_or_error): Move...
7096         * utils.c (compile_rx_or_error): ... here.
7097
7098 2013-04-15  Tom Tromey  <tromey@redhat.com>
7099
7100         PR c++/15176:
7101         * NEWS: Update.
7102         * break-catch-throw.c (compute_exception): New function.
7103         (exception_funcs): New global.
7104         (_initialize_break_catch_throw): Create $_exception.
7105         * cp-abi.c (cplus_type_from_type_info): New function.
7106         * cp-abi.h (cplus_type_from_type_info): Declare.
7107         (struct cp_abi_ops) <get_type_from_type_info>: New field.
7108         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7109         (gnuv3_get_type_from_type_info): New functions.
7110         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7111
7112 2013-04-15  Tom Tromey  <tromey@redhat.com>
7113
7114         * break-catch-throw.c (struct exception_names): New.
7115         (exception_functions): Change type.
7116         (re_set_exception_catchpoint): Look for SDT probes.
7117
7118 2013-04-15  Tom Tromey  <tromey@redhat.com>
7119
7120         PR c++/10119:
7121         * break-catch-throw.c (exception_functions): New global.
7122         (gnu_v3_exception_catchpoint_ops): Move earlier.
7123         (struct exception_catchpoint): New.
7124         (classify_exception_breakpoint): Rewrite.
7125         (re_set_exception_catchpoint): New function.
7126         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
7127         Allocate a struct exception_catchpoint.
7128         (catch_exception_command_1): Update.
7129         (initialize_throw_catchpoint_ops): Set 're_set' method.
7130
7131 2013-04-15  Tom Tromey  <tromey@redhat.com>
7132
7133         * Makefile.in (SFILES): Add break-catch-throw.c
7134         (COMMON_OBS): Add break-catch-throw.o.
7135         * break-catch-throw.c: New file.
7136         * breakpoint.c: Move exception-catching code to new file.
7137         (ep_parse_optional_if_clause): No longer static.
7138         * breakpoint.h (ep_parse_optional_if_clause): Declare.
7139
7140 2013-04-15  Tom Tromey  <tromey@redhat.com>
7141
7142         PR c++/9065:
7143         * NEWS: Update.
7144         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7145         * c-exp.y (TYPEID): New token.
7146         (exp): Add new TYPEID productions.
7147         (ident_tokens): Add "typeid".
7148         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7149         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7150         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7151         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7152         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7153         case.
7154         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7155         (build_std_type_info_type, gnuv3_get_typeid_type)
7156         (gnuv3_get_typeid): New functions.
7157         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
7158         new fields on ABI object.
7159         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7160         * std-operator.def (OP_TYPEID): New.
7161
7162 2013-04-15  Tom Tromey  <tromey@redhat.com>
7163
7164         * elfread.c (elf_symtab_read): Install versioned symbol under
7165         unversioned name as well.
7166
7167 2013-04-15  Tom Tromey  <tromey@redhat.com>
7168
7169         PR c++/11990:
7170         * c-lang.c (cplus_language_defn): Use gdb_demangle.
7171         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7172         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7173         (gdb_demangle): New function.
7174         * cp-support.h (gdb_demangle): Declare.
7175         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7176         (dwarf2_name): Use gdb_demangle.
7177         * gdbtypes.c (check_stub_method): Use gdb_demangle.
7178         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7179         suffixes from name.
7180         (gnuv3_print_method_ptr): Use gdb_demangle.
7181         * jv-lang.c (java_demangle): Use gdb_demangle.
7182         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7183         * language.c (unk_lang_demangle): Use gdb_demangle.
7184         * symtab.c (symbol_find_demangled_name)
7185         (demangle_for_lookup): Use gdb_demangle.
7186
7187 2013-04-15  Tom Tromey  <tromey@redhat.com>
7188
7189         PR c++/12824:
7190         * NEWS: Update.
7191         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7192         New constant.
7193         (classify_exception_breakpoint): New function.
7194         (print_it_exception_catchpoint, print_one_exception_catchpoint)
7195         (print_mention_exception_catchpoint)
7196         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7197         (catch_exception_command_1): Handle "rethrow" catchpoint.
7198         (catch_rethrow_command): New function.
7199         (_initialize_breakpoint): Add "catch rethrow" command.
7200
7201 2013-04-15  Pierre Muller  <muller@sourceware.org>
7202
7203         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7204         set_gdbarch_write_pc as deprecated anymore.
7205
7206 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
7207
7208         * spu-tdep.c (spu_write_pc): Add empty line after local variable
7209         declarations.
7210
7211 2013-04-13  Yao Qi  <yao@codesourcery.com>
7212
7213         * ctf.c (_initialize_ctf): Include "completer.h".
7214         Call add_target_with_completer instead of add_target.
7215
7216 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7217
7218         Fix GDB regression related to PR binutils/14813.
7219         * jit.c (mem_bfd_iovec_close): Return 0 for success.
7220         * minidebug.c (lzma_close): Add return value comment.
7221         * remote.c (remote_bfd_iovec_close): Return 0 for success.
7222         * solib-spu.c (spu_bfd_iovec_close): Likewise.
7223         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7224
7225 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7226
7227         * config.in: Regenerate.
7228
7229 2013-04-12  Tom Tromey  <tromey@redhat.com>
7230
7231         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7232         const.
7233         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7234         (struct die_reader_specs) <buffer>: Likewise.
7235         (die_reader_func_ftype): Make 'info_ptr' const.
7236         (struct line_header) <include_dirs, statement_program_start,
7237         statement_program_end>: Now const.
7238         (struct file_entry) <name>: Likewise.
7239         (struct partial_die_info) <sibling>: Likewise.
7240         (struct dwarf_block) <data>: Likewise.
7241         (dwarf2_read_section): Remove cast.
7242         (dwarf2_get_section_info): Make 'bufp' const.
7243         (read_index_from_section): Constify.
7244         (dw2_get_file_names_reader): Make 'info_ptr' const.
7245         (dw2_get_primary_filename_reader): Likewise.
7246         (read_comp_unit_head): Make 'info_ptr' and return type const.
7247         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7248         Likewise.
7249         (read_abbrev_offset): Constify.
7250         (dwarf2_create_include_psymtab): Make 'name' const.
7251         (create_debug_types_hash_table): Update.
7252         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7253         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7254         Constify.
7255         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7256         (load_partial_comp_unit_reader): Make 'info_ptr' const.
7257         (read_comp_units_from_section): Constify.
7258         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7259         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7260         const.
7261         (dwarf2_compute_name, setup_type_unit_groups): Constify.
7262         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7263         (create_dwp_hash_table, dwarf2_ranges_read)
7264         (dwarf2_record_block_ranges): Constify.
7265         (read_die_and_children, read_die_and_siblings_1)
7266         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7267         const.
7268         (read_full_die_1, read_full_die): Make 'info_ptr' const.
7269         (abbrev_table_read_table): Constify.
7270         (load_partial_dies): Make 'info_ptr' const.
7271         (read_partial_die, read_attribute_value, read_attribute): Make
7272         'info_ptr' and return type const.
7273         (read_address, read_initial_length)
7274         (read_checked_initial_length_and_offset, read_offset)
7275         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7276         const.
7277         (read_direct_string): Make 'buf' and return type const.
7278         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7279         (read_indirect_string): Make return type const.
7280         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7281         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7282         'info_ptr' const.
7283         (read_str_index): Make return type const.
7284         (add_include_dir): Make 'include_dir' const.
7285         (add_file_name): Make 'name' const.
7286         (dwarf_decode_line_header): Constify.
7287         (psymtab_include_file_name): Make return type const.
7288         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7289         (dwarf2_start_subfile): Make 'filename' const.
7290         (dwarf2_const_value_attr): Make 'bytes' const.
7291         (read_signatured_type_reader): Make 'info_ptr' const.
7292         (decode_locdesc): Constify.
7293         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7294         const.
7295         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7296         'mac_end', and return type const.
7297         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7298         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7299         type const.
7300         (per_cu_header_read_in): Constify.
7301         * symfile.h (dwarf2_get_section_info): Update.
7302
7303 2013-04-12  Tom Tromey  <tromey@redhat.com>
7304
7305         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7306
7307 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
7308
7309         * NEWS: Mention "show configuration", --configuration.
7310         * top.c (print_gdb_configuration): New function, displays the
7311         details about GDB configure-time parameters.
7312         (print_gdb_version): Mention "show configuration".
7313         * cli/cli-cmds.c (show_configuration): New function.
7314         (_initialize_cli_cmds): Add the "show configuration" command.
7315         * main.c (captured_main) <print_configuration>: New static var.
7316         <long_options>: Use it.
7317         If --configuration was given, call print_gdb_configuration.
7318
7319 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7320             Pedro Alves  <palves@redhat.com>
7321
7322         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7323         (generated_files): Add gcore.
7324         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7325         HAVE_NATIVE_GCORE_HOST.
7326         (gcore): New.
7327         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7328         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7329         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7330         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7331         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7332         Add HAVE_NATIVE_GCORE_HOST.
7333         * configure: Regenerate.
7334         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7335         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
7336         AC_CONFIG_FILES for gcore.
7337         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
7338         gdb_have_gcore.
7339         * gdb_gcore.sh: Rename to ...
7340         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
7341         and GCORE_TRANSFORM_NAME substitutions.
7342
7343         Fix parsing tabs in ${gdb_target_obs}.
7344         * configure.tgt (gdb_have_gcore): Replace case with for and if.
7345
7346 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7347
7348         * remote.c (unpush_and_perror): Add output message final dot.
7349
7350 2013-04-11  Yao Qi  <yao@codesourcery.com>
7351
7352         * tracepoint.c (tfile_interp_line): Fit parameters line and
7353         utpp in one line.
7354
7355 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
7356
7357         * solib.c (solib_map_sections): Remove code overwriting
7358         SO->SO_NAME with the bfd's filename.
7359
7360 2013-04-10  Pedro Alves  <palves@redhat.com>
7361
7362         * cli/cli-decode.c (integer_unlimited_completer): New function.
7363         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7364         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7365         completer.
7366         * cli/cli-setshow.c: Include "cli/cli-utils.h".
7367         (is_unlimited_literal): New function.
7368         (do_set_command): Handle literal "unlimited" arguments.
7369         * frame.c (_initialize_frame) <set backtrace limit>: Document
7370         "unlimited".
7371         * printcmd.c (_initialize_printcmd) <set print
7372         max-symbolic-offset>: Add help text.
7373         * record-full.c (_initialize_record_full) <set record full
7374         insn-number-max>: Likewise.
7375         * record.c (_initialize_record) <set record
7376         instruction-history-size, set record function-call-history-size>:
7377         Add help text.
7378         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7379         help text.
7380         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7381         Likewise.
7382         * source.c (_initialize_source) <set listsize>: Add help text.
7383         * utils.c (initialize_utils) <set height, set width>: Likewise.
7384         <set pagination>: Mention "set height unlimited".
7385         * valprint.c (_initialize_valprint) <set print elements, set print
7386         repeats>: Document "unlimited".
7387
7388 2013-04-10  Pedro Alves  <palves@redhat.com>
7389
7390         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7391         instead of disconnect_tracing.
7392         * infcmd.c (detach_command, disconnect_command): Call
7393         query_if_trace_running.  Adjust.
7394         * top.c: Include "tracepoint.h".
7395         (quit_target): Delete.  Contents moved ...
7396         (quit_force): ... here.  Wrap each stage of teardown in
7397         TRY_CATCH.  Call disconnect_tracing before detaching.
7398
7399 2013-04-10  Hui Zhu  <hui@codesourcery.com>
7400             Yao Qi  <yao@codesourcery.com>
7401
7402         * configure.ac: Check libbabeltrace is installed.
7403         * config.in: Regenerate.
7404         * configure: Regenerate.
7405         * Makefile.in (LIBBABELTRACE): New.
7406         (CLIBS): Add LIBBABELTRACE.
7407         * ctf.c: Include "exec.h".
7408         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7409         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7410         (ctf_save_metadata_header): Define new type aliases in
7411         metadata.
7412         (ctf_write_header): Define event type "tsv_def" and "tp_def"
7413         in metadata.  Start a new faked packet for trace status.
7414         (ctf_write_status): Write trace status to CTF.
7415         (ctf_write_uploaded_tsv): Write TSV to CTF.
7416         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7417         (ctf_write_definition_end): End the faked packet.
7418
7419         (ctx, ctf_iter, trace_dirname): New.
7420         (start_pos): New variable.
7421         (ctf_destroy, ctf_open_dir, ctf_open): New.
7422         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7423         macros.
7424         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7425         (ctf_fetch_registers, ctf_xfer_partial): New.
7426         (ctf_get_trace_state_variable_value): New.
7427         (ctf_get_tpnum_from_frame_event): New.
7428         (ctf_get_traceframe_address): New.
7429         (ctf_trace_find, ctf_has_stack): New.
7430         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7431         (ctf_get_trace_status, ctf_read_status): New.
7432         (_initialize_ctf): New.
7433         * tracepoint.c (get_tracepoint_number): New
7434         (get_uploaded_tsv): Remove 'static'.
7435         (struct traceframe_info, trace_regblock_size): Move it to ...
7436         * tracepoint.h: ... here.
7437         (get_tracepoint_number): Declare it.
7438         (get_uploaded_tsv): Declare it.
7439
7440         * NEWS: Mention new configure option.
7441
7442 2013-04-10  Pedro Alves  <palves@redhat.com>
7443             Hui Zhu  <hui@codesourcery.com>
7444
7445         * breakpoint.c (dprintf_re_set): New.
7446         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7447         to dprintf_re_set.
7448
7449 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7450
7451         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7452         Remove solib-svr4.o from the list.
7453
7454 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7455
7456         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7457         Use gdb_assert_not_reached instead of invalid boolean expression.
7458
7459 2013-04-09  Pedro Alves  <palves@redhat.com>
7460
7461         * remote.c (unpush_and_perror): New function.
7462         (readchar, remote_serial_write): Use it.
7463
7464 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
7465
7466         * NEWS: Mention new btrace RSP packets.
7467
7468 2013-04-08  Tom Tromey  <tromey@redhat.com>
7469
7470         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7471         long.
7472
7473 2013-04-08  Tom Tromey  <tromey@redhat.com>
7474
7475         * maint.c (print_bfd_section_info): Print the section index.
7476         * symmisc.c (dump_msymbols): Print the section index.
7477
7478 2013-04-08  Tom Tromey  <tromey@redhat.com>
7479
7480         PR symtab/8424:
7481         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7482         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7483         * breakpoint.c (resolve_sal_pc): Update.
7484         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7485         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7486         (minsym_lookup_iterator_cb): Use it.
7487         (default_read_var_value): Update.
7488         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7489         Update.
7490         * infcmd.c (jump_command): Update.
7491         * linespec.c (minsym_found): Update.
7492         * maint.c (maintenance_translate_address): Update.
7493         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7494         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7495         * parse.c (write_exp_msymbol): Update.
7496         * printcmd.c (address_info): Update.
7497         * psymtab.c (find_pc_sect_psymbol): Update.
7498         (fixup_psymbol_section): Check SYMBOL_SECTION, not
7499         SYMBOL_OBJ_SECTION.
7500         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7501         Don't initialize SYMBOL_OBJ_SECTION.
7502         * spu-tdep.c (spu_catch_start): Update.
7503         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7504         * symmisc.c (dump_msymbols, print_symbol): Update.
7505         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
7506         how fallback section is computed.
7507         (fixup_symbol_section): Update.
7508         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7509         Update.
7510         (allocate_symbol, initialize_symbol, allocate_template_symbol):
7511         Initialize SYMBOL_SECTION.
7512         * symtab.h (struct general_symbol_info) <section>: Update comment.
7513         <obj_section>: Remove.
7514         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
7515         (SYMBOL_OBJFILE): New macro.
7516
7517 2013-04-08  Tom Tromey  <tromey@redhat.com>
7518
7519         * coffread.c (record_minimal_symbol): Update.
7520         * dbxread.c (record_minimal_symbol): Update.
7521         * elfread.c (record_minimal_symbol): Update.
7522         * machoread.c (macho_symtab_add_minsym): Update.
7523         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7524         Update.
7525         * minsyms.c (prim_record_minimal_symbol): Update.
7526         (prim_record_minimal_symbol_full): Remove 'bfd_section'
7527         argument.
7528         (prim_record_minimal_symbol_and_info): Likewise.
7529         * minsyms.h (prim_record_minimal_symbol_full)
7530         (prim_record_minimal_symbol_and_info): Update.
7531         * symtab.c (allocate_symbol, initialize_symbol)
7532         (allocate_template_symbol): Initialize SYMBOL_SECTION.
7533         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7534         Update.
7535
7536 2013-04-08  Tom Tromey  <tromey@redhat.com>
7537
7538         PR symtab/8423:
7539         * solib-som.c (som_solib_section_offsets): Use BFD section
7540         indices.  Set offsets for all sections.
7541         * somread.c (som_symtab_read): Compute BFD section for
7542         symbol.  Use prim_record_minimal_symbol_and_info.
7543         (som_symfile_read): Fix comment.
7544         (struct find_section_offset_arg): New.
7545         (find_section_offset, set_section_index): New functions.
7546         (som_symfile_offsets): Use set_section_index to compute
7547         section indices.
7548
7549 2013-04-08  Tom Tromey  <tromey@redhat.com>
7550
7551         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7552         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7553         gdb_bfd_section_index.
7554         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7555         New functions.
7556         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7557         Declare.
7558         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7559         Update.
7560         * objfiles.c (add_to_objfile_sections_full): New function.
7561         (add_to_objfile_sections): Use it.
7562         (build_section_table): Rewrite.
7563         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
7564         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7565         (struct objfile) <sections>: Update comment.
7566         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7567         is NULL.
7568         (ALL_OBJSECTIONS): Use it.
7569         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7570         * solib-frv.c (frv_relocate_main_executable): Update.
7571         * solib-target.c (solib_target_relocate_section_addresses):
7572         Use gdb_bfd_section_index.
7573         * symfile.c (build_section_addr_info_from_section_table):
7574         Use gdb_bfd_section_index.
7575         (build_section_addr_info_from_bfd, place_section): Likewise.
7576         * symtab.c (fixup_section): Update.
7577         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7578
7579 2013-04-08  Tom Tromey  <tromey@redhat.com>
7580
7581         * minsyms.h (struct bound_minimal_symbol): New.
7582         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7583         Remove objfile argument.
7584         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7585         Return bound_minimal_symbol.
7586         * minsyms.c (lookup_minimal_symbol_by_pc_1)
7587         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7588         Return bound_minimal_symbol.
7589         (in_gnu_ifunc_stub): Update.
7590         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7591         Remove 'objfile_p' argument.
7592         (lookup_solib_trampoline_symbol_by_pc): Update.
7593         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7594         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7595         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7596         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7597         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7598         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7599         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7600         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7601         stack.c, symtab.c, tui/tui-disasm.c: Update.
7602
7603 2013-04-08  Tom Tromey  <tromey@redhat.com>
7604
7605         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7606         Use symbol's obstack, not an objfile.
7607         * coffread.c (process_coff_symbol): Update.
7608         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7609         * jv-lang.c (add_class_symbol): Update.
7610         * mdebugread.c (new_symbol): Update.
7611         * minsyms.c (prim_record_minimal_symbol_full)
7612         (terminate_minimal_symbol_table): Update.
7613         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
7614         * stabsread.c (define_symbol, read_enum_type): Update.
7615         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7616         Handle Ada specially.
7617         (symbol_set_language): Add 'obstack' argument.
7618         (symbol_set_names): Update.
7619         (symbol_natural_name, symbol_demangled_name): Always use
7620         ada_decode_symbol.
7621         * symtab.h (struct general_symbol_info)
7622         <language_specific::obstack>: New field.
7623         <ada_mangled>: New field.
7624         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7625         (symbol_set_language): Update.
7626
7627 2013-04-08  Tom Tromey  <tromey@redhat.com>
7628
7629         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7630         Take an obstack, not an objfile.
7631         (symbol_set_names): Update.
7632         * symtab.h (symbol_set_demangled_name): Update.
7633
7634 2013-04-08  Tom Tromey  <tromey@redhat.com>
7635
7636         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7637         allocate_symbol.
7638         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7639         (read_func_scope): Call allocate_template_symbol.
7640         (new_symbol_full): Call allocate_symbol.
7641         * jit.c (finalize_symtab): Call allocate_symbol.
7642         * jv-lang.c (add_class_symbol): Call allocate_symbol.
7643         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7644         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7645         (common_block_end): Call allocate_symbol.
7646         * symtab.c (allocate_symbol, initialize_symbol)
7647         (allocate_template_symbol): New functions.
7648         * symtab.c (allocate_symbol, initialize_symbol)
7649         (allocate_template_symbol): Declare.
7650         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7651
7652 2013-04-08  Pedro Alves  <palves@redhat.com>
7653             Keith Seitz  <keiths@redhat.com>
7654
7655         * breakpoint.c (create_breakpoint): Rename
7656         "parse_condition_and_thread" parameter to "parse_arg".  Update
7657         describing comment.  If !PARSE_ARG, then error out if ARG is not
7658         the empty string after extracting the location.
7659         * breakpoint.h (create_breakpoint): Rename
7660         "parse_condition_and_thread" parameter to "parse_arg".
7661
7662 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
7663
7664         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7665
7666 2013-04-07  Yao Qi  <yao@codesourcery.com>
7667
7668         * remote.c (remote_trace_find): Change type of parameters 'addr1'
7669         and 'addr2' to CORE_ADDR.
7670         * target.c (update_current_target): Update.
7671         * target.h (struct target_ops) <to_trace_find>: Change parameter
7672         type to CORE_ADDR.
7673         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7674         'addr2' to CORE_ADDR.
7675         (tfile_trace_find): Likewise.
7676         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7677         Change local variable 'addr' to type CORE_ADDR.
7678         * tracepoint.h (tfind_1): Update declaration.
7679
7680 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
7681
7682         * windows-nat.c (windows_get_absolute_argv0): Move from here...
7683         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7684         Include main.h.
7685
7686         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7687         here...
7688         * main.h (windows_get_absolute_argv0): ...to here.
7689
7690 2013-04-05  Doug Evans  <dje@google.com>
7691
7692         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7693         (read_cutu_die_from_dwo): Add comments.
7694         (read_structure_type): Update comment.
7695         (read_enumeration_type, read_namespace_type): Update comment.
7696         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7697
7698 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7699
7700         Convert man pages to texinfo, new gdbinit.5 texinfo page.
7701         * Makefile.in (gdb.z): Remove.
7702         (install-only): Remove $(man1dir) and gdb.1 installation.
7703         * gdb.1: Remove.
7704
7705 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7706
7707         Fix compatibility with Linux kernel 3.8.3.
7708         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7709         to more inner block.  Remove parsing of NUMBER from outer block.
7710         Parse NUMBER only if KEYWORD has been identified.
7711
7712 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7713
7714         Fix variable name shadowing.
7715         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7716         filename to mapsfilename and update its uses.
7717
7718 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
7719
7720         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7721         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7722         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7723         details of the problem.
7724
7725 2013-04-04  Pedro Alves  <palves@redhat.com>
7726             Hui Zhu  <hui@codesourcery.com>
7727
7728         * breakpoint.c (validate_commands_for_breakpoint): If validating a
7729         tracepoint, reset its STEP_COUNT and call validate_actionline.
7730
7731 2013-04-03  Doug Evans  <dje@google.com>
7732
7733         * dwarf2read.c (read_die_and_siblings_1): Renamed from
7734         read_die_and_siblings.
7735         (read_die_and_siblings): New function.
7736         (read_cutu_die_from_dwo): Dump die if requested.
7737         (read_die_and_children): Call read_full_die_1 and
7738         read_die_and_siblings_1.
7739         (read_full_die): Dump die if requested.
7740
7741         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7742
7743         * dwarf2read.c (struct dwo_file): New member comp_dir.
7744         Rename member name to dwo_name.  All uses updated.
7745         (hash_dwo_file): Include comp_dir in computation.
7746         (eq_dwo_file): Ditto.
7747         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
7748         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7749
7750         * psymtab.c (read_psymtabs_with_fullname): Don't call
7751         psymtab_to_fullname if the basenames are different.
7752
7753 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7754
7755         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7756         New entry about "fullname" presence.
7757
7758 2013-04-03  Pedro Alves  <palves@redhat.com>
7759
7760         * NEWS: Mention x86_64/Cygwin as new native configuration.
7761
7762 2013-04-02  Doug Evans  <dje@google.com>
7763
7764         * dwarf2read.c (read_structure_type): Fix typo in comment.
7765
7766 2013-04-02  Pedro Alves  <palves@redhat.com>
7767
7768         * NEWS: Mention "set/show debug aarch64", "set/show debug
7769         coff-pe-read" and "set/show debug mach-o".
7770
7771 2013-04-02  Pedro Alves  <palves@redhat.com>
7772
7773         * NEWS: Mention "set/show remote trace-buffer-size-packet".
7774
7775 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
7776
7777         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7778         gdb_string.h is now in common/.
7779
7780 2013-04-02  Pedro Alves  <palves@redhat.com>
7781
7782         * NEWS: Move "set debug notification" and "set trace-buffer-size"
7783         under "New options".
7784
7785 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7786
7787         Revert this patch:
7788         PR gdb/15275
7789         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7790
7791 2013-04-02  Pedro Alves  <palves@redhat.com>
7792
7793         PR gdb/15275
7794
7795         * remote.c (send_interrupt_sequence): Use remote_serial_write.
7796         (remote_serial_write): New function.
7797         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7798
7799 2013-04-01  Jiong Wang  <jiwang@tilera.com>
7800
7801         * NEWS: Mention TILE-Gx in "New native configurations" and
7802         "New targets" sections.
7803
7804 2013-04-01  Doug Evans  <dje@google.com>
7805
7806         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7807         (process_enumeration_scope): Simplify.
7808
7809         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7810         type_unit_group ...
7811         (struct signatured_type): ... to here.
7812         (sig_type_ptr): New typedef.
7813         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
7814         out of union 't'.  All uses updated.
7815         (dw2_get_file_names_reader): Assert not called for a type unit.
7816         (dw2_get_file_names): Assert not called for a type unit or type
7817         unit group.
7818         (build_type_psymtabs_reader): Assert called for a type unit.
7819         (build_type_psymtab_dependencies): Assert called for a type unit group.
7820
7821         * dwarf2read.c (free_dwo_file): Add comment.
7822         (dwarf2_per_objfile_free): Unref dwp bfd.
7823
7824 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7825
7826         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7827         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7828         (read_pe_exported_syms): Remove unused 'exportix'.
7829         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7830         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7831         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7832
7833 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7834
7835         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7836         (print_it_watchpoint): Remove unused 'bl'.
7837         (say_where): Remove unused 'uiout'.
7838         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7839         (bkpt_breakpoint_hit): Remove unused 'b'.
7840         (internal_bkpt_print_it): Remove unused 'uiout'.
7841         * buildsym.c (augment_type_symtab): Remove unused 'i'.
7842
7843 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7844
7845         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7846         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7847
7848 2013-03-29  Doug Evans  <dje@google.com>
7849
7850         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7851         Delete arg is_dwp.  All callers updated.
7852         (open_dwp_file): New function.
7853         (open_and_init_dwp_file): Call it.
7854         (get_dwp_file): New function.
7855         (lookup_dwo_cutu): Call it.
7856
7857         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7858         unnecessary, cleanup.
7859
7860         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7861
7862         * dwarf2read.c (read_cutu_die_from_dwo): New function.
7863         (lookup_dwo_unit): New function.
7864         (init_cutu_and_read_dies): Move DWO handling to new functions.
7865
7866         * dwarf2read.c (struct signatured_type): Tweak comment.
7867         (struct dwo_unit): Tweak comment.
7868         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
7869         (create_dwo_debug_info_hash_table): Tweak comment.
7870         (dwarf2_per_cu_offset_and_type): Tweak comment.
7871
7872         * dwarf2read.c (lookup_signatured_type): Remove complaint about
7873         missing .debug_types section.
7874
7875 2013-03-29  Yao Qi  <yao@codesourcery.com>
7876
7877         * corelow.c: Include "completer.h".
7878         (_initialize_corelow): Call add_target_with_completer with
7879         argument 'filename_completer'.
7880         * tracepoint.c: Likewise.
7881         * exec.c (_initialize_exec): Likewise.
7882         * target.c (add_target): Rename to ...
7883         (add_target_with_completer): ... this.  Call set_cmd_completer
7884         if parameter completer is not NULL.
7885         (add_target): New.
7886         * target.h: Include "command.h".
7887         (add_target_with_completer): Declare it.
7888
7889 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
7890
7891         * coffread.c (is_import_fixup_symbol): New function.
7892         (record_minimal_symbol): Use is_import_fixup_symbol to
7893         detect import fixup symbols, and discard them.
7894
7895 2013-03-28  Doug Evans  <dje@google.com>
7896
7897         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7898         types hash table until we know we need it.
7899
7900         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7901         index numbers.
7902
7903         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7904         All callers updated.
7905         (dw2_print_stats): Print #read CUs too.
7906         (dump_die_shallow): Print signatured types better.
7907
7908         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7909         info_or_types_section to section.  All uses updated.
7910         (struct dwo_unit): Ditto.
7911
7912 2013-03-28  Pedro Alves  <palves@redhat.com>
7913
7914         * NEWS (New options): New section.
7915         (New options): Mention set/show remote trace-status-packet.
7916         * remote.c (PACKET_qTStatus): New enumeration value.
7917         (remote_get_trace_status): Skip sending qTStatus if the packet is
7918         disabled.  Use packet_ok.
7919         (_initialize_remote): Register a configuration command for
7920         qTStatus packet.
7921
7922 2013-03-28  Doug Evans  <dje@google.com>
7923
7924         * symfile.c (find_separate_debug_file): Add comment.
7925         (terminate_after_last_dir_separator): Tweak comment.
7926
7927         * dwarf2read.c (create_partial_symtab): Add forward decl.
7928         (create_partial_symtab): Move to be closer to other psymtab functions.
7929         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7930
7931         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7932         (compute_symtab_includes): Remove unnecessary forward declaration.
7933         (die_needs_namespace): Add comment marking group of functions for
7934         dwarf2 name computation.
7935
7936         * typeprint.c (_initialize_typeprint): Improve type help text.
7937
7938         * python/python.c (finish_python_initialization): Provide suggestion
7939         for how to tell gdb to find its python files.
7940
7941 2013-03-28  Pedro Alves  <palves@redhat.com>
7942
7943         PR gdb/15294
7944
7945         * source.c (_initialize_source): Change back "set listsize" to an
7946         integer command.
7947
7948 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
7949
7950         PR gdb/15275
7951         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7952
7953 2013-03-27  Pedro Alves  <palves@redhat.com>
7954
7955         * top.c (history_size): Rename to ...
7956         (history_size_setshow_var): ... this.  Add comment.
7957         (show_commands): Use readline's 'history_length' instead of
7958         computing the history length by calling history_get in a loop.
7959         (set_history_size_command): Error out for sizes over INT_MAX.
7960         Restore previous history size on invalid size.
7961         (init_history): If HISTSIZE is negative, leave the history size as
7962         zero.  Add comments.
7963         (init_main): Adjust.
7964
7965 2013-03-27  Pedro Alves  <palves@redhat.com>
7966
7967         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7968         coff_pe_read" command to "set debug coff-pe-read".
7969
7970 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
7971
7972         * record.c (command_size_to_target_size): Fix size comparison.
7973         Change parameter type from pointer to integer to integer.
7974         Update all users.
7975
7976 2013-03-27  Pierre Muller  <muller@sourceware.org>
7977
7978         * windows-nat.c (handle_output_debug_string): Avoid typecast
7979         from integer of different size warning.
7980
7981 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
7982
7983         * windows-nat.c (handle_output_debug_string): Add empty line
7984         after local block variable definition.
7985
7986 2013-03-26  Pedro Alves  <palves@redhat.com>
7987
7988         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7989         (net_open): Make 'polls' local unsigned.
7990
7991 2013-03-26  Pedro Alves  <palves@redhat.com>
7992
7993         * remote.c (_initialize_remote): Make "set remoteaddresssize"
7994         a zuinteger command instead of uinteger.
7995
7996 2013-03-26  Pedro Alves  <palves@redhat.com>
7997
7998         * record-full.c (record_full_insn_num): Make it unsigned.
7999         (record_full_check_insn_num, record_full_message)
8000         (record_full_registers_change, record_full_xfer_partial): Remove
8001         record_full_insn_max_num check (it's always != 0).
8002         (record_full_info, record_full_restore): Use %u as format string.
8003         (): Use %u as format string.
8004         (set_record_full_insn_max_num): Remove record_full_insn_max_num
8005         check (it's always != 0).
8006
8007 2013-03-26  Pedro Alves  <palves@redhat.com>
8008
8009         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8010         and "set dcache size" commands zuinteger instead of uinteger.
8011
8012 2013-03-26  Pedro Alves  <palves@redhat.com>
8013
8014         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8015         command zuinteger instead of uinteger.
8016
8017 2013-03-26  Pedro Alves  <palves@redhat.com>
8018
8019         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8020         zuinteger instead of uinteger.
8021
8022 2013-03-26  Pedro Alves  <palves@redhat.com>
8023
8024         * record.c (record_insn_history_size_setshow_var)
8025         (record_call_history_size_setshow_var): New globals.
8026         (command_size_to_target_size): New function.
8027         (cmd_record_insn_history, cmd_record_call_history): Use
8028         command_size_to_target_size instead of cast.
8029         (validate_history_size, set_record_insn_history_size)
8030         (set_record_call_history_size): New functions.
8031         (_initialize_record): Install set_record_insn_history_size and
8032         set_record_call_history_size as "set" hooks of "set record
8033         instruction-history-size" and "set record
8034         function-call-history-size".
8035
8036 2013-03-26  Pedro Alves  <palves@redhat.com>
8037
8038         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8039         use with history_max_entries use.  Remove FIXME note.
8040
8041 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
8042
8043         * record-btrace.c (record_btrace_close): Call
8044         record_btrace_auto_disable.
8045
8046 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
8047
8048         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8049
8050 2013-03-25  Doug Evans  <dje@google.com>
8051
8052         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8053
8054 2013-03-25  Tom Tromey  <tromey@redhat.com>
8055
8056         PR symtab/11462:
8057         * c-exp.y (exp): Add new productions for destructors after '.' and
8058         '->'.
8059         (write_destructor_name): New function.
8060
8061 2013-03-25  Tom Tromey  <tromey@redhat.com>
8062
8063         PR c++/9197:
8064         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8065         value_struct_elt, not lookup_struct_elt_type.
8066         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8067         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8068         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8069
8070 2013-03-25  Yao Qi  <yao@codesourcery.com>
8071
8072         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8073         instead of '_mkdir'.
8074
8075 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
8076
8077         * windows-nat.c (windows_get_absolute_argv0): New function.
8078         * windows-nat.h: Add its prototype.
8079
8080         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8081         Use IS_DIR_SEPARATOR instead of looking for a character inside
8082         SLASH_STRING.  Include filenames.h.
8083         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8084         relocate_gdb_directory works when passed gdb_program_name.
8085         Include windows-nat.h.
8086
8087 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8088
8089         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8090         * remote.c (trace_error): Remove the special handling of '2'.
8091         (readchar) <SERIAL_EOF>
8092         (readchar) <SERIAL_ERROR>
8093         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8094         (remote_get_trace_status): Call throw_exception if EX is
8095         TARGET_CLOSE_ERROR.
8096         * utils.c (perror_with_name): Rename to ...
8097         (throw_perror_with_name): ... here.  New parameter errcode, describe it
8098         in the function comment.
8099         (perror_with_name): New function wrapper.
8100         * utils.h (enum errors): New stub declaration.
8101         (throw_perror_with_name): New declaration.
8102
8103 2013-03-22  Pedro Alves  <palves@redhat.com>
8104             Yao Qi  <yao@codesourcery.com>
8105             Mark Kettenis  <kettenis@gnu.org>
8106
8107         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8108         Don't let the user set the value to UINT_MAX directly.
8109         <var_integer>: Don't let the user set the value to INT_MAX
8110         directly.
8111
8112 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8113
8114         * remote.c (remote_unpush_target): New function.
8115         (remote_open_1): Remove two pop_target calls, update one comment, add
8116         comment to target_preopen call.  Replace pop_target call by
8117         remote_unpush_target call.
8118         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8119         pop_target calls by remote_unpush_target calls.
8120
8121 2013-03-22  Pedro Alves  <palves@redhat.com>
8122
8123         * linux-nat.c (linux_child_follow_fork): Don't call
8124         linux_enable_event_reporting.
8125         (linux_handle_extended_wait): Don't call
8126         linux_enable_event_reporting.
8127
8128 2013-03-22  Pedro Alves  <palves@redhat.com>
8129
8130         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8131         use it to rewrite the trampoline buffers with type gdb_byte[], and
8132         undefine the macro.  Remove char* cast.
8133
8134 2013-03-21  Doug Evans  <dje@google.com>
8135
8136         New commands "mt set per-command {space,time,symtab} {on,off}".
8137         * NEWS: Add entry.
8138         * event-top.c: #include "maint.h".
8139         * main.c: #include "maint.h".
8140         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8141         timeval-utils.h, maint.h, cli/cli-setshow.h.
8142         (per_command_time, per_command_space): New static globals.
8143         (per_command_symtab): New static global.
8144         (per_command_setlist, per_command_showlist): New static globals.
8145         (struct cmd_stats): Move here from utils.c.
8146         (set_per_command_time): Renamed from set_display_time in utils.c
8147         and moved here.  All callers updated.
8148         (set_per_command_space): Renamed from set_display_space in utils.c
8149         and moved here.  All callers updated.
8150         (count_symtabs_and_blocks): New function.
8151         (report_command_stats): Moved here from utils.c.  Add support for
8152         printing symtab stats.  Only print data if enabled before command
8153         executed.
8154         (make_command_stats_cleanup): Ditto.
8155         (sert_per_command_cmd, show_per_command_cmd): New functions.
8156         (_initialize_maint_cmds): Add new commands
8157         mt set per-command {space,time,symtab} {on,off}.
8158         * maint.h: New file.
8159         * top.c: #include "maint.h".
8160         * utils.c (reset_prompt_for_continue_wait_time): New function.
8161         (get_prompt_for_continue_wait_time): New function.
8162         * utils.h (reset_prompt_for_continue_wait_time): Declare
8163         (get_prompt_for_continue_wait_time): Declare.
8164         (make_command_stats_cleanup): Moved to maint.h.
8165         (set_display_time, set_display_space): Moved to maint.h and renamed
8166         to set_per_command_time, set_per_command_space.
8167         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8168         parse_binary_operation and made non-static.  Don't call error,
8169         just return an error marker.  All callers updated.
8170         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8171
8172 2013-03-21  Tom Tromey  <tromey@redhat.com>
8173
8174         * symfile.c (alloc_section_addr_info): Update header.  Don't set
8175         'num_sections' field.
8176         (build_section_addr_info_from_section_table): Set 'num_sections'.
8177         (build_section_addr_info_from_bfd): Likewise.
8178         (build_section_addr_info_from_objfile): Remove dead loop
8179         condition.
8180         (free_section_addr_info): Unconditionally call xfree.
8181         (relative_addr_info_to_section_offsets, addrs_section_sort)
8182         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8183         condition.
8184         (syms_from_objfile_1): Remove dead 'if' condition.  Check
8185         'num_sections'.
8186         (add_symbol_file_command): Set 'num_sections'.
8187         * symfile-mem.c (symbol_file_add_from_memory): Set
8188         'num_sections'.
8189         * somread.c (som_symfile_offsets): Remove dead loop condition.
8190         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8191         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8192
8193 2013-03-21  Tom Tromey  <tromey@redhat.com>
8194
8195         * tracepoint.h (decode_agent_options): Add 'trace_string'
8196         argument.
8197         * tracepoint.c (decode_agent_options): Add 'trace_string'
8198         argument.
8199         (validate_actionline): Update.
8200         (collect_symbol): Add 'trace_string' argument.
8201         (struct add_local_symbols_data) <trace_string>: New field.
8202         (do_collect_symbol): Update.
8203         (add_local_symbols): Add 'trace_string' argument.
8204         (encode_actions_1): Update.
8205         (trace_dump_actions): Update.
8206         * dwarf2loc.c (access_memory): Update.
8207         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8208         * ax-general.c (new_agent_expr): Update.
8209         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8210         (gen_trace_for_return_address): Add argument.
8211         (trace_kludge, trace_string_kludge): Remove.
8212         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8213         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8214         (gen_trace_for_var): Add 'trace_string' argument.
8215         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8216         (gen_printf, agent_eval_command_one): Update.
8217
8218 2013-03-21  Tom Tromey  <tromey@redhat.com>
8219
8220         PR exp/15109:
8221         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8222         Handle FILENAME token.
8223
8224 2013-03-21  Tom Tromey  <tromey@redhat.com>
8225
8226         * c-exp.y (YYPRINT): Define.
8227         (c_print_token): New function.
8228
8229 2013-03-21  Tom Tromey  <tromey@redhat.com>
8230
8231         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8232
8233 2013-03-21  Yao Qi  <yao@codesourcery.com>
8234
8235         * ctf.c: Include "gdb_stat.h".
8236         [USE_WIN32API]: New macro 'mkdir'.
8237         (ctf_start): Use permission bits macros if they are defined.
8238
8239 2013-03-20  Keith Seitz  <keiths@redhat.com>
8240
8241         * breakpoint.h (struct breakpoint): Add comment to
8242         extra_string indicating that this member is mallod'd.
8243         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8244
8245 2013-03-20  Pedro Alves  <palves@redhat.com>
8246
8247         PR gdb/15289
8248
8249         * cli/cli-setshow.c (do_set_command)
8250         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8251         the result of parsing the command argument.  Throw error if the
8252         value is greater than UINT_MAX.  Print the invalid value with
8253         plongest.
8254         <var_integer, var_zinteger>: Use LONGEST for variable holding the
8255         result of parsing the command argument.  Throw error if the value
8256         is greater than INT_MAX, not greater or equal.  Also throw error
8257         if the value is less than INT_MIN.  Print the invalid value with
8258         plongest.
8259         <var_zuinteger_unlimited>: Throw error if the value is greater
8260         than INT_MAX, not greater or equal.
8261         (do_show_command) <var_integer, var_zinteger,
8262         var_zuinteger_unlimited>: Use %d for printing int, not %u.
8263
8264 2013-03-20  Tom Tromey  <tromey@redhat.com>
8265
8266         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8267         if possible.
8268         * dwarf2read.c (read_func_scope): Remove old FIXME.
8269         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8270         not LOC_COMPUTED.
8271         * findvar.c (symbol_read_needs_frame, default_read_var_value):
8272         Unconditionally call via computed ops, if possible.
8273         * printcmd.c (address_info): Unconditionally call via computed ops,
8274         if possible.
8275         * stack.c (read_frame_arg): Unconditionally call via computed ops,
8276         if possible.
8277         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8278         * tracepoint.c (scope_info): Unconditionally call via computed ops,
8279         if possible.
8280
8281 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8282             Tom Tromey  <tromey@redhat.com>
8283
8284         PR symtab/8421:
8285         * coffread.c (coff_register_index): New global.
8286         (process_coff_symbol, coff_read_enum_type): Set
8287         SYMBOL_ACLASS_INDEX.
8288         (_initialize_coffread): Initialize new global.
8289         * dwarf2loc.c (locexpr_find_frame_base_location)
8290         (dwarf2_block_frame_base_locexpr_funcs)
8291         (loclist_find_frame_base_location)
8292         (dwarf2_block_frame_base_loclist_funcs): New.
8293         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8294         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8295         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8296         (dwarf2_block_frame_base_loclist_funcs): New.
8297         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8298         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8299         globals.
8300         (read_func_scope): Update.
8301         (fixup_go_packaging, mark_common_block_symbol_computed)
8302         (var_decode_location, new_symbol_full, dwarf2_const_value):
8303         Set SYMBOL_ACLASS_INDEX.
8304         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
8305         (_initialize_dwarf2_read): Initialize new globals.
8306         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8307         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8308         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8309         globals.
8310         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8311         (_initialize_mdebugread): Initialize new globals.
8312         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8313         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8314         (stab_register_index, stab_regparm_index): New globals.
8315         (define_symbol, read_enum_type, common_block_end): Set
8316         SYMBOL_ACLASS_INDEX.
8317         (_initialize_stabsread): Initialize new globals.
8318         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8319         globals.
8320         (MAX_SYMBOL_IMPLS): New define.
8321         (register_symbol_computed_impl, register_symbol_block_impl)
8322         (register_symbol_register_impl)
8323         (initialize_ordinary_address_classes): New functions.
8324         (_initialize_symtab): Call initialize_ordinary_address_classes.
8325         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8326         (struct symbol_impl): New.
8327         (SYMBOL_ACLASS_BITS): New define.
8328         (struct symbol) <aclass, ops>: Remove fields.
8329         <aclass_index>: New field.
8330         (symbol_impls): Declare.
8331         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8332         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8333         (register_symbol_computed_impl, register_symbol_block_impl)
8334         (register_symbol_register_impl): Declare.
8335         (struct symbol_computed_ops): Add location_has_loclist.
8336         (struct symbol_block_ops): New.
8337         (SYMBOL_BLOCK_OPS): New.
8338         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8339
8340 2013-03-20  Tom Tromey  <tromey@redhat.com>
8341
8342         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8343         (print_partial_symbols, recursively_search_psymtabs): Use
8344         PSYMBOL_CLASS.
8345
8346 2013-03-20  Pierre Muller  <muller@sourceware.org>
8347
8348         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8349         addtion, subtraction, multiplication and division binary operator.
8350
8351 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8352
8353         Code cleanup.
8354         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8355         * bsd-kvm.c (bsd_kvm_close): Likewise.
8356         * bsd-uthread.c (bsd_uthread_close): Likewise.
8357         * corelow.c (core_close): Likewise.
8358         (core_close_cleanup): Remove parameter quitting from a caller.
8359         * event-top.c (async_disconnect): Likewise.
8360         * exec.c (exec_close_1): Remove parameter quitting.
8361         * go32-nat.c (go32_close): Likewise.
8362         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
8363         parameter quitting from a caller.
8364         * mips-linux-nat.c (super_close): Remove parameter quitting from the
8365         variable.
8366         (mips_linux_close): Remove parameter quitting.  Remove parameter
8367         quitting from a caller.
8368         * monitor.c (monitor_close): Remove parameter quitting.
8369         * monitor.h (monitor_close): Likewise.
8370         * record-btrace.c (record_btrace_close): Likewise.
8371         * record-full.c (record_full_close): Likewise.
8372         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8373         it also from fprintf_unfiltered.
8374         * remote-mips.c (mips_close): Remove parameter quitting.
8375         (mips_detach): Remove parameter quitting from a caller.
8376         * remote-sim.c (gdbsim_close): Remove parameter quitting.
8377         (gdbsim_close): Remove duplicate function comment.  Remove parameter
8378         quitting and remove it also from printf_filtered.
8379         * remote.c (remote_close): Remove parameter quitting.
8380         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8381         * target.c (update_current_target): Remove parameter int from to_close
8382         de_fault.
8383         (push_target, unpush_target, pop_target): Remove parameter quitting from
8384         a caller.
8385         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8386         Remove parameter quitting from a caller.
8387         (target_preopen): Remove parameter quitting from a caller.
8388         (target_close): Remove parameter quitting.  Remove parameter quitting
8389         from a caller two times.  Remove parameter quitting also from
8390         fprintf_unfiltered.
8391         * target.h (struct target_ops): Remove parameter quitting and as int
8392         from fields to_xclose and to_close.
8393         (extern struct target_ops current_target):
8394         (target_close, pop_all_targets): Remove parameter quitting.  Update the
8395         comment.
8396         (pop_all_targets_above): Remove parameter quitting.
8397         * top.c (quit_target): Remove parameter quitting from a caller.
8398         * tracepoint.c (tfile_close): Remove parameter quitting.
8399         * windows-nat.c (windows_close): Remove parameter quitting.
8400
8401 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
8402
8403         * windows-nat.c (handle_output_debug_string): Replace call
8404         to string_to_core_addr with call to strtoull.
8405
8406 2013-03-20  Yao Qi  <yao@codesourcery.com>
8407
8408         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8409         and write it to CTF metadata.
8410
8411 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
8412
8413         * windows-nat.c (handle_output_debug_string): Change type of n to
8414         SIZE_T to avoid crash on 64 bit systems.
8415
8416 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
8417
8418         * python/python-internal.h (HAVE_SNPRINTF)
8419         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8420         about redefinition of snprintf by pyerrors.h.
8421
8422 2013-03-15  Steve Ellcey  <sellcey@mips.com>
8423
8424         * remote-sim.c (sim_command_completer): Make char arguments const.
8425
8426 2013-03-15  Tom Tromey  <tromey@redhat.com>
8427
8428         PR c++/15116:
8429         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8430
8431 2013-03-14  Tom Tromey  <tromey@redhat.com>
8432
8433         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8434         New fields.
8435         (get_file_crc): Move from symfile.c.
8436         (gdb_bfd_crc): New function.
8437         * gdb_bfd.h (gdb_bfd_crc): Declare.
8438         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8439         * symfile.c (get_file_crc): Move to gdb_bfd.c.
8440         (separate_debug_file_exists): Use gdb_bfd_crc.
8441
8442 2013-03-14  Tom Tromey  <tromey@redhat.com>
8443
8444         * symfile.c (get_debug_link_info): Remove.
8445         (find_separate_debug_file_by_debuglink): Use
8446         bfd_get_debug_link_info.
8447
8448 2013-03-14  Tom Tromey  <tromey@redhat.com>
8449
8450         * symtab.c (error_in_psymtab_expansion): New function.
8451         (lookup_symbol_aux_quick)
8452         (basic_lookup_transparent_type_quick): Remove "last resort"
8453         code.  Use error_in_psymtab_expansion.
8454
8455 2013-03-14  Doug Evans  <dje@google.com>
8456             Jan Kratochvil  <jan.kratochvil@redhat.com>
8457
8458         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8459         any successful compare_filenames_for_search or FILENAME_CMP.
8460         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8461         * symtab.c (iterate_over_some_symtabs): Likewise.
8462
8463 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8464
8465         * source.c (print_source_lines_base): Make a local copy of
8466         symtab_to_fullname.
8467
8468 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
8469             Jan Kratochvil  <jan.kratochvil@redhat.com>
8470
8471         * source.c (print_source_lines_base): Suppress "file" for TUI.
8472
8473 2013-03-14  Keith Seitz  <keiths@redhat.com>
8474             Alan Matsuoka  <alanm@redhat.com>
8475
8476         PR c++/15203
8477         PR c++/15210
8478         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8479         TYPE_CODE_METHOD.
8480         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8481         symbols.
8482
8483 2013-03-14  Yao Qi  <yao@codesourcery.com>
8484
8485         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8486         status to tfile if trace is stopped by command 'tstop'.
8487
8488 2013-03-14  Yao Qi  <yao@codesourcery.com>
8489
8490         * tracepoint.c (tfile_write_status): Write trace notes and user
8491         name into tfile if they are not NULL.
8492
8493 2013-03-14  Hui Zhu  <hui@codesourcery.com>
8494             Yao Qi  <yao@codesourcery.com>
8495
8496         * Makefile.in (REMOTE_OBS): Add ctf.o.
8497         (SFILES): Add ctf.c.
8498         (HFILES_NO_SRCDIR): Add ctf.h.
8499         * ctf.c, ctf.h: New files.
8500         * tracepoint.c: Include 'ctf.h'.
8501         (collect_pseudocommand): Remove static.
8502         (trace_save_command): Parse option "-ctf".
8503         Produce different trace file writers per option.
8504         Adjust output message.
8505         (trace_save_tfile, trace_save_ctf): New.
8506         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8507         * mi/mi-main.c: Include 'ctf.h'.
8508         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
8509         trace_save_tfile or trace_save_ctf.
8510         * NEWS: Mention these changes.
8511
8512 2013-03-14  Yao Qi  <yao@codesourcery.com>
8513
8514         * tracepoint.c (trace_file_writer_xfree): New.
8515         (struct tfile_writer_data): New.
8516         (tfile_dtor, tfile_can_target_save, tfile_start): New.
8517         (tfile_write_header, tfile_write_regblock_type): New.
8518         (tfile_write_status, tfile_write_uploaded_tsv): New.
8519         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8520         (tfile_write_raw_data, (tfile_end): New.
8521         (tfile_write_ops): New global variable.
8522         (TRACE_WRITE_R_BLOCK): New macro.
8523         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8524         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8525         (TRACE_WRITE_V_BLOCK): New macro.
8526         (trace_save): Add extra one parameter WRITER.  Make it static.
8527         Use WRITER to writer trace.
8528         (tfile_trace_file_writer_new): New.
8529         (trace_save_command): Caller update.
8530         (trace_save_tfile): Write trace data in TFILE format.
8531         * tracepoint.h (struct trace_frame_write_ops): New.
8532         (struct trace_file_write_ops): New.
8533         (struct trace_file_writer): New.
8534         (trace_save): Remove its declaration.
8535         (trace_save_tfile): Declare it.
8536         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8537         instead of trace_save.
8538
8539 2013-03-13  Pedro Alves  <palves@redhat.com>
8540
8541         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8542
8543 2013-03-13  Pedro Alves  <palves@redhat.com>
8544
8545         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8546         commented out code.
8547         * demangle.c (current_demangling_style_string): Make it const.
8548         (set_demangling_command): Assert the demangling style is known.
8549         Remove all handling of unknown styles.  Set
8550         'current_demangling_style_string' to an element of the
8551         demangling_style_names array.
8552         (set_demangling_style): Delete.
8553         (_initialize_demangler): Set current_demangling_style_string to the
8554         element of the demangling_style_names array that corresponds to
8555         the default demangling style.  Remove FIXME note.  Don't call
8556         set_demangling_style.
8557         * gdb-demangle.h (set_demangling_style): Remove declaration.
8558
8559 2013-03-13  Pedro Alves  <palves@redhat.com>
8560
8561         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8562         fields const.
8563         (ada_make_symbol_completion_list): Make "text0" parameter const.
8564         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8565         * breakpoint.c (condition_completer): Make "text" and "word"
8566         parameters const.  Adjust.
8567         (check_tracepoint_command): Adjust to validate_actionline
8568         prototype change.
8569         (catch_syscall_completer): Make "text" and "word" parameters
8570         const.
8571         * cli/cli-cmds.c (show_user): Make "comname" local const.
8572         (valid_command_p): Make "command" parameter const.
8573         (alias_command): Make "alias_prefix" and "command_prefix" locals
8574         const.
8575         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8576         (add_alias_cmd): Make "name" and "oldname" parameters const.
8577         Adjust.  No longer make copy of OLDNAME.
8578         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8579         (add_setshow_cmd_full, add_setshow_enum_cmd)
8580         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8581         (add_setshow_filename_cmd, add_setshow_string_cmd)
8582         (add_setshow_string_noescape_cmd)
8583         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8584         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8585         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8586         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8587         Make "name" parameter const.
8588         (help_cmd): Rename "command" parameter to "arg".  New const local
8589         "command".
8590         (find_cmd): Make "command" parameter const.
8591         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
8592         deprecated_cmd_warning prototype change.
8593         (undef_cmd_error): Make "cmdtype" parameter const.
8594         (lookup_cmd): Make "line" parameter const.
8595         (deprecated_cmd_warning): Change type of "text" parameter to
8596         pointer to const char, from pointer to pointer to char.  Adjust.
8597         (lookup_cmd_composition): Make "text" parameter const.
8598         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8599         parameters const.
8600         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8601         const.
8602         * cli/cli-script.c (validate_comname): Make "tem" local const.
8603         (define_command): New const local "tem_c".  Use it in calls to
8604         lookup_cmd.
8605         (document_command): Make "tem" and "comfull" locals const.
8606         (show_user_1): Make "prefix" and "name" parameters const.
8607         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8608         const.
8609         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8610         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8611         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8612         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8613         (complete_on_enum, add_setshow_enum_cmd)
8614         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8615         (add_setshow_filename_cmd, add_setshow_string_cmd)
8616         (add_setshow_string_noescape_cmd)
8617         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8618         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8619         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8620         Change prototypes, constifying strings.
8621         * completer.c (noop_completer, filename_completer): Make "text"
8622         and "prefix" parameters const.
8623         (location_completer, expression_completer)
8624         (complete_line_internal): Make "text" and "prefix" parameters
8625         const and adjust.
8626         (command_completer, signal_completer): Make "text" and "prefix"
8627         parameters const.
8628         * completer.h (noop_completer, filename_completer)
8629         (expression_completer, location_completer, command_completer)
8630         (signal_completer): Change prototypes.
8631         * corefile.c (complete_set_gnutarget): Make "text" and "word"
8632         parameters const.
8633         * cp-abi.c (cp_abi_completer): Likewise.
8634         * expression.h (parse_expression_for_completion): Change
8635         prototype.
8636         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8637         parameters const.
8638         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8639         * infrun.c (handle_completer): Make "text" and "word" parameters
8640         const.
8641         * interps.c (interpreter_completer): Make "text" and "word"
8642         parameters const.
8643         * language.h (struct language_defn)
8644         <la_make_symbol_completion_list>: Make "text" and "word"
8645         parameters const.
8646         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8647         (parse_exp_in_context): Rename to ...
8648         (parse_exp_in_context_1): ... this.
8649         (parse_exp_in_context): Reimplement, with const hack from
8650         parse_exp_1.
8651         (parse_expression_for_completion): Make "string" parameter const.
8652         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8653         to pointer to const char.  Adjust.
8654         (print_command_1): Make "exp" parameter const.
8655         (output_command): Rename to ...
8656         (output_command_const): ... this.  Make "exp" parameter const.
8657         (output_command): Reimplement.
8658         (x_command): Adjust.
8659         (display_command): Rename "exp" parameter to "arg".  New "exp"
8660         local, const version of "arg".
8661         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8662         "cmd_name" local const.
8663         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8664         call.
8665         (cmdpy_completer): Make "text" and "word" parameters const.
8666         (gdbpy_parse_command_name): Make "prefix_text2" local const.
8667         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8668         const.
8669         * remote.c (_initialize_remote): Make "cmd_name" local const.
8670         * symtab.c (language_search_unquoted_string): Make "text" and "p"
8671         parameters const.  Adjust.
8672         (completion_list_add_fields): Make "sym_text", "text" and "word"
8673         parameters const.
8674         (struct add_name_data) <sym_text, text, word>: Make fields const.
8675         (default_make_symbol_completion_list_break_on): Make "text" and
8676         "word" parameters const.  Adjust locals.
8677         (default_make_symbol_completion_list)
8678         (make_symbol_completion_list, make_symbol_completion_type)
8679         (make_symbol_completion_list_fn): Make "text" and "word"
8680         parameters const.
8681         (make_file_symbol_completion_list): Make "text", "word" and
8682         "srcfile" parameters const.  Adjust locals.
8683         (add_filename_to_list): Make "text" and "word" parameters const.
8684         (struct add_partial_filename_data) <text, word>: Make fields
8685         const.
8686         (make_source_files_completion_list): Make "text" and "word"
8687         parameters const.
8688         * symtab.h (default_make_symbol_completion_list_break_on)
8689         (default_make_symbol_completion_list, make_symbol_completion_list)
8690         (make_symbol_completion_type enum type_code)
8691         (make_symbol_completion_list_fn make_file_symbol_completion_list)
8692         (make_source_files_completion_list): Change prototype.
8693         * top.c (execute_command): Adjust to pass pointer to pointer to
8694         const char to lookup_cmd, and to deprecated_cmd_warning prototype
8695         change.
8696         (set_verbose): Make "cmdname" local const.
8697         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8698         and adjust.
8699         (validate_actionline): Make "line" parameter a pointer to const
8700         char, and adjust.
8701         (encode_actions_1): Make "action_exp" local const, and adjust.
8702         (encode_actions): Adjust.
8703         (replace_comma): Delete.
8704         (trace_dump_actions): Make "action_exp" and "next_comma" locals
8705         const, and adjust.  Don't frob the action string while splitting
8706         it at commas.  Instead, make a copy of each split substring in
8707         turn.
8708         (trace_dump_command): Adjust to validate_actionline prototype
8709         change.
8710         * tracepoint.h (decode_agent_options, decode_agent_options)
8711         (encode_actions, validate_actionline): Change prototypes.
8712         * valprint.h (output_command): Delete declaration.
8713         (output_command_const): Declare.
8714         * value.c (function_destroyer): Cast const away in xfree call.
8715
8716 2013-03-13  Pedro Alves  <palves@redhat.com>
8717
8718         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8719         rather than casting 'const char * const *' to 'const char **'.
8720         * ada-lex.l (processInt): Make "trailer" local const.  Remove
8721         'const char **' cast.
8722         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8723         locals, and use those as strtol output pointer, instead than doing
8724         invalid casts to from 'const char **' to 'char **'.
8725         (_initialize_demangle): Remove cast.
8726         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8727         locals, and use those as strtol output pointer, instead than doing
8728         invalid casts to from 'const char **' to 'char **'.
8729         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8730         casts.
8731         * stap-probe.c (stap_parse_register_operand)
8732         (stap_parse_single_operand): Likewise.
8733
8734 2013-03-13  Yao Qi  <yao@codesourcery.com>
8735
8736         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8737         the last matched 'V' blcok in trace frame.
8738
8739 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8740
8741         * NEWS: Create a new section for the next release branch.
8742         Rename the section of the current branch, now that it has
8743         been cut.
8744
8745 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8746
8747         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8748         * version.in: Bump version to 7.6.50.20130312-cvs.
8749
8750 2013-03-12  Keith Seitz  <keiths@redhat.com>
8751
8752         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8753         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8754         Remove temporary copy of input string.
8755         (mi_execute_command_wrapper): Make "cmd" const.
8756         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8757         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8758         Use const strings.
8759         (mi_parse): Make "cmd" const.
8760         Use const strings.
8761         * mi/mi-parse.h (mi_parse): Make "cmd" const.
8762
8763 2013-03-12  Keith Seitz  <keiths@redhat.com>
8764
8765         * ada-lang.c (ada_read_renaming_var_value): Pass const
8766         pointer to expression string to parse_exp_1.
8767         (create_excep_cond_exprs): Likewise.
8768         * ax-gdb.c (agent_eval_command_one): Likewise.
8769         (maint_agent_printf_command): Likewise.
8770         Constify much of the string handling/parsing.
8771         * breakpoint.c (set_breakpoint_condition): Pass const
8772         pointer to expression string to parse_exp_1.
8773         (update_watchpoint): Likewise.
8774         (parse_cmd_to_aexpr): Constify string handling.
8775         Pass const pointer to parse_exp_1.
8776         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8777         (find_condition_and_thread): Likewise.
8778         Make TOK const.
8779         (watch_command_1): Make "arg" const.
8780         Constify string handling.
8781         Copy the expression string instead of changing the input
8782         string.
8783         (update_breakpoint_location): Pass const pointer to
8784         parse_exp_1.
8785         * eval.c (parse_and_eval_address): Make "exp" const.
8786         (parse_to_comma_and_eval): Make "expp" const.
8787         (parse_and_eval): Make "exp" const.
8788         * expression.h (parse_expression): Make argument const.
8789         (parse_exp_1): Make first argument const.
8790         * findcmd.c (parse_find_args): Treat "args" as const.
8791         * linespec.c (parse_linespec): Pass const pointer to
8792         linespec_expression_to_pc.
8793         (linespec_expression_to_pc): Make "exp_ptr" const.
8794         * parse.c (parse_exp_1): Make "stringptr" const.
8795         Make a copy of the expression to pass to parse_exp_in_context until
8796         this whole interface can be constified.
8797         (parse_expression): Make "string" const.
8798         * printcmd.c (ui_printf): Treat "arg" as const.
8799         Handle const strings.
8800         * tracepoint.c (validate_actionline): Pass const pointer to
8801         all calls to parse_exp_1.
8802         (encode_actions_1): Likewise.
8803         * value.h (parse_to_comma_and_eval): Make argument const.
8804         (parse_and_eval_address): Likewise.
8805         (parse_and_eval): Likewise.
8806         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8807         (varobj_set_value): Likewise.
8808         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8809         constify string handling.
8810         Pass const pointers to parse_and_eval_address and
8811         parse_to_comman_and_eval.
8812         * cli/cli-utils.c (skip_to_space): Rename to ...
8813         (skip_to_space_const): ... this. Handle const strings.
8814         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8815         skip_to_space_const.
8816         (skip_to_space_const): Declare.
8817         * common/format.c (parse_format_string): Make "arg" const.
8818         Handle const strings.
8819         * common/format.h (parse_format_string): Make "arg" const.
8820         * gdbserver/ax.c (ax_printf): Make "format" const.
8821         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8822         of the expression string.
8823
8824 2013-03-12  Hui Zhu  <hui@codesourcery.com>
8825
8826         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8827
8828 2013-03-12  Yao Qi  <yao@codesourcery.com>
8829             Hui Zhu  <hui@codesourcery.com>
8830
8831         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8832         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8833         DW_OP_deref_size.
8834
8835 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
8836
8837         * ada-lex.l (rules): Only recognize 'thread' as a
8838         delimiter when followed by numerals, as for c-exp.y.
8839         Use new rewind_to_char function to rewind the input for
8840         expression-delimiting tokens.
8841         (rewind_to_char): New function.
8842
8843 2013-03-11  Pedro Alves  <palves@redhat.com>
8844             Jan Kratochvil  <jan.kratochvil@redhat.com>
8845
8846         * configure: Regenerate.
8847         * configure.ac (check dynamic export flag): Link python test with
8848         $PYTHON_LIBS.
8849
8850 2013-03-11  Doug Evans  <dje@google.com>
8851             Keith Seitz  <keiths@redhat.com>
8852
8853         * linespec.c (find_linespec_symbols): Call find_function_symbols
8854         first, and then call lookup_prefix_sym/find_method.
8855
8856 2013-03-11  Pedro Alves  <palves@redhat.com>
8857
8858         * charset.c (convert_between_encodings): Don't cast between
8859         different pointer to pointer types.  Instead, make the 'inp' local
8860         be of the type iconv expects.
8861         (wchar_iterate): Don't cast between different pointer to pointer
8862         types.  Instead, use new pointer local of the type iconv expects.
8863         * target.c (target_read_stralloc, target_fileio_read_stralloc):
8864         Add new local of type char pointer, and use it to get a
8865         char/string view of the byte buffer, instead of casting between
8866         pointer to pointer types.
8867
8868 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
8869
8870         * remote.c (remote_set_trace_buffer_size): Move != operator
8871         to the start of next line to fix an ARI warning.
8872
8873 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8874
8875         * NEWS: Add record changes.
8876
8877 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8878
8879         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8880         the instruction history disassembly.
8881         * disasm.c (dump_insns): Omit the pc prefix, if requested.
8882         * disasm.h (DISASSEMBLY_OMIT_PC): New.
8883
8884 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8885
8886         * Makefile.in (SFILES): Add record-btrace.c
8887         (COMMON_OBS): Add record-btrace.o
8888         * record-btrace.c: New.
8889         * objfiles.c: Include btrace.h.
8890         (free_objfile): call btrace_free_objfile.
8891
8892 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8893
8894         * target.c (target_call_history, target_call_history_from,
8895         target_call_history_range): New.
8896         * target.h (target_ops) <to_call_history, to_call_history_from,
8897         to_call_history_range>: New fields.
8898         (target_call_history, target_call_history_from,
8899         target_call_history_range): New declaration.
8900         * record.c (get_call_history_modifiers, cmd_record_call_history,
8901         record_call_history_size): New.
8902         (_initialize_record): Add the "record function-call-history" command.
8903         Add "set/show record function-call-history-size" commands.
8904         * record.h (record_print_flag): New.
8905
8906 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8907
8908         * target.h (target_ops) <to_insn_history, to_insn_history_from,
8909         to_insn_history_range>: New fields.
8910         (target_insn_history): New.
8911         (target_insn_history_from): New.
8912         (target_insn_history_range): New.
8913         * target.c (target_insn_history): New.
8914         (target_insn_history_from): New.
8915         (target_insn_history_range): New.
8916         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8917         (record_insn_history_size): New.
8918         (get_insn_number): New.
8919         (get_context_size): New.
8920         (no_chunk): New.
8921         (get_insn_history_modifiers): New.
8922         (cmd_record_insn_history): New.
8923         (_initialize_record): Add "set/show record instruction-history-size"
8924         command. Add "record instruction-history" command.
8925
8926 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8927
8928         * record.h (record_disconnect): New.
8929         (record_detach): New.
8930         (record_mourn_inferior): New.
8931         (record_kill): New.
8932         * record-full.c (record_disconnect, record_detach,
8933         record_mourn_inferior, record_kill): Move to...
8934         * record.c: ...here.
8935         (DEBUG): New.
8936         (record_stop): New.
8937         (record_unpush): New.
8938         (cmd_record_stop): Call record_stop. Replace unpush_target
8939         call with record_unpush call.
8940         (record_disconnect, record_detach): Assert that the target
8941         is of record stratum. Call record_unpush, record_stop, and
8942         DEBUG.
8943         (record_mourn_inferior, record_kill): Assert that the target
8944         is of record stratum. Call record_unpush and DEBUG.
8945
8946 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8947
8948         * record-full.h, record-full.c (record_memory_query): Rename
8949         to ...
8950         (record_full_memory_query): ...this. Update all users.
8951         (record_arch_list_add_reg): Rename to ...
8952         (record_full_arch_list_add_reg): ...this. Update all users.
8953         (record_arch_list_add_mem): Rename to ...
8954         (record_full_arch_list_add_mem): ...this. Update all users.
8955         (record_arch_list_add_end): Rename to ...
8956         (record_full_arch_list_add_end): ...this. Update all users.
8957         (record_gdb_operation_disable_set): Rename to ...
8958         (record_full_gdb_operation_disable_set): ...this.
8959         Update all users.
8960
8961 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8962
8963         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8964         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8965         (RECORD_IS_REPLAY): Renamed to ...
8966         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8967         (RECORD_FILE_MAGIC): Renamed to ...
8968         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8969         (record_mem_entry): Renamed to ...
8970         (record_full_mem_entry): ... this. Updated all users.
8971         (record_reg_entry): Renamed to ...
8972         (record_full_reg_entry): ... this. Updated all users.
8973         (record_end_entry): Renamed to ...
8974         (record_full_end_entry): ... this. Updated all users.
8975         (record_type) <record_end, record_reg, record_mem>: Renamed
8976         to ...
8977         (record_full_type) <record_full_end, record_full_reg,
8978         record_full_mem>: ... this. Updated all users.
8979         (record_entry): Renamed to ...
8980         (record_full_entry): ... this. Updated all users.
8981         (record_core_buf_entry): Renamed to ...
8982         (record_full_core_buf_entry): ... this. Updated all users.
8983         (record_core_regbuf): Renamed to ...
8984         (record_full_core_regbuf): ... this. Updated all users.
8985         (record_core_start): Renamed to ...
8986         (record_full_core_start): ... this. Updated all users.
8987         (record_core_end): Renamed to ...
8988         (record_full_core_end): ... this. Updated all users.
8989         (record_core_buf_list): Renamed to ...
8990         (record_full_core_buf_list): ... this. Updated all users.
8991         (record_first): Renamed to ...
8992         (record_full_first): ... this. Updated all users.
8993         (record_list): Renamed to ...
8994         (record_full_list): ... this. Updated all users.
8995         (record_arch_list_head): Renamed to ...
8996         (record_full_arch_list_head): ... this. Updated all users.
8997         (record_arch_list_tail): Renamed to ...
8998         (record_full_arch_list_tail): ... this. Updated all users.
8999         (record_stop_at_limit): Renamed to ...
9000         (record_full_stop_at_limit): ... this. Updated all users.
9001         (record_insn_max_num): Renamed to ...
9002         (record_full_insn_max_num): ... this. Updated all users.
9003         (record_insn_num): Renamed to ...
9004         (record_full_insn_num): ... this. Updated all users.
9005         (record_insn_count): Renamed to ...
9006         (record_full_insn_count): ... this. Updated all users.
9007         (record_ops): Renamed to ...
9008         (record_full_ops): ... this. Updated all users.
9009         (record_core_ops): Renamed to ...
9010         (record_full_core_ops): ... this. Updated all users.
9011         (set_record_cmdlist): Renamed to ...
9012         (set_record_full_cmdlist): ... this. Updated all users.
9013         (show_record_cmdlist): Renamed to ...
9014         (show_record_full_cmdlist): ... this. Updated all users.
9015         (record_cmdlist): Renamed to ...
9016         (record_full_cmdlist): ... this. Updated all users.
9017         (record_beneath_to_resume_ops): Renamed to ...
9018         (record_full_beneath_to_resume_ops): ... this. Updated all users.
9019         (record_beneath_to_resume): Renamed to ...
9020         (record_full_beneath_to_resume): ... this. Updated all users.
9021         (record_beneath_to_wait_ops): Renamed to ...
9022         (record_full_beneath_to_wait_ops): ... this. Updated all users.
9023         (record_beneath_to_wait): Renamed to ...
9024         (record_full_beneath_to_wait): ... this. Updated all users.
9025         (record_beneath_to_store_registers_ops): Renamed to ...
9026         (record_full_beneath_to_store_registers_ops): ... this.
9027         Updated all users.
9028         (record_beneath_to_store_registers): Renamed to ...
9029         (record_full_beneath_to_store_registers): ... this.
9030         Updated all users.
9031         (record_beneath_to_xfer_partial_ops): Renamed to ...
9032         (record_full_beneath_to_xfer_partial_ops): ... this.
9033         Updated all users.
9034         (record_beneath_to_xfer_partial): Renamed to ...
9035         (record_full_beneath_to_xfer_partial): ... this.
9036         Updated all users.
9037         (record_beneath_to_insert_breakpoint): Renamed to ...
9038         (record_full_beneath_to_insert_breakpoint): ... this.
9039         Updated all users.
9040         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9041         (record_full_beneath_to_stopped_by_watchpoint): ... this.
9042         Updated all users.
9043         (record_beneath_to_stopped_data_address): Renamed to ...
9044         (record_full_beneath_to_stopped_data_address): ... this.
9045         Updated all users.
9046         (record_beneath_to_async): Renamed to ...
9047         (record_full_beneath_to_async): ... this. Updated all users.
9048         (record_goto_insn): Renamed to ...
9049         (record_full_goto_insn): ... this. Updated all users.
9050         (record_save): Renamed to ...
9051         (record_full_save): ... this. Updated all users.
9052         (record_reg_alloc): Renamed to ...
9053         (record_full_reg_alloc): ... this. Updated all users.
9054         (record_reg_release): Renamed to ...
9055         (record_full_reg_release): ... this. Updated all users.
9056         (record_mem_alloc): Renamed to ...
9057         (record_full_mem_alloc): ... this. Updated all users.
9058         (record_mem_release): Renamed to ...
9059         (record_full_mem_release): ... this. Updated all users.
9060         (record_end_alloc): Renamed to ...
9061         (record_full_end_alloc): ... this. Updated all users.
9062         (record_end_release): Renamed to ...
9063         (record_full_end_release): ... this. Updated all users.
9064         (record_entry_release): Renamed to ...
9065         (record_full_entry_release): ... this. Updated all users.
9066         (record_list_release): Renamed to ...
9067         (record_full_list_release): ... this. Updated all users.
9068         (record_list_release_following): Renamed to ...
9069         (record_full_list_release_following): ... this.
9070         Updated all users.
9071         (record_list_release_first): Renamed to ...
9072         (record_full_list_release_first): ... this. Updated all users.
9073         (record_arch_list_add): Renamed to ...
9074         (record_full_arch_list_add): ... this. Updated all users.
9075         (record_get_loc): Renamed to ...
9076         (record_full_get_loc): ... this. Updated all users.
9077         (record_check_insn_num): Renamed to ...
9078         (record_full_check_insn_num): ... this. Updated all users.
9079         (record_arch_list_cleanups): Renamed to ...
9080         (record_full_arch_list_cleanups): ... this. Updated all users.
9081         (record_message): Renamed to ...
9082         (record_full_message): ... this. Updated all users.
9083         (record_message_wrapper): Renamed to ...
9084         (record_full_message_wrapper): ... this. Updated all users.
9085         (record_message_wrapper_safe): Renamed to ...
9086         (record_full_message_wrapper_safe): ... this. Updated all users.
9087         (record_gdb_operation_disable): Renamed to ...
9088         (record_full_gdb_operation_disable): ... this. Updated all users.
9089         (record_hw_watchpoint): Renamed to ...
9090         (record_full_hw_watchpoint): ... this. Updated all users.
9091         (record_exec_insn): Renamed to ...
9092         (record_full_exec_insn): ... this. Updated all users.
9093         (record_restore): Renamed to ...
9094         (record_full_restore): ... this. Updated all users.
9095         (record_async_inferior_event_token): Renamed to ...
9096         (record_full_async_inferior_event_token): ... this.
9097         Updated all users.
9098         (record_async_inferior_event_handler): Renamed to ...
9099         (record_full_async_inferior_event_handler): ... this.
9100         Updated all users.
9101         (record_core_open_1): Renamed to ...
9102         (record_full_core_open_1): ... this. Updated all users.
9103         (record_open_1): Renamed to ...
9104         (record_full_open_1): ... this. Updated all users.
9105         (record_open): Renamed to ...
9106         (record_full_open): ... this. Updated all users.
9107         (record_close): Renamed to ...
9108         (record_full_close): ... this. Updated all users.
9109         (record_resume_step): Renamed to ...
9110         (record_full_resume_step): ... this. Updated all users.
9111         (record_resumed): Renamed to ...
9112         (record_full_resumed): ... this. Updated all users.
9113         (record_execution_dir): Renamed to ...
9114         (record_full_execution_dir): ... this. Updated all users.
9115         (record_resume): Renamed to ...
9116         (record_full_resume): ... this. Updated all users.
9117         (record_get_sig): Renamed to ...
9118         (record_full_get_sig): ... this. Updated all users.
9119         (record_sig_handler): Renamed to ...
9120         (record_full_sig_handler): ... this. Updated all users.
9121         (record_wait_cleanups): Renamed to ...
9122         (record_full_wait_cleanups): ... this. Updated all users.
9123         (record_wait_1): Renamed to ...
9124         (record_full_wait_1): ... this. Updated all users.
9125         (record_wait): Renamed to ...
9126         (record_full_wait): ... this. Updated all users.
9127         (record_stopped_by_watchpoint): Renamed to ...
9128         (record_full_stopped_by_watchpoint): ... this. Updated all users.
9129         (record_disconnect): Renamed to ...
9130         (record_full_disconnect): ... this. Updated all users.
9131         (record_detach): Renamed to ...
9132         (record_full_detach): ... this. Updated all users.
9133         (record_mourn_inferior): Renamed to ...
9134         (record_full_mourn_inferior): ... this. Updated all users.
9135         (record_kill): Renamed to ...
9136         (record_full_kill): ... this. Updated all users.
9137         (record_stopped_data_address): Renamed to ...
9138         (record_full_stopped_data_address): ... this. Updated all users.
9139         (record_registers_change): Renamed to ...
9140         (record_full_registers_change): ... this. Updated all users.
9141         (record_store_registers): Renamed to ...
9142         (record_full_store_registers): ... this. Updated all users.
9143         (record_xfer_partial): Renamed to ...
9144         (record_full_xfer_partial): ... this. Updated all users.
9145         (record_breakpoint): Renamed to ...
9146         (record_full_breakpoint): ... this. Updated all users.
9147         (record_breakpoint_p): Renamed to ...
9148         (record_full_breakpoint_p): ... this. Updated all users.
9149         (record_breakpoints): Renamed to ...
9150         (record_full_breakpoints): ... this. Updated all users.
9151         (record_sync_record_breakpoints): Renamed to ...
9152         (record_full_sync_record_breakpoints): ... this.
9153         Updated all users.
9154         (record_init_record_breakpoints): Renamed to ...
9155         (record_full_init_record_breakpoints): ... this.
9156         Updated all users.
9157         (record_insert_breakpoint): Renamed to ...
9158         (record_full_insert_breakpoint): ... this. Updated all users.
9159         (record_remove_breakpoint): Renamed to ...
9160         (record_full_remove_breakpoint): ... this. Updated all users.
9161         (record_can_execute_reverse): Renamed to ...
9162         (record_full_can_execute_reverse): ... this. Updated all users.
9163         (record_get_bookmark): Renamed to ...
9164         (record_full_get_bookmark): ... this. Updated all users.
9165         (record_goto_bookmark): Renamed to ...
9166         (record_full_goto_bookmark): ... this. Updated all users.
9167         (record_async): Renamed to ...
9168         (record_full_async): ... this. Updated all users.
9169         (record_can_async_p): Renamed to ...
9170         (record_full_can_async_p): ... this. Updated all users.
9171         (record_is_async_p): Renamed to ...
9172         (record_full_is_async_p): ... this. Updated all users.
9173         (record_execution_direction): Renamed to ...
9174         (record_full_execution_direction): ... this. Updated all users.
9175         (record_info): Renamed to ...
9176         (record_full_info): ... this. Updated all users.
9177         (record_delete): Renamed to ...
9178         (record_full_delete): ... this. Updated all users.
9179         (record_is_replaying): Renamed to ...
9180         (record_full_is_replaying): ... this. Updated all users.
9181         (record_goto_entry): Renamed to ...
9182         (record_full_goto_entry): ... this. Updated all users.
9183         (record_goto_begin): Renamed to ...
9184         (record_full_goto_begin): ... this. Updated all users.
9185         (record_goto_end): Renamed to ...
9186         (record_full_goto_end): ... this. Updated all users.
9187         (record_goto): Renamed to ...
9188         (record_full_goto): ... this. Updated all users.
9189         (init_record_ops): Renamed to ...
9190         (init_record_full_ops): ... this. Updated all users.
9191         (record_core_resume): Renamed to ...
9192         (record_full_core_resume): ... this. Updated all users.
9193         (record_core_kill): Renamed to ...
9194         (record_full_core_kill): ... this. Updated all users.
9195         (record_core_fetch_registers): Renamed to ...
9196         (record_full_core_fetch_registers): ... this. Updated all users.
9197         (record_core_prepare_to_store): Renamed to ...
9198         (record_full_core_prepare_to_store): ... this. Updated all users.
9199         (record_core_store_registers): Renamed to ...
9200         (record_full_core_store_registers): ... this. Updated all users.
9201         (record_core_xfer_partial): Renamed to ...
9202         (record_full_core_xfer_partial): ... this. Updated all users.
9203         (record_core_insert_breakpoint): Renamed to ...
9204         (record_full_core_insert_breakpoint): ... this. Updated all users.
9205         (record_core_remove_breakpoint): Renamed to ...
9206         (record_full_core_remove_breakpoint): ... this. Updated all users.
9207         (record_core_has_execution): Renamed to ...
9208         (record_full_core_has_execution): ... this. Updated all users.
9209         (init_record_core_ops): Renamed to ...
9210         (init_record_full_core_ops): ... this. Updated all users.
9211         (cmd_record_restore): Renamed to ...
9212         (cmd_record_full_restore): ... this. Updated all users.
9213         (record_save_cleanups): Renamed to ...
9214         (record_full_save_cleanups): ... this. Updated all users.
9215         (cmd_record_start): Renamed to ...
9216         (cmd_record_full_start): ... this. Updated all users.
9217         (set_record_insn_max_num): Renamed to ...
9218         (set_record_full_insn_max_num): ... this. Updated all users.
9219         (set_record_command): Renamed to ...
9220         (set_record_full_command): ... this. Updated all users.
9221         (show_record_command): Renamed to ...
9222         (show_record_full_command): ... this. Updated all users.
9223         (_initialize_record): Renamed to ...
9224         (_initialize_record_full): ... this. Updated all users.
9225
9226 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9227
9228         * record.h: Split into this and ...
9229         * record-full.h: ... this.
9230         * record.c: Split into this and ...
9231         * record-full.c: ... this.
9232         * target.h (target_ops): Add new fields to_info_record,
9233         to_save_record, to_delete_record, to_record_is_replaying,
9234         to_goto_record_begin, to_goto_record_end, to_goto_record.
9235         (target_info_record): New.
9236         (target_save_record): New.
9237         (target_supports_delete_record): New.
9238         (target_delete_record): New.
9239         (target_record_is_replaying): New.
9240         (target_goto_record_begin): New.
9241         (target_goto_record_end): New.
9242         (target_goto_record): New.
9243         * target.c (target_info_record): New.
9244         (target_save_record): New.
9245         (target_supports_delete_record): New.
9246         (target_delete_record): New.
9247         (target_record_is_replaying): New.
9248         (target_goto_record_begin): New.
9249         (target_goto_record_end): New.
9250         (target_goto_record): New.
9251         * record.h: Declare struct cmd_list_element.
9252         (record_cmdlist): New declaration.
9253         (set_record_cmdlist): New declaration.
9254         (show_record_cmdlist): New declaration.
9255         (info_record_cmdlist): New declaration.
9256         (cmd_record_goto): New declaration.
9257         * record.c: Remove unnecessary includes.
9258         Include inferior.h.
9259         (cmd_record_goto): Remove declaration.
9260         (record_cmdlist): Now extern. Initialize.
9261         (set_record_cmdlist): Now extern. Initialize.
9262         (show_record_cmdlist): Now extern. Initialize.
9263         (info_record_cmdlist): Now extern. Initialize.
9264         (find_record_target): New.
9265         (require_record_target): New.
9266         (cmd_record_start): Update.
9267         (cmd_record_delete): Remove target-specific code.
9268         Call target_delete_record.
9269         (cmd_record_stop): Unpush any record target.
9270         (set_record_insn_max_num): Move to record-full.c
9271         (set_record_command): Add comment.
9272         (show_record_command): Add comment.
9273         (info_record_command): Update comment.
9274         Remove target-specific code.
9275         Call the record target's to_info_record.
9276         (cmd_record_start): New.
9277         (cmd_record_goto): Now extern.
9278         Remove target-specific code.
9279         Call target_goto_begin,  target_goto_end, or target_goto.
9280         (_initialize_record): Move record target ops initialization to
9281         record-full.c.
9282         Change "record" command help text.
9283         Move "record restore", "record set", and "record show" commands to
9284         record-full.c.
9285         * Makefile.in (SFILES): Add record-full.c.
9286         (HFILES_NO_SRCDIR): Add record-full.h.
9287         (COMMON_OBS): Add record-full.o.
9288         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9289         * arm-tdep.c: Include record-full.h.
9290         * i386-linux-tdep.c: Include record-full.h instead of record.h.
9291         * i386-tdep.c: Include record-full.h.
9292         * infrun.c: Include record-full.h.
9293         * linux-record.c: Include record-full.h.
9294         * moxie-tdep.c: Include record-full.h.
9295         * record-full.c: Include record-full.h.
9296         Change module comment.
9297         (set_record_full_cmdlist): New.
9298         (show_record_full_cmdlist): New.
9299         (record_full_cmdlist): New.
9300         (record_goto_insn): New declaration.
9301         (record_save): New declaration.
9302         (record_check_insn_num): Change query string.
9303         (record_info): New.
9304         (record_delete): New.
9305         (record_is_replaying): New.
9306         (record_goto_entry): New.
9307         (record_goto_begin): New.
9308         (record_goto_end): New.
9309         (record_goto): New.
9310         (init_record_ops): Update.
9311         (init_record_core_ops): Update.
9312         (cmd_record_save): Rename to record_save. Remove target and arg checks.
9313         (cmd_record_start): New.
9314         (set_record_insn_max_num): Moved from record.c
9315         (set_record_full_command): New.
9316         (show_record_full_command): New.
9317         (_initialize_record_full): New.
9318
9319 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9320
9321         * target.h (add_deprecated_target_alias): New.
9322         * target.c (add_deprecated_target_alias): New.
9323
9324 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9325
9326         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9327         and signal.h.
9328         (linux_supports_btrace): Add kernel and
9329         cpuid check.
9330         (kernel_supports_btrace): New function.
9331         (cpu_supports_btrace): New function.
9332         (intel_supports_btrace): New function.
9333
9334 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9335
9336         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9337         * remote.c: Include btrace.h.
9338         (struct btrace_target_info): New struct.
9339         (remote_supports_btrace): New function.
9340         (send_Qbtrace): New function.
9341         (remote_enable_btrace): New function.
9342         (remote_disable_btrace): New function.
9343         (remote_teardown_btrace): New function.
9344         (remote_read_btrace): New function.
9345         (init_remote_ops): Add btrace ops.
9346         (enum <unnamed>): Add btrace packets.
9347         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9348         (_initialize_remote): Add packet configuration for branch tracing.
9349
9350 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9351
9352         * features/btrace.dtd: New file.
9353         * Makefile.in (XMLFILES): Add btrace.dtd.
9354         * btrace.h (parse_xml_btrace): New declaration.
9355         * btrace.c: Include xml-support.h.
9356         (parse_xml_btrace): New function.
9357         (parse_xml_btrace_block): New function.
9358         (block_attributes): New struct.
9359         (btrace_attributes): New struct.
9360         (btrace_children): New struct.
9361         (btrace_elements): New struct.
9362
9363 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9364
9365         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9366         (amd64_linux_enable_btrace): New.
9367         (amd64_linux_disable_btrace): New.
9368         (amd64_linux_teardown_btrace): New.
9369         (_initialize_amd64_linux_nat): Initialize btrace ops.
9370         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9371         (i386_linux_enable_btrace): New.
9372         (i386_linux_disable_btrace): New.
9373         (i386_linux_teardown_btrace): New.
9374         (_initialize_i386_linux_nat): Initialize btrace ops.
9375         * config/i386/linux.mh: Add linux-btrace.o.
9376         * config/i386/linux64.mh: Add linux-btrace.o.
9377
9378 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9379
9380         * common/linux_btrace.h: New file.
9381         * common/linux_btrace.c: New file.
9382         * Makefile.in (SFILES): Add btrace.c.
9383         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9384         (COMMON_OBS): Add btrace.o.
9385         (linux-btrace.o): New rule.
9386
9387 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9388
9389         * target.h: Include btrace.h.
9390         (struct target_ops) <to_supports_btrace, to_enable_btrace,
9391         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9392         * target.c (target_supports_btrace): New function.
9393         (target_enable_btrace): New function.
9394         (target_disable_btrace): New function.
9395         (target_teardown_btrace): New function.
9396         (target_read_btrace): New function.
9397         * btrace.h: New file.
9398         * btrace.c: New file.
9399         * Makefile.in: Add btrace.c.
9400         * gdbthread.h: Include btrace.h.
9401         (struct thread_info): Add btrace field.
9402         * thread.c: Include btrace.h.
9403         (clear_thread_inferior_resources): Call target_teardown_btrace.
9404         * common/btrace-common.h: New file.
9405
9406 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9407
9408         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9409         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9410         kill_status to outer block.
9411
9412 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9413
9414         Fix entry-values if the callee called a noreturn function.
9415         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9416         get_frame_address_in_block.  Add new comment.
9417
9418 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9419
9420         Fix entry-values in C++ across CUs.
9421         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9422         lookup_minimal_symbol.  Add a comment.
9423         * dwarf2read.c
9424         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9425         DW_AT_linkage_name.
9426
9427 2013-03-08  Yao Qi  <yao@codesourcery.com>
9428
9429         * tracepoint.c (_initialize_tracepoint): Indent the code.
9430
9431 2013-03-08  Pedro Alves  <palves@redhat.com>
9432
9433         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9434         (parse_find_args, find_command): Change type of pattern buffer
9435         locals to 'gdb_byte *'.
9436
9437 2013-03-08  Stan Shebs  <stan@codesourcery.com>
9438             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9439
9440         * NEWS: Mention set and show trace-buffer-size commands.
9441         Mention new packet.
9442         * target.h (struct target_ops): New method
9443         to_set_trace_buffer_size.
9444         (target_set_trace_buffer_size): New macro.
9445         * target.c (update_current_target): Set up new method.
9446         * tracepoint.c (trace_buffer_size): New global.
9447         (start_tracing): Send it to the target.
9448         (set_trace_buffer_size): New function.
9449         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9450         * remote.c (remote_set_trace_buffer_size): New function.
9451         (_initialize_remote): Use it.
9452         (QTBuffer:size) New remote command.
9453         (PACKET_QTBuffer_size): New enum.
9454         (remote_protocol_features): Add an entry for
9455         PACKET_QTBuffer_size.
9456
9457 2013-03-08  Tom Tromey  <tromey@redhat.com>
9458
9459         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9460         variable.
9461
9462 2013-03-07  Pedro Alves  <palves@redhat.com>
9463
9464         * target.c (target_read_stralloc, target_fileio_read_alloc):
9465         *Cast pointer to 'gdb_byte *' in target call.
9466
9467 2013-03-07  Pedro Alves  <palves@redhat.com>
9468
9469         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9470         call.
9471
9472 2013-03-07  Keith Seitz  <keiths@redhat.com>
9473
9474         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9475         (trace_pass_command): Likewise.
9476         * cli/cli-cmds.c: Include cli/cli-utils.h.
9477         (source_command): Use skip-spaces.
9478         (disassemble_command): Likewise.
9479         * findcmd.c: Include cli/cli-utils.h.
9480         (parse_find_args): Use skip_spaces.
9481         * go32-nat.c: Include cli/cli-utils.h.
9482         (go32_sldt): Use skip_spaces.
9483         (go32_sgdt): Likewise.
9484         (go32_sidt): Likewise.
9485         (go32_pde): Likewise.
9486         (go32_pte): Likewise.
9487         (go32_pte_for_address): Likewise.
9488         * infcmd.c: Include cli/cli-utils.h.
9489         (registers_info): Use skip_spaces.
9490         * linux-tdep.c (read_mapping): Use skip_spaces_const.
9491         (linux_info_proc): Likewise.
9492         * linux-thread-db.c: Include cli/cli-utils.h.
9493         (info_auto_load_libthread_db): Use skip_spaces_const.
9494         * m32r-rom.c: Include cli/cli-utils.h.
9495         (m32r_upload_command): Use skip_spaces.
9496         * maint.c: Include cli/cli-utils.h.
9497         (maintenance_translate_address): Use skip_spaces.
9498         * mi/mi-parse.c: Include cli/cli-utils.h.
9499         (mi_parse_argv): Use skip_spaces.
9500         (mi_parse): Likewise.
9501         * minsyms.c: Include cli/cli-utils.h.
9502         (msymbol_hash_iw): Use skip_spaces_const.
9503         * objc-lang.c: Include cli/cli-utils.h.
9504         (parse_selector): Use skip_spaces.
9505         (parse_method): Likewise.
9506         * python/python.c: Include cli/cli-utils.h.
9507         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9508         (python_command)[HAVE_PYTHON]: Likewise.
9509         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9510         * remote-m32r-sdi.c: Include cli/cli-utils.h.
9511         (m32r_load): Use skip_spaces.
9512         * serial.c: Include cli/cli-utils.h.
9513         (serial_open): Use skip_spaces_const.
9514         * stack.c: Include cli/cli-utils.h.
9515         (parse_frame_specification_1): Use skip_spaces_const.
9516         * symfile.c: Include cli/cli-utils.h.
9517         (set_ext_lang_command): Use skip_spaces.
9518         * symtab.c: Include cli/cli-utils.h.
9519         (rbreak_command): Use skip_spaces.
9520         * thread.c (thread_name_command): Use skip_spaces.
9521         * tracepoint.c (validate_actionline): Use skip_spaces.
9522         (encode_actions_1): Likewise.
9523         (trace_find_range_command): Likewise.
9524         (trace_find_outside_command): Likewise.
9525         (trace_dump_actions): Likewise.
9526
9527 2013-03-07  Pedro Alves  <palves@redhat.com>
9528
9529         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9530         * expprint.c (print_subexp_standard): Likewise.
9531         * utils.c (host_char_to_target): Likewise.
9532         * valprint.c (generic_emit_char, generic_printstr): Likewise.
9533         * varobj.c (value_get_print_value): Change type of local to char*.
9534         Cast it gdb_byte * in call to language printer.
9535
9536 2013-03-07  Pedro Alves  <palves@redhat.com>
9537
9538         * charset.c (struct wchar_iterator) <input>: Change type to 'const
9539         gdb_byte *'.
9540         (make_wchar_iterator): Remove cast to char*.
9541         (wchar_iterate): Change type of local.
9542
9543 2013-03-07  Pedro Alves  <palves@redhat.com>
9544
9545         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9546         for 'regcache->register_status'.
9547
9548 2013-03-07  Pedro Alves  <palves@redhat.com>
9549
9550         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9551         int.
9552
9553 2013-03-07  Pedro Alves  <palves@redhat.com>
9554
9555         * stap-probe.c (handle_stap_probe): Add cast to char*.
9556
9557 2013-03-07  Pedro Alves  <palves@redhat.com>
9558
9559         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9560         RECORD_MSGRCV>: Pass a signed variable to
9561         regcache_raw_read_signed, instead of an unsigned one.
9562
9563 2013-03-07  Pedro Alves  <palves@redhat.com>
9564
9565         * remote-notif.c (notif_debug): Change type to int.
9566         * remote-notif.h (notif_debug): Likewise.
9567
9568 2013-03-07  Pedro Alves  <palves@redhat.com>
9569
9570         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9571
9572 2013-03-07  Pedro Alves  <palves@redhat.com>
9573
9574         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9575         * remote.h (hex2bin, bin2hex): ... here.
9576         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9577
9578 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
9579
9580         * utils.c (initialize_utils): Improve doc strings of "set/show
9581         width", "set/show height", and "set/show pagination".
9582
9583 2013-03-06  Keith Seitz  <keiths@redhat.com>
9584
9585         * ax-gdb.c (gen_printf): Make FORMAT const.
9586         * ax-gdb.h (gen_printf): Likewise.
9587         * ax-general.c (ax_string): Make STR const.
9588         * ax.h (ax_string): Likewise.
9589
9590 2013-03-06  Doug Evans  <dje@google.com>
9591
9592         * elfread.c (elf_symfile_read): Move debugging printf to more
9593         logical location.
9594
9595 2013-03-06  Pedro Alves  <palves@redhat.com>
9596
9597         * python/py-utils.c (target_string_to_unicode): Delete function.
9598         * python/python-internal.h (target_string_to_unicode): Delete
9599         declaration.
9600
9601 2013-03-06  Pierre Muller  <muller@sourceware.org>
9602
9603         * linespec.c (get_current_search_block): ARI fix, use (void)
9604         for empty parameter list.
9605
9606 2013-03-05  Doug Evans  <dje@google.com>
9607
9608         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9609         of old ada_lookup_symbol_list.  In !full_search case, don't
9610         search superblocks.
9611         (ada_lookup_symbol_list): Delete arg full_search, all callers
9612         updated.  Call ada_lookup_symbol_list_worker.
9613         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9614         * ada-lang.h (ada_lookup_symbol_list): Update.
9615         * language.h (language_defn): Update comment for
9616         la_iterate_over_symbols.
9617         * linespec.c (iterate_over_file_blocks): New function.
9618         (iterate_over_all_matching_symtabs): Call it.
9619         (lookup_prefix_sym): Ditto.
9620         (get_current_search_block): New function.
9621         (get_search_block): Delete.
9622         (find_label_symbols): Call get_current_search_block.
9623         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9624         * symtab.c (iterate_over_symbols): Don't search superblocks.
9625
9626 2013-03-05  Yao Qi  <yao@codesourcery.com>
9627
9628         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9629         parameter VAR's type from "unsigned int" to "int".
9630         * command.h (var_zuinteger_unlimited): Update its comments.
9631         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9632
9633 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9634
9635         * NEWS: Mention new target x86_64-*-cygwin*.
9636
9637 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9638
9639         * configure.host: Add x86_64-*-cygwin* as host.
9640         * configure.tgt: Add x86_64-*-cygwin* as target.
9641         * config/i386/cygwin64.mh: New file.
9642
9643 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9644
9645         * linespec.c (decode_line_2): Fix duplicate request off by two message.
9646
9647 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9648
9649         * linespec.c (struct linespec_canonical_name): New.
9650         (struct linespec_state): Change canonical_names type to it.
9651         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
9652         xrealloc element size.  Initialize the different CANONICAL fields.
9653         (canonical_to_fullform): New.
9654         (filter_results): Use it.  Add variables canonical, fullform and
9655         cleanup.
9656         (struct decode_line_2_item, decode_line_2_compare_items): New.
9657         (decode_line_2): Remove variables iter and item_names, add variables
9658         items and items_count.  Modify the code for these new variables.
9659
9660 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
9661
9662         * coff-pe-read.c (read_pe_exported_syms): Don't return without
9663         calling do_cleanup.
9664
9665 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
9666
9667         * tracepoint.c (build_traceframe_info): Add code for byte order.
9668
9669 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
9670
9671         * v850-tdep.c: (v850e2_register_name): Revise system register
9672         names to match current V850E2M architecture specifications.
9673         Update register number enum comments too.
9674
9675 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9676             Pedro Alves  <palves@redhat.com>
9677
9678         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9679         to END_ADDR.
9680         (tilegx_skip_prologue): Limit prologue analysis to section end.
9681
9682 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9683
9684         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9685         use it.
9686
9687 2013-03-01  Pedro Alves  <palves@redhat.com>
9688
9689         Use gdb_byte for bytes from the program being debugged.
9690
9691         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9692         Change type of local 'buf' to gdb_byte.
9693         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9694         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9695         * cris-tdep.c (cris_sigcontext_addr)
9696         (cris_sigtramp_frame_unwind_cache): Likewise.
9697         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9698         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9699         Likewise.
9700         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9701         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9702         (hppa32_hpux_search_dummy_call_sequence)
9703         (hppa_hpux_supply_save_state): Likewise.
9704         * hppa-linux-tdep.c (insns_match_pattern)
9705         (hppa_linux_find_global_pointer): Likewise.
9706         * hppa-tdep.c (hppa_in_function_epilogue_p)
9707         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9708         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9709         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9710         (i386fbsd_collect_uthread): Likewise.
9711         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9712         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9713         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9714         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9715         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9716         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9717         (ia64_libunwind_frame_prev_register)
9718         (ia64_libunwind_sigtramp_frame_this_id)
9719         (ia64_find_global_pointer_from_dynamic_section)
9720         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9721         (ia64_unwind_pc): Likewise.
9722         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9723         * m68hc11-tdep.c (m68hc11_push_dummy_call)
9724         (m68hc11_extract_return_value): Likewise.
9725         * m68klinux-nat.c (fetch_register, store_register): Likewise.
9726         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9727         (mep_get_insn, mep_push_dummy_call): Likewise.
9728         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9729         (mips_linux_in_dynsym_stub): Likewise.
9730         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9731         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9732         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9733         to gdb_byte.
9734         * remote-mips.c (mips_set_register): Likewise.
9735         * remote-sim.c (gdbsim_fetch_register): Likewise.
9736         * score-tdep.c (score7_fetch_inst): Change type of parameter
9737         'memblock' and local 'buf' to gdb_byte.
9738         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9739         Change type of local 'buf' to gdb_byte.  Adjust.
9740         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9741         to gdb_byte**.
9742         (score7_analyze_prologue): Change type of 'memblock' and
9743         'memblock_ptr' locals to gdb_byte*.
9744         * sh64-tdep.c (sh64_extract_return_value)
9745         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9746         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9747         * solib-pa64.c (pa64_solib_create_inferior_hook)
9748         (pa64_open_symbol_file_object): Remove local 'buf'.
9749         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9750         (som_open_symbol_file_object): Likewise.
9751         * solib-spu.c (spu_current_sos): Likewise.
9752         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9753         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9754         (spu_store_registers): Likewise.
9755         * target.c (debug_print_register): Likewise.
9756         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9757         * xstormy16-tdep.c (xstormy16_store_return_value)
9758         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9759         (xstormy16_find_jmp_table_entry): Likewise.
9760
9761 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9762
9763         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9764         (tilegx_gdbarch_init): Install it.
9765
9766 2013-02-28  Tom Tromey  <tromey@redhat.com>
9767
9768         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9769         PyLong_Check.
9770
9771 2013-02-28  Doug Evans  <dje@google.com>
9772
9773         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9774         * python/python.c (gdbpy_find_pc_line): Ditto.
9775
9776 2013-02-28  Tom Tromey  <tromey@redhat.com>
9777
9778         * contrib/excheck.py: New file.
9779         * contrib/exsummary.py: New file.
9780         * contrib/gcc-with-excheck: New file.
9781
9782 2013-02-28  Tom Tromey  <tromey@redhat.com>
9783
9784         * python/python.c (gdbpy_print_stack): Call begin_line and
9785         fprintf_filtered inside TRY_CATCH.
9786
9787 2013-02-28  Tom Tromey  <tromey@redhat.com>
9788
9789         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9790         inside TRY_CATCH.
9791
9792 2013-02-28  Tom Tromey  <tromey@redhat.com>
9793
9794         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9795         frame_object_to_frame_info inside TRY_CATCH.
9796
9797 2013-02-28  Tom Tromey  <tromey@redhat.com>
9798
9799         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9800         TRY_CATCH.
9801
9802 2013-02-28  Tom Tromey  <tromey@redhat.com>
9803
9804         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9805
9806 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
9807
9808         * windows-nat.c: Throughout, fix format strings and casts of
9809         printf-like functions to avoid type related warnings on all
9810         platforms.
9811         (handle_output_debug_string): Fetch context information address
9812         from debug string using string_to_core_addr.
9813
9814 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9815
9816         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9817         * regformats/reg-tilegx32.dat: New.
9818
9819 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9820
9821         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9822
9823 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9824
9825         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9826
9827 2013-02-27  Yao Qi  <yao@codesourcery.com>
9828             Pedro Alves  <palves@redhat.com>
9829
9830         * tracepoint.c (tfile_trace_find): For tfind
9831         pc/tp/range/outside, look for the next trace frame instead of
9832         always starting from frame 0.
9833
9834 2013-02-26  Anthony Green  <green@moxielogic.com>
9835
9836         * configure.tgt: Add support for moxie-*-rtems* target.
9837
9838 2013-02-25  Pedro Alves  <palves@redhat.com>
9839
9840         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9841         warning text.
9842
9843 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9844
9845         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9846         if $fp is used as the virtual frame pointer.
9847
9848 2013-02-23  Alan Modra  <amodra@gmail.com>
9849
9850         * elfread.c (elf_symtab_read): Do not use udata.p here to find
9851         symbol size.
9852         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9853         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9854         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9855         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9856
9857 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9858
9859         Code cleanup.
9860         * elfread.c (build_id_bfd_get): Make the return type const.
9861         (build_id_verify): Make the check parameter const.
9862         (build_id_to_debug_filename): Make the build_id parameter and variable
9863         data const.
9864         (find_separate_debug_file_by_buildid): Make the variable build_id const.
9865
9866 2013-02-21  Alan Modra  <amodra@gmail.com>
9867
9868         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9869
9870 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
9871
9872         Add a new method 'disassemble' to gdb.Architecture class.
9873         * python/py-arch.c (archpy_disassmble): Implementation of the
9874         new method gdb.Architecture.disassemble.
9875         (arch_object_methods): Add entry for the new method.
9876
9877 2013-02-20  Jiong Wang  <jiwang@tilera.com>
9878
9879         * MAINTAINERS (Write After Approval): Add myself to the list.
9880
9881 2013-02-19  Pedro Alves  <palves@redhat.com>
9882
9883         Garbage collect 'struct monitor_ops'::load_routine.
9884
9885         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9886         * monitor.c (monitor_load): No longer call
9887         current_monitor->load_routine.
9888         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9889         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9890         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9891
9892 2013-02-19  Pedro Alves  <palves@redhat.com>
9893
9894         PR gdb/15161
9895
9896         Harmonize with generic_load.
9897
9898         * monitor.c: Include "readline/readline.h".
9899         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
9900         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
9901         long/strtol for the 'load_offset' local.  Error out if no argument
9902         is given or if too many arguments are given.  Tilde expand the
9903         passed in file name.
9904
9905 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9906
9907         PR gdb/15161
9908         * symfile.c (load_section_data): Change type of load_offset
9909         to CORE_ADDR.
9910         (generic_load): User strtoulst instead of strtoul for conversion
9911         of load_offset.
9912
9913 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9914
9915         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9916          for return address, "lr" register, saved on stack.
9917         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9918         after we invoke tilegx_analyze_prologue.
9919
9920 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9921
9922         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9923
9924 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9925
9926         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9927
9928 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9929
9930         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9931         (tilegx_write_pc): New function.
9932         (tilegx_cannot_reference_register): Return zero if REGNO
9933         is TILEGX_FAULTNUM_REGNUM.
9934         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9935         (tilegx_register_name): Add handling of "faultnum" register.
9936         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9937         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9938         handling of TILEGX_FAULTNUM_REGNUM.
9939         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9940
9941 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9942
9943         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9944         should be aligned to 64bit.
9945
9946 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9947
9948         * windows-nat.c (windows_xfer_memory): Fix debug-output
9949         for LLP64.
9950
9951 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
9952
9953         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9954         Don't check DSP register number if HAVE_DSP is not set.
9955
9956 2013-02-19  Alan Modra  <amodra@gmail.com>
9957
9958         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
9959         throughout file instead.
9960         (build_id_bfd_get): Update to use new elf_tdata build_id field.
9961         Don't xmalloc return value.
9962         (build_id_verify): Similarly.  Don't xfree.
9963         (build_id_to_debug_filename): Update.
9964         (find_separate_debug_file_by_buildid): Update, don't xfree.
9965
9966 2013-02-18  Tom Tromey  <tromey@redhat.com>
9967
9968         PR gdb/15102:
9969         * dwarf2read.c (read_subrange_type): Use result of
9970         'check_typedef'.
9971
9972 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9973
9974         * frame.c: Remove one extra white space after #include
9975         directive.
9976
9977 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9978
9979         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9980
9981 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9982
9983         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9984         and dir commands into an if block.
9985
9986 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
9987
9988         * python/py-breakpoint (struct pybp_code):  Use int instead of
9989         enum type_code.
9990
9991 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
9992             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9993
9994         * NEWS: Mention new field "trace-file".
9995         * tracepoint.c (trace_status_mi): Output "trace-file" field.
9996         (tfile_open): Record the trace file's filename in the trace
9997         status.
9998         (tfile_files_info): Mention the name of the trace file.
9999         Check the "filename" field explicitely.
10000         (trace_status_command): Explicitely check "filename" field.
10001         (trace_find_command): Ditto.
10002         (trace_find_pc_command): Ditto.
10003         (trace_find_tracepoint_command): Ditto.
10004         (trace_find_line_command): Ditto.
10005         (trace_find_range_command): Ditto.
10006         (trace_find_outside_command): Ditto.
10007         * tracepoint.h (struct trace_status) <from_file>: Rename it
10008         to "filename" and make it hold the trace file's filename
10009         instead of a boolean.
10010         * remote.c (remote_get_trace_status): Initialize "filename"
10011         field with NULL instead of 0.
10012
10013 2013-02-15  Yao Qi  <yao@codesourcery.com>
10014
10015         * remote.c: Fix a typo.
10016
10017 2013-02-14  Pierre Muller  <muller@sourceware.org>
10018
10019         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10020
10021 2013-02-14  Pedro Alves  <palves@redhat.com>
10022
10023         * utils.c (savestring): Don't #undef it.  Move function to
10024         common/common-utils.c.
10025         * common/common-utils.c: Include gdb_string.h.
10026         (savestring): Move here from utils.c.
10027         * common/common-utils.h (savestring): Declare.
10028
10029 2013-02-14  Pedro Alves  <palves@redhat.com>
10030
10031         * utils.c (savestring): Rename parameter 'size' to 'len'.
10032
10033 2013-02-14  Pedro Alves  <palves@redhat.com>
10034             Yufeng Zhang  <yufeng.zhang@arm.com>
10035
10036         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10037         (aarch64_inferior_data, struct aarch64_inferior_data):
10038         Delete.
10039         (struct aarch64_process_info): New.
10040         (aarch64_process_list): New global.
10041         (aarch64_find_process_pid, aarch64_add_process)
10042         (aarch64_process_info_get): New functions.
10043         (aarch64_inferior_data_get): Delete.
10044         (aarch64_process_info_get): New function.
10045         (aarch64_forget_process): New function.
10046         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
10047         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10048         aarch64_get_debug_reg_state.
10049         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10050         instead of linux_nat_iterate_watchpoint_lwps.
10051         (aarch64_linux_new_fork): New function.
10052         (aarch64_linux_child_post_startup_inferior): Use
10053         aarch64_forget_process instead of aarch64_init_debug_reg_state.
10054         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10055         (aarch64_linux_remove_hw_breakpoint)
10056         (aarch64_handle_aligned_watchpoint)
10057         (aarch64_handle_unaligned_watchpoint)
10058         (aarch64_linux_insert_watchpoint)
10059         (aarch64_linux_remove_watchpoint)
10060         (aarch64_linux_stopped_data_address): Adjust to pass the current
10061         process id to aarch64_debug_reg_state.
10062         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10063         linux_nat_new_fork hook, and aarch64_forget_process as
10064         linux_nat_forget_process hook; remove the call to
10065         register_inferior_data_with_cleanup.
10066
10067 2013-02-14  Pedro Alves  <palves@redhat.com>
10068
10069         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10070         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10071         lval_memory.
10072
10073 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
10074             Hafiz Abid Qadeer  <abidh@codesourcery.com>
10075
10076         * tracepoint.h (validate_trace_state_variable_name): Declare.
10077         * tracepoint.c (validate_trace_state_variable_name): New.
10078         (trace_variable_command): Parse the trace state variable's name
10079         without using parse_expression.  Do several validations.
10080         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10081         trace state variable's name with parse_expression.  Validate it.
10082
10083 2013-02-14  Yao Qi  <yao@codesourcery.com>
10084
10085         * infcmd.c (breakpoint_proceeded): Remove it.
10086
10087 2013-02-14  Yao Qi  <yao@codesourcery.com>
10088
10089         * tracepoint.c (end_actions_pseudocommand): Make it static.
10090         (while_stepping_pseudocommand): Likewise.
10091         * tracepoint.h (end_actions_pseudocommand): Remove the
10092         declaration.
10093         (while_stepping_pseudocommand): Likewise.
10094
10095 2013-02-14  Yao Qi  <yao@codesourcery.com>
10096
10097         * cli/cli-decode.c (help_cmd): Remove the declaration of
10098         "cmdlist".
10099         (help_all): Likewise.
10100
10101 2013-02-13  Pedro Alves  <palves@redhat.com>
10102
10103         * amd64-linux-nat.c (update_debug_registers_callback):
10104         Update comment.
10105         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10106         iterate_over_lwps.
10107         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10108         i386_debug_reg_state.
10109         (amd64_linux_new_fork): New function.
10110         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10111         linux_nat_new_fork hook, and i386_forget_process as
10112         linux_nat_forget_process hook.
10113         * i386-linux-nat.c (update_debug_registers_callback):
10114         Update comment.
10115         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10116         iterate_over_lwps.
10117         (i386_linux_prepare_to_resume): Pass the lwp's pid to
10118         i386_debug_reg_state.
10119         (i386_linux_new_fork): New function.
10120         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10121         linux_nat_new_fork hook, and i386_forget_process as
10122         linux_nat_forget_process hook.
10123         * i386-nat.c (i386_init_dregs): Delete.
10124         (i386_inferior_data, struct i386_inferior_data):
10125         Delete.
10126         (struct i386_process_info): New.
10127         (i386_process_list): New global.
10128         (i386_find_process_pid, i386_add_process, i386_process_info_get):
10129         New functions.
10130         (i386_inferior_data_get): Delete.
10131         (i386_process_info_get): New function.
10132         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
10133         (i386_forget_process): New function.
10134         (i386_cleanup_dregs): Rewrite.
10135         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10136         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10137         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10138         (i386_remove_hw_breakpoint): Adjust to pass the current process id
10139         to i386_debug_reg_state.
10140         (i386_use_watchpoints): Don't register inferior data.
10141         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10142         adjust comment.
10143         (i386_forget_process): Declare.
10144         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10145         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10146         New static globals.
10147         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10148         (add_initial_lwp): New, factored out from ...
10149         (add_lwp): ... this.  Don't check the number of lwps before
10150         calling linux_nat_new_thread.
10151         (linux_nat_iterate_watchpoint_lwps): Delete.
10152         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10153         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10154         forks and vforks.
10155         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10156         initial lwp.
10157         (linux_nat_kill, linux_nat_mourn_inferior): Call
10158         linux_nat_forget_process.
10159         (linux_nat_set_new_fork, linux_nat_set_forget_process)
10160         (linux_nat_forget_process): New functions.
10161         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10162         type.
10163         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10164         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10165         types.
10166         (linux_nat_set_new_fork, linux_nat_set_forget_process)
10167         (linux_nat_forget_process): New declarations.
10168
10169         * amd64fbsd-nat.c (super_mourn_inferior): New global.
10170         (amd64fbsd_mourn_inferior): New function.
10171         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10172         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10173
10174 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10175
10176         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10177         Adding _().
10178
10179 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10180
10181         * aarch64-linux-nat.c (debug_reg_change_callback)
10182         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10183         %s and phex().
10184
10185 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10186
10187         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10188         with LONGEST.
10189
10190 2013-02-13  Pedro Alves  <palves@redhat.com>
10191             Hafiz Abid Qadeer  <abidh@codesourcery.com>
10192
10193         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10194
10195 2013-02-12  Tom Tromey  <tromey@redhat.com>
10196
10197         PR symtab/11464:
10198         * c-exp.y (lex_one_token): Initialize other fields of yylval on
10199         NAME return.
10200         (classify_inner_name): Remove 'first_name' argument, add
10201         'context'.  Remove unused variable.
10202         (yylex): Explicitly maintain the context type.  Exit loop earlier
10203         if NAME result is seen.
10204
10205 2013-02-12  Pedro Alves  <palves@redhat.com>
10206
10207         * amd64-darwin-tdep.c: Add (C) after Copyright.
10208         * cli/cli-cmds.h: Ditto.
10209         * cli/cli-decode.c: Ditto.
10210         * cli/cli-decode.h: Ditto.
10211         * cli/cli-dump.c: Ditto.
10212         * cli/cli-dump.h: Ditto.
10213         * cli/cli-interp.c: Ditto.
10214         * cli/cli-logging.c: Ditto.
10215         * cli/cli-script.c: Ditto.
10216         * cli/cli-script.h: Ditto.
10217         * cli/cli-setshow.c: Ditto.
10218         * cli/cli-setshow.h: Ditto.
10219         * cli/cli-utils.c: Ditto.
10220         * cli/cli-utils.h: Ditto.
10221         * config/alpha/nm-osf3.h: Ditto.
10222         * config/djgpp/djconfig.sh: Ditto.
10223         * config/i386/nm-fbsd.h: Ditto.
10224         * config/i386/nm-i386gnu.h: Ditto.
10225         * config/nm-linux.h: Ditto.
10226         * config/nm-nto.h: Ditto.
10227         * config/rs6000/nm-rs6000.h: Ditto.
10228         * config/sparc/nm-sol2.h: Ditto.
10229         * darwin-nat-info.c: Ditto.
10230         * dfp.c: Ditto.
10231         * dfp.h: Ditto.
10232         * gdb-demangle.h: Ditto.
10233         * i386-darwin-nat.c: Ditto.
10234         * i386-darwin-tdep.c: Ditto.
10235         * linux-fork.h: Ditto.
10236         * m32c-tdep.c: Ditto.
10237         * microblaze-linux-tdep.c: Ditto.
10238         * microblaze-rom.c: Ditto.
10239         * microblaze-tdep.c: Ditto.
10240         * microblaze-tdep.h: Ditto.
10241         * mips-linux-tdep.h: Ditto.
10242         * ppc-ravenscar-thread.c: Ditto.
10243         * ppc-ravenscar-thread.h: Ditto.
10244         * prologue-value.c: Ditto.
10245         * prologue-value.h: Ditto.
10246         * ravenscar-thread.c: Ditto.
10247         * ravenscar-thread.h: Ditto.
10248         * sparc-ravenscar-thread.c: Ditto.
10249         * sparc-ravenscar-thread.h: Ditto.
10250         * tilegx-linux-tdep.c: Ditto.
10251         * unwind_stop_reasons.def: Ditto.
10252         * windows-nat.h: Ditto.
10253         * xtensa-linux-tdep.c: Ditto.
10254         * xtensa-xtregs.c: Ditto.
10255         * regformats/regdat.sh: Ditto.
10256         * regformats/regdef.h: Ditto.
10257
10258 2013-02-12  Pedro Alves  <palves@redhat.com>
10259
10260         * break-catch-sig.c: Update copyright years.
10261
10262 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
10263
10264         Add support for a destructor for ui_out data and use it to
10265         provide a ui_out destructor.
10266         * ui-out.h: Declare the new ui_out destructor.
10267         (ui_out_impl): Add a field for data destructor in ui_out_impl.
10268         * ui-out.c (default_data_destroy): Add a default data destructor
10269         which does nothing.
10270         (default_ui_out_impl): Set the new data_destroy field to
10271         default_data_destroy
10272         (uo_data_destroy): Local function which invokes the data
10273         destructor if present.
10274         (clear_table): Local function which clears the table data of a
10275         ui_out object.
10276         (ui_out_destroy): Public function which frees a ui_out object.
10277         (ui_out_table_end): Use the new clear_table function.
10278         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10279         NULL.
10280         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10281         to NULL.
10282
10283 2013-02-11  Doug Evans  <dje@google.com>
10284
10285         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10286         (printf_decfloat): New function.  Broken out from ui_printf.
10287         Remove unnecessary code to shift the entire format string down.
10288         (printf_pointer): New function.
10289         (ui_printf): Code to print C strings, wide C strings, decfloats,
10290         and pointers moved to separate functions.
10291
10292 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10293
10294         * valops.c (value_assign): Handling bitfield offset in
10295         `lval_internalvar_component' case.
10296
10297 2013-02-08  Doug Evans  <dje@google.com>
10298
10299         * common/format.c (parse_format_string): Fix whitespace.
10300
10301 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
10302
10303         * stack.c (return_command): Work around uninitialized variable
10304         warning.
10305
10306 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
10307
10308         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10309         number of the registers from 36 to 34.
10310
10311 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10312
10313         * NEWS: Mention new AArch64 native and target support.
10314
10315 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10316
10317         * MAINTAINERS (Write After Approval): Add myself.
10318
10319 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
10320             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10321             Nigel Stephens  <nigel.stephens@arm.com>
10322             Yufeng Zhang  <yufeng.zhang@arm.com>
10323
10324         * aarch64-linux-nat.c: New file.
10325         * config/aarch64/linux.mh: New file.
10326         * configure.host: Add AArch64.
10327         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10328
10329 2013-02-07  Doug Evans  <dje@google.com>
10330
10331         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10332         disassemble command.
10333
10334 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10335
10336         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10337         set_gdbarch_fetch_tls_load_module_address.
10338
10339 2013-02-06  David S. Miller  <davem@davemloft.net>
10340
10341         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10342         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10343         * value.c (struct_return_convention): New function.
10344         (using_struct_return): Implement in terms of struct_return_convention.
10345         * value.h (struct_return_convention): Declare.
10346         * stack.c (return_command): Allow successful overriding of the return
10347         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10348
10349 2013-02-06  Tom Tromey  <tromey@redhat.com>
10350
10351         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10352         outside of TRY_CATCH.
10353
10354 2013-02-06  Yao Qi  <yao@codesourcery.com>
10355
10356         * mi/mi-interp.c: Include "tracepoint.h".
10357         (mi_tsv_modified): Declare.
10358         (mi_tsv_created, mi_tsv_deleted): Update declaration.
10359         (mi_interpreter_init): Call observer_attach_tsv_modified.
10360         (mi_tsv_modified): New.
10361         (mi_tsv_created, mi_tsv_deleted): Update.
10362         * tracepoint.c (trace_variable_command): Call
10363         observer_notify_tsv_modified if the initial value of tsv is
10364         changed.
10365         (delete_trace_state_variable): Call
10366         observer_notify_tsv_deleted earlier.
10367         (trace_variable_command): Caller update.
10368         (create_tsv_from_upload): Likewise.
10369         * observer.sh: Declare "struct trace_state_variable".
10370
10371         * NEWS: Mention the new MI notification "=tsv-modified".
10372
10373 2013-02-05  Doug Evans  <dje@google.com>
10374
10375         * completer.c (location_completer): Fix typo in comment.
10376
10377 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10378
10379         * breakpoint.c (add_location_to_breakpoint): Insert the location with
10380         ADDRESS sorted.
10381
10382 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10383
10384         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10385         Refactor if statement to avoid trailing || operator.
10386
10387 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
10388
10389         * NEWS: Add PowerPC FreeBSD as a new native configuration.
10390
10391 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
10392
10393         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10394         * configure.host: Add powerpc*-*-freebsd* target.
10395         * configure.tgt: Add target info for powerpc*-*-freebsd*.
10396         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10397         * config/powerpc/fbsd.mh: New file.
10398
10399 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
10400             Denys Vlasenko  <dvlasenk@redhat.com>
10401             Pedro Alves  <palves@redhat.com>
10402
10403         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10404         (struct elf_internal_linux_prpsinfo): Forward declare.
10405         * gdbarch.h, gdbarch.c: Regenerate.
10406         * linux-tdep.c: Include `cli/cli-utils.h'.
10407         (linux_fill_prpsinfo): New function.
10408         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
10409         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10410         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10411         depending on gdbarch pointer bitness.
10412         * ppc-linux-tdep.c: Include elf-bfd.h.
10413         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10414         on 32-bit.
10415
10416 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10417             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10418             Nigel Stephens  <nigel.stephens@arm.com>
10419             Yufeng Zhang  <yufeng.zhang@arm.com>
10420
10421         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10422
10423 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10424             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10425             Nigel Stephens  <nigel.stephens@arm.com>
10426             Yufeng Zhang  <yufeng.zhang@arm.com>
10427
10428         * aarch64-newlib-tdep.c: New file.
10429         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10430         aarch64*-*-elf.
10431         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10432         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10433         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10434         * osabi.c (gdb_osabi_names): Add "Newlib".
10435
10436 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10437             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10438             Nigel Stephens  <nigel.stephens@arm.com>
10439             Yufeng Zhang  <yufeng.zhang@arm.com>
10440
10441         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10442         (ALLDEPFILES): Add aarch64-linux-tdep.c.
10443         * aarch64-linux-tdep.c: New file.
10444         * aarch64-linux-tdep.h: New file.
10445         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10446         * configure.tgt: Add aarch64-none-linux-gnu.
10447
10448 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10449             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10450             Nigel Stephens  <nigel.stephens@arm.com>
10451             Yufeng Zhang  <yufeng.zhang@arm.com>
10452
10453         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10454         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10455         (ALLDEPFILES): Add aarch64-tdep.c.
10456         * aarch64-tdep.c: New file.
10457         * aarch64-tdep.h: New file.
10458         * configure.tgt: Add AArch64.
10459         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10460         (aarch64-expedite): New definition.
10461         * features/aarch64-core.xml: New file.
10462         * features/aarch64-fpu.xml: New file.
10463         * features/aarch64-without-fpu.c: New file (generated).
10464         * features/aarch64-without-fpu.xml: New file.
10465         * features/aarch64.c: New file (generated).
10466         * features/aarch64.xml: New file.
10467         * regformats/aarch64-without-fpu.dat: New file (generated).
10468         * regformats/aarch64.dat: New file (generated).
10469
10470 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10471
10472         * contrib/expect-read1.c: New file.
10473         * contrib/expect-read1.sh: New file.
10474
10475 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10476
10477         * dwarf2read.c (file_file_name): New function with code from
10478         file_full_name.
10479         (file_full_name): Move most of the code to file_file_name.
10480         (macro_start_file): Rename variable full_name to file_name and use
10481         file_file_name for it.  Add comp_dir parameter to new_macro_table.
10482         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
10483         macro_source_file->filename access by macro_source_fullname call.
10484         * macroscope.c (_initialize_macroscope): Update the new_macro_table
10485         caller.
10486         * macrotab.c (struct macro_table): New field comp_dir.
10487         (macro_include): New variables link_fullname and source_fullname.
10488         Replace any macro_source_file->filename access by macro_source_fullname
10489         call.
10490         (macro_lookup_inclusion): Remove the partial filenames checking code.
10491         (check_for_redefinition): New variables source_fullname and
10492         found_key_fullname.  Replace any macro_source_file->filename access by
10493         macro_source_fullname call.
10494         (macro_undef): New variables source_fullname and key_fullname.  Replace
10495         any macro_source_file->filename access by macro_source_fullname call.
10496         (macro_lookup_definition): New variables retval and source_fullname.
10497         Replace any macro_source_file->filename access by macro_source_fullname
10498         call.
10499         (foreach_macro): New variable key_fullname.  Replace any
10500         macro_source_file->filename access by macro_source_fullname call.
10501         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
10502         macro_source_file->filename access by macro_source_fullname call.
10503         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
10504         (macro_source_fullname): New function.
10505         * macrotab.h (struct macro_source_file): Extent the filename field
10506         comment.
10507         (new_macro_table): New parameter comp_dir, add a comment for it.
10508         (macro_source_fullname): new declaration.
10509
10510 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10511
10512         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10513         this_real_name to outer block.  Use it also for
10514         compare_filenames_for_search.
10515         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
10516         with dw2_get_real_path for file_matcher, considering also
10517         BASENAMES_MAY_DIFFER.
10518         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10519
10520 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10521
10522         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10523         to the file_matcher parameter.  Pass 0 to it.
10524         (dwarf2_create_include_psymtab): Copy also DIRNAME.
10525         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10526         NULL psymtab_to_fullname result.
10527         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
10528         an expected filename instead.
10529         (expand_symtabs_matching_via_partial): Add basenames parameter to the
10530         file_matcher parameter.  Call also psymtab_to_fullname, after newly
10531         considering BASENAMES_MAY_DIFFER.
10532         * source.c (rewrite_source_path): Remove static.
10533         * source.h (rewrite_source_path): New declaration.
10534         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10535         the expand_symtabs_matching field.  Comment it.
10536         * symtab.c (file_matches): New function comment.  Add parameter
10537         basenames, implement it.
10538         (search_symbols_file_matches): Add basenames parameter.  Update the
10539         file_matches caller.
10540         (search_symbols): Match FILES also against symtab_to_fullname.
10541         Optimize it for BASENAMES_MAY_DIFFER.
10542
10543 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10544
10545         * source.c (print_source_lines_base): Print for TUI also "fullname".
10546         * tui/tui-data.c (init_content_element): Change tui_locator_element
10547         field to full_name.
10548         * tui/tui-data.h (struct tui_locator_element): Likewise.
10549         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10550         tui_update_locator_filename calls to tui_update_locator_fullname.
10551         Replace symtab->filename refererence by symtab_to_fullname call.
10552         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10553         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10554         field to full_name.  Replace symtab->filename refererence by
10555         symtab_to_fullname call.
10556         (tui_show_symtab_source): Rename parameter to fullname.  Change
10557         tui_locator_element field to full_name.
10558         * tui/tui-stack.c: Include source.h.
10559         (tui_set_locator_filename): Rename the declaration to ...
10560         (tui_set_locator_fullname): ... here.  Rename its parameter to
10561         fullname, updates its comment.
10562         (tui_set_locator_info): Rename its parameter to fullname.
10563         (tui_set_locator_filename): Rename the definition to ...
10564         (tui_set_locator_fullname): ... here.  Rename its parameter to
10565         fullname, updates its comment.  Change tui_locator_element field to
10566         full_name.
10567         (tui_set_locator_info): Rename its parameter to fullname.
10568         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10569         (tui_update_locator_filename): Rename to ...
10570         (tui_update_locator_fullname): ... here. Rename callee to
10571         tui_set_locator_fullname.
10572         (tui_show_frame_info): Replace symtab->filename refererence by
10573         symtab_to_fullname call.
10574         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10575         (tui_update_locator_fullname): ... here.
10576         * tui/tui-winsource.c (tui_display_main): Rename the callee to
10577         tui_update_locator_fullname.  Replace symtab->filename refererence by
10578         symtab_to_fullname call.
10579         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10580         Rename the callee to tui_update_locator_fullname.
10581         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10582
10583 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10584
10585         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10586         by symtab_to_filename_for_display calls.
10587         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10588         (clear_command): New variable sal_fullname, initialize it.  Replace
10589         compare_filenames_for_search by filename_cmp with sal_fullname.
10590         (say_where, update_static_tracepoint): Replace symtab->filename
10591         refererences by symtab_to_filename_for_display calls.
10592         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10593         Likewise.
10594         * dwarf2read.c: Include source.h.
10595         (fixup_go_packaging): Replace symtab->filename refererences by
10596         symtab_to_filename_for_display calls.
10597         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10598         Replace symtab->filename refererences by symtab_to_filename_for_display
10599         calls.
10600         (create_sals_line_offset, convert_linespec_to_sals): New variable
10601         fullname, initialize it, replace symtab->filename reference by the
10602         variable.
10603         * linux-fork.c: Include source.h.
10604         (info_checkpoints_command): Replace symtab->filename refererences by
10605         symtab_to_filename_for_display calls.
10606         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10607         by symtab_to_filename_for_display calls.
10608         * mdebugread.c: Include source.h.
10609         (psymtab_to_symtab_1): Replace symtab->filename refererences by
10610         symtab_to_filename_for_display calls.
10611         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10612         (mi_cmd_file_list_exec_source_files): Likewise.
10613         * printcmd.c: Include source.h.
10614         (build_address_symbolic): Replace symtab->filename refererences by
10615         symtab_to_filename_for_display calls.
10616         * psymtab.c (partial_map_symtabs_matching_filename)
10617         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10618         with psymtab_to_fullname.
10619         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10620         by symtab_to_filename_for_display calls.
10621         (stpy_get_filename): New variable filename, initialize it, use instead
10622         of symtab->filename refererences.
10623         (salpy_str): Make variable filename const char *.  Replace
10624         symtab->filename refererences by symtab_to_filename_for_display calls.
10625         * skip.c: Include source.h and filenames.h.
10626         (skip_file_command): Remove const from the symtab variable.  Replace
10627         symtab->filename refererences by symtab_to_fullname call.
10628         (function_name_is_marked_for_skip): New variables searched_for_fullname
10629         and fullname.  Use them to search also with symtab's fullname.
10630         * source.c (find_source_lines): Replace symtab->filename refererences
10631         by symtab_to_filename_for_display calls.
10632         (print_source_lines_base): New variable filename, use it instead of
10633         symtab->filename.  Replace symtab->filename refererences by
10634         symtab_to_filename_for_display calls.
10635         (line_info, forward_search_command): Replace symtab->filename
10636         refererences by symtab_to_filename_for_display calls.
10637         (reverse_search_command): Replace symtab->filename refererences by
10638         symtab_to_filename_for_display calls.  New variable filename for it.
10639         * stack.c (frame_info): Likewise.
10640         * symmisc.c: Include source.h.
10641         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10642         (maintenance_info_symtabs): Replace symtab->filename refererences by
10643         symtab_to_filename_for_display calls.
10644         * symtab.c (iterate_over_some_symtabs): Call
10645         compare_filenames_for_search also with symtab_to_fullname.
10646         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10647         symtab->filename refererences by symtab_to_filename_for_display calls.
10648         (find_line_symtab): Replace symtab->filename refererences by
10649         symtab_to_filename_for_display calls.
10650         (file_matches): Replace filename_cmp by compare_filenames_for_search.
10651         (print_symbol_info): Make the last parameter const char *.  New
10652         variable s_filename.  Use it in the function.
10653         (symtab_symbol_info): Make the last_filename variable const char *.
10654         Replace symtab->filename refererences by symtab_to_filename_for_display
10655         calls.
10656         (rbreak_command): New variable fullname.  Use it.  Replace
10657         symtab->filename refererence by symtab_to_filename_for_display call.
10658         * tracepoint.c (set_traceframe_context, trace_find_line_command)
10659         (print_one_static_tracepoint_marker): Replace symtab->filename
10660         refererences by symtab_to_filename_for_display calls.
10661         * tui/tui-source.c (tui_set_source_content): New variables filename and
10662         s_filename.  Replace symtab->filename refererences by this variable.
10663         Replace other symtab->filename refererences by
10664         symtab_to_filename_for_display calls.
10665
10666 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10667             Jan Kratochvil  <jan.kratochvil@redhat.com>
10668
10669         Add a new variable that controls a way in which filenames are
10670         displayed.
10671         * NEWS (set filename-display): New entry.
10672         * source.c (filename_display_basename, filename_display_relative)
10673         (filename_display_absolute, filename_display_kind_names)
10674         (filename_display_string, show_filename_display_string)
10675         (symtab_to_filename_for_display): New.
10676         (_initialize_source): Added initialization of 'filename-display'
10677         variable.
10678         * source.h (symtab_to_filename_for_display): Added declaration.
10679         * stack.c (print_frame): Added new variable and calling of a new
10680         function and condition with this variable. Changed third argument of
10681         calling of a function.
10682
10683 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10684
10685         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10686         Rename field reference filename to fullname.
10687         * tui/tui-data.h (struct tui_source_info): Rename field filename to
10688         fullname.  New comment for it.
10689         * tui/tui-source.c (tui_set_source_content): Rename field reference
10690         filename to fullname.  Initialize field by symtab_to_fullname now.
10691         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10692         reference filename to fullname.  Use symtab_to_fullname during
10693         comparison.
10694
10695 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10696
10697         Code cleanup.
10698         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10699         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
10700         filename to fullname.  Rename variable this_name to this_fullname.
10701         Lowercase FILENAME_CMP call.
10702         (dw2_find_symbol_file): New comment for the returned string.
10703         (dwarf2_gdb_index_functions): Rename the function to
10704         dw2_expand_symtabs_with_fullname.
10705         * psymtab.c (read_psymtabs_with_filename): Rename to ...
10706         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
10707         fullname.
10708         (psym_functions): Rename the function to read_psymtabs_with_fullname.
10709         * symfile.h (struct quick_symbol_functions): Rename field
10710         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10711         parameter filename to fullname.  Document returned string meaning for
10712         find_symbol_file.
10713         * symtab.c (find_line_symtab): Rename the called function to
10714         expand_symtabs_with_fullname.
10715
10716 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10717
10718         Code cleanup.
10719         * breakpoint.c (clear_command): Remove variable is_abs, unify the
10720         call of filename_cmp with compare_filenames_for_search.
10721         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10722         is_abs, unify the call of FILENAME_CMP with
10723         compare_filenames_for_search.  New gdb_asserts for real_path and name.
10724         Unify the call of compare_filenames_for_search with FILENAME_CMP.
10725         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10726         * symfile.h (struct quick_symbol_functions): Extend the comment for
10727         map_symtabs_matching_filename.
10728         * symtab.c (compare_filenames_for_search): Remove the function comment
10729         relative path requirement.  Handle absolute filenames, with a comment.
10730         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10731         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
10732         real_path and name.  Unify the call of compare_filenames_for_search
10733         with FILENAME_CMP.
10734         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10735
10736 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10737
10738         Code cleanup.
10739         * breakpoint.c (print_breakpoint_location): Replace bp_location field
10740         source_file references by symtab field references.  Remove variables
10741         sal and fullname.
10742         (momentary_breakpoint_from_master, add_location_to_breakpoint):
10743         (clear_command, say_where): Replace bp_location field source_file
10744         references by symtab field references.
10745         (bp_location_dtor): Remove the source_file reference.
10746         (update_static_tracepoint): Replace bp_location field source_file
10747         references by symtab field references.
10748         (breakpoint_free_objfile): New function.
10749         * breakpoint.h (struct bp_location): Extend the comment for line_number.
10750         Replace the field source_file by field symtab, extend its comment.
10751         (breakpoint_free_objfile): New declaration.
10752         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10753         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10754         field source_file references by symtab field references.
10755
10756 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10757
10758         Replace xfullpath calls by gdb_realpath calls.
10759         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10760         function comment.
10761         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10762         Remove it from the iterate_over_some_symtabs call.
10763         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10764         Remove it from the dw2_map_expand_apply calls, remove a block handling
10765         it.
10766         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10767         Remove it from the iterate_over_some_symtabs call.
10768         (partial_map_symtabs_matching_filename): Remove parameter full_path.
10769         Remove it from the partial_map_expand_apply calls, remove a block
10770         handling it.  Drop gdb_realpath call and cleanups from the real_path
10771         handling.
10772         * source.c (openp): Drop the comment part about xfullpath.  Replace
10773         xfullpath calls by gdb_realpath calls.
10774         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10775         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10776         from method map_symtabs_matching_filename and its comment.
10777         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10778         gdb_realpath call.
10779         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10780         remove it also from the function comment, remove a block handling it.
10781         Drop gdb_realpath call and cleanups from the real_path handling.
10782         (iterate_over_symtabs): Drop variable full_path and its use.
10783         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10784         * utils.c (xfullpath): Remove.
10785         * utils.h (xfullpath): Remove.
10786
10787 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
10788
10789         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10790         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10791         (ALLDEPFILES): Add ppc64-tdep.c.
10792         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10793         ppc64-tdep.o to gdb_target_obs.
10794         * ppc64-tdep.h: New file.
10795         * ppc64-tdep.c: New file.
10796         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10797         ppc-linux-tdep.c to here.
10798         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10799         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10800         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10801         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10802         from ppc-linux-tdep.c to here.
10803         (ppc64_convert_from_func_ptr_addr): Rename from
10804         ppc64_linux_convert_from_func_ptr_addr to
10805         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10806         here.
10807         * rs6000-tdep.c:
10808         (read_insn): Move from ppc-linux-tdep.c to here.
10809         (insns_match_pattern, insn_d_field, insn_ds_field): Move
10810         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10811         * ppc-linux-tdep.c: Include ppc64-tdep.h.
10812         Removed above functions.
10813         (ppc_linux_init_abi): Adjust.
10814
10815 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10816
10817         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10818
10819 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10820
10821         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10822
10823 2013-02-01  Pedro Alves  <palves@redhat.com>
10824
10825         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10826         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10827
10828 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10829
10830         * elfread.c (elf_symfile_read): Limit separate debug info additions to
10831         files with no separate debug info.
10832         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10833         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10834         only for files with no separate debug info.
10835
10836 2013-01-31  Tom Tromey  <tromey@redhat.com>
10837
10838         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10839         change type.
10840         (struct jit_program_space_data): Rename from jit_inferior_data.
10841         Update comments.
10842         (get_jit_program_space_data): Rename from get_jit_inferior_data.
10843         Change return type.  Attach data to program space.
10844         (jit_program_space_data_cleanup): Rename from
10845         jit_inferior_data_cleanup; change argument type.
10846         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10847         change type.
10848         (jit_register_code): Update.
10849         (jit_update_inferior_cache): Remove.
10850         (jit_breakpoint_deleted): Get jit data from the location's program
10851         space.
10852         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10853         'ps_data', change type.
10854         (jit_inferior_init, jit_breakpoint_re_set_internal)
10855         (jit_event_handler): Update.
10856         (free_objfile_data): Get data from objfile's program space.
10857         (_initialize_jit): Update.
10858
10859 2013-01-31  Tom Tromey  <tromey@redhat.com>
10860
10861         PR gdb/13987:
10862         * jit.c (struct jit_inferior_data) <cached_code_address,
10863         jit_breakpoint>: New fields.
10864         (jit_breakpoint_re_set_internal): Fix logging.  Only create
10865         breakpoint if cached address has changed.
10866         (jit_update_inferior_cache, jit_breakpoint_deleted): New
10867         functions.
10868         (_initialize_jit): Register breakpoint deleted observer.
10869
10870 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10871
10872         * infrun.c (handle_syscall_event): Remove unused gdbarch.
10873         (save_infcall_suspend_state): Ifdef out unused inf.
10874         (restore_infcall_suspend_state): Ifdef out unused inf.
10875         * jit.c (jit_register_code): Remove unused i, b, inf_data.
10876         (jit_frame_sniffer): Remove unused inf_data.
10877
10878 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10879
10880         * c-exp.y (classify_inner_name): Remove unused type.
10881         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10882         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10883         need_escape.
10884         (c_get_string): Remove unused kind.
10885         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10886
10887 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10888
10889         * charset.c (intermediate_encoding): Remove unused i.
10890         * completer.c (signal_completer): Remove unused i.
10891         * continuations.c (discard_my_continuations_1): Remove unused
10892         continuation_ptr.
10893         * corelow.c (core_close): Remove unuseD name.
10894         (get_core_siginfo): Remove unused pid.
10895         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10896         i, cps.
10897         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10898         (loclist_describe_location): Remove unused first.
10899         * event-top.c (command_line_handler): Remove unused got_eof.
10900         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10901         (resize_section_table): Remove unused old_value.
10902         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10903         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10904         * i386-tdep.c (i386_process_record): Remove unused rex.
10905         * infcmd.c (get_return_value): Remove unused uiout.
10906         * jv-lang.c (type_from_class): Remove unused is_array.
10907         * jv-valprint.c (java_val_print): Remove unused i.
10908         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10909         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10910         * m2-typeprint.c (m2_print_type): Remove unused code.
10911         * macroexp.c (get_character_constant): Remove unused body_start.
10912         (macro_stringify): Remove unused result.
10913         * objc-lang.c (find_methods): Remove unused gdbarch.
10914         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10915         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10916         * stack.c (print_frame_args): Remove unused summary.
10917         * thread.c (thread_apply_command): Remove unused p.
10918         * valarith.c (value_x_unop): Remove unused mangle_ptr.
10919         * valops.c (search_struct_method): Remove unused skip.
10920         * valprint.c (generic_val_print): Remove unused byte_order.
10921         * varobj.c (varobj_update): Remove unused changed.
10922         * cli/cli-cmds.c (complete_command): Remove unused next_item.
10923         (alias_command): Remove unused c.
10924         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10925         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10926         format.
10927         (mi_cmd_data_write_memory): Remove unused word_format.
10928         (mi_cmd_data_write_memory_bytes): Remove unused r.
10929         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10930         p_start, p_end.
10931         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10932         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10933         line_width.
10934
10935 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10936
10937         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10938         * symtab.c (iterate_over_symtabs): Remove unused s.
10939         (find_pc_sect_symtab): Remove unused pspAce.
10940         (find_pc_sect_line): Remove unused alt_symtab.
10941         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10942         (completion_list_add_name): Remove unused newsize.
10943
10944 2013-01-31  Tom Tromey  <tromey@redhat.com>
10945
10946         PR c++/14998:
10947         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10948         TYPE_CODE_FUNC.
10949
10950 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10951
10952         * target.c (target_read_string): Remove unused origlen.
10953
10954 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10955
10956         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10957         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10958         * ax-general.c (ax_print): Remove unused is_float.
10959         * blockframe.c (block_innermost_frame): Remove unused start, end.
10960         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10961
10962 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10963
10964         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10965         (svr4_read_so_list): Remove unused lmo.
10966         * solib-target.c (solib_target_relocate_section_addresses): Remove
10967         unused flags.
10968
10969 2013-01-30  Tom Tromey  <tromey@redhat.com>
10970
10971         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10972
10973 2013-01-30  Tom Tromey  <tromey@redhat.com>
10974
10975         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10976         * utils.c (gnu_debuglink_crc32): Remove.
10977         * utils.h (gnu_debuglink_crc32): Don't declare.
10978
10979 2013-01-30  Tom Tromey  <tromey@redhat.com>
10980
10981         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10982         (read_structure_type, read_enumeration_type): Remove cast.
10983
10984 2013-01-30  Tom Tromey  <tromey@redhat.com>
10985
10986         * dwarf2read.c (read_namespace_type): Remove cast.
10987         (read_typedef): Likewise.
10988
10989 2013-01-29  Tom Tromey  <tromey@redhat.com>
10990
10991         * dwarf2read.c (free_dwo_file): Remove assert.
10992
10993 2013-01-29  Tom Tromey  <tromey@redhat.com>
10994
10995         * value.c (deprecated_set_value_modifiable): Remove.
10996         * value.h (deprecated_set_value_modifiable): Remove.
10997
10998 2013-01-28  Doug Evans  <dje@google.com>
10999
11000         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11001         to addresses from dwo files.
11002
11003 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
11004
11005         * valops.c (find_overload_match): Remove unused argument 'lax'.
11006         * value.h: Remove unused argument 'lax' from the declaration of
11007         find_overload_match.
11008         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11009         to find_overload_match.
11010         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11011         argument to find_overload_match.
11012
11013 2013-01-25  Tom Tromey  <tromey@redhat.com>
11014
11015         * dwarf2read.c (processing_has_namespace_info): Remove.
11016         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11017         (process_die, read_func_scope, dwarf2_start_symtab)
11018         (new_symbol_full): Update.
11019
11020 2013-01-25  Tom Tromey  <tromey@redhat.com>
11021
11022         * cp-namespace.c (cp_set_block_scope): Remove.
11023         * cp-support.h (cp_set_block_scope): Remove.
11024         * dbxread.c: Include block.h.
11025         (cp_set_block_scope): New function.
11026         (process_one_symbol): Update.
11027         * dwarf2read.c (read_func_scope): Use block_set_scope.
11028
11029 2013-01-25  Pedro Alves  <palves@redhat.com>
11030
11031         * remote.c (add_current_inferior_and_thread): Tweak comment.
11032
11033 2013-01-25  Tom Tromey  <tromey@redhat.com>
11034
11035         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11036         (cp_add_using_directive): Add 'copy_names' argument.
11037         * cp-support.h (cp_add_using_directive): Update.
11038         (struct using_direct) <import_src, import_dest, alias,
11039         declaration>: Now const.
11040         * dwarf2read.c (read_import_statement): Use obconcat.
11041         Don't copy names passed to cp_add_using_directive.
11042
11043 2013-01-25  Tom Tromey  <tromey@redhat.com>
11044
11045         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11046
11047 2013-01-25  Pedro Alves  <palves@redhat.com>
11048
11049         * remote.c (stop_reply_extract_thread): New.
11050         (add_current_inferior_and_thread): New parameter 'wait_status'.
11051         Handle it.
11052         (remote_start_remote): Pass wait status to
11053         add_current_inferior_and_thread.
11054         (extended_remote_run): Update comment.
11055         (extended_remote_create_inferior_1): Pass wait status to
11056         add_current_inferior_and_thread.
11057
11058 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
11059             Ulrich Weigand  <uweigand@de.ibm.com>
11060
11061         * valarith.c (value_vector_widen): New function for replicating a
11062         scalar into a vector.
11063         (value_binop): Use value_vector_widen to widen scalar to vector
11064         rather than casting, this better matches gcc C behaviour.
11065         * valops.c (value_casst): Update logic for casting between vector
11066         types, and for casting from scalar to vector, try to match gcc C
11067         behaviour.
11068         * value.h (value_vector_widen): Declare.
11069         * opencl-lang.c (opencl_value_cast): New opencl specific casting
11070         function, handle special case for casting scalar to vector.
11071         (opencl_relop): Use opencl_value_cast.
11072         (evaluate_subexp_opencl): Use opencl_value_cast instead of
11073         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11074         in order to use opencl_value_cast.
11075
11076 2013-01-25  Yao Qi  <yao@codesourcery.com>
11077
11078         * event-loop.c: Include "queue.h".
11079         (gdb_event_p): New typedef.
11080         (DECLARE_QUEUE_P): Use.
11081         (DEFINE_QUEUE_P): Use.
11082         (async_queue_event): Remove.
11083         (gdb_event_xfree): New.
11084         (initialize_event_loop): New.
11085         (process_event): Use QUEUE macros.
11086         (event_queue): Remove.
11087         (gdb_wait_for_event): Caller update.
11088         (check_async_event_handlers): Likewise.
11089         (poll_timers): Likewise.
11090         * event-loop.h (initialize_event_loop): Declare.
11091         * event-loop.c (gdb_event_xfree): New.
11092         * top.c (gdb_init): Call initialize_event_loop.
11093
11094 2013-01-25  Yao Qi  <yao@codesourcery.com>
11095
11096         * event-loop.c (async_queue_event): Remove one parameter
11097         'position'.  Remove code handling 'position' == TAIL.
11098         (gdb_wait_for_event): Caller update.
11099         (check_async_event_handlers): Caller update.
11100         (poll_timers): Caller update.
11101         * event-loop.h (enum queue_position): Remove.
11102
11103 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
11104
11105         * MAINTAINERS: Update my email.
11106
11107 2013-01-25  Yao Qi  <yao@codesourcery.com>
11108
11109         * main.c (print_gdb_help): Remove "--epoch" from the help
11110         message.
11111
11112 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
11113
11114         * symtab.c (skip_prologue_using_sal): Consider a file
11115         change the same as an increased line number
11116
11117 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11118
11119         * MAINTAINERS (Write After Approval): Add myself to the list.
11120
11121 2013-01-24  Tom Tromey  <tromey@redhat.com>
11122
11123         * ada-lang.h (ada_decode_symbol): Make return type const.
11124         * ada-lang.c (ada_decode_symbol): Likewise.
11125
11126 2013-01-23  Doug Evans  <dje@google.com>
11127
11128         * linespec.c (find_linespec_symbols): Make static.
11129
11130 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11131
11132         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11133         type on float conversion for complex type.
11134
11135 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
11136
11137         Add a new class gdb.Architecture which exposes GDB's
11138         internal representation of architecture via GDB Python API.
11139         * Makefile.in: Add entries corresponding to the new file
11140         python/py-arch.c.
11141         * NEWS (Python Scripting): Add entries for the new class
11142         gdb.Architecture and the new method gdb.Frame.architecture.
11143         * python/py-arch.c: Implement gdb.Architecture class.
11144         * python/py-frame.c (frapy_arch): Implement the method
11145         gdb.Frame.architecture().
11146         (frame_object_methods): Add 'architecture' to the method table.
11147         * python/python-internal.h: Add declarations of new utility
11148         functions.
11149         * python/python.c (_initialize_python): Initialize
11150         gdb.Architecture class.
11151
11152 2013-01-23  Doug Evans  <dje@google.com>
11153
11154         Work around binutils/15021.
11155         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11156         type_unit_group out of union s.  All uses updated.
11157         (read_index_from_section): Watch for index version 8.
11158         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11159         an imported symtab.
11160         (write_psymtabs_to_index): Increment version number to 8.
11161
11162 2013-01-22  Pedro Alves  <palves@redhat.com>
11163
11164         * annotate.c (breakpoint_changed): Skip if breakpoint is not
11165         user-visible.
11166
11167 2013-01-22  Pedro Alves  <palves@redhat.com>
11168
11169         * annotate.c (annotate_breakpoints_changed): Rename to ...
11170         (annotate_breakpoints_invalid): ... this.  Make static.
11171         (breakpoint_changed): Adjust.
11172         (_initialize_annotate): Always install the observers.  Install a
11173         "breakpoint_created" observer.
11174         * annotate.h (annotate_breakpoints_changed): Delete declaration.
11175         * breakpoint.c (set_breakpoint_condition)
11176         (breakpoint_set_commands, do_map_commands_command)
11177         (init_raw_breakpoint, clear_command, set_ignore_count)
11178         (enable_breakpoint_disp): No longer call
11179         annotate_breakpoints_changed.
11180
11181 2013-01-22  Pedro Alves  <palves@redhat.com>
11182
11183         * annotate.c: Include "inferior.h".
11184         (frames_invalid_emitted)
11185         (breakpoints_invalid_emitted): New globals.
11186         (async_background_execution_p): New function.
11187         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11188         emitting the annotation if it has already been emitted.
11189         (annotate_display_prompt): New function.
11190         * annotate.h (annotate_display_prompt): New declaration.
11191         * event-top.c: Include annotate.h.
11192         (display_gdb_prompt): Call annotate_display_prompt.
11193
11194 2013-01-22  Pedro Alves  <palves@redhat.com>
11195
11196         * annotate.c (ignore_count_changed): Delete.
11197         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11198         (annotate_ignore_count_change): Delete.
11199         (annotate_stopped): Don't emit a delayed breakpoints-changed
11200         annotation.
11201         * annotate.h (annotate_ignore_count_change): Delete.
11202         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11203         annotate_ignore_count_change.
11204
11205 2013-01-22  Tom Tromey  <tromey@redhat.com>
11206
11207         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11208         require_rvalue for a register location.
11209
11210 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
11211
11212         * breakpoint.c (print_one_breakpoint_location): Add MI
11213         field 'thread-groups' when printing a breakpoint.
11214         (output_thread_groups): New function.
11215
11216 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
11217
11218         * python/lib/gdb/commands/explore.py
11219         (CompoundExplorer.explore_expr): Correct the name of a method
11220         being invoked.
11221         (ExploreTypeCommand.invoke): Add a missing 'return'.
11222
11223 2013-01-21  Tom Tromey  <tromey@redhat.com>
11224
11225         * gdb_obstack.h (obconcat): Move declaration here, from...
11226         * symfile.h (obconcat): ... here.
11227         * gdb_obstack.c: New file.
11228         (obconcat): Move from...
11229         * symfile.c (obconcat): ... here.
11230         * Makefile.in (SFILES): Add gdb_obstack.c.
11231         (COMMON_OBS): Add gdb_obstack.o.
11232
11233 2013-01-21  Tom Tromey  <tromey@redhat.com>
11234
11235         * symfile.h (obsavestring): Don't declare.
11236         * symfile.c (obsavestring): Remove.
11237         * ada-exp.y: Use obstack_copy0, not obsavestring.
11238         * ada-lang.c: Use obstack_copy0, not obsavestring.
11239         * coffread.c: Use obstack_copy0, not obsavestring.
11240         * cp-namespace.c: Use obstack_copy0, not obsavestring.
11241         * dbxread.c: Use obstack_copy0, not obsavestring.
11242         * dwarf2read.c: Use obstack_copy0, not obsavestring.
11243         * jit.c: Use obstack_copy0, not obsavestring.
11244         * mdebugread.c: Use obstack_copy0, not obsavestring.
11245         * psymtab.c: Use obstack_copy0, not obsavestring.
11246         * stabsread.c: Use obstack_copy0, not obsavestring.
11247         * xcoffread.c: Use obstack_copy0, not obsavestring.
11248
11249 2013-01-21  Tom Tromey  <tromey@redhat.com>
11250
11251         * dwarf2read.c (fixup_go_packaging): Save package name
11252         on objfile obstack.
11253         * gdbtypes.c (init_type): Don't copy name.
11254
11255 2013-01-21  Tom Tromey  <tromey@redhat.com>
11256
11257         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11258         const.
11259         (struct attribute) <u.str>: Now const.
11260         (struct fnfieldlist) <name>: Now const.
11261         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11262         (partial_die_parent_scope): Make return type const.
11263         (partial_die_full_name, add_partial_symbol): Update.
11264         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11265         'name' const.
11266         (find_file_and_directory): Make 'name' and 'comp_dir' const.
11267         (read_file_scope, read_func_scope, dwarf2_add_field)
11268         (dwarf2_add_member_fn, read_structure_type)
11269         (process_enumeration_scope, read_array_type, read_module_type)
11270         (read_base_type, read_subrange_type): Update.
11271         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11272         (new_symbol_full, guess_full_die_structure_name): Update.
11273         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
11274         (dwarf2_name): Return const type.
11275         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11276         const.
11277
11278 2013-01-21  Tom Tromey  <tromey@redhat.com>
11279
11280         * gdbtypes.c (init_type): Make 'name' const.
11281         * gdbtypes.h (init_type): Update.
11282
11283 2013-01-21  Tom Tromey  <tromey@redhat.com>
11284
11285         * buildsym.c (patch_subfile_names): Use set_last_source_file.
11286         (start_symtab): Make 'name' and 'dirname' const.  Use
11287         set_last_source_file.
11288         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11289         (last_source_file): Define.  Now static.
11290         (set_last_source_file, get_last_source_file): New functions.
11291         * buildsym.h (last_source_file): Don't declare.
11292         (start_symtab): Update.
11293         (set_last_source_file, get_last_source_file): Declare.
11294         * coffread.c (complete_symtab): Use set_last_source_file.
11295         (coff_end_symtab): Likewise.
11296         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11297         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11298         set_last_source_file.
11299         (process_one_symbol): Use get_last_source_file.
11300         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11301         (psymtab_to_symtab_1): Use get_last_source_file.
11302         * xcoffread.c (process_linenos): Use get_last_source_file.
11303         (complete_symtab): Use set_last_source_file.
11304         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11305         (scan_xcoff_symtab): Use set_last_source_file.
11306
11307 2013-01-21  Tom Tromey  <tromey@redhat.com>
11308
11309         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11310         (symbol_set_names): Remove casts.  Handle field const-ness.
11311
11312 2013-01-21  Tom Tromey  <tromey@redhat.com>
11313
11314         * dwarf2read.c (new_symbol_full): Remove cast.
11315         * symtab.c (symbol_set_demangled_name): Make 'name' const.
11316         * symtab.h (symbol_set_demangled_name): Update.
11317
11318 2013-01-21  Tom Tromey  <tromey@redhat.com>
11319
11320         * main.c (captured_main): Call bfd_init.
11321
11322 2013-01-21  Tom Tromey  <tromey@redhat.com>
11323
11324         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11325         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11326         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11327         * NEWS: Update.
11328
11329 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11330
11331         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11332
11333 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11334
11335         Fix gdb.fortran/common-block.exp crash in PIE mode.
11336         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11337         LOC_COMMON_BLOCK.
11338         * f-valprint.c (info_common_command_for_block): Expect
11339         LOC_COMMON_BLOCK in gdb_assert.
11340         * symtab.h (struct general_symbol_info): Update comment for the
11341         common_block member.
11342         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11343         (enum address_class): New member LOC_COMMON_BLOCK.
11344
11345 2013-01-18  David Blaikie  <dblaikie@gmail.com>
11346
11347         * MAINTAINERS (Write After Approval): Add "David Blaikie".
11348
11349 2013-01-18  Tom Tromey  <tromey@redhat.com>
11350
11351         PR c++/14999:
11352         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11353         Call require_rvalue.
11354
11355 2013-01-18  Yao Qi  <yao@codesourcery.com>
11356
11357         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11358         (dbx_read_symtab): New declaration.
11359         (dbx_psymtab_to_symtab): Delete.
11360         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11361         Rename parameter PST to SELF.  Exchanged two parameters.
11362         (start_psymtab): Caller update.
11363         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11364         (dwarf2_read_symtab): New declaration.
11365         (dwarf2_psymtab_to_symtab): Delete.
11366         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11367         Rename parameter PST to SELF.  Exchanged two parameters.
11368         (create_partial_symtab): Caller update.
11369         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11370         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11371         Rename parameter PST to SELF.  Exchanged two parameters.
11372         (parse_partial_symbols, new_psymtab): Caller update.
11373         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11374         two parameters.
11375         * psymtab.c (psymtab_to_symtab): Caller update.
11376         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11377         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11378         Rename parameter PST to SELF.  Exchanged two parameters.
11379         (xcoff_start_psymtab): Caller update.
11380
11381 2013-01-18  Yao Qi  <yao@codesourcery.com>
11382
11383         * infrun.c (proceed): Rename local variable 'oneproc' to
11384         'force_step'.
11385
11386 2013-01-17  Doug Evans  <dje@google.com>
11387
11388         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11389         (dw2_build_type_unit_groups): Delete.  All uses updated.
11390
11391         * symtab.h (struct symbol_search): Add comment.
11392
11393 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11394
11395         * symtab.c (compare_filenames_for_search): New comment for
11396         HAS_DRIVE_SPEC.
11397
11398 2013-01-17  Tom Tromey  <tromey@redhat.com>
11399
11400         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11401
11402 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11403
11404         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11405         initialize it by existing make_cleanup.  Call new do_cleanups.
11406
11407 2013-01-17  Tom Tromey  <tromey@redhat.com>
11408
11409         * cp-abi.c (cp_abi_completer): New function.
11410         (_initialize_cp_abi): Set completer for "set cp-abi".
11411
11412 2013-01-17  Tom Tromey  <tromey@redhat.com>
11413
11414         * mem-break.c: Remove obsolete comment.
11415         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11416
11417 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11418
11419         * jit.c (jit_reader_load_command): Interpret the jit reader name
11420         as an absolute path if it begins with a forward slash.
11421
11422 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11423
11424         PR gdb/14550
11425
11426         * jit.c (finalize_symtab): Ensure that only the global block has a
11427         NULL superblock.
11428
11429 2013-01-17  Pedro Alves  <palves@redhat.com>
11430
11431         * acinclude.m4: Include ../config/plugins.m4,
11432         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
11433         * Makefile.in (aclocal_m4_deps): Update.
11434         * aclocal.m4: Renegerate.
11435
11436 2013-01-16  Doug Evans  <dje@google.com>
11437
11438         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11439
11440 2013-01-16  Pedro Alves  <palves@redhat.com>
11441             Tom Tromey  <tromey@redhat.com>
11442
11443         PR cli/7221:
11444         * NEWS: Add "catch signal".
11445         * breakpoint.c (base_breakpoint_ops): No longer static.
11446         (bpstat_explains_signal): New function.
11447         (init_catchpoint): No longer static.
11448         (base_breakpoint_explains_signal): New function.
11449         (base_breakpoint_ops): Initialize new field.
11450         * breakpoint.h (enum bpstat_signal_value): New.
11451         (struct breakpoint_ops) <explains_signal>: New field.
11452         (bpstat_explains_signal): Remove macro, declare as function.
11453         (base_breakpoint_ops, init_catchpoint): Declare.
11454         * break-catch-sig.c: New file.
11455         * inferior.h (signal_catch_update): Declare.
11456         * infrun.c (signal_catch): New global.
11457         (handle_syscall_event): Update for change to
11458         bpstat_explains_signal.
11459         (handle_inferior_event): Likewise.  Always handle random signals
11460         via bpstats.
11461         (signal_cache_update): Check signal_catch.
11462         (signal_catch_update): New function.
11463         (_initialize_infrun): Initialize signal_catch.
11464         * Makefile.in (SFILES): Add break-catch-sig.c.
11465         (COMMON_OBS): Add break-catch-sig.o.
11466
11467 2013-01-16  Tom Tromey  <tromey@redhat.com>
11468
11469         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11470         (print_one_catch_solib, print_one_catch_syscall)
11471         (print_one_catch_exec, print_one_exception_catchpoint): Emit
11472         "catch-type".
11473
11474 2013-01-16  Yao Qi  <yao@codesourcery.com>
11475
11476         * printcmd.c (current_display_number): Make it static.
11477
11478 2013-01-16  Yao Qi  <yao@codesourcery.com>
11479
11480         * infcmd.c (step_once): Don't check '!single_inst' as it was
11481         checked before.
11482
11483 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11484
11485         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11486
11487 2013-01-14  Tom Tromey  <tromey@redhat.com>
11488
11489         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11490         set command.
11491         * command.h (add_setshow_string_noescape_cmd): Update.
11492         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11493         (complete_set_gnutarget): New function.
11494         (_initialize_core): Set the "set gnutarget" completer.
11495
11496 2013-01-14  Tom Tromey  <tromey@redhat.com>
11497
11498         PR symtab/14442:
11499         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11500         (c_type_print_modifier): Likewise.
11501         * dwarf2read.c (read_tag_restrict_type): New function.
11502         (read_type_die_1): Handle DW_TAG_restrict_type.
11503         * gdbtypes.c (make_restrict_type): New function.
11504         (recursive_dump_type): Handle TYPE_RESTRICT.
11505         * gdbtypes.h (enum type_flag_values): Renumber.
11506         (enum type_instance_flag_value): Add
11507         TYPE_INSTANCE_FLAG_RESTRICT.
11508         (TYPE_RESTRICT): New macro.
11509         (make_restrict_type): Declare.
11510
11511 2013-01-14  Tom Tromey  <tromey@redhat.com>
11512
11513         PR symtab/14931:
11514         * psymtab.c (struct psymtab_state): New.
11515         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11516         functions.
11517         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11518         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11519
11520 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
11521             Pedro Alves  <palves@redhat.com>
11522
11523         PR remote/14786
11524
11525         * remote.c (remote_threads_info): Make a copy of the reply from
11526         qfThreadInfo and use that instead of rs->buf.
11527
11528 2013-01-14  Yao Qi  <yao@codesourcery.com>
11529
11530         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11531         (dbx_psymtab_to_symtab): Likewise.
11532         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11533         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11534         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11535
11536 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11537
11538         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
11539         make_cleanup_restore_current_language.  Call set_language.  Move
11540         OLD_CHAIN and INNER_CHAIN cleanups.
11541         * utils.c (do_restore_current_language)
11542         (make_cleanup_restore_current_language): New functions.
11543         * utils.h (make_cleanup_restore_current_language): New declaration.
11544
11545 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11546
11547         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11548         non-existing files.
11549
11550         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11551         non-existing files if FILENAME is already absolute.
11552
11553 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11554
11555         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11556         fputs_filtered.  Append trailing newline.
11557
11558 2013-01-11  Yao Qi  <yao@codesourcery.com>
11559             Stan Shebs  <stan@codesourcery.com>
11560
11561         * psymtab.c (init_psymbol_list): Clarify the comment.
11562
11563 2013-01-11  Yao Qi  <yao@codesourcery.com>
11564
11565         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11566         (update_dprintf_command_list): Assert that 'printf_line' is
11567         non-null.  Remove condition check.
11568
11569 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11570
11571         Code cleanup.
11572         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11573         type const char *.
11574         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11575         const char *.
11576         * tui/tui-source.h (tui_source_is_displayed): Likewise.
11577
11578 2013-01-09  Anthony Green  <green@moxielogic.com>
11579
11580         * cp-abi.c (cplus_print_vtable): Don't return value from void
11581         function.
11582         * ada-lang.c (re_set_catch_assert): Ditto.
11583
11584 2013-01-09  Doug Evans  <dje@google.com>
11585
11586         * symfile.h (quick_symbol_functions): Delete member
11587         pre_expand_symtabs_matching.  All uses removed.
11588         * dwarf2read.c (dw2_lookup_symbol): Implement.
11589         (dw2_do_expand_symtabs_matching): Delete.
11590         (dw2_pre_expand_symtabs_matching): Delete.
11591         (struct dw2_symtab_iterator): New type.
11592         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11593         (dw2_expand_symtabs_for_function): Rewrite.
11594         (dwarf2_gdb_index_functions): Update.
11595         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11596         (psym_functions): Update.
11597
11598 2013-01-09  Tom Tromey  <tromey@redhat.com>
11599
11600         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11601         * configure: Rebuild.
11602         * configure.ac: Add somread.o to the build if BFD has SOM
11603         support.
11604         * somread.c: Include som/aout.h, not syms.h.
11605         (som_symtab_read): Use som_external_symbol_dictionary_record.
11606         Unpack records manually.
11607         (_initialize_somread): Declare.
11608
11609 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
11610
11611         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11612         Cast return_address to 64bits.
11613
11614 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
11615
11616         * printcmd.c: Remove define of function output_command.
11617         * tracepoint.c: Remove extern of function output_command.
11618         * valprint.h: (output_command): New extern.
11619
11620 2013-01-07  Tom Tromey  <tromey@redhat.com>
11621
11622         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11623         Remove.
11624         (objc_language_defn): Use c_printchar, c_printstr,
11625         c_emit_char.
11626
11627 2013-01-07  Tom Tromey  <tromey@redhat.com>
11628
11629         PR cli/7719:
11630         * NEWS: Update.
11631         * ada-valprint.c (printstr, print_field_values): Remove
11632         "inspect_it" code.
11633         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11634         code.
11635         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11636         code.
11637         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11638         * main.c (captured_main): Remove "epoch" argument.
11639         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11640         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11641         * p-valprint.c (pascal_object_print_value_fields): Remove
11642         "inspect_it" code.
11643         * printcmd.c (print_command_1): Remove 'inspect' argument.
11644         (print_command, call_command): Update.
11645         (inspect_command): Remove.
11646         (_initialize_printcmd): Make "inspect" an alias for "print".
11647         * top.c (epoch_interface): Remove.
11648         * top.h (epoch_interface): Remove.
11649         * valprint.c (user_print_options): Update.
11650         (print_converted_chars_to_obstack): Remove "inspect_it" code.
11651         * valprint.h (struct value_print_options) <inspect_it>: Remove
11652         field.
11653
11654 2013-01-04  Tom Tromey  <tromey@redhat.com>
11655
11656         * valprint.h (read_string): Add 'extern'.
11657
11658 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
11659
11660         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11661         used to decide whether to define darwin_read_dyld_info or not.
11662
11663 2013-01-03  Pierre Muller  <muller@sourceware.org>
11664
11665         * main.c (relocate_gdb_directory): Avoid calling stat function
11666         if DIR is empty.
11667
11668 2013-01-03  Yao Qi  <yao@codesourcery.com>
11669
11670         * psymtab.c (fixup_psymbol_section): Update declaration.
11671         (fixup_psymbol_section): Remove code returning value.
11672
11673 2013-01-03  Yao Qi  <yao@codesourcery.com>
11674
11675         * symtab.h: Remove some out of date comments.
11676          (enum exception_event_kind): Move it ...
11677         * breakpoint.c: ... here.
11678
11679 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
11680
11681         PR gdb/14405
11682         * darwin-nat.c (darwin_read_dyld_info): Only build if
11683         TASK_DYLD_INFO_COUNT is defined.
11684         (darwin_xfer_partial): Call darwin_read_dyld_info only if
11685         TASK_DYLD_INFO_COUNT is defined.
11686
11687 2013-01-02  Tom Tromey  <tromey@redhat.com>
11688
11689         * symfile.h (struct ecoff_debug_hack): Remove.
11690         * objfiles.c: Don't include mdebugread.h.
11691
11692 2013-01-02  Tom Tromey  <tromey@redhat.com>
11693
11694         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11695         * configure.ac: Check for Mach-O support in BFD.  Update
11696         CONFIG_OBS.
11697         * configure: Rebuild.
11698
11699 2013-01-02  Tom Tromey  <tromey@redhat.com>
11700
11701         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11702         * configure.ac: Use GDB_AC_CHECK_BFD.
11703         * configure: Rebuild.
11704
11705 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11706
11707         * MAINTAINERS: Update my email.
11708
11709 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11710
11711         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11712
11713 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11714
11715         * rs6000-nat.c (bss_data_overlap): New function.
11716         (vmap_symtab): Use it to adjust the .bss section's offset.
11717
11718 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11719
11720         Update year range in copyright notice of all files.
11721
11722 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
11723
11724         * top.c (print_gdb_version): Update copyright year.
11725
11726 For older changes see ChangeLog-2012.
11727 \f
11728 Local Variables:
11729 mode: change-log
11730 left-margin: 8
11731 fill-column: 74
11732 version-control: never
11733 coding: utf-8
11734 End: