crash while re-reading symbols from objfile on ppc-aix.
[external/binutils.git] / gdb / ChangeLog
1 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
2
3         * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
4         after re-initialization of OBJFILE's obstack.
5
6 2013-11-12  Doug Evans  <dje@sebabeach.org>
7
8         * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
9         bs->stop != 0 on entry.  Update function comment.  Simplify early
10         exit for frame mismatch.  Reindent rest of function.
11
12 2013-11-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13
14         * objc-lang.c (uniquify_strings): Prevent invoking qsort with
15         NULL.
16
17 2013-11-12  Doug Evans  <dje@google.com>
18
19         Work around gold/15646.
20         * dwarf2read.c (read_index_from_section): Update comment.
21         (struct dw2_symtab_iterator): New member global_seen.
22         (dw2_symtab_iter_init): Initialize it.
23         (dw2_symtab_iter_next): Skip duplicate global symbols.
24         (dw2_expand_symtabs_matching): Ditto.
25
26 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
27
28         * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
29         * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
30         command.
31         * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
32         (mi_cmd_info_ada_exceptions): New function.
33         * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
34
35 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
36
37         * ada-lang.h: #include "vec.h".
38         (struct ada_exc_info): New.
39         (ada_exc_info): New typedef.
40         (DEF_VEC_O(ada_exc_info)): New vector.
41         (ada_exceptions_list): Add declaration.
42         * ada-lang.c (ada_is_exception_sym)
43         (ada_is_non_standard_exception_sym, compare_ada_exception_info)
44         (sort_remove_dups_ada_exceptions_list)
45         (ada_exc_search_name_matches, ada_add_standard_exceptions)
46         (ada_add_exceptions_from_frame, ada_add_global_exceptions)
47         (ada_exceptions_list_1, ada_exceptions_list)
48         (info_exceptions_command): New function.
49         (_initialize_ada_language): Add "info exception" command.
50
51 2013-11-11  Phil Muldoon  <pmuldoon@redhat.com>
52
53         PR python/15629
54         * NEWS: Add linetable feature.
55         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
56         * python/py-linetable.c: New file.
57         * python/py-symtab.c (stpy_get_linetable): New function.
58         * python/python-internal.h (symtab_to_linetable_object): Declare.
59         (gdbpy_initialize_linetable): Ditto.
60         * python/python.c (_initialize_python): Call
61         gdbpy_initialize_linetable.
62
63 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
64
65         * ada-lang.c (create_ada_exception_catchpoint): Enhance
66         the documentation of fields "except_string" and "condition".
67         * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
68         CONDITION on the heap before passing it to
69         create_ada_exception_catchpoint.
70         (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
71         CONDITION.
72
73 2013-11-11  Tom Tromey  <tromey@redhat.com>
74
75         * config.in, configure: Rebuild.
76         * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
77
78 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
79
80         * remote-sim.c (gdbsim_detach): Break declaration into
81         shorter lines.  No code change.
82
83 2013-11-11  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
84
85         * remote-sim.c (gdbsim_detach): Fix prototype.
86
87 2013-11-08  Doug Evans  <dje@google.com>
88
89         * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
90         (create_debug_types_hash_table): Only print debugging messages for
91         each TU if dwarf2-read >= 2.
92         (process_queue): Ditto.
93         (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
94         Update doc string.
95
96 2013-11-08  Tom Tromey  <tromey@redhat.com>
97
98         * configure: Rebuild.
99         * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
100
101 2013-11-08  Tom Tromey  <tromey@redhat.com>
102
103         * configure, config.in: Rebuild.
104         * configure.ac: Remove unused configury.
105
106 2013-11-08  Tom Tromey  <tromey@redhat.com>
107
108         * m32c-tdep.c: Use gdb_string.h.
109
110 2013-11-08  Tom Tromey  <tromey@redhat.com>
111
112         * configure, config.in: Rebuild.
113         * configure.ac: Remove all link.h-related checks.
114
115 2013-11-08  Tom Tromey  <tromey@redhat.com>
116
117         * acinclude.m4: Include common.m4.
118         * common/common.m4: New file.
119         * configure, config.in: Rebuild.
120         * configure.ac: Use GDB_AC_COMMON.
121
122 2013-11-08  Doug Evans  <dje@google.com>
123
124         * NEWS: Mention that "set debug symtab-create" now accepts a
125         verbosity level.
126         * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
127         to set the symtab's primary flag.
128         * jit.c (finalize_symtab): Ditto.
129         * mdebugread.c (psymtab_to_symtab_1): Ditto.
130         * symfile.c (allocate_symtab): Only print debugging messages for
131         symtab_create_debug levels 2 and higher.
132         * symtab.c (symtab_create_debug): Change type to unsigned int.
133         (set_symtab_primary): New function.
134         (_initialize_symtab): Change "set debug symtab-create" to a
135         zuinteger option.
136         * symtab.h (set_symtab_primary): Declare.
137         (symtab_create_debug): Update decl.
138
139 2013-11-08  Tom Tromey  <tromey@redhat.com>
140
141         * aix-thread.c (aix_thread_detach): Update.
142         * corelow.c (core_detach): Update.
143         * darwin-nat.c (darwin_detach): Update.
144         * dec-thread.c (dec_thread_detach): Update.
145         * gnu-nat.c (gnu_detach): Update.
146         * go32-nat.c (go32_detach): Update.
147         * inf-ptrace.c (inf_ptrace_detach): Update.
148         * inf-ttrace.c (inf_ttrace_detach): Update.
149         * linux-fork.c (linux_fork_detach): Update.
150         * linux-fork.h (linux_fork_detach): Update.
151         * linux-nat.c (linux_nat_detach): Update.  Introduce "tem"
152         local for const-correctness.
153         * linux-thread-db.c (thread_db_detach): Update.
154         * monitor.c (monitor_detach): Update.
155         * nto-procfs.c (procfs_detach): Update.
156         * procfs.c (procfs_detach): Update.
157         * record.c (record_detach): Update.
158         * record.h (record_detach): Update.
159         * remote-m32r-sdi.c (m32r_detach): Update.
160         * remote-mips.c (mips_detach): Update.
161         * remote-sim.c (gdbsim_detach): Update.
162         * remote.c (remote_detach_1, remote_detach)
163         (extended_remote_detach): Update.
164         * sol-thread.c (sol_thread_detach): Update.
165         * target.c (target_detach): Make "args" const.
166         (init_dummy_target): Update.
167         * target.h (struct target_ops) <to_detach>: Make argument const.
168         (target_detach): Likewise.
169         * windows-nat.c (windows_detach): Update.
170
171 2013-11-07  Doug Evans  <dje@google.com>
172
173         PR 11786
174         *  solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
175         and align fields for PT_GNU_RELRO segments.
176
177 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
178
179         PR python/15747
180         * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
181
182 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
183
184         * NEWS: Document Python temporary breakpoint support.
185         * python/py-breakpoint.c (bppy_get_temporary): New function.
186         (bppy_init): New keyword: temporary. Parse it and set breakpoint
187         to temporary if True.
188
189 2013-11-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
190
191         * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
192         removed to allow analyzing unconditional branch instructions
193         with PC-relative offsets of zero.
194
195 2013-11-07  Yao Qi  <yao@codesourcery.com>
196
197         * mi/mi-cmd-var.c: Include "language.h".
198         (mi_cmd_var_info_expression): Get language name from
199         language_defn.
200         * varobj.c (varobj_language_string): Remove.
201         (variable_language): Remove declaration.
202         (languages): Remove.
203         (varobj_get_language): Change the type of return value.
204         (variable_language): Remove.
205         * varobj.h (enum varobj_languages): Remove.
206         (varobj_language_string): Remove declaration.
207         (varobj_get_language): Update declaration.
208
209 2013-11-07  Yao Qi  <yao@codesourcery.com>
210
211         * language.h (struct language_defn) <la_natural_name>: New
212         field.
213         * ada-lang.c (ada_language_defn): Initialize field
214         'la_natural_name'.
215         * c-lang.c (c_language_defn): Likewise.
216         (cplus_language_defn, asm_language_defn): Likewise.
217         * d-lang.c (d_language_defn): Likewise.
218         * f-lang.c (f_language_defn): Likewise.
219         * go-lang.c (go_language_defn): Likewise.
220         * jv-lang.c (java_language_defn): Likewise.
221         * language.c (unknown_language_defn ): Likewise.
222         (auto_language_defn): Likewise.
223         * m2-lang.c (m2_language_defn): Likewise.
224         * objc-lang.c (objc_language_defn): Likewise.
225         * opencl-lang.c (opencl_language_defn): Likewise.
226         * p-lang.c (pascal_language_defn): Likewise.
227
228 2013-11-07  Yao Qi  <yao@codesourcery.com>
229
230         * language.c (language_str): Return const char *.
231         (add_language): Add const to 'language_names'
232         * language.h (struct language_defn) <la_name>: Add const.
233         (language_str: Update declaration.
234
235 2013-11-06  Andreas Arnez  <arnez@linux.vnet.ibm.com>
236
237         * s390-linux-nat.c (s390_read_description): Consider the TE field
238         in the HWCAP for determining 'have_regset_tdb'.
239
240 2013-11-06  Will Newton  <will.newton@linaro.org>
241
242         PR gdb/12866
243         * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
244         values.  (read_partial_die): Likewise.
245
246 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
247
248         PR cli/16122
249         * top.c (command_line_input): Unify interactivity tests to use
250         input_from_terminal_p.
251         * event-top.c (command_line_handler): Likewise.
252
253 2013-11-06  Yao Qi  <yao@codesourcery.com>
254
255         * Makefile.in (check-perf): New target.
256
257 2013-11-05  Will Newton  <will.newton@linaro.org>
258
259         PR gdb/7670
260         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
261         (arm_print_float_info): Likewise.
262
263 2013-11-04  Anton Blanchard  <anton@samba.org>
264
265         * target.c (memory_xfer_partial): Cap write to 4KB.
266
267 2013-11-01  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
268
269         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
270         probe scan even when the arch provides no get_longjmp_target.
271
272 2013-10-31  Pedro Alves  <palves@redhat.com>
273
274         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
275         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
276         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
277         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
278         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
279         <bpstat handling>: If the bpstat chain wants the signal to be
280         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
281         GDB_SIGNAL_TRAP.
282
283 2013-10-31  Andrew Burgess  <aburgess@broadcom.com>
284
285         * breakpoint.c (update_watchpoint): Update error message and add
286         an additional error message.
287
288 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
289
290         * s390-tdep.h: Rename to...
291         * s390-linux-tdep.h: ...here.
292         * s390-tdep.c: Rename to...
293         * s390-linux-tdep.c: ...here.  Adjust #include.
294         * s390-nat.c: Rename to...
295         * s390-linux-nat.c: ...here.  Adjust #include.
296         * config/s390/s390.mh: Rename to...
297         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
298         s390-linux-nat.o.
299         * configure.host: Reflect host rename "s390" -> "linux".
300         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
301         * Makefile.in (ALL_TARGET_OBS): Likewise.
302         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
303         s390-linux-tdep.h.
304         (ALLDEPFILES): Reflect rename of .c files.
305
306 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
307
308         * s390-nat.c: Whitespace cleanup.
309         * s390-tdep.c: Likewise.
310         * s390-tdep.h: Remove empty line at end of file.
311
312 2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
313
314         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
315         siginfo_size.
316
317 2013-10-29  Tom Tromey  <tromey@redhat.com>
318
319         * utils.c (reg): Move undefinition...
320         * gdb_curses.h: ... here.  Update comment to mention AIX.
321
322 2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>
323
324         * exec.h (add_target_sections_of_objfile): New declaration.
325         * exec.c (add_target_sections_of_objfile): New function.
326         * symfile.c (add_symbol_file_command): Update current target sections.
327         (remove_symbol_file_command): New command.
328         (symfile_free_objfile): New function.
329         (_initialize_symfile): Register observer for free_objfile events.
330         * NEWS: Add description of the remove-symbol-file command.
331         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
332         * objfiles.c (free_objfile): Notify free_objfile.
333         (is_addr_in_objfile): New function.
334         * objfiles.h (is_addr_in_objfile): New declaration.
335         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
336         events instead of solib_unloaded events.
337         (_initialize_printcmd): Register observer for free_objfile instead
338         of solib_unloaded notifications.
339         * solib.c (remove_user_added_objfile): New function.
340         (_initialize_symfile): Add remove-symbol-file.
341
342 2013-10-29  Andrew Burgess  <aburgess@broadcom.com>
343
344         * infcmd.c (default_print_one_register_info): Use val_print to
345         print all values even optimized out or unavailable ones.  Don't
346         try to print a raw form of optimized out or unavailable values.
347
348 2013-10-29  Yao Qi  <yao@codesourcery.com>
349
350         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
351         parameter 'arg' instead of from program_space_data.
352         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
353         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
354         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
355         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
356         * inflow.c (inflow_inferior_data_cleanup): Get data from
357         parameter 'arg' instead of inferior_data.
358         * registry.h: Add comments.
359
360 2013-10-28  Pedro Alves  <palves@redhat.com>
361
362         * breakpoint.c (watchpoints_triggered)
363         <!target_stopped_data_address>: Hardcode return 1.
364
365 2013-10-28  Pedro Alves  <palves@redhat.com>
366
367         * infrun.c (process_event_stop_test): Remove unnecessary scoping
368         level and reindent.
369
370 2013-10-28  Pedro Alves  <palves@redhat.com>
371
372         * infrun.c (process_event_stop_test): New function, factored out
373         from handle_inferior_event.
374         (handle_inferior_event): 'process_event_stop_test' is now a
375         function instead of a goto label -- adjust.
376
377 2013-10-28  Pedro Alves  <palves@redhat.com>
378
379         * infrun.c (handle_inferior_event): Move process_event_stop_test
380         goto label to the else branch of the ecs->random_signal check,
381         along with FRAME and GDBARCH re-fetching.
382
383 2013-10-28  Pedro Alves  <palves@redhat.com>
384
385         * infrun.c (switch_back_to_stepped_thread): New function, factored
386         out from handle_inferior_event.
387         (handle_inferior_event): Adjust to call
388         switch_back_to_stepped_thread.  Call it also at the tail of the
389         random signal handling, and return, instead of also handling
390         random signals just before the stepping tests.
391
392 2013-10-28  Pedro Alves  <palves@redhat.com>
393
394         * infrun.c (clear_stop_func): Delete.
395         (handle_inferior_event): Don't call clear_stop_func and don't
396         clear 'ecs->random_signal'.
397
398 2013-10-27  Yao Qi  <yao@codesourcery.com>
399
400         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
401         (varobj_create, varobj_get_path_expr): Update.
402         (varobj_value_has_mutated, varobj_update): Likewise.
403         (create_child_with_value, new_root_variable): Likewise.
404         (number_of_children, name_of_variable): Likewise.
405         (value_of_child, my_value_of_variable): Likewise.
406         (varobj_value_is_changeable_p): Likewise.
407
408 2013-10-25  Yao Qi  <yao@codesourcery.com>
409
410         * language.h (struct lang_varobj_ops): Declare.
411         (struct language_defn) <la_varobj_ops>: New field.
412         * ada-lang.c: Include "varobj.h"
413         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
414         ada_varobj_ops.
415         * c-lang.c: Include "varobj.h"
416         (c_language_defn): Initialize field 'la_varobj_ops' with
417         c_varobj_ops.
418         (cplus_language_defn): Initialize field 'la_varobj_ops' with
419         cplus_varobj_ops.
420         (asm_language_defn): Initialize field 'la_varobj_ops' with
421         default_varobj_ops.
422         (minimal_language_defn): Likewise.
423         * d-lang.c (d_language_defn): Likewise.
424         * f-lang.c (f_language_defn): Likewise.
425         * go-lang.c (go_language_defn): Likewise.
426         * m2-lang.c (m2_language_defn): Likewise.
427         * objc-lang.c (objc_language_defn): Likewise.
428         * opencl-lang.c (opencl_language_defn): Likewise.
429         * p-lang.c (pascal_language_defn): Likewise.
430         * language.c (unknown_language_defn): Likewise.
431         (auto_language_defn): Likewise.
432         (local_language_defn): Likewise.
433         * jv-lang.c (java_language_defn): Initialize field
434         'la_varobj_ops' with java_varobj_ops.
435         * varobj.c (varobj_create): Update.
436         * varobj.h (default_varobj_ops): Define macro.
437
438 2013-10-25  Pedro Alves  <palves@redhat.com>
439
440         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
441         static field value.
442         (cp_print_static_field): If the value is entirely optimized out,
443         print <optimized out> here.
444         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
445         static field value.
446         * p-valprint.c (pascal_object_print_static_field): If the value is
447         entirely optimized out, print <optimized out> here.
448         * valops.c (do_search_struct_field)
449         (value_struct_elt_for_reference): No longer handle a NULL static
450         field value.
451         * value.c (value_static_field): Return an optimized out value
452         instead of NULL.
453
454 2013-10-25  Yao Qi  <yao@codesourcery.com>
455
456         * remote.c (remote_traceframe_info): Return early if
457         traceframe is not selected.
458
459 2013-10-25  Yao Qi  <yao@codesourcery.com>
460
461         * tracepoint.c (traceframe_fun): Remove.
462         (traceframe_sal): Remove.
463         (set_traceframe_context): Add local variables.
464
465 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
466
467         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
468         and parameter name.
469
470 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
471
472         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
473         failure from register information collection.
474
475 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
476
477         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
478         member.
479         (linux_corefile_thread_callback): Update accordingly.
480         (linux_make_corefile_notes): Likewise.
481
482 2013-10-24  Pedro Alves   <palves@redhat.com>
483
484         * NEWS (New options): Mention set/show startup-with-shell.
485         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
486         instead of 3.
487         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
488         startup-with-shell'.
489         (show_startup_with_shell): New function.
490         (_initialize_fork_child): Register the set/show startup-with-shell
491         commands.
492         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
493         * inf-ttrace.c (inf_ttrace_him): Remove comment.
494         * procfs.c (procfs_init_inferior): Remove comment.
495         * infcmd.c (startup_with_shell): New global.
496         * inferior.h (startup_with_shell): Declare global.
497         (STARTUP_WITH_SHELL): Delete.
498         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
499
500 2013-10-23  Pedro Alves  <palves@redhat.com>
501
502         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
503         * common/signals.c: Include "gdb_assert.h".
504         (signals): New field 'symbol'.
505         (SET): Use the 'symbol' parameter.
506         (gdb_signal_to_symbol_string): New function.
507         * infrun.c (handle_inferior_event) <random signal>: In debug
508         output, print the random signal enum as string in addition to its
509         number.
510         * target/waitstatus.c (target_waitstatus_to_string): Print the
511         signal's enum value as string instead of the (POSIX) signal name.
512
513 2013-10-23  Gary Benson  <gbenson@redhat.com>
514
515         PR 16013
516         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
517         from 32 to 18.  Adjusted fscanf format string accordingly.
518         (Avoids leaving cmd unterminated.)
519         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
520         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
521         that local_address and remote_address will not overflow.
522         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
523         leaving dependencies unterminated.  Parse size as "%u" to match
524         definition.
525
526 2013-10-22  Pedro Alves  <palves@redhat.com>
527
528         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
529         set ecs->random signal.
530
531 2013-10-22  Pedro Alves  <palves@redhat.com>
532
533         * infrun.c (keep_going): Update comments.
534
535 2013-10-22  Pedro Alves  <palves@redhat.com>
536
537         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
538         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
539
540 2013-10-22  Pedro Alves  <palves@redhat.com>
541
542         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
543         GDB_EXC_BAD_ACCESS.
544         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
545         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
546         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
547         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
548         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
549         (GDB_SIGNAL_LAST): Change description string.
550         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
551         Adjust to signal renaming.
552         * darwin-nat.c (darwin_decode_message): Likewise.
553
554 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
555
556         * MAINTAINERS (Write After Approval): Add myself to the list.
557
558 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
559
560         * breakpoint.c (update_watchpoint): If hardware watchpoints are
561         forced off, downgrade them to software watchpoints if possible,
562         and error out if not possible.
563         (watch_command_1): Move watchpoint type selection closer to
564         watchpoint creation, and extend the comments.
565
566 2013-10-18  Pedro Alves  <palves@redhat.com>
567
568         PR gdb/16062
569         * infrun.c (handle_inferior_event): Keep going if we got a random
570         signal we should not stop for, instead of falling through to the
571         step tests.
572
573 2013-10-18  Yao Qi  <yao@codesourcery.com>
574
575         * c-varobj.c (cplus_number_of_children): Fix indentation.
576
577 2013-10-17  Tom Tromey  <tromey@redhat.com>
578
579         PR gdb/15995:
580         * printcmd.c (printcmd): Call gdb_flush.
581
582 2013-10-17  Tom Tromey  <tromey@redhat.com>
583
584         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
585         (elf_locate_sections): Update.
586
587 2013-10-17  Yao Qi  <yao@codesourcery.com>
588
589         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
590         * ada-varobj.c: Remove the include of ada-varobj.h.
591         (ada_varobj_get_number_of_children): Declare.
592         (ada_varobj_get_name_of_child): Make it static.
593         (ada_varobj_get_path_expr_of_child): Likewise.
594         (ada_varobj_get_value_of_child): Likewise.
595         (ada_varobj_get_type_of_child): Likewise.
596         (ada_varobj_get_value_of_array_variable): Likewise.
597         * ada-varobj.h: Remove.
598
599 2013-10-17  Yao Qi  <yao@codesourcery.com>
600
601         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
602         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
603         * ada-varobj.c: Include "varobj.h".
604         (ada_number_of_children): New.  Moved from varobj.c.
605         (ada_name_of_variable, ada_name_of_child): Likewise.
606         (ada_path_expr_of_child, ada_value_of_child): Likewise.
607         (ada_type_of_child, ada_value_of_variable): Likewise.
608         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
609         (ada_varobj_ops): New.
610         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
611         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
612         * gdbtypes.h (get_target_type): Declare.
613         * varobj.c: Remove the inclusion of "ada-varobj.h" and
614         "ada-lang.h".
615         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
616         (ANONYMOUS_UNION_NAME): Likewise.
617         (get_type, get_value_type, get_target_type): Remove declarations.
618         (value_get_print_value, varobj_value_get_print_value): Likewise.
619         (c_number_of_children, c_name_of_variable): Likewise.
620         (c_name_of_child, c_path_expr_of_child): Likewise.
621         (c_value_of_child, c_type_of_child): Likewise.
622         (c_value_of_variable, cplus_number_of_children): Likewise.
623         (cplus_class_num_children, cplus_name_of_variable): Likewise.
624         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
625         (cplus_value_of_child, cplus_type_of_child): Likewise.
626         (cplus_value_of_variable, java_number_of_children): Likewise.
627         (java_name_of_variable, java_name_of_child): Likewise.
628         (java_path_expr_of_child, java_value_of_child): Likewise.
629         (java_type_of_child, java_value_of_variable): Likewise.
630         (ada_number_of_children, ada_name_of_variable): Likewise.
631         (ada_name_of_child, ada_path_expr_of_child): Likewise.
632         (ada_value_of_child, ada_type_of_child): Likewise.
633         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
634         (ada_value_has_mutated): Likewise.
635         (struct language_specific): Move it to varobj.h.
636         (CPLUS_FAKE_CHILD): Move it to varobj.h.
637         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
638         Callers update.
639         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
640         Make it extern.
641         (is_anonymous_child): Move it to c-varobj.c and rename to
642         varobj_is_anonymous_child.  Caller update.
643         (get_type): Move it to c-varobj.c.
644         (get_value_type): Rename it varobj_get_value_type.  Make it
645         extern.
646         (get_target_type): Move it gdbtypes.c.
647         (varobj_formatted_print_options): New function.
648         (value_get_print_value): Rename it to
649         varobj_value_get_print_value and make it extern.
650         (varobj_value_is_changeable_p): Make it extern.
651         (adjust_value_for_child_access): Move it to c-varobj.c.
652         (default_value_is_changeable_p): Rename it to
653         varobj_default_value_is_changeable_p.  Make it extern.
654         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
655         (c_name_of_child, c_path_expr_of_child): Likewise.
656         (c_value_of_child, c_type_of_child): Likewise.
657         (c_value_of_variable, cplus_number_of_children): Likewise.
658         (cplus_class_num_children, cplus_name_of_variable): Likewise.
659         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
660         (cplus_value_of_child, cplus_type_of_child): Likewise.
661         (cplus_value_of_variable): Likewise.
662         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
663         (java_name_of_child, java_path_expr_of_child): Likewise.
664         (java_value_of_child, java_type_of_child): Likewise.
665         (java_value_of_variable): Likewise.
666         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
667         (ada_name_of_child, ada_path_expr_of_child): Likewise.
668         (ada_value_of_child, ada_type_of_child): Likewise.
669         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
670         (ada_value_has_mutated): Likewise.
671         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
672         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
673         (c_varobj_ops, cplus_varobj_ops): Declare.
674         (java_varobj_ops, ada_varobj_ops): Declare.
675         (varobj_default_value_is_changeable_p): Declare.
676         (varobj_value_is_changeable_p): Declare.
677         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
678         (varobj_get_path_expr_parent): Declare.
679         (varobj_value_get_print_value): Declare.
680         (varobj_formatted_print_options): Declare.
681         (varobj_restrict_range): Declare.
682
683 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
684
685         * target/waitstatus.h (target_waitkind): Remove spurious
686         character from the comments.
687
688 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
689
690         * gdbarch.sh (get_longjmp_target): Add method documentation.
691         * gdbarch.h: Regenerate.
692
693 2013-10-16  Tom Tromey  <tromey@redhat.com>
694
695         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
696         label.
697
698 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
699
700         * gcore.in: Call GDB using the full path to the gcore script.
701         Error out if the GDB binary is not found.
702
703 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
704
705         PR gdb/16014
706         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
707         sizeof.
708
709 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
710
711         PR gdb/16042
712         * target.c (target_disable_btrace): Fix invalid return value for
713         void function.
714         (target_teardown_btrace): Likewise.
715
716 2013-10-14  Yao Qi  <yao@codesourcery.com>
717
718         * varobj.c (struct varobj): Move most of the fields to
719         varobj.h.
720         (struct varobj_dynamic): New struct.
721         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
722         (varobj_has_more): Likewise.
723         (dynamic_varobj_has_child_method): Likewise.
724         (update_dynamic_varobj_children): Likewise.
725         (varobj_get_num_children): Likewise.
726         (varobj_list_children, varobj_pretty_printed_p): Likewise.
727         (install_new_value_visualizer): Likewise.
728         (install_new_value_visualizer, install_new_value): Likewise.
729         (varobj_update, new_variable, free_variable): Likewise.
730         (my_value_of_variable, value_get_print_value): Likewise.
731         (install_visualizer): Change the type of parameter 'var' to
732         'struct varobjd_dynamic *'.  Callers update.
733         * varobj.h (struct varobj): Moved from varobj.c.
734         (struct varobj) <dynamic>: New field.
735
736 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
737
738         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
739         as the preferred name of r30.
740         * nios2-linux-tdep.c (reg_offsets): Likewise.
741         * features/nios2-cpu.xml: Likewise.
742         * features/nios2-linux.c: Regenerated.
743         * features/nios2.c: Regenerated.
744         * regformats/nios2-linux.dat: Regenerated.
745
746 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
747
748         Canonicalize directories for EXEC_FILENAME.
749         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
750         exec_filename.
751         * utils.c (gdb_realpath_keepfile): New function.
752         * utils.h (gdb_realpath_keepfile): New declaration.
753
754 2013-10-11  Doug Evans  <dje@google.com>
755
756         * Makefile.in (GDBFLAGS): New variable.
757         (run): New rule.
758
759 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
760
761         * NEWS: Add entry documenting the new "-catch-assert" and
762         "-catch-exception" GDB/MI commands.
763
764 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
765
766         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
767         "enabled".
768         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
769         "enabled".  Set B->ENABLE_STATE accordingly.
770         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
771         ada-lang.c.
772         (create_ada_exception_catchpoint): Add declaration.
773         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
774         (create_ada_exception_catchpoint): Make non-static. Add new
775         parameter "disabled". Use it in call to
776         init_ada_exception_breakpoint.
777         (catch_ada_exception_command): Add parameter "enabled" in call
778         to create_ada_exception_catchpoint.
779         (catch_assert_command): Likewise.
780
781         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
782         Add declarations.
783         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
784         "catch-exception" commands.
785         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
786         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
787
788 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
789
790         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
791         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
792         of all its enumerates with "ada_".  Update the rest of this
793         file throughout.
794
795 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
796
797         * ada-lang.c (ada_decode_exception_location): Delete.
798         (create_ada_exception_catchpoint): Remove arguments "sal",
799         "addr_string" and "ops".  Add argument "ex_kind" instead.
800         Adjust implementation accordingly, calling ada_exception_sal
801         to get the entities it no longer gets passed as arguments.
802         Document the function's arguments.
803         (catch_ada_exception_command): Use catch_ada_exception_command_split
804         instead of ada_decode_exception_location, and update call to
805         create_ada_exception_catchpoint.
806         (catch_ada_assert_command_split): Renames
807         ada_decode_assert_location.  Remove parameters "addr_string" and
808         "ops", and now returns void.  Adjust implementation accordingly.
809         Update the function documentation.
810         (catch_assert_command): Use catch_ada_assert_command_split
811         instead of ada_decode_assert_location.  Update call to
812         create_ada_exception_catchpoint.
813
814 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
815
816         * utils.h (perror_warning_with_name): Add declaration.
817         * utils.c (perror_warning_with_name): New function.
818         * cli/cli-cmds.c (source_script_with_search): Add call to
819         perror_warning_with_name if from_tty is nul.
820
821 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
822
823         * utils.c (perror_string): New function, extracted out of
824         throw_perror_with_name.
825         (throw_perror_with_name): Rework to use perror_string.
826
827 2013-10-11  Yao Qi  <yao@codesourcery.com>
828
829         * remote.c (discard_pending_stop_replies_in_queue): Update
830         declaration.
831         (struct stop_reply) <rs>: New field.
832         (remove_stop_reply_of_remote_state): New function.
833         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
834         Callers update.  Pass remove_stop_reply_of_remote_state to
835         QUEUE_iterate.
836         (remote_parse_stop_reply): Initialize field 'rs'.
837
838 2013-10-10  Will Newton  <will.newton@linaro.org>
839
840         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
841         linux_init_abi.
842
843 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
844
845         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
846         serial_baud_show_cmd.
847         (_initialize_cli_cmds): Delete the code creating the
848         "set/show remotebaud" commands.
849         * serial.c (baud_rate): Move here from top.c.
850         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
851         (_initialize_serial): Create "set/show serial baud" commands.
852         Add "set/show remotebaud" command aliases.
853         * top.c (baud_rate): Moved to serial.c.
854         * NEWS: Document the new "set/show serial baud" commands,
855         replacing "set/show remotebaud".
856
857 2013-10-09  Pedro Alves  <palves@redhat.com>
858
859         * breakpoint.c (insert_bp_location): Use memory_error_message to
860         build the memory error string.
861         * c-lang.c: Include "gdbcore.h".
862         (c_get_string): Use memory_error to throw error.
863         (target_xfer_memory_error): Delete.
864         (memory_error_message): New, factored out from
865         target_xfer_memory_error.
866         (memory_error): Change parameter type to target_xfer_error.
867         Rewrite.
868         (read_memory): Use memory_error instead of
869         target_xfer_memory_error.
870         * gdbcore.h: Include "target.h".
871         (memory_error): Change parameter type to target_xfer_error.
872         (memory_error_message): Declare function.
873         * target.c (target_read_memory, target_read_stack)
874         (target_write_memory, target_write_raw_memory): Return
875         TARGET_XFER_E_IO on error.  Adjust comments.
876         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
877         instead of EIO.
878         * target.h (target_read, target_insert_breakpoint)
879         (target_remove_breakpoint): Adjust comments.
880         * valprint.c (partial_memory_read): Rename parameter, and adjust
881         comment.
882         (val_print_string): Use memory_error_message to build the memory
883         error string.
884
885 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
886
887         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
888         result variable.  Rename variable fopen_e_ever_failed to
889         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
890
891 2013-10-09  Pedro Alves  <palves@redhat.com>
892
893         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
894         (monitor_write_memory_longlongs, monitor_write_memory_block):
895         Constify 'myaddr' parameter.
896         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
897         helper.
898         (monitor_xfer_partial): New function.
899         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
900         hook.  Install a to_xfer_partial hook.
901
902 2013-10-09  Tom Tromey  <tromey@redhat.com>
903
904         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
905         bfd_get_alt_debug_link_info.
906
907 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
908
909         New flag OBJF_NOT_FILENAME.
910         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
911         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
912         allocate_objfile.
913         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
914         symbol_file_add_from_bfd.
915         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
916         allocate_objfile.
917         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
918         NULL.
919         * objfiles.h (OBJF_NOT_FILENAME): New.
920
921 2013-10-08  Tom Tromey  <tromey@redhat.com>
922
923         * Makefile.in (SFILES): Add build-id.c.
924         (HFILES_NO_SRCDIR): Add build-id.h.
925         * build-id.c: New file, largely from elfread.c.  Modified
926         most functions.
927         * build-id.h: New file.
928         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
929         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
930         Search for dwz file using build-id.
931         * elfread.c (build_id_bfd_get, build_id_verify)
932         (build_id_to_debug_filename, find_separate_debug_file): Remove.
933
934 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
935
936         * ada-lang.c (compare_names_with_case): Renamed from
937         compare_names, adding a new parameter "casing" and its handling.
938         New function documentation.
939         (compare_names): New function, implemented using
940         compare_names_with_case.
941
942 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
943
944         * ada-lang.c (ada_exception_sal): Remove advance declaration.
945
946 2013-10-07  Tom Tromey  <tromey@redhat.com>
947
948         * objfiles.c (free_objfile_per_bfd_storage): Delete the
949         demangled_names_hash.
950         (free_objfile): Don't delete the demangled_names_hash.
951         * objfiles.h (struct objfile_per_bfd_storage)
952         <demangled_names_hash>: New field.
953         (struct objfile) <demangled_names_hash>: Move to
954         objfile_per_bfd_storage.
955         * symfile.c (reread_symbols): Don't delete the
956         demangled_names_hash.
957         * symtab.c (create_demangled_names_hash): Update.
958         (symbol_set_names): Update.
959
960 2013-10-07  Tom Tromey  <tromey@redhat.com>
961
962         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
963         needs_relocations>: New fields.
964         (gdb_bfd_requires_relocations): New function.
965         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
966         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
967         the BFD needs relocations applied.
968
969 2013-10-07  Pedro Alves  <palves@redhat.com>
970
971         PR breakpoints/11568
972         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
973         the thread list" instead of "gone".
974
975 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
976
977         * NEWS: Mention new convenience variable $_exitsignal.
978         * corelow.c (core_open): Reset exit convenience variables.  Set
979         $_exitsignal to the uncaught signal which generated the corefile.
980         * infrun.c (handle_inferior_event): Reset exit convenience
981         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
982         (clear_exit_convenience_vars): New function.
983         * inferior.h (clear_exit_convenience_vars): New prototype.
984
985 2013-10-06  Yao Qi  <yao@codesourcery.com>
986
987         * varobj.h: Add comments to enum varobj_languages.
988
989 2013-10-04  Doug Evans  <dje@google.com>
990
991         Add support for DWP file format version 2.
992         * NEWS: Mention support for DWP file format version 2.
993         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
994         union of asection, containing_section.  New fields virtual_offset
995         and is_virtual.  Change type of readin filed from int to char.
996         (dwo_sections, dwo_file): Tweak comments.
997         (dwp_v2_section_ids): New enum.
998         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
999         str_offsets, types.
1000         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1001         All uses updated.
1002         (virtual_v2_dwo_sections): New struct.
1003         (dwp_hash_table): New fields version, nr_columns.  Change type of
1004         section_pool field to a union.
1005         (dwp_file): New field version.
1006         (dwarf2_has_info): Check for virtual sections.
1007         (get_containing_section): New function.
1008         (get_section_bfd_owner, get_section_bfd_section): Call it.
1009         (dwarf2_locate_sections): Update.
1010         (dwarf2_section_empty_p): Update.
1011         (dwarf2_read_section): Handle virtual sections.
1012         (locate_dwz_sections): Update.
1013         (create_dwp_hash_table): Document and handle V2 format.
1014         (locate_v1_virtual_dwo_sections): Renamed from
1015         locate_virtual_dwo_sections and update.  All callers updated.
1016         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1017         Delete arg htab.  Rename arg section_index to unit_index.
1018         All callers updated.
1019         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1020         All uses updated.
1021         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1022         (lookup_dwo_unit_in_dwp): Add V2 support.
1023         (dwarf2_locate_dwo_sections): Update.
1024         (dwarf2_locate_common_dwp_sections): Renamed from
1025         dwarf2_locate_dwp_sections and update.  All callers updated.
1026         (dwarf2_locate_v2_dwp_sections): New function.
1027         (open_and_init_dwp_file): Add V2 support.
1028         (read_str_index): New locals str_section, str_offsets_section.
1029
1030 2013-10-04  Pedro Alves  <palves@redhat.com>
1031
1032         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1033         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1034         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1035         describing comments with references to ptid.h.
1036         * common/ptid.h: Remove intro description of constructors,
1037         accessors and predicates.
1038         (struct ptid): Reformat.
1039         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1040         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1041         describing comments.
1042
1043 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1044
1045         * aix-thread.c (sync_threadlists): Add missing ')' in call
1046         to ptid_build.
1047
1048 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1049
1050         * procfs.c (procfs_init_inferior): Fix typo causing the build
1051         to fail.
1052
1053 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1054
1055         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1056
1057 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
1058
1059         * mi/mi-main.c (run_one_inferior): Add function description.
1060         Make ARG a pointer to an integer whose value determines whether
1061         we should "run" or "start" the program.
1062         (mi_cmd_exec_run): Add handling of the "--start" option.
1063         Reject all other command-line options.
1064         * NEWS: Add entry for "-exec-run"'s new "--start" option.
1065
1066 2013-10-04  Yao Qi  <yao@codesourcery.com>
1067
1068         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1069         (struct notif_client) <pending_event>: Moved
1070         to struct remote_notif_state.
1071         <id>: New field.
1072         (struct remote_notif_state) <pending_event>: New field.
1073         (notif_event_xfree): Declare.
1074         * remote-notif.c (handle_notification): Adjust.
1075         (notif_event_xfree): New function.
1076         (do_notif_event_xfree): Call notif_event_xfree.
1077         (remote_notif_state_xfree): Call notif_event_xfree to free
1078         each element in field pending_event.
1079         * remote.c (discard_pending_stop_replies): Remove declaration.
1080         (discard_pending_stop_replies_in_queue): Declare.
1081         (remote_close): Call discard_pending_stop_replies_in_queue
1082         instead of discard_pending_stop_replies.
1083         (remote_start_remote): Adjust.
1084         (stop_reply_xfree): Call notif_event_xfree.
1085         (notif_client_stop): Adjust initialization.
1086         (remote_notif_remove_all): Rename it to ...
1087         (remove_stop_reply_for_inferior): ... this.  Update comments.
1088         Don't check INF is NULL.
1089         (discard_pending_stop_replies): Return early if notif_state is
1090         NULL.  Adjust.  Don't check INF is NULL.
1091         (remote_notif_get_pending_events): Adjust.
1092         (discard_pending_stop_replies_in_queue): New function.
1093         (remote_wait_ns): Likewise.
1094
1095 2013-10-04  Yao Qi  <yao@codesourcery.com>
1096
1097         * remote-notif.c (DECLARE_QUEUE_P): Remove.
1098         (notif_queue): Remove.
1099         (remote_notif_process): Add one parameter 'notif_queue'.
1100         Update comments.  Callers update.
1101         (remote_async_get_pending_events_token): Remove.
1102         (remote_notif_register_async_event_handler): Remove.
1103         (remote_notif_unregister_async_event_handler): Remove.
1104         (handle_notification): Add parameter 'notif_queue'.  Update
1105         comments.  Callers update.
1106         (notif_xfree): Remove.
1107         (remote_notif_state_allocate): New function.
1108         (remote_notif_state_xfree): New function.
1109         (_initialize_notif): Remove code to allocate queue.
1110         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1111         (struct remote_notif_state): New.
1112         (handle_notification): Update declaration.
1113         (remote_notif_process): Likewise.
1114         (remote_notif_register_async_event_handler): Remove.
1115         (remote_notif_unregister_async_event_handler): Remove.
1116         (remote_notif_state_allocate): Declare.
1117         (remote_notif_state_xfree): Declare.
1118         * remote.c (struct remote_state) <notif_state>: New field.
1119         (remote_close): Don't call
1120         remote_notif_unregister_async_event_handler.  Call
1121         remote_notif_state_xfree.
1122         (remote_open_1): Don't call
1123         remote_notif_register_async_event_handler.  Call
1124         remote_notif_state_allocate.
1125
1126 2013-10-04  Yao Qi  <yao@codesourcery.com>
1127
1128         * varobj.c (create_child_with_value): Remove 'const' from the
1129         type of parameter 'name'.
1130         (varobj_add_child): Likewise.
1131         (install_dynamic_child): Remove 'const' from the type of
1132         parameter 'name'.
1133         (varobj_add_child): Likewise.
1134         (create_child_with_value): Likewise.  Update comments.  Don't
1135         duplicate 'name'.
1136         (update_dynamic_varobj_children): Duplicate 'name'
1137         and pass it to install_dynamic_child.
1138
1139 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
1140
1141         * python/py-value.c (convert_value_from_python): Move PyInt_Check
1142         conversion logic to occur after PyLong_Check.  Comment on order
1143         change significance.
1144         * python/py-arch.c (archpy_disassemble): Comment on order of
1145         conversion for integers and longs.
1146
1147 2013-10-03  Pedro Alves  <palves@redhat.com>
1148
1149         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1150         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1151         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
1152         PTRACE_O_TRACEFORK is not supported.
1153         (linux_test_for_tracesysgood): New function.
1154         (linux_test_for_tracefork): New function, factored out from
1155         linux_check_ptrace_features, and also don't kill child_pid here.
1156
1157 2013-10-03  Tristan Gingold  <gingold@adacore.com>
1158
1159         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1160         Remove verbose error reporting.  Use detected state to
1161         thread_set_state call.
1162         (i386_darwin_dr_get): Fix return type.  Remove verbose error
1163         report.
1164         Remove trailing spaces.
1165
1166 2013-10-02  Pedro Alves  <palves@redhat.com>
1167
1168         * cp-valprint.c (cp_print_value_fields): Adjust calls to
1169         val_print_optimized_out.
1170         * jv-valprint.c (java_print_value_fields): Likewise.
1171         * p-valprint.c (pascal_object_print_value_fields): Likewise.
1172         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1173         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1174         new optimized out value.
1175         * findvar.c (address_from_register): Likewise.
1176         * frame.c (put_frame_register): Tweak error string to say the
1177         register was not saved, rather than optimized out.
1178         * infcmd.c (default_print_one_register_info): Adjust call to
1179         val_print_optimized_out.  Use value_of_register instead of
1180         get_frame_register_value.
1181         * mi/mi-main.c (output_register): Use value_of_register instead of
1182         get_frame_register_value.
1183         * valprint.c (valprint_check_validity): Likewise.
1184         (val_print_optimized_out): New value parameter.  If the value is
1185         lval_register, print <not saved> instead.
1186         (value_check_printable, val_print_scalar_formatted): Adjust calls
1187         to val_print_optimized_out.
1188         * valprint.h (val_print_optimized_out): New value parameter.
1189         * value.c (struct value) <optimized_out>: Extend comment.
1190         (error_value_optimized_out): New function.
1191         (require_not_optimized_out): Use it.  Use a different string for
1192         lval_register values.
1193         * value.h (error_value_optimized_out): New declaration.
1194         * NEWS: Mention <not saved>.
1195
1196 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
1197
1198         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1199         strcmp to compare two symtab filenames.
1200
1201 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
1202
1203         * symtab.c (search_symbols_equal): Delete.
1204         (sort_search_symbols_remove_dups): Replace call to
1205         search_symbols_equal by call to compare_search_syms,
1206         adjusting as necessary.
1207
1208 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1209
1210         PR python/15579
1211         * python/python.c: Document gdb.execute command in Python help.
1212
1213 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1214
1215         * python/py-frame.c (frame_info_to_frame_object): Use
1216         gdbpy_convert_exception. Clean up Python object on failure.
1217
1218 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1219
1220         * python/lib/gdb/command/frame_filters.py
1221         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1222         (ShowFrameFilterPriority.invoke): Ditto.
1223
1224 2013-10-01  Keith Seitz  <keiths@redhat.com>
1225
1226         * linespec.c (struct ls_parser): Make 'saved_arg' const.
1227         (parse_linespec): Make 'argptr' const.
1228         Remove temporary cast of 'argptr' to const char **.
1229         (decode_line_full): Pass const pointer to parse_linespec.
1230         (decode_line_1): Likewise.
1231         (decode_objc): Make local variable 'new_argptr' const.
1232         (find_function_symbols): Remove temporary cast to char *
1233         to find_imps.
1234         * objc-lang.c (find_imps): Make argument 'method' const.
1235         Return const.
1236         * objc-lang.h (find_imps): Likewise.
1237
1238 2013-10-01  Keith Seitz  <keiths@redhat.com>
1239
1240         * completer.c (skip_quoted_chars): Make all arguments const.
1241         Return const.
1242         (skip_quoted): Likewise.
1243         * completer.h (skip_quoted_chars): Likewise.
1244         (skip_quoted): Likewise.
1245         * defs.h (skip_quoted): Remove duplicate declaration.
1246         * jv-exp.y: Include completer.h.
1247         (yylex): Remove unneccessary cast to char * fro skip_quoted.
1248         * p-exp.y: Include completer.h.
1249
1250 2013-10-01  Keith Seitz  <keiths@redhat.com>
1251
1252         * c-exp.y (parse_number): Make first argument const.
1253         Make a copy of the input to manipulate.
1254         (c_parse_escape): Make first argument const.
1255         Make local variable 'tokptr' const.
1256         (parse_string_or_char): Make first two arguments const.
1257         (macro_original_text): Make const.
1258         (lex_one_token): Make local variable 'tokstart' const.
1259         Likewise for local variables named 'p'.
1260         Cast away const for struct stoken (temporary).
1261         * c-lang.h (c_parse_escpae): Make first argument const.
1262         * cli/cli-cmds.c (echo_command): Make local variable 'p'
1263         const.
1264         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1265         var_string case.
1266         * f-exp.y (parse_number): Make first argument const.
1267         (match_string_literal): Make local variable 'tokstart'
1268         const.
1269         (yylex): Make local variable 'p' const.
1270         Cast away const for struct stoken (temporary).
1271         * go-exp.y (parse_number): Make first argument const.
1272         (parse_string_or_char): Likewise.
1273         Make local variable 'tokstart' const.
1274         (lex_one_token): Likewise for numerous locals called 'p'.
1275         Cast away const for struct stoken (temporary).
1276         * jv-exp.y (parse_number): Make first argument const.
1277         Make local variables 'tokstart' and 'tokptr' const.
1278         Cast away const for call to skip_quoted (temporary).
1279         (yylex): Make local variable 'p' const.
1280         Cast away const for struct stoken (temporary).
1281         * m2-exp.y (parse_number): Make local variable 'p' const.
1282         (yylex): Likewise for 'tokstart'.
1283         Cast away const for struct stoken (temporary).
1284         Make local variable 'p' const.
1285         * macroexp.c (get_character_constant): Pass a const string
1286         to c_parse_escape.
1287         (get_string_literal): Likewise.
1288         (macro_expand_next): Make first argument const.
1289         Cast away const for init_shared_buffer.
1290         * macroexp.h (macro_expand_next): Make first argument const.
1291         * p-exp.y (yylex): Make a local copy of 'lexptr'.
1292         Pass a const string to c_parse_escape.
1293         Make local variables 'p' and 'namestart' const.
1294         * parse.c (lexptr): Make const.
1295         (prev_lexptr): Likewise.
1296         (find_template_name_end): Return const.
1297         Make argument const, too.
1298         (parse_exp_in_context): Make first argument const.
1299         Remove the entire const_hack.
1300         (parse_exp_in_context_1): Make first argument const.
1301         * parser-defs.h (find_template_name_end): Return const.
1302         Make argument const, too.
1303         (lexptr): Make const.
1304         (prev_lexptr): Likewise.
1305         * utils.c (parse_escape): Make second argument const.
1306         * utils.h (parse_escape): Likewise.
1307
1308 2013-10-01  Keith Seitz  <keiths@redhat.com>
1309
1310         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1311         is now const.
1312         (block_lookup): Make 'raw_name' and 'name' const.
1313         * ada-lex.l (processString): Update for struct stoken.ptr.
1314         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1315         (operator_stoken): Likewise.
1316         (lex_one_token): Remove temporary cast to char * for
1317         'yylval.sval.ptr'.
1318         * f-exp.y (yylex): Likewise.
1319         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1320         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1321         * go-exp.y (lex_one_token): Remove temporary cast to char * for
1322         'yylval.sval.ptr'.
1323         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1324         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1325         * linespec.c (struct ls_parser): Make 'stream' const.
1326         (find_parameter_list_end): Make argument 'input' and local
1327         variable 'p' const.
1328         (linespec_lexer_lex_string): Make local variables 'start' and
1329         'p' const.
1330         Use skip_spaces_const instead of skip_spaces.
1331         (linespec_lexer_peek_token): Make local variable 'saved_stream'
1332         const.
1333         (parse_linespec): Temporarily cast 'argptr' to const for
1334         'parser->lexer.stream'.
1335         * m2-exp.y (yylex): Remove temporary cast to char * for
1336         'yylval.sval.ptr'.
1337         * objc-lang.c (add_msglist): Make local variable 'p' const.
1338         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1339         (exp : STRING): Make 'sp' const.
1340         (parse_number): Make argument 'p' const.
1341         * parser-defs.h (struct stoken): Make 'ptr' const.
1342
1343 2013-10-01  Doug Evans  <dje@google.com>
1344
1345         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1346
1347 2013-10-01  Yao Qi  <yao@codesourcery.com>
1348
1349         * varobj.c (c_value_of_root): Remove declaration.
1350         (cplus_value_of_root, java_value_of_root): Likewise.
1351         (ada_value_of_root): Likewise.
1352         (struct language_specific) <value_of_root>: Remove.
1353         (languages): Update initialization.
1354         (check_scope): Move earlier.
1355         (c_value_of_root): Move earlier and rename to ...
1356         (value_of_root_1): ... this.
1357         (value_of_root): Caller update.
1358         (cplus_value_of_root, java_value_of_root): Remove.
1359         (ada_value_of_root): Remove.
1360
1361 2013-10-01  Yao Qi  <yao@codesourcery.com>
1362
1363         * varobj.c (varobj_format_string): Remove "unknown".
1364         (languages): Remove the first element.
1365         * varobj.h (enum varobj_languages): Remove vlang_c.
1366
1367 2013-10-01  Yao Qi  <yao@codesourcery.com>
1368
1369         * varobj.c (struct language_specific) <language>: Remove.
1370         (languages): Update the initialization.
1371
1372 2013-10-01  Yao Qi  <yao@codesourcery.com>
1373
1374         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1375         "solib-target.h".  Include "windows-tdep.h".
1376         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
1377         set_solib_ops and set_gdbarch_has_dos_based_file_system.
1378         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1379         windows-tdep.o to gdb_target_obs.
1380
1381 2013-10-01  Yao Qi  <yao@codesourcery.com>
1382
1383         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1384         "solib-target.h".
1385         (amd64_windows_init_abi): Don't call set_solib_ops and
1386         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1387         windows_init_abi instead.
1388         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1389         "solib-target.h".
1390         (i386_cygwin_init_abi): Don't call set_solib_ops,
1391         set_gdbarch_has_dos_based_file_system and
1392         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1393         windows_init_abi instead.
1394         * windows-tdep.c: Include "solib.h" and "solib-target.h".
1395         (windows_init_abi): New function.
1396         (windows_iterate_over_objfiles_in_search_order): Make it
1397         static.
1398         * windows-tdep.h (windows_init_abi): Declare.
1399         (windows_iterate_over_objfiles_in_search_order): Remove
1400         declaration.
1401
1402 2013-10-01  Jerome Guitton  <guitton@adacore.com>
1403
1404         Checked in by Joel Brobecker  <brobecker@adacore.com>
1405         * system-gdbinit/elinos.py (get_elinos_environment): Return an
1406         incomplete dictionnary instead of None in case of missing
1407         environment variables.
1408         (elinos_init): in case of an incomplete environment, best
1409         effort to load system libraries instead of abort.
1410
1411 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
1412
1413         * ada-lang.c (ada_has_this_exception_support): Ignore
1414         mst_solib_trampoline minimal symbols.
1415
1416 2013-09-30  Tristan Gingold  <gingold@adacore.com>
1417
1418         * i386-darwin-nat.c (darwin_complete_target): Install methods for
1419         hardware watchpoint.
1420         (i386_darwin_dr_set): Support 32 and 64 bit states.
1421         (i386_darwin_dr_get): Likewise.
1422         (i386_darwin_dr_set_control): Make static.
1423         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1424         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1425
1426 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
1427
1428         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1429         Replace TIDGET with ptid_get_lwp.
1430         Replace GET_LWP with ptid_get_lwp.
1431         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1432         Replace BUILD_THREAD with ptid_build.
1433         Replace BUILD_LWP with ptid_build.
1434         Replace PIDGET with ptid_get_pid.
1435         Replace TIDGET with ptid_get_lwp.
1436         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1437         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1438         Replace TIDGET with ptid_get_lwp.
1439         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1440         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1441         Replace TIDGET with ptid_get_lwp.
1442         Replace GET_LWP with ptid_get_lwp.
1443         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1444         * auxv.c: Likewise.
1445         * breakpoint.c: Likewise.
1446         * common/ptid.c (ptid_is_pid): Condense check for
1447         null_ptid and minus_one_ptid.
1448         (ptid_lwp_p): New function.
1449         (ptid_tid_p): New function.
1450         * common/ptid.h: Update comments for accessors.
1451         (ptid_lwp_p): New prototype.
1452         (ptid_tid_p): New prototype.
1453         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1454         * gcore.c: Replace PIDGET with ptid_get_pid.
1455         * gdbthread.h: Likewise.
1456         * gnu-nat.c: Likewise.
1457         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1458         Replace TIDGET with ptid_get_lwp.
1459         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1460         * hppanbsd-nat.c: Likewise.
1461         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1462         Replace TIDGET with ptid_get_lwp.
1463         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1464         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1465         * infcmd.c: Likewise.
1466         * inferior.h: Likewise.
1467         * inflow.c: Likewise.
1468         * infrun.c: Likewise.
1469         * linux-fork.c: Likewise.
1470         * linux-nat.c: Replace PIDGET with ptid_get_pid.
1471         Replace GET_PID with ptid_get_pid.
1472         Replace is_lwp with ptid_lwp_p.
1473         Replace GET_LWP with ptid_get_lwp.
1474         Replace BUILD_LWP with ptid_build.
1475
1476 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1477
1478         * common/linux-btrace.c: Move sys/syscall.h out of the
1479         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1480         Also check for SYS_perf_event_open before attempting to buid.
1481
1482 2013-09-27  Doug Evans  <dje@google.com>
1483
1484         * dwarf2read.c (dwarf2_section_info): Add comment.
1485         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1486         All uses updated.
1487         (dwarf2_section_empty_p): Rename arg from "info" to "section".
1488         (dwarf2_read_section): Delete unused local "header".  Add section
1489         name to error message.
1490         (create_dwo_in_dwp): Tweak comment.
1491         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1492
1493         * dwarf2read.c (die_reader_specs): Tweak comment.
1494         (get_section_bfd_owner, get_section_bfd_section): New functions.
1495         (get_section_name, get_section_file_name): New functions.
1496         (get_section_id, get_section_flags): New functions.
1497         (*): Use new functions to access section fields.
1498
1499         * dwarf2read.c (struct dwo_file): Add/tweak comments.
1500         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
1501         arg "htab".  All callers updated.
1502         (create_debug_types_hash_table): Remove redundant copy of
1503         abbrev_section.
1504         (create_dwo_in_dwp): Tweak comments.
1505         (read_str_index): Tweak comment.  Record dwarf form name in static
1506         local.
1507
1508 2013-09-27  Pedro Alves  <palves@redhat.com>
1509
1510         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1511         (remote_filename_p): Add comment.
1512         * remote.c (remote_filename_p): Adjust to use
1513         REMOTE_SYSROOT_PREFIX.
1514         * solib.c (solib_find): When deciding whether we need to add a
1515         directory separator, check whether the sysroot is "remote:"
1516         instead of checking whether the patch has a drive spec.  Add
1517         comments.
1518
1519 2013-09-27  Pedro Alves  <palves@redhat.com>
1520
1521         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1522         Delete fields.
1523         (remote_parse_stop_reply): Adjust, setting event->ws.kind
1524         directly.
1525
1526 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1527
1528         Fix set debug frame output.
1529         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
1530         SENTINEL_FRAME entry lower to match enum frame_type order.
1531
1532 2013-09-26  Pierre Muller  <muller@sourceware.org>
1533
1534         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1535         AMD64_R15_REGNUM when a register index is expected.
1536         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1537         Substitute in array.
1538         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1539         (amd64_push_arguments): Substitute in integer_regnum array.
1540
1541 2013-09-25  Doug Evans  <dje@google.com>
1542
1543         * objfiles.c (allocate_objfile): Move comment to better place.
1544
1545         New option "set debug symfile on".
1546         * NEWS: Mention "set debug symfile".
1547         * Makefile.in (SFILES): Add symfile-debug.c.
1548         (COMMON_OBS): Add symfile-debug.o.
1549         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1550         objfile's symbol functions.
1551         * objfiles.h (objfile_set_sym_fns): Declare.
1552         * symfile-debug.c: New file.
1553         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1554         objfile's symbol functions.
1555         (reread_symbols): Ditto.
1556
1557         * symfile.h (struct sym_fns): Delete member "sym_flavour".
1558         All uses updated.
1559         (add_symtab_fns): Update prototype.
1560         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
1561         (registered_sym_fns): ... this.
1562         (symtab_fns): Update.
1563         (add_symtab_fns): New arg "flavour".  All callers updated.
1564         (find_sym_fns): Rewrite to use new sym_fns registry.
1565
1566         * symfile.h (struct sym_fns): Add "objfile" argument to
1567         sym_read_linetable.  All uses updated.
1568
1569         * symtab.c (domain_name, search_domain_name): New functions.
1570         * symtab.h (domain_name, search_domain_name): Declare.
1571
1572         * symfile.h (struct quick_symbol_functions): Reorg arg list of
1573         map_matching_symbols so objfile is first.  All uses updated.
1574         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1575         * psymtab.c (map_matching_symbols_psymtab): Update signature.
1576
1577 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1578
1579         PR shlibs/8882
1580         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1581         link map entries.
1582
1583 2013-09-24  Doug Evans  <dje@google.com>
1584
1585         * objfiles.c (free_objfile): Move comment.
1586
1587 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1588
1589         * ada-exp.y (string_to_operator): Delete.
1590         (dummy_string_to_ada_operator): Delete.
1591
1592 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1593
1594         Revert:
1595         * i386-tdep.h (enum amd64_reg_class): New, moved here from
1596         amd64-tdep.c.
1597         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1598         call_dummy_integer_regs, and classify.
1599         * amd64-tdep.h (amd64_classify): Add declaration.
1600         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1601         (amd64_reg_class): Delete, moved to i386-tdep.h.
1602         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
1603         Replace call to amd64_classify by call to tdep->classify.
1604         (amd64_push_arguments): Get the list of registers to use for
1605         passing integer parameters from the gdbarch tdep structure,
1606         rather than using a hardcoded one.  Replace calls to amd64_classify
1607         by calls to tdep->classify.
1608         (amd64_push_dummy_call): Get the register number used for
1609         the "hidden" argument from tdep->call_dummy_integer_regs.
1610         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1611         and tdep->call_dummy_integer_regs.  Set tdep->classify.
1612
1613 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1614
1615         Revert:
1616         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1617         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1618         where tdep->memory_args_by_pointer is non-zero.
1619
1620 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1621
1622         Revert:
1623         * i386-tdep.h (struct gdbarch_tdep): Add new field
1624         integer_param_regs_saved_in_caller_frame.
1625         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1626         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1627
1628 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1629
1630         * amd64-windows-tdep.c: #include "value.h"
1631         (amd64_windows_classify): Delete.
1632         (amd64_windows_passed_by_integer_register)
1633         (amd64_windows_passed_by_xmm_register)
1634         (amd64_windows_passed_by_pointer)
1635         (amd64_windows_adjust_args_passed_by_pointer)
1636         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1637         (amd64_windows_push_dummy_call): New functions.
1638         (amd64_windows_init_abi): Remove setting of
1639         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1640         tdep->classify, tdep->memory_args_by_pointer and
1641         tdep->integer_param_regs_saved_in_caller_frame.
1642         Add call to set_gdbarch_push_dummy_call.
1643
1644 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1645
1646         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1647         objfile->original_name.
1648
1649 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1650
1651         Pass down original filename for objfile.
1652         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1653         * elfread.c (elf_symfile_read): Likewise.
1654         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1655         longer set ORIGINAL_NAME.
1656         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1657         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1658         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
1659         symbol_file_add_from_bfd call.
1660         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1661         (macho_check_dsym): Add parameter filenamep.  Change function comment.
1662         Set *filenamep.
1663         (macho_symfile_read): New variable dsym_filename.  Update
1664         macho_check_dsym call.  Use it for symbol_file_add_separate.
1665         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
1666         it.  Use it for objfile->original_name.
1667         (objfile_name): Return OBFD's filename, if available.
1668         * objfiles.h (allocate_objfile): Add new parameter name.
1669         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1670         * symfile-mem.c (symbol_file_add_from_memory): Update
1671         symbol_file_add_from_bfd call.
1672         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1673         comment for it.
1674         (symbol_file_add_with_addrs): New parameter name, add function comment
1675         for it.  Remove variable name.  Update allocate_objfile call.
1676         (symbol_file_add_separate): New parameter name, add function comment
1677         for it.  Update symbol_file_add_with_addrs call.
1678         (symbol_file_add_from_bfd): New parameter name.  Update
1679         symbol_file_add_with_addrs call.
1680         (symbol_file_add): Update symbol_file_add_from_bfd call.
1681         (reread_symbols): New variable original_name.  Save
1682         objfile->original_name by it.
1683         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1684         second parameter.
1685
1686 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1687
1688         Code cleanup: Add objfile_name accessor function.
1689         * ada-lang.c (is_known_support_routine): Use objfile_name.
1690         * auto-load.c (source_gdb_script_for_objfile)
1691         (auto_load_objfile_script): Likewise.
1692         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1693         * dbxread.c (dbx_symfile_read): Likewise.
1694         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1695         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1696         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1697         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1698         (lookup_dwp_signatured_type, lookup_dwo_unit)
1699         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1700         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1701         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1702         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1703         (dwarf2_record_block_ranges, read_common_block, read_typedef)
1704         (read_subrange_type, load_partial_dies, read_partial_die)
1705         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1706         (die_containing_type, build_error_marker_type, lookup_die_type)
1707         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1708         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1709         (get_DW_AT_signature_type, write_psymtabs_to_index)
1710         (save_gdb_index_command): Likewise.
1711         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1712         Likewise.
1713         * expprint.c (dump_subexp_body_standard): Likewise.
1714         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1715         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1716         original_name.
1717         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1718         obj_name, use objfile_name for it, use the variable.
1719         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1720         Use objfile_name.
1721         * machoread.c (macho_symtab_read, macho_check_dsym)
1722         (macho_symfile_relocate): Likewise.
1723         * maint.c (maintenance_translate_address): Likewise.
1724         * minidebug.c (find_separate_debug_file_in_section): Likewise.
1725         * minsyms.c (install_minimal_symbols): Likewise.
1726         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1727         original_name.
1728         (filter_overlapping_sections): Use objfile_name.
1729         (objfile_name): New function.
1730         * objfiles.h (struct objfile): Rename field name to original_name.
1731         (objfile_name): New prototype.
1732         * printcmd.c (sym_info, address_info): Use objfile_name.
1733         * probe.c (parse_probes, collect_probes, compare_probes)
1734         (info_probes_for_ops): Likewise.
1735         * progspace.c (clone_program_space): Likewise.
1736         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1737         (maintenance_info_psymtabs): Likewise.
1738         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1739         (source_section_scripts): Likewise.
1740         * python/py-objfile.c (objfpy_get_filename): Likewise.
1741         * python/py-progspace.c (pspy_get_filename): Likewise.
1742         * solib-aix.c (solib_aix_get_toc_value): Likewise.
1743         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1744         * solib.c (solib_read_symbols): Likewise.
1745         * stabsread.c (scan_file_globals): Likewise.
1746         * stap-probe.c (handle_stap_probe): Likewise.
1747         * symfile.c (symbol_file_clear, separate_debug_file_exists)
1748         (find_separate_debug_file_by_debuglink): Likewise.
1749         (reread_symbols): Likewise.  Use the objfile field name renamed to
1750         original_name.
1751         (allocate_symtab): Use objfile_name.
1752         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1753         (dump_objfile, dump_msymbols, dump_symtab_1)
1754         (maintenance_print_msymbols, maintenance_print_objfiles)
1755         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1756         * target.c (target_translate_tls_address, target_info): Likewise.
1757         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
1758         objfile_name.
1759
1760 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1761
1762         Code cleanup.
1763         * probe.c (parse_probes): Rename variable objfile_name to
1764         objfile_namestr.
1765
1766 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1767
1768         Remove solib-sunos.c.
1769         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1770         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1771         * objfiles.c (rt_common_objfile): Remove.
1772         (free_objfile): Remove rt_common_objfile comparison.
1773         * objfiles.h (rt_common_objfile): Remove.
1774         * solib-sunos.c: Remove.
1775         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1776
1777 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1778
1779         Remove a.out NetBSD and OpenBSD hosts.
1780         * NEWS (Removed native configurations): New.
1781         * config/arm/nbsdaout.mh: Remove.
1782         * config/i386/nbsdaout.mh: Remove.
1783         * config/i386/obsdaout.mh: Remove.
1784         * config/m68k/nbsdaout.mh: Remove.
1785         * config/sparc/nbsdaout.mh: Remove.
1786         * config/vax/nbsdaout.mh: Remove.
1787         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1788         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1789         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1790         error.
1791         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1792         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1793         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1794
1795 2013-09-23  Tom Tromey  <tromey@redhat.com>
1796
1797         * linespec.c (struct minsym_and_objfile): Remove.
1798         (minsym_and_objfile_d): Remove.
1799         (struct linespec, struct collect_info, linespec_parse_basic)
1800         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1801         (compare_msymbols, find_method, find_function_symbols)
1802         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1803         (add_minsym, search_minsyms_for_name): Update.
1804
1805 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1806
1807         * regcache.c: Add include of valprint.h.
1808         (dump_endian_bytes): Delete.
1809         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1810
1811 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1812
1813         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1814
1815 2013-09-19  Pedro Alves  <palves@redhat.com>
1816
1817         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1818         breakpoints.
1819
1820 2013-09-19  Pedro Alves  <palves@redhat.com>
1821             Thomas Schwinge  <thomas@codesourcery.com>
1822             Yue Lu  <hacklu.newborn@gmail.com>
1823
1824         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1825         Take a gdb_byte pointer instead of a char pointer.
1826
1827         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1828         gnu_xfer_partial helper.
1829         (gnu_xfer_partial): New function.
1830         (gnu_target): Don't install a deprecated_xfer_memory hook.
1831         Install a to_xfer_partial hook.
1832
1833 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1834
1835         Constification.
1836         * main.c (captured_main): Replace catch_command_errors by
1837         catch_command_errors_const.  Twice.
1838         * symfile.c (symbol_file_add_main_1): Make args parameter const.
1839         (symbol_file_add): Make name parameter const.
1840         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1841         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
1842         variable name.  Change their usage accordingly.
1843         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1844         const.
1845         (symbol_file_add_main): Make args parameter const.
1846
1847 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
1848             Ulrich Weigand  <uweigand@de.ibm.com>
1849
1850         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1851         of c_value member.
1852         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1853
1854 2013-09-18  Pedro Alves  <palves@redhat.com>
1855             Yue Lu  <hacklu.newborn@gmail.com>
1856
1857         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1858         (gnu_create_inferior)
1859         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1860         (set_sig_thread_cmd): Use the lwpid field of ptids to
1861         store/extract thread ids instead of the tid field.
1862         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1863
1864 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1865
1866         * infcmd.c (default_print_one_register_info): Add detection of
1867         optimized out values.
1868         (default_print_registers_info): Switch to using
1869         get_frame_register_value.
1870
1871 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1872
1873         * infrun.c (handle_inferior_event): Check if we know the
1874         function start address before setting a resume breakpoint.
1875
1876 2013-09-18  Pedro Alves  <palves@redhat.com>
1877
1878         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1879         minus_one_ptid instead of looking at the ptid's tid field and
1880         comparing that to -1.
1881
1882 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1883
1884         * main.h (get_gdb_program_name): Remove extra whitespace.
1885
1886 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1887
1888         * main.h (get_gdb_program_name): Add declaration.
1889         * main.c (get_gdb_program_name): Add definition.
1890
1891 2013-09-17  Doug Evans  <dje@google.com>
1892
1893         * dwarf2read.c: Move definitions of complaint functions to after
1894         forward declarations of local functions.
1895
1896 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
1897             Pedro Alves  <palves@redhat.com>
1898
1899         PR gdb/11568
1900         * breakpoint.c (remove_threaded_breakpoints): New function.
1901         (_initialize_breakpoint): Attach remove_threaded_breakpoints
1902         as thread_exit observer.
1903
1904 2013-09-17  Pedro Alves  <palves@redhat.com>
1905
1906         PR gdb/15911
1907         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1908         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1909         * corelow.c (core_open):
1910         * frame.h (print_stack_frame, print_frame_info): New
1911         'set_current_sal' parameter.
1912         * infcmd.c (finish_command, kill_command): Adjust call to
1913         print_stack_frame.
1914         * inferior.c (inferior_command): Likewise.
1915         * infrun.c (normal_stop): Likewise.
1916         * linux-fork.c (linux_fork_context): Likewise.
1917         * record-full.c (record_full_goto_entry, record_full_restore):
1918         Likewise.
1919         * remote-mips.c (common_open): Likewise.
1920         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1921         Use it.
1922         (print_frame_info): New 'set_current_sal' parameter.  Set the last
1923         displayed sal depending on the new paremeter instead of looking at
1924         print_what.
1925         (backtrace_command_1, select_and_print_frame, frame_command)
1926         (current_frame_command, up_command, down_command): Adjust call to
1927         print_stack_frame.
1928         * thread.c (print_thread_info, restore_selected_frame)
1929         (do_captured_thread_select): Adjust call to print_stack_frame.
1930         * tracepoint.c (tfind_1): Likewise.
1931         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1932         (mi_cmd_stack_info_frame): Likewise.
1933         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1934         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1935
1936 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1937
1938         * value.c (isvoid_internal_fn): Replace "parameter" with
1939         "argument".
1940
1941 2013-09-16  Stan Shebs  <stan@codesourcery.com>
1942
1943         * README: Update references to writing code for GDB.
1944         * configure.ac (build_warnings): Remove obsolete comment.
1945         * configure: Regenerate.
1946         * gdbarch.sh: Remove references to gdbint.texinfo.
1947         * gdbarch.h: Regenerate.
1948         * gdbtypes.c (objfile_type): Remove comments referencing internals
1949         manual and D10V.
1950
1951 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1952
1953         * NEWS: Mention new convenience function $_isvoid.
1954         * value.c (isvoid_internal_fn): New function.
1955         (_initialize_values): Add new convenience function $_isvoid.
1956
1957 2013-09-16  Pierre Muller  <muller@sourceware.org>
1958
1959         * arm-linux-tdep.c: Add "elf/common.h" header.
1960         Remove AT_HWCAP macro definintion as it is provided in
1961         added include file.
1962         * s390-tdep.c: Remove system header <elf.h>
1963         Add "elf/common.h" header for AT_HWCAP definition.
1964         (s390_core_read_description): Use correct CORE_ADDR
1965         for hwcap local variable used as third parameter
1966         of function target_auxv_search.
1967
1968 2013-09-14  Pierre Muller  <muller@sourceware.org>
1969             Tom Tromey  <tromey@redhat.com>
1970             Pedro Alves  <palves@redhat.com>
1971
1972         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1973         mode if operating system doesn't know O_CLOEXEC.
1974
1975 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1976
1977         Code cleanup.
1978         * symfile.c (reread_symbols): Move variable obfd_filename to a more
1979         inner block.
1980
1981 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1982
1983         * NEWS: Mention TDB support.
1984         * features/s390-tdb.xml: New file.
1985         * features/s390-te-linux64.xml: New file.
1986         * features/s390x-te-linux64.xml: New file.
1987         * features/Makefile (WHICH): Add new tdescs above.
1988         (s390-te-linux64-expedite): Set.
1989         (s390x-te-linux64-expedite): Set.
1990         * features/s390-te-linux64.c: New file (generated).
1991         * features/s390x-te-linux64.c: New file (generated).
1992         * regformats/s390-te-linux64.dat: New file (generated).
1993         * regformats/s390x-te-linux64.dat: New file (generated).
1994         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1995         (HWCAP_S390_TE): Likewise.
1996         (S390_TDB_DWORD0_REGNUM): Likewise.
1997         (S390_TDB_DWORD0_REGNUM): Likewise.
1998         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1999         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2000         (S390_TDB_ATIA_REGNUM): Likewise.
2001         (S390_TDB_R0_REGNUM): Likewise.
2002         (S390_TDB_R1_REGNUM): Likewise.
2003         (S390_TDB_R2_REGNUM): Likewise.
2004         (S390_TDB_R3_REGNUM): Likewise.
2005         (S390_TDB_R4_REGNUM): Likewise.
2006         (S390_TDB_R5_REGNUM): Likewise.
2007         (S390_TDB_R6_REGNUM): Likewise.
2008         (S390_TDB_R7_REGNUM): Likewise.
2009         (S390_TDB_R8_REGNUM): Likewise.
2010         (S390_TDB_R9_REGNUM): Likewise.
2011         (S390_TDB_R10_REGNUM): Likewise.
2012         (S390_TDB_R11_REGNUM): Likewise.
2013         (S390_TDB_R12_REGNUM): Likewise.
2014         (S390_TDB_R13_REGNUM): Likewise.
2015         (S390_TDB_R14_REGNUM): Likewise.
2016         (S390_TDB_R15_REGNUM): Likewise.
2017         (S390_NUM_REGS): Increase.
2018         (S390_IS_TDBREGSET_REGNUM): New macro.
2019         (s390_regmap_tdb): Declare.
2020         (s390_sizeof_tdbregset): Define.
2021         (tdesc_s390_te_linux64): Declare.
2022         (tdesc_s390x_te_linux64): Likewise.
2023         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2024         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2025         (s390_regmap_tdb): New regmap.
2026         (s390_supply_tdb_regset): New function.
2027         (s390_tdb_regset): New regset.
2028         (s390_linux64v2_regset_sections): Add TDB regset to list.
2029         (s390x_linux64v2_regset_sections): Likewise.
2030         (s390_regset_from_core_section): Recognize TDB core note section.
2031         (s390_core_read_description): If HWCAP indicates TE support,
2032         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2033         (s390_gdbarch_init): Handle TDB regset.
2034         (_initialize_s390_tdep): Initialize new tdescs.
2035         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2036         (have_regset_tdb): New variable.
2037         (s390_native_supply): Support register invalidation.
2038         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2039         (check_regset): Treat ENODATA as "regset exists".
2040         (s390_linux_fetch_inferior_registers): Add TDB.
2041         (s390_read_description): Check for TDB existence and select
2042         appropriate tdesc.
2043         * gdbserver/Makefile.in (clean): Add removal of new makefile
2044         targets.
2045         (s390-te-linux64.c): New makefile target.
2046         (s390x-te-linux64.c): Likewise.
2047         * gdbserver/configure.srv (srv_regobj): Append new objects
2048         s390-te-linux64.o and s390x-te-linux64.o.
2049         (srv_xmlfiles): Append new files s390-te-linux64.xml,
2050         s390x-te-linux64.xml, and s390-tdb.xml.
2051         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2052         declaration.
2053         (tdesc_s390_te_linux64): Likewise.
2054         (init_registers_s390x_te_linux64): Likewise.
2055         (tdesc_s390x_te_linux64): Likewise.
2056         (s390_check_regset): Treat ENODATA as "regset exists".
2057         (s390_arch_setup): Add TDB regset support.
2058         (initialize_low_arch): Initialize registers for new tdescs.
2059
2060 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2061
2062         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2063         (S390_IS_FPREGSET_REGNUM): New macro.
2064         * s390-tdep.c (s390_dwarf_regmap): Make const.
2065         (regnum_is_gpr_full): New function for replacing repeated code.
2066         (s390_pseudo_register_name): Use it.
2067         (s390_pseudo_register_type): Likewise.
2068         (s390_pseudo_register_read): Likewise.
2069         (s390_pseudo_register_write): Likewise.
2070         (s390_unwind_pseudo_register): Likewise.
2071         (s390_regmap_gregset): New format for regmap.
2072         (s390x_regmap_gregset): Likewise.
2073         (s390_regmap_fpregset): Likewise.
2074         (s390_regmap_upper): Likewise.
2075         (s390_regmap_last_break): Likewise.
2076         (s390_regmap_system_call): Likewise.
2077         (s390_supply_regset): Adjust to new regmap format.
2078         (s390_collect_regset): Likewise.
2079         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2080         (s390_native_collect): Likewise.
2081         (supply_gregset): Likewise.
2082         (fill_gregset): Likewise.
2083         (supply_fpregset): Likewise.
2084         (fill_fpregset): Likewise.
2085         (fetch_regset): Likewise.
2086         (store_regset): Likewise.
2087         (s390_linux_fetch_inferior_registers): Likewise.
2088         (s390_linux_fetch_inferior_registers): Likewise.
2089
2090 2013-09-12  Andrew Pinski  <apinski@cavium.com>
2091
2092         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2093
2094 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2095
2096         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2097
2098 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
2099
2100         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2101
2102 2013-09-06  Pedro Alves <palves@redhat.com>
2103
2104         * remote-sim.c (dump_mem, gdbsim_fetch_register)
2105         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2106         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2107         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2108         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2109         gdb_stdlog.
2110
2111 2013-09-06  Pedro Alves  <palves@redhat.com>
2112
2113         * remote-sim.c (dump_mem): Constify buf parameter.
2114         gdbsim_xfer_inferior_memory): Rename to ...
2115         (gdbsim_xfer_memory): ... this.  Adjust interface as
2116         target_xfer_partial helper.
2117         (gdbsim_xfer_partial): New function.
2118         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2119         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
2120
2121 2013-09-06  Pedro Alves  <palves@redhat.com>
2122
2123         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2124         host_address_to_string, and send debug output to gdb_stdlog.
2125
2126 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2127
2128         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2129         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2130         gdb_target_obs for cris target.
2131         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2132         (cris_gdbarch_init): Move calls to
2133         set_gdbarch_fetch_tls_load_module_address and
2134         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2135         Add call to gdbarch_init_osabi.
2136         * cris-linux-tdep.c: New file.
2137         * cris-tdep.h: New file.
2138
2139 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
2140
2141         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2142         to deprecated_init_ui_hook.
2143
2144 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
2145
2146         * cli/cli-interp.c (_initialize_cli_interp): Add a
2147         command_loop_proc to interp_procs.
2148         * event-top.c (cli_command_loop): Change signature to match
2149         interp_command_loop_ftype.
2150         * event-top.h (cli_command_loop): Same.
2151         * interps.c (interp_new): Require every interpreter to have a
2152         command_loop_proc.
2153         (current_interp_command_loop): Just call the command_loop_proc on
2154         the current interpreter.
2155         * tui/tui-interp.c (_initialize_tui_interp): Add a
2156         command_loop_proc to interp_procs.
2157
2158 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2159
2160         * cris-tdep.c (cris_gdbarch_init): Add call to
2161         get_gdbarch_fetch_tls_load_module_address.
2162
2163 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2164
2165         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2166         (cris_elf_gregset_t): Rename from elf_gregset_t.
2167         (crisv32_elf_gregset_t): Adjust.
2168         (cris_supply_gregset, fetch_core_registers): Adjust.
2169
2170 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
2171
2172         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2173
2174 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
2175
2176         * defs.h (deprecated_command_loop_hook): Remove, including
2177         references in comments.
2178         * interps.c (current_interp_command_loop): No longer use
2179         deprecated_command_loop_hook.
2180         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2181         setup.
2182         * top.c (deprecated_command_loop_hook): Remove.
2183
2184 2013-09-05  Pedro Alves  <palves@redhat.com>
2185
2186         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2187         local is now int instead of ULONGEST.  Print it with %d
2188         instead of paddress.
2189
2190 2013-09-05  Tristan Gingold  <gingold@adacore.com>
2191
2192         * MAINTAINERS: Remove avr maintainership.
2193
2194 2013-09-05  Pedro Alves  <palves@redhat.com>
2195
2196         * findvar.c (value_of_register): Rework in terms of
2197         value_of_register_lazy.
2198
2199 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
2200
2201         * symfile.c (add_symbol_file_command): Remove trailing
2202          whitespaces and blank line after comment.
2203
2204 2013-09-05  Pedro Alves  <palves@redhat.com>
2205
2206         * tui/tui-regs.c (tui_register_format): Don't look at the
2207         register's name here.  Return string representing register
2208         value instead of storing it in the data element.
2209         (tui_get_register): Compare register string representations
2210         instead of register value states and contents.
2211
2212 2013-09-05  Pedro Alves  <palves@redhat.com>
2213
2214         PR tui/15933
2215         * tui/tui-regs.c (tui_show_registers): Show registers of the
2216         selected frame, not the current frame.
2217
2218 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
2219
2220         * MAINTAINERS (Write After Approval): Add myself to the list.
2221
2222 2013-09-04  Doug Evans  <dje@google.com>
2223
2224         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2225         (queue_and_load_dwo_tu): New function.
2226         (lookup_dwo_signatured_type): Set per_cu.tu_read.
2227         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2228         Make dependent_cu optional.
2229         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2230         and an older .gdb_index is in use, queue and load all its TUs too.
2231
2232 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2233
2234         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2235         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2236         variable search_flags.
2237         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2238         (OPF_RETURN_REALPATH): ... here.
2239         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2240         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2241         call.  Twice.
2242         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2243         openp call.
2244         * solib.c (solib_find): Likewise.  Four times.
2245         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2246         in the function comment and for the realpath_fptr variable.
2247         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2248         (find_and_open_source): Likewise.  Twice.
2249         * symfile.c (symfile_bfd_open): Likewise, also twice.
2250
2251 2013-09-04  Doug Evans  <dje@google.com>
2252
2253         * progspace.c (save_current_space_and_thread): Remove unnecessary
2254         call to save_current_inferior.
2255
2256 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
2257
2258         * sh64-tdep.c (sh64_do_register): Return after printing message
2259         about unavailable register contents.
2260
2261 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
2262             Pedro Alves  <palves@redhat.com>
2263
2264         * symfile.c (add_symbol_file_command): Error out on unknown
2265         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2266         options and collapse into single conditional branch.
2267
2268 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
2269
2270         * inf-child.c (inf_child_follow_fork): New parameter
2271         detach_fork.
2272         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2273         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2274         * inferior.h (detach_fork): Remove.
2275         * infrun.c (detach_fork): Adjust comment and make it
2276         static.
2277         (follow_fork): Pass detach_fork parameter to
2278         target_follow_fork.
2279         * linux-nat.c (linux_child_follow_fork): New parameter
2280         detach_fork.
2281         * target.c (target_follow_fork): New parameter detach_fork.
2282         Pass detach_fork as parameter and print its value.
2283         * target.h (struct target_ops) <to_follow_fork>: New int
2284         parameter.
2285         (target_follow_fork): New parameter detach_fork.
2286
2287 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
2288
2289         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2290         Replace sec->bfd by sec->the_bfd_section->owner.
2291
2292 2013-09-03  Yao Qi  <yao@codesourcery.com>
2293
2294         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
2295         from linux_has_shared_address_space.
2296         (linux_has_shared_address_space): Call linux_is_uclinux.
2297         * linux-tdep.h (linux_is_uclinux): Declare.
2298         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2299         linux_is_uclinux.
2300
2301 2013-09-03  Yao Qi  <yao@codesourcery.com>
2302
2303         * config/djgpp/fnchange.lst: Remove entry of
2304         i386-interix-nat.c and i386-interix-tdep.c.
2305         * configure.ac: Remove '*-*-interix*'.
2306         * configure: Re-generated.
2307         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2308         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2309         obsolete comments.
2310         * osabi.c (gdb_osabi_names): Remove "Interix".
2311
2312 2013-09-03  Yao Qi  <yao@codesourcery.com>
2313
2314         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2315
2316 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
2317
2318         * record.h (record_print_flag) <record_print_src_line,
2319         record_print_insn_range>: Rename into ...
2320         (record_print_flag) <record_print_src_line,
2321         record_print_insn_range>: ... this.  Update all users.
2322
2323 2013-09-02  Pierre Muller  <muller@sourceware.org>
2324
2325         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2326         error code.
2327
2328 2013-09-02  Pierre Muller  <muller@sourceware.org>
2329
2330         * windows-nat.c (windows_xfer_memory): Fix compilation failure
2331         by use of plongest function.
2332
2333 2013-09-02  Tristan Gingold  <gingold@adacore.com>
2334
2335         * NEWS: Add entry mentioning support for native Windows x64
2336         SEH data.
2337
2338         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2339         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2340         (struct amd64_windows_frame_cache): New struct.
2341         (amd64_windows_w2gdb_regnum): New global.
2342         (pc_in_range, amd64_windows_frame_decode_epilogue)
2343         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2344         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2345         (amd64_windows_frame_this_id): New functions.
2346         (amd64_windows_frame_unwind): New static global.
2347         (amd64_windows_skip_prologue): New function.
2348         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2349         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2350         with amd64_windows_skip_prologue.
2351
2352 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
2353
2354         GDB 7.6.1 released.
2355
2356 2013-08-30  Pedro Alves  <palves@redhat.com>
2357
2358         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2359         SRC_AND_LOC.
2360
2361 2013-08-30  Pedro Alves  <palves@redhat.com>
2362
2363         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2364         warning text.
2365
2366 2013-08-30  Pedro Alves  <palves@redhat.com>
2367
2368         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2369         Adjust arguments to print_stack_frame.
2370
2371 2013-08-30  Pedro Alves  <palves@redhat.com>
2372
2373         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2374
2375 2013-08-30  Pedro Alves  <palves@redhat.com>
2376
2377         * frame.h (show_and_print_stack_frame): Delete declaration.
2378
2379 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
2380
2381         PR python/15461
2382         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2383         (archpy_name): Check for valid architecture.
2384         (archpy_disassemble): Ditto.
2385
2386 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
2387
2388         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2389         instead of "long long" in call to ptrace64.
2390
2391 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
2392
2393         * mi/mi-interp.c (mi_command_loop): Change signature to match
2394         interp_command_loop_ftype.
2395         (mi1_command_loop): Remove.
2396         (mi2_command_loop): Remove.
2397         (mi3_command_loop): Remove.
2398         (mi_interpreter_resume): Remove setting of
2399         deprecated_command_loop_hook.
2400         (_initialize_mi_interp): Set mi_command_loop as the command loop
2401         callback.
2402
2403 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2404
2405         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2406         value_type.
2407
2408 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2409
2410         * value.c (allocate_value_contents): Make static.
2411         * value.h (allocate_value_contents): Remove prototype.
2412
2413 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2414
2415         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2416         of assembling value via allocate_value_lazy and attribute setter.
2417         * findvar.c (default_read_var_value): Use value_at_lazy instead of
2418         assembling value via allocate_value_lazy and attribute setter.
2419         * valops.c (do_search_struct_field): Use value_at_lazy instead of
2420         assembling value via allocate_value_lazy and attribute setter.
2421
2422 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2423
2424         * value.c (value_from_contents_and_address): Replace allocate_value and
2425         memcpy with value_from_contents.
2426
2427 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2428
2429         * python/py-framefilter.c (py_print_frame): Remove usage of
2430         PyString_AsString.  Use python_string_to_host_string instead.
2431         Refactor function to work with a string as a new allocation
2432         instead of a pointer.
2433         (py_print_frame): Ditto.
2434         * python/lib/gdb/frames.py (return_list): Cain iterators together
2435         instead of adding them as a list.
2436         (_sort_list): Call return_list, and remove duplicate code.
2437         (execute_frame_filters): Convert iterator to a list with list().
2438         * python/lib/gdb/command/frame_filters.py
2439         (SetFrameFilterPriority._set_filter_priority): Convert priority
2440         attribute to an integer.
2441         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2442         wrapper function __next__.
2443         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2444         define as "str".
2445
2446 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2447
2448         PR python/15752
2449         * python/py-framefilter.c (apply_frame_filter): Check
2450         gdb_python_initialized.  Exit if the Python frame-filter code
2451         cannot be initialized.
2452
2453 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2454
2455         PR cli/15842
2456         * top.c (print_gdb_version): Remove erroneous newline after help
2457         text.
2458
2459 2013-08-29  Yao Qi  <yao@codesourcery.com>
2460
2461         * varobj.c (install_dynamic_child): Remove trailing space.
2462         Add one blank line after variable declaration.
2463
2464 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2465
2466         PR gdb/15415
2467         * corefile.c (get_exec_file): Use exec_filename.
2468         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
2469         * exec.c (exec_close): Free EXEC_FILENAME.
2470         (exec_file_attach): New variable canonical_pathname.  Use
2471         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
2472         EXEC_FILENAME.
2473         * exec.h (exec_filename): New.
2474         * inferior.c (print_inferior, inferior_command): Use
2475         PSPACE_EXEC_FILENAME.
2476         * mi/mi-main.c (print_one_inferior): Likewise.
2477         * progspace.c (clone_program_space, print_program_space): Likewise.
2478         * progspace.h (struct program_space): New field pspace_exec_filename.
2479         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
2480         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2481
2482 2013-08-28  Will Newton  <will.newton@linaro.org>
2483
2484         * common/linux-ptrace.c: Include stdint.h unconditionally.
2485
2486 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2487
2488         Code cleanup.
2489         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2490
2491 2013-08-28  Yao Qi  <yao@codesourcery.com>
2492             Pedro Alves  <palves@redhat.com>
2493
2494         * event-top.c (gdb_setup_readline): Call stderr_fileopen
2495         instead of stdio_fileopen.
2496         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2497         .Call stderr_fileopen instead of stdio_fileopen.
2498         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2499         [__MINGW32__] (stderr_file_fputs): New function.
2500         (stderr_fileopen): New function.
2501         * ui-file.h (stderr_fileopen): Declare.
2502
2503 2013-08-27  Doug Evans  <dje@google.com>
2504
2505         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2506         (struct dwarf2_per_cu_data): Ditto.
2507         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
2508         (process_imported_unit_die): Ditto.
2509         (follow_die_sig_1): Simplify assert.
2510
2511 2013-08-27  Pedro Alves  <palves@redhat.com>
2512
2513         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2514         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
2515         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2516         windows_xfer_memory directly.
2517         (init_windows_ops): Don't install a deprecated_xfer_memory method.
2518
2519 2013-08-27  Pedro Alves  <palves@redhat.com>
2520
2521         * darwin-nat.c (darwin_xfer_memory): Delete.
2522         (_initialize_darwin_inferior): Don't install a
2523         deprecated_xfer_memory method.
2524
2525 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
2526             Yao Qi  <yao@codesourcery.com>
2527
2528         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2529         (parse_no_frames_option): Remove.
2530         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2531         (mi_cmd_stack_list_args): Adjust.
2532         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2533         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
2534         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2535         Caller update.
2536         (list_args_or_locals): New parameter 'skip_unavailable'.
2537         Handle it.
2538         * valprint.c (scalar_type_p): Rename to ...
2539         (val_print_scalar_type_p): ... this.  Make extern.
2540         (val_print, value_check_printable): Adjust.
2541         * valprint.h (val_print_scalar_type_p): Declare.
2542         * value.c (value_entirely_unavailable): New function.
2543         * value.h (value_entirely_unavailable): Declare.
2544
2545         * NEWS: Mention the new option "--skip-unavailable" to MI
2546         commands '-stack-list-locals', '-stack-list-arguments' and
2547         '-stack-list-variables'.
2548
2549 2013-08-27  Yao Qi  <yao@codesourcery.com>
2550
2551         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2552         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2553         options.
2554         * mi/mi-getopt.c (mi_getopt): Remove.
2555         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
2556         'error_on_unknown'.
2557         (mi_getopt): Call mi_getopt_1.
2558         (mi_getopt_silent): New.
2559         * mi/mi-getopt.h (mi_getopt_silent): Declare.
2560
2561 2013-08-26  Doug Evans  <dje@google.com>
2562
2563         PR symtab/15885
2564         * dwarf2read.c (dw2_dump): Print some minimal information indicating
2565         .gdb_index is in use.
2566         * symfile.c (reread_symbols): Reset objfile->sf.
2567
2568         * NEWS: Document "mt print objfiles" now takes optional regexp.
2569         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2570         regexp of objfiles to print.
2571         (_initialize_symmisc): Update doc string for "mt print objfiles".
2572
2573         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2574         missing debug info checks.
2575
2576 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
2577             Ulrich Weigand  <uweigand@de.ibm.com>
2578
2579         * xcoffread.c (arrange_linetable): Add fix to correctly handle
2580         line tables generated by XLC compiled binaries.
2581
2582 2013-08-23  Doug Evans  <dje@google.com>
2583
2584         * symmisc.c (dump_symtab): Delete prototype.
2585         (dump_msymbols, dump_objfile): Ditto.
2586         (maintenance_info_symtabs): Mark as dont_repeat.
2587         (_initialize_symmisc): Improve doc string for "mt info symtabs".
2588
2589         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2590         debugging printf to better location.
2591
2592 2013-08-23  Pedro Alves  <palves@redhat.com>
2593
2594         * target.c (target_read_live_memory): Change type of 'ret' local
2595         to LONGEST.
2596
2597 2013-08-23  Pedro Alves  <palves@redhat.com>
2598
2599         * remote.c (remote_write_bytes_aux, remote_write_bytes)
2600         (remote_read_bytes): Change return type to LONGEST, and adjust to
2601         return a target_xfer_error on error.
2602         (remote_xfer_memory): Delete.
2603         (remote_flash_write): Change type of 'ret' local to LONGEST.
2604         (remote_xfer_partial, remote_xfer_partial): Adjust.
2605         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2606
2607 2013-08-23  Pierre Muller  <muller@sourceware.org>
2608
2609         ARI fix: Push # directives to start of line.
2610         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2611
2612 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
2613
2614         PR gdb/15501
2615         * breakpoint.c (enable_command, disable_command): Iterate over
2616         all specified breakpoint locations.
2617
2618 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2619
2620         * common/linux-ptrace.c (linux_fork_to_function): Push #
2621         directives to the start of the line.
2622         (linux_check_ptrace_features): Fix warning message to use
2623         the "_" markup.
2624
2625 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2626
2627         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2628         nat/linux-waitpid.h.
2629         (linux-waitpid.o): New object file rule.
2630         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2631         (current_ptrace_options): Moved from linux-nat.c.
2632         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2633         parameters.
2634         (linux_fork_to_function): New function.
2635         (linux_grandchild_function): Likewise.
2636         (linux_child_function): Likewise.
2637         (linux_check_ptrace_features): New function, heavily
2638         based on linux-nat.c:linux_test_for_tracefork.
2639         (linux_enable_event_reporting): New function.
2640         (ptrace_supports_feature): Likewise.
2641         (linux_supports_tracefork): Likewise.
2642         (linux_supports_traceclone): Likewise.
2643         (linux_supports_tracevforkdone): Likewise.
2644         (linux_supports_tracesysgood): Likewise.
2645         * common/linux-ptrace.h (HAS_NOMMU): Moved from
2646         gdbserver/linux-low.c.
2647         (linux_enable_event_reporting): New declaration.
2648         (linux_supports_tracefork): Likewise.
2649         (linux_supports_traceclone): Likewise.
2650         (linux_supports_tracevforkdone): Likewise.
2651         (linux_supports_tracesysgood): Likewise.
2652         * config.in (PTRACE_TYPE_ARG4): Regenerate.
2653         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2654         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2655         * config/arm/linux.mh (NATDEPFILES): Likewise.
2656         * config/i386/linux.mh (NATDEPFILES): Likewise.
2657         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2658         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2659         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2660         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2661         * config/mips/linux.mh (NATDEPFILES): Likewise.
2662         * config/pa/linux.mh (NATDEPFILES): Likewise..
2663         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2664         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2665         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2666         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2667         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2668         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2669         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2670         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2671         ptrace's 4th argument's types.
2672         Check the type of PTRACE_TYPE_ARG4.
2673         * configure: Regenerate.
2674         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2675         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2676         (linux_supports_tracefork_flag): Remove.
2677         (linux_supports_tracesysgood_flag): Likewise.
2678         (linux_supports_tracevforkdone_flag): Likewise.
2679         (current_ptrace_options): Moved to
2680         common/linux-ptrace.c.
2681         (linux_tracefork_child): Remove.
2682         (my_waitpid): Remove.
2683         (linux_test_for_tracefork): Renamed to
2684         linux_check_ptrace_features and moved to common/linux-ptrace.c.
2685         (linux_test_for_tracesysgood): Remove.
2686         (linux_supports_tracesysgood): Remove.
2687         (linux_supports_tracefork): Remove.
2688         (linux_supports_tracevforkdone): Remove.
2689         (linux_enable_tracesysgood): Remove.
2690         (linux_enable_event_reporting): Remove.
2691         (linux_init_ptrace): New function.
2692         (linux_child_post_attach): Call linux_init_ptrace.
2693         (linux_child_post_startup_inferior): Call linux_init_ptrace.
2694         (linux_child_follow_fork): Call linux_supports_tracefork
2695         and linux_supports_tracevforkdone.
2696         (linux_child_insert_fork_catchpoint): Call
2697         linux_supports_tracefork.
2698         (linux_child_insert_vfork_catchpoint): Likewise.
2699         (linux_child_set_syscall_catchpoint): Call
2700         linux_supports_tracesysgood.
2701         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2702         * nat/linux-nat.h: New file.
2703         * nat/linux-waitpid.c: New file.
2704         * nat/linux-waitpid.h: New file.
2705
2706 2013-08-22  Samuel Bronson  <naesten@gmail.com>
2707
2708         ARM Linux support for `catch syscall'.
2709         * syscalls/arm-linux.py: New file.
2710         * syscalls/arm-linux.xml: Likewise.
2711         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2712         (arm_linux_init_abi): Register the new function and syscall xml file.
2713         * data-directory/Makefile.in: Install the new syscall xml file.
2714         * NEWS: Brag about this.
2715
2716 2013-08-22  Pedro Alves  <palves@redhat.com>
2717
2718         PR gdb/15871
2719         * corefile.c (target_xfer_memory_error): New function.
2720         (memory_error): Defer EIO to target_memory_error.
2721         (read_memory): Use target_xfer_partial, and handle finer-grained
2722         target xfer errors.
2723         * target.c (target_xfer_error_to_string): New function.
2724         (memory_xfer_partial_1): If memory is known to be
2725         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2726         (target_xfer_partial): Make extern.
2727         * target.h (enum target_xfer_error): New enum.
2728         (target_xfer_error_to_string): Declare function.
2729         (target_xfer_partial): Declare function.
2730         (struct target_ops) <xfer_partial>: Adjust describing comment.
2731
2732 2013-08-22  Alan Modra  <amodra@gmail.com>
2733
2734         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2735         * configure.tgt: Likewise as targets.
2736
2737 2013-08-20  Doug Evans  <dje@google.com>
2738
2739         * buildsym.c (subfile_stack): Move here from buildsym.h.
2740         (pending_macros): Ditto.
2741         (get_macro_table): New function.
2742         (buildsym_init): Initialize subfile_stack.
2743         * coffread.c (type_vector,type_vector_length): Moved here from
2744         buildsym.h.
2745         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2746         (coff_symtab_read): Use it.
2747         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2748         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2749         with call to get_macro_table.
2750         * stabsread.c (type_vector,type_vector_length): Moved here from
2751         buildsym.h.
2752         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2753         * buildsym.h (get_macro_table): Declare.
2754
2755 2013-08-20  Tom Tromey  <tromey@redhat.com>
2756
2757         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2758         Update.
2759         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
2760
2761 2013-08-20  Doug Evans  <dje@google.com>
2762
2763         * blockframe.c: Remove #include "psymtab.h".
2764         * cp-support.c: Ditto.
2765         * source.c: Ditto.
2766         * stack.c: Ditto.
2767
2768 2013-08-20  Tom Tromey  <tromey@redhat.com>
2769
2770         PR python/15816:
2771         * exceptions.h (return_mask): Now an enum.
2772         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2773         enum constants.
2774
2775 2013-08-20  Tom Tromey  <tromey@redhat.com>
2776
2777         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2778         get_objfile_arch.
2779         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2780         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2781         * jit.c (jit_object_close_impl): Update.
2782         * jv-lang.c (get_dynamics_objfile): Update.
2783         * linespec.c (add_minsym): Use get_dynamics_objfile.
2784         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2785         (allocate_objfile): Don't initialize 'gdbarch' field.
2786         (get_objfile_arch): Update.
2787         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2788         moved from...
2789         (struct objfile) <gdbarch>: ... here.  Remove.
2790         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2791         get_objfile_arch.
2792         * symfile.c (init_entry_point_info): Use get_objfile_arch.
2793
2794 2013-08-20  Alan Modra  <amodra@gmail.com>
2795
2796         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2797         for IBM long double nan and inf.
2798         (floatformat_is_negative, floatformat_classify,
2799         floatformat_mantissa): Similarly.
2800         (floatformat_ieee_single, floatformat_ieee_double,
2801         floatformat_ieee_quad, floatformat_arm_ext,
2802         floatformat_ia64_spill): Delete unused vars.
2803         (_initialize_doublest): Delete unused function.
2804         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2805         little-endian variants of floatformat_ibm_long_double.
2806
2807 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
2808
2809         * Makefile.in (SFILES): Remove common/target-common.c and
2810         add target/waitstatus.c.
2811         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2812         target/resume.h, target/wait.h and target/waitstatus.h.
2813         (COMMON_OBS): Remove target-common.o and add
2814         waitstatus.o.
2815         (target-common.o): Remove.
2816         (waitstatus.o): New target object file.
2817         * common/target-common.c: Move contents to
2818         target/waitstatus.c and remove.
2819         * common/target-common.h: Move contents to other files and
2820         remove.
2821         (enum resume_kind: Move to target/resume.h.
2822         (TARGET_WNOHANG): Move to target/wait.h.
2823         (enum target_waitkind): Move to target/waitstatus.h.
2824         (struct target_waitstatus): Likewise.
2825         * target.h: Do not include target-common.h and
2826         include target/resume.h, target/wait.h and
2827         target/waitstatus.h.
2828         * target/resume.h: New file.
2829         * target/wait.h: New file.
2830         * target/waitstatus.h: New file.
2831         * target/waitstatus.c: New file.
2832
2833 2013-08-19  Pedro Alves  <palves@redhat.com>
2834
2835         * linux-nat.c (linux_test_for_tracefork)
2836         (linux_test_for_tracesysgood, linux_child_follow_fork)
2837         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2838         (linux_nat_wait_1): Extend comment.
2839         (linux_async_pipe): Add comment.
2840
2841 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
2842
2843         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2844         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2845         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2846         Update to account for fact that PC is now a pseudo-register.
2847         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
2848         cases for RL78_PC_REGNUM.
2849
2850 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
2851
2852         PR cli/15841
2853         * top.c (quit_force): Skip writing history file
2854         if input is not from terminal.
2855
2856 2013-08-14  Tom Tromey  <tromey@redhat.com>
2857
2858         * remote.c (struct remote_state) <echo_nextthread, nextthread,
2859         resultthreadlist>: New fields.
2860         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2861         (remote_get_threadlist, remote_threadlist_iterator): Use
2862         new fields.  Remove static variables.
2863
2864 2013-08-14  Tom Tromey  <tromey@redhat.com>
2865
2866         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2867         remote_watch_data_address>: New fields.
2868         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2869         (process_stop_reply, remote_wait_as)
2870         (remote_check_watch_resources, remote_stopped_data_address): Update.
2871
2872 2013-08-14  Tom Tromey  <tromey@redhat.com>
2873
2874         * remote.c (struct remote_state) <async_client_callback,
2875         async_client_context>: New fields.
2876         (async_client_callback, async_client_context): Remove.
2877         (remote_async_serial_handler, remote_async): Update.
2878
2879 2013-08-14  Tom Tromey  <tromey@redhat.com>
2880
2881         * remote.c (sizeof_pkt): Remove.
2882         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2883
2884 2013-08-14  Tom Tromey  <tromey@redhat.com>
2885
2886         * remote.c (struct remote_state) <use_threadinfo_query,
2887         use_threadextra_query>: New fields.
2888         (remote_threads_info, remote_threads_extra_info)
2889         (remote_open_1): Update.
2890
2891 2013-08-14  Tom Tromey  <tromey@redhat.com>
2892
2893         * remote.c (struct remote_state) <finished_object,
2894         finished_annex, finished_offset>: New fields.
2895         (remote_read_qxfer): Use remote_state fields; remove static
2896         variables.
2897
2898 2013-08-14  Tom Tromey  <tromey@redhat.com>
2899
2900         * remote.c (struct remote_state) <last_sent_step>:
2901         New field.
2902         (last_sent_step): Remove.
2903         (remote_resume, remote_wait_as): Update.
2904
2905 2013-08-14  Tom Tromey  <tromey@redhat.com>
2906
2907         * remote.c (struct remote_state) <last_sent_signal>:
2908         New field.
2909         (last_sent_signal): Remove.
2910         (new_remote_state, remote_resume, remote_wait_as): Update.
2911
2912 2013-08-14  Tom Tromey  <tromey@redhat.com>
2913
2914         * remote.c (struct remote_state) <last_program_signals_packet>:
2915         New field.
2916         (last_program_signals_packet): Remove.
2917         (remote_program_signals, remote_open_1): Update.
2918
2919 2013-08-14  Tom Tromey  <tromey@redhat.com>
2920
2921         * remote.c (struct remote_state) <last_pass_packet>:
2922         New field.
2923         (last_pass_packet): Remove.
2924         (remote_pass_signals, remote_open_1): Update.
2925
2926 2013-08-14  Tom Tromey  <tromey@redhat.com>
2927
2928         * remote.c (struct remote_state) <remote_traceframe_number>:
2929         New field.
2930         (remote_traceframe_number): Remove.
2931         (new_remote_state, remote_open_1, set_remote_traceframe)
2932         (remote_trace_find): Update.
2933
2934 2013-08-14  Tom Tromey  <tromey@redhat.com>
2935
2936         * remote.c (struct remote_state) <general_thread, continue_thread>:
2937         New fields.
2938         (general_thread, continue_thread): Remove.
2939         (record_currthread, set_thread, set_general_process)
2940         (remote_open_1, extended_remote_attach_1, remote_wait_as)
2941         (extended_remote_mourn_1): Update.
2942
2943 2013-08-14  Tom Tromey  <tromey@redhat.com>
2944
2945         * remote.c (struct remote_state) <remote_desc>: New field.
2946         (remote_desc): Remove.
2947         (remote_threads_info, remote_threads_extra_info, remote_close)
2948         (send_interrupt_sequence, remote_start_remote, remote_open_1)
2949         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2950         (remote_hostio_send_command, remote_file_put, remote_file_get)
2951         (remote_file_delete, remote_can_async_p, remote_is_async_p)
2952         (remote_async, remote_new_objfile, set_range_stepping): Update.
2953
2954 2013-08-14  Tom Tromey  <tromey@redhat.com>
2955
2956         * remote.c (remote_state): Now a pointer.
2957         (get_remote_state_raw): Update.
2958         (new_remote_state): New function.
2959         (_initialize_remote): Use new_remote_state.
2960
2961 2013-08-14  Tom Tromey  <tromey@redhat.com>
2962
2963         * remote.c (remote_protocol_features): Now const.
2964
2965 2013-08-14  Tom Tromey  <tromey@redhat.com>
2966
2967         * remote.c (crc32_table, crc32): Remove.
2968         (remote_verify_memory): Use xcrc32.
2969
2970 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
2971
2972         * value.h (create_internalvar_type_lazy): Adjust prototype
2973         declaration.
2974
2975 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
2976
2977         * common/format.c (parse_format_string): Don't allow '#' flag for
2978         pointer arguments in format string.
2979
2980 2013-08-13  Pierre Muller  <muller@sourceware.org>
2981
2982         * utils.c (init_page_info): Only call tgetnum function
2983         if rl_get_screen_size did not return useful values.
2984
2985 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
2986
2987         PR breakpoints/15117
2988         * linespec.c (linespec_parse_basic): Check for convenience
2989         variable or history value while parsing.
2990
2991 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2992
2993         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2994         AVR.
2995         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
2996         different signals between the generic Linux kernel implementation
2997         and AVR's.
2998         (avr_linux_gdb_signal_from_target): Delete.
2999         (avr_linux_gdb_signal_to_target): Delete.
3000         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3001
3002 2013-08-09  Doug Evans  <dje@google.com>
3003
3004         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3005         entries.
3006
3007 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
3008
3009         * linux-tdep.c: Define enum with generic signal numbers.
3010         (linux_gdb_signal_from_target): New function.
3011         (linux_gdb_signal_to_target): Likewise.
3012         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3013         methods to the functions above.
3014         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3015         (linux_gdb_signal_to_target): Likewise.
3016         * alpha-linux-tdep.c: Define new enum with signals different
3017         from generic Linux kernel.
3018         (alpha_linux_gdb_signal_from_target): New function.
3019         (alpha_linux_gdb_signal_to_target): Likewise.
3020         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3021         with the functions mentioned above.
3022         * avr-tdep.c: Define enum with differences between Linux kernel
3023         and AVR signals.
3024         (avr_linux_gdb_signal_from_target): New function.
3025         (avr_linux_gdb_signal_to_target): Likewise.
3026         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3027         the functions mentioned above.
3028         * sparc-linux-tdep.c: Define enum with differences between SPARC
3029         and generic Linux kernel signal numbers.
3030         (sparc32_linux_gdb_signal_from_target): New function.
3031         (sparc32_linux_gdb_signal_to_target): Likewise.
3032         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3033         to the functions defined above.
3034         * xtensa-linux-tdep.c: Define enum with differences between
3035         Xtensa and Linux kernel generic signals.
3036         (xtensa_linux_gdb_signal_from_target): New function.
3037         (xtensa_linux_gdb_signal_to_target): Likewise.
3038         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3039         to the functions defined above.
3040         * mips-linux-tdep.c: Define enum with differences between
3041         signals in MIPS and Linux kernel generic ones.
3042         (mips_gdb_signal_to_target): New function.
3043         (mips_gdb_signal_from_target): Redefine to use new enum, handle
3044         only different signals from the Linux kernel generic.
3045         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3046         the functions defined above.
3047         * mips-linux-tdep.h (enum mips_signals): Remove.
3048
3049 2013-08-09  Pedro Alves  <palves@redhat.com>
3050
3051         * avr-tdep.c (XMALLOC): Delete macro.
3052         * cli/cli-dump.c (XMALLOC): Delete macro.
3053
3054 2013-08-09  Pedro Alves  <palves@redhat.com>
3055
3056         * cli/cli-dump.c: Don't include cli/cli-dump.h.
3057         (scan_expression_with_cleanup, scan_filename_with_cleanup)
3058         (fopen_with_cleanup, add_dump_command): Make static.
3059         * cli/cli-dump.h: Delete file.
3060         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3061         cli/cli-dump.h.
3062
3063 2013-08-09  Pedro Alves  <palves@redhat.com>
3064
3065         * tracepoint.c (tfile_start): Show tilde-expanded filename in
3066         error message.
3067
3068 2013-08-09  Pedro Alves  <palves@redhat.com>
3069
3070         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3071         error message.
3072
3073 2013-08-09  Pedro Alves  <palves@redhat.com>
3074
3075         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3076         (gcore_command): Use tilde_expand here, and when showing the
3077         filename to the user, show the expanded version.
3078
3079 2013-08-09  Yao Qi  <yao@codesourcery.com>
3080
3081         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3082         'entryval' is set.
3083
3084 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
3085
3086         * gcore.c (create_gcore_bfd): Use tilde_expand.
3087
3088 2013-08-08  Yao Qi  <yao@codesourcery.com>
3089
3090         * frame.h (read_frame_local): Declare.
3091         * mi/mi-cmd-stack.c (list_args_or_locals): Call
3092         read_frame_local.
3093         * stack.c (read_frame_local): New.
3094
3095 2013-08-08  Yao Qi  <yao@codesourcery.com>
3096
3097         * mi/mi-cmd-stack.c: Update comments to function
3098         list_args_or_locals.
3099
3100 2013-08-07  Tom Tromey  <tromey@redhat.com>
3101
3102         PR symtab/15028:
3103         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3104         (process_psymtab_comp_unit_reader): Use it.
3105         (process_psymtab_comp_unit): Update.  Add "pretend_language"
3106         argument.
3107         (dwarf2_build_psymtabs_hard): Update.
3108         (scan_partial_symbols): Pass CU's language to
3109         process_psymtab_comp_unit.
3110
3111 2013-08-07  Tom Tromey  <tromey@redhat.com>
3112
3113         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3114         (dwarf2_gdb_index_functions): Update.
3115         * psymtab.c (find_symbol_file_from_partial): Remove.
3116         (psym_functions): Update.
3117         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3118         Remove.
3119
3120 2013-08-07  Tom Tromey  <tromey@redhat.com>
3121
3122         * symfile.c (set_initial_language): Look up "main" symbol
3123         and use its language.
3124         * symtab.c (find_main_filename): Remove.
3125         * symtab.h (find_main_filename): Remove.
3126
3127 2013-08-07  Tom Tromey  <tromey@redhat.com>
3128
3129         * dwarf2read.c (recursively_compute_inclusions): Add
3130         "immediate_parent" argument.  Set symtab's "user" field
3131         if not set.
3132         (compute_symtab_includes): Update.
3133
3134 2013-08-07  Tom Tromey  <tromey@redhat.com>
3135
3136         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3137         when adding label symbols.
3138
3139 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
3140             Ulrich Weigand  <uweigand@de.ibm.com>
3141
3142         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3143         * configure.host (powerpc64-*-aix*): Likewise.
3144
3145 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
3146             Ulrich Weigand  <uweigand@de.ibm.com>
3147
3148         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3149         is defined.
3150         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3151         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3152         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3153         * configure.ac: Check for ptrace64.
3154         * configure, config.in: Regenerate.
3155
3156 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
3157             Ulrich Weigand  <uweigand@de.ibm.com>
3158
3159         * aixthread.c: Call ptrace64 instead of ptracex if defined.
3160         Call ptrace64 instead of ptrace if defined.
3161         Add macro addr_ptr to take care of ptrace address argument.
3162         (pdc_read_regs): Likewise.
3163         (pdc_write_regs): Likewise.
3164         (aix_thread_resume): Likewise.
3165         (fetch_regs_kernel_thread): Likewise.
3166         (store_regs_kernel_thread): Likewise.
3167
3168 2013-08-07  Anton Blanchard  <anton@samba.org>
3169
3170         * MAINTAINERS: Add myself to Write After Approval.
3171
3172 2013-08-05  Tom Tromey  <tromey@redhat.com>
3173
3174         * aix-thread.c (_initialize_aix_thread): Use
3175         complete_target_initialization.
3176         * bsd-uthread.c (_initialize_bsd_uthread): Use
3177         complete_target_initialization.
3178         * dec-thread.c (_initialize_dec_thread): Use
3179         complete_target_initialization.
3180         * ravenscar-thread.c (_initialize_ravenscar): Use
3181         complete_target_initialization.
3182         * sol-thread.c (_initialize_sol_thread): Use
3183         complete_target_initialization.
3184         * spu-multiarch.c (_initialize_spu_multiarch): Use
3185         complete_target_initialization.
3186
3187 2013-08-05  Tom Tromey  <tromey@redhat.com>
3188
3189         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3190         * ada-lang.c (ada_lookup_simple_minsym): Return
3191         bound_minimal_symbol.
3192         * ada-lang.h (ada_lookup_simple_minsym): Update.
3193         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3194         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3195         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3196         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3197         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3198         * minsyms.c (msymbol_objfile): Remove.
3199         (lookup_minimal_symbol_internal): New function, from
3200         lookup_minimal_symbol.
3201         (lookup_minimal_symbol): Rewrite using
3202         lookup_minimal_symbol_internal.
3203         (lookup_bound_minimal_symbol): New function.
3204         * minsyms.h (msymbol_objfile): Remove.
3205         (lookup_bound_minimal_symbol): Declare.
3206         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3207         * parse.c (write_exp_msymbol): Change parameter to a
3208         bound_minimal_symbol.
3209         (write_dollar_variable): Use lookup_bound_minimal_symbol.
3210         * parser-defs.h (write_exp_msymbol): Update.
3211         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3212         * symfile.c (simple_read_overlay_table): Use
3213         lookup_bound_minimal_symbol.
3214         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3215         (search_symbols): Likewise.
3216         (print_msymbol_info): Take a bound_minimal_symbol argument.
3217         (symtab_symbol_info, rbreak_command): Update.
3218         * symtab.h (struct symbol_search) <msymbol>: Change type
3219         to bound_minimal_symbol.
3220         * valops.c (find_function_in_inferior): Use
3221         lookup_bound_minimal_symbol.
3222         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3223
3224 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3225
3226         Code cleanup.
3227         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3228         to ...
3229         (async_cleanup_sigint_signal_handler): ... this.
3230         (initialize_sigint_signal_handler): Remove declaration.
3231         (handle_remote_sigint): Rename the declaration to ...
3232         (async_handle_remote_sigint): ... this.
3233         (handle_remote_sigint_twice): Rename the declaration to ...
3234         (async_handle_remote_sigint_twice): ... this.
3235         (async_remote_interrupt, async_remote_interrupt_twice)
3236         (remote_interrupt): Remove the declarations.
3237         (remote_interrupt_twice): Rename the declaration ...
3238         (sync_remote_interrupt_twice): ... this.
3239         (sigint_remote_twice_token): Rename the variable to ...
3240         (async_sigint_remote_twice_token): ... this.
3241         (sigint_remote_token): Rename the variable to ...
3242         (async_sigint_remote_token): ... this.
3243         (initialize_sigint_signal_handler): Rename the function to ...
3244         (async_initialize_sigint_signal_handler): ... this.  Update the name
3245         inside.
3246         (handle_remote_sigint): Rename the function to ...
3247         (async_handle_remote_sigint): ... this.  Update the names inside.
3248         (handle_remote_sigint_twice): Rename the function to ...
3249         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
3250         (cleanup_sigint_signal_handler): Rename the function to ...
3251         (async_cleanup_sigint_signal_handler): ... this.
3252         (remote_interrupt): Rename the function to ...
3253         (sync_remote_interrupt): this.  Update the names inside.
3254         (remote_interrupt_twice): Rename the function to ...
3255         (sync_remote_interrupt_twice): this.  Update the names inside.
3256         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3257         (_initialize_remote): Update the names inside.
3258
3259 2013-08-02  Tom Tromey  <tromey@redhat.com>
3260
3261         PR symtab/15719:
3262         * breakpoint.c (update_watchpoint, watchpoint_check)
3263         (watch_command_1): Update.
3264         * eval.c (fetch_subexp_value): Add "preserve_errors"
3265         parameter.
3266         * ppc-linux-nat.c (check_condition): Update.
3267         * value.h (fetch_subexp_value): Update.
3268
3269 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
3270
3271         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3272         add_file_handler.
3273
3274 2013-08-01  Doug Evans  <dje@google.com>
3275
3276         PR symtab/15691
3277         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3278         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3279         Add assert of sig_entry->dwo_unit == NULL.
3280         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3281         had already been read.
3282         (read_signatured_type): Set per_cu.tu_read.
3283
3284         PR symtab/15695
3285         * valops.c (value_struct_elt): Add missing call to check_typedef.
3286         (value_find_oload_method_list): Ditto.
3287
3288         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3289         effectively, struct symbol_search **.
3290         (make_cleanup_free_search_symbols): Change arg to struct
3291         symbol_search **.  All callers updated.
3292         (compare_search_syms): Compare symtab file name and block as well.
3293         (search_symbols_equal): New function.
3294         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3295         New args new_head, new_tail.  Result is now void.  Remove dups after
3296         sorting the symbols.
3297         (search_symbols): Sort all found symbols once, after all have been
3298         found, and remove duplicates.  Simplify cleanup tracking of result.
3299         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3300
3301         Further workarounds for binutils/15021.
3302         * dwarf2read.c (recursively_compute_inclusions): Change type of result
3303         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
3304         Watch for duplicate symtabs coming from type units.
3305         (compute_symtab_includes): Update call to
3306         recursively_compute_inclusions. Build vector of included symtabs
3307         instead of per_cus.
3308         * symtab.h (symtab_ptr): New typedef.
3309         (DEF_VEC_P (symtab_ptr)): New VEC type.
3310         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
3311         instead.
3312
3313 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
3314
3315         * cli/cli-script.c (script_from_file): Remove use of
3316         error_pre_print.
3317         * main.c (captured_main): Remove use of error_pre_print and
3318         quit_pre_print.
3319         * utils.c (error_pre_print, quit_pre_print): Remove.
3320         * utils.h (error_pre_print, quit_pre_print): Likewise.
3321
3322 2013-08-01  Yao Qi  <yao@codesourcery.com>
3323
3324         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3325         with mi_getopt.
3326         (mi_cmd_stack_list_variables): Likewise.
3327
3328 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3329
3330         * exceptions.c (deprecated_throw_reason): Remove.
3331         * exceptions.h (deprecated_throw_reason): Remove.
3332
3333 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3334
3335         * remote-mips.c (mips_error): Replace use of
3336         deprecated_throw_reason with throw_verror.  Use the error message
3337         passed to mips_error as the error message for throw_verror.
3338
3339 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3340
3341         * monitor.c (monitor_interrupt_query): Replace use of
3342         deprecated_throw_reason with quit.
3343         * nto-procfs.c (interrupt_query): Likewise.
3344         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3345         * remote-mips.c (mips_kill): Likewise.
3346         * remote.c (interrupt_query): Likewise.
3347
3348 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3349
3350         * utils.c (internal_verror): Replace use of deprecated_throw_reason
3351         with call to fatal.
3352
3353 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
3354             Yao Qi  <yao@codesourcery.com>
3355
3356         * tracepoint.c (trace_dump_command): Select the current frame.
3357
3358 2013-07-30  Doug Evans  <dje@google.com>
3359
3360         * dwarf2read.c (process_queue): Add type signature to debug output.
3361
3362 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3363
3364         * value.c (value_fetch_lazy): Mark optimized out values as such
3365         rather than raising an error.
3366
3367 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3368
3369         * value.c (value_fetch_lazy): Ensure parent value is not lazy
3370         before checking which bits of the parent, not the child, value are
3371         valid.
3372
3373 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
3374
3375         PR gdb/15715
3376         * top.c: Include "filenames.h".
3377         (set_history_filename): New function.
3378         (init_main): Install it as set hook of the "set history filename"
3379         command.
3380
3381 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3382
3383         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3384         attribute parameter.
3385         (dwarf2_const_value_data): Constify struct attribute parameter.
3386         (dwarf2_const_value): Constify struct attribute parameter.
3387         (dwarf2_const_value_attr): Constify struct attribute parameter.
3388         (lookup_die_type): Constify struct attribute parameter.
3389         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3390         (follow_die_ref_or_sig): Constify struct attribute parameter.
3391         (follow_die_ref): Constify struct attribute parameter.
3392         (follow_die_sig): Constify struct attribute parameter.
3393         (get_DW_AT_signature_type): Constify struct attribute parameter.
3394         (get_type_unit_group): Constify struct attribute parameter.
3395         (fill_in_loclist_baton): Constify struct attribute parameter.
3396         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3397         (type_unit_group): Constify struct attribute parameter.
3398
3399 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3400
3401         * dwarf2read.c (attr_form_is_block): Make argument const.
3402         (attr_form_is_section_offset): Make argument const.
3403         (attr_form_is_constant): Make argument const.
3404         (attr_form_is_ref): Make argument const.
3405
3406 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3407
3408         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3409         All uses updated.
3410         (attr_form_is_ref): Moved below attr_form_is_constant.
3411
3412 2013-07-29  Doug Evans  <dje@google.com>
3413
3414         * main.c (captured_command_loop): Tweak comment.
3415
3416         * target.c (target_async_permitted_1): Fix comment.
3417
3418         * symtab.c (iterate_over_some_symtabs): Add comment.
3419
3420         * symtab.c (iterate_over_some_symtabs): Fix indentation.
3421
3422 2013-07-27  Yao Qi  <yao@codesourcery.com>
3423
3424         * NEWS: Mention that GDBserver now supports hardware
3425         watchpoints on the MIPS GNU/Linux target.
3426
3427 2013-07-27  Yao Qi  <yao@codesourcery.com>
3428
3429         * Makefile.in (HFILES_NO_SRCDIR): Add
3430         common/mips-linux-watch.h.
3431         (mips-linux-watch.o): New rule.
3432         * common/mips-linux-watch.c: New.
3433         * common/mips-linux-watch.h: New.
3434         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3435         * mips-linux-nat.c: Include mips-linux-watch.h.
3436         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3437         to common/mips-linux-watch.h.
3438         (MAX_DEBUG_REGISTER): Likewise.
3439         (enum pt_watch_style): Likewise.
3440         (struct mips32_watch_regs): Likewise.
3441         (struct mips64_watch_regs): Likewise.
3442         (struct pt_watch_regs): Likewise.
3443         (struct mips_watchpoint): Likewise.
3444         (mips_linux_watch_get_irw_mask): Move to
3445         common/mips-linux-watch.c.
3446         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3447         (mips_linux_watch_get_watchlo): Likewise.
3448         (mips_linux_watch_set_watchlo): Likewise.
3449         (mips_linux_watch_get_watchhi): Likewise.
3450         (mips_linux_watch_set_watchhi): Likewise.
3451         (mips_linux_read_watch_registers): Likewise.
3452         (mips_linux_watch_type_to_irw): Likewise.
3453         (mips_linux_stopped_data_address, fill_mask): Likewise.
3454         (mips_linux_watch_try_one_watch): Likewise.
3455         (mips_linux_watch_populate_regs): Likewise.
3456
3457 2013-07-27  Yao Qi  <yao@codesourcery.com>
3458
3459         * mips-linux-nat.c (get_irw_mask): Rename to ...
3460         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
3461         'set' to 'n'.  Update function comment.  All callers changed.
3462         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
3463         function comment.  All callers changed.
3464         (get_num_valid): Rename to ...
3465         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
3466         'set' to 'n'.  Update function comment.  All callers changed.
3467         (get_watchlo): Rename to ...
3468         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
3469         'set' to 'n'.  Update function comment.  All callers changed.
3470         (set_watchlo): Rename to ...
3471         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
3472         'set' to 'n'.  Update function comment.  All callers changed.
3473         (get_watchhi): Rename to ...
3474         (mips_linux_watch_get_watchhi): ... this.  Update function
3475         comment.  All callers changed.
3476         (set_watchhi): Rename to ...
3477         (mips_linux_watch_set_watchhi): ... this.  Update function
3478         comment.  All callers changed.
3479         (mips_linux_read_watch_registers): Update function comment.
3480         Add new parameters 'lwpid', 'watch_readback', and
3481         'watch_readback_valid'.  Update.
3482         (type_to_irw): Rename to ...
3483         (mips_linux_watch_type_to_irw): ... this.  Update function
3484         comment.  All callers changed.
3485         (fill_mask): Update function comment.
3486         (try_one_watch): Rename to ...
3487         (mips_linux_watch_try_one_watch): ... this.  Change the type
3488         of parameter 'irw' from 'unsigned' to 'uint32_t'.
3489         (populate_regs_from_watches): Rename to ...
3490         (mips_linux_watch_populate_regs): ... this.  Add parameter
3491         'current_watches'.  All callers changed.
3492
3493 2013-07-27  Yao Qi  <yao@codesourcery.com>
3494
3495         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3496         the code.
3497         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3498         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3499         (struct pt_watch_regs): Likewise.
3500         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3501         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3502         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3503         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3504         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3505
3506 2013-07-27  Yao Qi  <yao@codesourcery.com>
3507
3508         * breakpoint.h: Include break-common.h.
3509         (enum target_hw_bp_type): Move to ...
3510         * common/break-common.h: ... here.  New.
3511
3512 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
3513
3514         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3515         process group regardless of having tty on stdin.
3516
3517 2013-07-25  Doug Evans  <dje@google.com>
3518
3519         * linux-fork.h (detach_fork): Delete.
3520
3521 2013-07-25  Tom Tromey  <tromey@redhat.com>
3522
3523         PR remote/15256, PR remote/15266:
3524         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3525         * monitor.c (monitor_detach): Use unpush_target.
3526         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3527         * remote-mips.c (mips_detach): Use unpush_target.  Don't
3528         call mips_close.
3529         * remote-sim.c (gdbsim_detach): Use unpush_target.
3530         * target.c (pop_target): Remove.
3531         (pop_all_targets_above): Don't call target_close.
3532         (target_close): Assert that the target is unpushed.
3533         * target.h (pop_target): Don't declare.
3534         * tracepoint.c (tfile_open): Use unpush_target.
3535
3536 2013-07-25  Tom Tromey  <tromey@redhat.com>
3537
3538         * linux-thread-db.c (init_thread_db_ops): Call
3539         complete_target_initialization.
3540         (_initialize_thread_db): Don't call add_target.
3541         * target.c (complete_target_initialization): New function.
3542         (add_target_with_completer): Call it.
3543         * target.h (complete_target_initialization): Declare.
3544
3545 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3546
3547         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3548         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3549         (HPPANBSD_SIZEOF_GREGS): New define.
3550         (hppaobsd_supply_gregset): Handle additional registers.
3551         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3552         we provide more registers now.
3553         (hppabsd_supply_gregset): Supply additional registers.
3554         (hppabsd_collect_gregset): Collect additional registers.
3555
3556 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3557
3558         * hppabsd-tdep.c: Include "dwarf2-frame.h".
3559         (hppabsd_dwarf2_frame_init_reg): New function.
3560         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3561
3562 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3563
3564         * mi/mi-main.c (output_register): Make MI 'r' format use standard
3565         'z' format code.  Remove error for optimized out values, standard
3566         code will handle these fine.
3567
3568 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3569
3570         * NEWS: Mention new 'z' formatter.
3571         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3572         (_initialize_printcmd): Mention 'z' formatter in help text of the
3573         'x' command.
3574
3575 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
3576
3577         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3578         formatting.
3579
3580 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
3581
3582         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3583         interface can evaluate arguments.  Fallback to the old mode if it
3584         cannot.
3585         (create_exception_master_breakpoint): Likewise.
3586         * elfread.c (elf_can_evaluate_probe_arguments): New function.
3587         (struct sym_probe_fns elf_probe_fns): Export function above to the
3588         probe interface.
3589         * probe.c (can_evaluate_probe_arguments): New function.
3590         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3591         function pointer.
3592         (can_evaluate_probe_arguments): New function prototype.
3593         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3594         probe interface can evaluate arguments.  Fallback to the old mode
3595         if it cannot.
3596         * stap-probe.c (stap_get_probe_argument_count): Check if probe
3597         interface can evaluate arguments.  Warning the user if it cannot.
3598         (stap_can_evaluate_probe_arguments): New function.
3599         (struct probe_ops stap_probe_ops): Export function above to the
3600         probe interface.
3601         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3602         New function pointer.
3603
3604 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
3605
3606         * Makefile.in (SFILES): Add common/target-common.c.
3607         Add common/target-common.h to headers.
3608         (COMMON_OBS): Add target-common.o.
3609         (target-common.o): New target.
3610         * linux-nat.h (resume_kind): Move to common/target-common.h.
3611         * target.c (target_waitstatus_to_string): Move to
3612         common/target-common.c.
3613         * target.h: Include target-common.h.
3614         (target_waitkind): Move to common/target-common.h.
3615         (target_waitstatus): Likewise.
3616         (TARGET_WNOHANG): Likewise.
3617         * common/target-common.c: New file.
3618         * common/target-common.h: New file.
3619
3620 2013-07-24  Doug Evans  <dje@google.com>
3621
3622         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3623         a warning.
3624
3625 2013-07-23  Yao Qi  <yao@codesourcery.com>
3626
3627         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3628         parameter 'gdbarch'.
3629         (i386_stack_tramp_frame_sniffer): Caller update.
3630         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3631         parameter 'gdbarch' and 'target'.
3632         (i386_linux_core_read_description): Caller update.
3633         * amd64-linux-tdep.c (amd64_linux_core_read_description):
3634         Likewise.
3635         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3636         declaration.
3637
3638 2013-07-23  Tom Tromey  <tromey@redhat.com>
3639
3640         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3641         2013-07-22.
3642
3643 2013-07-22  Doug Evans  <dje@google.com>
3644
3645         * exec.h (remove_target_sections): Delete arg abfd.
3646         * exec.c (exec_close): Update call to remove_target_sections.
3647         (remove_target_sections): Delete arg abfd.
3648         * solib.c (update_solib_list): Ditto.
3649         (reload_shared_libraries_1): Ditto.
3650         (clear_solib): Ditto, and unconditionally call remove_target_sections.
3651         * target.h (struct target_section): Rename key to owner.
3652         All uses updated.
3653
3654 2013-07-22  Tom Tromey  <tromey@redhat.com>
3655
3656         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3657
3658 2013-07-22  Tom Tromey  <tromey@redhat.com>
3659
3660         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3661         Simplify cleanup handling.
3662
3663 2013-07-22  Tom Tromey  <tromey@redhat.com>
3664
3665         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3666         on all return paths.
3667
3668 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3669
3670         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3671         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3672         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3673
3674 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
3675
3676         * top.c (print_gdb_version): Add help, apropos description and
3677         url to online documentation.
3678
3679 2013-07-19  Hui Zhu  <hui@codesourcery.com>
3680
3681         PR gdb/15692
3682         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3683
3684 2013-07-19  Yao Qi  <yao@codesourcery.com>
3685
3686         * target.c (update_current_target): Change the default action
3687         of 'to_traceframe_info' from tcomplain to return_zero.
3688         * target.h (struct target_ops) <to_traceframe_info>: Add more
3689         comments.
3690         * valops.c (read_value_memory): Call
3691         traceframe_available_memory unconditionally.
3692
3693 2013-07-18  Yao Qi  <yao@codesourcery.com>
3694
3695         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3696         if the name is prefixed by "__imp_" or "_imp_", look for minimal
3697         symbol without prefix.  If found, set its type to
3698         'mst_solib_trampoline'.
3699
3700 2013-07-17  Doug Evans  <dje@google.com>
3701
3702         * NEWS: Mention "set print raw frame-arguments".
3703         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3704         * stack.c (print_raw_frame_arguments): New static global.
3705         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3706         (_initialize_stack): New command "set/show print raw frame-arguments".
3707         * valprint.c (setprintrawlist, showprintrawlist): New globals.
3708         (set_print_raw, show_print_raw): New functions.
3709         (_initialize_valprint): New prefix command "set/show print raw".
3710         * valprint.h (value_print_options): Improve comments.
3711
3712         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3713         of all *list variables.
3714
3715         * gdbcmd.h (togglelist): Delete.
3716         * cli/cli-cmds.c (togglelist): Delete.
3717         (init_cmd_lists): Update.
3718         * cli/cli-cmds.h (togglelist): Delete.
3719
3720 2013-07-17  Tom Tromey  <tromey@redhat.com>
3721
3722         * dwarf2read.c (dwarf2_per_objfile_free): Clear
3723         dwarf2_per_objfile.
3724
3725 2013-07-16  Doug Evans  <dje@google.com>
3726
3727         * nto-tdep.c (nto_relocate_section_addresses): Update,
3728         target_section.bfd deleted.
3729         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3730         * s390-tdep.c (s390_load): Ditto.
3731         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3732
3733 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
3734
3735         * common/format.c (parse_format_string): Add checks for NULL
3736         character before calling strchr.
3737
3738 2013-07-16  Doug Evans  <dje@google.com>
3739
3740         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3741         temp_pathname argument.
3742         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3743         when opening the file fails.
3744
3745         * target.h (struct target_section): Delete member bfd.
3746         All users updated to use the_bfd_section->owner instead.
3747         * exec.c (add_to_section_table): Assert bfd is expected value.
3748         Remove initialization of target_section.bfd.
3749         (remove_target_sections): Update.
3750         (section_table_available_memory): Update.
3751         (section_table_xfer_memory_partial): Update.
3752         (print_section_info): Update.
3753         (exec_set_section_address): Update.
3754         * record-full.c (record_full_core_xfer_partial): Update.
3755         * solib-svr4.c (svr4_relocate_section_addresses): Update.
3756         * solib-target.c (solib_target_relocate_section_addresses): Update.
3757         * symfile.c (build_section_addr_info_from_section_table): Update.
3758         * target.c (memory_xfer_live_readonly_partial): Update.
3759         (memory_xfer_partial_1): Update.
3760
3761 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3762
3763         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3764         now available for embedded (BookE) and server (BookS) processors,
3765         correct mentions of 'booke' and adjust comments accordingly in order to
3766         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3767         (have_ptrace_booke_interface): Rename function and variable
3768         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3769         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3770         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3771         'hwdebug_point_cmp'. Update all uses.
3772         (booke_find_thread_points_by_tid): Rename function
3773         'booke_find_thread_points_by_tid' to
3774         'hwdebug_find_thread_points_by_tid'. Update all uses.
3775         (booke_insert_point): Rename function 'booke_insert_point' to
3776         'hwdebug_insert_point'. Update all uses.
3777         (booke_remove_point): Rename function 'booke_remove_point' to
3778         'hwdebug_remove_point'. Update all uses.
3779
3780 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
3781
3782         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3783         numbers with enum values.
3784
3785 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
3786
3787         PR threads/13217
3788         * thread.c (thread_apply_all_command): Check for valid threads
3789         and thread count.
3790         (thread_array_cleanup): New struct.
3791         (set_thread_refcount): New function.
3792
3793 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
3794
3795         * infcmd.c (default_print_one_register_info): Reuse function
3796         print_hex_chars.
3797
3798 2013-07-10  Tom Tromey  <tromey@redhat.com>
3799
3800         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3801         (ada-exp.o): New target.
3802
3803 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3804
3805         * mt-tdep.c (mt_registers_info): Call
3806         get_no_prettyformat_print_options instead of
3807         get_raw_print_options (regression by last patch from Doug
3808         Evans).
3809
3810 2013-07-09  Pedro Alves  <palves@redhat.com>
3811
3812         Checked in by Joel Brobecker  <brobecker@adacore.com>.
3813         * ada-lang.c (coerce_unspec_val_to_type): Use
3814         value_optimized_out_const.
3815         * value.c (value_optimized_out_const): New function.
3816         * value.h (value_optimized_out_const): New declaration.
3817
3818 2013-07-09  Doug Evans  <dje@google.com>
3819
3820         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3821         Enum values rename as well.  All uses updated.
3822         * valprint.h (value_print_options): Rename member pretty to
3823         pretty format.  Rename member prettyprint_arrays to
3824         prettyformat_arrays.  Rename member prettyprint_structs to
3825         prettyformat_structs.  All uses updated.
3826         (get_no_prettyformat_print_options): Renamed from
3827         get_raw_print_options.
3828         * valprint.c (get_no_prettyformat_print_options): Renamed from
3829         get_raw_print_options.  All callers updated.
3830         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3831         All callers updated.
3832         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3833         All callers updated.
3834         (_initialize_valprint): Improve help text for "set print pretty" and
3835         "set print arrays".
3836
3837 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
3838
3839         * value.c (value_bits_valid): Revert previous change, and change
3840         by Pedro on 2013-07-04, due to regressions in
3841         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3842
3843 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
3844             Pedro Alves  <palves@redhat.com>
3845
3846         * value.c (value_bits_valid): If the value is not lval_computed
3847         or has no check validity handler then the answer is the
3848         optimized_out flag, otherwise defer to the handler.
3849
3850 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
3851
3852         * top.c (print_gdb_configuration): Explain in output of
3853         --configuration what does "relocatable" mean.
3854
3855         * main.c (print_gdb_help): Regroup options in the --help text.
3856         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3857         the relevant discussions.
3858
3859 2013-07-06  Yao Qi  <yao@codesourcery.com>
3860
3861         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3862         Remove parameter 'lsal'.
3863         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3864         to inner block.  Caller update.
3865         (base_breakpoint_create_breakpoints_sal): Update.
3866         (bkpt_create_breakpoints_sal): Likewise.
3867         (tracepoint_create_breakpoints_sal): Likewise.
3868         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3869         element 0 of vector 'canonical->sals'.
3870
3871 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
3872
3873         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3874         register number instead of the pseudo register one.
3875         (rs6000_dwarf2_reg_to_regnum): Likewise.
3876
3877 2013-07-04  Pedro Alves  <palves@redhat.com>
3878
3879         * findvar.c (value_of_register): Use allocate_optimized_out_value
3880         if the register has been optimized out, instead of
3881         set_value_optimized_out.
3882         * frame-unwind.c (frame_unwind_got_optimized): Use
3883         allocate_optimized_out_value.
3884
3885 2013-07-04  Pedro Alves  <palves@redhat.com>
3886
3887         * value.c (value_bits_valid): If the value is not lval_computed,
3888         or doesn't have a check_validity hook, assume the value is entirely
3889         valid.
3890
3891 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3892
3893         * stack.c (read_frame_arg): No longer fetch lazy values.
3894         * value.c (value_optimized_out): If the value is not already
3895         marked optimized out, and is lazy then fetch it.
3896         (value_primitive_field): Move optimized out check to later in the
3897         function, after we have loaded any lazy values.
3898         (value_fetch_lazy): Use optimized out flag directly rather than
3899         calling optimized_out method.
3900
3901 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3902
3903         * valops.c: Don't include "user-regs.h".
3904         (value_fetch_lazy): Moved to value.c.
3905         * value.c: Include "user-regs.h".
3906         (value_fetch_lazy): Moved from valops.c.
3907
3908 2013-07-04  Yao Qi  <yao@codesourcery.com>
3909
3910         Revert:
3911         2013-06-27  Yao Qi  <yao@codesourcery.com>
3912
3913         * common/create-version.sh: Update comments.  Handle the case
3914         that TARGET_ALIAS is empty.
3915
3916 2013-07-03  Pedro Alves  <palves@redhat.com>
3917
3918         * Makefile.in (config.status): Depend on development.sh.
3919         (aclocal_m4_deps): Add libmcheck.m4.
3920         * acinclude.m4: Include libmcheck.m4.
3921         * configure.ac: Source development.sh instead of setting
3922         'development' here.  --enable-libmcheck/--disable-libmcheck code
3923         factored out to GDB_AC_LIBMCHECK.  Run it.
3924         * development.sh: New file.
3925         * libmcheck.m4: New file.
3926         * configure: Regenerate.
3927
3928 2013-07-02  Tom Tromey  <tromey@redhat.com>
3929
3930         * contrib/ari/update-web-ari.sh: Update for version.in change.
3931
3932 2013-07-02  Tom Tromey  <tromey@redhat.com>
3933
3934         * common/ptid.h: Comment fixes.
3935
3936 2013-07-01  Tom Tromey  <tromey@redhat.com>
3937
3938         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3939         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
3940         (dwarf2_read_index, create_all_comp_units): Update.
3941
3942 2013-07-01  Tom Tromey  <tromey@redhat.com>
3943
3944         * configure.ac (build_warnings): Add -Wold-style-definition.
3945         * configure: Rebuild.
3946         * machoread.c (_initialize_machoread): Use "(void)".
3947         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3948         use "(void)".
3949
3950 2013-07-01  Tom Tromey  <tromey@redhat.com>
3951
3952         * configure.ac (build_warnings): Add -Wold-style-declaration.
3953         * configure: Rebuild.
3954         * dsrec.c (make_srec): Use "static const", not "const static".
3955         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3956         not "const static".
3957         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3958         Use "static const", not "const static".
3959         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3960         not "const static".
3961         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3962         not "const static".
3963         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3964         not "const static".
3965         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3966         not "const static".
3967         (v850_dbtrap_breakpoint_from_pc): Likewise.
3968         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3969         not "const static".
3970
3971 2013-07-01  Tom Tromey  <tromey@redhat.com>
3972
3973         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3974         * configure: Rebuild.
3975
3976 2013-07-01  Pedro Alves  <palves@redhat.com>
3977
3978         * defs.h: Include "pathmax.h".
3979         * utils.c: Don't include sys/param.h.
3980         (gdb_realpath): Remove code that checks for MAXPATHLEN.
3981         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3982         instead of MAXPATHLEN.
3983         * solib-sunos.c: Don't include sys/param.h.
3984         * xcoffread.c: Don't include sys/param.h.
3985         * bsd-kvm.c: Don't include sys/param.h.
3986         * darwin-nat.c: Don't include sys/param.h.
3987         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3988         * darwin-nat-info.c: Don't include sys/param.h.
3989         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3990         MAXPATHLEN.
3991         * i386obsd-nat.c: Don't include sys/param.h.
3992         * inf-child.c: Don't include sys/param.h.
3993         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3994         * linux-fork.c: Don't include sys/param.h.
3995         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3996         * linux-nat.c: Don't include sys/param.h.
3997         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3998         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3999         * m68klinux-nat.c: Don't include sys/param.h.
4000         * nbsd-nat.c: Don't include sys/param.h.
4001         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4002         * ppc-linux-nat.c: Don't include sys/param.h.
4003         * rs6000-nat.c: Don't include sys/param.h.
4004         * spu-linux-nat.c. Don't include sys/param.h.
4005         * windows-nat.c: Don't include sys/param.h.
4006         * xtensa-linux-nat.c: Don't include sys/param.h.
4007         * config/i386/nm-fbsd.h: Don't include sys/param.h.
4008
4009 2013-07-01  Pedro Alves  <palves@redhat.com>
4010
4011         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4012         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4013         * gnulib/aclocal.m4: Regenerate.
4014         * gnulib/config.in: Regenerate.
4015         * gnulib/configure: Regenerate.
4016         * gnulib/import/pathmax.h: New file.
4017         * gnulib/import/Makefile.am: Regenerate.
4018         * gnulib/import/Makefile.in: Regenerate.
4019         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4020         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4021         * gnulib/import/m4/pathmax.m4: New file.
4022
4023 2013-07-01  Pedro Alves  <palves@redhat.com>
4024
4025         * configure.ac (GDBINIT): Define, depending on host.
4026         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4027         * top.c (PATH_MAX): Delete fallback definition.
4028         (GDBINIT_FILENAME): Delete.
4029         (gdbinit): Reimplement as const char array set to the GDBINIT
4030         string constant.
4031         * top.h (gdbinit): Make const.
4032         * configure, config.in: Regenerate.
4033
4034 2013-07-01  Pedro Alves  <palves@redhat.com>
4035
4036         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4037         * cli/cli-cmds.h (source_script): Likewise.
4038         * exceptions.c (catch_command_errors_const): New function.
4039         * exceptions.h (catch_command_errors_const): Declare.
4040         * main.c (get_init_files): Make parameters const, and adjust.
4041         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4042         'local_gdbinit' locals const.  Adjust to use
4043         catch_command_errors_const.
4044         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4045         'local_gdbinit' locals const.
4046
4047 2013-07-01  Pedro Alves  <palves@redhat.com>
4048
4049         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4050         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4051         * tracepoint.c: Don't check HAVE_UNISTD_H before including
4052         <unistd.h>.
4053
4054 2013-07-01  Pedro Alves  <palves@redhat.com>
4055
4056         Import the "unistd" gnulib module.
4057         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4058         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4059         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4060         import/m4/unistd_h.m4.
4061         * gnulib/aclocal.m4: Renenerate.
4062         * gnulib/config.in: Renenerate.
4063         * gnulib/configure: Renenerate.
4064         * gnulib/import/Makefile.am: Renenerate.
4065         * gnulib/import/Makefile.in: Renenerate.
4066         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4067         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4068         * gnulib/import/m4/off_t.m4: New file.
4069         * gnulib/import/m4/ssize_t.m4: New file.
4070         * gnulib/import/m4/sys_types_h.m4: New file.
4071         * gnulib/import/m4/unistd_h.m4: New file.
4072         * gnulib/import/sys_types.in.h: New file.
4073         * gnulib/import/unistd.c: New file.
4074         * gnulib/import/unistd.in.h: New file.
4075
4076 2013-07-01  Pedro Alves  <palves@redhat.com>
4077
4078         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4079         defined instead of checking HAVE_UNISTD_H.
4080
4081 2013-07-01  Pedro Alves  <palves@redhat.com>
4082
4083         Reimport gnulib from scratch.
4084         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4085         import/m4/onceonly.m4.
4086         * gnulib/aclocal.m4: Renegerate.
4087         * gnulib/config.in: Renegerate.
4088         * gnulib/configure: Renegerate.
4089         * gnulib/import/Makefile.in: Renegerate.
4090         * gnulib/import/extra/update-copyright: Renegerate.
4091         * gnulib/import/m4/onceonly.m4: Delete.
4092
4093 2013-07-01  Pedro Alves  <palves@redhat.com>
4094
4095         * tui/tui-regs.c (pagination_enabled): Delete declaration.
4096
4097 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4098
4099         Code cleanup.
4100         * remote.c (async_remote_interrupt_twice): Make it static.
4101         * remote.h (async_remote_interrupt_twice): Remove the declaration.
4102
4103 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
4104
4105         * ia64-linux-tdep.c: Include <ctype.h>.
4106         (ia64_linux_stap_is_single_operand): New function.
4107         (ia64_linux_init_abi): Initialize SystemTap related attributes.
4108
4109 2013-06-28  Tom Tromey  <tromey@redhat.com>
4110
4111         * Makefile.in (version.c): Use version.in, not
4112         common/version.in.
4113         * common/create-version.sh: Likewise.
4114         * common/version.in: Move...
4115         * version.in: ...here.
4116
4117 2013-06-28  Pedro Alves  <palves@redhat.com>
4118
4119         * infrun.c (set_observer_mode): Don't declare pagination_enabled
4120         here.
4121         * utils.h (pagination_enabled): Declare.
4122
4123 2013-06-28  Pedro Alves  <palves@redhat.com>
4124
4125         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4126         Move higher up in file.
4127
4128 2013-06-28  Tom Tromey  <tromey@redhat.com>
4129
4130         * tracepoint.c (deprecated_readline_begin_hook)
4131         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4132         declare.
4133
4134 2013-06-28  Pedro Alves  <palves@redhat.com>
4135
4136         PR tui/14880
4137         * tui/tui-regs.c (tui_get_register): Fetch value contents before
4138         checking if they're available.
4139         * value.c (value_available_contents_eq): Change comment.
4140         * value.h (value_available_contents_eq): Expand comment.
4141
4142 2013-06-27  Tom Tromey  <tromey@redhat.com>
4143
4144         * target.c (find_run_target): Remove.
4145         * target.h (find_run_target): Remove.
4146
4147 2013-06-27  Tom Tromey  <tromey@redhat.com>
4148
4149         * corelow.c (core_gdbarch): Now static.
4150
4151 2013-06-27  Tom Tromey  <tromey@redhat.com>
4152
4153         * target.c (target_struct_index): Remove.
4154
4155 2013-06-27  Pedro Alves  <palves@redhat.com>
4156
4157         * infrun.c: Remove comment describing the 'stepping over runtime
4158         loader dynamic symbol resolution code' mechanism; moved to
4159         gdbint.texinfo.
4160
4161 2013-06-27  Pedro Alves  <palves@redhat.com>
4162
4163         * exceptions.c (catch_command_errors): Remove spurious space.
4164         * exceptions.h (catch_command_errors): Second parameter is "arg",
4165         not "command".
4166
4167 2013-06-27  Yao Qi  <yao@codesourcery.com>
4168
4169         * common/create-version.sh: Update comments.  Handle the case
4170         that TARGET_ALIAS is empty.
4171
4172 2013-06-26  Pedro Alves  <palves@redhat.com>
4173
4174         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4175         comment.
4176
4177 2013-06-26  Pedro Alves  <palves@redhat.com>
4178
4179         * infrun.c: Update comments on stepping over runtime loader
4180         dynamic symbol resolution code.
4181
4182 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
4183
4184         * ax-gdb.h (union exp_element): Forward declare.
4185         * parser-defs.h: Include expression.h.
4186
4187 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4188
4189         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4190
4191 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
4192
4193         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4194
4195 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
4196
4197         Fix trace-status to output proper start-time and stop-time.
4198         * tracepoint.c (trace_status_command): Fix type of printf arg to
4199         prevent improper type conversion.
4200         (trace_status_mi): Likewise.
4201
4202 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4203
4204         * mips-tdep.c (mips_next_pc): Fix a typo.
4205
4206 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4207
4208         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4209
4210 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4211             Yao Qi  <yao@codesourcery.com>
4212
4213         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4214         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4215         * mi/mi-main.c (print_variable_or_computed): New function.
4216         (mi_cmd_trace_frame_collected): New function.
4217         * tracepoint.c (find_trace_state_variable_by_number): New.
4218         (struct traceframe_info): Move to tracepoint.h
4219         (struct collection_list): Likewise.
4220         (do_collect_symbol): Include locals and arguments in the
4221         collected variables list.
4222         (clear_collection_list): Clear wholly collected variables list
4223         and computed variables list.
4224         (append_exp): New function.
4225         (encode_actions_1): Include variables in the wholly
4226         collected variables list.  Include memory ranges and
4227         full-fledged expressions in the computed expressions list.
4228         (encode_actions): Move some code to ...
4229         Return the cleanup chain.
4230         (encode_actions_rsp): ... here.  New function.
4231         (get_traceframe_location, get_traceframe_info): Remove static.
4232         * tracepoint.h (struct memrange): Moved from tracepoint.c.
4233         (struct collection_list): Moved from tracepoint.c.  Add two
4234         new fields 'wholly_collected' and 'computed'.
4235         (find_trace_state_variable_by_number): Declare.
4236         (encode_actions): Adjust declaration.
4237         (encode_actions_rsp): Declare.
4238         (get_traceframe_info, get_traceframe_location): Declare.
4239
4240         * NEWS: Mention new MI command -trace-frame-collected.
4241
4242 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4243             Yao Qi  <yao@codesourcery.com>
4244
4245         * ctf.c (ctf_traceframe_info): Push trace state variables
4246         present in the trace data into the traceframe info object.
4247         * breakpoint.c (DEF_VEC_I): Remove.
4248         * common/filestuff.c (DEF_VEC_I): Likewise.
4249         * dwarf2loc.c (DEF_VEC_I): Likewise.
4250         * mi/mi-main.c (DEF_VEC_I): Likewise.
4251         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4252         * features/traceframe-info.dtd: Add tvar element and its
4253         attributes.
4254         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4255         (build_traceframe_info): Push trace state variables present in
4256         the trace data into the traceframe info object.
4257         (traceframe_info_start_tvar): New function.
4258         (tvar_attributes): New.
4259         (traceframe_info_children): Add "tvar" element.
4260         * tracepoint.h (struct traceframe_info) <tvars>: New field.
4261
4262         * NEWS: Mention the change in GDB and GDBserver.
4263
4264 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4265             Yao Qi  <yao@codesourcery.com>
4266
4267         * tracepoint.c (trace_dump_command): Move code to ...
4268         (get_traceframe_location): ... here.  New.
4269
4270 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4271             Yao Qi  <yao@codesourcery.com>
4272
4273         * tracepoint.c (trace_dump_command): GDB emits an error
4274          instead of a warning when a traceframe is not selected.
4275
4276 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4277             Yao Qi  <yao@codesourcery.com>
4278
4279         * tracepoint.c (tracepoint_list, stepping_list): Remove.
4280         (clear_collection_list): Free fields 'aexpre_list' and 'list'
4281         in collection_list.
4282         (do_clear_collection_list, init_collection_list): New.
4283         (encode_actions): Add local variables 'tracepoint_list' and
4284         'stepping_list'.  Call init_collection_list and make cleanup
4285         which calls do_clear_collection_list.  Don't call
4286         clear_collection_list.
4287         (_initialize_tracepoint): Delete references to
4288         'tracepoint_list' and 'stepping_list'.
4289
4290 2013-06-25  Tom Tromey  <tromey@redhat.com>
4291
4292         * common/create-version.sh (date): Use "$", not "$$" in sed
4293         expression.
4294
4295 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
4296
4297         * NEWS (New targets): Add entry for TI MSP430.
4298
4299 2013-06-25  Yao Qi  <yao@codesourcery.com>
4300
4301         * remote.c (remote_start_remote): Move code to upload tsv
4302         earlier.
4303
4304 2013-06-25  Yao Qi  <yao@codesourcery.com>
4305             Hui Zhu  <hui@codesourcery.com>
4306             Pedro Alves  <palves@redhat.com>
4307
4308         PR breakpoints/15075
4309         PR breakpoints/15434
4310         * breakpoint.c (bpstat_stop_status): Call
4311         b->ops->after_condition_true.
4312         (update_dprintf_command_list): Don't append "continue" command
4313         to the command list of dprintf breakpoint.
4314         (base_breakpoint_after_condition_true): New function.
4315         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4316         (dprintf_after_condition_true): New function.
4317         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4318         * breakpoint.h (breakpoint_ops): Add after_condition_true.
4319
4320 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
4321
4322         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4323         (ALLDEPFILES): Add msp430-tdep.c.
4324         * configure.tgt (msp430*-*-elf): New target.
4325         * msp430-tdep.c: New file.
4326
4327 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4328
4329         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4330         microMIPS synthetic symbols.
4331
4332 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4333
4334         * objfiles.h (pc_in_section): New prototype.
4335         (in_plt_section): Remove name argument, replace prototype with
4336         static inline function.
4337         * mips-tdep.h: Include "objfiles.h".
4338         (in_mips_stubs_section): New function.
4339         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4340         in_solib_call_trampoline member.
4341         (hppa_in_solib_call_trampoline): Remove name argument.
4342         * objfiles.c (pc_in_section): New function.
4343         (in_plt_section): Remove function.
4344         * mips-linux-tdep.c: Include "objfiles.h".
4345         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
4346         name argument.  Return 1 rather than the low 16-bit halfword of
4347         any instruction examined.
4348         (mips_linux_in_dynsym_resolve_code): Update
4349         mips_linux_in_dynsym_stub call accordingly.
4350         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4351         rather than an equivalent hand-coded sequence.
4352         * hppa-hpux-tdep.c (in_opd_section): Remove function.
4353         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4354         (hppa64_hpux_in_solib_call_trampoline): Likewise.
4355         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4356         in_opd_section.
4357         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4358         on call to tdep->in_solib_call_trampoline.
4359         (hppa_in_solib_call_trampoline): Remove name argument, update
4360         according to in_plt_section change.
4361         (hppa_skip_trampoline_code): Update according to in_plt_section
4362         change.
4363         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4364         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4365         Likewise.
4366         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4367         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4368         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4369         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4370         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4371         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4372         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4373         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4374         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4375         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4376         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4377         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4378         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4379
4380 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
4381
4382         * common/create-version.sh: Fix expansion of $host_alias
4383         and $target_alias in generation of HOST_NAME and TARGET_NAME
4384         (resp.).
4385
4386 2013-06-24  Tom Tromey  <tromey@redhat.com>
4387
4388         * common/create-version.sh: New file.
4389         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4390         create-version.sh.
4391         (HFILES_NO_SRCDIR): Use common/version.h.
4392         * version.in: Move to ...
4393         * common/version.in: ... here.  Replace date with "DATE".
4394         * version.h: Move to ...
4395         * common/version.h: ... here.
4396
4397 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4398
4399         * gdb/gnulib/Makefile.in: Update date in copyright header.
4400         * gdb/gnulib/configure.ac: Ditto.
4401         * gdb/gnulib/update-gnulib.sh: Ditto.
4402
4403 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4404
4405         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4406         "gdb/gnulib/import".
4407
4408 2013-06-21  Will Newton  <will.newton@linaro.org>
4409
4410         * doublest.c (ldfrexp): Remove function.
4411         (convert_doublest_to_floatformat): Call frexpl instead of
4412         ldfrexp.
4413
4414 2013-06-21  Will Newton  <will.newton@linaro.org>
4415
4416         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4417         * gnulib/aclocal.m4: Regenerate.
4418         * gnulib/config.in: Regenerate.
4419         * gnulib/configure: Regenerate.
4420         * gnulib/import/Makefile.am: Update.
4421         * gnulib/import/Makefile.in: Update.
4422         * gnulib/import/m4/gnulib-cache.m4: Update.
4423         * gnulib/import/m4/gnulib-comp.m4: Update.
4424         * gnulib/import/float+.h: Import.
4425         * gnulib/import/float.c: Import.
4426         * gnulib/import/float.in.h: Import.
4427         * gnulib/import/fpucw.h: Import.
4428         * gnulib/import/frexp.c: Import.
4429         * gnulib/import/frexpl.c: Import.
4430         * gnulib/import/isnan.c: Import.
4431         * gnulib/import/isnand-nolibm.h: Import.
4432         * gnulib/import/isnand.c: Import.
4433         * gnulib/import/isnanl-nolibm.h: Import.
4434         * gnulib/import/isnanl.c: Import.
4435         * gnulib/import/itold.c: Import.
4436         * gnulib/import/m4/exponentd.m4: Import.
4437         * gnulib/import/m4/exponentl.m4: Import.
4438         * gnulib/import/m4/float_h.m4: Import.
4439         * gnulib/import/m4/fpieee.m4: Import.
4440         * gnulib/import/m4/frexp.m4: Import.
4441         * gnulib/import/m4/frexpl.m4: Import.
4442         * gnulib/import/m4/isnand.m4: Import.
4443         * gnulib/import/m4/isnanl.m4: Import.
4444         * gnulib/import/m4/math_h.m4: Import.
4445         * gnulib/import/math.c: Import.
4446         * gnulib/import/math.in.h: Import.
4447
4448 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4449
4450         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4451         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4452         signature_INTEL_edx comparisons.
4453
4454 2013-06-20  Doug Evans  <dje@google.com>
4455
4456         symtab/15652
4457         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4458         All callers updated.
4459         (open_dwp_file): If we can't find the dwp file, search the basename
4460         in debug-file-directory.
4461
4462         * dwarf2read.c (struct dwp_file): Fix comment.
4463         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4464
4465         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4466         better.
4467
4468 2013-06-20  Yao Qi  <yao@codesourcery.com>
4469
4470         * breakpoint.c (create_breakpoint): Fix code indentation.
4471
4472 2013-06-20  Yao Qi  <yao@codesourcery.com>
4473
4474         * breakpoint.c (create_breakpoints_sal_default): Remove
4475         parameter 'lsal'.  Update declaration.
4476         (bkpt_create_breakpoints_sal): Caller update.
4477         (tracepoint_create_breakpoints_sal): Likewise.
4478
4479 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
4480             Yao Qi  <yao@codesourcery.com>
4481
4482         * NEWS: Mention the new option '--skip-unavailable' of command
4483         -data-list-register-values.
4484         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4485         --skip-unavailable option.  Adjust to use output_register.
4486         (output_register): Add new 'skip_unavailable' parameter.
4487         Handle it.
4488
4489 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
4490
4491         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4492         common/i386-gcc-cpuid.h.
4493         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4494         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4495         Copy the latest version from upstream gcc.
4496         * common/linux-btrace.c: Include i386-cpuid.h.
4497         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4498         call to i386_cpuid.
4499         (cpu_supports_btrace): Likewise.
4500         * go32-nat.c: Include i386-cpuid.h.
4501         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4502
4503 2013-06-19  Doug Evans  <dje@google.com>
4504
4505         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4506         (get_section_index): Ditto.
4507
4508 2013-06-19  Tom Tromey  <tromey@redhat.com>
4509
4510         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4511         "dprintf" help.
4512
4513 2013-06-18  Doug Evans  <dje@google.com>
4514
4515         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4516         before using it.
4517         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4518         Move test of cu_index closer to use.  Print complaint if cu_index
4519         is bad.
4520
4521 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4522
4523         * machoread.c (oso_vector): Delete this global.
4524         (macho_register_oso): Add new parameter "oso_vector_ptr".
4525         Use it instead of the "oso_vector" global.
4526         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4527         (macho_symfile_read): Use a local oso_vector, to be free'ed
4528         at the end of this function, in place of the old "oso_vector"
4529         global.  Update various function calls accordingly.  Use one
4530         single cleanup chain for the entire function.
4531
4532 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4533
4534         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4535         DWARF2_PER_OBJFILE by uses of DATA instead.
4536
4537 2013-06-18  Tom Tromey  <tromey@redhat.com>
4538
4539         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4540         argument.
4541         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4542         Special case signals other than GDB_SIGNAL_TRAP.
4543         (explains_signal_watchpoint): New function.
4544         (base_breakpoint_explains_signal): Add 'sig' argument.
4545         (initialize_breakpoint_ops): Set 'explains_signal' method for
4546         watchpoints.
4547         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4548         signal argument.
4549         (bpstat_explains_signal): Likewise.
4550         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4551
4552 2013-06-18  Tom Tromey  <tromey@redhat.com>
4553
4554         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4555
4556 2013-06-18  Tom Tromey  <tromey@redhat.com>
4557
4558         * python/python.c (finish_python_initialization): Decref
4559         'pythondir' on failure path as well.
4560
4561 2013-06-18  Tom Tromey  <tromey@redhat.com>
4562
4563         PR symtab/15391:
4564         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4565         after taking bits_to_skip into account.  Sign extend byte_offset.
4566         * utils.h (gdb_sign_extend): Declare.
4567         * utils.c (gdb_sign_extend): New function.
4568
4569 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4570
4571         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4572
4573 2013-06-17  Pierre Muller  <muller@sourceware.org>
4574
4575         * corelow.c (core_open): Print GDB signal name instead of target
4576         signal number.
4577
4578 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
4579
4580         * .gitignore: Add /gcore.
4581
4582 2013-06-13  Doug Evans  <dje@google.com>
4583
4584         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4585         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4586
4587 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
4588
4589         * stack.c (backtrace_command_1): Fix indentation.
4590
4591 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4592
4593         * window-nat.c (thread_rec): Add missing empty line after
4594         local variable declaration.
4595
4596 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4597
4598         * windows-nat.c (thread_rec): Revert format used to print
4599         error code returned by SuspendThread from %d back to %u.
4600
4601 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4602
4603         * windows-nat.c (windows_continue): Add "0x" prefix for thread
4604         ID in debug trace.
4605         (get_windows_debug_event): Likewise, for all debug traces.
4606
4607 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4608
4609         * window-nat.c (thread_rec): Add thread ID in SuspendThread
4610         warning message.
4611
4612 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
4613             Yao Qi  <yao@codesourcery.com>
4614
4615         * mi/mi-main.c (get_register): Remove declaration.
4616         (output_register): Declare.
4617         (mi_cmd_data_list_register_values): Remove local variable
4618         'tuple_cleanup'.  Move some code into output_register.
4619         (get_register): Renamed to ...
4620         (output_register): ... this.  Output the register's
4621         "number" ui_out tuple here.
4622
4623 2013-06-07  Pedro Alves  <palves@redhat.com>
4624
4625         * darwin-nat.c: Fix formating in copyright header.
4626         * darwin-nat.h: Likewise.
4627         * gnu-nat.c: Likewise.
4628         * machoread.c: Likewise.
4629
4630 2013-06-07  Pedro Alves  <palves@redhat.com>
4631
4632         PR server/14823
4633         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
4634         static.  Output a global target description pointer.
4635         (init_registers_${name}): Adjust to initialize a
4636         target description structure.
4637
4638 2013-06-07  Will Newton  <will.newton@linaro.org>
4639
4640         * printcmd.c (build_address_symbolic): Call
4641         gdbarch_addr_bits_remove for text minimal symbols.
4642
4643 2013-06-07  Will Newton  <will.newton@linaro.org>
4644
4645         * MAINTAINERS: Add myself to Write After Approval.
4646
4647 2013-06-07  Yao Qi  <yao@codesourcery.com>
4648
4649         * tracepoint.c (start_tracing): Move code to ...
4650         (trace_reset_local_state): ... here.  New.
4651         (disconnect_tracing): Don't call set_current_traceframe,
4652         set_tracepoint_num, and set_traceframe_context. Call
4653         trace_reset_local_state instead.
4654         (tfile_close): Call trace_reset_local_state.
4655         * ctf.c (ctf_close): Likewise.
4656         * remote.c (remote_close): Likewise.
4657         * tracepoint.h (trace_reset_local_state): Declare.
4658
4659 2013-06-06  Doug Evans  <dje@google.com>
4660
4661         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4662         and fix header docs.
4663
4664 2013-06-05  Doug Evans  <dje@google.com>
4665             Keith Seitz  <keiths@redhat.com>
4666
4667         PR 15519
4668         * cp-namespace.c (find_symbol_in_baseclass): Call
4669         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4670         Check result of call to lookup_symbol_static.
4671         Call lookup_static_symbol_aux unconditionally.
4672         Call check_typedef on base types before accessing them.
4673         (cp_lookup_nested_symbol): Fix comment.
4674
4675 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
4676
4677         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4678         minimal symbols pointing to function descriptors.
4679
4680 2013-06-05  Tom Tromey  <tromey@redhat.com>
4681
4682         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4683
4684 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4685             Pedro Alves  <palves@redhat.com>
4686
4687         * remote.c (remote_wait_as): Restore signal handler before returning
4688         when GDB gets a notification.
4689
4690 2013-06-04  Gary Benson  <gbenson@redhat.com>
4691
4692         PR 2328
4693         * breakpoint.h (handle_solib_event): Moved function declaration
4694         to solib.h.
4695         * breakpoint.c (handle_solib_event): Moved function to solib.c.
4696         (bpstat_stop_status): Pass new argument to handle_solib_event.
4697         * solib.h (update_solib_breakpoints): New function declaration.
4698         (handle_solib_event): Moved function declaration from
4699         breakpoint.h.
4700         * solib.c (update_solib_breakpoints): New function.
4701         (handle_solib_event): Moved function from breakpoint.c.
4702         Updated to call solib_ops->handle_event if not NULL.
4703         * solist.h (target_so_ops): New fields "update_breakpoints" and
4704         "handle_event".
4705         * infrun.c (set_stop_on_solib_events): New function.
4706         (_initialize_infrun): Use the above for "set
4707         stop-on-solib-events".
4708         (handle_inferior_event): Pass new argument to handle_solib_event.
4709         * solib-svr4.c (probe.h): New include.
4710         (svr4_free_library_list): New forward declaration.
4711         (probe_action): New enum.
4712         (probe_info): New struct.
4713         (probe_info): New static variable.
4714         (NUM_PROBES): New definition.
4715         (svr4_info): New fields "using_xfer", "probes_table" and
4716         "solib_list".
4717         (free_probes_table): New function.
4718         (free_solib_list): New function.
4719         (svr4_pspace_data_cleanup): Free probes table and solib list.
4720         (svr4_copy_library_list): New function.
4721         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4722         (svr4_read_so_list): New parameter "prev_lm".
4723         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4724         (svr4_current_sos): New function.
4725         (probe_and_action): New struct.
4726         (hash_probe_and_action): New function.
4727         (equal_probe_and_action): Likewise.
4728         (register_solib_event_probe): Likewise.
4729         (solib_event_probe_at): Likewise.
4730         (solib_event_probe_action): Likewise.
4731         (solist_update_full): Likewise.
4732         (solist_update_incremental): Likewise.
4733         (disable_probes_interface_cleanup): Likewise.
4734         (svr4_handle_solib_event): Likewise.
4735         (svr4_update_solib_event_breakpoint): Likewise.
4736         (svr4_update_solib_event_breakpoints): Likewise.
4737         (svr4_create_solib_event_breakpoints): Likewise.
4738         (enable_break): Free probes table before creating breakpoints.
4739         Use svr4_create_solib_event_breakpoints to create breakpoints.
4740         (svr4_solib_create_inferior_hook): Free the solib list.
4741         (_initialize_svr4_solib): Initialise
4742         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4743
4744 2013-06-04  Gary Benson  <gbenson@redhat.com>
4745
4746         * target.h (target_ops): New field
4747         "to_augmented_libraries_svr4_read".
4748         (target_augmented_libraries_svr4_read): New macro.
4749         * target.c (update_current_target): Handle
4750         to_augmented_libraries_svr4_read.
4751         * remote.c (remote_state): New field
4752         "augmented_libraries_svr4_read".
4753         (remote_augmented_libraries_svr4_read_feature): New function.
4754         (remote_protocol_features): Add entry for
4755         "augmented-libraries-svr4-read".
4756         (remote_augmented_libraries_svr4_read): New function.
4757         (init_remote_ops): Initialize
4758         remote_ops.to_augmented_libraries_svr4_read.
4759
4760 2013-06-04  Gary Benson  <gbenson@redhat.com>
4761
4762         * NEWS: Update.
4763
4764 2013-06-04  Gary Benson  <gbenson@redhat.com>
4765
4766         * objfiles.h (inhibit_section_map_updates): New function
4767         declaration.
4768         (resume_section_map_updates): Likewise.
4769         (resume_section_map_updates_cleanup): Likewise.
4770         * objfiles.c (objfile_pspace_info): Removed field
4771         "objfiles_changed_p".  New fields "new_objfiles_available",
4772         "section_map_dirty" and "inhibit_updates".
4773         (allocate_objfile): Set new_objfiles_available.
4774         (free_objfile): Set section_map_dirty.
4775         (objfile_relocate1): Likewise.
4776         (in_plt_section): Likewise.
4777         (find_pc_section): Update the conditions under which the
4778         section map will be updated.
4779         (inhibit_section_map_updates): New function.
4780         (resume_section_map_updates): Likewise.
4781         (resume_section_map_updates_cleanup): Likewise.
4782
4783 2013-06-04  Gary Benson  <gbenson@redhat.com>
4784
4785         * probe.h (get_probe_argument_count): New declaration.
4786         (evaluate_probe_argument): Likewise.
4787         * probe.c (get_probe_argument_count): New function.
4788         (evaluate_probe_argument): Likewise.
4789         (probe_safe_evaluate_at_pc): Use the above new functions.
4790
4791 2013-06-04  Alan Modra  <amodra@gmail.com>
4792
4793         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4794         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4795         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
4796         target mem reads on optional insns.
4797         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4798         ppc_insns_match_pattern calls.
4799         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4800         Add match for power7 thread safety insns, and new order of
4801         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
4802         invocation in comment, and update rest of comment.
4803         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4804         PPC64_STANDARD_LINKAGE3_LEN): Delete.
4805         (ppc64_standard_linkage2_target): Update insn offsets.
4806         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
4807         stubs first.  Update calls.
4808
4809 2013-06-04  Yao Qi  <yao@codesourcery.com>
4810
4811         * solib.c (solib_find): Don't need dir separator if path has
4812         drive spec.
4813
4814 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
4815
4816         Revert (indirectly causes a SIGSEGV):
4817         * machoread.c (macho_symfile_read): Assign first cleanup to
4818         'back_to'.
4819
4820 2013-06-03  Yao Qi  <yao@codesourcery.com>
4821
4822         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4823         mi-parse.c.  Make them static.
4824         (mi_all_values): Likewise.
4825         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
4826         mi_parse_print_values.  Make it external.
4827         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4828         Remove the declarations.
4829         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4830         * mi/mi-parse.h (mi_parse_print_values): Declare.
4831         * mi/mi-cmd-stack.c: Include mi-parse.h.
4832         (parse_print_values): Remove
4833         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4834         of parse_print_values.
4835         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4836
4837 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
4838             Yao Qi  <yao@codesourcery.com>
4839
4840         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4841         (encode_actions): Move code to ...
4842         (all_tracepoint_actions_and_cleanup): ... here.  New.
4843         (trace_dump_command): Likewise.
4844
4845 2013-05-30  Tom Tromey  <tromey@redhat.com>
4846
4847         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4848
4849 2013-05-30  Tom Tromey  <tromey@redhat.com>
4850
4851         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4852         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
4853         'old_chain' argument.  Add 'parser_result' argument.
4854         (gdb_xml_create_parser_and_cleanup): Remove old version.
4855         (gdb_xml_parse_quick): Update.
4856         (xml_process_xincludes): Update.
4857         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4858         declare.
4859
4860 2013-05-30  Tom Tromey  <tromey@redhat.com>
4861
4862         * probe.c (collect_probes): Check arguments for NULL before
4863         calling compile_rx_or_error.
4864         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4865         Remove NULL return.
4866
4867 2013-05-30  Tom Tromey  <tromey@redhat.com>
4868
4869         * infrun.c (adjust_pc_after_break): Introduce an outer null
4870         cleanup.
4871
4872 2013-05-30  Tom Tromey  <tromey@redhat.com>
4873
4874         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4875
4876 2013-05-30  Tom Tromey  <tromey@redhat.com>
4877
4878         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4879         for 'old_chain'.  Do not check 'head' before processing
4880         cleanups.
4881
4882 2013-05-30  Tom Tromey  <tromey@redhat.com>
4883
4884         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4885         "cleanup_tuple".
4886
4887 2013-05-30  Tom Tromey  <tromey@redhat.com>
4888
4889         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4890         inner scope.  Unconditionally call do_cleanups.
4891
4892 2013-05-30  Tom Tromey  <tromey@redhat.com>
4893
4894         * source.c (find_and_open_source): Call do_cleanups.
4895
4896 2013-05-30  Tom Tromey  <tromey@redhat.com>
4897
4898         * linux-thread-db.c (thread_db_load_search): Unconditionally
4899         call do_cleanups.
4900
4901 2013-05-30  Tom Tromey  <tromey@redhat.com>
4902
4903         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4904         for 'cleanup'; instead use a later one.
4905
4906 2013-05-30  Tom Tromey  <tromey@redhat.com>
4907
4908         * python/py-breakpoint.c (bppy_get_commands): Use
4909         explicit, unconditional return.
4910         * python/py-frame.c (frapy_read_var): Likewise.
4911         * python/python.c (gdbpy_decode_line): Likewise.
4912
4913 2013-05-30  Tom Tromey  <tromey@redhat.com>
4914
4915         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4916         do_cleanups on all return paths.
4917
4918 2013-05-30  Tom Tromey  <tromey@redhat.com>
4919
4920         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4921
4922 2013-05-30  Tom Tromey  <tromey@redhat.com>
4923
4924         * stabsread.c (read_struct_type): Call do_cleanups along
4925         all return paths.
4926
4927 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
4928
4929         * mips-linux-tdep.c: Adjust formatting throughout.
4930
4931 2013-05-30  Tom Tromey  <tromey@redhat.com>
4932
4933         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4934         along all return paths.
4935
4936 2013-05-30  Tom Tromey  <tromey@redhat.com>
4937
4938         * symfile.c (find_separate_debug_file): Call do_cleanups
4939         along all return paths.
4940
4941 2013-05-30  Tom Tromey  <tromey@redhat.com>
4942
4943         * symtab.c (search_symbols): Introduce a null cleanup for
4944         'retval_chain'.
4945
4946 2013-05-30  Tom Tromey  <tromey@redhat.com>
4947
4948         * python/py-value.c (valpy_binop): Call do_cleanups before
4949         exiting loop.
4950
4951 2013-05-30  Tom Tromey  <tromey@redhat.com>
4952
4953         * python/py-prettyprint.c (print_children): Remove extra
4954         do_cleanups call.
4955
4956 2013-05-30  Tom Tromey  <tromey@redhat.com>
4957
4958         * python/py-frame.c (frapy_read_var): Call do_cleanups along
4959         all return paths.
4960
4961 2013-05-30  Tom Tromey  <tromey@redhat.com>
4962
4963         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4964         along all return paths.
4965
4966 2013-05-30  Tom Tromey  <tromey@redhat.com>
4967
4968         * cli/cli-logging.c (set_logging_redirect): Unconditionally
4969         call do_cleanups.
4970
4971 2013-05-30  Tom Tromey  <tromey@redhat.com>
4972
4973         * varobj.c (c_value_of_root): Call do_cleanups along all
4974         return paths.
4975
4976 2013-05-30  Tom Tromey  <tromey@redhat.com>
4977
4978         * tracepoint.c (trace_dump_command): Unconditionally call
4979         do_cleanups.
4980
4981 2013-05-30  Tom Tromey  <tromey@redhat.com>
4982
4983         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4984         do_cleanups earlier.
4985
4986 2013-05-30  Tom Tromey  <tromey@redhat.com>
4987
4988         * machoread.c (macho_symfile_read): Assign first cleanup to
4989         'back_to'.
4990
4991 2013-05-30  Tom Tromey  <tromey@redhat.com>
4992
4993         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4994
4995 2013-05-30  Tom Tromey  <tromey@redhat.com>
4996
4997         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4998
4999 2013-05-30  Tom Tromey  <tromey@redhat.com>
5000
5001         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5002         call discard_cleanups.
5003         (inf_ptrace_attach): Likewise.
5004
5005 2013-05-30  Tom Tromey  <tromey@redhat.com>
5006
5007         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5008         return paths.
5009         (mips_initialize): Likewise.
5010         (common_open): Call do_cleanups.
5011
5012 2013-05-30  Tom Tromey  <tromey@redhat.com>
5013
5014         * utils.c (internal_vproblem): Call do_cleanups.
5015
5016 2013-05-30  Tom Tromey  <tromey@redhat.com>
5017
5018         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5019
5020 2013-05-30  Tom Tromey  <tromey@redhat.com>
5021
5022         * cli/cli-script.c (setup_user_args): Don't return after error.
5023
5024 2013-05-30  Tom Tromey  <tromey@redhat.com>
5025
5026         * somread.c (som_symtab_read): Call do_cleanups.
5027
5028 2013-05-30  Tom Tromey  <tromey@redhat.com>
5029
5030         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5031
5032 2013-05-30  Tom Tromey  <tromey@redhat.com>
5033
5034         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5035         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5036         * interps.c (interpreter_exec_cmd): Call do_cleanups.
5037         * source.c (show_substitute_path_command): Call do_cleanups.
5038         (unset_substitute_path_command, set_substitute_path_command):
5039         Likewise.
5040         * symfile.c (load_command): Call do_cleanups.
5041
5042 2013-05-30  Tom Tromey  <tromey@redhat.com>
5043
5044         * contrib/cleanup_check.py: New file.
5045         * contrib/gcc-with-excheck: Add option parsing.
5046
5047 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
5048
5049         * windows-nat.c (windows_delete_thread): Add missing space
5050         in cast expression.
5051
5052 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5053
5054         * inferior.c (top level): Include tilde.h.
5055         (add_inferior_command): Call tilde_expand on the value of 'exec'
5056         argument.
5057
5058 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
5059             Yao Qi  <yao@codesourcery.com>
5060
5061         * tracepoint.c (encode_actions_1): Remove parameter 't'.
5062         Caller update.
5063         (encode_actions): Likewise.
5064         * remote.c (remote_download_tracepoint): Caller update.
5065         * tracepoint.h (encode_actions): Update declaration.
5066
5067 2013-05-30  Pedro Alves  <palves@redhat.com>
5068
5069         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5070         pointer.
5071
5072 2013-05-30  Yao Qi  <yao@codesourcery.com>
5073
5074         * remote.c (remote_check_symbols): Remove unused parameter
5075         'objfile'.
5076         Declaration update.
5077         (remote_start_remote, remote_new_objfile): Caller update.
5078
5079 2013-05-30  Yao Qi  <yao@codesourcery.com>
5080
5081         * mi/mi-cmds.c (mi_cmds): Define MI command
5082         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5083         DEF_MI_CMD_CLI.
5084
5085 2013-05-29  Pedro Alves  <palves@redhat.com>
5086
5087         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5088         (remote_insert_watchpoint, remote_remove_watchpoint)
5089         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5090         (remote_verify_memory, compare_sections_command)
5091         (remote_search_memory): Set the general process/thread on the
5092         remote side.
5093
5094 2013-05-29  Pedro Alves  <palves@redhat.com>
5095
5096         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5097         (_initialize_aarch64_tdep): Don't call
5098         initialize_tdesc_aarch64_without_fpu.
5099         * features/Makefile (WHICH): Remove reference to
5100         aarch64-without-fpu.
5101         * features/aarch64-without-fpu.c: Delete file.
5102         * regformats/aarch64-without-fpu.dat: Delete file.
5103
5104 2013-05-28  Yao Qi  <yao@codesourcery.com>
5105
5106         * tracepoint.c (stringify_collection_list): Remove parameter
5107         'string'.
5108         (encode_actions): Caller update.  Remove local variables.
5109
5110 2013-05-24  Yao Qi  <yao@codesourcery.com>
5111
5112         * tracepoint.c (TFILE_PID): Remove.
5113         (tfile_open): Don't add thread and inferior.
5114         (tfile_close): Don't set 'inferior_ptid'.  Don't call
5115         exit_inferior_silent.
5116         (tfile_thread_alive): Remove.
5117         (init_tfile_ops): Don't set field 'to_thread_alive' of
5118         tfile_ops.
5119
5120 2013-05-23  Doug Evans  <dje@google.com>
5121
5122         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5123
5124 2013-05-23  Pedro Alves  <palves@redhat.com>
5125
5126         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5127         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5128         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5129         Only define if HAVE_SOCKETS is defined.
5130         * configure.ac: Check for sys/socket.h.
5131         * config.in, configure: Regenerate.
5132
5133 2013-05-23  Pedro Alves  <palves@redhat.com>
5134
5135         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5136         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5137         printing uint32_t variables.
5138
5139 2013-05-23  Pedro Alves  <palves@redhat.com>
5140
5141         * NEWS: Mention GDBserver range stepping support.
5142
5143 2013-05-23  Yao Qi  <yao@codesourcery.com>
5144             Pedro Alves  <palves@redhat.com>
5145
5146         * gdbthread.h (struct thread_control_state) <may_range_step>: New
5147         field.
5148         * infcmd.c (step_once, until_next_command): Enable range stepping.
5149         * infrun.c (displaced_step_prepare): Disable range stepping.
5150         (resume): Disable range stepping if stepping over a breakpoint or
5151         we have software watchpoints.  If range stepping is enabled,
5152         assert the thread is in the stepping range.
5153         (clear_proceed_status_thread): Clear may_range_step.
5154         (handle_inferior_event): Disable range stepping as soon as we know
5155         the thread that hit the event.  Re-enable it whenever we're going
5156         to step with a step range.
5157         * remote.c (struct vCont_action_support) <r>: New field.
5158         (use_range_stepping): New global.
5159         (remote_vcont_probe): Handle 'r' action.
5160         (append_resumption): Append an 'r' action if the thread may range
5161         step.
5162         (show_range_stepping): New function.
5163         (set_range_stepping): New function.
5164         (_initialize_remote): Call add_setshow_boolean_cmd to register the
5165         'set range-stepping' and 'show range-stepping' commands.
5166         * NEWS: Mention range stepping, the new vCont;r action, and the
5167         new "set/show range-stepping" commands.
5168
5169 2013-05-23  Yao Qi  <yao@codesourcery.com>
5170             Pedro Alves  <palves@redhat.com>
5171
5172         * remote.c (struct vCont_action_support): New struct.
5173         (struct remote_state) <support_vCont_t>: Remove field.
5174         <vCont_actions_support>: New field.
5175         (remote_vcont_probe, remote_stop_ns): Update.
5176
5177 2013-05-23  Yao Qi  <yao@codesourcery.com>
5178             Pedro Alves  <palves@redhat.com>
5179
5180         * gdbthread.h (pc_in_thread_step_range): New declaration.
5181         * thread.c (pc_in_thread_step_range): New function.
5182         * infrun.c (handle_inferior_event): Use it.
5183
5184 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
5185
5186         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5187         of sprintf.
5188
5189 2013-05-22  Keith Seitz  <keiths@redhat.com>
5190
5191         * ada-lang.c (is_known_support_routine): Add explicit free of
5192         'func_name' from find_frame_funname.
5193         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5194         for func_name from find_frame_funname.
5195         * python/py-frame.c (frapy_name): Add explicit free of
5196         'name' from find_frame_funname.
5197         * stack.c (find_frame_funname): Add comment explaining that
5198         funcp must be freed by the caller.
5199         Return copy of symbol names instead of pointers.
5200         (print_frame): Add a cleanup for 'funname' from
5201         find_frame_funname.
5202         * stack.h (find_frame_funname): Remove "const" from
5203         'funname' parameter.
5204
5205 2013-05-22  Tom Tromey  <tromey@redhat.com>
5206
5207         PR c++/15401:
5208         * c-valprint.c (c_value_print): Use value_addr for
5209         references.  Convert back to reference type with value_ref.
5210
5211 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
5212
5213         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5214         unloaded DLL, it will be done by handle_solib_event.  See
5215         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5216         details.
5217
5218 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
5219
5220         * ui-out.c: Create typedef ui_out_level_p and define vector
5221         operations for that type.
5222         (struct ui_out): Use a vector instead of an array.
5223         (current_level): Return level from a vector.
5224         (push_level): Create a level in a vector.
5225         (pop_level): Delete a level in a vector.
5226         (ui_out_new): Create initial level zero level, and store in a
5227         vector.
5228         (ui_out_destroy): Add vector cleanup.
5229
5230 2013-05-22  Pedro Alves  <palves@redhat.com>
5231
5232         * python/python-internal.h (gdb_Py_DECREF): Tag with
5233         "ARI: editCase function".
5234
5235 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5236
5237         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5238
5239 2013-05-21  Pedro Alves  <palves@redhat.com>
5240
5241         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5242         whether PRINTER is NULL before installing a Py_DECREF cleanup.
5243         * python/py-utils.c (py_decref): Don't check for NULL before
5244         calling Py_DECREF.
5245
5246 2013-05-21  Pedro Alves  <palves@redhat.com>
5247
5248         * python/py-utils.c (py_decref): Remove extra braces.
5249         (gdb_pymodule_addobject): Remove extra braces.
5250         * python-internal.h (gdb_Py_DECREF): New static inline function.
5251         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5252
5253 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5254
5255         * breakpoints.c (detach_breakpoints): Do not
5256         detach breakpoints locations with loc_type bp_loc_other.
5257
5258 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5259
5260         Workaround Python 2.6.
5261         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5262         a block.
5263
5264 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5265
5266         Code cleanup: constification.
5267         * solib.c (solib_ops): Make return type and ops variable type const.
5268         (set_solib_ops): Make the new_ops parameter and ops variable const.
5269         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5270         (solib_add, solib_keep_data_in_core, clear_solib)
5271         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5272         (reload_shared_libraries, solib_global_lookup): Make the ops variable
5273         const.
5274         * solib.h (set_solib_ops): Make the new_ops parameter const.
5275
5276 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5277
5278         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5279         variable.
5280         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5281         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5282         (SYSTEM_GDBINIT_FILES): New variables.
5283         (all): Add stamp-system-gdbinit.
5284         (stamp-system-gdbinit): New rule.
5285         (clean-system-gdbinit, install-system-gdbinit)
5286         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
5287         (install-only): Add dependency on install-system-gdbinit.
5288         (uninstall): Add dependency on uninstall-system-gdbinit.
5289         (clean): Add dependency on clean-system-gdbinit.
5290         * system-gdbinit/elinos.py: New file.
5291         * system-gdbinit/wrs-linux.py: New file.
5292
5293 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5294
5295         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5296
5297 2013-05-21  Hui Zhu  <hui@codesourcery.com>
5298
5299         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5300         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5301         * mi/mi-cmd-break.c (ctype.h): New include.
5302         (gdb_obstack.h): New include.
5303         (mi_argv_to_format, mi_cmd_break_insert_1): New.
5304         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5305         (mi_cmd_dprintf_insert): New.
5306         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5307         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5308
5309 2013-05-20  Tom Tromey  <tromey@redhat.com>
5310
5311         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5312
5313 2013-05-20  Tom Tromey  <tromey@redhat.com>
5314
5315         * python/py-value.c (valpy_get_dynamic_type): Simplify
5316         dynamic_type assignment.  Use Py_XINCREF.
5317
5318 2013-05-20  Tom Tromey  <tromey@redhat.com>
5319
5320         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5321
5322 2013-05-20  Tom Tromey  <tromey@redhat.com>
5323
5324         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5325         (gdbpy_selected_frame): Move object-construction code
5326         out of TRY_CATCH.
5327
5328 2013-05-20  Tom Tromey  <tromey@redhat.com>
5329
5330         * python/py-arch.c (gdbpy_initialize_arch): Use
5331         gdb_pymodule_addobject.
5332         * python/py-block.c (gdbpy_initialize_blocks): Use
5333         gdb_pymodule_addobject.
5334         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5335         gdb_pymodule_addobject.
5336         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5337         gdb_pymodule_addobject.
5338         * python/py-event.c (gdbpy_initialize_event_generic): Use
5339         gdb_pymodule_addobject.
5340         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5341         gdb_pymodule_addobject.
5342         * python/py-evts.c (add_new_registry): Use
5343         gdb_pymodule_addobject.
5344         (gdbpy_initialize_py_events): Likewise.
5345         * python/py-finishbreakpoint.c
5346         (gdbpy_initialize_finishbreakpoints): Use
5347         gdb_pymodule_addobject.
5348         * python/py-frame.c (gdbpy_initialize_frames): Use
5349         gdb_pymodule_addobject.
5350         * python/py-function.c (gdbpy_initialize_functions): Use
5351         gdb_pymodule_addobject.
5352         * python/py-inferior.c (gdbpy_initialize_inferior): Use
5353         gdb_pymodule_addobject.
5354         * python/py-infthread.c (gdbpy_initialize_thread): Use
5355         gdb_pymodule_addobject.
5356         * python/py-objfile.c (gdbpy_initialize_objfile): Use
5357         gdb_pymodule_addobject.
5358         * python/py-param.c (gdbpy_initialize_parameters): Use
5359         gdb_pymodule_addobject.
5360         * python/py-progspace.c (gdbpy_initialize_pspace): Use
5361         gdb_pymodule_addobject.
5362         * python/py-symbol.c (gdbpy_initialize_symbols): Use
5363         gdb_pymodule_addobject.
5364         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5365         gdb_pymodule_addobject.
5366         * python/py-type.c (gdbpy_initialize_types): Use
5367         gdb_pymodule_addobject.
5368         * python/py-utils.c (gdb_pymodule_addobject): New function.
5369         * python/py-value.c (gdbpy_initialize_values): Use
5370         gdb_pymodule_addobject.
5371         * python/python-internal.h (gdb_pymodule_addobject): Declare.
5372         * python/python.c (_initialize_python): Use
5373         gdb_pymodule_addobject.
5374
5375 2013-05-20  Tom Tromey  <tromey@redhat.com>
5376
5377         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5378         * python/py-param.c (get_set_value, get_show_value): Use
5379         explicit decrefs.
5380         * python/python.c (start_type_printers, apply_type_printers):
5381         Use explicit decrefs.
5382
5383 2013-05-20  Tom Tromey  <tromey@redhat.com>
5384
5385         * python/py-evts.c (gdbpy_initialize_py_events): Don't
5386         incref the module.
5387
5388 2013-05-20  Tom Tromey  <tromey@redhat.com>
5389
5390         * python/python.c (gdbpy_run_events): Decref the result
5391         of PyObject_CallObject.
5392
5393 2013-05-20  Tom Tromey  <tromey@redhat.com>
5394
5395         * python/py-symtab.c (set_sal): Use
5396         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
5397         (symtab_and_line_to_sal_object): Update.
5398
5399 2013-05-20  Tom Tromey  <tromey@redhat.com>
5400
5401         * python/py-param.c (compute_enum_values): Decref 'item'.
5402
5403 2013-05-20  Tom Tromey  <tromey@redhat.com>
5404
5405         * mi/mi-main.c: Include python-internal.h.
5406         (mi_cmd_list_features): Check gdb_python_initialized.
5407         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5408         (python_inferior_exit, python_new_objfile, add_thread_object)
5409         (delete_thread_object, py_free_inferior): Check
5410         gdb_python_initialized.
5411         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5412         gdb_python_initialized.
5413         * python/py-type.c (save_objfile_types): Check
5414         gdb_python_initialized.
5415         * python/python-internal.h (gdb_python_initialized): Declare.
5416         * python/python.c (ensure_python_env): Throw exception if
5417         Python not initialized.
5418         (before_prompt_hook, source_python_script_for_objfile)
5419         (start_type_printers, apply_type_printers,
5420         free_type_printers): Check gdb_python_initialized.
5421         * varobj.c (varobj_get_display_hint)
5422         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5423         (install_new_value_visualizer, varobj_set_visualizer)
5424         (value_get_print_value): Check gdb_python_initialized.
5425
5426 2013-05-20  Tom Tromey  <tromey@redhat.com>
5427
5428         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5429         Check errors.
5430         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5431         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5432         Check errors.
5433         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5434         Check errors.
5435         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5436         Check errors.
5437         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5438         Check errors.
5439         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5440         init function to return 'int'.
5441         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5442         Return 'int'.  Check errors.
5443         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5444         Check errors.
5445         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5446         Return 'int'.  Check errors.
5447         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5448         Check errors.
5449         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5450         Check errors.
5451         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5452         Check errors.
5453         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5454         Check errors.
5455         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5456         Check errors.
5457         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5458         Check errors.
5459         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5460         Check errors.
5461         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5462         Check errors.
5463         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5464         Check errors.
5465         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5466         Check errors.
5467         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5468         Check errors.
5469         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5470         Check errors.
5471         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5472         Check errors.
5473         * python/python-internal.h (gdbpy_initialize_auto_load,
5474         gdbpy_initialize_values, gdbpy_initialize_frames,
5475         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5476         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5477         gdbpy_initialize_blocks, gdbpy_initialize_types,
5478         gdbpy_initialize_functions, gdbpy_initialize_pspace,
5479         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5480         gdbpy_initialize_finishbreakpoints,
5481         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5482         gdbpy_initialize_thread, gdbpy_initialize_inferior,
5483         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5484         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5485         gdbpy_initialize_signal_event,
5486         gdbpy_initialize_breakpoint_event,
5487         gdbpy_initialize_continue_event,
5488         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5489         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5490         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5491         * python/python.c (gdb_python_initialized): New global.
5492         (gdbpy_initialize_events): Return 'int'.  Check errors.
5493         (_initialize_python): Check errors.  Set
5494         gdb_python_initialized.
5495
5496 2013-05-20  Tom Tromey  <tromey@redhat.com>
5497
5498         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5499         Decref the reslut of PyObject_CallMethod.
5500
5501 2013-05-20  Tom Tromey  <tromey@redhat.com>
5502
5503         * python/py-event.c (gdbpy_initialize_event_generic): Return
5504         early if PyType_Ready fails.
5505
5506 2013-05-20  Tom Tromey  <tromey@redhat.com>
5507
5508         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5509         as 'default' in the switch.
5510
5511 2013-05-20  Tom Tromey  <tromey@redhat.com>
5512
5513         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
5514         get_addr_from_python calls out of TRY_CATCH.
5515         (infpy_write_memory, infpy_search_memory): Likewise.
5516         * python/py-utils.c (get_addr_from_python): Return negative
5517         value on error.  Use TRY_CATCH.
5518         * python/python-internal.h (get_addr_from_python): Use
5519         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5520
5521 2013-05-20  Tom Tromey  <tromey@redhat.com>
5522
5523         * python/py-event.c (evpy_emit_event): Decref the
5524         result of PyObject_CallFunctionObjArgs.
5525
5526 2013-05-20  Tom Tromey  <tromey@redhat.com>
5527
5528         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5529         Correctly decref.
5530
5531 2013-05-20  Tom Tromey  <tromey@redhat.com>
5532
5533         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5534
5535 2013-05-20  Tom Tromey  <tromey@redhat.com>
5536
5537         * python/py-event.h (gdbpy_initialize_event_generic): Use
5538         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5539         * python/py-evts.c (add_new_registry): Use
5540         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5541         * python/python-internal.h
5542         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5543
5544 2013-05-20  Tom Tromey  <tromey@redhat.com>
5545
5546         * python/py-arch.c (archpy_disassemble): Update.
5547         * python/py-type.c (typy_get_composite, typy_lookup_typename)
5548         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5549         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5550         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5551         macro.
5552         (GDB_PY_HANDLE_EXCEPTION): Update.
5553         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
5554
5555 2013-05-20  Tom Tromey  <tromey@redhat.com>
5556
5557         * python/python-internal.h (events_object_type): Remove.
5558
5559 2013-05-20  Tom Tromey  <tromey@redhat.com>
5560
5561         * python/py-event.h (evpy_emit_event): Use
5562         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5563         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5564         New macro.
5565
5566 2013-05-20  Tom Tromey  <tromey@redhat.com>
5567
5568         * py-evtregistry.c (create_event_object): Decref
5569         eventregistry_object if PyList_New fails.
5570
5571 2013-05-20  Tom Tromey  <tromey@redhat.com>
5572
5573         * py-cmd.c (gdbpy_string_to_argv): Check result of
5574         PyList_New.
5575
5576 2013-05-20  Tom Tromey  <tromey@redhat.com>
5577
5578         * python/python.c (before_prompt_hook): Add cleanup to
5579         decref 'hook'.
5580
5581 2013-05-20  Tom Tromey  <tromey@redhat.com>
5582
5583         * python/py-function.c (fnpy_init): Decref result of
5584         PyObject_GetAttrString.
5585
5586 2013-05-20  Tom Tromey  <tromey@redhat.com>
5587
5588         * python/py-threadevent.c (get_event_thread): Use
5589         CPYCHECKER_RETURNS_BORROWED_REF.
5590         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5591         New define.
5592         (pspace_to_pspace_object, objfile_to_objfile_object)
5593         (find_thread_object): Use it.
5594
5595 2013-05-20  Tom Tromey  <tromey@redhat.com>
5596
5597         * python/py-arch.c (arch_object_type): Use
5598         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5599         * python/py-block.c (block_syms_iterator_object_type):
5600         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5601         * python/py-bpevent.c (breakpoint_event_object_type):
5602         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5603         * python/py-cmd.c (cmdpy_object_type): Use
5604         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5605         * python/py-continueevent.c (continue_event_object_type):
5606         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5607         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5608         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5609         * python/py-events.h (thread_event_object_type):
5610         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5611         * python/py-evtregistry.c (eventregistry_object_type): Use
5612         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5613         * python/py-exitedevent.c (exited_event_object_type):
5614         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5615         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5616         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5617         * python/py-function.c (fnpy_object_type): Use
5618         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5619         * python/py-inferior.c (inferior_object_type, membuf_object_type):
5620         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5621         * python/py-infthread.c (thread_object_type): Use
5622         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5623         * python/py-lazy-string.c (lazy_string_object_type):
5624         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5625         * python/py-newobjfileevent.c (new_objfile_event_object_type):
5626         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5627         * python/py-objfile.c (objfile_object_type): Use
5628         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5629         * python/py-param.c (parmpy_object_type):
5630         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5631         * python/py-progspace.c (pspace_object_type):
5632         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5633         * python/py-signalevent.c (signal_event_object_type):
5634         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5635         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5636         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5637         * python/py-type.c (type_object_type, field_object_type)
5638         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5639         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5640         define.
5641         (value_object_type, block_object_type, symbol_object_type)
5642         (event_object_type, stop_event_object_type, breakpoint_object_type)
5643         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5644
5645 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
5646
5647         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5648         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5649
5650 2013-05-20  Doug Evans  <dje@google.com>
5651
5652         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
5653         For Fission.
5654         * dwarf2read.c (struct dwarf2_per_cu_data): New member
5655         reading_dwo_directly.
5656         (struct signatured_type): New member dwo_unit.
5657         (struct die_reader_specs): New member comp_dir.
5658         (create_signatured_type_table_from_index): Use malloc for
5659         all_type_units instead of objfile's obstack.
5660         (create_all_type_units): Ditto.
5661         (fill_in_sig_entry_from_dwo_entry): New function.
5662         (add_type_unit): New function.
5663         (lookup_dwo_signatured_type): New function.
5664         (lookup_dwp_signatured_type): New function.
5665         (lookup_signatured_type): New arg cu.  All callers updated.
5666         (init_cu_die_reader): Initialize comp_dir.
5667         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
5668         Change assert of matching type signatures to call error on mismatch.
5669         (lookup_dwo_unit): Add assert.
5670         (init_tu_and_read_dwo_dies): New function.
5671         (init_cutu_and_read_dies): Call it.
5672         (build_type_unit_groups): Handle case of no type unit groups created.
5673         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5674         (lookup_dwo_cutu): Tweak complaint.
5675         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5676         (dwarf2_per_objfile_free): Free all_type_units.
5677
5678 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5679
5680         * windows-nat.c (handle_unload_dll): Add missing empty line.
5681
5682 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5683
5684         * dwarf2read.c (prototyped_function_p): New function.
5685         (read_subroutine_type): Use it.
5686
5687 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5688
5689         * rs6000-aix-tdep.c: De-indent some example code provided
5690         as a comment.
5691
5692 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5693
5694         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5695         region is ok for a hardware watchpoint using the new ptrace interface
5696         on Power servers.
5697
5698 2013-05-17  Doug Evans  <dje@google.com>
5699
5700         * NEWS: Mention new maintenance commands check-symtabs, and
5701         expand-symtabs, and renamed check-psymtabs.
5702         * psymtab.c (maintenance_check_psymtabs): Renamed from
5703         maintenance_check_symtabs.  Only process already-expanded symbol
5704         tables.
5705         (_initialize_psymtab): Update.
5706         * symmisc.c (maintenance_check_symtabs): New function.
5707         (maintenance_expand_name_matcher): New function
5708         (maintenance_expand_file_matcher): New function
5709         (maintenance_expand_symtabs): New function.
5710         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5711         commands.
5712
5713 2013-05-17  Tom Tromey  <tromey@redhat.com>
5714
5715         * python/py-inferior.c (infpy_read_memory): Don't call
5716         PyErr_SetString if PyObject_New fails.
5717         * python/py-frame.c (frame_info_to_frame_object): Don't call
5718         PyErr_SetString if PyObject_New fails.
5719
5720 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
5721
5722         * acinclude.m4: Add check for dlopen in libdl.
5723         * configure.ac: Ditto.
5724         * configure: Regenerate.
5725
5726 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
5727
5728         * frame.c (frame_stash): Convert to htab.
5729         (frame_addr_hash): New function.
5730         (frame_addr_hash_eq): New function.
5731         (frame_stash_create): Convert function to create
5732         a hash table.
5733         (frame_stash_add): Convert function to add an entry to a hash
5734         table.
5735         (frame_stash_find): Convert function to search the hash table.
5736         (frame_stash_invalidate): Convert function to empty the hash
5737         table.
5738         (get_frame_id): Only add to stash if a frame_id is created.
5739         (_initialize_frame): Call frame_stash_create.
5740
5741 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
5742
5743         * configure.ac: Ensure MIG is available when building for GNU Hurd
5744         hosts.
5745         * configure: Regenerate.
5746
5747 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5748
5749         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5750
5751 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5752
5753         * ada-lang.c (ada_make_symbol_completion_list): Make sure
5754         all cleanups are done before returning from this function.
5755
5756 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5757
5758         * utils.h: #include "exceptions.h".
5759         (enum errors): Remove partial declaration.
5760
5761 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5762
5763         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5764         * gdbarch.h, gdbarch.c: Regenerate.
5765         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5766         handling.
5767
5768         * rs6000-aix-tdep.h: New file.
5769         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5770         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5771         "xml-utils.h".
5772         (struct field_info, struct ld_info_desc): New types.
5773         (ld_info32_desc, ld_info64_desc): New static constants.
5774         (struct ld_info): New type.
5775         (rs6000_aix_extract_ld_info): New function.
5776         (rs6000_aix_shared_library_to_xml): Likewise.
5777         (rs6000_aix_ld_info_to_xml): Likewise.
5778         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5779         (rs6000_aix_init_osabi): Add call to
5780         set_gdbarch_core_xfer_shared_libraries_aix.
5781         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5782         Remove "xml-utils.h" include.
5783         (LdInfo): Delete typedef.
5784         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5785         Delete macros.
5786         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5787         Adjust code accordingly.
5788         (rs6000_core_ldinfo): Delete, folded into
5789         rs6000_aix_core_xfer_shared_libraries_aix.
5790         (rs6000_xfer_shared_library): Delete.
5791         (rs6000_xfer_shared_libraries): Reimplement.
5792
5793 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
5794
5795         * record.c (record_goto_cmdlist): New.
5796         (cmd_record_goto): Split into this ...
5797         (cmd_record_goto_begin): ... this
5798         (cmd_record_goto_end): ... and this.
5799         (_initialize_record): Change "record goto" to prefix command.
5800         Add commands for "record goto begin" and "record goto end".
5801         Add an alias for "record goto start" to "record goto begin".
5802
5803 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5804
5805         * linespec.c (convert_linespec_to_sals): New comment for
5806         SOURCE_FILENAME assignment.
5807
5808 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5809
5810         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5811         internal_warning.
5812
5813 2013-05-14  Tom Tromey  <tromey@redhat.com>
5814
5815         * eval.c (parse_and_eval_long): Make 'exp' const.
5816         * value.h (parse_and_eval_long): Update.
5817
5818 2013-05-14  Tom Tromey  <tromey@redhat.com>
5819
5820         * ui-file.c (gdb_fopen): Make arguments const.
5821         * ui-file.h (gdb_fopen): Make arguments const.
5822
5823 2013-05-14  Tom Tromey  <tromey@redhat.com>
5824
5825         * remote.c (remote_set_trace_notes): Make arguments const.
5826         * target.c (update_current_target): Update cast.
5827         * target.h (to_set_trace_notes): Make arguments const.
5828
5829 2013-05-14  Tom Tromey  <tromey@redhat.com>
5830
5831         * go32-nat.c (go32_terminal_info): Make 'args' const.
5832         * inferior.h (child_terminal_info): Update.
5833         * inflow.c (child_terminal_info): Make 'args' const.
5834         * target.c (default_terminal_info): Make 'args' const.
5835         (debug_to_terminal_save_ours): Likewise.
5836         * target.h (struct target_ops) <to_terminal_info>: Make argument
5837         const.
5838
5839 2013-05-13  Tom Tromey  <tromey@redhat.com>
5840
5841         * gcore.c (create_gcore_bfd): Make 'filename' const.
5842         * gcore.h (create_gcore_bfd): Make 'filename' const.
5843         * record-full.c (record_full_save): Make 'recfilename' const.
5844         * target.c (target_save_record): Make 'filename' const.
5845         * target.h (struct target_ops) <to_save_record>: Make 'filename'
5846         const.
5847         (target_save_record): Likewise.
5848
5849 2013-05-13  Tom Tromey  <tromey@redhat.com>
5850
5851         PR gdb/15338:
5852         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5853         ranges section has been read.
5854
5855 2013-05-13  Tom Tromey  <tromey@redhat.com>
5856
5857         PR exp/15364:
5858         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5859         STRUCTOP_PTR>: Return a not_lval value for
5860         EVAL_AVOID_SIDE_EFFECTS.
5861         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5862         for EVAL_AVOID_SIDE_EFFECTS.
5863
5864 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
5865
5866         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5867         floating point registers to register type before storing
5868         value.
5869         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5870         Likewise.
5871
5872 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5873             Tom Tromey  <tromey@redhat.com>
5874
5875         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5876         New functions.
5877         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5878         Declare.
5879         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5880         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5881         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5882         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5883
5884 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
5885             Tom Tromey  <tromey@redhat.com>
5886
5887         PR build/15414:
5888         * configure: Rebuild.
5889         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5890         with -Wno-format.
5891
5892 2013-05-10  Pedro Alves  <palves@redhat.com>
5893
5894         * remote.c (_initialize_remote): Fix spelling of
5895         qXfer:traceframe-info:read packet in packet config command.
5896
5897 2013-05-10  David Taylor  <dtaylor@emc.com>
5898
5899         PR remote/15455
5900
5901         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5902         "QTro" at start of packet.
5903
5904 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5905
5906         * solib-aix.c (solib_aix_relocate_section_addresses):
5907         For the .bss section action, apply the same offset as
5908         the .data section.
5909
5910 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5911
5912         * solib-aix.c (solib_aix_relocate_section_addresses):
5913         Remove FIXME comment.
5914
5915 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5916
5917         PR tdep/15420:
5918         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5919         New functions, directly copied from sparc-sol-thread.c.
5920         * sparc-sol-thread.c: Delete.
5921         * configure.ac: Remove code handling sparc-solaris-thread.c.
5922         * configure: Regenerate.
5923
5924 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
5925
5926         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5927         filter logic.
5928         (backtrace_command): Add "no-filters" option parsing.
5929         (_initialize_stack): Alter help to reflect "no-filters" option.
5930         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5931         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5932         (py-frame.o): Add target
5933         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5934         filter files.
5935         * python/python.h: Add new frame filter constants, and flag enum.
5936         (apply_frame_filter): Add definition.
5937         * python/python.c (apply_frame_filter): New non-Python
5938         enabled function.
5939         * python/py-utils.c (py_xdecref): New function.
5940         (make_cleanup_py_xdecref): Ditto.
5941         * python/py-objfile.c: Declare frame_filters dictionary.
5942         (objfpy_dealloc): Add frame_filters dealloc.
5943         (objfpy_new): Initialize frame_filters attribute.
5944         (objfile_to_objfile_object): Ditto.
5945         (objfpy_get_frame_filters): New function.
5946         (objfpy_set_frame_filters): New function.
5947         * python/py-progspace.c: Declare frame_filters dictionary.
5948         (pspy_dealloc): Add frame_filters dealloc.
5949         (pspy_new): Initialize frame_filters attribute.
5950         (pspacee_to_pspace_object): Ditto.
5951         (pspy_get_frame_filters): New function.
5952         (pspy_set_frame_filters): New function.
5953         * python/py-framefilter.c: New file.
5954         * python/lib/gdb/command/frame_filters.py: New file.
5955         * python/lib/gdb/frames.py: New file.
5956         * python/lib/gdb/__init__.py: Initialize global frame_filters
5957         dictionary
5958         * python/lib/gdb/FrameDecorator.py: New file.
5959         * python/lib/gdb/FrameIterator.py: New file.
5960         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5961         * mi/mi-cmds.h: Declare.
5962         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5963         --no-frame-filter logic, and Python frame filter logic.
5964         (stack_enable_frame_filters): New function.
5965         (parse_no_frame_option): Ditto.
5966         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5967         filter logic.
5968         (mi_cmd_stack_list_locals): Ditto.
5969         (mi_cmd_stack_list_args): Ditto.
5970         (mi_cmd_stack_list_variables): Ditto.
5971         * NEWS: Add frame filter note.
5972
5973 2013-05-09  Doug Evans  <dje@google.com>
5974
5975         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5976         All callers updated.
5977         (syms_from_objfile): Ditto.  Make static.
5978         (symbol_file_add_with_addrs): Renamed from
5979         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
5980         num_offsets.  All callers updated.
5981         * symfile.h (syms_from_objfile): Delete.
5982
5983         * symfile.c (decrement_reading_symtab): Add assert.
5984         (increment_reading_symtab): Ditto.
5985
5986 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
5987
5988         * source.c (forward_search_command): Replace call to getc
5989         by call to fgetc.
5990         (reverse_search_command): Likewise.
5991
5992 2013-05-08  Doug Evans  <dje@google.com>
5993
5994         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5995         matching test.
5996
5997 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5998
5999         * sol-thread.c (info_cb): Factorize the code a little.
6000
6001 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6002
6003         * sol-thread.c (info_cb): Rework the output of the "maintenance
6004         info sol-threads" command a bit.
6005
6006 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6007
6008         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6009         Replace ti.ti_startfunc by ti.ti_pc.
6010
6011 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
6012
6013         * solib-aix.c (solib_aix_free_library_list): New function
6014         for the case where HAVE_LIBEXPAT is not defined.
6015
6016 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6017
6018         PR breakpoints/15413:
6019         * breakpoint.c (condition_completer): Simplify the code to
6020         disconsider multiple locations of breakpoints when completing the
6021         "condition" command.
6022
6023 2013-05-07  Pierre Muller  <muller@sourceware.org>
6024
6025         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6026         instead of <sys/wait.h>.
6027
6028 2013-05-07  Pierre Muller  <muller@sourceware.org>
6029
6030         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6031         trailing new line from warning message.
6032
6033 2013-05-07  Pierre Muller  <muller@sourceware.org>
6034
6035         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6036         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6037
6038 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
6039
6040         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6041         error message (ARI fix).
6042
6043 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
6044
6045         * features/library-list-aix.dtd: Replace library-list by
6046         library-list-aix.
6047         * rs6000-nat.c: Replace library-list by library-list-aix
6048         throughout.
6049         * solib-aix.c: Likewise.
6050
6051 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
6052
6053         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6054         Renames TARGET_OBJECT_AIX_LIBRARIES.
6055         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6056         TARGET_OBJECT_LIBRARIES_AIX throughout.
6057         * solib-aix.c: Likwise.
6058
6059 2013-05-07  Yao Qi  <yao@codesourcery.com>
6060
6061         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6062         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6063
6064 2013-05-07  Yao Qi  <yao@codesourcery.com>
6065
6066         * solib-dsbt.c (enable_break): Declare.
6067         (dsbt_current_sos): Remove call to enable_break2.
6068         (enable_break2): Rename to enable_break.  Set solib breakpoint
6069         on '_dl_debug_state'.
6070         (enable_break): Remove.
6071
6072 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
6073
6074         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6075         debug state prior to replicating existing hardware watchpoints or
6076         breakpoints.
6077
6078 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
6079
6080         * gcore.c (gcore_create_callback): Ignore sections with
6081         separate_debug_objfile_backlink != NULL.
6082
6083 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
6084             Andrew Jenner  <andrew@codesourcery.com>
6085             Chung-Lin Tang  <cltang@codesourcery.com>
6086             Julian Brown  <julian@codesourcery.com>
6087
6088         Based on the nios2-elf port from Altera Corporation.
6089
6090         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6091         nios2-linux-tdep.o.
6092         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6093         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6094         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6095         * nios2-tdep.h: New.
6096         * nios2-tdep.c: New.
6097         * nios2-linux-tdep.c: New.
6098         * features/Makefile (WHICH): Add nios2-linux.
6099         (nios2-linux-expedite): Set.
6100         * features/nios2-cpu.xml: New.
6101         * features/nios2.xml: New.
6102         * features/nios2-linux.xml: New.
6103         * features/nios2.c: New (autogenerated).
6104         * features/nios2-linux.c: New (autogenerated).
6105         * regformats/nios2-linux.dat: New (autogenerated).
6106         * NEWS (Changes since GDB 7.6): Add new Nios II targets
6107         and commands.
6108
6109 2013-05-06  Doug Evans  <dje@google.com>
6110
6111         * symfile.c: Whitespace cleanup.
6112
6113         * solist.h (struct target_so_ops): New member clear_so.
6114         * solib-svr4.c (svr4_clear_so): New function.
6115         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6116         * solib.c (clear_so): Renamed from free_so_symbols.
6117         All callers updated.  Call target clear_so if it exists.
6118
6119 2013-05-06  Tom Tromey  <tromey@redhat.com>
6120
6121         * ada-lang.c (ada_value_primitive_packed_val): Don't
6122         call value_incref.
6123         * value.c (set_value_parent): Incref the new parent and decref
6124         the old parent.
6125         (value_copy, value_primitive_field): Use set_value_parent.
6126
6127 2013-05-06  Tom Tromey  <tromey@redhat.com>
6128
6129         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6130         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6131         if needed.
6132         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6133         * dwarf2read.c (write_constant_as_bytes)
6134         (dwarf2_fetch_constant_bytes): New functions.
6135
6136 2013-05-06  Tom Tromey  <tromey@redhat.com>
6137
6138         * dwarf2read.c (dwarf2_const_value_data): Remove unused
6139         parameters.
6140         (dwarf2_const_value_attr): Update.
6141
6142 2013-05-06  Tom Tromey  <tromey@redhat.com>
6143
6144         * somread.c (som_symfile_offsets): Add 'const' to addrs.
6145         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6146         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6147         Remove declaration.
6148
6149 2013-05-06  Tom Tromey  <tromey@redhat.com>
6150
6151         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6152         objfile's obstack.
6153
6154 2013-05-06  Doug Evans  <dje@google.com>
6155
6156         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6157         * stabsread.h (process_one_symbol): Update declaration.
6158         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6159         * elfread.c (elf_symfile_relocate_probe): Ditto.
6160         * psymtab.c (relocate_psymtabs): Ditto.
6161         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6162         (objfile_relocate): Ditto.
6163         * objfiles.h (objfile_relocate): Update declaration.
6164         * symfile.c (relative_addr_info_to_section_offsets): Constify
6165         addrs parameter.
6166         (default_symfile_offsets): Ditto.
6167         (syms_from_objfile_1): Constify offsets parameter.
6168         (syms_from_objfile): Ditto.
6169         (symbol_file_add_with_addrs_or_offsets): Ditto.
6170         (symfile_map_offsets_to_segments): Constify data parameter.
6171         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6172         delta parameters of member relocate.
6173         (struct sym_probe_fns): Constify new_offsets,
6174         delta parameters of member sym_relocate_probe.
6175         (struct sym_fns): Constify section_addr_info parameter of member
6176         sym_offsets.
6177         (relative_addr_info_to_section_offsets): Update declaration.
6178         (default_symfile_offsets): Ditto.
6179         (syms_from_objfile): Ditto.
6180         (symfile_map_offsets_to_segments): Ditto.
6181
6182         * symfile.c (syms_from_objfile_1): Use correct section count when
6183         objfile->sf == NULL.
6184
6185 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
6186
6187         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6188
6189 2013-05-06  Doug Evans  <dje@google.com>
6190
6191         * psympriv.h (struct partial_symtab): Augment comment for member
6192         section_offsets.
6193
6194 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6195
6196         Reimplement shared library support on ppc-aix...
6197         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6198         * features/library-list-aix.dtd: New file.
6199         * solib-aix.h, solib-aix.c: New file.
6200         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6201         (rs6000_find_toc_address_hook): Delete.
6202         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6203         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6204         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
6205         "xml-utils.h".
6206         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6207         (vmap_symtab, fixup_breakpoints): Delete.
6208         (rs6000_xfer_shared_libraries): New function.
6209         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6210         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6211         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6212         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6213         (rs6000_xfer_shared_library): New function.
6214         (find_toc_address): Delete.
6215         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6216         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6217         * xcoffread.c (record_minimal_symbol): Reloate symbol address
6218         before creating minimal symbol.  Adjust function description
6219         accordingly.
6220         (scan_xcoff_symtab): Replace call to
6221         prim_record_minimal_symbol_and_info by call to
6222         record_minimal_symbol.
6223         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6224         around default_symfile_offsets.
6225         * configure.tgt: Add solib-aix.o to gdb_target_obs for
6226         powerpc-aix targets.
6227         * config/rs6000/nm-rs6000.h: Delete.
6228         * config/powerpc/aix.mh (NAT_FILE): Delete.
6229         (NATDEPFILES): Remove xcoffsolib.o.
6230         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6231         (ALL_TARGET_OBS): Add solib-aix.o.
6232         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6233         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
6234         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
6235         * xcoffsolib.h, xcoffsolib.c: Delete.
6236
6237         * solib.c (reload_shared_libraries): Remove reference to
6238         SOLIB_CREATE_INFERIOR_HOOK.
6239         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6240         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6241         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6242         comment.
6243         * corelow.c (deprecated_core_resize_section_table): Delete.
6244         * exec.c: Remove include of xcoffsolib.h".
6245         (map_vmap, vmap): Delete.
6246         (exec_close_1): Remove references to vmap.
6247         (exec_file_attach): Remove vmap handling code, and reference
6248         to DEPRECATED_IBM6000_TARGET.
6249         (bfdsec_to_vmap): Delete.
6250         (exec_files_info): Remove block of code handling VMAP.
6251         * infcmd.c (post_create_inferior): Remove reference to
6252         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6253         * infrun.c (follow_exec): Remove reference to
6254         SOLIB_CREATE_INFERIOR_HOOK.
6255         * stack.c (print_frame): Remove reference to PC_SOLIB.
6256         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6257         (dsbt_relocate_main_executable): Likewise.
6258         * solib-frv.c (frv_current_sos): Likewise.
6259
6260 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6261
6262         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6263         to target_write_memory and target_read_memory.
6264
6265 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6266
6267         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6268         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6269
6270 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6271
6272         * darwin-nat.c: Replace all "%x" instances in format strings
6273         into "0x%x" throughout.
6274
6275 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6276
6277         * darwin-nat.c (darwin_mourn_inferior): Replace call to
6278         gdb_assert by call to MACH_CHECK_ERROR.
6279         (darwin_attach_pid): Raise an error rather than a failed
6280         assertion when various system calls failed.  Report a warning
6281         instead of raising a failed assertion when PREV_NOT is not NULL
6282         after call to mach_port_request_notification.
6283         (darwin_ptrace_me): Raise an error rather than a failed
6284         assertion when read returns nonzero.
6285
6286 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6287
6288         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6289
6290 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6291
6292         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6293
6294 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6295
6296         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6297         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6298         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
6299         a stale cleanup.  Fix double free of NAME.
6300
6301 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
6302
6303         * windows-nat.c (windows_delete_thread): Accept an additional
6304         argument, the thread's exit code, and announce thread death when
6305         print_thread_events is non-zero and we are deleting a thread that
6306         is not the main thread.
6307         (get_windows_debug_event): Pass thread exit code to
6308         windows_delete_thread.
6309
6310 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6311
6312         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6313         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6314         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6315         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6316         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6317         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6318         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6319         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6320         (gdbarch_tdep): New struct.
6321         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6322         E_NUM_REGS.
6323         (v850e3v5_register_name): New function.
6324         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6325         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
6326         code handling the struct return conventions for the RH850 ABI.
6327         Update all callers.
6328         (v850_eight_byte_align_p): New function.
6329         (v850_push_call_dummy): Push structs by value, not by reference
6330         for the RH850 ABI.  Add support for eight byte alignment.
6331         (v850_dbtrap_breakpoint_from_pc): New function.
6332         (v850_gdbarch_init): Add ABI detection code.  Register
6333         v850e3v5_register_name for the v850e3v5 architecture.  Set the
6334         number of registers for v850e3v5.  Register
6335         v850_dbtrap_breakpoint_from_pc as appropriate.
6336         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6337
6338 2013-05-03  Doug Evans  <dje@google.com>
6339
6340         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6341         of bfd_count_sections.
6342         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6343         * symfile.c (default_symfile_offsets): Ditto.
6344         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
6345         one entry, not bfd_count_sections entries.
6346
6347 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6348
6349         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6350         `save' and `restore' register groups.  Don't include SPL
6351         or SPH in these groups.
6352         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
6353         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
6354         RL78_ES_REGNUM, and RL78_CS_REGNUM.
6355         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
6356         dwarf2_append_unwinders().
6357
6358 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6359
6360         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6361         ignore SIGINT and SIGTRAP in case these internal signals are
6362         caught explicitely.
6363
6364 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6365
6366         * darwin-nat.c (darwin_read_write_inferior): Change types
6367         of parameters rdaddr and wraddr to "gdb_byte *". Change type
6368         of copy_count to "mach_msg_type_number_t".
6369         (darwin_read_dyld_info): Change type of parameter
6370         rdaddr to "gdb_byte *".
6371
6372 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6373
6374         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6375         of &info->load_map from "char *" to "gdb_byte *".
6376
6377 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6378
6379         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6380         from "char *" to "gdb_byte *".
6381         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6382
6383 2013-04-30  Doug Evans  <dje@google.com>
6384
6385         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6386         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6387         DWO stub.  If DWO isn't found, just use stub.
6388         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6389
6390         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6391         calling init_cutu_and_read_dies.
6392
6393 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6394
6395         * target-descriptions.c (maint_print_c_tdesc_cmd):
6396         Add case to parse structures as register types and
6397         bitfields.
6398
6399 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6400
6401         * MAINTAINERS (Write After Approval): Add myself to the list.
6402
6403 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6404
6405         * sol-thread.c (rw_common): Change type of parameter "buf"
6406         to "gdb_byte *".
6407         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6408         rw_common to "gdb_byte *" instead of "char *".
6409
6410 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6411
6412         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6413         of local variable msym to const struct bound_minimal_symbol.
6414         Adjust use accordingly.
6415         [ti.ti_state == TD_THR_SLEEP]: Likewise.
6416
6417 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
6418
6419         * i386gnu-nat.c (CREG_OFFSET): New macro.
6420         (creg_offset): New array.
6421         (CREG_ADDR): Use creg_offset instead of reg_offset.
6422
6423 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6424
6425         * mep-tdep.c (mep_write_pc): Delete.
6426         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6427         Add call to set_gdbarch_pc_regnum.
6428
6429 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6430
6431         * common/filestuff.c: Replace #include <dirent.h> by
6432         #include "gdb_dirent.h".
6433
6434 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6435
6436         * common/filestuff.c: Replace #include <sys/stat.h> by
6437         #include "gdb_stat.h".
6438
6439 2013-04-29  Pierre Muller  <muller@sourceware.org>
6440
6441         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6442         editCase function rule.
6443         (get_DW_AT_signature_type): Likewise.
6444
6445 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6446
6447         * m32r-tdep.c (m32r_write_pc): Delete.
6448         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6449         Add call to set_gdbarch_pc_regnum.
6450
6451 2013-04-29  Pierre Muller  <muller@sourceware.org>
6452
6453         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6454
6455 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6456
6457         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6458
6459 2013-04-28  Yao Qi  <yao@codesourcery.com>
6460
6461         * solib-dsbt.c (fetch_loadmap): Re-indent.
6462         (displacement_from_map, enable_break2): Likewise.
6463         (dsbt_relocate_section_addresses): Likewise.
6464
6465 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
6466
6467         GDB 7.6 released.
6468
6469 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
6470
6471         PR corefiles/14983:
6472         * dwarf2read.c (process_full_comp_unit): Always create a static
6473         block.
6474
6475 2013-04-25  Hui Zhu  <hui@codesourcery.com>
6476
6477         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6478         to loc->cmd_bytecode.
6479
6480 2013-04-24  Doug Evans  <dje@google.com>
6481
6482         * dwarf2read.c (setup_type_unit_groups): Fix comment.
6483
6484 2013-04-22  Keith Seitz  <keiths@redhat.com>
6485
6486         * tracepoint.c (trace_save):  Call the writer's start method.
6487
6488 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
6489
6490         PR gdb/10462
6491         * cli/cli-decode.c (lookup_command): Show an error if there is no space
6492         before argument.
6493
6494 2013-04-23  Tom Tromey  <tromey@redhat.com>
6495
6496         * common/filestuff.c: Check USE_WIN32API before including
6497         sys/socket.h.
6498         (HAVE_F_GETFD): New define.
6499         (mark_cloexec): Check HAVE_F_GETFD.
6500         (gdb_open_cloexec): Change 'mode' to unsigned long.
6501         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6502         (gdb_pipe_cloexec): Check HAVE_PIPE.
6503         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6504         long.
6505
6506 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6507
6508         PR gdb/15293
6509         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6510
6511 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6512
6513         PR gdb/15165
6514         * breakpoint.c (dprintf_print_recreate): New.
6515         (save_breakpoints): Let it not save dprintf commands.
6516         (initialize_breakpoint_ops): Set dprintf_print_recreate.
6517
6518 2013-04-22  Tom Tromey  <tromey@redhat.com>
6519
6520         PR gdb/7912:
6521         * Makefile.in (SFILES): Add filestuff.c
6522         (COMMON_OBS): Add filestuff.o.
6523         (filestuff.o): New target.
6524         * auto-load.c (auto_load_objfile_script_1): Use
6525         gdb_fopen_cloexec.
6526         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6527         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6528         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6529         * common/agent.c (gdb_connect_sync_socket): Use
6530         gdb_socket_cloexec.
6531         * common/filestuff.c: New file.
6532         * common/filestuff.h: New file.
6533         * common/linux-osdata.c (linux_common_core_of_thread)
6534         (command_from_pid, commandline_from_pid, print_source_lines)
6535         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6536         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6537         gdb_fopen_cloexec.
6538         * common/linux-procfs.c (linux_proc_get_int)
6539         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6540         * config.in, configure: Rebuild.
6541         * configure.ac: Don't check for sys/socket.h.  Check for
6542         fdwalk, pipe2.
6543         * corelow.c (core_open): Use gdb_open_cloexec.
6544         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6545         * fork-child.c (fork_inferior): Call close_most_fds.
6546         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6547         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6548         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6549         Use gdb_fopen_cloexec.
6550         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6551         gdb_open_cloexec.
6552         (linux_async_pipe): Use gdb_pipe_cloexec.
6553         * remote-fileio.c (remote_fileio_func_open): Use
6554         gdb_open_cloexec.
6555         * remote.c (remote_file_put, remote_file_get): Use
6556         gdb_fopen_cloexec.
6557         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6558         close_most_fds.
6559         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6560         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6561         * solib.c (solib_find): Use gdb_open_cloexec.
6562         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6563         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6564         (tfile_open): Use gdb_open_cloexec.
6565         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6566         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6567         * xml-support.c (xml_fetch_content_from_file): Use
6568         gdb_fopen_cloexec.
6569         * main.c (captured_main): Call notice_open_fds.
6570
6571 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6572
6573         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6574         'char *' to 'gdb_byte *'.
6575         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6576         'gdb_byte'.
6577
6578 2013-04-22  Yao Qi  <yao@codesourcery.com>
6579
6580         * infrun.c: Fix typo in comment.
6581
6582 2013-04-22  Andrew Haley  <aph@redhat.com>
6583
6584         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6585         instead of "long".
6586
6587 2013-04-20  Yao Qi  <yao@codesourcery.com>
6588
6589         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6590         'char *' to 'gdb_byte *'.  Cast the return value of
6591         'bt_ctf_get_char_array' to 'gdb_byte *'.
6592
6593 2013-04-19  Pedro Alves  <palves@redhat.com>
6594
6595         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6596         -Wpointer-sign.
6597         * configure: Regenerate.
6598
6599 2013-04-19  Pedro Alves  <palves@redhat.com>
6600
6601         * ser-tcp.c (net_read_prim): Cast second argument to recv to
6602         'void *'.
6603
6604 2013-04-19  Pedro Alves  <palves@redhat.com>
6605
6606         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6607         Change type of 'myaddr' parameter to gdb_byte pointer.
6608         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
6609         to 'long long' pointer instead of to 'unsigned long long'.
6610         (monitor_write_memory_block, monitor_read_memory_single)
6611         (monitor_read_memory): Change type of 'myaddr' parameter to
6612         gdb_byte pointer.
6613
6614 2013-04-19  Pedro Alves  <palves@redhat.com>
6615
6616         * record.c (validate_history_size): Make parameter 'setting'
6617         unsigned.
6618
6619 2013-04-19  Pedro Alves  <palves@redhat.com>
6620
6621         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6622         to 'gdb_byte *'.
6623
6624 2013-04-19  Pedro Alves  <palves@redhat.com>
6625
6626         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6627         local to int.
6628
6629 2013-04-19  Pedro Alves  <palves@redhat.com>
6630
6631         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6632         * ada-tasks.c (read_fat_string_value): Likewise.
6633
6634 2013-04-19  Pedro Alves  <palves@redhat.com>
6635
6636         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6637         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
6638         'offset', and adjust.
6639
6640 2013-04-19  Pedro Alves  <palves@redhat.com>
6641
6642         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6643         (read_index_from_section): Add cast to 'char *'.
6644
6645 2013-04-19  Pedro Alves  <palves@redhat.com>
6646
6647         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6648
6649 2013-04-19  Pedro Alves  <palves@redhat.com>
6650
6651         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6652
6653 2013-04-19  Pedro Alves  <palves@redhat.com>
6654
6655         * record-full.c (record_full_get_bookmark): Change local 'ret'
6656         type to char * and add cast to gdb_byte *.
6657         (record_full_goto_bookmark): Handle 'bookmark' argument as a
6658         string.
6659         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6660
6661 2013-04-19  Pedro Alves  <palves@redhat.com>
6662
6663         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6664         * python/py-prettyprint.c (print_string_repr): Change type of
6665         'output' local to char *.  Add cast to gdb_byte * in
6666         LA_PRINT_STRING call.
6667         (print_children): Change type of 'output' local to char *.
6668         * python/py-value.c (valpy_string): Add cast to const char * in
6669         PyUnicode_Decode call.
6670
6671 2013-04-19  Pedro Alves  <palves@redhat.com>
6672
6673         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6674         and change its type to 'const char *'.  Adjust.
6675         (mips_send_packet): Add cast to 'char *', and remove cast to
6676         'unsigned char *'.
6677         (mips_receive_packet): Remove cast to 'unsigned char *'.
6678         (mips_load_srec): Use bfd_byte.
6679         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6680         (pmon_checkset): Make 'value' parameter unsigned.
6681
6682 2013-04-19  Pedro Alves  <palves@redhat.com>
6683
6684         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6685
6686 2013-04-19  Pedro Alves  <palves@redhat.com>
6687
6688         * remote.c (remote_write_bytes_aux, compare_sections_command)
6689         (remote_read_qxfer)
6690         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6691         (remote_hostio_readlink, remote_bfd_iovec_pread)
6692         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6693         binary buffer, and char when buffer is used as string.
6694         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6695         (trace_save, tfile_open, traceframe_walk_blocks)
6696         (tfile_fetch_registers): Likewise.
6697
6698 2013-04-19  Pedro Alves  <palves@redhat.com>
6699
6700         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6701         buffer and size_t size.  Adjust.
6702         * ser-base.h (ser_base_write): Adjust.
6703         * ser-go32.c (cnts): Change type to size_t.
6704         (dos_write): Change prototype -- take 'void *'
6705         buffer and size_t size.  Adjust.
6706         (dos_info): Print elements of 'cnts' as unsigned long.
6707         * serial.c (serial_write): Likewise.
6708         * serial.h (serial_write): Adjust.
6709         (struct serial_ops) <write>: Change prototype -- take 'void *'
6710         buffer and size_t size.  Adjust.
6711
6712 2013-04-19  Pedro Alves  <palves@redhat.com>
6713
6714         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6715         gdb_byte *.
6716         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6717
6718 2013-04-19  Pedro Alves  <palves@redhat.com>
6719
6720         * alpha-tdep.c (alpha_extract_return_value): Use
6721         regcache_cooked_read_unsigned to read 'v0'.
6722
6723 2013-04-19  Pedro Alves  <palves@redhat.com>
6724
6725         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6726         parameters 'at', 'as' and 'offset' to uint32_t.
6727
6728 2013-04-19  Pedro Alves  <palves@redhat.com>
6729
6730         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6731         'is64' to signed 'int'.
6732
6733 2013-04-19  Pedro Alves  <palves@redhat.com>
6734
6735         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6736         parameter to int *.
6737
6738 2013-04-19  Pedro Alves  <palves@redhat.com>
6739
6740         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6741         'insnbuf' buffer type to unsigned int[].
6742
6743 2013-04-19  Pedro Alves  <palves@redhat.com>
6744
6745         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6746
6747 2013-04-19  Pedro Alves  <palves@redhat.com>
6748
6749         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6750         unsigned long *.
6751
6752 2013-04-19  Pedro Alves  <palves@redhat.com>
6753
6754         * alpha-tdep.c (heuristic_fence_post): Change type to int.
6755         (alpha_heuristic_proc_start): Adjust to check -1 instead of
6756         UINT_MAX.
6757         * mips-tdep.c (heuristic_fence_post): Change type to int.
6758         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6759
6760 2013-04-19  Pedro Alves  <palves@redhat.com>
6761
6762         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6763         (struct gdbarch_tdep) <cris_version>: Make unsigned.
6764         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6765
6766 2013-04-19  Pedro Alves  <palves@redhat.com>
6767
6768         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
6769         it to get a string view of the byte buffer.
6770         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6771         type to gdb_byte *.  Adjust.
6772         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6773         Change local to char *.
6774         * solib-darwin.c (find_program_interpreter): Change return type to
6775         char *.  Adjust.
6776         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6777         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6778         * solib-frv.c (enable_break2): Change local 'buf' to char *.
6779         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6780         * solib-svr4.c (find_program_interpreter): Change return type to
6781         char *.  Adjust.
6782         (enable_break): Change local 'interp_name' to char *.
6783         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6784         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6785         (spu_pseudo_register_write_spu): Use char for string buffer.
6786         Adjust.
6787         (info_spu_event_command, info_spu_signal_command): Add casts to
6788         'char *'.
6789
6790 2013-04-19  Pedro Alves  <palves@redhat.com>
6791
6792         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6793         gdb_byte[].
6794         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6795         * ada-lang.c (ada_value_assign): Use gdb_byte.
6796         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6797         (alphanbsd_sigtramp_offset): Use gdb_byte.
6798         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6799         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6800         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6801         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6802         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6803         * arm-tdep.c (arm_stub_unwind_sniffer)
6804         (arm_displaced_init_closure): Use gdb_byte.
6805         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6806         (arm_default_thumb_le_breakpoint)
6807         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6808         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6809         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6810         * arm-wince-tdep.c (arm_wince_le_breakpoint)
6811         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6812         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6813         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6814         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6815         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6816         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6817         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6818         (cris_store_return_value, cris_extract_return_value): Use
6819         gdb_byte.
6820         (constraint): Change type of parameter to char * from signed
6821         char*.  Use gdb_byte.
6822         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6823         of local buffer to gdb_byte *.
6824         * dwarf2read.c (read_index_from_section): Use gdb_byte.
6825         (create_dwp_hash_table): Change type of locals to gdb_byte *.
6826         (add_address_entry): Change type of local buffer to gdb_byte[].
6827         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6828         (frv_push_dummy_call): Use gdb_byte.
6829         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6830         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6831         (hppa_hpux_supply_save_state): Use gdb_byte.
6832         * hppa-tdep.c (hppa32_push_dummy_call)
6833         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6834         * ia64-tdep.c (extract_bit_field, replace_bit_field)
6835         (slotN_contents, replace_slotN_contents): Change type of parameter
6836         to gdb_byte *.
6837         (fetch_instruction, ia64_pseudo_register_write)
6838         (ia64_register_to_value, ia64_value_to_register)
6839         (ia64_extract_return_value, ia64_store_return_value)
6840         (ia64_push_dummy_call): Use gdb_byte.
6841         * m32c-tdep.c (m32c_return_value): Remove cast.
6842         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6843         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6844         gdb_byte.
6845         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6846         * mn10300-tdep.c (mn10300_store_return_value)
6847         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6848         gdb_byte.
6849         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6850         (moxie_process_record): Remove casts.
6851         * ppc-ravenscar-thread.c (supply_register_at_address)
6852         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6853         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6854         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6855         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6856         * remote.c (compare_sections_command): Use gdb_byte.
6857         * score-tdep.c (score7_free_memblock): Change type of parameter to
6858         gdb_byte *.
6859         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6860         gdb_byte *.  Use gdb_byte.
6861         (sh_push_dummy_call_fpu): Use gdb_byte.
6862         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6863         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6864         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6865         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6866         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6867         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6868         (sh64_store_return_value, sh64_register_convert_to_virtual):
6869         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6870         (sh64_pseudo_register_write): Use gdb_byte.
6871         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6872         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
6873         buffer.
6874         (irix_current_sos): Use gdb_byte.
6875         * solib-som.c (som_current_sos): Use gdb_byte.
6876         * sparc-ravenscar-thread.c (supply_register_at_address)
6877         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6878         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6879         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6880         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6881         'gdb_byte *'.
6882         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6883         'gdb_byte *'.
6884         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6885         * xstormy16-tdep.c (xstormy16_extract_return_value)
6886         (xstormy16_store_return_value): Change parameter type to
6887         'gdb_byte *'.  Adjust.
6888         (xstormy16_push_dummy_call): Use gdb_byte.
6889         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6890         (call0_analyze_prologue, execute_code): Use gdb_byte.
6891
6892 2013-04-19  Vladimir Kargov <kargov@gmail.com>
6893             Pedro Alves  <palves@redhat.com>
6894
6895         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6896         value contents.
6897
6898 2013-04-17  Doug Evans  <dje@google.com>
6899
6900         * dwarf2read.c (struct signatured_type): New member type.
6901         (struct attribute): Replace member signatured_type with signature.
6902         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6903         (read_call_site_scope): Call follow_die_ref instead of
6904         follow_die_ref_or_sig.
6905         (read_structure_type): Rewrite handling of signatured types.
6906         (read_enumeration_type): Ditto.
6907         (read_attribute_value): Update.
6908         (build_error_marker_type): New function.
6909         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
6910         Don't call error for bad types, just build an error marker type.
6911         (dump_die_shallow): Update.
6912         (follow_die_sig_1): Renamed from follow_die_sig.
6913         Don't call error for bad types, instead return NULL.
6914         (follow_die_sig): New function.
6915         (get_signatured_type, get_DW_AT_signature_type): New functions.
6916
6917 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
6918
6919         * aarch64-tdep.c (aarch64_write_pc): Removed.
6920         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6921         function.
6922
6923 2013-04-17  Yao Qi  <yao@codesourcery.com>
6924
6925         * top.c (print_gdb_configuration): Print configure-time
6926         parameter on using libbabeltrace or not.
6927
6928 2013-04-16  Pedro Alves  <palves@redhat.com>
6929
6930         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6931
6932 2013-04-16  Pedro Alves  <palves@redhat.com>
6933
6934         * common/glibc_thread_db.h: Update from upstream glibc
6935         (git 568035b7874a099087b77f7bba3e36a1173787b0).
6936
6937 2013-04-16  Pedro Alves  <palves@redhat.com>
6938
6939         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6940         * common/glibc_thread_db.h: ... this new file ...
6941         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6942
6943 2013-04-16  Will Newton  <will.newton@gmail.com>
6944             Pedro Alves  <palves@redhat.com>
6945
6946         PR build/11881
6947
6948         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6949         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6950         HAVE_THREAD_DB_H.
6951
6952 2013-04-16  Pedro Alves  <palves@redhat.com>
6953             Eli Zaretskii  <eliz@gnu.org>
6954
6955         * NEWS: Mention "set foo unlimited".
6956
6957 2013-04-15  Doug Evans  <dje@google.com>
6958
6959         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6960         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6961         (create_dwo_cu_reader): Renamed from
6962         create_dwo_debug_info_hash_table_reader.
6963         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6964         Remove support for multiple CUs in a DWO file.
6965         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6966
6967         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6968         instead of phex.
6969         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6970         (create_dwo_in_dwp): Ditto.
6971
6972 2013-04-15  Tom Tromey  <tromey@redhat.com>
6973
6974         * NEWS: Move recent entries into "since 7.6" section.
6975
6976 2013-04-15  Tom Tromey  <tromey@redhat.com>
6977
6978         PR c++/13588:
6979         * NEWS: Update.
6980         * break-catch-throw.c (struct exception_catchpoint)
6981         <exception_rx, pattern>: New fields.
6982         (fetch_probe_arguments, dtor_exception_catchpoint)
6983         (check_status_exception_catchpoint)
6984         (print_one_detail_exception_catchpoint): New functions.
6985         (handle_gnu_v3_exceptions): Add "except_rx" argument.
6986         Compile regular expression if needed.
6987         (extract_exception_regexp): New function.
6988         (catch_exception_command_1): Use extract_exception_regexp.
6989         (compute_exception): Use fetch_probe_arguments.
6990         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6991         and check_status fields.
6992         * cp-abi.c (cplus_typename_from_type_info): New function.
6993         * cp-abi.h (cplus_typename_from_type_info): Declare.
6994         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6995         * gdb_regex.h (compile_rx_or_error): Declare.
6996         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6997         comment.
6998         (init_gnuv3_ops): Set get_type_from_type_info field.
6999         * probe.c (compile_rx_or_error): Move...
7000         * utils.c (compile_rx_or_error): ... here.
7001
7002 2013-04-15  Tom Tromey  <tromey@redhat.com>
7003
7004         PR c++/15176:
7005         * NEWS: Update.
7006         * break-catch-throw.c (compute_exception): New function.
7007         (exception_funcs): New global.
7008         (_initialize_break_catch_throw): Create $_exception.
7009         * cp-abi.c (cplus_type_from_type_info): New function.
7010         * cp-abi.h (cplus_type_from_type_info): Declare.
7011         (struct cp_abi_ops) <get_type_from_type_info>: New field.
7012         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7013         (gnuv3_get_type_from_type_info): New functions.
7014         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7015
7016 2013-04-15  Tom Tromey  <tromey@redhat.com>
7017
7018         * break-catch-throw.c (struct exception_names): New.
7019         (exception_functions): Change type.
7020         (re_set_exception_catchpoint): Look for SDT probes.
7021
7022 2013-04-15  Tom Tromey  <tromey@redhat.com>
7023
7024         PR c++/10119:
7025         * break-catch-throw.c (exception_functions): New global.
7026         (gnu_v3_exception_catchpoint_ops): Move earlier.
7027         (struct exception_catchpoint): New.
7028         (classify_exception_breakpoint): Rewrite.
7029         (re_set_exception_catchpoint): New function.
7030         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
7031         Allocate a struct exception_catchpoint.
7032         (catch_exception_command_1): Update.
7033         (initialize_throw_catchpoint_ops): Set 're_set' method.
7034
7035 2013-04-15  Tom Tromey  <tromey@redhat.com>
7036
7037         * Makefile.in (SFILES): Add break-catch-throw.c
7038         (COMMON_OBS): Add break-catch-throw.o.
7039         * break-catch-throw.c: New file.
7040         * breakpoint.c: Move exception-catching code to new file.
7041         (ep_parse_optional_if_clause): No longer static.
7042         * breakpoint.h (ep_parse_optional_if_clause): Declare.
7043
7044 2013-04-15  Tom Tromey  <tromey@redhat.com>
7045
7046         PR c++/9065:
7047         * NEWS: Update.
7048         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7049         * c-exp.y (TYPEID): New token.
7050         (exp): Add new TYPEID productions.
7051         (ident_tokens): Add "typeid".
7052         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7053         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7054         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7055         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7056         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7057         case.
7058         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7059         (build_std_type_info_type, gnuv3_get_typeid_type)
7060         (gnuv3_get_typeid): New functions.
7061         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
7062         new fields on ABI object.
7063         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7064         * std-operator.def (OP_TYPEID): New.
7065
7066 2013-04-15  Tom Tromey  <tromey@redhat.com>
7067
7068         * elfread.c (elf_symtab_read): Install versioned symbol under
7069         unversioned name as well.
7070
7071 2013-04-15  Tom Tromey  <tromey@redhat.com>
7072
7073         PR c++/11990:
7074         * c-lang.c (cplus_language_defn): Use gdb_demangle.
7075         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7076         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7077         (gdb_demangle): New function.
7078         * cp-support.h (gdb_demangle): Declare.
7079         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7080         (dwarf2_name): Use gdb_demangle.
7081         * gdbtypes.c (check_stub_method): Use gdb_demangle.
7082         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7083         suffixes from name.
7084         (gnuv3_print_method_ptr): Use gdb_demangle.
7085         * jv-lang.c (java_demangle): Use gdb_demangle.
7086         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7087         * language.c (unk_lang_demangle): Use gdb_demangle.
7088         * symtab.c (symbol_find_demangled_name)
7089         (demangle_for_lookup): Use gdb_demangle.
7090
7091 2013-04-15  Tom Tromey  <tromey@redhat.com>
7092
7093         PR c++/12824:
7094         * NEWS: Update.
7095         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7096         New constant.
7097         (classify_exception_breakpoint): New function.
7098         (print_it_exception_catchpoint, print_one_exception_catchpoint)
7099         (print_mention_exception_catchpoint)
7100         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7101         (catch_exception_command_1): Handle "rethrow" catchpoint.
7102         (catch_rethrow_command): New function.
7103         (_initialize_breakpoint): Add "catch rethrow" command.
7104
7105 2013-04-15  Pierre Muller  <muller@sourceware.org>
7106
7107         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7108         set_gdbarch_write_pc as deprecated anymore.
7109
7110 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
7111
7112         * spu-tdep.c (spu_write_pc): Add empty line after local variable
7113         declarations.
7114
7115 2013-04-13  Yao Qi  <yao@codesourcery.com>
7116
7117         * ctf.c (_initialize_ctf): Include "completer.h".
7118         Call add_target_with_completer instead of add_target.
7119
7120 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7121
7122         Fix GDB regression related to PR binutils/14813.
7123         * jit.c (mem_bfd_iovec_close): Return 0 for success.
7124         * minidebug.c (lzma_close): Add return value comment.
7125         * remote.c (remote_bfd_iovec_close): Return 0 for success.
7126         * solib-spu.c (spu_bfd_iovec_close): Likewise.
7127         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7128
7129 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7130
7131         * config.in: Regenerate.
7132
7133 2013-04-12  Tom Tromey  <tromey@redhat.com>
7134
7135         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7136         const.
7137         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7138         (struct die_reader_specs) <buffer>: Likewise.
7139         (die_reader_func_ftype): Make 'info_ptr' const.
7140         (struct line_header) <include_dirs, statement_program_start,
7141         statement_program_end>: Now const.
7142         (struct file_entry) <name>: Likewise.
7143         (struct partial_die_info) <sibling>: Likewise.
7144         (struct dwarf_block) <data>: Likewise.
7145         (dwarf2_read_section): Remove cast.
7146         (dwarf2_get_section_info): Make 'bufp' const.
7147         (read_index_from_section): Constify.
7148         (dw2_get_file_names_reader): Make 'info_ptr' const.
7149         (dw2_get_primary_filename_reader): Likewise.
7150         (read_comp_unit_head): Make 'info_ptr' and return type const.
7151         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7152         Likewise.
7153         (read_abbrev_offset): Constify.
7154         (dwarf2_create_include_psymtab): Make 'name' const.
7155         (create_debug_types_hash_table): Update.
7156         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7157         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7158         Constify.
7159         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7160         (load_partial_comp_unit_reader): Make 'info_ptr' const.
7161         (read_comp_units_from_section): Constify.
7162         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7163         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7164         const.
7165         (dwarf2_compute_name, setup_type_unit_groups): Constify.
7166         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7167         (create_dwp_hash_table, dwarf2_ranges_read)
7168         (dwarf2_record_block_ranges): Constify.
7169         (read_die_and_children, read_die_and_siblings_1)
7170         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7171         const.
7172         (read_full_die_1, read_full_die): Make 'info_ptr' const.
7173         (abbrev_table_read_table): Constify.
7174         (load_partial_dies): Make 'info_ptr' const.
7175         (read_partial_die, read_attribute_value, read_attribute): Make
7176         'info_ptr' and return type const.
7177         (read_address, read_initial_length)
7178         (read_checked_initial_length_and_offset, read_offset)
7179         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7180         const.
7181         (read_direct_string): Make 'buf' and return type const.
7182         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7183         (read_indirect_string): Make return type const.
7184         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7185         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7186         'info_ptr' const.
7187         (read_str_index): Make return type const.
7188         (add_include_dir): Make 'include_dir' const.
7189         (add_file_name): Make 'name' const.
7190         (dwarf_decode_line_header): Constify.
7191         (psymtab_include_file_name): Make return type const.
7192         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7193         (dwarf2_start_subfile): Make 'filename' const.
7194         (dwarf2_const_value_attr): Make 'bytes' const.
7195         (read_signatured_type_reader): Make 'info_ptr' const.
7196         (decode_locdesc): Constify.
7197         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7198         const.
7199         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7200         'mac_end', and return type const.
7201         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7202         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7203         type const.
7204         (per_cu_header_read_in): Constify.
7205         * symfile.h (dwarf2_get_section_info): Update.
7206
7207 2013-04-12  Tom Tromey  <tromey@redhat.com>
7208
7209         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7210
7211 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
7212
7213         * NEWS: Mention "show configuration", --configuration.
7214         * top.c (print_gdb_configuration): New function, displays the
7215         details about GDB configure-time parameters.
7216         (print_gdb_version): Mention "show configuration".
7217         * cli/cli-cmds.c (show_configuration): New function.
7218         (_initialize_cli_cmds): Add the "show configuration" command.
7219         * main.c (captured_main) <print_configuration>: New static var.
7220         <long_options>: Use it.
7221         If --configuration was given, call print_gdb_configuration.
7222
7223 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7224             Pedro Alves  <palves@redhat.com>
7225
7226         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7227         (generated_files): Add gcore.
7228         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7229         HAVE_NATIVE_GCORE_HOST.
7230         (gcore): New.
7231         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7232         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7233         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7234         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7235         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7236         Add HAVE_NATIVE_GCORE_HOST.
7237         * configure: Regenerate.
7238         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7239         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
7240         AC_CONFIG_FILES for gcore.
7241         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
7242         gdb_have_gcore.
7243         * gdb_gcore.sh: Rename to ...
7244         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
7245         and GCORE_TRANSFORM_NAME substitutions.
7246
7247         Fix parsing tabs in ${gdb_target_obs}.
7248         * configure.tgt (gdb_have_gcore): Replace case with for and if.
7249
7250 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7251
7252         * remote.c (unpush_and_perror): Add output message final dot.
7253
7254 2013-04-11  Yao Qi  <yao@codesourcery.com>
7255
7256         * tracepoint.c (tfile_interp_line): Fit parameters line and
7257         utpp in one line.
7258
7259 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
7260
7261         * solib.c (solib_map_sections): Remove code overwriting
7262         SO->SO_NAME with the bfd's filename.
7263
7264 2013-04-10  Pedro Alves  <palves@redhat.com>
7265
7266         * cli/cli-decode.c (integer_unlimited_completer): New function.
7267         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7268         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7269         completer.
7270         * cli/cli-setshow.c: Include "cli/cli-utils.h".
7271         (is_unlimited_literal): New function.
7272         (do_set_command): Handle literal "unlimited" arguments.
7273         * frame.c (_initialize_frame) <set backtrace limit>: Document
7274         "unlimited".
7275         * printcmd.c (_initialize_printcmd) <set print
7276         max-symbolic-offset>: Add help text.
7277         * record-full.c (_initialize_record_full) <set record full
7278         insn-number-max>: Likewise.
7279         * record.c (_initialize_record) <set record
7280         instruction-history-size, set record function-call-history-size>:
7281         Add help text.
7282         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7283         help text.
7284         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7285         Likewise.
7286         * source.c (_initialize_source) <set listsize>: Add help text.
7287         * utils.c (initialize_utils) <set height, set width>: Likewise.
7288         <set pagination>: Mention "set height unlimited".
7289         * valprint.c (_initialize_valprint) <set print elements, set print
7290         repeats>: Document "unlimited".
7291
7292 2013-04-10  Pedro Alves  <palves@redhat.com>
7293
7294         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7295         instead of disconnect_tracing.
7296         * infcmd.c (detach_command, disconnect_command): Call
7297         query_if_trace_running.  Adjust.
7298         * top.c: Include "tracepoint.h".
7299         (quit_target): Delete.  Contents moved ...
7300         (quit_force): ... here.  Wrap each stage of teardown in
7301         TRY_CATCH.  Call disconnect_tracing before detaching.
7302
7303 2013-04-10  Hui Zhu  <hui@codesourcery.com>
7304             Yao Qi  <yao@codesourcery.com>
7305
7306         * configure.ac: Check libbabeltrace is installed.
7307         * config.in: Regenerate.
7308         * configure: Regenerate.
7309         * Makefile.in (LIBBABELTRACE): New.
7310         (CLIBS): Add LIBBABELTRACE.
7311         * ctf.c: Include "exec.h".
7312         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7313         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7314         (ctf_save_metadata_header): Define new type aliases in
7315         metadata.
7316         (ctf_write_header): Define event type "tsv_def" and "tp_def"
7317         in metadata.  Start a new faked packet for trace status.
7318         (ctf_write_status): Write trace status to CTF.
7319         (ctf_write_uploaded_tsv): Write TSV to CTF.
7320         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7321         (ctf_write_definition_end): End the faked packet.
7322
7323         (ctx, ctf_iter, trace_dirname): New.
7324         (start_pos): New variable.
7325         (ctf_destroy, ctf_open_dir, ctf_open): New.
7326         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7327         macros.
7328         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7329         (ctf_fetch_registers, ctf_xfer_partial): New.
7330         (ctf_get_trace_state_variable_value): New.
7331         (ctf_get_tpnum_from_frame_event): New.
7332         (ctf_get_traceframe_address): New.
7333         (ctf_trace_find, ctf_has_stack): New.
7334         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7335         (ctf_get_trace_status, ctf_read_status): New.
7336         (_initialize_ctf): New.
7337         * tracepoint.c (get_tracepoint_number): New
7338         (get_uploaded_tsv): Remove 'static'.
7339         (struct traceframe_info, trace_regblock_size): Move it to ...
7340         * tracepoint.h: ... here.
7341         (get_tracepoint_number): Declare it.
7342         (get_uploaded_tsv): Declare it.
7343
7344         * NEWS: Mention new configure option.
7345
7346 2013-04-10  Pedro Alves  <palves@redhat.com>
7347             Hui Zhu  <hui@codesourcery.com>
7348
7349         * breakpoint.c (dprintf_re_set): New.
7350         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7351         to dprintf_re_set.
7352
7353 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7354
7355         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7356         Remove solib-svr4.o from the list.
7357
7358 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7359
7360         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7361         Use gdb_assert_not_reached instead of invalid boolean expression.
7362
7363 2013-04-09  Pedro Alves  <palves@redhat.com>
7364
7365         * remote.c (unpush_and_perror): New function.
7366         (readchar, remote_serial_write): Use it.
7367
7368 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
7369
7370         * NEWS: Mention new btrace RSP packets.
7371
7372 2013-04-08  Tom Tromey  <tromey@redhat.com>
7373
7374         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7375         long.
7376
7377 2013-04-08  Tom Tromey  <tromey@redhat.com>
7378
7379         * maint.c (print_bfd_section_info): Print the section index.
7380         * symmisc.c (dump_msymbols): Print the section index.
7381
7382 2013-04-08  Tom Tromey  <tromey@redhat.com>
7383
7384         PR symtab/8424:
7385         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7386         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7387         * breakpoint.c (resolve_sal_pc): Update.
7388         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7389         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7390         (minsym_lookup_iterator_cb): Use it.
7391         (default_read_var_value): Update.
7392         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7393         Update.
7394         * infcmd.c (jump_command): Update.
7395         * linespec.c (minsym_found): Update.
7396         * maint.c (maintenance_translate_address): Update.
7397         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7398         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7399         * parse.c (write_exp_msymbol): Update.
7400         * printcmd.c (address_info): Update.
7401         * psymtab.c (find_pc_sect_psymbol): Update.
7402         (fixup_psymbol_section): Check SYMBOL_SECTION, not
7403         SYMBOL_OBJ_SECTION.
7404         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7405         Don't initialize SYMBOL_OBJ_SECTION.
7406         * spu-tdep.c (spu_catch_start): Update.
7407         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7408         * symmisc.c (dump_msymbols, print_symbol): Update.
7409         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
7410         how fallback section is computed.
7411         (fixup_symbol_section): Update.
7412         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7413         Update.
7414         (allocate_symbol, initialize_symbol, allocate_template_symbol):
7415         Initialize SYMBOL_SECTION.
7416         * symtab.h (struct general_symbol_info) <section>: Update comment.
7417         <obj_section>: Remove.
7418         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
7419         (SYMBOL_OBJFILE): New macro.
7420
7421 2013-04-08  Tom Tromey  <tromey@redhat.com>
7422
7423         * coffread.c (record_minimal_symbol): Update.
7424         * dbxread.c (record_minimal_symbol): Update.
7425         * elfread.c (record_minimal_symbol): Update.
7426         * machoread.c (macho_symtab_add_minsym): Update.
7427         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7428         Update.
7429         * minsyms.c (prim_record_minimal_symbol): Update.
7430         (prim_record_minimal_symbol_full): Remove 'bfd_section'
7431         argument.
7432         (prim_record_minimal_symbol_and_info): Likewise.
7433         * minsyms.h (prim_record_minimal_symbol_full)
7434         (prim_record_minimal_symbol_and_info): Update.
7435         * symtab.c (allocate_symbol, initialize_symbol)
7436         (allocate_template_symbol): Initialize SYMBOL_SECTION.
7437         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7438         Update.
7439
7440 2013-04-08  Tom Tromey  <tromey@redhat.com>
7441
7442         PR symtab/8423:
7443         * solib-som.c (som_solib_section_offsets): Use BFD section
7444         indices.  Set offsets for all sections.
7445         * somread.c (som_symtab_read): Compute BFD section for
7446         symbol.  Use prim_record_minimal_symbol_and_info.
7447         (som_symfile_read): Fix comment.
7448         (struct find_section_offset_arg): New.
7449         (find_section_offset, set_section_index): New functions.
7450         (som_symfile_offsets): Use set_section_index to compute
7451         section indices.
7452
7453 2013-04-08  Tom Tromey  <tromey@redhat.com>
7454
7455         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7456         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7457         gdb_bfd_section_index.
7458         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7459         New functions.
7460         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7461         Declare.
7462         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7463         Update.
7464         * objfiles.c (add_to_objfile_sections_full): New function.
7465         (add_to_objfile_sections): Use it.
7466         (build_section_table): Rewrite.
7467         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
7468         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7469         (struct objfile) <sections>: Update comment.
7470         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7471         is NULL.
7472         (ALL_OBJSECTIONS): Use it.
7473         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7474         * solib-frv.c (frv_relocate_main_executable): Update.
7475         * solib-target.c (solib_target_relocate_section_addresses):
7476         Use gdb_bfd_section_index.
7477         * symfile.c (build_section_addr_info_from_section_table):
7478         Use gdb_bfd_section_index.
7479         (build_section_addr_info_from_bfd, place_section): Likewise.
7480         * symtab.c (fixup_section): Update.
7481         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7482
7483 2013-04-08  Tom Tromey  <tromey@redhat.com>
7484
7485         * minsyms.h (struct bound_minimal_symbol): New.
7486         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7487         Remove objfile argument.
7488         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7489         Return bound_minimal_symbol.
7490         * minsyms.c (lookup_minimal_symbol_by_pc_1)
7491         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7492         Return bound_minimal_symbol.
7493         (in_gnu_ifunc_stub): Update.
7494         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7495         Remove 'objfile_p' argument.
7496         (lookup_solib_trampoline_symbol_by_pc): Update.
7497         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7498         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7499         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7500         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7501         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7502         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7503         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7504         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7505         stack.c, symtab.c, tui/tui-disasm.c: Update.
7506
7507 2013-04-08  Tom Tromey  <tromey@redhat.com>
7508
7509         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7510         Use symbol's obstack, not an objfile.
7511         * coffread.c (process_coff_symbol): Update.
7512         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7513         * jv-lang.c (add_class_symbol): Update.
7514         * mdebugread.c (new_symbol): Update.
7515         * minsyms.c (prim_record_minimal_symbol_full)
7516         (terminate_minimal_symbol_table): Update.
7517         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
7518         * stabsread.c (define_symbol, read_enum_type): Update.
7519         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7520         Handle Ada specially.
7521         (symbol_set_language): Add 'obstack' argument.
7522         (symbol_set_names): Update.
7523         (symbol_natural_name, symbol_demangled_name): Always use
7524         ada_decode_symbol.
7525         * symtab.h (struct general_symbol_info)
7526         <language_specific::obstack>: New field.
7527         <ada_mangled>: New field.
7528         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7529         (symbol_set_language): Update.
7530
7531 2013-04-08  Tom Tromey  <tromey@redhat.com>
7532
7533         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7534         Take an obstack, not an objfile.
7535         (symbol_set_names): Update.
7536         * symtab.h (symbol_set_demangled_name): Update.
7537
7538 2013-04-08  Tom Tromey  <tromey@redhat.com>
7539
7540         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7541         allocate_symbol.
7542         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7543         (read_func_scope): Call allocate_template_symbol.
7544         (new_symbol_full): Call allocate_symbol.
7545         * jit.c (finalize_symtab): Call allocate_symbol.
7546         * jv-lang.c (add_class_symbol): Call allocate_symbol.
7547         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7548         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7549         (common_block_end): Call allocate_symbol.
7550         * symtab.c (allocate_symbol, initialize_symbol)
7551         (allocate_template_symbol): New functions.
7552         * symtab.c (allocate_symbol, initialize_symbol)
7553         (allocate_template_symbol): Declare.
7554         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7555
7556 2013-04-08  Pedro Alves  <palves@redhat.com>
7557             Keith Seitz  <keiths@redhat.com>
7558
7559         * breakpoint.c (create_breakpoint): Rename
7560         "parse_condition_and_thread" parameter to "parse_arg".  Update
7561         describing comment.  If !PARSE_ARG, then error out if ARG is not
7562         the empty string after extracting the location.
7563         * breakpoint.h (create_breakpoint): Rename
7564         "parse_condition_and_thread" parameter to "parse_arg".
7565
7566 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
7567
7568         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7569
7570 2013-04-07  Yao Qi  <yao@codesourcery.com>
7571
7572         * remote.c (remote_trace_find): Change type of parameters 'addr1'
7573         and 'addr2' to CORE_ADDR.
7574         * target.c (update_current_target): Update.
7575         * target.h (struct target_ops) <to_trace_find>: Change parameter
7576         type to CORE_ADDR.
7577         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7578         'addr2' to CORE_ADDR.
7579         (tfile_trace_find): Likewise.
7580         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7581         Change local variable 'addr' to type CORE_ADDR.
7582         * tracepoint.h (tfind_1): Update declaration.
7583
7584 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
7585
7586         * windows-nat.c (windows_get_absolute_argv0): Move from here...
7587         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7588         Include main.h.
7589
7590         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7591         here...
7592         * main.h (windows_get_absolute_argv0): ...to here.
7593
7594 2013-04-05  Doug Evans  <dje@google.com>
7595
7596         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7597         (read_cutu_die_from_dwo): Add comments.
7598         (read_structure_type): Update comment.
7599         (read_enumeration_type, read_namespace_type): Update comment.
7600         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7601
7602 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7603
7604         Convert man pages to texinfo, new gdbinit.5 texinfo page.
7605         * Makefile.in (gdb.z): Remove.
7606         (install-only): Remove $(man1dir) and gdb.1 installation.
7607         * gdb.1: Remove.
7608
7609 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7610
7611         Fix compatibility with Linux kernel 3.8.3.
7612         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7613         to more inner block.  Remove parsing of NUMBER from outer block.
7614         Parse NUMBER only if KEYWORD has been identified.
7615
7616 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7617
7618         Fix variable name shadowing.
7619         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7620         filename to mapsfilename and update its uses.
7621
7622 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
7623
7624         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7625         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7626         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7627         details of the problem.
7628
7629 2013-04-04  Pedro Alves  <palves@redhat.com>
7630             Hui Zhu  <hui@codesourcery.com>
7631
7632         * breakpoint.c (validate_commands_for_breakpoint): If validating a
7633         tracepoint, reset its STEP_COUNT and call validate_actionline.
7634
7635 2013-04-03  Doug Evans  <dje@google.com>
7636
7637         * dwarf2read.c (read_die_and_siblings_1): Renamed from
7638         read_die_and_siblings.
7639         (read_die_and_siblings): New function.
7640         (read_cutu_die_from_dwo): Dump die if requested.
7641         (read_die_and_children): Call read_full_die_1 and
7642         read_die_and_siblings_1.
7643         (read_full_die): Dump die if requested.
7644
7645         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7646
7647         * dwarf2read.c (struct dwo_file): New member comp_dir.
7648         Rename member name to dwo_name.  All uses updated.
7649         (hash_dwo_file): Include comp_dir in computation.
7650         (eq_dwo_file): Ditto.
7651         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
7652         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7653
7654         * psymtab.c (read_psymtabs_with_fullname): Don't call
7655         psymtab_to_fullname if the basenames are different.
7656
7657 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7658
7659         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7660         New entry about "fullname" presence.
7661
7662 2013-04-03  Pedro Alves  <palves@redhat.com>
7663
7664         * NEWS: Mention x86_64/Cygwin as new native configuration.
7665
7666 2013-04-02  Doug Evans  <dje@google.com>
7667
7668         * dwarf2read.c (read_structure_type): Fix typo in comment.
7669
7670 2013-04-02  Pedro Alves  <palves@redhat.com>
7671
7672         * NEWS: Mention "set/show debug aarch64", "set/show debug
7673         coff-pe-read" and "set/show debug mach-o".
7674
7675 2013-04-02  Pedro Alves  <palves@redhat.com>
7676
7677         * NEWS: Mention "set/show remote trace-buffer-size-packet".
7678
7679 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
7680
7681         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7682         gdb_string.h is now in common/.
7683
7684 2013-04-02  Pedro Alves  <palves@redhat.com>
7685
7686         * NEWS: Move "set debug notification" and "set trace-buffer-size"
7687         under "New options".
7688
7689 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7690
7691         Revert this patch:
7692         PR gdb/15275
7693         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7694
7695 2013-04-02  Pedro Alves  <palves@redhat.com>
7696
7697         PR gdb/15275
7698
7699         * remote.c (send_interrupt_sequence): Use remote_serial_write.
7700         (remote_serial_write): New function.
7701         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7702
7703 2013-04-01  Jiong Wang  <jiwang@tilera.com>
7704
7705         * NEWS: Mention TILE-Gx in "New native configurations" and
7706         "New targets" sections.
7707
7708 2013-04-01  Doug Evans  <dje@google.com>
7709
7710         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7711         (process_enumeration_scope): Simplify.
7712
7713         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7714         type_unit_group ...
7715         (struct signatured_type): ... to here.
7716         (sig_type_ptr): New typedef.
7717         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
7718         out of union 't'.  All uses updated.
7719         (dw2_get_file_names_reader): Assert not called for a type unit.
7720         (dw2_get_file_names): Assert not called for a type unit or type
7721         unit group.
7722         (build_type_psymtabs_reader): Assert called for a type unit.
7723         (build_type_psymtab_dependencies): Assert called for a type unit group.
7724
7725         * dwarf2read.c (free_dwo_file): Add comment.
7726         (dwarf2_per_objfile_free): Unref dwp bfd.
7727
7728 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7729
7730         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7731         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7732         (read_pe_exported_syms): Remove unused 'exportix'.
7733         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7734         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7735         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7736
7737 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7738
7739         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7740         (print_it_watchpoint): Remove unused 'bl'.
7741         (say_where): Remove unused 'uiout'.
7742         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7743         (bkpt_breakpoint_hit): Remove unused 'b'.
7744         (internal_bkpt_print_it): Remove unused 'uiout'.
7745         * buildsym.c (augment_type_symtab): Remove unused 'i'.
7746
7747 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7748
7749         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7750         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7751
7752 2013-03-29  Doug Evans  <dje@google.com>
7753
7754         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7755         Delete arg is_dwp.  All callers updated.
7756         (open_dwp_file): New function.
7757         (open_and_init_dwp_file): Call it.
7758         (get_dwp_file): New function.
7759         (lookup_dwo_cutu): Call it.
7760
7761         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7762         unnecessary, cleanup.
7763
7764         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7765
7766         * dwarf2read.c (read_cutu_die_from_dwo): New function.
7767         (lookup_dwo_unit): New function.
7768         (init_cutu_and_read_dies): Move DWO handling to new functions.
7769
7770         * dwarf2read.c (struct signatured_type): Tweak comment.
7771         (struct dwo_unit): Tweak comment.
7772         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
7773         (create_dwo_debug_info_hash_table): Tweak comment.
7774         (dwarf2_per_cu_offset_and_type): Tweak comment.
7775
7776         * dwarf2read.c (lookup_signatured_type): Remove complaint about
7777         missing .debug_types section.
7778
7779 2013-03-29  Yao Qi  <yao@codesourcery.com>
7780
7781         * corelow.c: Include "completer.h".
7782         (_initialize_corelow): Call add_target_with_completer with
7783         argument 'filename_completer'.
7784         * tracepoint.c: Likewise.
7785         * exec.c (_initialize_exec): Likewise.
7786         * target.c (add_target): Rename to ...
7787         (add_target_with_completer): ... this.  Call set_cmd_completer
7788         if parameter completer is not NULL.
7789         (add_target): New.
7790         * target.h: Include "command.h".
7791         (add_target_with_completer): Declare it.
7792
7793 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
7794
7795         * coffread.c (is_import_fixup_symbol): New function.
7796         (record_minimal_symbol): Use is_import_fixup_symbol to
7797         detect import fixup symbols, and discard them.
7798
7799 2013-03-28  Doug Evans  <dje@google.com>
7800
7801         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7802         types hash table until we know we need it.
7803
7804         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7805         index numbers.
7806
7807         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7808         All callers updated.
7809         (dw2_print_stats): Print #read CUs too.
7810         (dump_die_shallow): Print signatured types better.
7811
7812         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7813         info_or_types_section to section.  All uses updated.
7814         (struct dwo_unit): Ditto.
7815
7816 2013-03-28  Pedro Alves  <palves@redhat.com>
7817
7818         * NEWS (New options): New section.
7819         (New options): Mention set/show remote trace-status-packet.
7820         * remote.c (PACKET_qTStatus): New enumeration value.
7821         (remote_get_trace_status): Skip sending qTStatus if the packet is
7822         disabled.  Use packet_ok.
7823         (_initialize_remote): Register a configuration command for
7824         qTStatus packet.
7825
7826 2013-03-28  Doug Evans  <dje@google.com>
7827
7828         * symfile.c (find_separate_debug_file): Add comment.
7829         (terminate_after_last_dir_separator): Tweak comment.
7830
7831         * dwarf2read.c (create_partial_symtab): Add forward decl.
7832         (create_partial_symtab): Move to be closer to other psymtab functions.
7833         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7834
7835         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7836         (compute_symtab_includes): Remove unnecessary forward declaration.
7837         (die_needs_namespace): Add comment marking group of functions for
7838         dwarf2 name computation.
7839
7840         * typeprint.c (_initialize_typeprint): Improve type help text.
7841
7842         * python/python.c (finish_python_initialization): Provide suggestion
7843         for how to tell gdb to find its python files.
7844
7845 2013-03-28  Pedro Alves  <palves@redhat.com>
7846
7847         PR gdb/15294
7848
7849         * source.c (_initialize_source): Change back "set listsize" to an
7850         integer command.
7851
7852 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
7853
7854         PR gdb/15275
7855         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7856
7857 2013-03-27  Pedro Alves  <palves@redhat.com>
7858
7859         * top.c (history_size): Rename to ...
7860         (history_size_setshow_var): ... this.  Add comment.
7861         (show_commands): Use readline's 'history_length' instead of
7862         computing the history length by calling history_get in a loop.
7863         (set_history_size_command): Error out for sizes over INT_MAX.
7864         Restore previous history size on invalid size.
7865         (init_history): If HISTSIZE is negative, leave the history size as
7866         zero.  Add comments.
7867         (init_main): Adjust.
7868
7869 2013-03-27  Pedro Alves  <palves@redhat.com>
7870
7871         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7872         coff_pe_read" command to "set debug coff-pe-read".
7873
7874 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
7875
7876         * record.c (command_size_to_target_size): Fix size comparison.
7877         Change parameter type from pointer to integer to integer.
7878         Update all users.
7879
7880 2013-03-27  Pierre Muller  <muller@sourceware.org>
7881
7882         * windows-nat.c (handle_output_debug_string): Avoid typecast
7883         from integer of different size warning.
7884
7885 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
7886
7887         * windows-nat.c (handle_output_debug_string): Add empty line
7888         after local block variable definition.
7889
7890 2013-03-26  Pedro Alves  <palves@redhat.com>
7891
7892         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7893         (net_open): Make 'polls' local unsigned.
7894
7895 2013-03-26  Pedro Alves  <palves@redhat.com>
7896
7897         * remote.c (_initialize_remote): Make "set remoteaddresssize"
7898         a zuinteger command instead of uinteger.
7899
7900 2013-03-26  Pedro Alves  <palves@redhat.com>
7901
7902         * record-full.c (record_full_insn_num): Make it unsigned.
7903         (record_full_check_insn_num, record_full_message)
7904         (record_full_registers_change, record_full_xfer_partial): Remove
7905         record_full_insn_max_num check (it's always != 0).
7906         (record_full_info, record_full_restore): Use %u as format string.
7907         (): Use %u as format string.
7908         (set_record_full_insn_max_num): Remove record_full_insn_max_num
7909         check (it's always != 0).
7910
7911 2013-03-26  Pedro Alves  <palves@redhat.com>
7912
7913         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7914         and "set dcache size" commands zuinteger instead of uinteger.
7915
7916 2013-03-26  Pedro Alves  <palves@redhat.com>
7917
7918         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7919         command zuinteger instead of uinteger.
7920
7921 2013-03-26  Pedro Alves  <palves@redhat.com>
7922
7923         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7924         zuinteger instead of uinteger.
7925
7926 2013-03-26  Pedro Alves  <palves@redhat.com>
7927
7928         * record.c (record_insn_history_size_setshow_var)
7929         (record_call_history_size_setshow_var): New globals.
7930         (command_size_to_target_size): New function.
7931         (cmd_record_insn_history, cmd_record_call_history): Use
7932         command_size_to_target_size instead of cast.
7933         (validate_history_size, set_record_insn_history_size)
7934         (set_record_call_history_size): New functions.
7935         (_initialize_record): Install set_record_insn_history_size and
7936         set_record_call_history_size as "set" hooks of "set record
7937         instruction-history-size" and "set record
7938         function-call-history-size".
7939
7940 2013-03-26  Pedro Alves  <palves@redhat.com>
7941
7942         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7943         use with history_max_entries use.  Remove FIXME note.
7944
7945 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
7946
7947         * record-btrace.c (record_btrace_close): Call
7948         record_btrace_auto_disable.
7949
7950 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
7951
7952         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7953
7954 2013-03-25  Doug Evans  <dje@google.com>
7955
7956         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7957
7958 2013-03-25  Tom Tromey  <tromey@redhat.com>
7959
7960         PR symtab/11462:
7961         * c-exp.y (exp): Add new productions for destructors after '.' and
7962         '->'.
7963         (write_destructor_name): New function.
7964
7965 2013-03-25  Tom Tromey  <tromey@redhat.com>
7966
7967         PR c++/9197:
7968         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7969         value_struct_elt, not lookup_struct_elt_type.
7970         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7971         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7972         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7973
7974 2013-03-25  Yao Qi  <yao@codesourcery.com>
7975
7976         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7977         instead of '_mkdir'.
7978
7979 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
7980
7981         * windows-nat.c (windows_get_absolute_argv0): New function.
7982         * windows-nat.h: Add its prototype.
7983
7984         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7985         Use IS_DIR_SEPARATOR instead of looking for a character inside
7986         SLASH_STRING.  Include filenames.h.
7987         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7988         relocate_gdb_directory works when passed gdb_program_name.
7989         Include windows-nat.h.
7990
7991 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7992
7993         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7994         * remote.c (trace_error): Remove the special handling of '2'.
7995         (readchar) <SERIAL_EOF>
7996         (readchar) <SERIAL_ERROR>
7997         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7998         (remote_get_trace_status): Call throw_exception if EX is
7999         TARGET_CLOSE_ERROR.
8000         * utils.c (perror_with_name): Rename to ...
8001         (throw_perror_with_name): ... here.  New parameter errcode, describe it
8002         in the function comment.
8003         (perror_with_name): New function wrapper.
8004         * utils.h (enum errors): New stub declaration.
8005         (throw_perror_with_name): New declaration.
8006
8007 2013-03-22  Pedro Alves  <palves@redhat.com>
8008             Yao Qi  <yao@codesourcery.com>
8009             Mark Kettenis  <kettenis@gnu.org>
8010
8011         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8012         Don't let the user set the value to UINT_MAX directly.
8013         <var_integer>: Don't let the user set the value to INT_MAX
8014         directly.
8015
8016 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8017
8018         * remote.c (remote_unpush_target): New function.
8019         (remote_open_1): Remove two pop_target calls, update one comment, add
8020         comment to target_preopen call.  Replace pop_target call by
8021         remote_unpush_target call.
8022         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8023         pop_target calls by remote_unpush_target calls.
8024
8025 2013-03-22  Pedro Alves  <palves@redhat.com>
8026
8027         * linux-nat.c (linux_child_follow_fork): Don't call
8028         linux_enable_event_reporting.
8029         (linux_handle_extended_wait): Don't call
8030         linux_enable_event_reporting.
8031
8032 2013-03-22  Pedro Alves  <palves@redhat.com>
8033
8034         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8035         use it to rewrite the trampoline buffers with type gdb_byte[], and
8036         undefine the macro.  Remove char* cast.
8037
8038 2013-03-21  Doug Evans  <dje@google.com>
8039
8040         New commands "mt set per-command {space,time,symtab} {on,off}".
8041         * NEWS: Add entry.
8042         * event-top.c: #include "maint.h".
8043         * main.c: #include "maint.h".
8044         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8045         timeval-utils.h, maint.h, cli/cli-setshow.h.
8046         (per_command_time, per_command_space): New static globals.
8047         (per_command_symtab): New static global.
8048         (per_command_setlist, per_command_showlist): New static globals.
8049         (struct cmd_stats): Move here from utils.c.
8050         (set_per_command_time): Renamed from set_display_time in utils.c
8051         and moved here.  All callers updated.
8052         (set_per_command_space): Renamed from set_display_space in utils.c
8053         and moved here.  All callers updated.
8054         (count_symtabs_and_blocks): New function.
8055         (report_command_stats): Moved here from utils.c.  Add support for
8056         printing symtab stats.  Only print data if enabled before command
8057         executed.
8058         (make_command_stats_cleanup): Ditto.
8059         (sert_per_command_cmd, show_per_command_cmd): New functions.
8060         (_initialize_maint_cmds): Add new commands
8061         mt set per-command {space,time,symtab} {on,off}.
8062         * maint.h: New file.
8063         * top.c: #include "maint.h".
8064         * utils.c (reset_prompt_for_continue_wait_time): New function.
8065         (get_prompt_for_continue_wait_time): New function.
8066         * utils.h (reset_prompt_for_continue_wait_time): Declare
8067         (get_prompt_for_continue_wait_time): Declare.
8068         (make_command_stats_cleanup): Moved to maint.h.
8069         (set_display_time, set_display_space): Moved to maint.h and renamed
8070         to set_per_command_time, set_per_command_space.
8071         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8072         parse_binary_operation and made non-static.  Don't call error,
8073         just return an error marker.  All callers updated.
8074         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8075
8076 2013-03-21  Tom Tromey  <tromey@redhat.com>
8077
8078         * symfile.c (alloc_section_addr_info): Update header.  Don't set
8079         'num_sections' field.
8080         (build_section_addr_info_from_section_table): Set 'num_sections'.
8081         (build_section_addr_info_from_bfd): Likewise.
8082         (build_section_addr_info_from_objfile): Remove dead loop
8083         condition.
8084         (free_section_addr_info): Unconditionally call xfree.
8085         (relative_addr_info_to_section_offsets, addrs_section_sort)
8086         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8087         condition.
8088         (syms_from_objfile_1): Remove dead 'if' condition.  Check
8089         'num_sections'.
8090         (add_symbol_file_command): Set 'num_sections'.
8091         * symfile-mem.c (symbol_file_add_from_memory): Set
8092         'num_sections'.
8093         * somread.c (som_symfile_offsets): Remove dead loop condition.
8094         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8095         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8096
8097 2013-03-21  Tom Tromey  <tromey@redhat.com>
8098
8099         * tracepoint.h (decode_agent_options): Add 'trace_string'
8100         argument.
8101         * tracepoint.c (decode_agent_options): Add 'trace_string'
8102         argument.
8103         (validate_actionline): Update.
8104         (collect_symbol): Add 'trace_string' argument.
8105         (struct add_local_symbols_data) <trace_string>: New field.
8106         (do_collect_symbol): Update.
8107         (add_local_symbols): Add 'trace_string' argument.
8108         (encode_actions_1): Update.
8109         (trace_dump_actions): Update.
8110         * dwarf2loc.c (access_memory): Update.
8111         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8112         * ax-general.c (new_agent_expr): Update.
8113         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8114         (gen_trace_for_return_address): Add argument.
8115         (trace_kludge, trace_string_kludge): Remove.
8116         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8117         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8118         (gen_trace_for_var): Add 'trace_string' argument.
8119         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8120         (gen_printf, agent_eval_command_one): Update.
8121
8122 2013-03-21  Tom Tromey  <tromey@redhat.com>
8123
8124         PR exp/15109:
8125         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8126         Handle FILENAME token.
8127
8128 2013-03-21  Tom Tromey  <tromey@redhat.com>
8129
8130         * c-exp.y (YYPRINT): Define.
8131         (c_print_token): New function.
8132
8133 2013-03-21  Tom Tromey  <tromey@redhat.com>
8134
8135         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8136
8137 2013-03-21  Yao Qi  <yao@codesourcery.com>
8138
8139         * ctf.c: Include "gdb_stat.h".
8140         [USE_WIN32API]: New macro 'mkdir'.
8141         (ctf_start): Use permission bits macros if they are defined.
8142
8143 2013-03-20  Keith Seitz  <keiths@redhat.com>
8144
8145         * breakpoint.h (struct breakpoint): Add comment to
8146         extra_string indicating that this member is mallod'd.
8147         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8148
8149 2013-03-20  Pedro Alves  <palves@redhat.com>
8150
8151         PR gdb/15289
8152
8153         * cli/cli-setshow.c (do_set_command)
8154         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8155         the result of parsing the command argument.  Throw error if the
8156         value is greater than UINT_MAX.  Print the invalid value with
8157         plongest.
8158         <var_integer, var_zinteger>: Use LONGEST for variable holding the
8159         result of parsing the command argument.  Throw error if the value
8160         is greater than INT_MAX, not greater or equal.  Also throw error
8161         if the value is less than INT_MIN.  Print the invalid value with
8162         plongest.
8163         <var_zuinteger_unlimited>: Throw error if the value is greater
8164         than INT_MAX, not greater or equal.
8165         (do_show_command) <var_integer, var_zinteger,
8166         var_zuinteger_unlimited>: Use %d for printing int, not %u.
8167
8168 2013-03-20  Tom Tromey  <tromey@redhat.com>
8169
8170         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8171         if possible.
8172         * dwarf2read.c (read_func_scope): Remove old FIXME.
8173         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8174         not LOC_COMPUTED.
8175         * findvar.c (symbol_read_needs_frame, default_read_var_value):
8176         Unconditionally call via computed ops, if possible.
8177         * printcmd.c (address_info): Unconditionally call via computed ops,
8178         if possible.
8179         * stack.c (read_frame_arg): Unconditionally call via computed ops,
8180         if possible.
8181         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8182         * tracepoint.c (scope_info): Unconditionally call via computed ops,
8183         if possible.
8184
8185 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8186             Tom Tromey  <tromey@redhat.com>
8187
8188         PR symtab/8421:
8189         * coffread.c (coff_register_index): New global.
8190         (process_coff_symbol, coff_read_enum_type): Set
8191         SYMBOL_ACLASS_INDEX.
8192         (_initialize_coffread): Initialize new global.
8193         * dwarf2loc.c (locexpr_find_frame_base_location)
8194         (dwarf2_block_frame_base_locexpr_funcs)
8195         (loclist_find_frame_base_location)
8196         (dwarf2_block_frame_base_loclist_funcs): New.
8197         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8198         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8199         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8200         (dwarf2_block_frame_base_loclist_funcs): New.
8201         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8202         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8203         globals.
8204         (read_func_scope): Update.
8205         (fixup_go_packaging, mark_common_block_symbol_computed)
8206         (var_decode_location, new_symbol_full, dwarf2_const_value):
8207         Set SYMBOL_ACLASS_INDEX.
8208         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
8209         (_initialize_dwarf2_read): Initialize new globals.
8210         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8211         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8212         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8213         globals.
8214         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8215         (_initialize_mdebugread): Initialize new globals.
8216         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8217         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8218         (stab_register_index, stab_regparm_index): New globals.
8219         (define_symbol, read_enum_type, common_block_end): Set
8220         SYMBOL_ACLASS_INDEX.
8221         (_initialize_stabsread): Initialize new globals.
8222         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8223         globals.
8224         (MAX_SYMBOL_IMPLS): New define.
8225         (register_symbol_computed_impl, register_symbol_block_impl)
8226         (register_symbol_register_impl)
8227         (initialize_ordinary_address_classes): New functions.
8228         (_initialize_symtab): Call initialize_ordinary_address_classes.
8229         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8230         (struct symbol_impl): New.
8231         (SYMBOL_ACLASS_BITS): New define.
8232         (struct symbol) <aclass, ops>: Remove fields.
8233         <aclass_index>: New field.
8234         (symbol_impls): Declare.
8235         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8236         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8237         (register_symbol_computed_impl, register_symbol_block_impl)
8238         (register_symbol_register_impl): Declare.
8239         (struct symbol_computed_ops): Add location_has_loclist.
8240         (struct symbol_block_ops): New.
8241         (SYMBOL_BLOCK_OPS): New.
8242         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8243
8244 2013-03-20  Tom Tromey  <tromey@redhat.com>
8245
8246         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8247         (print_partial_symbols, recursively_search_psymtabs): Use
8248         PSYMBOL_CLASS.
8249
8250 2013-03-20  Pierre Muller  <muller@sourceware.org>
8251
8252         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8253         addtion, subtraction, multiplication and division binary operator.
8254
8255 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8256
8257         Code cleanup.
8258         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8259         * bsd-kvm.c (bsd_kvm_close): Likewise.
8260         * bsd-uthread.c (bsd_uthread_close): Likewise.
8261         * corelow.c (core_close): Likewise.
8262         (core_close_cleanup): Remove parameter quitting from a caller.
8263         * event-top.c (async_disconnect): Likewise.
8264         * exec.c (exec_close_1): Remove parameter quitting.
8265         * go32-nat.c (go32_close): Likewise.
8266         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
8267         parameter quitting from a caller.
8268         * mips-linux-nat.c (super_close): Remove parameter quitting from the
8269         variable.
8270         (mips_linux_close): Remove parameter quitting.  Remove parameter
8271         quitting from a caller.
8272         * monitor.c (monitor_close): Remove parameter quitting.
8273         * monitor.h (monitor_close): Likewise.
8274         * record-btrace.c (record_btrace_close): Likewise.
8275         * record-full.c (record_full_close): Likewise.
8276         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8277         it also from fprintf_unfiltered.
8278         * remote-mips.c (mips_close): Remove parameter quitting.
8279         (mips_detach): Remove parameter quitting from a caller.
8280         * remote-sim.c (gdbsim_close): Remove parameter quitting.
8281         (gdbsim_close): Remove duplicate function comment.  Remove parameter
8282         quitting and remove it also from printf_filtered.
8283         * remote.c (remote_close): Remove parameter quitting.
8284         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8285         * target.c (update_current_target): Remove parameter int from to_close
8286         de_fault.
8287         (push_target, unpush_target, pop_target): Remove parameter quitting from
8288         a caller.
8289         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8290         Remove parameter quitting from a caller.
8291         (target_preopen): Remove parameter quitting from a caller.
8292         (target_close): Remove parameter quitting.  Remove parameter quitting
8293         from a caller two times.  Remove parameter quitting also from
8294         fprintf_unfiltered.
8295         * target.h (struct target_ops): Remove parameter quitting and as int
8296         from fields to_xclose and to_close.
8297         (extern struct target_ops current_target):
8298         (target_close, pop_all_targets): Remove parameter quitting.  Update the
8299         comment.
8300         (pop_all_targets_above): Remove parameter quitting.
8301         * top.c (quit_target): Remove parameter quitting from a caller.
8302         * tracepoint.c (tfile_close): Remove parameter quitting.
8303         * windows-nat.c (windows_close): Remove parameter quitting.
8304
8305 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
8306
8307         * windows-nat.c (handle_output_debug_string): Replace call
8308         to string_to_core_addr with call to strtoull.
8309
8310 2013-03-20  Yao Qi  <yao@codesourcery.com>
8311
8312         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8313         and write it to CTF metadata.
8314
8315 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
8316
8317         * windows-nat.c (handle_output_debug_string): Change type of n to
8318         SIZE_T to avoid crash on 64 bit systems.
8319
8320 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
8321
8322         * python/python-internal.h (HAVE_SNPRINTF)
8323         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8324         about redefinition of snprintf by pyerrors.h.
8325
8326 2013-03-15  Steve Ellcey  <sellcey@mips.com>
8327
8328         * remote-sim.c (sim_command_completer): Make char arguments const.
8329
8330 2013-03-15  Tom Tromey  <tromey@redhat.com>
8331
8332         PR c++/15116:
8333         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8334
8335 2013-03-14  Tom Tromey  <tromey@redhat.com>
8336
8337         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8338         New fields.
8339         (get_file_crc): Move from symfile.c.
8340         (gdb_bfd_crc): New function.
8341         * gdb_bfd.h (gdb_bfd_crc): Declare.
8342         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8343         * symfile.c (get_file_crc): Move to gdb_bfd.c.
8344         (separate_debug_file_exists): Use gdb_bfd_crc.
8345
8346 2013-03-14  Tom Tromey  <tromey@redhat.com>
8347
8348         * symfile.c (get_debug_link_info): Remove.
8349         (find_separate_debug_file_by_debuglink): Use
8350         bfd_get_debug_link_info.
8351
8352 2013-03-14  Tom Tromey  <tromey@redhat.com>
8353
8354         * symtab.c (error_in_psymtab_expansion): New function.
8355         (lookup_symbol_aux_quick)
8356         (basic_lookup_transparent_type_quick): Remove "last resort"
8357         code.  Use error_in_psymtab_expansion.
8358
8359 2013-03-14  Doug Evans  <dje@google.com>
8360             Jan Kratochvil  <jan.kratochvil@redhat.com>
8361
8362         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8363         any successful compare_filenames_for_search or FILENAME_CMP.
8364         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8365         * symtab.c (iterate_over_some_symtabs): Likewise.
8366
8367 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8368
8369         * source.c (print_source_lines_base): Make a local copy of
8370         symtab_to_fullname.
8371
8372 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
8373             Jan Kratochvil  <jan.kratochvil@redhat.com>
8374
8375         * source.c (print_source_lines_base): Suppress "file" for TUI.
8376
8377 2013-03-14  Keith Seitz  <keiths@redhat.com>
8378             Alan Matsuoka  <alanm@redhat.com>
8379
8380         PR c++/15203
8381         PR c++/15210
8382         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8383         TYPE_CODE_METHOD.
8384         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8385         symbols.
8386
8387 2013-03-14  Yao Qi  <yao@codesourcery.com>
8388
8389         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8390         status to tfile if trace is stopped by command 'tstop'.
8391
8392 2013-03-14  Yao Qi  <yao@codesourcery.com>
8393
8394         * tracepoint.c (tfile_write_status): Write trace notes and user
8395         name into tfile if they are not NULL.
8396
8397 2013-03-14  Hui Zhu  <hui@codesourcery.com>
8398             Yao Qi  <yao@codesourcery.com>
8399
8400         * Makefile.in (REMOTE_OBS): Add ctf.o.
8401         (SFILES): Add ctf.c.
8402         (HFILES_NO_SRCDIR): Add ctf.h.
8403         * ctf.c, ctf.h: New files.
8404         * tracepoint.c: Include 'ctf.h'.
8405         (collect_pseudocommand): Remove static.
8406         (trace_save_command): Parse option "-ctf".
8407         Produce different trace file writers per option.
8408         Adjust output message.
8409         (trace_save_tfile, trace_save_ctf): New.
8410         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8411         * mi/mi-main.c: Include 'ctf.h'.
8412         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
8413         trace_save_tfile or trace_save_ctf.
8414         * NEWS: Mention these changes.
8415
8416 2013-03-14  Yao Qi  <yao@codesourcery.com>
8417
8418         * tracepoint.c (trace_file_writer_xfree): New.
8419         (struct tfile_writer_data): New.
8420         (tfile_dtor, tfile_can_target_save, tfile_start): New.
8421         (tfile_write_header, tfile_write_regblock_type): New.
8422         (tfile_write_status, tfile_write_uploaded_tsv): New.
8423         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8424         (tfile_write_raw_data, (tfile_end): New.
8425         (tfile_write_ops): New global variable.
8426         (TRACE_WRITE_R_BLOCK): New macro.
8427         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8428         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8429         (TRACE_WRITE_V_BLOCK): New macro.
8430         (trace_save): Add extra one parameter WRITER.  Make it static.
8431         Use WRITER to writer trace.
8432         (tfile_trace_file_writer_new): New.
8433         (trace_save_command): Caller update.
8434         (trace_save_tfile): Write trace data in TFILE format.
8435         * tracepoint.h (struct trace_frame_write_ops): New.
8436         (struct trace_file_write_ops): New.
8437         (struct trace_file_writer): New.
8438         (trace_save): Remove its declaration.
8439         (trace_save_tfile): Declare it.
8440         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8441         instead of trace_save.
8442
8443 2013-03-13  Pedro Alves  <palves@redhat.com>
8444
8445         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8446
8447 2013-03-13  Pedro Alves  <palves@redhat.com>
8448
8449         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8450         commented out code.
8451         * demangle.c (current_demangling_style_string): Make it const.
8452         (set_demangling_command): Assert the demangling style is known.
8453         Remove all handling of unknown styles.  Set
8454         'current_demangling_style_string' to an element of the
8455         demangling_style_names array.
8456         (set_demangling_style): Delete.
8457         (_initialize_demangler): Set current_demangling_style_string to the
8458         element of the demangling_style_names array that corresponds to
8459         the default demangling style.  Remove FIXME note.  Don't call
8460         set_demangling_style.
8461         * gdb-demangle.h (set_demangling_style): Remove declaration.
8462
8463 2013-03-13  Pedro Alves  <palves@redhat.com>
8464
8465         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8466         fields const.
8467         (ada_make_symbol_completion_list): Make "text0" parameter const.
8468         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8469         * breakpoint.c (condition_completer): Make "text" and "word"
8470         parameters const.  Adjust.
8471         (check_tracepoint_command): Adjust to validate_actionline
8472         prototype change.
8473         (catch_syscall_completer): Make "text" and "word" parameters
8474         const.
8475         * cli/cli-cmds.c (show_user): Make "comname" local const.
8476         (valid_command_p): Make "command" parameter const.
8477         (alias_command): Make "alias_prefix" and "command_prefix" locals
8478         const.
8479         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8480         (add_alias_cmd): Make "name" and "oldname" parameters const.
8481         Adjust.  No longer make copy of OLDNAME.
8482         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8483         (add_setshow_cmd_full, add_setshow_enum_cmd)
8484         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8485         (add_setshow_filename_cmd, add_setshow_string_cmd)
8486         (add_setshow_string_noescape_cmd)
8487         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8488         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8489         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8490         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8491         Make "name" parameter const.
8492         (help_cmd): Rename "command" parameter to "arg".  New const local
8493         "command".
8494         (find_cmd): Make "command" parameter const.
8495         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
8496         deprecated_cmd_warning prototype change.
8497         (undef_cmd_error): Make "cmdtype" parameter const.
8498         (lookup_cmd): Make "line" parameter const.
8499         (deprecated_cmd_warning): Change type of "text" parameter to
8500         pointer to const char, from pointer to pointer to char.  Adjust.
8501         (lookup_cmd_composition): Make "text" parameter const.
8502         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8503         parameters const.
8504         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8505         const.
8506         * cli/cli-script.c (validate_comname): Make "tem" local const.
8507         (define_command): New const local "tem_c".  Use it in calls to
8508         lookup_cmd.
8509         (document_command): Make "tem" and "comfull" locals const.
8510         (show_user_1): Make "prefix" and "name" parameters const.
8511         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8512         const.
8513         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8514         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8515         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8516         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8517         (complete_on_enum, add_setshow_enum_cmd)
8518         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8519         (add_setshow_filename_cmd, add_setshow_string_cmd)
8520         (add_setshow_string_noescape_cmd)
8521         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8522         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8523         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8524         Change prototypes, constifying strings.
8525         * completer.c (noop_completer, filename_completer): Make "text"
8526         and "prefix" parameters const.
8527         (location_completer, expression_completer)
8528         (complete_line_internal): Make "text" and "prefix" parameters
8529         const and adjust.
8530         (command_completer, signal_completer): Make "text" and "prefix"
8531         parameters const.
8532         * completer.h (noop_completer, filename_completer)
8533         (expression_completer, location_completer, command_completer)
8534         (signal_completer): Change prototypes.
8535         * corefile.c (complete_set_gnutarget): Make "text" and "word"
8536         parameters const.
8537         * cp-abi.c (cp_abi_completer): Likewise.
8538         * expression.h (parse_expression_for_completion): Change
8539         prototype.
8540         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8541         parameters const.
8542         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8543         * infrun.c (handle_completer): Make "text" and "word" parameters
8544         const.
8545         * interps.c (interpreter_completer): Make "text" and "word"
8546         parameters const.
8547         * language.h (struct language_defn)
8548         <la_make_symbol_completion_list>: Make "text" and "word"
8549         parameters const.
8550         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8551         (parse_exp_in_context): Rename to ...
8552         (parse_exp_in_context_1): ... this.
8553         (parse_exp_in_context): Reimplement, with const hack from
8554         parse_exp_1.
8555         (parse_expression_for_completion): Make "string" parameter const.
8556         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8557         to pointer to const char.  Adjust.
8558         (print_command_1): Make "exp" parameter const.
8559         (output_command): Rename to ...
8560         (output_command_const): ... this.  Make "exp" parameter const.
8561         (output_command): Reimplement.
8562         (x_command): Adjust.
8563         (display_command): Rename "exp" parameter to "arg".  New "exp"
8564         local, const version of "arg".
8565         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8566         "cmd_name" local const.
8567         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8568         call.
8569         (cmdpy_completer): Make "text" and "word" parameters const.
8570         (gdbpy_parse_command_name): Make "prefix_text2" local const.
8571         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8572         const.
8573         * remote.c (_initialize_remote): Make "cmd_name" local const.
8574         * symtab.c (language_search_unquoted_string): Make "text" and "p"
8575         parameters const.  Adjust.
8576         (completion_list_add_fields): Make "sym_text", "text" and "word"
8577         parameters const.
8578         (struct add_name_data) <sym_text, text, word>: Make fields const.
8579         (default_make_symbol_completion_list_break_on): Make "text" and
8580         "word" parameters const.  Adjust locals.
8581         (default_make_symbol_completion_list)
8582         (make_symbol_completion_list, make_symbol_completion_type)
8583         (make_symbol_completion_list_fn): Make "text" and "word"
8584         parameters const.
8585         (make_file_symbol_completion_list): Make "text", "word" and
8586         "srcfile" parameters const.  Adjust locals.
8587         (add_filename_to_list): Make "text" and "word" parameters const.
8588         (struct add_partial_filename_data) <text, word>: Make fields
8589         const.
8590         (make_source_files_completion_list): Make "text" and "word"
8591         parameters const.
8592         * symtab.h (default_make_symbol_completion_list_break_on)
8593         (default_make_symbol_completion_list, make_symbol_completion_list)
8594         (make_symbol_completion_type enum type_code)
8595         (make_symbol_completion_list_fn make_file_symbol_completion_list)
8596         (make_source_files_completion_list): Change prototype.
8597         * top.c (execute_command): Adjust to pass pointer to pointer to
8598         const char to lookup_cmd, and to deprecated_cmd_warning prototype
8599         change.
8600         (set_verbose): Make "cmdname" local const.
8601         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8602         and adjust.
8603         (validate_actionline): Make "line" parameter a pointer to const
8604         char, and adjust.
8605         (encode_actions_1): Make "action_exp" local const, and adjust.
8606         (encode_actions): Adjust.
8607         (replace_comma): Delete.
8608         (trace_dump_actions): Make "action_exp" and "next_comma" locals
8609         const, and adjust.  Don't frob the action string while splitting
8610         it at commas.  Instead, make a copy of each split substring in
8611         turn.
8612         (trace_dump_command): Adjust to validate_actionline prototype
8613         change.
8614         * tracepoint.h (decode_agent_options, decode_agent_options)
8615         (encode_actions, validate_actionline): Change prototypes.
8616         * valprint.h (output_command): Delete declaration.
8617         (output_command_const): Declare.
8618         * value.c (function_destroyer): Cast const away in xfree call.
8619
8620 2013-03-13  Pedro Alves  <palves@redhat.com>
8621
8622         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8623         rather than casting 'const char * const *' to 'const char **'.
8624         * ada-lex.l (processInt): Make "trailer" local const.  Remove
8625         'const char **' cast.
8626         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8627         locals, and use those as strtol output pointer, instead than doing
8628         invalid casts to from 'const char **' to 'char **'.
8629         (_initialize_demangle): Remove cast.
8630         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8631         locals, and use those as strtol output pointer, instead than doing
8632         invalid casts to from 'const char **' to 'char **'.
8633         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8634         casts.
8635         * stap-probe.c (stap_parse_register_operand)
8636         (stap_parse_single_operand): Likewise.
8637
8638 2013-03-13  Yao Qi  <yao@codesourcery.com>
8639
8640         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8641         the last matched 'V' blcok in trace frame.
8642
8643 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8644
8645         * NEWS: Create a new section for the next release branch.
8646         Rename the section of the current branch, now that it has
8647         been cut.
8648
8649 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8650
8651         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8652         * version.in: Bump version to 7.6.50.20130312-cvs.
8653
8654 2013-03-12  Keith Seitz  <keiths@redhat.com>
8655
8656         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8657         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8658         Remove temporary copy of input string.
8659         (mi_execute_command_wrapper): Make "cmd" const.
8660         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8661         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8662         Use const strings.
8663         (mi_parse): Make "cmd" const.
8664         Use const strings.
8665         * mi/mi-parse.h (mi_parse): Make "cmd" const.
8666
8667 2013-03-12  Keith Seitz  <keiths@redhat.com>
8668
8669         * ada-lang.c (ada_read_renaming_var_value): Pass const
8670         pointer to expression string to parse_exp_1.
8671         (create_excep_cond_exprs): Likewise.
8672         * ax-gdb.c (agent_eval_command_one): Likewise.
8673         (maint_agent_printf_command): Likewise.
8674         Constify much of the string handling/parsing.
8675         * breakpoint.c (set_breakpoint_condition): Pass const
8676         pointer to expression string to parse_exp_1.
8677         (update_watchpoint): Likewise.
8678         (parse_cmd_to_aexpr): Constify string handling.
8679         Pass const pointer to parse_exp_1.
8680         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8681         (find_condition_and_thread): Likewise.
8682         Make TOK const.
8683         (watch_command_1): Make "arg" const.
8684         Constify string handling.
8685         Copy the expression string instead of changing the input
8686         string.
8687         (update_breakpoint_location): Pass const pointer to
8688         parse_exp_1.
8689         * eval.c (parse_and_eval_address): Make "exp" const.
8690         (parse_to_comma_and_eval): Make "expp" const.
8691         (parse_and_eval): Make "exp" const.
8692         * expression.h (parse_expression): Make argument const.
8693         (parse_exp_1): Make first argument const.
8694         * findcmd.c (parse_find_args): Treat "args" as const.
8695         * linespec.c (parse_linespec): Pass const pointer to
8696         linespec_expression_to_pc.
8697         (linespec_expression_to_pc): Make "exp_ptr" const.
8698         * parse.c (parse_exp_1): Make "stringptr" const.
8699         Make a copy of the expression to pass to parse_exp_in_context until
8700         this whole interface can be constified.
8701         (parse_expression): Make "string" const.
8702         * printcmd.c (ui_printf): Treat "arg" as const.
8703         Handle const strings.
8704         * tracepoint.c (validate_actionline): Pass const pointer to
8705         all calls to parse_exp_1.
8706         (encode_actions_1): Likewise.
8707         * value.h (parse_to_comma_and_eval): Make argument const.
8708         (parse_and_eval_address): Likewise.
8709         (parse_and_eval): Likewise.
8710         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8711         (varobj_set_value): Likewise.
8712         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8713         constify string handling.
8714         Pass const pointers to parse_and_eval_address and
8715         parse_to_comman_and_eval.
8716         * cli/cli-utils.c (skip_to_space): Rename to ...
8717         (skip_to_space_const): ... this. Handle const strings.
8718         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8719         skip_to_space_const.
8720         (skip_to_space_const): Declare.
8721         * common/format.c (parse_format_string): Make "arg" const.
8722         Handle const strings.
8723         * common/format.h (parse_format_string): Make "arg" const.
8724         * gdbserver/ax.c (ax_printf): Make "format" const.
8725         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8726         of the expression string.
8727
8728 2013-03-12  Hui Zhu  <hui@codesourcery.com>
8729
8730         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8731
8732 2013-03-12  Yao Qi  <yao@codesourcery.com>
8733             Hui Zhu  <hui@codesourcery.com>
8734
8735         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8736         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8737         DW_OP_deref_size.
8738
8739 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
8740
8741         * ada-lex.l (rules): Only recognize 'thread' as a
8742         delimiter when followed by numerals, as for c-exp.y.
8743         Use new rewind_to_char function to rewind the input for
8744         expression-delimiting tokens.
8745         (rewind_to_char): New function.
8746
8747 2013-03-11  Pedro Alves  <palves@redhat.com>
8748             Jan Kratochvil  <jan.kratochvil@redhat.com>
8749
8750         * configure: Regenerate.
8751         * configure.ac (check dynamic export flag): Link python test with
8752         $PYTHON_LIBS.
8753
8754 2013-03-11  Doug Evans  <dje@google.com>
8755             Keith Seitz  <keiths@redhat.com>
8756
8757         * linespec.c (find_linespec_symbols): Call find_function_symbols
8758         first, and then call lookup_prefix_sym/find_method.
8759
8760 2013-03-11  Pedro Alves  <palves@redhat.com>
8761
8762         * charset.c (convert_between_encodings): Don't cast between
8763         different pointer to pointer types.  Instead, make the 'inp' local
8764         be of the type iconv expects.
8765         (wchar_iterate): Don't cast between different pointer to pointer
8766         types.  Instead, use new pointer local of the type iconv expects.
8767         * target.c (target_read_stralloc, target_fileio_read_stralloc):
8768         Add new local of type char pointer, and use it to get a
8769         char/string view of the byte buffer, instead of casting between
8770         pointer to pointer types.
8771
8772 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
8773
8774         * remote.c (remote_set_trace_buffer_size): Move != operator
8775         to the start of next line to fix an ARI warning.
8776
8777 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8778
8779         * NEWS: Add record changes.
8780
8781 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8782
8783         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8784         the instruction history disassembly.
8785         * disasm.c (dump_insns): Omit the pc prefix, if requested.
8786         * disasm.h (DISASSEMBLY_OMIT_PC): New.
8787
8788 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8789
8790         * Makefile.in (SFILES): Add record-btrace.c
8791         (COMMON_OBS): Add record-btrace.o
8792         * record-btrace.c: New.
8793         * objfiles.c: Include btrace.h.
8794         (free_objfile): call btrace_free_objfile.
8795
8796 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8797
8798         * target.c (target_call_history, target_call_history_from,
8799         target_call_history_range): New.
8800         * target.h (target_ops) <to_call_history, to_call_history_from,
8801         to_call_history_range>: New fields.
8802         (target_call_history, target_call_history_from,
8803         target_call_history_range): New declaration.
8804         * record.c (get_call_history_modifiers, cmd_record_call_history,
8805         record_call_history_size): New.
8806         (_initialize_record): Add the "record function-call-history" command.
8807         Add "set/show record function-call-history-size" commands.
8808         * record.h (record_print_flag): New.
8809
8810 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8811
8812         * target.h (target_ops) <to_insn_history, to_insn_history_from,
8813         to_insn_history_range>: New fields.
8814         (target_insn_history): New.
8815         (target_insn_history_from): New.
8816         (target_insn_history_range): New.
8817         * target.c (target_insn_history): New.
8818         (target_insn_history_from): New.
8819         (target_insn_history_range): New.
8820         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8821         (record_insn_history_size): New.
8822         (get_insn_number): New.
8823         (get_context_size): New.
8824         (no_chunk): New.
8825         (get_insn_history_modifiers): New.
8826         (cmd_record_insn_history): New.
8827         (_initialize_record): Add "set/show record instruction-history-size"
8828         command. Add "record instruction-history" command.
8829
8830 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8831
8832         * record.h (record_disconnect): New.
8833         (record_detach): New.
8834         (record_mourn_inferior): New.
8835         (record_kill): New.
8836         * record-full.c (record_disconnect, record_detach,
8837         record_mourn_inferior, record_kill): Move to...
8838         * record.c: ...here.
8839         (DEBUG): New.
8840         (record_stop): New.
8841         (record_unpush): New.
8842         (cmd_record_stop): Call record_stop. Replace unpush_target
8843         call with record_unpush call.
8844         (record_disconnect, record_detach): Assert that the target
8845         is of record stratum. Call record_unpush, record_stop, and
8846         DEBUG.
8847         (record_mourn_inferior, record_kill): Assert that the target
8848         is of record stratum. Call record_unpush and DEBUG.
8849
8850 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8851
8852         * record-full.h, record-full.c (record_memory_query): Rename
8853         to ...
8854         (record_full_memory_query): ...this. Update all users.
8855         (record_arch_list_add_reg): Rename to ...
8856         (record_full_arch_list_add_reg): ...this. Update all users.
8857         (record_arch_list_add_mem): Rename to ...
8858         (record_full_arch_list_add_mem): ...this. Update all users.
8859         (record_arch_list_add_end): Rename to ...
8860         (record_full_arch_list_add_end): ...this. Update all users.
8861         (record_gdb_operation_disable_set): Rename to ...
8862         (record_full_gdb_operation_disable_set): ...this.
8863         Update all users.
8864
8865 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8866
8867         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8868         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8869         (RECORD_IS_REPLAY): Renamed to ...
8870         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8871         (RECORD_FILE_MAGIC): Renamed to ...
8872         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8873         (record_mem_entry): Renamed to ...
8874         (record_full_mem_entry): ... this. Updated all users.
8875         (record_reg_entry): Renamed to ...
8876         (record_full_reg_entry): ... this. Updated all users.
8877         (record_end_entry): Renamed to ...
8878         (record_full_end_entry): ... this. Updated all users.
8879         (record_type) <record_end, record_reg, record_mem>: Renamed
8880         to ...
8881         (record_full_type) <record_full_end, record_full_reg,
8882         record_full_mem>: ... this. Updated all users.
8883         (record_entry): Renamed to ...
8884         (record_full_entry): ... this. Updated all users.
8885         (record_core_buf_entry): Renamed to ...
8886         (record_full_core_buf_entry): ... this. Updated all users.
8887         (record_core_regbuf): Renamed to ...
8888         (record_full_core_regbuf): ... this. Updated all users.
8889         (record_core_start): Renamed to ...
8890         (record_full_core_start): ... this. Updated all users.
8891         (record_core_end): Renamed to ...
8892         (record_full_core_end): ... this. Updated all users.
8893         (record_core_buf_list): Renamed to ...
8894         (record_full_core_buf_list): ... this. Updated all users.
8895         (record_first): Renamed to ...
8896         (record_full_first): ... this. Updated all users.
8897         (record_list): Renamed to ...
8898         (record_full_list): ... this. Updated all users.
8899         (record_arch_list_head): Renamed to ...
8900         (record_full_arch_list_head): ... this. Updated all users.
8901         (record_arch_list_tail): Renamed to ...
8902         (record_full_arch_list_tail): ... this. Updated all users.
8903         (record_stop_at_limit): Renamed to ...
8904         (record_full_stop_at_limit): ... this. Updated all users.
8905         (record_insn_max_num): Renamed to ...
8906         (record_full_insn_max_num): ... this. Updated all users.
8907         (record_insn_num): Renamed to ...
8908         (record_full_insn_num): ... this. Updated all users.
8909         (record_insn_count): Renamed to ...
8910         (record_full_insn_count): ... this. Updated all users.
8911         (record_ops): Renamed to ...
8912         (record_full_ops): ... this. Updated all users.
8913         (record_core_ops): Renamed to ...
8914         (record_full_core_ops): ... this. Updated all users.
8915         (set_record_cmdlist): Renamed to ...
8916         (set_record_full_cmdlist): ... this. Updated all users.
8917         (show_record_cmdlist): Renamed to ...
8918         (show_record_full_cmdlist): ... this. Updated all users.
8919         (record_cmdlist): Renamed to ...
8920         (record_full_cmdlist): ... this. Updated all users.
8921         (record_beneath_to_resume_ops): Renamed to ...
8922         (record_full_beneath_to_resume_ops): ... this. Updated all users.
8923         (record_beneath_to_resume): Renamed to ...
8924         (record_full_beneath_to_resume): ... this. Updated all users.
8925         (record_beneath_to_wait_ops): Renamed to ...
8926         (record_full_beneath_to_wait_ops): ... this. Updated all users.
8927         (record_beneath_to_wait): Renamed to ...
8928         (record_full_beneath_to_wait): ... this. Updated all users.
8929         (record_beneath_to_store_registers_ops): Renamed to ...
8930         (record_full_beneath_to_store_registers_ops): ... this.
8931         Updated all users.
8932         (record_beneath_to_store_registers): Renamed to ...
8933         (record_full_beneath_to_store_registers): ... this.
8934         Updated all users.
8935         (record_beneath_to_xfer_partial_ops): Renamed to ...
8936         (record_full_beneath_to_xfer_partial_ops): ... this.
8937         Updated all users.
8938         (record_beneath_to_xfer_partial): Renamed to ...
8939         (record_full_beneath_to_xfer_partial): ... this.
8940         Updated all users.
8941         (record_beneath_to_insert_breakpoint): Renamed to ...
8942         (record_full_beneath_to_insert_breakpoint): ... this.
8943         Updated all users.
8944         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8945         (record_full_beneath_to_stopped_by_watchpoint): ... this.
8946         Updated all users.
8947         (record_beneath_to_stopped_data_address): Renamed to ...
8948         (record_full_beneath_to_stopped_data_address): ... this.
8949         Updated all users.
8950         (record_beneath_to_async): Renamed to ...
8951         (record_full_beneath_to_async): ... this. Updated all users.
8952         (record_goto_insn): Renamed to ...
8953         (record_full_goto_insn): ... this. Updated all users.
8954         (record_save): Renamed to ...
8955         (record_full_save): ... this. Updated all users.
8956         (record_reg_alloc): Renamed to ...
8957         (record_full_reg_alloc): ... this. Updated all users.
8958         (record_reg_release): Renamed to ...
8959         (record_full_reg_release): ... this. Updated all users.
8960         (record_mem_alloc): Renamed to ...
8961         (record_full_mem_alloc): ... this. Updated all users.
8962         (record_mem_release): Renamed to ...
8963         (record_full_mem_release): ... this. Updated all users.
8964         (record_end_alloc): Renamed to ...
8965         (record_full_end_alloc): ... this. Updated all users.
8966         (record_end_release): Renamed to ...
8967         (record_full_end_release): ... this. Updated all users.
8968         (record_entry_release): Renamed to ...
8969         (record_full_entry_release): ... this. Updated all users.
8970         (record_list_release): Renamed to ...
8971         (record_full_list_release): ... this. Updated all users.
8972         (record_list_release_following): Renamed to ...
8973         (record_full_list_release_following): ... this.
8974         Updated all users.
8975         (record_list_release_first): Renamed to ...
8976         (record_full_list_release_first): ... this. Updated all users.
8977         (record_arch_list_add): Renamed to ...
8978         (record_full_arch_list_add): ... this. Updated all users.
8979         (record_get_loc): Renamed to ...
8980         (record_full_get_loc): ... this. Updated all users.
8981         (record_check_insn_num): Renamed to ...
8982         (record_full_check_insn_num): ... this. Updated all users.
8983         (record_arch_list_cleanups): Renamed to ...
8984         (record_full_arch_list_cleanups): ... this. Updated all users.
8985         (record_message): Renamed to ...
8986         (record_full_message): ... this. Updated all users.
8987         (record_message_wrapper): Renamed to ...
8988         (record_full_message_wrapper): ... this. Updated all users.
8989         (record_message_wrapper_safe): Renamed to ...
8990         (record_full_message_wrapper_safe): ... this. Updated all users.
8991         (record_gdb_operation_disable): Renamed to ...
8992         (record_full_gdb_operation_disable): ... this. Updated all users.
8993         (record_hw_watchpoint): Renamed to ...
8994         (record_full_hw_watchpoint): ... this. Updated all users.
8995         (record_exec_insn): Renamed to ...
8996         (record_full_exec_insn): ... this. Updated all users.
8997         (record_restore): Renamed to ...
8998         (record_full_restore): ... this. Updated all users.
8999         (record_async_inferior_event_token): Renamed to ...
9000         (record_full_async_inferior_event_token): ... this.
9001         Updated all users.
9002         (record_async_inferior_event_handler): Renamed to ...
9003         (record_full_async_inferior_event_handler): ... this.
9004         Updated all users.
9005         (record_core_open_1): Renamed to ...
9006         (record_full_core_open_1): ... this. Updated all users.
9007         (record_open_1): Renamed to ...
9008         (record_full_open_1): ... this. Updated all users.
9009         (record_open): Renamed to ...
9010         (record_full_open): ... this. Updated all users.
9011         (record_close): Renamed to ...
9012         (record_full_close): ... this. Updated all users.
9013         (record_resume_step): Renamed to ...
9014         (record_full_resume_step): ... this. Updated all users.
9015         (record_resumed): Renamed to ...
9016         (record_full_resumed): ... this. Updated all users.
9017         (record_execution_dir): Renamed to ...
9018         (record_full_execution_dir): ... this. Updated all users.
9019         (record_resume): Renamed to ...
9020         (record_full_resume): ... this. Updated all users.
9021         (record_get_sig): Renamed to ...
9022         (record_full_get_sig): ... this. Updated all users.
9023         (record_sig_handler): Renamed to ...
9024         (record_full_sig_handler): ... this. Updated all users.
9025         (record_wait_cleanups): Renamed to ...
9026         (record_full_wait_cleanups): ... this. Updated all users.
9027         (record_wait_1): Renamed to ...
9028         (record_full_wait_1): ... this. Updated all users.
9029         (record_wait): Renamed to ...
9030         (record_full_wait): ... this. Updated all users.
9031         (record_stopped_by_watchpoint): Renamed to ...
9032         (record_full_stopped_by_watchpoint): ... this. Updated all users.
9033         (record_disconnect): Renamed to ...
9034         (record_full_disconnect): ... this. Updated all users.
9035         (record_detach): Renamed to ...
9036         (record_full_detach): ... this. Updated all users.
9037         (record_mourn_inferior): Renamed to ...
9038         (record_full_mourn_inferior): ... this. Updated all users.
9039         (record_kill): Renamed to ...
9040         (record_full_kill): ... this. Updated all users.
9041         (record_stopped_data_address): Renamed to ...
9042         (record_full_stopped_data_address): ... this. Updated all users.
9043         (record_registers_change): Renamed to ...
9044         (record_full_registers_change): ... this. Updated all users.
9045         (record_store_registers): Renamed to ...
9046         (record_full_store_registers): ... this. Updated all users.
9047         (record_xfer_partial): Renamed to ...
9048         (record_full_xfer_partial): ... this. Updated all users.
9049         (record_breakpoint): Renamed to ...
9050         (record_full_breakpoint): ... this. Updated all users.
9051         (record_breakpoint_p): Renamed to ...
9052         (record_full_breakpoint_p): ... this. Updated all users.
9053         (record_breakpoints): Renamed to ...
9054         (record_full_breakpoints): ... this. Updated all users.
9055         (record_sync_record_breakpoints): Renamed to ...
9056         (record_full_sync_record_breakpoints): ... this.
9057         Updated all users.
9058         (record_init_record_breakpoints): Renamed to ...
9059         (record_full_init_record_breakpoints): ... this.
9060         Updated all users.
9061         (record_insert_breakpoint): Renamed to ...
9062         (record_full_insert_breakpoint): ... this. Updated all users.
9063         (record_remove_breakpoint): Renamed to ...
9064         (record_full_remove_breakpoint): ... this. Updated all users.
9065         (record_can_execute_reverse): Renamed to ...
9066         (record_full_can_execute_reverse): ... this. Updated all users.
9067         (record_get_bookmark): Renamed to ...
9068         (record_full_get_bookmark): ... this. Updated all users.
9069         (record_goto_bookmark): Renamed to ...
9070         (record_full_goto_bookmark): ... this. Updated all users.
9071         (record_async): Renamed to ...
9072         (record_full_async): ... this. Updated all users.
9073         (record_can_async_p): Renamed to ...
9074         (record_full_can_async_p): ... this. Updated all users.
9075         (record_is_async_p): Renamed to ...
9076         (record_full_is_async_p): ... this. Updated all users.
9077         (record_execution_direction): Renamed to ...
9078         (record_full_execution_direction): ... this. Updated all users.
9079         (record_info): Renamed to ...
9080         (record_full_info): ... this. Updated all users.
9081         (record_delete): Renamed to ...
9082         (record_full_delete): ... this. Updated all users.
9083         (record_is_replaying): Renamed to ...
9084         (record_full_is_replaying): ... this. Updated all users.
9085         (record_goto_entry): Renamed to ...
9086         (record_full_goto_entry): ... this. Updated all users.
9087         (record_goto_begin): Renamed to ...
9088         (record_full_goto_begin): ... this. Updated all users.
9089         (record_goto_end): Renamed to ...
9090         (record_full_goto_end): ... this. Updated all users.
9091         (record_goto): Renamed to ...
9092         (record_full_goto): ... this. Updated all users.
9093         (init_record_ops): Renamed to ...
9094         (init_record_full_ops): ... this. Updated all users.
9095         (record_core_resume): Renamed to ...
9096         (record_full_core_resume): ... this. Updated all users.
9097         (record_core_kill): Renamed to ...
9098         (record_full_core_kill): ... this. Updated all users.
9099         (record_core_fetch_registers): Renamed to ...
9100         (record_full_core_fetch_registers): ... this. Updated all users.
9101         (record_core_prepare_to_store): Renamed to ...
9102         (record_full_core_prepare_to_store): ... this. Updated all users.
9103         (record_core_store_registers): Renamed to ...
9104         (record_full_core_store_registers): ... this. Updated all users.
9105         (record_core_xfer_partial): Renamed to ...
9106         (record_full_core_xfer_partial): ... this. Updated all users.
9107         (record_core_insert_breakpoint): Renamed to ...
9108         (record_full_core_insert_breakpoint): ... this. Updated all users.
9109         (record_core_remove_breakpoint): Renamed to ...
9110         (record_full_core_remove_breakpoint): ... this. Updated all users.
9111         (record_core_has_execution): Renamed to ...
9112         (record_full_core_has_execution): ... this. Updated all users.
9113         (init_record_core_ops): Renamed to ...
9114         (init_record_full_core_ops): ... this. Updated all users.
9115         (cmd_record_restore): Renamed to ...
9116         (cmd_record_full_restore): ... this. Updated all users.
9117         (record_save_cleanups): Renamed to ...
9118         (record_full_save_cleanups): ... this. Updated all users.
9119         (cmd_record_start): Renamed to ...
9120         (cmd_record_full_start): ... this. Updated all users.
9121         (set_record_insn_max_num): Renamed to ...
9122         (set_record_full_insn_max_num): ... this. Updated all users.
9123         (set_record_command): Renamed to ...
9124         (set_record_full_command): ... this. Updated all users.
9125         (show_record_command): Renamed to ...
9126         (show_record_full_command): ... this. Updated all users.
9127         (_initialize_record): Renamed to ...
9128         (_initialize_record_full): ... this. Updated all users.
9129
9130 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9131
9132         * record.h: Split into this and ...
9133         * record-full.h: ... this.
9134         * record.c: Split into this and ...
9135         * record-full.c: ... this.
9136         * target.h (target_ops): Add new fields to_info_record,
9137         to_save_record, to_delete_record, to_record_is_replaying,
9138         to_goto_record_begin, to_goto_record_end, to_goto_record.
9139         (target_info_record): New.
9140         (target_save_record): New.
9141         (target_supports_delete_record): New.
9142         (target_delete_record): New.
9143         (target_record_is_replaying): New.
9144         (target_goto_record_begin): New.
9145         (target_goto_record_end): New.
9146         (target_goto_record): New.
9147         * target.c (target_info_record): New.
9148         (target_save_record): New.
9149         (target_supports_delete_record): New.
9150         (target_delete_record): New.
9151         (target_record_is_replaying): New.
9152         (target_goto_record_begin): New.
9153         (target_goto_record_end): New.
9154         (target_goto_record): New.
9155         * record.h: Declare struct cmd_list_element.
9156         (record_cmdlist): New declaration.
9157         (set_record_cmdlist): New declaration.
9158         (show_record_cmdlist): New declaration.
9159         (info_record_cmdlist): New declaration.
9160         (cmd_record_goto): New declaration.
9161         * record.c: Remove unnecessary includes.
9162         Include inferior.h.
9163         (cmd_record_goto): Remove declaration.
9164         (record_cmdlist): Now extern. Initialize.
9165         (set_record_cmdlist): Now extern. Initialize.
9166         (show_record_cmdlist): Now extern. Initialize.
9167         (info_record_cmdlist): Now extern. Initialize.
9168         (find_record_target): New.
9169         (require_record_target): New.
9170         (cmd_record_start): Update.
9171         (cmd_record_delete): Remove target-specific code.
9172         Call target_delete_record.
9173         (cmd_record_stop): Unpush any record target.
9174         (set_record_insn_max_num): Move to record-full.c
9175         (set_record_command): Add comment.
9176         (show_record_command): Add comment.
9177         (info_record_command): Update comment.
9178         Remove target-specific code.
9179         Call the record target's to_info_record.
9180         (cmd_record_start): New.
9181         (cmd_record_goto): Now extern.
9182         Remove target-specific code.
9183         Call target_goto_begin,  target_goto_end, or target_goto.
9184         (_initialize_record): Move record target ops initialization to
9185         record-full.c.
9186         Change "record" command help text.
9187         Move "record restore", "record set", and "record show" commands to
9188         record-full.c.
9189         * Makefile.in (SFILES): Add record-full.c.
9190         (HFILES_NO_SRCDIR): Add record-full.h.
9191         (COMMON_OBS): Add record-full.o.
9192         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9193         * arm-tdep.c: Include record-full.h.
9194         * i386-linux-tdep.c: Include record-full.h instead of record.h.
9195         * i386-tdep.c: Include record-full.h.
9196         * infrun.c: Include record-full.h.
9197         * linux-record.c: Include record-full.h.
9198         * moxie-tdep.c: Include record-full.h.
9199         * record-full.c: Include record-full.h.
9200         Change module comment.
9201         (set_record_full_cmdlist): New.
9202         (show_record_full_cmdlist): New.
9203         (record_full_cmdlist): New.
9204         (record_goto_insn): New declaration.
9205         (record_save): New declaration.
9206         (record_check_insn_num): Change query string.
9207         (record_info): New.
9208         (record_delete): New.
9209         (record_is_replaying): New.
9210         (record_goto_entry): New.
9211         (record_goto_begin): New.
9212         (record_goto_end): New.
9213         (record_goto): New.
9214         (init_record_ops): Update.
9215         (init_record_core_ops): Update.
9216         (cmd_record_save): Rename to record_save. Remove target and arg checks.
9217         (cmd_record_start): New.
9218         (set_record_insn_max_num): Moved from record.c
9219         (set_record_full_command): New.
9220         (show_record_full_command): New.
9221         (_initialize_record_full): New.
9222
9223 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9224
9225         * target.h (add_deprecated_target_alias): New.
9226         * target.c (add_deprecated_target_alias): New.
9227
9228 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9229
9230         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9231         and signal.h.
9232         (linux_supports_btrace): Add kernel and
9233         cpuid check.
9234         (kernel_supports_btrace): New function.
9235         (cpu_supports_btrace): New function.
9236         (intel_supports_btrace): New function.
9237
9238 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9239
9240         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9241         * remote.c: Include btrace.h.
9242         (struct btrace_target_info): New struct.
9243         (remote_supports_btrace): New function.
9244         (send_Qbtrace): New function.
9245         (remote_enable_btrace): New function.
9246         (remote_disable_btrace): New function.
9247         (remote_teardown_btrace): New function.
9248         (remote_read_btrace): New function.
9249         (init_remote_ops): Add btrace ops.
9250         (enum <unnamed>): Add btrace packets.
9251         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9252         (_initialize_remote): Add packet configuration for branch tracing.
9253
9254 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9255
9256         * features/btrace.dtd: New file.
9257         * Makefile.in (XMLFILES): Add btrace.dtd.
9258         * btrace.h (parse_xml_btrace): New declaration.
9259         * btrace.c: Include xml-support.h.
9260         (parse_xml_btrace): New function.
9261         (parse_xml_btrace_block): New function.
9262         (block_attributes): New struct.
9263         (btrace_attributes): New struct.
9264         (btrace_children): New struct.
9265         (btrace_elements): New struct.
9266
9267 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9268
9269         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9270         (amd64_linux_enable_btrace): New.
9271         (amd64_linux_disable_btrace): New.
9272         (amd64_linux_teardown_btrace): New.
9273         (_initialize_amd64_linux_nat): Initialize btrace ops.
9274         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9275         (i386_linux_enable_btrace): New.
9276         (i386_linux_disable_btrace): New.
9277         (i386_linux_teardown_btrace): New.
9278         (_initialize_i386_linux_nat): Initialize btrace ops.
9279         * config/i386/linux.mh: Add linux-btrace.o.
9280         * config/i386/linux64.mh: Add linux-btrace.o.
9281
9282 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9283
9284         * common/linux_btrace.h: New file.
9285         * common/linux_btrace.c: New file.
9286         * Makefile.in (SFILES): Add btrace.c.
9287         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9288         (COMMON_OBS): Add btrace.o.
9289         (linux-btrace.o): New rule.
9290
9291 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9292
9293         * target.h: Include btrace.h.
9294         (struct target_ops) <to_supports_btrace, to_enable_btrace,
9295         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9296         * target.c (target_supports_btrace): New function.
9297         (target_enable_btrace): New function.
9298         (target_disable_btrace): New function.
9299         (target_teardown_btrace): New function.
9300         (target_read_btrace): New function.
9301         * btrace.h: New file.
9302         * btrace.c: New file.
9303         * Makefile.in: Add btrace.c.
9304         * gdbthread.h: Include btrace.h.
9305         (struct thread_info): Add btrace field.
9306         * thread.c: Include btrace.h.
9307         (clear_thread_inferior_resources): Call target_teardown_btrace.
9308         * common/btrace-common.h: New file.
9309
9310 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9311
9312         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9313         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9314         kill_status to outer block.
9315
9316 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9317
9318         Fix entry-values if the callee called a noreturn function.
9319         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9320         get_frame_address_in_block.  Add new comment.
9321
9322 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9323
9324         Fix entry-values in C++ across CUs.
9325         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9326         lookup_minimal_symbol.  Add a comment.
9327         * dwarf2read.c
9328         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9329         DW_AT_linkage_name.
9330
9331 2013-03-08  Yao Qi  <yao@codesourcery.com>
9332
9333         * tracepoint.c (_initialize_tracepoint): Indent the code.
9334
9335 2013-03-08  Pedro Alves  <palves@redhat.com>
9336
9337         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9338         (parse_find_args, find_command): Change type of pattern buffer
9339         locals to 'gdb_byte *'.
9340
9341 2013-03-08  Stan Shebs  <stan@codesourcery.com>
9342             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9343
9344         * NEWS: Mention set and show trace-buffer-size commands.
9345         Mention new packet.
9346         * target.h (struct target_ops): New method
9347         to_set_trace_buffer_size.
9348         (target_set_trace_buffer_size): New macro.
9349         * target.c (update_current_target): Set up new method.
9350         * tracepoint.c (trace_buffer_size): New global.
9351         (start_tracing): Send it to the target.
9352         (set_trace_buffer_size): New function.
9353         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9354         * remote.c (remote_set_trace_buffer_size): New function.
9355         (_initialize_remote): Use it.
9356         (QTBuffer:size) New remote command.
9357         (PACKET_QTBuffer_size): New enum.
9358         (remote_protocol_features): Add an entry for
9359         PACKET_QTBuffer_size.
9360
9361 2013-03-08  Tom Tromey  <tromey@redhat.com>
9362
9363         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9364         variable.
9365
9366 2013-03-07  Pedro Alves  <palves@redhat.com>
9367
9368         * target.c (target_read_stralloc, target_fileio_read_alloc):
9369         *Cast pointer to 'gdb_byte *' in target call.
9370
9371 2013-03-07  Pedro Alves  <palves@redhat.com>
9372
9373         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9374         call.
9375
9376 2013-03-07  Keith Seitz  <keiths@redhat.com>
9377
9378         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9379         (trace_pass_command): Likewise.
9380         * cli/cli-cmds.c: Include cli/cli-utils.h.
9381         (source_command): Use skip-spaces.
9382         (disassemble_command): Likewise.
9383         * findcmd.c: Include cli/cli-utils.h.
9384         (parse_find_args): Use skip_spaces.
9385         * go32-nat.c: Include cli/cli-utils.h.
9386         (go32_sldt): Use skip_spaces.
9387         (go32_sgdt): Likewise.
9388         (go32_sidt): Likewise.
9389         (go32_pde): Likewise.
9390         (go32_pte): Likewise.
9391         (go32_pte_for_address): Likewise.
9392         * infcmd.c: Include cli/cli-utils.h.
9393         (registers_info): Use skip_spaces.
9394         * linux-tdep.c (read_mapping): Use skip_spaces_const.
9395         (linux_info_proc): Likewise.
9396         * linux-thread-db.c: Include cli/cli-utils.h.
9397         (info_auto_load_libthread_db): Use skip_spaces_const.
9398         * m32r-rom.c: Include cli/cli-utils.h.
9399         (m32r_upload_command): Use skip_spaces.
9400         * maint.c: Include cli/cli-utils.h.
9401         (maintenance_translate_address): Use skip_spaces.
9402         * mi/mi-parse.c: Include cli/cli-utils.h.
9403         (mi_parse_argv): Use skip_spaces.
9404         (mi_parse): Likewise.
9405         * minsyms.c: Include cli/cli-utils.h.
9406         (msymbol_hash_iw): Use skip_spaces_const.
9407         * objc-lang.c: Include cli/cli-utils.h.
9408         (parse_selector): Use skip_spaces.
9409         (parse_method): Likewise.
9410         * python/python.c: Include cli/cli-utils.h.
9411         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9412         (python_command)[HAVE_PYTHON]: Likewise.
9413         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9414         * remote-m32r-sdi.c: Include cli/cli-utils.h.
9415         (m32r_load): Use skip_spaces.
9416         * serial.c: Include cli/cli-utils.h.
9417         (serial_open): Use skip_spaces_const.
9418         * stack.c: Include cli/cli-utils.h.
9419         (parse_frame_specification_1): Use skip_spaces_const.
9420         * symfile.c: Include cli/cli-utils.h.
9421         (set_ext_lang_command): Use skip_spaces.
9422         * symtab.c: Include cli/cli-utils.h.
9423         (rbreak_command): Use skip_spaces.
9424         * thread.c (thread_name_command): Use skip_spaces.
9425         * tracepoint.c (validate_actionline): Use skip_spaces.
9426         (encode_actions_1): Likewise.
9427         (trace_find_range_command): Likewise.
9428         (trace_find_outside_command): Likewise.
9429         (trace_dump_actions): Likewise.
9430
9431 2013-03-07  Pedro Alves  <palves@redhat.com>
9432
9433         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9434         * expprint.c (print_subexp_standard): Likewise.
9435         * utils.c (host_char_to_target): Likewise.
9436         * valprint.c (generic_emit_char, generic_printstr): Likewise.
9437         * varobj.c (value_get_print_value): Change type of local to char*.
9438         Cast it gdb_byte * in call to language printer.
9439
9440 2013-03-07  Pedro Alves  <palves@redhat.com>
9441
9442         * charset.c (struct wchar_iterator) <input>: Change type to 'const
9443         gdb_byte *'.
9444         (make_wchar_iterator): Remove cast to char*.
9445         (wchar_iterate): Change type of local.
9446
9447 2013-03-07  Pedro Alves  <palves@redhat.com>
9448
9449         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9450         for 'regcache->register_status'.
9451
9452 2013-03-07  Pedro Alves  <palves@redhat.com>
9453
9454         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9455         int.
9456
9457 2013-03-07  Pedro Alves  <palves@redhat.com>
9458
9459         * stap-probe.c (handle_stap_probe): Add cast to char*.
9460
9461 2013-03-07  Pedro Alves  <palves@redhat.com>
9462
9463         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9464         RECORD_MSGRCV>: Pass a signed variable to
9465         regcache_raw_read_signed, instead of an unsigned one.
9466
9467 2013-03-07  Pedro Alves  <palves@redhat.com>
9468
9469         * remote-notif.c (notif_debug): Change type to int.
9470         * remote-notif.h (notif_debug): Likewise.
9471
9472 2013-03-07  Pedro Alves  <palves@redhat.com>
9473
9474         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9475
9476 2013-03-07  Pedro Alves  <palves@redhat.com>
9477
9478         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9479         * remote.h (hex2bin, bin2hex): ... here.
9480         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9481
9482 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
9483
9484         * utils.c (initialize_utils): Improve doc strings of "set/show
9485         width", "set/show height", and "set/show pagination".
9486
9487 2013-03-06  Keith Seitz  <keiths@redhat.com>
9488
9489         * ax-gdb.c (gen_printf): Make FORMAT const.
9490         * ax-gdb.h (gen_printf): Likewise.
9491         * ax-general.c (ax_string): Make STR const.
9492         * ax.h (ax_string): Likewise.
9493
9494 2013-03-06  Doug Evans  <dje@google.com>
9495
9496         * elfread.c (elf_symfile_read): Move debugging printf to more
9497         logical location.
9498
9499 2013-03-06  Pedro Alves  <palves@redhat.com>
9500
9501         * python/py-utils.c (target_string_to_unicode): Delete function.
9502         * python/python-internal.h (target_string_to_unicode): Delete
9503         declaration.
9504
9505 2013-03-06  Pierre Muller  <muller@sourceware.org>
9506
9507         * linespec.c (get_current_search_block): ARI fix, use (void)
9508         for empty parameter list.
9509
9510 2013-03-05  Doug Evans  <dje@google.com>
9511
9512         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9513         of old ada_lookup_symbol_list.  In !full_search case, don't
9514         search superblocks.
9515         (ada_lookup_symbol_list): Delete arg full_search, all callers
9516         updated.  Call ada_lookup_symbol_list_worker.
9517         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9518         * ada-lang.h (ada_lookup_symbol_list): Update.
9519         * language.h (language_defn): Update comment for
9520         la_iterate_over_symbols.
9521         * linespec.c (iterate_over_file_blocks): New function.
9522         (iterate_over_all_matching_symtabs): Call it.
9523         (lookup_prefix_sym): Ditto.
9524         (get_current_search_block): New function.
9525         (get_search_block): Delete.
9526         (find_label_symbols): Call get_current_search_block.
9527         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9528         * symtab.c (iterate_over_symbols): Don't search superblocks.
9529
9530 2013-03-05  Yao Qi  <yao@codesourcery.com>
9531
9532         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9533         parameter VAR's type from "unsigned int" to "int".
9534         * command.h (var_zuinteger_unlimited): Update its comments.
9535         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9536
9537 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9538
9539         * NEWS: Mention new target x86_64-*-cygwin*.
9540
9541 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9542
9543         * configure.host: Add x86_64-*-cygwin* as host.
9544         * configure.tgt: Add x86_64-*-cygwin* as target.
9545         * config/i386/cygwin64.mh: New file.
9546
9547 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9548
9549         * linespec.c (decode_line_2): Fix duplicate request off by two message.
9550
9551 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9552
9553         * linespec.c (struct linespec_canonical_name): New.
9554         (struct linespec_state): Change canonical_names type to it.
9555         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
9556         xrealloc element size.  Initialize the different CANONICAL fields.
9557         (canonical_to_fullform): New.
9558         (filter_results): Use it.  Add variables canonical, fullform and
9559         cleanup.
9560         (struct decode_line_2_item, decode_line_2_compare_items): New.
9561         (decode_line_2): Remove variables iter and item_names, add variables
9562         items and items_count.  Modify the code for these new variables.
9563
9564 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
9565
9566         * coff-pe-read.c (read_pe_exported_syms): Don't return without
9567         calling do_cleanup.
9568
9569 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
9570
9571         * tracepoint.c (build_traceframe_info): Add code for byte order.
9572
9573 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
9574
9575         * v850-tdep.c: (v850e2_register_name): Revise system register
9576         names to match current V850E2M architecture specifications.
9577         Update register number enum comments too.
9578
9579 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9580             Pedro Alves  <palves@redhat.com>
9581
9582         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9583         to END_ADDR.
9584         (tilegx_skip_prologue): Limit prologue analysis to section end.
9585
9586 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9587
9588         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9589         use it.
9590
9591 2013-03-01  Pedro Alves  <palves@redhat.com>
9592
9593         Use gdb_byte for bytes from the program being debugged.
9594
9595         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9596         Change type of local 'buf' to gdb_byte.
9597         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9598         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9599         * cris-tdep.c (cris_sigcontext_addr)
9600         (cris_sigtramp_frame_unwind_cache): Likewise.
9601         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9602         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9603         Likewise.
9604         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9605         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9606         (hppa32_hpux_search_dummy_call_sequence)
9607         (hppa_hpux_supply_save_state): Likewise.
9608         * hppa-linux-tdep.c (insns_match_pattern)
9609         (hppa_linux_find_global_pointer): Likewise.
9610         * hppa-tdep.c (hppa_in_function_epilogue_p)
9611         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9612         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9613         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9614         (i386fbsd_collect_uthread): Likewise.
9615         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9616         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9617         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9618         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9619         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9620         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9621         (ia64_libunwind_frame_prev_register)
9622         (ia64_libunwind_sigtramp_frame_this_id)
9623         (ia64_find_global_pointer_from_dynamic_section)
9624         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9625         (ia64_unwind_pc): Likewise.
9626         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9627         * m68hc11-tdep.c (m68hc11_push_dummy_call)
9628         (m68hc11_extract_return_value): Likewise.
9629         * m68klinux-nat.c (fetch_register, store_register): Likewise.
9630         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9631         (mep_get_insn, mep_push_dummy_call): Likewise.
9632         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9633         (mips_linux_in_dynsym_stub): Likewise.
9634         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9635         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9636         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9637         to gdb_byte.
9638         * remote-mips.c (mips_set_register): Likewise.
9639         * remote-sim.c (gdbsim_fetch_register): Likewise.
9640         * score-tdep.c (score7_fetch_inst): Change type of parameter
9641         'memblock' and local 'buf' to gdb_byte.
9642         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9643         Change type of local 'buf' to gdb_byte.  Adjust.
9644         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9645         to gdb_byte**.
9646         (score7_analyze_prologue): Change type of 'memblock' and
9647         'memblock_ptr' locals to gdb_byte*.
9648         * sh64-tdep.c (sh64_extract_return_value)
9649         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9650         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9651         * solib-pa64.c (pa64_solib_create_inferior_hook)
9652         (pa64_open_symbol_file_object): Remove local 'buf'.
9653         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9654         (som_open_symbol_file_object): Likewise.
9655         * solib-spu.c (spu_current_sos): Likewise.
9656         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9657         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9658         (spu_store_registers): Likewise.
9659         * target.c (debug_print_register): Likewise.
9660         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9661         * xstormy16-tdep.c (xstormy16_store_return_value)
9662         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9663         (xstormy16_find_jmp_table_entry): Likewise.
9664
9665 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9666
9667         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9668         (tilegx_gdbarch_init): Install it.
9669
9670 2013-02-28  Tom Tromey  <tromey@redhat.com>
9671
9672         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9673         PyLong_Check.
9674
9675 2013-02-28  Doug Evans  <dje@google.com>
9676
9677         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9678         * python/python.c (gdbpy_find_pc_line): Ditto.
9679
9680 2013-02-28  Tom Tromey  <tromey@redhat.com>
9681
9682         * contrib/excheck.py: New file.
9683         * contrib/exsummary.py: New file.
9684         * contrib/gcc-with-excheck: New file.
9685
9686 2013-02-28  Tom Tromey  <tromey@redhat.com>
9687
9688         * python/python.c (gdbpy_print_stack): Call begin_line and
9689         fprintf_filtered inside TRY_CATCH.
9690
9691 2013-02-28  Tom Tromey  <tromey@redhat.com>
9692
9693         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9694         inside TRY_CATCH.
9695
9696 2013-02-28  Tom Tromey  <tromey@redhat.com>
9697
9698         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9699         frame_object_to_frame_info inside TRY_CATCH.
9700
9701 2013-02-28  Tom Tromey  <tromey@redhat.com>
9702
9703         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9704         TRY_CATCH.
9705
9706 2013-02-28  Tom Tromey  <tromey@redhat.com>
9707
9708         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9709
9710 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
9711
9712         * windows-nat.c: Throughout, fix format strings and casts of
9713         printf-like functions to avoid type related warnings on all
9714         platforms.
9715         (handle_output_debug_string): Fetch context information address
9716         from debug string using string_to_core_addr.
9717
9718 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9719
9720         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9721         * regformats/reg-tilegx32.dat: New.
9722
9723 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9724
9725         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9726
9727 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9728
9729         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9730
9731 2013-02-27  Yao Qi  <yao@codesourcery.com>
9732             Pedro Alves  <palves@redhat.com>
9733
9734         * tracepoint.c (tfile_trace_find): For tfind
9735         pc/tp/range/outside, look for the next trace frame instead of
9736         always starting from frame 0.
9737
9738 2013-02-26  Anthony Green  <green@moxielogic.com>
9739
9740         * configure.tgt: Add support for moxie-*-rtems* target.
9741
9742 2013-02-25  Pedro Alves  <palves@redhat.com>
9743
9744         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9745         warning text.
9746
9747 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9748
9749         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9750         if $fp is used as the virtual frame pointer.
9751
9752 2013-02-23  Alan Modra  <amodra@gmail.com>
9753
9754         * elfread.c (elf_symtab_read): Do not use udata.p here to find
9755         symbol size.
9756         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9757         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9758         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9759         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9760
9761 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9762
9763         Code cleanup.
9764         * elfread.c (build_id_bfd_get): Make the return type const.
9765         (build_id_verify): Make the check parameter const.
9766         (build_id_to_debug_filename): Make the build_id parameter and variable
9767         data const.
9768         (find_separate_debug_file_by_buildid): Make the variable build_id const.
9769
9770 2013-02-21  Alan Modra  <amodra@gmail.com>
9771
9772         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9773
9774 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
9775
9776         Add a new method 'disassemble' to gdb.Architecture class.
9777         * python/py-arch.c (archpy_disassmble): Implementation of the
9778         new method gdb.Architecture.disassemble.
9779         (arch_object_methods): Add entry for the new method.
9780
9781 2013-02-20  Jiong Wang  <jiwang@tilera.com>
9782
9783         * MAINTAINERS (Write After Approval): Add myself to the list.
9784
9785 2013-02-19  Pedro Alves  <palves@redhat.com>
9786
9787         Garbage collect 'struct monitor_ops'::load_routine.
9788
9789         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9790         * monitor.c (monitor_load): No longer call
9791         current_monitor->load_routine.
9792         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9793         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9794         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9795
9796 2013-02-19  Pedro Alves  <palves@redhat.com>
9797
9798         PR gdb/15161
9799
9800         Harmonize with generic_load.
9801
9802         * monitor.c: Include "readline/readline.h".
9803         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
9804         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
9805         long/strtol for the 'load_offset' local.  Error out if no argument
9806         is given or if too many arguments are given.  Tilde expand the
9807         passed in file name.
9808
9809 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9810
9811         PR gdb/15161
9812         * symfile.c (load_section_data): Change type of load_offset
9813         to CORE_ADDR.
9814         (generic_load): User strtoulst instead of strtoul for conversion
9815         of load_offset.
9816
9817 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9818
9819         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9820          for return address, "lr" register, saved on stack.
9821         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9822         after we invoke tilegx_analyze_prologue.
9823
9824 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9825
9826         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9827
9828 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9829
9830         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9831
9832 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9833
9834         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9835         (tilegx_write_pc): New function.
9836         (tilegx_cannot_reference_register): Return zero if REGNO
9837         is TILEGX_FAULTNUM_REGNUM.
9838         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9839         (tilegx_register_name): Add handling of "faultnum" register.
9840         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9841         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9842         handling of TILEGX_FAULTNUM_REGNUM.
9843         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9844
9845 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9846
9847         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9848         should be aligned to 64bit.
9849
9850 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9851
9852         * windows-nat.c (windows_xfer_memory): Fix debug-output
9853         for LLP64.
9854
9855 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
9856
9857         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9858         Don't check DSP register number if HAVE_DSP is not set.
9859
9860 2013-02-19  Alan Modra  <amodra@gmail.com>
9861
9862         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
9863         throughout file instead.
9864         (build_id_bfd_get): Update to use new elf_tdata build_id field.
9865         Don't xmalloc return value.
9866         (build_id_verify): Similarly.  Don't xfree.
9867         (build_id_to_debug_filename): Update.
9868         (find_separate_debug_file_by_buildid): Update, don't xfree.
9869
9870 2013-02-18  Tom Tromey  <tromey@redhat.com>
9871
9872         PR gdb/15102:
9873         * dwarf2read.c (read_subrange_type): Use result of
9874         'check_typedef'.
9875
9876 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9877
9878         * frame.c: Remove one extra white space after #include
9879         directive.
9880
9881 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9882
9883         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9884
9885 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9886
9887         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9888         and dir commands into an if block.
9889
9890 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
9891
9892         * python/py-breakpoint (struct pybp_code):  Use int instead of
9893         enum type_code.
9894
9895 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
9896             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9897
9898         * NEWS: Mention new field "trace-file".
9899         * tracepoint.c (trace_status_mi): Output "trace-file" field.
9900         (tfile_open): Record the trace file's filename in the trace
9901         status.
9902         (tfile_files_info): Mention the name of the trace file.
9903         Check the "filename" field explicitely.
9904         (trace_status_command): Explicitely check "filename" field.
9905         (trace_find_command): Ditto.
9906         (trace_find_pc_command): Ditto.
9907         (trace_find_tracepoint_command): Ditto.
9908         (trace_find_line_command): Ditto.
9909         (trace_find_range_command): Ditto.
9910         (trace_find_outside_command): Ditto.
9911         * tracepoint.h (struct trace_status) <from_file>: Rename it
9912         to "filename" and make it hold the trace file's filename
9913         instead of a boolean.
9914         * remote.c (remote_get_trace_status): Initialize "filename"
9915         field with NULL instead of 0.
9916
9917 2013-02-15  Yao Qi  <yao@codesourcery.com>
9918
9919         * remote.c: Fix a typo.
9920
9921 2013-02-14  Pierre Muller  <muller@sourceware.org>
9922
9923         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9924
9925 2013-02-14  Pedro Alves  <palves@redhat.com>
9926
9927         * utils.c (savestring): Don't #undef it.  Move function to
9928         common/common-utils.c.
9929         * common/common-utils.c: Include gdb_string.h.
9930         (savestring): Move here from utils.c.
9931         * common/common-utils.h (savestring): Declare.
9932
9933 2013-02-14  Pedro Alves  <palves@redhat.com>
9934
9935         * utils.c (savestring): Rename parameter 'size' to 'len'.
9936
9937 2013-02-14  Pedro Alves  <palves@redhat.com>
9938             Yufeng Zhang  <yufeng.zhang@arm.com>
9939
9940         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9941         (aarch64_inferior_data, struct aarch64_inferior_data):
9942         Delete.
9943         (struct aarch64_process_info): New.
9944         (aarch64_process_list): New global.
9945         (aarch64_find_process_pid, aarch64_add_process)
9946         (aarch64_process_info_get): New functions.
9947         (aarch64_inferior_data_get): Delete.
9948         (aarch64_process_info_get): New function.
9949         (aarch64_forget_process): New function.
9950         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
9951         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9952         aarch64_get_debug_reg_state.
9953         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9954         instead of linux_nat_iterate_watchpoint_lwps.
9955         (aarch64_linux_new_fork): New function.
9956         (aarch64_linux_child_post_startup_inferior): Use
9957         aarch64_forget_process instead of aarch64_init_debug_reg_state.
9958         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9959         (aarch64_linux_remove_hw_breakpoint)
9960         (aarch64_handle_aligned_watchpoint)
9961         (aarch64_handle_unaligned_watchpoint)
9962         (aarch64_linux_insert_watchpoint)
9963         (aarch64_linux_remove_watchpoint)
9964         (aarch64_linux_stopped_data_address): Adjust to pass the current
9965         process id to aarch64_debug_reg_state.
9966         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9967         linux_nat_new_fork hook, and aarch64_forget_process as
9968         linux_nat_forget_process hook; remove the call to
9969         register_inferior_data_with_cleanup.
9970
9971 2013-02-14  Pedro Alves  <palves@redhat.com>
9972
9973         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9974         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9975         lval_memory.
9976
9977 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
9978             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9979
9980         * tracepoint.h (validate_trace_state_variable_name): Declare.
9981         * tracepoint.c (validate_trace_state_variable_name): New.
9982         (trace_variable_command): Parse the trace state variable's name
9983         without using parse_expression.  Do several validations.
9984         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9985         trace state variable's name with parse_expression.  Validate it.
9986
9987 2013-02-14  Yao Qi  <yao@codesourcery.com>
9988
9989         * infcmd.c (breakpoint_proceeded): Remove it.
9990
9991 2013-02-14  Yao Qi  <yao@codesourcery.com>
9992
9993         * tracepoint.c (end_actions_pseudocommand): Make it static.
9994         (while_stepping_pseudocommand): Likewise.
9995         * tracepoint.h (end_actions_pseudocommand): Remove the
9996         declaration.
9997         (while_stepping_pseudocommand): Likewise.
9998
9999 2013-02-14  Yao Qi  <yao@codesourcery.com>
10000
10001         * cli/cli-decode.c (help_cmd): Remove the declaration of
10002         "cmdlist".
10003         (help_all): Likewise.
10004
10005 2013-02-13  Pedro Alves  <palves@redhat.com>
10006
10007         * amd64-linux-nat.c (update_debug_registers_callback):
10008         Update comment.
10009         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10010         iterate_over_lwps.
10011         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10012         i386_debug_reg_state.
10013         (amd64_linux_new_fork): New function.
10014         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10015         linux_nat_new_fork hook, and i386_forget_process as
10016         linux_nat_forget_process hook.
10017         * i386-linux-nat.c (update_debug_registers_callback):
10018         Update comment.
10019         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10020         iterate_over_lwps.
10021         (i386_linux_prepare_to_resume): Pass the lwp's pid to
10022         i386_debug_reg_state.
10023         (i386_linux_new_fork): New function.
10024         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10025         linux_nat_new_fork hook, and i386_forget_process as
10026         linux_nat_forget_process hook.
10027         * i386-nat.c (i386_init_dregs): Delete.
10028         (i386_inferior_data, struct i386_inferior_data):
10029         Delete.
10030         (struct i386_process_info): New.
10031         (i386_process_list): New global.
10032         (i386_find_process_pid, i386_add_process, i386_process_info_get):
10033         New functions.
10034         (i386_inferior_data_get): Delete.
10035         (i386_process_info_get): New function.
10036         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
10037         (i386_forget_process): New function.
10038         (i386_cleanup_dregs): Rewrite.
10039         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10040         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10041         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10042         (i386_remove_hw_breakpoint): Adjust to pass the current process id
10043         to i386_debug_reg_state.
10044         (i386_use_watchpoints): Don't register inferior data.
10045         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10046         adjust comment.
10047         (i386_forget_process): Declare.
10048         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10049         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10050         New static globals.
10051         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10052         (add_initial_lwp): New, factored out from ...
10053         (add_lwp): ... this.  Don't check the number of lwps before
10054         calling linux_nat_new_thread.
10055         (linux_nat_iterate_watchpoint_lwps): Delete.
10056         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10057         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10058         forks and vforks.
10059         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10060         initial lwp.
10061         (linux_nat_kill, linux_nat_mourn_inferior): Call
10062         linux_nat_forget_process.
10063         (linux_nat_set_new_fork, linux_nat_set_forget_process)
10064         (linux_nat_forget_process): New functions.
10065         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10066         type.
10067         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10068         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10069         types.
10070         (linux_nat_set_new_fork, linux_nat_set_forget_process)
10071         (linux_nat_forget_process): New declarations.
10072
10073         * amd64fbsd-nat.c (super_mourn_inferior): New global.
10074         (amd64fbsd_mourn_inferior): New function.
10075         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10076         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10077
10078 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10079
10080         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10081         Adding _().
10082
10083 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10084
10085         * aarch64-linux-nat.c (debug_reg_change_callback)
10086         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10087         %s and phex().
10088
10089 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10090
10091         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10092         with LONGEST.
10093
10094 2013-02-13  Pedro Alves  <palves@redhat.com>
10095             Hafiz Abid Qadeer  <abidh@codesourcery.com>
10096
10097         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10098
10099 2013-02-12  Tom Tromey  <tromey@redhat.com>
10100
10101         PR symtab/11464:
10102         * c-exp.y (lex_one_token): Initialize other fields of yylval on
10103         NAME return.
10104         (classify_inner_name): Remove 'first_name' argument, add
10105         'context'.  Remove unused variable.
10106         (yylex): Explicitly maintain the context type.  Exit loop earlier
10107         if NAME result is seen.
10108
10109 2013-02-12  Pedro Alves  <palves@redhat.com>
10110
10111         * amd64-darwin-tdep.c: Add (C) after Copyright.
10112         * cli/cli-cmds.h: Ditto.
10113         * cli/cli-decode.c: Ditto.
10114         * cli/cli-decode.h: Ditto.
10115         * cli/cli-dump.c: Ditto.
10116         * cli/cli-dump.h: Ditto.
10117         * cli/cli-interp.c: Ditto.
10118         * cli/cli-logging.c: Ditto.
10119         * cli/cli-script.c: Ditto.
10120         * cli/cli-script.h: Ditto.
10121         * cli/cli-setshow.c: Ditto.
10122         * cli/cli-setshow.h: Ditto.
10123         * cli/cli-utils.c: Ditto.
10124         * cli/cli-utils.h: Ditto.
10125         * config/alpha/nm-osf3.h: Ditto.
10126         * config/djgpp/djconfig.sh: Ditto.
10127         * config/i386/nm-fbsd.h: Ditto.
10128         * config/i386/nm-i386gnu.h: Ditto.
10129         * config/nm-linux.h: Ditto.
10130         * config/nm-nto.h: Ditto.
10131         * config/rs6000/nm-rs6000.h: Ditto.
10132         * config/sparc/nm-sol2.h: Ditto.
10133         * darwin-nat-info.c: Ditto.
10134         * dfp.c: Ditto.
10135         * dfp.h: Ditto.
10136         * gdb-demangle.h: Ditto.
10137         * i386-darwin-nat.c: Ditto.
10138         * i386-darwin-tdep.c: Ditto.
10139         * linux-fork.h: Ditto.
10140         * m32c-tdep.c: Ditto.
10141         * microblaze-linux-tdep.c: Ditto.
10142         * microblaze-rom.c: Ditto.
10143         * microblaze-tdep.c: Ditto.
10144         * microblaze-tdep.h: Ditto.
10145         * mips-linux-tdep.h: Ditto.
10146         * ppc-ravenscar-thread.c: Ditto.
10147         * ppc-ravenscar-thread.h: Ditto.
10148         * prologue-value.c: Ditto.
10149         * prologue-value.h: Ditto.
10150         * ravenscar-thread.c: Ditto.
10151         * ravenscar-thread.h: Ditto.
10152         * sparc-ravenscar-thread.c: Ditto.
10153         * sparc-ravenscar-thread.h: Ditto.
10154         * tilegx-linux-tdep.c: Ditto.
10155         * unwind_stop_reasons.def: Ditto.
10156         * windows-nat.h: Ditto.
10157         * xtensa-linux-tdep.c: Ditto.
10158         * xtensa-xtregs.c: Ditto.
10159         * regformats/regdat.sh: Ditto.
10160         * regformats/regdef.h: Ditto.
10161
10162 2013-02-12  Pedro Alves  <palves@redhat.com>
10163
10164         * break-catch-sig.c: Update copyright years.
10165
10166 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
10167
10168         Add support for a destructor for ui_out data and use it to
10169         provide a ui_out destructor.
10170         * ui-out.h: Declare the new ui_out destructor.
10171         (ui_out_impl): Add a field for data destructor in ui_out_impl.
10172         * ui-out.c (default_data_destroy): Add a default data destructor
10173         which does nothing.
10174         (default_ui_out_impl): Set the new data_destroy field to
10175         default_data_destroy
10176         (uo_data_destroy): Local function which invokes the data
10177         destructor if present.
10178         (clear_table): Local function which clears the table data of a
10179         ui_out object.
10180         (ui_out_destroy): Public function which frees a ui_out object.
10181         (ui_out_table_end): Use the new clear_table function.
10182         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10183         NULL.
10184         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10185         to NULL.
10186
10187 2013-02-11  Doug Evans  <dje@google.com>
10188
10189         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10190         (printf_decfloat): New function.  Broken out from ui_printf.
10191         Remove unnecessary code to shift the entire format string down.
10192         (printf_pointer): New function.
10193         (ui_printf): Code to print C strings, wide C strings, decfloats,
10194         and pointers moved to separate functions.
10195
10196 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10197
10198         * valops.c (value_assign): Handling bitfield offset in
10199         `lval_internalvar_component' case.
10200
10201 2013-02-08  Doug Evans  <dje@google.com>
10202
10203         * common/format.c (parse_format_string): Fix whitespace.
10204
10205 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
10206
10207         * stack.c (return_command): Work around uninitialized variable
10208         warning.
10209
10210 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
10211
10212         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10213         number of the registers from 36 to 34.
10214
10215 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10216
10217         * NEWS: Mention new AArch64 native and target support.
10218
10219 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10220
10221         * MAINTAINERS (Write After Approval): Add myself.
10222
10223 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
10224             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10225             Nigel Stephens  <nigel.stephens@arm.com>
10226             Yufeng Zhang  <yufeng.zhang@arm.com>
10227
10228         * aarch64-linux-nat.c: New file.
10229         * config/aarch64/linux.mh: New file.
10230         * configure.host: Add AArch64.
10231         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10232
10233 2013-02-07  Doug Evans  <dje@google.com>
10234
10235         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10236         disassemble command.
10237
10238 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10239
10240         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10241         set_gdbarch_fetch_tls_load_module_address.
10242
10243 2013-02-06  David S. Miller  <davem@davemloft.net>
10244
10245         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10246         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10247         * value.c (struct_return_convention): New function.
10248         (using_struct_return): Implement in terms of struct_return_convention.
10249         * value.h (struct_return_convention): Declare.
10250         * stack.c (return_command): Allow successful overriding of the return
10251         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10252
10253 2013-02-06  Tom Tromey  <tromey@redhat.com>
10254
10255         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10256         outside of TRY_CATCH.
10257
10258 2013-02-06  Yao Qi  <yao@codesourcery.com>
10259
10260         * mi/mi-interp.c: Include "tracepoint.h".
10261         (mi_tsv_modified): Declare.
10262         (mi_tsv_created, mi_tsv_deleted): Update declaration.
10263         (mi_interpreter_init): Call observer_attach_tsv_modified.
10264         (mi_tsv_modified): New.
10265         (mi_tsv_created, mi_tsv_deleted): Update.
10266         * tracepoint.c (trace_variable_command): Call
10267         observer_notify_tsv_modified if the initial value of tsv is
10268         changed.
10269         (delete_trace_state_variable): Call
10270         observer_notify_tsv_deleted earlier.
10271         (trace_variable_command): Caller update.
10272         (create_tsv_from_upload): Likewise.
10273         * observer.sh: Declare "struct trace_state_variable".
10274
10275         * NEWS: Mention the new MI notification "=tsv-modified".
10276
10277 2013-02-05  Doug Evans  <dje@google.com>
10278
10279         * completer.c (location_completer): Fix typo in comment.
10280
10281 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10282
10283         * breakpoint.c (add_location_to_breakpoint): Insert the location with
10284         ADDRESS sorted.
10285
10286 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10287
10288         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10289         Refactor if statement to avoid trailing || operator.
10290
10291 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
10292
10293         * NEWS: Add PowerPC FreeBSD as a new native configuration.
10294
10295 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
10296
10297         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10298         * configure.host: Add powerpc*-*-freebsd* target.
10299         * configure.tgt: Add target info for powerpc*-*-freebsd*.
10300         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10301         * config/powerpc/fbsd.mh: New file.
10302
10303 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
10304             Denys Vlasenko  <dvlasenk@redhat.com>
10305             Pedro Alves  <palves@redhat.com>
10306
10307         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10308         (struct elf_internal_linux_prpsinfo): Forward declare.
10309         * gdbarch.h, gdbarch.c: Regenerate.
10310         * linux-tdep.c: Include `cli/cli-utils.h'.
10311         (linux_fill_prpsinfo): New function.
10312         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
10313         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10314         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10315         depending on gdbarch pointer bitness.
10316         * ppc-linux-tdep.c: Include elf-bfd.h.
10317         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10318         on 32-bit.
10319
10320 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10321             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10322             Nigel Stephens  <nigel.stephens@arm.com>
10323             Yufeng Zhang  <yufeng.zhang@arm.com>
10324
10325         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10326
10327 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10328             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10329             Nigel Stephens  <nigel.stephens@arm.com>
10330             Yufeng Zhang  <yufeng.zhang@arm.com>
10331
10332         * aarch64-newlib-tdep.c: New file.
10333         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10334         aarch64*-*-elf.
10335         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10336         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10337         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10338         * osabi.c (gdb_osabi_names): Add "Newlib".
10339
10340 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10341             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10342             Nigel Stephens  <nigel.stephens@arm.com>
10343             Yufeng Zhang  <yufeng.zhang@arm.com>
10344
10345         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10346         (ALLDEPFILES): Add aarch64-linux-tdep.c.
10347         * aarch64-linux-tdep.c: New file.
10348         * aarch64-linux-tdep.h: New file.
10349         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10350         * configure.tgt: Add aarch64-none-linux-gnu.
10351
10352 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10353             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10354             Nigel Stephens  <nigel.stephens@arm.com>
10355             Yufeng Zhang  <yufeng.zhang@arm.com>
10356
10357         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10358         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10359         (ALLDEPFILES): Add aarch64-tdep.c.
10360         * aarch64-tdep.c: New file.
10361         * aarch64-tdep.h: New file.
10362         * configure.tgt: Add AArch64.
10363         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10364         (aarch64-expedite): New definition.
10365         * features/aarch64-core.xml: New file.
10366         * features/aarch64-fpu.xml: New file.
10367         * features/aarch64-without-fpu.c: New file (generated).
10368         * features/aarch64-without-fpu.xml: New file.
10369         * features/aarch64.c: New file (generated).
10370         * features/aarch64.xml: New file.
10371         * regformats/aarch64-without-fpu.dat: New file (generated).
10372         * regformats/aarch64.dat: New file (generated).
10373
10374 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10375
10376         * contrib/expect-read1.c: New file.
10377         * contrib/expect-read1.sh: New file.
10378
10379 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10380
10381         * dwarf2read.c (file_file_name): New function with code from
10382         file_full_name.
10383         (file_full_name): Move most of the code to file_file_name.
10384         (macro_start_file): Rename variable full_name to file_name and use
10385         file_file_name for it.  Add comp_dir parameter to new_macro_table.
10386         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
10387         macro_source_file->filename access by macro_source_fullname call.
10388         * macroscope.c (_initialize_macroscope): Update the new_macro_table
10389         caller.
10390         * macrotab.c (struct macro_table): New field comp_dir.
10391         (macro_include): New variables link_fullname and source_fullname.
10392         Replace any macro_source_file->filename access by macro_source_fullname
10393         call.
10394         (macro_lookup_inclusion): Remove the partial filenames checking code.
10395         (check_for_redefinition): New variables source_fullname and
10396         found_key_fullname.  Replace any macro_source_file->filename access by
10397         macro_source_fullname call.
10398         (macro_undef): New variables source_fullname and key_fullname.  Replace
10399         any macro_source_file->filename access by macro_source_fullname call.
10400         (macro_lookup_definition): New variables retval and source_fullname.
10401         Replace any macro_source_file->filename access by macro_source_fullname
10402         call.
10403         (foreach_macro): New variable key_fullname.  Replace any
10404         macro_source_file->filename access by macro_source_fullname call.
10405         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
10406         macro_source_file->filename access by macro_source_fullname call.
10407         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
10408         (macro_source_fullname): New function.
10409         * macrotab.h (struct macro_source_file): Extent the filename field
10410         comment.
10411         (new_macro_table): New parameter comp_dir, add a comment for it.
10412         (macro_source_fullname): new declaration.
10413
10414 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10415
10416         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10417         this_real_name to outer block.  Use it also for
10418         compare_filenames_for_search.
10419         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
10420         with dw2_get_real_path for file_matcher, considering also
10421         BASENAMES_MAY_DIFFER.
10422         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10423
10424 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10425
10426         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10427         to the file_matcher parameter.  Pass 0 to it.
10428         (dwarf2_create_include_psymtab): Copy also DIRNAME.
10429         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10430         NULL psymtab_to_fullname result.
10431         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
10432         an expected filename instead.
10433         (expand_symtabs_matching_via_partial): Add basenames parameter to the
10434         file_matcher parameter.  Call also psymtab_to_fullname, after newly
10435         considering BASENAMES_MAY_DIFFER.
10436         * source.c (rewrite_source_path): Remove static.
10437         * source.h (rewrite_source_path): New declaration.
10438         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10439         the expand_symtabs_matching field.  Comment it.
10440         * symtab.c (file_matches): New function comment.  Add parameter
10441         basenames, implement it.
10442         (search_symbols_file_matches): Add basenames parameter.  Update the
10443         file_matches caller.
10444         (search_symbols): Match FILES also against symtab_to_fullname.
10445         Optimize it for BASENAMES_MAY_DIFFER.
10446
10447 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10448
10449         * source.c (print_source_lines_base): Print for TUI also "fullname".
10450         * tui/tui-data.c (init_content_element): Change tui_locator_element
10451         field to full_name.
10452         * tui/tui-data.h (struct tui_locator_element): Likewise.
10453         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10454         tui_update_locator_filename calls to tui_update_locator_fullname.
10455         Replace symtab->filename refererence by symtab_to_fullname call.
10456         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10457         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10458         field to full_name.  Replace symtab->filename refererence by
10459         symtab_to_fullname call.
10460         (tui_show_symtab_source): Rename parameter to fullname.  Change
10461         tui_locator_element field to full_name.
10462         * tui/tui-stack.c: Include source.h.
10463         (tui_set_locator_filename): Rename the declaration to ...
10464         (tui_set_locator_fullname): ... here.  Rename its parameter to
10465         fullname, updates its comment.
10466         (tui_set_locator_info): Rename its parameter to fullname.
10467         (tui_set_locator_filename): Rename the definition to ...
10468         (tui_set_locator_fullname): ... here.  Rename its parameter to
10469         fullname, updates its comment.  Change tui_locator_element field to
10470         full_name.
10471         (tui_set_locator_info): Rename its parameter to fullname.
10472         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10473         (tui_update_locator_filename): Rename to ...
10474         (tui_update_locator_fullname): ... here. Rename callee to
10475         tui_set_locator_fullname.
10476         (tui_show_frame_info): Replace symtab->filename refererence by
10477         symtab_to_fullname call.
10478         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10479         (tui_update_locator_fullname): ... here.
10480         * tui/tui-winsource.c (tui_display_main): Rename the callee to
10481         tui_update_locator_fullname.  Replace symtab->filename refererence by
10482         symtab_to_fullname call.
10483         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10484         Rename the callee to tui_update_locator_fullname.
10485         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10486
10487 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10488
10489         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10490         by symtab_to_filename_for_display calls.
10491         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10492         (clear_command): New variable sal_fullname, initialize it.  Replace
10493         compare_filenames_for_search by filename_cmp with sal_fullname.
10494         (say_where, update_static_tracepoint): Replace symtab->filename
10495         refererences by symtab_to_filename_for_display calls.
10496         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10497         Likewise.
10498         * dwarf2read.c: Include source.h.
10499         (fixup_go_packaging): Replace symtab->filename refererences by
10500         symtab_to_filename_for_display calls.
10501         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10502         Replace symtab->filename refererences by symtab_to_filename_for_display
10503         calls.
10504         (create_sals_line_offset, convert_linespec_to_sals): New variable
10505         fullname, initialize it, replace symtab->filename reference by the
10506         variable.
10507         * linux-fork.c: Include source.h.
10508         (info_checkpoints_command): Replace symtab->filename refererences by
10509         symtab_to_filename_for_display calls.
10510         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10511         by symtab_to_filename_for_display calls.
10512         * mdebugread.c: Include source.h.
10513         (psymtab_to_symtab_1): Replace symtab->filename refererences by
10514         symtab_to_filename_for_display calls.
10515         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10516         (mi_cmd_file_list_exec_source_files): Likewise.
10517         * printcmd.c: Include source.h.
10518         (build_address_symbolic): Replace symtab->filename refererences by
10519         symtab_to_filename_for_display calls.
10520         * psymtab.c (partial_map_symtabs_matching_filename)
10521         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10522         with psymtab_to_fullname.
10523         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10524         by symtab_to_filename_for_display calls.
10525         (stpy_get_filename): New variable filename, initialize it, use instead
10526         of symtab->filename refererences.
10527         (salpy_str): Make variable filename const char *.  Replace
10528         symtab->filename refererences by symtab_to_filename_for_display calls.
10529         * skip.c: Include source.h and filenames.h.
10530         (skip_file_command): Remove const from the symtab variable.  Replace
10531         symtab->filename refererences by symtab_to_fullname call.
10532         (function_name_is_marked_for_skip): New variables searched_for_fullname
10533         and fullname.  Use them to search also with symtab's fullname.
10534         * source.c (find_source_lines): Replace symtab->filename refererences
10535         by symtab_to_filename_for_display calls.
10536         (print_source_lines_base): New variable filename, use it instead of
10537         symtab->filename.  Replace symtab->filename refererences by
10538         symtab_to_filename_for_display calls.
10539         (line_info, forward_search_command): Replace symtab->filename
10540         refererences by symtab_to_filename_for_display calls.
10541         (reverse_search_command): Replace symtab->filename refererences by
10542         symtab_to_filename_for_display calls.  New variable filename for it.
10543         * stack.c (frame_info): Likewise.
10544         * symmisc.c: Include source.h.
10545         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10546         (maintenance_info_symtabs): Replace symtab->filename refererences by
10547         symtab_to_filename_for_display calls.
10548         * symtab.c (iterate_over_some_symtabs): Call
10549         compare_filenames_for_search also with symtab_to_fullname.
10550         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10551         symtab->filename refererences by symtab_to_filename_for_display calls.
10552         (find_line_symtab): Replace symtab->filename refererences by
10553         symtab_to_filename_for_display calls.
10554         (file_matches): Replace filename_cmp by compare_filenames_for_search.
10555         (print_symbol_info): Make the last parameter const char *.  New
10556         variable s_filename.  Use it in the function.
10557         (symtab_symbol_info): Make the last_filename variable const char *.
10558         Replace symtab->filename refererences by symtab_to_filename_for_display
10559         calls.
10560         (rbreak_command): New variable fullname.  Use it.  Replace
10561         symtab->filename refererence by symtab_to_filename_for_display call.
10562         * tracepoint.c (set_traceframe_context, trace_find_line_command)
10563         (print_one_static_tracepoint_marker): Replace symtab->filename
10564         refererences by symtab_to_filename_for_display calls.
10565         * tui/tui-source.c (tui_set_source_content): New variables filename and
10566         s_filename.  Replace symtab->filename refererences by this variable.
10567         Replace other symtab->filename refererences by
10568         symtab_to_filename_for_display calls.
10569
10570 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10571             Jan Kratochvil  <jan.kratochvil@redhat.com>
10572
10573         Add a new variable that controls a way in which filenames are
10574         displayed.
10575         * NEWS (set filename-display): New entry.
10576         * source.c (filename_display_basename, filename_display_relative)
10577         (filename_display_absolute, filename_display_kind_names)
10578         (filename_display_string, show_filename_display_string)
10579         (symtab_to_filename_for_display): New.
10580         (_initialize_source): Added initialization of 'filename-display'
10581         variable.
10582         * source.h (symtab_to_filename_for_display): Added declaration.
10583         * stack.c (print_frame): Added new variable and calling of a new
10584         function and condition with this variable. Changed third argument of
10585         calling of a function.
10586
10587 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10588
10589         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10590         Rename field reference filename to fullname.
10591         * tui/tui-data.h (struct tui_source_info): Rename field filename to
10592         fullname.  New comment for it.
10593         * tui/tui-source.c (tui_set_source_content): Rename field reference
10594         filename to fullname.  Initialize field by symtab_to_fullname now.
10595         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10596         reference filename to fullname.  Use symtab_to_fullname during
10597         comparison.
10598
10599 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10600
10601         Code cleanup.
10602         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10603         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
10604         filename to fullname.  Rename variable this_name to this_fullname.
10605         Lowercase FILENAME_CMP call.
10606         (dw2_find_symbol_file): New comment for the returned string.
10607         (dwarf2_gdb_index_functions): Rename the function to
10608         dw2_expand_symtabs_with_fullname.
10609         * psymtab.c (read_psymtabs_with_filename): Rename to ...
10610         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
10611         fullname.
10612         (psym_functions): Rename the function to read_psymtabs_with_fullname.
10613         * symfile.h (struct quick_symbol_functions): Rename field
10614         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10615         parameter filename to fullname.  Document returned string meaning for
10616         find_symbol_file.
10617         * symtab.c (find_line_symtab): Rename the called function to
10618         expand_symtabs_with_fullname.
10619
10620 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10621
10622         Code cleanup.
10623         * breakpoint.c (clear_command): Remove variable is_abs, unify the
10624         call of filename_cmp with compare_filenames_for_search.
10625         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10626         is_abs, unify the call of FILENAME_CMP with
10627         compare_filenames_for_search.  New gdb_asserts for real_path and name.
10628         Unify the call of compare_filenames_for_search with FILENAME_CMP.
10629         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10630         * symfile.h (struct quick_symbol_functions): Extend the comment for
10631         map_symtabs_matching_filename.
10632         * symtab.c (compare_filenames_for_search): Remove the function comment
10633         relative path requirement.  Handle absolute filenames, with a comment.
10634         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10635         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
10636         real_path and name.  Unify the call of compare_filenames_for_search
10637         with FILENAME_CMP.
10638         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10639
10640 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10641
10642         Code cleanup.
10643         * breakpoint.c (print_breakpoint_location): Replace bp_location field
10644         source_file references by symtab field references.  Remove variables
10645         sal and fullname.
10646         (momentary_breakpoint_from_master, add_location_to_breakpoint):
10647         (clear_command, say_where): Replace bp_location field source_file
10648         references by symtab field references.
10649         (bp_location_dtor): Remove the source_file reference.
10650         (update_static_tracepoint): Replace bp_location field source_file
10651         references by symtab field references.
10652         (breakpoint_free_objfile): New function.
10653         * breakpoint.h (struct bp_location): Extend the comment for line_number.
10654         Replace the field source_file by field symtab, extend its comment.
10655         (breakpoint_free_objfile): New declaration.
10656         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10657         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10658         field source_file references by symtab field references.
10659
10660 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10661
10662         Replace xfullpath calls by gdb_realpath calls.
10663         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10664         function comment.
10665         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10666         Remove it from the iterate_over_some_symtabs call.
10667         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10668         Remove it from the dw2_map_expand_apply calls, remove a block handling
10669         it.
10670         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10671         Remove it from the iterate_over_some_symtabs call.
10672         (partial_map_symtabs_matching_filename): Remove parameter full_path.
10673         Remove it from the partial_map_expand_apply calls, remove a block
10674         handling it.  Drop gdb_realpath call and cleanups from the real_path
10675         handling.
10676         * source.c (openp): Drop the comment part about xfullpath.  Replace
10677         xfullpath calls by gdb_realpath calls.
10678         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10679         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10680         from method map_symtabs_matching_filename and its comment.
10681         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10682         gdb_realpath call.
10683         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10684         remove it also from the function comment, remove a block handling it.
10685         Drop gdb_realpath call and cleanups from the real_path handling.
10686         (iterate_over_symtabs): Drop variable full_path and its use.
10687         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10688         * utils.c (xfullpath): Remove.
10689         * utils.h (xfullpath): Remove.
10690
10691 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
10692
10693         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10694         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10695         (ALLDEPFILES): Add ppc64-tdep.c.
10696         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10697         ppc64-tdep.o to gdb_target_obs.
10698         * ppc64-tdep.h: New file.
10699         * ppc64-tdep.c: New file.
10700         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10701         ppc-linux-tdep.c to here.
10702         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10703         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10704         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10705         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10706         from ppc-linux-tdep.c to here.
10707         (ppc64_convert_from_func_ptr_addr): Rename from
10708         ppc64_linux_convert_from_func_ptr_addr to
10709         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10710         here.
10711         * rs6000-tdep.c:
10712         (read_insn): Move from ppc-linux-tdep.c to here.
10713         (insns_match_pattern, insn_d_field, insn_ds_field): Move
10714         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10715         * ppc-linux-tdep.c: Include ppc64-tdep.h.
10716         Removed above functions.
10717         (ppc_linux_init_abi): Adjust.
10718
10719 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10720
10721         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10722
10723 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10724
10725         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10726
10727 2013-02-01  Pedro Alves  <palves@redhat.com>
10728
10729         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10730         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10731
10732 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10733
10734         * elfread.c (elf_symfile_read): Limit separate debug info additions to
10735         files with no separate debug info.
10736         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10737         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10738         only for files with no separate debug info.
10739
10740 2013-01-31  Tom Tromey  <tromey@redhat.com>
10741
10742         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10743         change type.
10744         (struct jit_program_space_data): Rename from jit_inferior_data.
10745         Update comments.
10746         (get_jit_program_space_data): Rename from get_jit_inferior_data.
10747         Change return type.  Attach data to program space.
10748         (jit_program_space_data_cleanup): Rename from
10749         jit_inferior_data_cleanup; change argument type.
10750         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10751         change type.
10752         (jit_register_code): Update.
10753         (jit_update_inferior_cache): Remove.
10754         (jit_breakpoint_deleted): Get jit data from the location's program
10755         space.
10756         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10757         'ps_data', change type.
10758         (jit_inferior_init, jit_breakpoint_re_set_internal)
10759         (jit_event_handler): Update.
10760         (free_objfile_data): Get data from objfile's program space.
10761         (_initialize_jit): Update.
10762
10763 2013-01-31  Tom Tromey  <tromey@redhat.com>
10764
10765         PR gdb/13987:
10766         * jit.c (struct jit_inferior_data) <cached_code_address,
10767         jit_breakpoint>: New fields.
10768         (jit_breakpoint_re_set_internal): Fix logging.  Only create
10769         breakpoint if cached address has changed.
10770         (jit_update_inferior_cache, jit_breakpoint_deleted): New
10771         functions.
10772         (_initialize_jit): Register breakpoint deleted observer.
10773
10774 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10775
10776         * infrun.c (handle_syscall_event): Remove unused gdbarch.
10777         (save_infcall_suspend_state): Ifdef out unused inf.
10778         (restore_infcall_suspend_state): Ifdef out unused inf.
10779         * jit.c (jit_register_code): Remove unused i, b, inf_data.
10780         (jit_frame_sniffer): Remove unused inf_data.
10781
10782 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10783
10784         * c-exp.y (classify_inner_name): Remove unused type.
10785         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10786         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10787         need_escape.
10788         (c_get_string): Remove unused kind.
10789         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10790
10791 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10792
10793         * charset.c (intermediate_encoding): Remove unused i.
10794         * completer.c (signal_completer): Remove unused i.
10795         * continuations.c (discard_my_continuations_1): Remove unused
10796         continuation_ptr.
10797         * corelow.c (core_close): Remove unuseD name.
10798         (get_core_siginfo): Remove unused pid.
10799         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10800         i, cps.
10801         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10802         (loclist_describe_location): Remove unused first.
10803         * event-top.c (command_line_handler): Remove unused got_eof.
10804         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10805         (resize_section_table): Remove unused old_value.
10806         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10807         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10808         * i386-tdep.c (i386_process_record): Remove unused rex.
10809         * infcmd.c (get_return_value): Remove unused uiout.
10810         * jv-lang.c (type_from_class): Remove unused is_array.
10811         * jv-valprint.c (java_val_print): Remove unused i.
10812         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10813         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10814         * m2-typeprint.c (m2_print_type): Remove unused code.
10815         * macroexp.c (get_character_constant): Remove unused body_start.
10816         (macro_stringify): Remove unused result.
10817         * objc-lang.c (find_methods): Remove unused gdbarch.
10818         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10819         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10820         * stack.c (print_frame_args): Remove unused summary.
10821         * thread.c (thread_apply_command): Remove unused p.
10822         * valarith.c (value_x_unop): Remove unused mangle_ptr.
10823         * valops.c (search_struct_method): Remove unused skip.
10824         * valprint.c (generic_val_print): Remove unused byte_order.
10825         * varobj.c (varobj_update): Remove unused changed.
10826         * cli/cli-cmds.c (complete_command): Remove unused next_item.
10827         (alias_command): Remove unused c.
10828         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10829         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10830         format.
10831         (mi_cmd_data_write_memory): Remove unused word_format.
10832         (mi_cmd_data_write_memory_bytes): Remove unused r.
10833         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10834         p_start, p_end.
10835         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10836         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10837         line_width.
10838
10839 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10840
10841         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10842         * symtab.c (iterate_over_symtabs): Remove unused s.
10843         (find_pc_sect_symtab): Remove unused pspAce.
10844         (find_pc_sect_line): Remove unused alt_symtab.
10845         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10846         (completion_list_add_name): Remove unused newsize.
10847
10848 2013-01-31  Tom Tromey  <tromey@redhat.com>
10849
10850         PR c++/14998:
10851         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10852         TYPE_CODE_FUNC.
10853
10854 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10855
10856         * target.c (target_read_string): Remove unused origlen.
10857
10858 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10859
10860         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10861         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10862         * ax-general.c (ax_print): Remove unused is_float.
10863         * blockframe.c (block_innermost_frame): Remove unused start, end.
10864         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10865
10866 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10867
10868         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10869         (svr4_read_so_list): Remove unused lmo.
10870         * solib-target.c (solib_target_relocate_section_addresses): Remove
10871         unused flags.
10872
10873 2013-01-30  Tom Tromey  <tromey@redhat.com>
10874
10875         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10876
10877 2013-01-30  Tom Tromey  <tromey@redhat.com>
10878
10879         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10880         * utils.c (gnu_debuglink_crc32): Remove.
10881         * utils.h (gnu_debuglink_crc32): Don't declare.
10882
10883 2013-01-30  Tom Tromey  <tromey@redhat.com>
10884
10885         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10886         (read_structure_type, read_enumeration_type): Remove cast.
10887
10888 2013-01-30  Tom Tromey  <tromey@redhat.com>
10889
10890         * dwarf2read.c (read_namespace_type): Remove cast.
10891         (read_typedef): Likewise.
10892
10893 2013-01-29  Tom Tromey  <tromey@redhat.com>
10894
10895         * dwarf2read.c (free_dwo_file): Remove assert.
10896
10897 2013-01-29  Tom Tromey  <tromey@redhat.com>
10898
10899         * value.c (deprecated_set_value_modifiable): Remove.
10900         * value.h (deprecated_set_value_modifiable): Remove.
10901
10902 2013-01-28  Doug Evans  <dje@google.com>
10903
10904         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10905         to addresses from dwo files.
10906
10907 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
10908
10909         * valops.c (find_overload_match): Remove unused argument 'lax'.
10910         * value.h: Remove unused argument 'lax' from the declaration of
10911         find_overload_match.
10912         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10913         to find_overload_match.
10914         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10915         argument to find_overload_match.
10916
10917 2013-01-25  Tom Tromey  <tromey@redhat.com>
10918
10919         * dwarf2read.c (processing_has_namespace_info): Remove.
10920         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10921         (process_die, read_func_scope, dwarf2_start_symtab)
10922         (new_symbol_full): Update.
10923
10924 2013-01-25  Tom Tromey  <tromey@redhat.com>
10925
10926         * cp-namespace.c (cp_set_block_scope): Remove.
10927         * cp-support.h (cp_set_block_scope): Remove.
10928         * dbxread.c: Include block.h.
10929         (cp_set_block_scope): New function.
10930         (process_one_symbol): Update.
10931         * dwarf2read.c (read_func_scope): Use block_set_scope.
10932
10933 2013-01-25  Pedro Alves  <palves@redhat.com>
10934
10935         * remote.c (add_current_inferior_and_thread): Tweak comment.
10936
10937 2013-01-25  Tom Tromey  <tromey@redhat.com>
10938
10939         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10940         (cp_add_using_directive): Add 'copy_names' argument.
10941         * cp-support.h (cp_add_using_directive): Update.
10942         (struct using_direct) <import_src, import_dest, alias,
10943         declaration>: Now const.
10944         * dwarf2read.c (read_import_statement): Use obconcat.
10945         Don't copy names passed to cp_add_using_directive.
10946
10947 2013-01-25  Tom Tromey  <tromey@redhat.com>
10948
10949         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10950
10951 2013-01-25  Pedro Alves  <palves@redhat.com>
10952
10953         * remote.c (stop_reply_extract_thread): New.
10954         (add_current_inferior_and_thread): New parameter 'wait_status'.
10955         Handle it.
10956         (remote_start_remote): Pass wait status to
10957         add_current_inferior_and_thread.
10958         (extended_remote_run): Update comment.
10959         (extended_remote_create_inferior_1): Pass wait status to
10960         add_current_inferior_and_thread.
10961
10962 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
10963             Ulrich Weigand  <uweigand@de.ibm.com>
10964
10965         * valarith.c (value_vector_widen): New function for replicating a
10966         scalar into a vector.
10967         (value_binop): Use value_vector_widen to widen scalar to vector
10968         rather than casting, this better matches gcc C behaviour.
10969         * valops.c (value_casst): Update logic for casting between vector
10970         types, and for casting from scalar to vector, try to match gcc C
10971         behaviour.
10972         * value.h (value_vector_widen): Declare.
10973         * opencl-lang.c (opencl_value_cast): New opencl specific casting
10974         function, handle special case for casting scalar to vector.
10975         (opencl_relop): Use opencl_value_cast.
10976         (evaluate_subexp_opencl): Use opencl_value_cast instead of
10977         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10978         in order to use opencl_value_cast.
10979
10980 2013-01-25  Yao Qi  <yao@codesourcery.com>
10981
10982         * event-loop.c: Include "queue.h".
10983         (gdb_event_p): New typedef.
10984         (DECLARE_QUEUE_P): Use.
10985         (DEFINE_QUEUE_P): Use.
10986         (async_queue_event): Remove.
10987         (gdb_event_xfree): New.
10988         (initialize_event_loop): New.
10989         (process_event): Use QUEUE macros.
10990         (event_queue): Remove.
10991         (gdb_wait_for_event): Caller update.
10992         (check_async_event_handlers): Likewise.
10993         (poll_timers): Likewise.
10994         * event-loop.h (initialize_event_loop): Declare.
10995         * event-loop.c (gdb_event_xfree): New.
10996         * top.c (gdb_init): Call initialize_event_loop.
10997
10998 2013-01-25  Yao Qi  <yao@codesourcery.com>
10999
11000         * event-loop.c (async_queue_event): Remove one parameter
11001         'position'.  Remove code handling 'position' == TAIL.
11002         (gdb_wait_for_event): Caller update.
11003         (check_async_event_handlers): Caller update.
11004         (poll_timers): Caller update.
11005         * event-loop.h (enum queue_position): Remove.
11006
11007 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
11008
11009         * MAINTAINERS: Update my email.
11010
11011 2013-01-25  Yao Qi  <yao@codesourcery.com>
11012
11013         * main.c (print_gdb_help): Remove "--epoch" from the help
11014         message.
11015
11016 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
11017
11018         * symtab.c (skip_prologue_using_sal): Consider a file
11019         change the same as an increased line number
11020
11021 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11022
11023         * MAINTAINERS (Write After Approval): Add myself to the list.
11024
11025 2013-01-24  Tom Tromey  <tromey@redhat.com>
11026
11027         * ada-lang.h (ada_decode_symbol): Make return type const.
11028         * ada-lang.c (ada_decode_symbol): Likewise.
11029
11030 2013-01-23  Doug Evans  <dje@google.com>
11031
11032         * linespec.c (find_linespec_symbols): Make static.
11033
11034 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
11035
11036         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11037         type on float conversion for complex type.
11038
11039 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
11040
11041         Add a new class gdb.Architecture which exposes GDB's
11042         internal representation of architecture via GDB Python API.
11043         * Makefile.in: Add entries corresponding to the new file
11044         python/py-arch.c.
11045         * NEWS (Python Scripting): Add entries for the new class
11046         gdb.Architecture and the new method gdb.Frame.architecture.
11047         * python/py-arch.c: Implement gdb.Architecture class.
11048         * python/py-frame.c (frapy_arch): Implement the method
11049         gdb.Frame.architecture().
11050         (frame_object_methods): Add 'architecture' to the method table.
11051         * python/python-internal.h: Add declarations of new utility
11052         functions.
11053         * python/python.c (_initialize_python): Initialize
11054         gdb.Architecture class.
11055
11056 2013-01-23  Doug Evans  <dje@google.com>
11057
11058         Work around binutils/15021.
11059         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11060         type_unit_group out of union s.  All uses updated.
11061         (read_index_from_section): Watch for index version 8.
11062         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11063         an imported symtab.
11064         (write_psymtabs_to_index): Increment version number to 8.
11065
11066 2013-01-22  Pedro Alves  <palves@redhat.com>
11067
11068         * annotate.c (breakpoint_changed): Skip if breakpoint is not
11069         user-visible.
11070
11071 2013-01-22  Pedro Alves  <palves@redhat.com>
11072
11073         * annotate.c (annotate_breakpoints_changed): Rename to ...
11074         (annotate_breakpoints_invalid): ... this.  Make static.
11075         (breakpoint_changed): Adjust.
11076         (_initialize_annotate): Always install the observers.  Install a
11077         "breakpoint_created" observer.
11078         * annotate.h (annotate_breakpoints_changed): Delete declaration.
11079         * breakpoint.c (set_breakpoint_condition)
11080         (breakpoint_set_commands, do_map_commands_command)
11081         (init_raw_breakpoint, clear_command, set_ignore_count)
11082         (enable_breakpoint_disp): No longer call
11083         annotate_breakpoints_changed.
11084
11085 2013-01-22  Pedro Alves  <palves@redhat.com>
11086
11087         * annotate.c: Include "inferior.h".
11088         (frames_invalid_emitted)
11089         (breakpoints_invalid_emitted): New globals.
11090         (async_background_execution_p): New function.
11091         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11092         emitting the annotation if it has already been emitted.
11093         (annotate_display_prompt): New function.
11094         * annotate.h (annotate_display_prompt): New declaration.
11095         * event-top.c: Include annotate.h.
11096         (display_gdb_prompt): Call annotate_display_prompt.
11097
11098 2013-01-22  Pedro Alves  <palves@redhat.com>
11099
11100         * annotate.c (ignore_count_changed): Delete.
11101         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11102         (annotate_ignore_count_change): Delete.
11103         (annotate_stopped): Don't emit a delayed breakpoints-changed
11104         annotation.
11105         * annotate.h (annotate_ignore_count_change): Delete.
11106         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11107         annotate_ignore_count_change.
11108
11109 2013-01-22  Tom Tromey  <tromey@redhat.com>
11110
11111         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11112         require_rvalue for a register location.
11113
11114 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
11115
11116         * breakpoint.c (print_one_breakpoint_location): Add MI
11117         field 'thread-groups' when printing a breakpoint.
11118         (output_thread_groups): New function.
11119
11120 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
11121
11122         * python/lib/gdb/commands/explore.py
11123         (CompoundExplorer.explore_expr): Correct the name of a method
11124         being invoked.
11125         (ExploreTypeCommand.invoke): Add a missing 'return'.
11126
11127 2013-01-21  Tom Tromey  <tromey@redhat.com>
11128
11129         * gdb_obstack.h (obconcat): Move declaration here, from...
11130         * symfile.h (obconcat): ... here.
11131         * gdb_obstack.c: New file.
11132         (obconcat): Move from...
11133         * symfile.c (obconcat): ... here.
11134         * Makefile.in (SFILES): Add gdb_obstack.c.
11135         (COMMON_OBS): Add gdb_obstack.o.
11136
11137 2013-01-21  Tom Tromey  <tromey@redhat.com>
11138
11139         * symfile.h (obsavestring): Don't declare.
11140         * symfile.c (obsavestring): Remove.
11141         * ada-exp.y: Use obstack_copy0, not obsavestring.
11142         * ada-lang.c: Use obstack_copy0, not obsavestring.
11143         * coffread.c: Use obstack_copy0, not obsavestring.
11144         * cp-namespace.c: Use obstack_copy0, not obsavestring.
11145         * dbxread.c: Use obstack_copy0, not obsavestring.
11146         * dwarf2read.c: Use obstack_copy0, not obsavestring.
11147         * jit.c: Use obstack_copy0, not obsavestring.
11148         * mdebugread.c: Use obstack_copy0, not obsavestring.
11149         * psymtab.c: Use obstack_copy0, not obsavestring.
11150         * stabsread.c: Use obstack_copy0, not obsavestring.
11151         * xcoffread.c: Use obstack_copy0, not obsavestring.
11152
11153 2013-01-21  Tom Tromey  <tromey@redhat.com>
11154
11155         * dwarf2read.c (fixup_go_packaging): Save package name
11156         on objfile obstack.
11157         * gdbtypes.c (init_type): Don't copy name.
11158
11159 2013-01-21  Tom Tromey  <tromey@redhat.com>
11160
11161         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11162         const.
11163         (struct attribute) <u.str>: Now const.
11164         (struct fnfieldlist) <name>: Now const.
11165         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11166         (partial_die_parent_scope): Make return type const.
11167         (partial_die_full_name, add_partial_symbol): Update.
11168         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11169         'name' const.
11170         (find_file_and_directory): Make 'name' and 'comp_dir' const.
11171         (read_file_scope, read_func_scope, dwarf2_add_field)
11172         (dwarf2_add_member_fn, read_structure_type)
11173         (process_enumeration_scope, read_array_type, read_module_type)
11174         (read_base_type, read_subrange_type): Update.
11175         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11176         (new_symbol_full, guess_full_die_structure_name): Update.
11177         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
11178         (dwarf2_name): Return const type.
11179         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11180         const.
11181
11182 2013-01-21  Tom Tromey  <tromey@redhat.com>
11183
11184         * gdbtypes.c (init_type): Make 'name' const.
11185         * gdbtypes.h (init_type): Update.
11186
11187 2013-01-21  Tom Tromey  <tromey@redhat.com>
11188
11189         * buildsym.c (patch_subfile_names): Use set_last_source_file.
11190         (start_symtab): Make 'name' and 'dirname' const.  Use
11191         set_last_source_file.
11192         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11193         (last_source_file): Define.  Now static.
11194         (set_last_source_file, get_last_source_file): New functions.
11195         * buildsym.h (last_source_file): Don't declare.
11196         (start_symtab): Update.
11197         (set_last_source_file, get_last_source_file): Declare.
11198         * coffread.c (complete_symtab): Use set_last_source_file.
11199         (coff_end_symtab): Likewise.
11200         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11201         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11202         set_last_source_file.
11203         (process_one_symbol): Use get_last_source_file.
11204         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11205         (psymtab_to_symtab_1): Use get_last_source_file.
11206         * xcoffread.c (process_linenos): Use get_last_source_file.
11207         (complete_symtab): Use set_last_source_file.
11208         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11209         (scan_xcoff_symtab): Use set_last_source_file.
11210
11211 2013-01-21  Tom Tromey  <tromey@redhat.com>
11212
11213         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11214         (symbol_set_names): Remove casts.  Handle field const-ness.
11215
11216 2013-01-21  Tom Tromey  <tromey@redhat.com>
11217
11218         * dwarf2read.c (new_symbol_full): Remove cast.
11219         * symtab.c (symbol_set_demangled_name): Make 'name' const.
11220         * symtab.h (symbol_set_demangled_name): Update.
11221
11222 2013-01-21  Tom Tromey  <tromey@redhat.com>
11223
11224         * main.c (captured_main): Call bfd_init.
11225
11226 2013-01-21  Tom Tromey  <tromey@redhat.com>
11227
11228         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11229         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11230         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11231         * NEWS: Update.
11232
11233 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11234
11235         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11236
11237 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11238
11239         Fix gdb.fortran/common-block.exp crash in PIE mode.
11240         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11241         LOC_COMMON_BLOCK.
11242         * f-valprint.c (info_common_command_for_block): Expect
11243         LOC_COMMON_BLOCK in gdb_assert.
11244         * symtab.h (struct general_symbol_info): Update comment for the
11245         common_block member.
11246         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11247         (enum address_class): New member LOC_COMMON_BLOCK.
11248
11249 2013-01-18  David Blaikie  <dblaikie@gmail.com>
11250
11251         * MAINTAINERS (Write After Approval): Add "David Blaikie".
11252
11253 2013-01-18  Tom Tromey  <tromey@redhat.com>
11254
11255         PR c++/14999:
11256         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11257         Call require_rvalue.
11258
11259 2013-01-18  Yao Qi  <yao@codesourcery.com>
11260
11261         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11262         (dbx_read_symtab): New declaration.
11263         (dbx_psymtab_to_symtab): Delete.
11264         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11265         Rename parameter PST to SELF.  Exchanged two parameters.
11266         (start_psymtab): Caller update.
11267         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11268         (dwarf2_read_symtab): New declaration.
11269         (dwarf2_psymtab_to_symtab): Delete.
11270         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11271         Rename parameter PST to SELF.  Exchanged two parameters.
11272         (create_partial_symtab): Caller update.
11273         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11274         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11275         Rename parameter PST to SELF.  Exchanged two parameters.
11276         (parse_partial_symbols, new_psymtab): Caller update.
11277         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11278         two parameters.
11279         * psymtab.c (psymtab_to_symtab): Caller update.
11280         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11281         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11282         Rename parameter PST to SELF.  Exchanged two parameters.
11283         (xcoff_start_psymtab): Caller update.
11284
11285 2013-01-18  Yao Qi  <yao@codesourcery.com>
11286
11287         * infrun.c (proceed): Rename local variable 'oneproc' to
11288         'force_step'.
11289
11290 2013-01-17  Doug Evans  <dje@google.com>
11291
11292         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11293         (dw2_build_type_unit_groups): Delete.  All uses updated.
11294
11295         * symtab.h (struct symbol_search): Add comment.
11296
11297 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11298
11299         * symtab.c (compare_filenames_for_search): New comment for
11300         HAS_DRIVE_SPEC.
11301
11302 2013-01-17  Tom Tromey  <tromey@redhat.com>
11303
11304         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11305
11306 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11307
11308         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11309         initialize it by existing make_cleanup.  Call new do_cleanups.
11310
11311 2013-01-17  Tom Tromey  <tromey@redhat.com>
11312
11313         * cp-abi.c (cp_abi_completer): New function.
11314         (_initialize_cp_abi): Set completer for "set cp-abi".
11315
11316 2013-01-17  Tom Tromey  <tromey@redhat.com>
11317
11318         * mem-break.c: Remove obsolete comment.
11319         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11320
11321 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11322
11323         * jit.c (jit_reader_load_command): Interpret the jit reader name
11324         as an absolute path if it begins with a forward slash.
11325
11326 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11327
11328         PR gdb/14550
11329
11330         * jit.c (finalize_symtab): Ensure that only the global block has a
11331         NULL superblock.
11332
11333 2013-01-17  Pedro Alves  <palves@redhat.com>
11334
11335         * acinclude.m4: Include ../config/plugins.m4,
11336         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
11337         * Makefile.in (aclocal_m4_deps): Update.
11338         * aclocal.m4: Renegerate.
11339
11340 2013-01-16  Doug Evans  <dje@google.com>
11341
11342         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11343
11344 2013-01-16  Pedro Alves  <palves@redhat.com>
11345             Tom Tromey  <tromey@redhat.com>
11346
11347         PR cli/7221:
11348         * NEWS: Add "catch signal".
11349         * breakpoint.c (base_breakpoint_ops): No longer static.
11350         (bpstat_explains_signal): New function.
11351         (init_catchpoint): No longer static.
11352         (base_breakpoint_explains_signal): New function.
11353         (base_breakpoint_ops): Initialize new field.
11354         * breakpoint.h (enum bpstat_signal_value): New.
11355         (struct breakpoint_ops) <explains_signal>: New field.
11356         (bpstat_explains_signal): Remove macro, declare as function.
11357         (base_breakpoint_ops, init_catchpoint): Declare.
11358         * break-catch-sig.c: New file.
11359         * inferior.h (signal_catch_update): Declare.
11360         * infrun.c (signal_catch): New global.
11361         (handle_syscall_event): Update for change to
11362         bpstat_explains_signal.
11363         (handle_inferior_event): Likewise.  Always handle random signals
11364         via bpstats.
11365         (signal_cache_update): Check signal_catch.
11366         (signal_catch_update): New function.
11367         (_initialize_infrun): Initialize signal_catch.
11368         * Makefile.in (SFILES): Add break-catch-sig.c.
11369         (COMMON_OBS): Add break-catch-sig.o.
11370
11371 2013-01-16  Tom Tromey  <tromey@redhat.com>
11372
11373         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11374         (print_one_catch_solib, print_one_catch_syscall)
11375         (print_one_catch_exec, print_one_exception_catchpoint): Emit
11376         "catch-type".
11377
11378 2013-01-16  Yao Qi  <yao@codesourcery.com>
11379
11380         * printcmd.c (current_display_number): Make it static.
11381
11382 2013-01-16  Yao Qi  <yao@codesourcery.com>
11383
11384         * infcmd.c (step_once): Don't check '!single_inst' as it was
11385         checked before.
11386
11387 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11388
11389         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11390
11391 2013-01-14  Tom Tromey  <tromey@redhat.com>
11392
11393         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11394         set command.
11395         * command.h (add_setshow_string_noescape_cmd): Update.
11396         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11397         (complete_set_gnutarget): New function.
11398         (_initialize_core): Set the "set gnutarget" completer.
11399
11400 2013-01-14  Tom Tromey  <tromey@redhat.com>
11401
11402         PR symtab/14442:
11403         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11404         (c_type_print_modifier): Likewise.
11405         * dwarf2read.c (read_tag_restrict_type): New function.
11406         (read_type_die_1): Handle DW_TAG_restrict_type.
11407         * gdbtypes.c (make_restrict_type): New function.
11408         (recursive_dump_type): Handle TYPE_RESTRICT.
11409         * gdbtypes.h (enum type_flag_values): Renumber.
11410         (enum type_instance_flag_value): Add
11411         TYPE_INSTANCE_FLAG_RESTRICT.
11412         (TYPE_RESTRICT): New macro.
11413         (make_restrict_type): Declare.
11414
11415 2013-01-14  Tom Tromey  <tromey@redhat.com>
11416
11417         PR symtab/14931:
11418         * psymtab.c (struct psymtab_state): New.
11419         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11420         functions.
11421         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11422         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11423
11424 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
11425             Pedro Alves  <palves@redhat.com>
11426
11427         PR remote/14786
11428
11429         * remote.c (remote_threads_info): Make a copy of the reply from
11430         qfThreadInfo and use that instead of rs->buf.
11431
11432 2013-01-14  Yao Qi  <yao@codesourcery.com>
11433
11434         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11435         (dbx_psymtab_to_symtab): Likewise.
11436         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11437         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11438         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11439
11440 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11441
11442         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
11443         make_cleanup_restore_current_language.  Call set_language.  Move
11444         OLD_CHAIN and INNER_CHAIN cleanups.
11445         * utils.c (do_restore_current_language)
11446         (make_cleanup_restore_current_language): New functions.
11447         * utils.h (make_cleanup_restore_current_language): New declaration.
11448
11449 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11450
11451         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11452         non-existing files.
11453
11454         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11455         non-existing files if FILENAME is already absolute.
11456
11457 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11458
11459         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11460         fputs_filtered.  Append trailing newline.
11461
11462 2013-01-11  Yao Qi  <yao@codesourcery.com>
11463             Stan Shebs  <stan@codesourcery.com>
11464
11465         * psymtab.c (init_psymbol_list): Clarify the comment.
11466
11467 2013-01-11  Yao Qi  <yao@codesourcery.com>
11468
11469         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11470         (update_dprintf_command_list): Assert that 'printf_line' is
11471         non-null.  Remove condition check.
11472
11473 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11474
11475         Code cleanup.
11476         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11477         type const char *.
11478         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11479         const char *.
11480         * tui/tui-source.h (tui_source_is_displayed): Likewise.
11481
11482 2013-01-09  Anthony Green  <green@moxielogic.com>
11483
11484         * cp-abi.c (cplus_print_vtable): Don't return value from void
11485         function.
11486         * ada-lang.c (re_set_catch_assert): Ditto.
11487
11488 2013-01-09  Doug Evans  <dje@google.com>
11489
11490         * symfile.h (quick_symbol_functions): Delete member
11491         pre_expand_symtabs_matching.  All uses removed.
11492         * dwarf2read.c (dw2_lookup_symbol): Implement.
11493         (dw2_do_expand_symtabs_matching): Delete.
11494         (dw2_pre_expand_symtabs_matching): Delete.
11495         (struct dw2_symtab_iterator): New type.
11496         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11497         (dw2_expand_symtabs_for_function): Rewrite.
11498         (dwarf2_gdb_index_functions): Update.
11499         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11500         (psym_functions): Update.
11501
11502 2013-01-09  Tom Tromey  <tromey@redhat.com>
11503
11504         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11505         * configure: Rebuild.
11506         * configure.ac: Add somread.o to the build if BFD has SOM
11507         support.
11508         * somread.c: Include som/aout.h, not syms.h.
11509         (som_symtab_read): Use som_external_symbol_dictionary_record.
11510         Unpack records manually.
11511         (_initialize_somread): Declare.
11512
11513 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
11514
11515         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11516         Cast return_address to 64bits.
11517
11518 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
11519
11520         * printcmd.c: Remove define of function output_command.
11521         * tracepoint.c: Remove extern of function output_command.
11522         * valprint.h: (output_command): New extern.
11523
11524 2013-01-07  Tom Tromey  <tromey@redhat.com>
11525
11526         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11527         Remove.
11528         (objc_language_defn): Use c_printchar, c_printstr,
11529         c_emit_char.
11530
11531 2013-01-07  Tom Tromey  <tromey@redhat.com>
11532
11533         PR cli/7719:
11534         * NEWS: Update.
11535         * ada-valprint.c (printstr, print_field_values): Remove
11536         "inspect_it" code.
11537         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11538         code.
11539         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11540         code.
11541         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11542         * main.c (captured_main): Remove "epoch" argument.
11543         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11544         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11545         * p-valprint.c (pascal_object_print_value_fields): Remove
11546         "inspect_it" code.
11547         * printcmd.c (print_command_1): Remove 'inspect' argument.
11548         (print_command, call_command): Update.
11549         (inspect_command): Remove.
11550         (_initialize_printcmd): Make "inspect" an alias for "print".
11551         * top.c (epoch_interface): Remove.
11552         * top.h (epoch_interface): Remove.
11553         * valprint.c (user_print_options): Update.
11554         (print_converted_chars_to_obstack): Remove "inspect_it" code.
11555         * valprint.h (struct value_print_options) <inspect_it>: Remove
11556         field.
11557
11558 2013-01-04  Tom Tromey  <tromey@redhat.com>
11559
11560         * valprint.h (read_string): Add 'extern'.
11561
11562 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
11563
11564         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11565         used to decide whether to define darwin_read_dyld_info or not.
11566
11567 2013-01-03  Pierre Muller  <muller@sourceware.org>
11568
11569         * main.c (relocate_gdb_directory): Avoid calling stat function
11570         if DIR is empty.
11571
11572 2013-01-03  Yao Qi  <yao@codesourcery.com>
11573
11574         * psymtab.c (fixup_psymbol_section): Update declaration.
11575         (fixup_psymbol_section): Remove code returning value.
11576
11577 2013-01-03  Yao Qi  <yao@codesourcery.com>
11578
11579         * symtab.h: Remove some out of date comments.
11580          (enum exception_event_kind): Move it ...
11581         * breakpoint.c: ... here.
11582
11583 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
11584
11585         PR gdb/14405
11586         * darwin-nat.c (darwin_read_dyld_info): Only build if
11587         TASK_DYLD_INFO_COUNT is defined.
11588         (darwin_xfer_partial): Call darwin_read_dyld_info only if
11589         TASK_DYLD_INFO_COUNT is defined.
11590
11591 2013-01-02  Tom Tromey  <tromey@redhat.com>
11592
11593         * symfile.h (struct ecoff_debug_hack): Remove.
11594         * objfiles.c: Don't include mdebugread.h.
11595
11596 2013-01-02  Tom Tromey  <tromey@redhat.com>
11597
11598         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11599         * configure.ac: Check for Mach-O support in BFD.  Update
11600         CONFIG_OBS.
11601         * configure: Rebuild.
11602
11603 2013-01-02  Tom Tromey  <tromey@redhat.com>
11604
11605         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11606         * configure.ac: Use GDB_AC_CHECK_BFD.
11607         * configure: Rebuild.
11608
11609 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11610
11611         * MAINTAINERS: Update my email.
11612
11613 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11614
11615         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11616
11617 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11618
11619         * rs6000-nat.c (bss_data_overlap): New function.
11620         (vmap_symtab): Use it to adjust the .bss section's offset.
11621
11622 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11623
11624         Update year range in copyright notice of all files.
11625
11626 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
11627
11628         * top.c (print_gdb_version): Update copyright year.
11629
11630 For older changes see ChangeLog-2012.
11631 \f
11632 Local Variables:
11633 mode: change-log
11634 left-margin: 8
11635 fill-column: 74
11636 version-control: never
11637 coding: utf-8
11638 End: