2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
[external/binutils.git] / gdb / ChangeLog
1 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
2
3         PR python/15747
4         * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
5
6 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
7
8         * NEWS: Document Python temporary breakpoint support.
9         * python/py-breakpoint.c (bppy_get_temporary): New function.
10         (bppy_init): New keyword: temporary. Parse it and set breakpoint
11         to temporary if True.
12
13 2013-11-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14
15         * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
16         removed to allow analyzing unconditional branch instructions
17         with PC-relative offsets of zero.
18
19 2013-11-07  Yao Qi  <yao@codesourcery.com>
20
21         * mi/mi-cmd-var.c: Include "language.h".
22         (mi_cmd_var_info_expression): Get language name from
23         language_defn.
24         * varobj.c (varobj_language_string): Remove.
25         (variable_language): Remove declaration.
26         (languages): Remove.
27         (varobj_get_language): Change the type of return value.
28         (variable_language): Remove.
29         * varobj.h (enum varobj_languages): Remove.
30         (varobj_language_string): Remove declaration.
31         (varobj_get_language): Update declaration.
32
33 2013-11-07  Yao Qi  <yao@codesourcery.com>
34
35         * language.h (struct language_defn) <la_natural_name>: New
36         field.
37         * ada-lang.c (ada_language_defn): Initialize field
38         'la_natural_name'.
39         * c-lang.c (c_language_defn): Likewise.
40         (cplus_language_defn, asm_language_defn): Likewise.
41         * d-lang.c (d_language_defn): Likewise.
42         * f-lang.c (f_language_defn): Likewise.
43         * go-lang.c (go_language_defn): Likewise.
44         * jv-lang.c (java_language_defn): Likewise.
45         * language.c (unknown_language_defn ): Likewise.
46         (auto_language_defn): Likewise.
47         * m2-lang.c (m2_language_defn): Likewise.
48         * objc-lang.c (objc_language_defn): Likewise.
49         * opencl-lang.c (opencl_language_defn): Likewise.
50         * p-lang.c (pascal_language_defn): Likewise.
51
52 2013-11-07  Yao Qi  <yao@codesourcery.com>
53
54         * language.c (language_str): Return const char *.
55         (add_language): Add const to 'language_names'
56         * language.h (struct language_defn) <la_name>: Add const.
57         (language_str: Update declaration.
58
59 2013-11-06  Andreas Arnez  <arnez@linux.vnet.ibm.com>
60
61         * s390-linux-nat.c (s390_read_description): Consider the TE field
62         in the HWCAP for determining 'have_regset_tdb'.
63
64 2013-11-06  Will Newton  <will.newton@linaro.org>
65
66         PR gdb/12866
67         * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
68         values.  (read_partial_die): Likewise.
69
70 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
71
72         PR cli/16122
73         * top.c (command_line_input): Unify interactivity tests to use
74         input_from_terminal_p.
75         * event-top.c (command_line_handler): Likewise.
76
77 2013-11-06  Yao Qi  <yao@codesourcery.com>
78
79         * Makefile.in (check-perf): New target.
80
81 2013-11-05  Will Newton  <will.newton@linaro.org>
82
83         PR gdb/7670
84         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
85         (arm_print_float_info): Likewise.
86
87 2013-11-04  Anton Blanchard  <anton@samba.org>
88
89         * target.c (memory_xfer_partial): Cap write to 4KB.
90
91 2013-11-01  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
92
93         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
94         probe scan even when the arch provides no get_longjmp_target.
95
96 2013-10-31  Pedro Alves  <palves@redhat.com>
97
98         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
99         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
100         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
101         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
102         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
103         <bpstat handling>: If the bpstat chain wants the signal to be
104         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
105         GDB_SIGNAL_TRAP.
106
107 2013-10-31  Andrew Burgess  <aburgess@broadcom.com>
108
109         * breakpoint.c (update_watchpoint): Update error message and add
110         an additional error message.
111
112 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
113
114         * s390-tdep.h: Rename to...
115         * s390-linux-tdep.h: ...here.
116         * s390-tdep.c: Rename to...
117         * s390-linux-tdep.c: ...here.  Adjust #include.
118         * s390-nat.c: Rename to...
119         * s390-linux-nat.c: ...here.  Adjust #include.
120         * config/s390/s390.mh: Rename to...
121         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
122         s390-linux-nat.o.
123         * configure.host: Reflect host rename "s390" -> "linux".
124         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
125         * Makefile.in (ALL_TARGET_OBS): Likewise.
126         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
127         s390-linux-tdep.h.
128         (ALLDEPFILES): Reflect rename of .c files.
129
130 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
131
132         * s390-nat.c: Whitespace cleanup.
133         * s390-tdep.c: Likewise.
134         * s390-tdep.h: Remove empty line at end of file.
135
136 2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
137
138         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
139         siginfo_size.
140
141 2013-10-29  Tom Tromey  <tromey@redhat.com>
142
143         * utils.c (reg): Move undefinition...
144         * gdb_curses.h: ... here.  Update comment to mention AIX.
145
146 2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>
147
148         * exec.h (add_target_sections_of_objfile): New declaration.
149         * exec.c (add_target_sections_of_objfile): New function.
150         * symfile.c (add_symbol_file_command): Update current target sections.
151         (remove_symbol_file_command): New command.
152         (symfile_free_objfile): New function.
153         (_initialize_symfile): Register observer for free_objfile events.
154         * NEWS: Add description of the remove-symbol-file command.
155         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
156         * objfiles.c (free_objfile): Notify free_objfile.
157         (is_addr_in_objfile): New function.
158         * objfiles.h (is_addr_in_objfile): New declaration.
159         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
160         events instead of solib_unloaded events.
161         (_initialize_printcmd): Register observer for free_objfile instead
162         of solib_unloaded notifications.
163         * solib.c (remove_user_added_objfile): New function.
164         (_initialize_symfile): Add remove-symbol-file.
165
166 2013-10-29  Andrew Burgess  <aburgess@broadcom.com>
167
168         * infcmd.c (default_print_one_register_info): Use val_print to
169         print all values even optimized out or unavailable ones.  Don't
170         try to print a raw form of optimized out or unavailable values.
171
172 2013-10-29  Yao Qi  <yao@codesourcery.com>
173
174         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
175         parameter 'arg' instead of from program_space_data.
176         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
177         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
178         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
179         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
180         * inflow.c (inflow_inferior_data_cleanup): Get data from
181         parameter 'arg' instead of inferior_data.
182         * registry.h: Add comments.
183
184 2013-10-28  Pedro Alves  <palves@redhat.com>
185
186         * breakpoint.c (watchpoints_triggered)
187         <!target_stopped_data_address>: Hardcode return 1.
188
189 2013-10-28  Pedro Alves  <palves@redhat.com>
190
191         * infrun.c (process_event_stop_test): Remove unnecessary scoping
192         level and reindent.
193
194 2013-10-28  Pedro Alves  <palves@redhat.com>
195
196         * infrun.c (process_event_stop_test): New function, factored out
197         from handle_inferior_event.
198         (handle_inferior_event): 'process_event_stop_test' is now a
199         function instead of a goto label -- adjust.
200
201 2013-10-28  Pedro Alves  <palves@redhat.com>
202
203         * infrun.c (handle_inferior_event): Move process_event_stop_test
204         goto label to the else branch of the ecs->random_signal check,
205         along with FRAME and GDBARCH re-fetching.
206
207 2013-10-28  Pedro Alves  <palves@redhat.com>
208
209         * infrun.c (switch_back_to_stepped_thread): New function, factored
210         out from handle_inferior_event.
211         (handle_inferior_event): Adjust to call
212         switch_back_to_stepped_thread.  Call it also at the tail of the
213         random signal handling, and return, instead of also handling
214         random signals just before the stepping tests.
215
216 2013-10-28  Pedro Alves  <palves@redhat.com>
217
218         * infrun.c (clear_stop_func): Delete.
219         (handle_inferior_event): Don't call clear_stop_func and don't
220         clear 'ecs->random_signal'.
221
222 2013-10-27  Yao Qi  <yao@codesourcery.com>
223
224         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
225         (varobj_create, varobj_get_path_expr): Update.
226         (varobj_value_has_mutated, varobj_update): Likewise.
227         (create_child_with_value, new_root_variable): Likewise.
228         (number_of_children, name_of_variable): Likewise.
229         (value_of_child, my_value_of_variable): Likewise.
230         (varobj_value_is_changeable_p): Likewise.
231
232 2013-10-25  Yao Qi  <yao@codesourcery.com>
233
234         * language.h (struct lang_varobj_ops): Declare.
235         (struct language_defn) <la_varobj_ops>: New field.
236         * ada-lang.c: Include "varobj.h"
237         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
238         ada_varobj_ops.
239         * c-lang.c: Include "varobj.h"
240         (c_language_defn): Initialize field 'la_varobj_ops' with
241         c_varobj_ops.
242         (cplus_language_defn): Initialize field 'la_varobj_ops' with
243         cplus_varobj_ops.
244         (asm_language_defn): Initialize field 'la_varobj_ops' with
245         default_varobj_ops.
246         (minimal_language_defn): Likewise.
247         * d-lang.c (d_language_defn): Likewise.
248         * f-lang.c (f_language_defn): Likewise.
249         * go-lang.c (go_language_defn): Likewise.
250         * m2-lang.c (m2_language_defn): Likewise.
251         * objc-lang.c (objc_language_defn): Likewise.
252         * opencl-lang.c (opencl_language_defn): Likewise.
253         * p-lang.c (pascal_language_defn): Likewise.
254         * language.c (unknown_language_defn): Likewise.
255         (auto_language_defn): Likewise.
256         (local_language_defn): Likewise.
257         * jv-lang.c (java_language_defn): Initialize field
258         'la_varobj_ops' with java_varobj_ops.
259         * varobj.c (varobj_create): Update.
260         * varobj.h (default_varobj_ops): Define macro.
261
262 2013-10-25  Pedro Alves  <palves@redhat.com>
263
264         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
265         static field value.
266         (cp_print_static_field): If the value is entirely optimized out,
267         print <optimized out> here.
268         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
269         static field value.
270         * p-valprint.c (pascal_object_print_static_field): If the value is
271         entirely optimized out, print <optimized out> here.
272         * valops.c (do_search_struct_field)
273         (value_struct_elt_for_reference): No longer handle a NULL static
274         field value.
275         * value.c (value_static_field): Return an optimized out value
276         instead of NULL.
277
278 2013-10-25  Yao Qi  <yao@codesourcery.com>
279
280         * remote.c (remote_traceframe_info): Return early if
281         traceframe is not selected.
282
283 2013-10-25  Yao Qi  <yao@codesourcery.com>
284
285         * tracepoint.c (traceframe_fun): Remove.
286         (traceframe_sal): Remove.
287         (set_traceframe_context): Add local variables.
288
289 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
290
291         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
292         and parameter name.
293
294 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
295
296         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
297         failure from register information collection.
298
299 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
300
301         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
302         member.
303         (linux_corefile_thread_callback): Update accordingly.
304         (linux_make_corefile_notes): Likewise.
305
306 2013-10-24  Pedro Alves   <palves@redhat.com>
307
308         * NEWS (New options): Mention set/show startup-with-shell.
309         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
310         instead of 3.
311         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
312         startup-with-shell'.
313         (show_startup_with_shell): New function.
314         (_initialize_fork_child): Register the set/show startup-with-shell
315         commands.
316         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
317         * inf-ttrace.c (inf_ttrace_him): Remove comment.
318         * procfs.c (procfs_init_inferior): Remove comment.
319         * infcmd.c (startup_with_shell): New global.
320         * inferior.h (startup_with_shell): Declare global.
321         (STARTUP_WITH_SHELL): Delete.
322         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
323
324 2013-10-23  Pedro Alves  <palves@redhat.com>
325
326         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
327         * common/signals.c: Include "gdb_assert.h".
328         (signals): New field 'symbol'.
329         (SET): Use the 'symbol' parameter.
330         (gdb_signal_to_symbol_string): New function.
331         * infrun.c (handle_inferior_event) <random signal>: In debug
332         output, print the random signal enum as string in addition to its
333         number.
334         * target/waitstatus.c (target_waitstatus_to_string): Print the
335         signal's enum value as string instead of the (POSIX) signal name.
336
337 2013-10-23  Gary Benson  <gbenson@redhat.com>
338
339         PR 16013
340         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
341         from 32 to 18.  Adjusted fscanf format string accordingly.
342         (Avoids leaving cmd unterminated.)
343         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
344         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
345         that local_address and remote_address will not overflow.
346         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
347         leaving dependencies unterminated.  Parse size as "%u" to match
348         definition.
349
350 2013-10-22  Pedro Alves  <palves@redhat.com>
351
352         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
353         set ecs->random signal.
354
355 2013-10-22  Pedro Alves  <palves@redhat.com>
356
357         * infrun.c (keep_going): Update comments.
358
359 2013-10-22  Pedro Alves  <palves@redhat.com>
360
361         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
362         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
363
364 2013-10-22  Pedro Alves  <palves@redhat.com>
365
366         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
367         GDB_EXC_BAD_ACCESS.
368         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
369         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
370         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
371         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
372         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
373         (GDB_SIGNAL_LAST): Change description string.
374         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
375         Adjust to signal renaming.
376         * darwin-nat.c (darwin_decode_message): Likewise.
377
378 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
379
380         * MAINTAINERS (Write After Approval): Add myself to the list.
381
382 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
383
384         * breakpoint.c (update_watchpoint): If hardware watchpoints are
385         forced off, downgrade them to software watchpoints if possible,
386         and error out if not possible.
387         (watch_command_1): Move watchpoint type selection closer to
388         watchpoint creation, and extend the comments.
389
390 2013-10-18  Pedro Alves  <palves@redhat.com>
391
392         PR gdb/16062
393         * infrun.c (handle_inferior_event): Keep going if we got a random
394         signal we should not stop for, instead of falling through to the
395         step tests.
396
397 2013-10-18  Yao Qi  <yao@codesourcery.com>
398
399         * c-varobj.c (cplus_number_of_children): Fix indentation.
400
401 2013-10-17  Tom Tromey  <tromey@redhat.com>
402
403         PR gdb/15995:
404         * printcmd.c (printcmd): Call gdb_flush.
405
406 2013-10-17  Tom Tromey  <tromey@redhat.com>
407
408         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
409         (elf_locate_sections): Update.
410
411 2013-10-17  Yao Qi  <yao@codesourcery.com>
412
413         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
414         * ada-varobj.c: Remove the include of ada-varobj.h.
415         (ada_varobj_get_number_of_children): Declare.
416         (ada_varobj_get_name_of_child): Make it static.
417         (ada_varobj_get_path_expr_of_child): Likewise.
418         (ada_varobj_get_value_of_child): Likewise.
419         (ada_varobj_get_type_of_child): Likewise.
420         (ada_varobj_get_value_of_array_variable): Likewise.
421         * ada-varobj.h: Remove.
422
423 2013-10-17  Yao Qi  <yao@codesourcery.com>
424
425         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
426         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
427         * ada-varobj.c: Include "varobj.h".
428         (ada_number_of_children): New.  Moved from varobj.c.
429         (ada_name_of_variable, ada_name_of_child): Likewise.
430         (ada_path_expr_of_child, ada_value_of_child): Likewise.
431         (ada_type_of_child, ada_value_of_variable): Likewise.
432         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
433         (ada_varobj_ops): New.
434         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
435         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
436         * gdbtypes.h (get_target_type): Declare.
437         * varobj.c: Remove the inclusion of "ada-varobj.h" and
438         "ada-lang.h".
439         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
440         (ANONYMOUS_UNION_NAME): Likewise.
441         (get_type, get_value_type, get_target_type): Remove declarations.
442         (value_get_print_value, varobj_value_get_print_value): Likewise.
443         (c_number_of_children, c_name_of_variable): Likewise.
444         (c_name_of_child, c_path_expr_of_child): Likewise.
445         (c_value_of_child, c_type_of_child): Likewise.
446         (c_value_of_variable, cplus_number_of_children): Likewise.
447         (cplus_class_num_children, cplus_name_of_variable): Likewise.
448         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
449         (cplus_value_of_child, cplus_type_of_child): Likewise.
450         (cplus_value_of_variable, java_number_of_children): Likewise.
451         (java_name_of_variable, java_name_of_child): Likewise.
452         (java_path_expr_of_child, java_value_of_child): Likewise.
453         (java_type_of_child, java_value_of_variable): Likewise.
454         (ada_number_of_children, ada_name_of_variable): Likewise.
455         (ada_name_of_child, ada_path_expr_of_child): Likewise.
456         (ada_value_of_child, ada_type_of_child): Likewise.
457         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
458         (ada_value_has_mutated): Likewise.
459         (struct language_specific): Move it to varobj.h.
460         (CPLUS_FAKE_CHILD): Move it to varobj.h.
461         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
462         Callers update.
463         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
464         Make it extern.
465         (is_anonymous_child): Move it to c-varobj.c and rename to
466         varobj_is_anonymous_child.  Caller update.
467         (get_type): Move it to c-varobj.c.
468         (get_value_type): Rename it varobj_get_value_type.  Make it
469         extern.
470         (get_target_type): Move it gdbtypes.c.
471         (varobj_formatted_print_options): New function.
472         (value_get_print_value): Rename it to
473         varobj_value_get_print_value and make it extern.
474         (varobj_value_is_changeable_p): Make it extern.
475         (adjust_value_for_child_access): Move it to c-varobj.c.
476         (default_value_is_changeable_p): Rename it to
477         varobj_default_value_is_changeable_p.  Make it extern.
478         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
479         (c_name_of_child, c_path_expr_of_child): Likewise.
480         (c_value_of_child, c_type_of_child): Likewise.
481         (c_value_of_variable, cplus_number_of_children): Likewise.
482         (cplus_class_num_children, cplus_name_of_variable): Likewise.
483         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
484         (cplus_value_of_child, cplus_type_of_child): Likewise.
485         (cplus_value_of_variable): Likewise.
486         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
487         (java_name_of_child, java_path_expr_of_child): Likewise.
488         (java_value_of_child, java_type_of_child): Likewise.
489         (java_value_of_variable): Likewise.
490         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
491         (ada_name_of_child, ada_path_expr_of_child): Likewise.
492         (ada_value_of_child, ada_type_of_child): Likewise.
493         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
494         (ada_value_has_mutated): Likewise.
495         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
496         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
497         (c_varobj_ops, cplus_varobj_ops): Declare.
498         (java_varobj_ops, ada_varobj_ops): Declare.
499         (varobj_default_value_is_changeable_p): Declare.
500         (varobj_value_is_changeable_p): Declare.
501         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
502         (varobj_get_path_expr_parent): Declare.
503         (varobj_value_get_print_value): Declare.
504         (varobj_formatted_print_options): Declare.
505         (varobj_restrict_range): Declare.
506
507 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
508
509         * target/waitstatus.h (target_waitkind): Remove spurious
510         character from the comments.
511
512 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
513
514         * gdbarch.sh (get_longjmp_target): Add method documentation.
515         * gdbarch.h: Regenerate.
516
517 2013-10-16  Tom Tromey  <tromey@redhat.com>
518
519         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
520         label.
521
522 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
523
524         * gcore.in: Call GDB using the full path to the gcore script.
525         Error out if the GDB binary is not found.
526
527 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
528
529         PR gdb/16014
530         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
531         sizeof.
532
533 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
534
535         PR gdb/16042
536         * target.c (target_disable_btrace): Fix invalid return value for
537         void function.
538         (target_teardown_btrace): Likewise.
539
540 2013-10-14  Yao Qi  <yao@codesourcery.com>
541
542         * varobj.c (struct varobj): Move most of the fields to
543         varobj.h.
544         (struct varobj_dynamic): New struct.
545         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
546         (varobj_has_more): Likewise.
547         (dynamic_varobj_has_child_method): Likewise.
548         (update_dynamic_varobj_children): Likewise.
549         (varobj_get_num_children): Likewise.
550         (varobj_list_children, varobj_pretty_printed_p): Likewise.
551         (install_new_value_visualizer): Likewise.
552         (install_new_value_visualizer, install_new_value): Likewise.
553         (varobj_update, new_variable, free_variable): Likewise.
554         (my_value_of_variable, value_get_print_value): Likewise.
555         (install_visualizer): Change the type of parameter 'var' to
556         'struct varobjd_dynamic *'.  Callers update.
557         * varobj.h (struct varobj): Moved from varobj.c.
558         (struct varobj) <dynamic>: New field.
559
560 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
561
562         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
563         as the preferred name of r30.
564         * nios2-linux-tdep.c (reg_offsets): Likewise.
565         * features/nios2-cpu.xml: Likewise.
566         * features/nios2-linux.c: Regenerated.
567         * features/nios2.c: Regenerated.
568         * regformats/nios2-linux.dat: Regenerated.
569
570 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
571
572         Canonicalize directories for EXEC_FILENAME.
573         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
574         exec_filename.
575         * utils.c (gdb_realpath_keepfile): New function.
576         * utils.h (gdb_realpath_keepfile): New declaration.
577
578 2013-10-11  Doug Evans  <dje@google.com>
579
580         * Makefile.in (GDBFLAGS): New variable.
581         (run): New rule.
582
583 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
584
585         * NEWS: Add entry documenting the new "-catch-assert" and
586         "-catch-exception" GDB/MI commands.
587
588 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
589
590         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
591         "enabled".
592         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
593         "enabled".  Set B->ENABLE_STATE accordingly.
594         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
595         ada-lang.c.
596         (create_ada_exception_catchpoint): Add declaration.
597         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
598         (create_ada_exception_catchpoint): Make non-static. Add new
599         parameter "disabled". Use it in call to
600         init_ada_exception_breakpoint.
601         (catch_ada_exception_command): Add parameter "enabled" in call
602         to create_ada_exception_catchpoint.
603         (catch_assert_command): Likewise.
604
605         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
606         Add declarations.
607         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
608         "catch-exception" commands.
609         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
610         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
611
612 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
613
614         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
615         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
616         of all its enumerates with "ada_".  Update the rest of this
617         file throughout.
618
619 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
620
621         * ada-lang.c (ada_decode_exception_location): Delete.
622         (create_ada_exception_catchpoint): Remove arguments "sal",
623         "addr_string" and "ops".  Add argument "ex_kind" instead.
624         Adjust implementation accordingly, calling ada_exception_sal
625         to get the entities it no longer gets passed as arguments.
626         Document the function's arguments.
627         (catch_ada_exception_command): Use catch_ada_exception_command_split
628         instead of ada_decode_exception_location, and update call to
629         create_ada_exception_catchpoint.
630         (catch_ada_assert_command_split): Renames
631         ada_decode_assert_location.  Remove parameters "addr_string" and
632         "ops", and now returns void.  Adjust implementation accordingly.
633         Update the function documentation.
634         (catch_assert_command): Use catch_ada_assert_command_split
635         instead of ada_decode_assert_location.  Update call to
636         create_ada_exception_catchpoint.
637
638 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
639
640         * utils.h (perror_warning_with_name): Add declaration.
641         * utils.c (perror_warning_with_name): New function.
642         * cli/cli-cmds.c (source_script_with_search): Add call to
643         perror_warning_with_name if from_tty is nul.
644
645 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
646
647         * utils.c (perror_string): New function, extracted out of
648         throw_perror_with_name.
649         (throw_perror_with_name): Rework to use perror_string.
650
651 2013-10-11  Yao Qi  <yao@codesourcery.com>
652
653         * remote.c (discard_pending_stop_replies_in_queue): Update
654         declaration.
655         (struct stop_reply) <rs>: New field.
656         (remove_stop_reply_of_remote_state): New function.
657         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
658         Callers update.  Pass remove_stop_reply_of_remote_state to
659         QUEUE_iterate.
660         (remote_parse_stop_reply): Initialize field 'rs'.
661
662 2013-10-10  Will Newton  <will.newton@linaro.org>
663
664         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
665         linux_init_abi.
666
667 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
668
669         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
670         serial_baud_show_cmd.
671         (_initialize_cli_cmds): Delete the code creating the
672         "set/show remotebaud" commands.
673         * serial.c (baud_rate): Move here from top.c.
674         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
675         (_initialize_serial): Create "set/show serial baud" commands.
676         Add "set/show remotebaud" command aliases.
677         * top.c (baud_rate): Moved to serial.c.
678         * NEWS: Document the new "set/show serial baud" commands,
679         replacing "set/show remotebaud".
680
681 2013-10-09  Pedro Alves  <palves@redhat.com>
682
683         * breakpoint.c (insert_bp_location): Use memory_error_message to
684         build the memory error string.
685         * c-lang.c: Include "gdbcore.h".
686         (c_get_string): Use memory_error to throw error.
687         (target_xfer_memory_error): Delete.
688         (memory_error_message): New, factored out from
689         target_xfer_memory_error.
690         (memory_error): Change parameter type to target_xfer_error.
691         Rewrite.
692         (read_memory): Use memory_error instead of
693         target_xfer_memory_error.
694         * gdbcore.h: Include "target.h".
695         (memory_error): Change parameter type to target_xfer_error.
696         (memory_error_message): Declare function.
697         * target.c (target_read_memory, target_read_stack)
698         (target_write_memory, target_write_raw_memory): Return
699         TARGET_XFER_E_IO on error.  Adjust comments.
700         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
701         instead of EIO.
702         * target.h (target_read, target_insert_breakpoint)
703         (target_remove_breakpoint): Adjust comments.
704         * valprint.c (partial_memory_read): Rename parameter, and adjust
705         comment.
706         (val_print_string): Use memory_error_message to build the memory
707         error string.
708
709 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
710
711         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
712         result variable.  Rename variable fopen_e_ever_failed to
713         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
714
715 2013-10-09  Pedro Alves  <palves@redhat.com>
716
717         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
718         (monitor_write_memory_longlongs, monitor_write_memory_block):
719         Constify 'myaddr' parameter.
720         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
721         helper.
722         (monitor_xfer_partial): New function.
723         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
724         hook.  Install a to_xfer_partial hook.
725
726 2013-10-09  Tom Tromey  <tromey@redhat.com>
727
728         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
729         bfd_get_alt_debug_link_info.
730
731 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
732
733         New flag OBJF_NOT_FILENAME.
734         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
735         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
736         allocate_objfile.
737         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
738         symbol_file_add_from_bfd.
739         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
740         allocate_objfile.
741         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
742         NULL.
743         * objfiles.h (OBJF_NOT_FILENAME): New.
744
745 2013-10-08  Tom Tromey  <tromey@redhat.com>
746
747         * Makefile.in (SFILES): Add build-id.c.
748         (HFILES_NO_SRCDIR): Add build-id.h.
749         * build-id.c: New file, largely from elfread.c.  Modified
750         most functions.
751         * build-id.h: New file.
752         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
753         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
754         Search for dwz file using build-id.
755         * elfread.c (build_id_bfd_get, build_id_verify)
756         (build_id_to_debug_filename, find_separate_debug_file): Remove.
757
758 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
759
760         * ada-lang.c (compare_names_with_case): Renamed from
761         compare_names, adding a new parameter "casing" and its handling.
762         New function documentation.
763         (compare_names): New function, implemented using
764         compare_names_with_case.
765
766 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
767
768         * ada-lang.c (ada_exception_sal): Remove advance declaration.
769
770 2013-10-07  Tom Tromey  <tromey@redhat.com>
771
772         * objfiles.c (free_objfile_per_bfd_storage): Delete the
773         demangled_names_hash.
774         (free_objfile): Don't delete the demangled_names_hash.
775         * objfiles.h (struct objfile_per_bfd_storage)
776         <demangled_names_hash>: New field.
777         (struct objfile) <demangled_names_hash>: Move to
778         objfile_per_bfd_storage.
779         * symfile.c (reread_symbols): Don't delete the
780         demangled_names_hash.
781         * symtab.c (create_demangled_names_hash): Update.
782         (symbol_set_names): Update.
783
784 2013-10-07  Tom Tromey  <tromey@redhat.com>
785
786         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
787         needs_relocations>: New fields.
788         (gdb_bfd_requires_relocations): New function.
789         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
790         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
791         the BFD needs relocations applied.
792
793 2013-10-07  Pedro Alves  <palves@redhat.com>
794
795         PR breakpoints/11568
796         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
797         the thread list" instead of "gone".
798
799 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
800
801         * NEWS: Mention new convenience variable $_exitsignal.
802         * corelow.c (core_open): Reset exit convenience variables.  Set
803         $_exitsignal to the uncaught signal which generated the corefile.
804         * infrun.c (handle_inferior_event): Reset exit convenience
805         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
806         (clear_exit_convenience_vars): New function.
807         * inferior.h (clear_exit_convenience_vars): New prototype.
808
809 2013-10-06  Yao Qi  <yao@codesourcery.com>
810
811         * varobj.h: Add comments to enum varobj_languages.
812
813 2013-10-04  Doug Evans  <dje@google.com>
814
815         Add support for DWP file format version 2.
816         * NEWS: Mention support for DWP file format version 2.
817         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
818         union of asection, containing_section.  New fields virtual_offset
819         and is_virtual.  Change type of readin filed from int to char.
820         (dwo_sections, dwo_file): Tweak comments.
821         (dwp_v2_section_ids): New enum.
822         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
823         str_offsets, types.
824         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
825         All uses updated.
826         (virtual_v2_dwo_sections): New struct.
827         (dwp_hash_table): New fields version, nr_columns.  Change type of
828         section_pool field to a union.
829         (dwp_file): New field version.
830         (dwarf2_has_info): Check for virtual sections.
831         (get_containing_section): New function.
832         (get_section_bfd_owner, get_section_bfd_section): Call it.
833         (dwarf2_locate_sections): Update.
834         (dwarf2_section_empty_p): Update.
835         (dwarf2_read_section): Handle virtual sections.
836         (locate_dwz_sections): Update.
837         (create_dwp_hash_table): Document and handle V2 format.
838         (locate_v1_virtual_dwo_sections): Renamed from
839         locate_virtual_dwo_sections and update.  All callers updated.
840         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
841         Delete arg htab.  Rename arg section_index to unit_index.
842         All callers updated.
843         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
844         All uses updated.
845         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
846         (lookup_dwo_unit_in_dwp): Add V2 support.
847         (dwarf2_locate_dwo_sections): Update.
848         (dwarf2_locate_common_dwp_sections): Renamed from
849         dwarf2_locate_dwp_sections and update.  All callers updated.
850         (dwarf2_locate_v2_dwp_sections): New function.
851         (open_and_init_dwp_file): Add V2 support.
852         (read_str_index): New locals str_section, str_offsets_section.
853
854 2013-10-04  Pedro Alves  <palves@redhat.com>
855
856         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
857         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
858         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
859         describing comments with references to ptid.h.
860         * common/ptid.h: Remove intro description of constructors,
861         accessors and predicates.
862         (struct ptid): Reformat.
863         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
864         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
865         describing comments.
866
867 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
868
869         * aix-thread.c (sync_threadlists): Add missing ')' in call
870         to ptid_build.
871
872 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
873
874         * procfs.c (procfs_init_inferior): Fix typo causing the build
875         to fail.
876
877 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
878
879         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
880
881 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
882
883         * mi/mi-main.c (run_one_inferior): Add function description.
884         Make ARG a pointer to an integer whose value determines whether
885         we should "run" or "start" the program.
886         (mi_cmd_exec_run): Add handling of the "--start" option.
887         Reject all other command-line options.
888         * NEWS: Add entry for "-exec-run"'s new "--start" option.
889
890 2013-10-04  Yao Qi  <yao@codesourcery.com>
891
892         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
893         (struct notif_client) <pending_event>: Moved
894         to struct remote_notif_state.
895         <id>: New field.
896         (struct remote_notif_state) <pending_event>: New field.
897         (notif_event_xfree): Declare.
898         * remote-notif.c (handle_notification): Adjust.
899         (notif_event_xfree): New function.
900         (do_notif_event_xfree): Call notif_event_xfree.
901         (remote_notif_state_xfree): Call notif_event_xfree to free
902         each element in field pending_event.
903         * remote.c (discard_pending_stop_replies): Remove declaration.
904         (discard_pending_stop_replies_in_queue): Declare.
905         (remote_close): Call discard_pending_stop_replies_in_queue
906         instead of discard_pending_stop_replies.
907         (remote_start_remote): Adjust.
908         (stop_reply_xfree): Call notif_event_xfree.
909         (notif_client_stop): Adjust initialization.
910         (remote_notif_remove_all): Rename it to ...
911         (remove_stop_reply_for_inferior): ... this.  Update comments.
912         Don't check INF is NULL.
913         (discard_pending_stop_replies): Return early if notif_state is
914         NULL.  Adjust.  Don't check INF is NULL.
915         (remote_notif_get_pending_events): Adjust.
916         (discard_pending_stop_replies_in_queue): New function.
917         (remote_wait_ns): Likewise.
918
919 2013-10-04  Yao Qi  <yao@codesourcery.com>
920
921         * remote-notif.c (DECLARE_QUEUE_P): Remove.
922         (notif_queue): Remove.
923         (remote_notif_process): Add one parameter 'notif_queue'.
924         Update comments.  Callers update.
925         (remote_async_get_pending_events_token): Remove.
926         (remote_notif_register_async_event_handler): Remove.
927         (remote_notif_unregister_async_event_handler): Remove.
928         (handle_notification): Add parameter 'notif_queue'.  Update
929         comments.  Callers update.
930         (notif_xfree): Remove.
931         (remote_notif_state_allocate): New function.
932         (remote_notif_state_xfree): New function.
933         (_initialize_notif): Remove code to allocate queue.
934         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
935         (struct remote_notif_state): New.
936         (handle_notification): Update declaration.
937         (remote_notif_process): Likewise.
938         (remote_notif_register_async_event_handler): Remove.
939         (remote_notif_unregister_async_event_handler): Remove.
940         (remote_notif_state_allocate): Declare.
941         (remote_notif_state_xfree): Declare.
942         * remote.c (struct remote_state) <notif_state>: New field.
943         (remote_close): Don't call
944         remote_notif_unregister_async_event_handler.  Call
945         remote_notif_state_xfree.
946         (remote_open_1): Don't call
947         remote_notif_register_async_event_handler.  Call
948         remote_notif_state_allocate.
949
950 2013-10-04  Yao Qi  <yao@codesourcery.com>
951
952         * varobj.c (create_child_with_value): Remove 'const' from the
953         type of parameter 'name'.
954         (varobj_add_child): Likewise.
955         (install_dynamic_child): Remove 'const' from the type of
956         parameter 'name'.
957         (varobj_add_child): Likewise.
958         (create_child_with_value): Likewise.  Update comments.  Don't
959         duplicate 'name'.
960         (update_dynamic_varobj_children): Duplicate 'name'
961         and pass it to install_dynamic_child.
962
963 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
964
965         * python/py-value.c (convert_value_from_python): Move PyInt_Check
966         conversion logic to occur after PyLong_Check.  Comment on order
967         change significance.
968         * python/py-arch.c (archpy_disassemble): Comment on order of
969         conversion for integers and longs.
970
971 2013-10-03  Pedro Alves  <palves@redhat.com>
972
973         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
974         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
975         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
976         PTRACE_O_TRACEFORK is not supported.
977         (linux_test_for_tracesysgood): New function.
978         (linux_test_for_tracefork): New function, factored out from
979         linux_check_ptrace_features, and also don't kill child_pid here.
980
981 2013-10-03  Tristan Gingold  <gingold@adacore.com>
982
983         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
984         Remove verbose error reporting.  Use detected state to
985         thread_set_state call.
986         (i386_darwin_dr_get): Fix return type.  Remove verbose error
987         report.
988         Remove trailing spaces.
989
990 2013-10-02  Pedro Alves  <palves@redhat.com>
991
992         * cp-valprint.c (cp_print_value_fields): Adjust calls to
993         val_print_optimized_out.
994         * jv-valprint.c (java_print_value_fields): Likewise.
995         * p-valprint.c (pascal_object_print_value_fields): Likewise.
996         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
997         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
998         new optimized out value.
999         * findvar.c (address_from_register): Likewise.
1000         * frame.c (put_frame_register): Tweak error string to say the
1001         register was not saved, rather than optimized out.
1002         * infcmd.c (default_print_one_register_info): Adjust call to
1003         val_print_optimized_out.  Use value_of_register instead of
1004         get_frame_register_value.
1005         * mi/mi-main.c (output_register): Use value_of_register instead of
1006         get_frame_register_value.
1007         * valprint.c (valprint_check_validity): Likewise.
1008         (val_print_optimized_out): New value parameter.  If the value is
1009         lval_register, print <not saved> instead.
1010         (value_check_printable, val_print_scalar_formatted): Adjust calls
1011         to val_print_optimized_out.
1012         * valprint.h (val_print_optimized_out): New value parameter.
1013         * value.c (struct value) <optimized_out>: Extend comment.
1014         (error_value_optimized_out): New function.
1015         (require_not_optimized_out): Use it.  Use a different string for
1016         lval_register values.
1017         * value.h (error_value_optimized_out): New declaration.
1018         * NEWS: Mention <not saved>.
1019
1020 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
1021
1022         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1023         strcmp to compare two symtab filenames.
1024
1025 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
1026
1027         * symtab.c (search_symbols_equal): Delete.
1028         (sort_search_symbols_remove_dups): Replace call to
1029         search_symbols_equal by call to compare_search_syms,
1030         adjusting as necessary.
1031
1032 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1033
1034         PR python/15579
1035         * python/python.c: Document gdb.execute command in Python help.
1036
1037 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1038
1039         * python/py-frame.c (frame_info_to_frame_object): Use
1040         gdbpy_convert_exception. Clean up Python object on failure.
1041
1042 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
1043
1044         * python/lib/gdb/command/frame_filters.py
1045         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1046         (ShowFrameFilterPriority.invoke): Ditto.
1047
1048 2013-10-01  Keith Seitz  <keiths@redhat.com>
1049
1050         * linespec.c (struct ls_parser): Make 'saved_arg' const.
1051         (parse_linespec): Make 'argptr' const.
1052         Remove temporary cast of 'argptr' to const char **.
1053         (decode_line_full): Pass const pointer to parse_linespec.
1054         (decode_line_1): Likewise.
1055         (decode_objc): Make local variable 'new_argptr' const.
1056         (find_function_symbols): Remove temporary cast to char *
1057         to find_imps.
1058         * objc-lang.c (find_imps): Make argument 'method' const.
1059         Return const.
1060         * objc-lang.h (find_imps): Likewise.
1061
1062 2013-10-01  Keith Seitz  <keiths@redhat.com>
1063
1064         * completer.c (skip_quoted_chars): Make all arguments const.
1065         Return const.
1066         (skip_quoted): Likewise.
1067         * completer.h (skip_quoted_chars): Likewise.
1068         (skip_quoted): Likewise.
1069         * defs.h (skip_quoted): Remove duplicate declaration.
1070         * jv-exp.y: Include completer.h.
1071         (yylex): Remove unneccessary cast to char * fro skip_quoted.
1072         * p-exp.y: Include completer.h.
1073
1074 2013-10-01  Keith Seitz  <keiths@redhat.com>
1075
1076         * c-exp.y (parse_number): Make first argument const.
1077         Make a copy of the input to manipulate.
1078         (c_parse_escape): Make first argument const.
1079         Make local variable 'tokptr' const.
1080         (parse_string_or_char): Make first two arguments const.
1081         (macro_original_text): Make const.
1082         (lex_one_token): Make local variable 'tokstart' const.
1083         Likewise for local variables named 'p'.
1084         Cast away const for struct stoken (temporary).
1085         * c-lang.h (c_parse_escpae): Make first argument const.
1086         * cli/cli-cmds.c (echo_command): Make local variable 'p'
1087         const.
1088         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1089         var_string case.
1090         * f-exp.y (parse_number): Make first argument const.
1091         (match_string_literal): Make local variable 'tokstart'
1092         const.
1093         (yylex): Make local variable 'p' const.
1094         Cast away const for struct stoken (temporary).
1095         * go-exp.y (parse_number): Make first argument const.
1096         (parse_string_or_char): Likewise.
1097         Make local variable 'tokstart' const.
1098         (lex_one_token): Likewise for numerous locals called 'p'.
1099         Cast away const for struct stoken (temporary).
1100         * jv-exp.y (parse_number): Make first argument const.
1101         Make local variables 'tokstart' and 'tokptr' const.
1102         Cast away const for call to skip_quoted (temporary).
1103         (yylex): Make local variable 'p' const.
1104         Cast away const for struct stoken (temporary).
1105         * m2-exp.y (parse_number): Make local variable 'p' const.
1106         (yylex): Likewise for 'tokstart'.
1107         Cast away const for struct stoken (temporary).
1108         Make local variable 'p' const.
1109         * macroexp.c (get_character_constant): Pass a const string
1110         to c_parse_escape.
1111         (get_string_literal): Likewise.
1112         (macro_expand_next): Make first argument const.
1113         Cast away const for init_shared_buffer.
1114         * macroexp.h (macro_expand_next): Make first argument const.
1115         * p-exp.y (yylex): Make a local copy of 'lexptr'.
1116         Pass a const string to c_parse_escape.
1117         Make local variables 'p' and 'namestart' const.
1118         * parse.c (lexptr): Make const.
1119         (prev_lexptr): Likewise.
1120         (find_template_name_end): Return const.
1121         Make argument const, too.
1122         (parse_exp_in_context): Make first argument const.
1123         Remove the entire const_hack.
1124         (parse_exp_in_context_1): Make first argument const.
1125         * parser-defs.h (find_template_name_end): Return const.
1126         Make argument const, too.
1127         (lexptr): Make const.
1128         (prev_lexptr): Likewise.
1129         * utils.c (parse_escape): Make second argument const.
1130         * utils.h (parse_escape): Likewise.
1131
1132 2013-10-01  Keith Seitz  <keiths@redhat.com>
1133
1134         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1135         is now const.
1136         (block_lookup): Make 'raw_name' and 'name' const.
1137         * ada-lex.l (processString): Update for struct stoken.ptr.
1138         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1139         (operator_stoken): Likewise.
1140         (lex_one_token): Remove temporary cast to char * for
1141         'yylval.sval.ptr'.
1142         * f-exp.y (yylex): Likewise.
1143         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1144         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1145         * go-exp.y (lex_one_token): Remove temporary cast to char * for
1146         'yylval.sval.ptr'.
1147         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1148         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1149         * linespec.c (struct ls_parser): Make 'stream' const.
1150         (find_parameter_list_end): Make argument 'input' and local
1151         variable 'p' const.
1152         (linespec_lexer_lex_string): Make local variables 'start' and
1153         'p' const.
1154         Use skip_spaces_const instead of skip_spaces.
1155         (linespec_lexer_peek_token): Make local variable 'saved_stream'
1156         const.
1157         (parse_linespec): Temporarily cast 'argptr' to const for
1158         'parser->lexer.stream'.
1159         * m2-exp.y (yylex): Remove temporary cast to char * for
1160         'yylval.sval.ptr'.
1161         * objc-lang.c (add_msglist): Make local variable 'p' const.
1162         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1163         (exp : STRING): Make 'sp' const.
1164         (parse_number): Make argument 'p' const.
1165         * parser-defs.h (struct stoken): Make 'ptr' const.
1166
1167 2013-10-01  Doug Evans  <dje@google.com>
1168
1169         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1170
1171 2013-10-01  Yao Qi  <yao@codesourcery.com>
1172
1173         * varobj.c (c_value_of_root): Remove declaration.
1174         (cplus_value_of_root, java_value_of_root): Likewise.
1175         (ada_value_of_root): Likewise.
1176         (struct language_specific) <value_of_root>: Remove.
1177         (languages): Update initialization.
1178         (check_scope): Move earlier.
1179         (c_value_of_root): Move earlier and rename to ...
1180         (value_of_root_1): ... this.
1181         (value_of_root): Caller update.
1182         (cplus_value_of_root, java_value_of_root): Remove.
1183         (ada_value_of_root): Remove.
1184
1185 2013-10-01  Yao Qi  <yao@codesourcery.com>
1186
1187         * varobj.c (varobj_format_string): Remove "unknown".
1188         (languages): Remove the first element.
1189         * varobj.h (enum varobj_languages): Remove vlang_c.
1190
1191 2013-10-01  Yao Qi  <yao@codesourcery.com>
1192
1193         * varobj.c (struct language_specific) <language>: Remove.
1194         (languages): Update the initialization.
1195
1196 2013-10-01  Yao Qi  <yao@codesourcery.com>
1197
1198         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1199         "solib-target.h".  Include "windows-tdep.h".
1200         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
1201         set_solib_ops and set_gdbarch_has_dos_based_file_system.
1202         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1203         windows-tdep.o to gdb_target_obs.
1204
1205 2013-10-01  Yao Qi  <yao@codesourcery.com>
1206
1207         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1208         "solib-target.h".
1209         (amd64_windows_init_abi): Don't call set_solib_ops and
1210         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1211         windows_init_abi instead.
1212         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1213         "solib-target.h".
1214         (i386_cygwin_init_abi): Don't call set_solib_ops,
1215         set_gdbarch_has_dos_based_file_system and
1216         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1217         windows_init_abi instead.
1218         * windows-tdep.c: Include "solib.h" and "solib-target.h".
1219         (windows_init_abi): New function.
1220         (windows_iterate_over_objfiles_in_search_order): Make it
1221         static.
1222         * windows-tdep.h (windows_init_abi): Declare.
1223         (windows_iterate_over_objfiles_in_search_order): Remove
1224         declaration.
1225
1226 2013-10-01  Jerome Guitton  <guitton@adacore.com>
1227
1228         Checked in by Joel Brobecker  <brobecker@adacore.com>
1229         * system-gdbinit/elinos.py (get_elinos_environment): Return an
1230         incomplete dictionnary instead of None in case of missing
1231         environment variables.
1232         (elinos_init): in case of an incomplete environment, best
1233         effort to load system libraries instead of abort.
1234
1235 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
1236
1237         * ada-lang.c (ada_has_this_exception_support): Ignore
1238         mst_solib_trampoline minimal symbols.
1239
1240 2013-09-30  Tristan Gingold  <gingold@adacore.com>
1241
1242         * i386-darwin-nat.c (darwin_complete_target): Install methods for
1243         hardware watchpoint.
1244         (i386_darwin_dr_set): Support 32 and 64 bit states.
1245         (i386_darwin_dr_get): Likewise.
1246         (i386_darwin_dr_set_control): Make static.
1247         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1248         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1249
1250 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
1251
1252         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1253         Replace TIDGET with ptid_get_lwp.
1254         Replace GET_LWP with ptid_get_lwp.
1255         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1256         Replace BUILD_THREAD with ptid_build.
1257         Replace BUILD_LWP with ptid_build.
1258         Replace PIDGET with ptid_get_pid.
1259         Replace TIDGET with ptid_get_lwp.
1260         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1261         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1262         Replace TIDGET with ptid_get_lwp.
1263         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1264         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1265         Replace TIDGET with ptid_get_lwp.
1266         Replace GET_LWP with ptid_get_lwp.
1267         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1268         * auxv.c: Likewise.
1269         * breakpoint.c: Likewise.
1270         * common/ptid.c (ptid_is_pid): Condense check for
1271         null_ptid and minus_one_ptid.
1272         (ptid_lwp_p): New function.
1273         (ptid_tid_p): New function.
1274         * common/ptid.h: Update comments for accessors.
1275         (ptid_lwp_p): New prototype.
1276         (ptid_tid_p): New prototype.
1277         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1278         * gcore.c: Replace PIDGET with ptid_get_pid.
1279         * gdbthread.h: Likewise.
1280         * gnu-nat.c: Likewise.
1281         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1282         Replace TIDGET with ptid_get_lwp.
1283         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1284         * hppanbsd-nat.c: Likewise.
1285         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1286         Replace TIDGET with ptid_get_lwp.
1287         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1288         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1289         * infcmd.c: Likewise.
1290         * inferior.h: Likewise.
1291         * inflow.c: Likewise.
1292         * infrun.c: Likewise.
1293         * linux-fork.c: Likewise.
1294         * linux-nat.c: Replace PIDGET with ptid_get_pid.
1295         Replace GET_PID with ptid_get_pid.
1296         Replace is_lwp with ptid_lwp_p.
1297         Replace GET_LWP with ptid_get_lwp.
1298         Replace BUILD_LWP with ptid_build.
1299
1300 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1301
1302         * common/linux-btrace.c: Move sys/syscall.h out of the
1303         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1304         Also check for SYS_perf_event_open before attempting to buid.
1305
1306 2013-09-27  Doug Evans  <dje@google.com>
1307
1308         * dwarf2read.c (dwarf2_section_info): Add comment.
1309         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1310         All uses updated.
1311         (dwarf2_section_empty_p): Rename arg from "info" to "section".
1312         (dwarf2_read_section): Delete unused local "header".  Add section
1313         name to error message.
1314         (create_dwo_in_dwp): Tweak comment.
1315         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1316
1317         * dwarf2read.c (die_reader_specs): Tweak comment.
1318         (get_section_bfd_owner, get_section_bfd_section): New functions.
1319         (get_section_name, get_section_file_name): New functions.
1320         (get_section_id, get_section_flags): New functions.
1321         (*): Use new functions to access section fields.
1322
1323         * dwarf2read.c (struct dwo_file): Add/tweak comments.
1324         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
1325         arg "htab".  All callers updated.
1326         (create_debug_types_hash_table): Remove redundant copy of
1327         abbrev_section.
1328         (create_dwo_in_dwp): Tweak comments.
1329         (read_str_index): Tweak comment.  Record dwarf form name in static
1330         local.
1331
1332 2013-09-27  Pedro Alves  <palves@redhat.com>
1333
1334         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1335         (remote_filename_p): Add comment.
1336         * remote.c (remote_filename_p): Adjust to use
1337         REMOTE_SYSROOT_PREFIX.
1338         * solib.c (solib_find): When deciding whether we need to add a
1339         directory separator, check whether the sysroot is "remote:"
1340         instead of checking whether the patch has a drive spec.  Add
1341         comments.
1342
1343 2013-09-27  Pedro Alves  <palves@redhat.com>
1344
1345         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1346         Delete fields.
1347         (remote_parse_stop_reply): Adjust, setting event->ws.kind
1348         directly.
1349
1350 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1351
1352         Fix set debug frame output.
1353         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
1354         SENTINEL_FRAME entry lower to match enum frame_type order.
1355
1356 2013-09-26  Pierre Muller  <muller@sourceware.org>
1357
1358         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1359         AMD64_R15_REGNUM when a register index is expected.
1360         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1361         Substitute in array.
1362         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1363         (amd64_push_arguments): Substitute in integer_regnum array.
1364
1365 2013-09-25  Doug Evans  <dje@google.com>
1366
1367         * objfiles.c (allocate_objfile): Move comment to better place.
1368
1369         New option "set debug symfile on".
1370         * NEWS: Mention "set debug symfile".
1371         * Makefile.in (SFILES): Add symfile-debug.c.
1372         (COMMON_OBS): Add symfile-debug.o.
1373         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1374         objfile's symbol functions.
1375         * objfiles.h (objfile_set_sym_fns): Declare.
1376         * symfile-debug.c: New file.
1377         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1378         objfile's symbol functions.
1379         (reread_symbols): Ditto.
1380
1381         * symfile.h (struct sym_fns): Delete member "sym_flavour".
1382         All uses updated.
1383         (add_symtab_fns): Update prototype.
1384         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
1385         (registered_sym_fns): ... this.
1386         (symtab_fns): Update.
1387         (add_symtab_fns): New arg "flavour".  All callers updated.
1388         (find_sym_fns): Rewrite to use new sym_fns registry.
1389
1390         * symfile.h (struct sym_fns): Add "objfile" argument to
1391         sym_read_linetable.  All uses updated.
1392
1393         * symtab.c (domain_name, search_domain_name): New functions.
1394         * symtab.h (domain_name, search_domain_name): Declare.
1395
1396         * symfile.h (struct quick_symbol_functions): Reorg arg list of
1397         map_matching_symbols so objfile is first.  All uses updated.
1398         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1399         * psymtab.c (map_matching_symbols_psymtab): Update signature.
1400
1401 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1402
1403         PR shlibs/8882
1404         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1405         link map entries.
1406
1407 2013-09-24  Doug Evans  <dje@google.com>
1408
1409         * objfiles.c (free_objfile): Move comment.
1410
1411 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1412
1413         * ada-exp.y (string_to_operator): Delete.
1414         (dummy_string_to_ada_operator): Delete.
1415
1416 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1417
1418         Revert:
1419         * i386-tdep.h (enum amd64_reg_class): New, moved here from
1420         amd64-tdep.c.
1421         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1422         call_dummy_integer_regs, and classify.
1423         * amd64-tdep.h (amd64_classify): Add declaration.
1424         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1425         (amd64_reg_class): Delete, moved to i386-tdep.h.
1426         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
1427         Replace call to amd64_classify by call to tdep->classify.
1428         (amd64_push_arguments): Get the list of registers to use for
1429         passing integer parameters from the gdbarch tdep structure,
1430         rather than using a hardcoded one.  Replace calls to amd64_classify
1431         by calls to tdep->classify.
1432         (amd64_push_dummy_call): Get the register number used for
1433         the "hidden" argument from tdep->call_dummy_integer_regs.
1434         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1435         and tdep->call_dummy_integer_regs.  Set tdep->classify.
1436
1437 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1438
1439         Revert:
1440         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1441         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1442         where tdep->memory_args_by_pointer is non-zero.
1443
1444 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1445
1446         Revert:
1447         * i386-tdep.h (struct gdbarch_tdep): Add new field
1448         integer_param_regs_saved_in_caller_frame.
1449         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1450         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1451
1452 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1453
1454         * amd64-windows-tdep.c: #include "value.h"
1455         (amd64_windows_classify): Delete.
1456         (amd64_windows_passed_by_integer_register)
1457         (amd64_windows_passed_by_xmm_register)
1458         (amd64_windows_passed_by_pointer)
1459         (amd64_windows_adjust_args_passed_by_pointer)
1460         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1461         (amd64_windows_push_dummy_call): New functions.
1462         (amd64_windows_init_abi): Remove setting of
1463         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1464         tdep->classify, tdep->memory_args_by_pointer and
1465         tdep->integer_param_regs_saved_in_caller_frame.
1466         Add call to set_gdbarch_push_dummy_call.
1467
1468 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1469
1470         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1471         objfile->original_name.
1472
1473 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1474
1475         Pass down original filename for objfile.
1476         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1477         * elfread.c (elf_symfile_read): Likewise.
1478         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1479         longer set ORIGINAL_NAME.
1480         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1481         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1482         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
1483         symbol_file_add_from_bfd call.
1484         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1485         (macho_check_dsym): Add parameter filenamep.  Change function comment.
1486         Set *filenamep.
1487         (macho_symfile_read): New variable dsym_filename.  Update
1488         macho_check_dsym call.  Use it for symbol_file_add_separate.
1489         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
1490         it.  Use it for objfile->original_name.
1491         (objfile_name): Return OBFD's filename, if available.
1492         * objfiles.h (allocate_objfile): Add new parameter name.
1493         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1494         * symfile-mem.c (symbol_file_add_from_memory): Update
1495         symbol_file_add_from_bfd call.
1496         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1497         comment for it.
1498         (symbol_file_add_with_addrs): New parameter name, add function comment
1499         for it.  Remove variable name.  Update allocate_objfile call.
1500         (symbol_file_add_separate): New parameter name, add function comment
1501         for it.  Update symbol_file_add_with_addrs call.
1502         (symbol_file_add_from_bfd): New parameter name.  Update
1503         symbol_file_add_with_addrs call.
1504         (symbol_file_add): Update symbol_file_add_from_bfd call.
1505         (reread_symbols): New variable original_name.  Save
1506         objfile->original_name by it.
1507         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1508         second parameter.
1509
1510 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1511
1512         Code cleanup: Add objfile_name accessor function.
1513         * ada-lang.c (is_known_support_routine): Use objfile_name.
1514         * auto-load.c (source_gdb_script_for_objfile)
1515         (auto_load_objfile_script): Likewise.
1516         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1517         * dbxread.c (dbx_symfile_read): Likewise.
1518         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1519         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1520         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1521         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1522         (lookup_dwp_signatured_type, lookup_dwo_unit)
1523         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1524         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1525         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1526         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1527         (dwarf2_record_block_ranges, read_common_block, read_typedef)
1528         (read_subrange_type, load_partial_dies, read_partial_die)
1529         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1530         (die_containing_type, build_error_marker_type, lookup_die_type)
1531         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1532         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1533         (get_DW_AT_signature_type, write_psymtabs_to_index)
1534         (save_gdb_index_command): Likewise.
1535         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1536         Likewise.
1537         * expprint.c (dump_subexp_body_standard): Likewise.
1538         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1539         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1540         original_name.
1541         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1542         obj_name, use objfile_name for it, use the variable.
1543         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1544         Use objfile_name.
1545         * machoread.c (macho_symtab_read, macho_check_dsym)
1546         (macho_symfile_relocate): Likewise.
1547         * maint.c (maintenance_translate_address): Likewise.
1548         * minidebug.c (find_separate_debug_file_in_section): Likewise.
1549         * minsyms.c (install_minimal_symbols): Likewise.
1550         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1551         original_name.
1552         (filter_overlapping_sections): Use objfile_name.
1553         (objfile_name): New function.
1554         * objfiles.h (struct objfile): Rename field name to original_name.
1555         (objfile_name): New prototype.
1556         * printcmd.c (sym_info, address_info): Use objfile_name.
1557         * probe.c (parse_probes, collect_probes, compare_probes)
1558         (info_probes_for_ops): Likewise.
1559         * progspace.c (clone_program_space): Likewise.
1560         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1561         (maintenance_info_psymtabs): Likewise.
1562         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1563         (source_section_scripts): Likewise.
1564         * python/py-objfile.c (objfpy_get_filename): Likewise.
1565         * python/py-progspace.c (pspy_get_filename): Likewise.
1566         * solib-aix.c (solib_aix_get_toc_value): Likewise.
1567         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1568         * solib.c (solib_read_symbols): Likewise.
1569         * stabsread.c (scan_file_globals): Likewise.
1570         * stap-probe.c (handle_stap_probe): Likewise.
1571         * symfile.c (symbol_file_clear, separate_debug_file_exists)
1572         (find_separate_debug_file_by_debuglink): Likewise.
1573         (reread_symbols): Likewise.  Use the objfile field name renamed to
1574         original_name.
1575         (allocate_symtab): Use objfile_name.
1576         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1577         (dump_objfile, dump_msymbols, dump_symtab_1)
1578         (maintenance_print_msymbols, maintenance_print_objfiles)
1579         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1580         * target.c (target_translate_tls_address, target_info): Likewise.
1581         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
1582         objfile_name.
1583
1584 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1585
1586         Code cleanup.
1587         * probe.c (parse_probes): Rename variable objfile_name to
1588         objfile_namestr.
1589
1590 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1591
1592         Remove solib-sunos.c.
1593         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1594         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1595         * objfiles.c (rt_common_objfile): Remove.
1596         (free_objfile): Remove rt_common_objfile comparison.
1597         * objfiles.h (rt_common_objfile): Remove.
1598         * solib-sunos.c: Remove.
1599         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1600
1601 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1602
1603         Remove a.out NetBSD and OpenBSD hosts.
1604         * NEWS (Removed native configurations): New.
1605         * config/arm/nbsdaout.mh: Remove.
1606         * config/i386/nbsdaout.mh: Remove.
1607         * config/i386/obsdaout.mh: Remove.
1608         * config/m68k/nbsdaout.mh: Remove.
1609         * config/sparc/nbsdaout.mh: Remove.
1610         * config/vax/nbsdaout.mh: Remove.
1611         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1612         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1613         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1614         error.
1615         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1616         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1617         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1618
1619 2013-09-23  Tom Tromey  <tromey@redhat.com>
1620
1621         * linespec.c (struct minsym_and_objfile): Remove.
1622         (minsym_and_objfile_d): Remove.
1623         (struct linespec, struct collect_info, linespec_parse_basic)
1624         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1625         (compare_msymbols, find_method, find_function_symbols)
1626         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1627         (add_minsym, search_minsyms_for_name): Update.
1628
1629 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1630
1631         * regcache.c: Add include of valprint.h.
1632         (dump_endian_bytes): Delete.
1633         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1634
1635 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1636
1637         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1638
1639 2013-09-19  Pedro Alves  <palves@redhat.com>
1640
1641         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1642         breakpoints.
1643
1644 2013-09-19  Pedro Alves  <palves@redhat.com>
1645             Thomas Schwinge  <thomas@codesourcery.com>
1646             Yue Lu  <hacklu.newborn@gmail.com>
1647
1648         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1649         Take a gdb_byte pointer instead of a char pointer.
1650
1651         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1652         gnu_xfer_partial helper.
1653         (gnu_xfer_partial): New function.
1654         (gnu_target): Don't install a deprecated_xfer_memory hook.
1655         Install a to_xfer_partial hook.
1656
1657 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1658
1659         Constification.
1660         * main.c (captured_main): Replace catch_command_errors by
1661         catch_command_errors_const.  Twice.
1662         * symfile.c (symbol_file_add_main_1): Make args parameter const.
1663         (symbol_file_add): Make name parameter const.
1664         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1665         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
1666         variable name.  Change their usage accordingly.
1667         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1668         const.
1669         (symbol_file_add_main): Make args parameter const.
1670
1671 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
1672             Ulrich Weigand  <uweigand@de.ibm.com>
1673
1674         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1675         of c_value member.
1676         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1677
1678 2013-09-18  Pedro Alves  <palves@redhat.com>
1679             Yue Lu  <hacklu.newborn@gmail.com>
1680
1681         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1682         (gnu_create_inferior)
1683         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1684         (set_sig_thread_cmd): Use the lwpid field of ptids to
1685         store/extract thread ids instead of the tid field.
1686         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1687
1688 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1689
1690         * infcmd.c (default_print_one_register_info): Add detection of
1691         optimized out values.
1692         (default_print_registers_info): Switch to using
1693         get_frame_register_value.
1694
1695 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1696
1697         * infrun.c (handle_inferior_event): Check if we know the
1698         function start address before setting a resume breakpoint.
1699
1700 2013-09-18  Pedro Alves  <palves@redhat.com>
1701
1702         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1703         minus_one_ptid instead of looking at the ptid's tid field and
1704         comparing that to -1.
1705
1706 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1707
1708         * main.h (get_gdb_program_name): Remove extra whitespace.
1709
1710 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1711
1712         * main.h (get_gdb_program_name): Add declaration.
1713         * main.c (get_gdb_program_name): Add definition.
1714
1715 2013-09-17  Doug Evans  <dje@google.com>
1716
1717         * dwarf2read.c: Move definitions of complaint functions to after
1718         forward declarations of local functions.
1719
1720 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
1721             Pedro Alves  <palves@redhat.com>
1722
1723         PR gdb/11568
1724         * breakpoint.c (remove_threaded_breakpoints): New function.
1725         (_initialize_breakpoint): Attach remove_threaded_breakpoints
1726         as thread_exit observer.
1727
1728 2013-09-17  Pedro Alves  <palves@redhat.com>
1729
1730         PR gdb/15911
1731         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1732         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1733         * corelow.c (core_open):
1734         * frame.h (print_stack_frame, print_frame_info): New
1735         'set_current_sal' parameter.
1736         * infcmd.c (finish_command, kill_command): Adjust call to
1737         print_stack_frame.
1738         * inferior.c (inferior_command): Likewise.
1739         * infrun.c (normal_stop): Likewise.
1740         * linux-fork.c (linux_fork_context): Likewise.
1741         * record-full.c (record_full_goto_entry, record_full_restore):
1742         Likewise.
1743         * remote-mips.c (common_open): Likewise.
1744         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1745         Use it.
1746         (print_frame_info): New 'set_current_sal' parameter.  Set the last
1747         displayed sal depending on the new paremeter instead of looking at
1748         print_what.
1749         (backtrace_command_1, select_and_print_frame, frame_command)
1750         (current_frame_command, up_command, down_command): Adjust call to
1751         print_stack_frame.
1752         * thread.c (print_thread_info, restore_selected_frame)
1753         (do_captured_thread_select): Adjust call to print_stack_frame.
1754         * tracepoint.c (tfind_1): Likewise.
1755         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1756         (mi_cmd_stack_info_frame): Likewise.
1757         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1758         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1759
1760 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1761
1762         * value.c (isvoid_internal_fn): Replace "parameter" with
1763         "argument".
1764
1765 2013-09-16  Stan Shebs  <stan@codesourcery.com>
1766
1767         * README: Update references to writing code for GDB.
1768         * configure.ac (build_warnings): Remove obsolete comment.
1769         * configure: Regenerate.
1770         * gdbarch.sh: Remove references to gdbint.texinfo.
1771         * gdbarch.h: Regenerate.
1772         * gdbtypes.c (objfile_type): Remove comments referencing internals
1773         manual and D10V.
1774
1775 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1776
1777         * NEWS: Mention new convenience function $_isvoid.
1778         * value.c (isvoid_internal_fn): New function.
1779         (_initialize_values): Add new convenience function $_isvoid.
1780
1781 2013-09-16  Pierre Muller  <muller@sourceware.org>
1782
1783         * arm-linux-tdep.c: Add "elf/common.h" header.
1784         Remove AT_HWCAP macro definintion as it is provided in
1785         added include file.
1786         * s390-tdep.c: Remove system header <elf.h>
1787         Add "elf/common.h" header for AT_HWCAP definition.
1788         (s390_core_read_description): Use correct CORE_ADDR
1789         for hwcap local variable used as third parameter
1790         of function target_auxv_search.
1791
1792 2013-09-14  Pierre Muller  <muller@sourceware.org>
1793             Tom Tromey  <tromey@redhat.com>
1794             Pedro Alves  <palves@redhat.com>
1795
1796         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1797         mode if operating system doesn't know O_CLOEXEC.
1798
1799 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1800
1801         Code cleanup.
1802         * symfile.c (reread_symbols): Move variable obfd_filename to a more
1803         inner block.
1804
1805 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1806
1807         * NEWS: Mention TDB support.
1808         * features/s390-tdb.xml: New file.
1809         * features/s390-te-linux64.xml: New file.
1810         * features/s390x-te-linux64.xml: New file.
1811         * features/Makefile (WHICH): Add new tdescs above.
1812         (s390-te-linux64-expedite): Set.
1813         (s390x-te-linux64-expedite): Set.
1814         * features/s390-te-linux64.c: New file (generated).
1815         * features/s390x-te-linux64.c: New file (generated).
1816         * regformats/s390-te-linux64.dat: New file (generated).
1817         * regformats/s390x-te-linux64.dat: New file (generated).
1818         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1819         (HWCAP_S390_TE): Likewise.
1820         (S390_TDB_DWORD0_REGNUM): Likewise.
1821         (S390_TDB_DWORD0_REGNUM): Likewise.
1822         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1823         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1824         (S390_TDB_ATIA_REGNUM): Likewise.
1825         (S390_TDB_R0_REGNUM): Likewise.
1826         (S390_TDB_R1_REGNUM): Likewise.
1827         (S390_TDB_R2_REGNUM): Likewise.
1828         (S390_TDB_R3_REGNUM): Likewise.
1829         (S390_TDB_R4_REGNUM): Likewise.
1830         (S390_TDB_R5_REGNUM): Likewise.
1831         (S390_TDB_R6_REGNUM): Likewise.
1832         (S390_TDB_R7_REGNUM): Likewise.
1833         (S390_TDB_R8_REGNUM): Likewise.
1834         (S390_TDB_R9_REGNUM): Likewise.
1835         (S390_TDB_R10_REGNUM): Likewise.
1836         (S390_TDB_R11_REGNUM): Likewise.
1837         (S390_TDB_R12_REGNUM): Likewise.
1838         (S390_TDB_R13_REGNUM): Likewise.
1839         (S390_TDB_R14_REGNUM): Likewise.
1840         (S390_TDB_R15_REGNUM): Likewise.
1841         (S390_NUM_REGS): Increase.
1842         (S390_IS_TDBREGSET_REGNUM): New macro.
1843         (s390_regmap_tdb): Declare.
1844         (s390_sizeof_tdbregset): Define.
1845         (tdesc_s390_te_linux64): Declare.
1846         (tdesc_s390x_te_linux64): Likewise.
1847         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1848         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1849         (s390_regmap_tdb): New regmap.
1850         (s390_supply_tdb_regset): New function.
1851         (s390_tdb_regset): New regset.
1852         (s390_linux64v2_regset_sections): Add TDB regset to list.
1853         (s390x_linux64v2_regset_sections): Likewise.
1854         (s390_regset_from_core_section): Recognize TDB core note section.
1855         (s390_core_read_description): If HWCAP indicates TE support,
1856         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1857         (s390_gdbarch_init): Handle TDB regset.
1858         (_initialize_s390_tdep): Initialize new tdescs.
1859         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1860         (have_regset_tdb): New variable.
1861         (s390_native_supply): Support register invalidation.
1862         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1863         (check_regset): Treat ENODATA as "regset exists".
1864         (s390_linux_fetch_inferior_registers): Add TDB.
1865         (s390_read_description): Check for TDB existence and select
1866         appropriate tdesc.
1867         * gdbserver/Makefile.in (clean): Add removal of new makefile
1868         targets.
1869         (s390-te-linux64.c): New makefile target.
1870         (s390x-te-linux64.c): Likewise.
1871         * gdbserver/configure.srv (srv_regobj): Append new objects
1872         s390-te-linux64.o and s390x-te-linux64.o.
1873         (srv_xmlfiles): Append new files s390-te-linux64.xml,
1874         s390x-te-linux64.xml, and s390-tdb.xml.
1875         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1876         declaration.
1877         (tdesc_s390_te_linux64): Likewise.
1878         (init_registers_s390x_te_linux64): Likewise.
1879         (tdesc_s390x_te_linux64): Likewise.
1880         (s390_check_regset): Treat ENODATA as "regset exists".
1881         (s390_arch_setup): Add TDB regset support.
1882         (initialize_low_arch): Initialize registers for new tdescs.
1883
1884 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1885
1886         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1887         (S390_IS_FPREGSET_REGNUM): New macro.
1888         * s390-tdep.c (s390_dwarf_regmap): Make const.
1889         (regnum_is_gpr_full): New function for replacing repeated code.
1890         (s390_pseudo_register_name): Use it.
1891         (s390_pseudo_register_type): Likewise.
1892         (s390_pseudo_register_read): Likewise.
1893         (s390_pseudo_register_write): Likewise.
1894         (s390_unwind_pseudo_register): Likewise.
1895         (s390_regmap_gregset): New format for regmap.
1896         (s390x_regmap_gregset): Likewise.
1897         (s390_regmap_fpregset): Likewise.
1898         (s390_regmap_upper): Likewise.
1899         (s390_regmap_last_break): Likewise.
1900         (s390_regmap_system_call): Likewise.
1901         (s390_supply_regset): Adjust to new regmap format.
1902         (s390_collect_regset): Likewise.
1903         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1904         (s390_native_collect): Likewise.
1905         (supply_gregset): Likewise.
1906         (fill_gregset): Likewise.
1907         (supply_fpregset): Likewise.
1908         (fill_fpregset): Likewise.
1909         (fetch_regset): Likewise.
1910         (store_regset): Likewise.
1911         (s390_linux_fetch_inferior_registers): Likewise.
1912         (s390_linux_fetch_inferior_registers): Likewise.
1913
1914 2013-09-12  Andrew Pinski  <apinski@cavium.com>
1915
1916         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1917
1918 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1919
1920         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1921
1922 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
1923
1924         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1925
1926 2013-09-06  Pedro Alves <palves@redhat.com>
1927
1928         * remote-sim.c (dump_mem, gdbsim_fetch_register)
1929         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1930         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1931         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1932         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1933         gdb_stdlog.
1934
1935 2013-09-06  Pedro Alves  <palves@redhat.com>
1936
1937         * remote-sim.c (dump_mem): Constify buf parameter.
1938         gdbsim_xfer_inferior_memory): Rename to ...
1939         (gdbsim_xfer_memory): ... this.  Adjust interface as
1940         target_xfer_partial helper.
1941         (gdbsim_xfer_partial): New function.
1942         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1943         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
1944
1945 2013-09-06  Pedro Alves  <palves@redhat.com>
1946
1947         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1948         host_address_to_string, and send debug output to gdb_stdlog.
1949
1950 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1951
1952         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1953         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1954         gdb_target_obs for cris target.
1955         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1956         (cris_gdbarch_init): Move calls to
1957         set_gdbarch_fetch_tls_load_module_address and
1958         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1959         Add call to gdbarch_init_osabi.
1960         * cris-linux-tdep.c: New file.
1961         * cris-tdep.h: New file.
1962
1963 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1964
1965         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1966         to deprecated_init_ui_hook.
1967
1968 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1969
1970         * cli/cli-interp.c (_initialize_cli_interp): Add a
1971         command_loop_proc to interp_procs.
1972         * event-top.c (cli_command_loop): Change signature to match
1973         interp_command_loop_ftype.
1974         * event-top.h (cli_command_loop): Same.
1975         * interps.c (interp_new): Require every interpreter to have a
1976         command_loop_proc.
1977         (current_interp_command_loop): Just call the command_loop_proc on
1978         the current interpreter.
1979         * tui/tui-interp.c (_initialize_tui_interp): Add a
1980         command_loop_proc to interp_procs.
1981
1982 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1983
1984         * cris-tdep.c (cris_gdbarch_init): Add call to
1985         get_gdbarch_fetch_tls_load_module_address.
1986
1987 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1988
1989         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1990         (cris_elf_gregset_t): Rename from elf_gregset_t.
1991         (crisv32_elf_gregset_t): Adjust.
1992         (cris_supply_gregset, fetch_core_registers): Adjust.
1993
1994 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1995
1996         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1997
1998 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
1999
2000         * defs.h (deprecated_command_loop_hook): Remove, including
2001         references in comments.
2002         * interps.c (current_interp_command_loop): No longer use
2003         deprecated_command_loop_hook.
2004         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2005         setup.
2006         * top.c (deprecated_command_loop_hook): Remove.
2007
2008 2013-09-05  Pedro Alves  <palves@redhat.com>
2009
2010         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2011         local is now int instead of ULONGEST.  Print it with %d
2012         instead of paddress.
2013
2014 2013-09-05  Tristan Gingold  <gingold@adacore.com>
2015
2016         * MAINTAINERS: Remove avr maintainership.
2017
2018 2013-09-05  Pedro Alves  <palves@redhat.com>
2019
2020         * findvar.c (value_of_register): Rework in terms of
2021         value_of_register_lazy.
2022
2023 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
2024
2025         * symfile.c (add_symbol_file_command): Remove trailing
2026          whitespaces and blank line after comment.
2027
2028 2013-09-05  Pedro Alves  <palves@redhat.com>
2029
2030         * tui/tui-regs.c (tui_register_format): Don't look at the
2031         register's name here.  Return string representing register
2032         value instead of storing it in the data element.
2033         (tui_get_register): Compare register string representations
2034         instead of register value states and contents.
2035
2036 2013-09-05  Pedro Alves  <palves@redhat.com>
2037
2038         PR tui/15933
2039         * tui/tui-regs.c (tui_show_registers): Show registers of the
2040         selected frame, not the current frame.
2041
2042 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
2043
2044         * MAINTAINERS (Write After Approval): Add myself to the list.
2045
2046 2013-09-04  Doug Evans  <dje@google.com>
2047
2048         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2049         (queue_and_load_dwo_tu): New function.
2050         (lookup_dwo_signatured_type): Set per_cu.tu_read.
2051         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2052         Make dependent_cu optional.
2053         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2054         and an older .gdb_index is in use, queue and load all its TUs too.
2055
2056 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2057
2058         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2059         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2060         variable search_flags.
2061         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2062         (OPF_RETURN_REALPATH): ... here.
2063         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2064         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2065         call.  Twice.
2066         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2067         openp call.
2068         * solib.c (solib_find): Likewise.  Four times.
2069         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2070         in the function comment and for the realpath_fptr variable.
2071         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2072         (find_and_open_source): Likewise.  Twice.
2073         * symfile.c (symfile_bfd_open): Likewise, also twice.
2074
2075 2013-09-04  Doug Evans  <dje@google.com>
2076
2077         * progspace.c (save_current_space_and_thread): Remove unnecessary
2078         call to save_current_inferior.
2079
2080 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
2081
2082         * sh64-tdep.c (sh64_do_register): Return after printing message
2083         about unavailable register contents.
2084
2085 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
2086             Pedro Alves  <palves@redhat.com>
2087
2088         * symfile.c (add_symbol_file_command): Error out on unknown
2089         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2090         options and collapse into single conditional branch.
2091
2092 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
2093
2094         * inf-child.c (inf_child_follow_fork): New parameter
2095         detach_fork.
2096         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2097         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2098         * inferior.h (detach_fork): Remove.
2099         * infrun.c (detach_fork): Adjust comment and make it
2100         static.
2101         (follow_fork): Pass detach_fork parameter to
2102         target_follow_fork.
2103         * linux-nat.c (linux_child_follow_fork): New parameter
2104         detach_fork.
2105         * target.c (target_follow_fork): New parameter detach_fork.
2106         Pass detach_fork as parameter and print its value.
2107         * target.h (struct target_ops) <to_follow_fork>: New int
2108         parameter.
2109         (target_follow_fork): New parameter detach_fork.
2110
2111 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
2112
2113         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2114         Replace sec->bfd by sec->the_bfd_section->owner.
2115
2116 2013-09-03  Yao Qi  <yao@codesourcery.com>
2117
2118         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
2119         from linux_has_shared_address_space.
2120         (linux_has_shared_address_space): Call linux_is_uclinux.
2121         * linux-tdep.h (linux_is_uclinux): Declare.
2122         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2123         linux_is_uclinux.
2124
2125 2013-09-03  Yao Qi  <yao@codesourcery.com>
2126
2127         * config/djgpp/fnchange.lst: Remove entry of
2128         i386-interix-nat.c and i386-interix-tdep.c.
2129         * configure.ac: Remove '*-*-interix*'.
2130         * configure: Re-generated.
2131         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2132         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2133         obsolete comments.
2134         * osabi.c (gdb_osabi_names): Remove "Interix".
2135
2136 2013-09-03  Yao Qi  <yao@codesourcery.com>
2137
2138         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2139
2140 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
2141
2142         * record.h (record_print_flag) <record_print_src_line,
2143         record_print_insn_range>: Rename into ...
2144         (record_print_flag) <record_print_src_line,
2145         record_print_insn_range>: ... this.  Update all users.
2146
2147 2013-09-02  Pierre Muller  <muller@sourceware.org>
2148
2149         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2150         error code.
2151
2152 2013-09-02  Pierre Muller  <muller@sourceware.org>
2153
2154         * windows-nat.c (windows_xfer_memory): Fix compilation failure
2155         by use of plongest function.
2156
2157 2013-09-02  Tristan Gingold  <gingold@adacore.com>
2158
2159         * NEWS: Add entry mentioning support for native Windows x64
2160         SEH data.
2161
2162         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2163         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2164         (struct amd64_windows_frame_cache): New struct.
2165         (amd64_windows_w2gdb_regnum): New global.
2166         (pc_in_range, amd64_windows_frame_decode_epilogue)
2167         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2168         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2169         (amd64_windows_frame_this_id): New functions.
2170         (amd64_windows_frame_unwind): New static global.
2171         (amd64_windows_skip_prologue): New function.
2172         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2173         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2174         with amd64_windows_skip_prologue.
2175
2176 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
2177
2178         GDB 7.6.1 released.
2179
2180 2013-08-30  Pedro Alves  <palves@redhat.com>
2181
2182         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2183         SRC_AND_LOC.
2184
2185 2013-08-30  Pedro Alves  <palves@redhat.com>
2186
2187         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2188         warning text.
2189
2190 2013-08-30  Pedro Alves  <palves@redhat.com>
2191
2192         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2193         Adjust arguments to print_stack_frame.
2194
2195 2013-08-30  Pedro Alves  <palves@redhat.com>
2196
2197         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2198
2199 2013-08-30  Pedro Alves  <palves@redhat.com>
2200
2201         * frame.h (show_and_print_stack_frame): Delete declaration.
2202
2203 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
2204
2205         PR python/15461
2206         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2207         (archpy_name): Check for valid architecture.
2208         (archpy_disassemble): Ditto.
2209
2210 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
2211
2212         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2213         instead of "long long" in call to ptrace64.
2214
2215 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
2216
2217         * mi/mi-interp.c (mi_command_loop): Change signature to match
2218         interp_command_loop_ftype.
2219         (mi1_command_loop): Remove.
2220         (mi2_command_loop): Remove.
2221         (mi3_command_loop): Remove.
2222         (mi_interpreter_resume): Remove setting of
2223         deprecated_command_loop_hook.
2224         (_initialize_mi_interp): Set mi_command_loop as the command loop
2225         callback.
2226
2227 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2228
2229         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2230         value_type.
2231
2232 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2233
2234         * value.c (allocate_value_contents): Make static.
2235         * value.h (allocate_value_contents): Remove prototype.
2236
2237 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2238
2239         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2240         of assembling value via allocate_value_lazy and attribute setter.
2241         * findvar.c (default_read_var_value): Use value_at_lazy instead of
2242         assembling value via allocate_value_lazy and attribute setter.
2243         * valops.c (do_search_struct_field): Use value_at_lazy instead of
2244         assembling value via allocate_value_lazy and attribute setter.
2245
2246 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2247
2248         * value.c (value_from_contents_and_address): Replace allocate_value and
2249         memcpy with value_from_contents.
2250
2251 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2252
2253         * python/py-framefilter.c (py_print_frame): Remove usage of
2254         PyString_AsString.  Use python_string_to_host_string instead.
2255         Refactor function to work with a string as a new allocation
2256         instead of a pointer.
2257         (py_print_frame): Ditto.
2258         * python/lib/gdb/frames.py (return_list): Cain iterators together
2259         instead of adding them as a list.
2260         (_sort_list): Call return_list, and remove duplicate code.
2261         (execute_frame_filters): Convert iterator to a list with list().
2262         * python/lib/gdb/command/frame_filters.py
2263         (SetFrameFilterPriority._set_filter_priority): Convert priority
2264         attribute to an integer.
2265         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2266         wrapper function __next__.
2267         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2268         define as "str".
2269
2270 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2271
2272         PR python/15752
2273         * python/py-framefilter.c (apply_frame_filter): Check
2274         gdb_python_initialized.  Exit if the Python frame-filter code
2275         cannot be initialized.
2276
2277 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2278
2279         PR cli/15842
2280         * top.c (print_gdb_version): Remove erroneous newline after help
2281         text.
2282
2283 2013-08-29  Yao Qi  <yao@codesourcery.com>
2284
2285         * varobj.c (install_dynamic_child): Remove trailing space.
2286         Add one blank line after variable declaration.
2287
2288 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2289
2290         PR gdb/15415
2291         * corefile.c (get_exec_file): Use exec_filename.
2292         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
2293         * exec.c (exec_close): Free EXEC_FILENAME.
2294         (exec_file_attach): New variable canonical_pathname.  Use
2295         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
2296         EXEC_FILENAME.
2297         * exec.h (exec_filename): New.
2298         * inferior.c (print_inferior, inferior_command): Use
2299         PSPACE_EXEC_FILENAME.
2300         * mi/mi-main.c (print_one_inferior): Likewise.
2301         * progspace.c (clone_program_space, print_program_space): Likewise.
2302         * progspace.h (struct program_space): New field pspace_exec_filename.
2303         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
2304         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2305
2306 2013-08-28  Will Newton  <will.newton@linaro.org>
2307
2308         * common/linux-ptrace.c: Include stdint.h unconditionally.
2309
2310 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2311
2312         Code cleanup.
2313         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2314
2315 2013-08-28  Yao Qi  <yao@codesourcery.com>
2316             Pedro Alves  <palves@redhat.com>
2317
2318         * event-top.c (gdb_setup_readline): Call stderr_fileopen
2319         instead of stdio_fileopen.
2320         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2321         .Call stderr_fileopen instead of stdio_fileopen.
2322         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2323         [__MINGW32__] (stderr_file_fputs): New function.
2324         (stderr_fileopen): New function.
2325         * ui-file.h (stderr_fileopen): Declare.
2326
2327 2013-08-27  Doug Evans  <dje@google.com>
2328
2329         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2330         (struct dwarf2_per_cu_data): Ditto.
2331         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
2332         (process_imported_unit_die): Ditto.
2333         (follow_die_sig_1): Simplify assert.
2334
2335 2013-08-27  Pedro Alves  <palves@redhat.com>
2336
2337         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2338         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
2339         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2340         windows_xfer_memory directly.
2341         (init_windows_ops): Don't install a deprecated_xfer_memory method.
2342
2343 2013-08-27  Pedro Alves  <palves@redhat.com>
2344
2345         * darwin-nat.c (darwin_xfer_memory): Delete.
2346         (_initialize_darwin_inferior): Don't install a
2347         deprecated_xfer_memory method.
2348
2349 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
2350             Yao Qi  <yao@codesourcery.com>
2351
2352         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2353         (parse_no_frames_option): Remove.
2354         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2355         (mi_cmd_stack_list_args): Adjust.
2356         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2357         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
2358         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2359         Caller update.
2360         (list_args_or_locals): New parameter 'skip_unavailable'.
2361         Handle it.
2362         * valprint.c (scalar_type_p): Rename to ...
2363         (val_print_scalar_type_p): ... this.  Make extern.
2364         (val_print, value_check_printable): Adjust.
2365         * valprint.h (val_print_scalar_type_p): Declare.
2366         * value.c (value_entirely_unavailable): New function.
2367         * value.h (value_entirely_unavailable): Declare.
2368
2369         * NEWS: Mention the new option "--skip-unavailable" to MI
2370         commands '-stack-list-locals', '-stack-list-arguments' and
2371         '-stack-list-variables'.
2372
2373 2013-08-27  Yao Qi  <yao@codesourcery.com>
2374
2375         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2376         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2377         options.
2378         * mi/mi-getopt.c (mi_getopt): Remove.
2379         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
2380         'error_on_unknown'.
2381         (mi_getopt): Call mi_getopt_1.
2382         (mi_getopt_silent): New.
2383         * mi/mi-getopt.h (mi_getopt_silent): Declare.
2384
2385 2013-08-26  Doug Evans  <dje@google.com>
2386
2387         PR symtab/15885
2388         * dwarf2read.c (dw2_dump): Print some minimal information indicating
2389         .gdb_index is in use.
2390         * symfile.c (reread_symbols): Reset objfile->sf.
2391
2392         * NEWS: Document "mt print objfiles" now takes optional regexp.
2393         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2394         regexp of objfiles to print.
2395         (_initialize_symmisc): Update doc string for "mt print objfiles".
2396
2397         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2398         missing debug info checks.
2399
2400 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
2401             Ulrich Weigand  <uweigand@de.ibm.com>
2402
2403         * xcoffread.c (arrange_linetable): Add fix to correctly handle
2404         line tables generated by XLC compiled binaries.
2405
2406 2013-08-23  Doug Evans  <dje@google.com>
2407
2408         * symmisc.c (dump_symtab): Delete prototype.
2409         (dump_msymbols, dump_objfile): Ditto.
2410         (maintenance_info_symtabs): Mark as dont_repeat.
2411         (_initialize_symmisc): Improve doc string for "mt info symtabs".
2412
2413         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2414         debugging printf to better location.
2415
2416 2013-08-23  Pedro Alves  <palves@redhat.com>
2417
2418         * target.c (target_read_live_memory): Change type of 'ret' local
2419         to LONGEST.
2420
2421 2013-08-23  Pedro Alves  <palves@redhat.com>
2422
2423         * remote.c (remote_write_bytes_aux, remote_write_bytes)
2424         (remote_read_bytes): Change return type to LONGEST, and adjust to
2425         return a target_xfer_error on error.
2426         (remote_xfer_memory): Delete.
2427         (remote_flash_write): Change type of 'ret' local to LONGEST.
2428         (remote_xfer_partial, remote_xfer_partial): Adjust.
2429         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2430
2431 2013-08-23  Pierre Muller  <muller@sourceware.org>
2432
2433         ARI fix: Push # directives to start of line.
2434         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2435
2436 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
2437
2438         PR gdb/15501
2439         * breakpoint.c (enable_command, disable_command): Iterate over
2440         all specified breakpoint locations.
2441
2442 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2443
2444         * common/linux-ptrace.c (linux_fork_to_function): Push #
2445         directives to the start of the line.
2446         (linux_check_ptrace_features): Fix warning message to use
2447         the "_" markup.
2448
2449 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2450
2451         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2452         nat/linux-waitpid.h.
2453         (linux-waitpid.o): New object file rule.
2454         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2455         (current_ptrace_options): Moved from linux-nat.c.
2456         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2457         parameters.
2458         (linux_fork_to_function): New function.
2459         (linux_grandchild_function): Likewise.
2460         (linux_child_function): Likewise.
2461         (linux_check_ptrace_features): New function, heavily
2462         based on linux-nat.c:linux_test_for_tracefork.
2463         (linux_enable_event_reporting): New function.
2464         (ptrace_supports_feature): Likewise.
2465         (linux_supports_tracefork): Likewise.
2466         (linux_supports_traceclone): Likewise.
2467         (linux_supports_tracevforkdone): Likewise.
2468         (linux_supports_tracesysgood): Likewise.
2469         * common/linux-ptrace.h (HAS_NOMMU): Moved from
2470         gdbserver/linux-low.c.
2471         (linux_enable_event_reporting): New declaration.
2472         (linux_supports_tracefork): Likewise.
2473         (linux_supports_traceclone): Likewise.
2474         (linux_supports_tracevforkdone): Likewise.
2475         (linux_supports_tracesysgood): Likewise.
2476         * config.in (PTRACE_TYPE_ARG4): Regenerate.
2477         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2478         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2479         * config/arm/linux.mh (NATDEPFILES): Likewise.
2480         * config/i386/linux.mh (NATDEPFILES): Likewise.
2481         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2482         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2483         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2484         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2485         * config/mips/linux.mh (NATDEPFILES): Likewise.
2486         * config/pa/linux.mh (NATDEPFILES): Likewise..
2487         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2488         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2489         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2490         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2491         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2492         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2493         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2494         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2495         ptrace's 4th argument's types.
2496         Check the type of PTRACE_TYPE_ARG4.
2497         * configure: Regenerate.
2498         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2499         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2500         (linux_supports_tracefork_flag): Remove.
2501         (linux_supports_tracesysgood_flag): Likewise.
2502         (linux_supports_tracevforkdone_flag): Likewise.
2503         (current_ptrace_options): Moved to
2504         common/linux-ptrace.c.
2505         (linux_tracefork_child): Remove.
2506         (my_waitpid): Remove.
2507         (linux_test_for_tracefork): Renamed to
2508         linux_check_ptrace_features and moved to common/linux-ptrace.c.
2509         (linux_test_for_tracesysgood): Remove.
2510         (linux_supports_tracesysgood): Remove.
2511         (linux_supports_tracefork): Remove.
2512         (linux_supports_tracevforkdone): Remove.
2513         (linux_enable_tracesysgood): Remove.
2514         (linux_enable_event_reporting): Remove.
2515         (linux_init_ptrace): New function.
2516         (linux_child_post_attach): Call linux_init_ptrace.
2517         (linux_child_post_startup_inferior): Call linux_init_ptrace.
2518         (linux_child_follow_fork): Call linux_supports_tracefork
2519         and linux_supports_tracevforkdone.
2520         (linux_child_insert_fork_catchpoint): Call
2521         linux_supports_tracefork.
2522         (linux_child_insert_vfork_catchpoint): Likewise.
2523         (linux_child_set_syscall_catchpoint): Call
2524         linux_supports_tracesysgood.
2525         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2526         * nat/linux-nat.h: New file.
2527         * nat/linux-waitpid.c: New file.
2528         * nat/linux-waitpid.h: New file.
2529
2530 2013-08-22  Samuel Bronson  <naesten@gmail.com>
2531
2532         ARM Linux support for `catch syscall'.
2533         * syscalls/arm-linux.py: New file.
2534         * syscalls/arm-linux.xml: Likewise.
2535         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2536         (arm_linux_init_abi): Register the new function and syscall xml file.
2537         * data-directory/Makefile.in: Install the new syscall xml file.
2538         * NEWS: Brag about this.
2539
2540 2013-08-22  Pedro Alves  <palves@redhat.com>
2541
2542         PR gdb/15871
2543         * corefile.c (target_xfer_memory_error): New function.
2544         (memory_error): Defer EIO to target_memory_error.
2545         (read_memory): Use target_xfer_partial, and handle finer-grained
2546         target xfer errors.
2547         * target.c (target_xfer_error_to_string): New function.
2548         (memory_xfer_partial_1): If memory is known to be
2549         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2550         (target_xfer_partial): Make extern.
2551         * target.h (enum target_xfer_error): New enum.
2552         (target_xfer_error_to_string): Declare function.
2553         (target_xfer_partial): Declare function.
2554         (struct target_ops) <xfer_partial>: Adjust describing comment.
2555
2556 2013-08-22  Alan Modra  <amodra@gmail.com>
2557
2558         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2559         * configure.tgt: Likewise as targets.
2560
2561 2013-08-20  Doug Evans  <dje@google.com>
2562
2563         * buildsym.c (subfile_stack): Move here from buildsym.h.
2564         (pending_macros): Ditto.
2565         (get_macro_table): New function.
2566         (buildsym_init): Initialize subfile_stack.
2567         * coffread.c (type_vector,type_vector_length): Moved here from
2568         buildsym.h.
2569         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2570         (coff_symtab_read): Use it.
2571         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2572         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2573         with call to get_macro_table.
2574         * stabsread.c (type_vector,type_vector_length): Moved here from
2575         buildsym.h.
2576         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2577         * buildsym.h (get_macro_table): Declare.
2578
2579 2013-08-20  Tom Tromey  <tromey@redhat.com>
2580
2581         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2582         Update.
2583         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
2584
2585 2013-08-20  Doug Evans  <dje@google.com>
2586
2587         * blockframe.c: Remove #include "psymtab.h".
2588         * cp-support.c: Ditto.
2589         * source.c: Ditto.
2590         * stack.c: Ditto.
2591
2592 2013-08-20  Tom Tromey  <tromey@redhat.com>
2593
2594         PR python/15816:
2595         * exceptions.h (return_mask): Now an enum.
2596         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2597         enum constants.
2598
2599 2013-08-20  Tom Tromey  <tromey@redhat.com>
2600
2601         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2602         get_objfile_arch.
2603         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2604         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2605         * jit.c (jit_object_close_impl): Update.
2606         * jv-lang.c (get_dynamics_objfile): Update.
2607         * linespec.c (add_minsym): Use get_dynamics_objfile.
2608         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2609         (allocate_objfile): Don't initialize 'gdbarch' field.
2610         (get_objfile_arch): Update.
2611         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2612         moved from...
2613         (struct objfile) <gdbarch>: ... here.  Remove.
2614         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2615         get_objfile_arch.
2616         * symfile.c (init_entry_point_info): Use get_objfile_arch.
2617
2618 2013-08-20  Alan Modra  <amodra@gmail.com>
2619
2620         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2621         for IBM long double nan and inf.
2622         (floatformat_is_negative, floatformat_classify,
2623         floatformat_mantissa): Similarly.
2624         (floatformat_ieee_single, floatformat_ieee_double,
2625         floatformat_ieee_quad, floatformat_arm_ext,
2626         floatformat_ia64_spill): Delete unused vars.
2627         (_initialize_doublest): Delete unused function.
2628         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2629         little-endian variants of floatformat_ibm_long_double.
2630
2631 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
2632
2633         * Makefile.in (SFILES): Remove common/target-common.c and
2634         add target/waitstatus.c.
2635         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2636         target/resume.h, target/wait.h and target/waitstatus.h.
2637         (COMMON_OBS): Remove target-common.o and add
2638         waitstatus.o.
2639         (target-common.o): Remove.
2640         (waitstatus.o): New target object file.
2641         * common/target-common.c: Move contents to
2642         target/waitstatus.c and remove.
2643         * common/target-common.h: Move contents to other files and
2644         remove.
2645         (enum resume_kind: Move to target/resume.h.
2646         (TARGET_WNOHANG): Move to target/wait.h.
2647         (enum target_waitkind): Move to target/waitstatus.h.
2648         (struct target_waitstatus): Likewise.
2649         * target.h: Do not include target-common.h and
2650         include target/resume.h, target/wait.h and
2651         target/waitstatus.h.
2652         * target/resume.h: New file.
2653         * target/wait.h: New file.
2654         * target/waitstatus.h: New file.
2655         * target/waitstatus.c: New file.
2656
2657 2013-08-19  Pedro Alves  <palves@redhat.com>
2658
2659         * linux-nat.c (linux_test_for_tracefork)
2660         (linux_test_for_tracesysgood, linux_child_follow_fork)
2661         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2662         (linux_nat_wait_1): Extend comment.
2663         (linux_async_pipe): Add comment.
2664
2665 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
2666
2667         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2668         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2669         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2670         Update to account for fact that PC is now a pseudo-register.
2671         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
2672         cases for RL78_PC_REGNUM.
2673
2674 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
2675
2676         PR cli/15841
2677         * top.c (quit_force): Skip writing history file
2678         if input is not from terminal.
2679
2680 2013-08-14  Tom Tromey  <tromey@redhat.com>
2681
2682         * remote.c (struct remote_state) <echo_nextthread, nextthread,
2683         resultthreadlist>: New fields.
2684         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2685         (remote_get_threadlist, remote_threadlist_iterator): Use
2686         new fields.  Remove static variables.
2687
2688 2013-08-14  Tom Tromey  <tromey@redhat.com>
2689
2690         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2691         remote_watch_data_address>: New fields.
2692         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2693         (process_stop_reply, remote_wait_as)
2694         (remote_check_watch_resources, remote_stopped_data_address): Update.
2695
2696 2013-08-14  Tom Tromey  <tromey@redhat.com>
2697
2698         * remote.c (struct remote_state) <async_client_callback,
2699         async_client_context>: New fields.
2700         (async_client_callback, async_client_context): Remove.
2701         (remote_async_serial_handler, remote_async): Update.
2702
2703 2013-08-14  Tom Tromey  <tromey@redhat.com>
2704
2705         * remote.c (sizeof_pkt): Remove.
2706         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2707
2708 2013-08-14  Tom Tromey  <tromey@redhat.com>
2709
2710         * remote.c (struct remote_state) <use_threadinfo_query,
2711         use_threadextra_query>: New fields.
2712         (remote_threads_info, remote_threads_extra_info)
2713         (remote_open_1): Update.
2714
2715 2013-08-14  Tom Tromey  <tromey@redhat.com>
2716
2717         * remote.c (struct remote_state) <finished_object,
2718         finished_annex, finished_offset>: New fields.
2719         (remote_read_qxfer): Use remote_state fields; remove static
2720         variables.
2721
2722 2013-08-14  Tom Tromey  <tromey@redhat.com>
2723
2724         * remote.c (struct remote_state) <last_sent_step>:
2725         New field.
2726         (last_sent_step): Remove.
2727         (remote_resume, remote_wait_as): Update.
2728
2729 2013-08-14  Tom Tromey  <tromey@redhat.com>
2730
2731         * remote.c (struct remote_state) <last_sent_signal>:
2732         New field.
2733         (last_sent_signal): Remove.
2734         (new_remote_state, remote_resume, remote_wait_as): Update.
2735
2736 2013-08-14  Tom Tromey  <tromey@redhat.com>
2737
2738         * remote.c (struct remote_state) <last_program_signals_packet>:
2739         New field.
2740         (last_program_signals_packet): Remove.
2741         (remote_program_signals, remote_open_1): Update.
2742
2743 2013-08-14  Tom Tromey  <tromey@redhat.com>
2744
2745         * remote.c (struct remote_state) <last_pass_packet>:
2746         New field.
2747         (last_pass_packet): Remove.
2748         (remote_pass_signals, remote_open_1): Update.
2749
2750 2013-08-14  Tom Tromey  <tromey@redhat.com>
2751
2752         * remote.c (struct remote_state) <remote_traceframe_number>:
2753         New field.
2754         (remote_traceframe_number): Remove.
2755         (new_remote_state, remote_open_1, set_remote_traceframe)
2756         (remote_trace_find): Update.
2757
2758 2013-08-14  Tom Tromey  <tromey@redhat.com>
2759
2760         * remote.c (struct remote_state) <general_thread, continue_thread>:
2761         New fields.
2762         (general_thread, continue_thread): Remove.
2763         (record_currthread, set_thread, set_general_process)
2764         (remote_open_1, extended_remote_attach_1, remote_wait_as)
2765         (extended_remote_mourn_1): Update.
2766
2767 2013-08-14  Tom Tromey  <tromey@redhat.com>
2768
2769         * remote.c (struct remote_state) <remote_desc>: New field.
2770         (remote_desc): Remove.
2771         (remote_threads_info, remote_threads_extra_info, remote_close)
2772         (send_interrupt_sequence, remote_start_remote, remote_open_1)
2773         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2774         (remote_hostio_send_command, remote_file_put, remote_file_get)
2775         (remote_file_delete, remote_can_async_p, remote_is_async_p)
2776         (remote_async, remote_new_objfile, set_range_stepping): Update.
2777
2778 2013-08-14  Tom Tromey  <tromey@redhat.com>
2779
2780         * remote.c (remote_state): Now a pointer.
2781         (get_remote_state_raw): Update.
2782         (new_remote_state): New function.
2783         (_initialize_remote): Use new_remote_state.
2784
2785 2013-08-14  Tom Tromey  <tromey@redhat.com>
2786
2787         * remote.c (remote_protocol_features): Now const.
2788
2789 2013-08-14  Tom Tromey  <tromey@redhat.com>
2790
2791         * remote.c (crc32_table, crc32): Remove.
2792         (remote_verify_memory): Use xcrc32.
2793
2794 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
2795
2796         * value.h (create_internalvar_type_lazy): Adjust prototype
2797         declaration.
2798
2799 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
2800
2801         * common/format.c (parse_format_string): Don't allow '#' flag for
2802         pointer arguments in format string.
2803
2804 2013-08-13  Pierre Muller  <muller@sourceware.org>
2805
2806         * utils.c (init_page_info): Only call tgetnum function
2807         if rl_get_screen_size did not return useful values.
2808
2809 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
2810
2811         PR breakpoints/15117
2812         * linespec.c (linespec_parse_basic): Check for convenience
2813         variable or history value while parsing.
2814
2815 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2816
2817         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2818         AVR.
2819         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
2820         different signals between the generic Linux kernel implementation
2821         and AVR's.
2822         (avr_linux_gdb_signal_from_target): Delete.
2823         (avr_linux_gdb_signal_to_target): Delete.
2824         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2825
2826 2013-08-09  Doug Evans  <dje@google.com>
2827
2828         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2829         entries.
2830
2831 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2832
2833         * linux-tdep.c: Define enum with generic signal numbers.
2834         (linux_gdb_signal_from_target): New function.
2835         (linux_gdb_signal_to_target): Likewise.
2836         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2837         methods to the functions above.
2838         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2839         (linux_gdb_signal_to_target): Likewise.
2840         * alpha-linux-tdep.c: Define new enum with signals different
2841         from generic Linux kernel.
2842         (alpha_linux_gdb_signal_from_target): New function.
2843         (alpha_linux_gdb_signal_to_target): Likewise.
2844         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2845         with the functions mentioned above.
2846         * avr-tdep.c: Define enum with differences between Linux kernel
2847         and AVR signals.
2848         (avr_linux_gdb_signal_from_target): New function.
2849         (avr_linux_gdb_signal_to_target): Likewise.
2850         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2851         the functions mentioned above.
2852         * sparc-linux-tdep.c: Define enum with differences between SPARC
2853         and generic Linux kernel signal numbers.
2854         (sparc32_linux_gdb_signal_from_target): New function.
2855         (sparc32_linux_gdb_signal_to_target): Likewise.
2856         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2857         to the functions defined above.
2858         * xtensa-linux-tdep.c: Define enum with differences between
2859         Xtensa and Linux kernel generic signals.
2860         (xtensa_linux_gdb_signal_from_target): New function.
2861         (xtensa_linux_gdb_signal_to_target): Likewise.
2862         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2863         to the functions defined above.
2864         * mips-linux-tdep.c: Define enum with differences between
2865         signals in MIPS and Linux kernel generic ones.
2866         (mips_gdb_signal_to_target): New function.
2867         (mips_gdb_signal_from_target): Redefine to use new enum, handle
2868         only different signals from the Linux kernel generic.
2869         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2870         the functions defined above.
2871         * mips-linux-tdep.h (enum mips_signals): Remove.
2872
2873 2013-08-09  Pedro Alves  <palves@redhat.com>
2874
2875         * avr-tdep.c (XMALLOC): Delete macro.
2876         * cli/cli-dump.c (XMALLOC): Delete macro.
2877
2878 2013-08-09  Pedro Alves  <palves@redhat.com>
2879
2880         * cli/cli-dump.c: Don't include cli/cli-dump.h.
2881         (scan_expression_with_cleanup, scan_filename_with_cleanup)
2882         (fopen_with_cleanup, add_dump_command): Make static.
2883         * cli/cli-dump.h: Delete file.
2884         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2885         cli/cli-dump.h.
2886
2887 2013-08-09  Pedro Alves  <palves@redhat.com>
2888
2889         * tracepoint.c (tfile_start): Show tilde-expanded filename in
2890         error message.
2891
2892 2013-08-09  Pedro Alves  <palves@redhat.com>
2893
2894         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2895         error message.
2896
2897 2013-08-09  Pedro Alves  <palves@redhat.com>
2898
2899         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2900         (gcore_command): Use tilde_expand here, and when showing the
2901         filename to the user, show the expanded version.
2902
2903 2013-08-09  Yao Qi  <yao@codesourcery.com>
2904
2905         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2906         'entryval' is set.
2907
2908 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
2909
2910         * gcore.c (create_gcore_bfd): Use tilde_expand.
2911
2912 2013-08-08  Yao Qi  <yao@codesourcery.com>
2913
2914         * frame.h (read_frame_local): Declare.
2915         * mi/mi-cmd-stack.c (list_args_or_locals): Call
2916         read_frame_local.
2917         * stack.c (read_frame_local): New.
2918
2919 2013-08-08  Yao Qi  <yao@codesourcery.com>
2920
2921         * mi/mi-cmd-stack.c: Update comments to function
2922         list_args_or_locals.
2923
2924 2013-08-07  Tom Tromey  <tromey@redhat.com>
2925
2926         PR symtab/15028:
2927         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2928         (process_psymtab_comp_unit_reader): Use it.
2929         (process_psymtab_comp_unit): Update.  Add "pretend_language"
2930         argument.
2931         (dwarf2_build_psymtabs_hard): Update.
2932         (scan_partial_symbols): Pass CU's language to
2933         process_psymtab_comp_unit.
2934
2935 2013-08-07  Tom Tromey  <tromey@redhat.com>
2936
2937         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2938         (dwarf2_gdb_index_functions): Update.
2939         * psymtab.c (find_symbol_file_from_partial): Remove.
2940         (psym_functions): Update.
2941         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2942         Remove.
2943
2944 2013-08-07  Tom Tromey  <tromey@redhat.com>
2945
2946         * symfile.c (set_initial_language): Look up "main" symbol
2947         and use its language.
2948         * symtab.c (find_main_filename): Remove.
2949         * symtab.h (find_main_filename): Remove.
2950
2951 2013-08-07  Tom Tromey  <tromey@redhat.com>
2952
2953         * dwarf2read.c (recursively_compute_inclusions): Add
2954         "immediate_parent" argument.  Set symtab's "user" field
2955         if not set.
2956         (compute_symtab_includes): Update.
2957
2958 2013-08-07  Tom Tromey  <tromey@redhat.com>
2959
2960         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2961         when adding label symbols.
2962
2963 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2964             Ulrich Weigand  <uweigand@de.ibm.com>
2965
2966         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2967         * configure.host (powerpc64-*-aix*): Likewise.
2968
2969 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2970             Ulrich Weigand  <uweigand@de.ibm.com>
2971
2972         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2973         is defined.
2974         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2975         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2976         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2977         * configure.ac: Check for ptrace64.
2978         * configure, config.in: Regenerate.
2979
2980 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2981             Ulrich Weigand  <uweigand@de.ibm.com>
2982
2983         * aixthread.c: Call ptrace64 instead of ptracex if defined.
2984         Call ptrace64 instead of ptrace if defined.
2985         Add macro addr_ptr to take care of ptrace address argument.
2986         (pdc_read_regs): Likewise.
2987         (pdc_write_regs): Likewise.
2988         (aix_thread_resume): Likewise.
2989         (fetch_regs_kernel_thread): Likewise.
2990         (store_regs_kernel_thread): Likewise.
2991
2992 2013-08-07  Anton Blanchard  <anton@samba.org>
2993
2994         * MAINTAINERS: Add myself to Write After Approval.
2995
2996 2013-08-05  Tom Tromey  <tromey@redhat.com>
2997
2998         * aix-thread.c (_initialize_aix_thread): Use
2999         complete_target_initialization.
3000         * bsd-uthread.c (_initialize_bsd_uthread): Use
3001         complete_target_initialization.
3002         * dec-thread.c (_initialize_dec_thread): Use
3003         complete_target_initialization.
3004         * ravenscar-thread.c (_initialize_ravenscar): Use
3005         complete_target_initialization.
3006         * sol-thread.c (_initialize_sol_thread): Use
3007         complete_target_initialization.
3008         * spu-multiarch.c (_initialize_spu_multiarch): Use
3009         complete_target_initialization.
3010
3011 2013-08-05  Tom Tromey  <tromey@redhat.com>
3012
3013         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3014         * ada-lang.c (ada_lookup_simple_minsym): Return
3015         bound_minimal_symbol.
3016         * ada-lang.h (ada_lookup_simple_minsym): Update.
3017         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3018         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3019         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3020         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3021         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3022         * minsyms.c (msymbol_objfile): Remove.
3023         (lookup_minimal_symbol_internal): New function, from
3024         lookup_minimal_symbol.
3025         (lookup_minimal_symbol): Rewrite using
3026         lookup_minimal_symbol_internal.
3027         (lookup_bound_minimal_symbol): New function.
3028         * minsyms.h (msymbol_objfile): Remove.
3029         (lookup_bound_minimal_symbol): Declare.
3030         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3031         * parse.c (write_exp_msymbol): Change parameter to a
3032         bound_minimal_symbol.
3033         (write_dollar_variable): Use lookup_bound_minimal_symbol.
3034         * parser-defs.h (write_exp_msymbol): Update.
3035         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3036         * symfile.c (simple_read_overlay_table): Use
3037         lookup_bound_minimal_symbol.
3038         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3039         (search_symbols): Likewise.
3040         (print_msymbol_info): Take a bound_minimal_symbol argument.
3041         (symtab_symbol_info, rbreak_command): Update.
3042         * symtab.h (struct symbol_search) <msymbol>: Change type
3043         to bound_minimal_symbol.
3044         * valops.c (find_function_in_inferior): Use
3045         lookup_bound_minimal_symbol.
3046         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3047
3048 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3049
3050         Code cleanup.
3051         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3052         to ...
3053         (async_cleanup_sigint_signal_handler): ... this.
3054         (initialize_sigint_signal_handler): Remove declaration.
3055         (handle_remote_sigint): Rename the declaration to ...
3056         (async_handle_remote_sigint): ... this.
3057         (handle_remote_sigint_twice): Rename the declaration to ...
3058         (async_handle_remote_sigint_twice): ... this.
3059         (async_remote_interrupt, async_remote_interrupt_twice)
3060         (remote_interrupt): Remove the declarations.
3061         (remote_interrupt_twice): Rename the declaration ...
3062         (sync_remote_interrupt_twice): ... this.
3063         (sigint_remote_twice_token): Rename the variable to ...
3064         (async_sigint_remote_twice_token): ... this.
3065         (sigint_remote_token): Rename the variable to ...
3066         (async_sigint_remote_token): ... this.
3067         (initialize_sigint_signal_handler): Rename the function to ...
3068         (async_initialize_sigint_signal_handler): ... this.  Update the name
3069         inside.
3070         (handle_remote_sigint): Rename the function to ...
3071         (async_handle_remote_sigint): ... this.  Update the names inside.
3072         (handle_remote_sigint_twice): Rename the function to ...
3073         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
3074         (cleanup_sigint_signal_handler): Rename the function to ...
3075         (async_cleanup_sigint_signal_handler): ... this.
3076         (remote_interrupt): Rename the function to ...
3077         (sync_remote_interrupt): this.  Update the names inside.
3078         (remote_interrupt_twice): Rename the function to ...
3079         (sync_remote_interrupt_twice): this.  Update the names inside.
3080         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3081         (_initialize_remote): Update the names inside.
3082
3083 2013-08-02  Tom Tromey  <tromey@redhat.com>
3084
3085         PR symtab/15719:
3086         * breakpoint.c (update_watchpoint, watchpoint_check)
3087         (watch_command_1): Update.
3088         * eval.c (fetch_subexp_value): Add "preserve_errors"
3089         parameter.
3090         * ppc-linux-nat.c (check_condition): Update.
3091         * value.h (fetch_subexp_value): Update.
3092
3093 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
3094
3095         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3096         add_file_handler.
3097
3098 2013-08-01  Doug Evans  <dje@google.com>
3099
3100         PR symtab/15691
3101         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3102         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3103         Add assert of sig_entry->dwo_unit == NULL.
3104         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3105         had already been read.
3106         (read_signatured_type): Set per_cu.tu_read.
3107
3108         PR symtab/15695
3109         * valops.c (value_struct_elt): Add missing call to check_typedef.
3110         (value_find_oload_method_list): Ditto.
3111
3112         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3113         effectively, struct symbol_search **.
3114         (make_cleanup_free_search_symbols): Change arg to struct
3115         symbol_search **.  All callers updated.
3116         (compare_search_syms): Compare symtab file name and block as well.
3117         (search_symbols_equal): New function.
3118         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3119         New args new_head, new_tail.  Result is now void.  Remove dups after
3120         sorting the symbols.
3121         (search_symbols): Sort all found symbols once, after all have been
3122         found, and remove duplicates.  Simplify cleanup tracking of result.
3123         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3124
3125         Further workarounds for binutils/15021.
3126         * dwarf2read.c (recursively_compute_inclusions): Change type of result
3127         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
3128         Watch for duplicate symtabs coming from type units.
3129         (compute_symtab_includes): Update call to
3130         recursively_compute_inclusions. Build vector of included symtabs
3131         instead of per_cus.
3132         * symtab.h (symtab_ptr): New typedef.
3133         (DEF_VEC_P (symtab_ptr)): New VEC type.
3134         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
3135         instead.
3136
3137 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
3138
3139         * cli/cli-script.c (script_from_file): Remove use of
3140         error_pre_print.
3141         * main.c (captured_main): Remove use of error_pre_print and
3142         quit_pre_print.
3143         * utils.c (error_pre_print, quit_pre_print): Remove.
3144         * utils.h (error_pre_print, quit_pre_print): Likewise.
3145
3146 2013-08-01  Yao Qi  <yao@codesourcery.com>
3147
3148         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3149         with mi_getopt.
3150         (mi_cmd_stack_list_variables): Likewise.
3151
3152 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3153
3154         * exceptions.c (deprecated_throw_reason): Remove.
3155         * exceptions.h (deprecated_throw_reason): Remove.
3156
3157 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3158
3159         * remote-mips.c (mips_error): Replace use of
3160         deprecated_throw_reason with throw_verror.  Use the error message
3161         passed to mips_error as the error message for throw_verror.
3162
3163 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3164
3165         * monitor.c (monitor_interrupt_query): Replace use of
3166         deprecated_throw_reason with quit.
3167         * nto-procfs.c (interrupt_query): Likewise.
3168         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3169         * remote-mips.c (mips_kill): Likewise.
3170         * remote.c (interrupt_query): Likewise.
3171
3172 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3173
3174         * utils.c (internal_verror): Replace use of deprecated_throw_reason
3175         with call to fatal.
3176
3177 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
3178             Yao Qi  <yao@codesourcery.com>
3179
3180         * tracepoint.c (trace_dump_command): Select the current frame.
3181
3182 2013-07-30  Doug Evans  <dje@google.com>
3183
3184         * dwarf2read.c (process_queue): Add type signature to debug output.
3185
3186 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3187
3188         * value.c (value_fetch_lazy): Mark optimized out values as such
3189         rather than raising an error.
3190
3191 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3192
3193         * value.c (value_fetch_lazy): Ensure parent value is not lazy
3194         before checking which bits of the parent, not the child, value are
3195         valid.
3196
3197 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
3198
3199         PR gdb/15715
3200         * top.c: Include "filenames.h".
3201         (set_history_filename): New function.
3202         (init_main): Install it as set hook of the "set history filename"
3203         command.
3204
3205 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3206
3207         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3208         attribute parameter.
3209         (dwarf2_const_value_data): Constify struct attribute parameter.
3210         (dwarf2_const_value): Constify struct attribute parameter.
3211         (dwarf2_const_value_attr): Constify struct attribute parameter.
3212         (lookup_die_type): Constify struct attribute parameter.
3213         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3214         (follow_die_ref_or_sig): Constify struct attribute parameter.
3215         (follow_die_ref): Constify struct attribute parameter.
3216         (follow_die_sig): Constify struct attribute parameter.
3217         (get_DW_AT_signature_type): Constify struct attribute parameter.
3218         (get_type_unit_group): Constify struct attribute parameter.
3219         (fill_in_loclist_baton): Constify struct attribute parameter.
3220         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3221         (type_unit_group): Constify struct attribute parameter.
3222
3223 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3224
3225         * dwarf2read.c (attr_form_is_block): Make argument const.
3226         (attr_form_is_section_offset): Make argument const.
3227         (attr_form_is_constant): Make argument const.
3228         (attr_form_is_ref): Make argument const.
3229
3230 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3231
3232         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3233         All uses updated.
3234         (attr_form_is_ref): Moved below attr_form_is_constant.
3235
3236 2013-07-29  Doug Evans  <dje@google.com>
3237
3238         * main.c (captured_command_loop): Tweak comment.
3239
3240         * target.c (target_async_permitted_1): Fix comment.
3241
3242         * symtab.c (iterate_over_some_symtabs): Add comment.
3243
3244         * symtab.c (iterate_over_some_symtabs): Fix indentation.
3245
3246 2013-07-27  Yao Qi  <yao@codesourcery.com>
3247
3248         * NEWS: Mention that GDBserver now supports hardware
3249         watchpoints on the MIPS GNU/Linux target.
3250
3251 2013-07-27  Yao Qi  <yao@codesourcery.com>
3252
3253         * Makefile.in (HFILES_NO_SRCDIR): Add
3254         common/mips-linux-watch.h.
3255         (mips-linux-watch.o): New rule.
3256         * common/mips-linux-watch.c: New.
3257         * common/mips-linux-watch.h: New.
3258         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3259         * mips-linux-nat.c: Include mips-linux-watch.h.
3260         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3261         to common/mips-linux-watch.h.
3262         (MAX_DEBUG_REGISTER): Likewise.
3263         (enum pt_watch_style): Likewise.
3264         (struct mips32_watch_regs): Likewise.
3265         (struct mips64_watch_regs): Likewise.
3266         (struct pt_watch_regs): Likewise.
3267         (struct mips_watchpoint): Likewise.
3268         (mips_linux_watch_get_irw_mask): Move to
3269         common/mips-linux-watch.c.
3270         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3271         (mips_linux_watch_get_watchlo): Likewise.
3272         (mips_linux_watch_set_watchlo): Likewise.
3273         (mips_linux_watch_get_watchhi): Likewise.
3274         (mips_linux_watch_set_watchhi): Likewise.
3275         (mips_linux_read_watch_registers): Likewise.
3276         (mips_linux_watch_type_to_irw): Likewise.
3277         (mips_linux_stopped_data_address, fill_mask): Likewise.
3278         (mips_linux_watch_try_one_watch): Likewise.
3279         (mips_linux_watch_populate_regs): Likewise.
3280
3281 2013-07-27  Yao Qi  <yao@codesourcery.com>
3282
3283         * mips-linux-nat.c (get_irw_mask): Rename to ...
3284         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
3285         'set' to 'n'.  Update function comment.  All callers changed.
3286         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
3287         function comment.  All callers changed.
3288         (get_num_valid): Rename to ...
3289         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
3290         'set' to 'n'.  Update function comment.  All callers changed.
3291         (get_watchlo): Rename to ...
3292         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
3293         'set' to 'n'.  Update function comment.  All callers changed.
3294         (set_watchlo): Rename to ...
3295         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
3296         'set' to 'n'.  Update function comment.  All callers changed.
3297         (get_watchhi): Rename to ...
3298         (mips_linux_watch_get_watchhi): ... this.  Update function
3299         comment.  All callers changed.
3300         (set_watchhi): Rename to ...
3301         (mips_linux_watch_set_watchhi): ... this.  Update function
3302         comment.  All callers changed.
3303         (mips_linux_read_watch_registers): Update function comment.
3304         Add new parameters 'lwpid', 'watch_readback', and
3305         'watch_readback_valid'.  Update.
3306         (type_to_irw): Rename to ...
3307         (mips_linux_watch_type_to_irw): ... this.  Update function
3308         comment.  All callers changed.
3309         (fill_mask): Update function comment.
3310         (try_one_watch): Rename to ...
3311         (mips_linux_watch_try_one_watch): ... this.  Change the type
3312         of parameter 'irw' from 'unsigned' to 'uint32_t'.
3313         (populate_regs_from_watches): Rename to ...
3314         (mips_linux_watch_populate_regs): ... this.  Add parameter
3315         'current_watches'.  All callers changed.
3316
3317 2013-07-27  Yao Qi  <yao@codesourcery.com>
3318
3319         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3320         the code.
3321         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3322         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3323         (struct pt_watch_regs): Likewise.
3324         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3325         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3326         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3327         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3328         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3329
3330 2013-07-27  Yao Qi  <yao@codesourcery.com>
3331
3332         * breakpoint.h: Include break-common.h.
3333         (enum target_hw_bp_type): Move to ...
3334         * common/break-common.h: ... here.  New.
3335
3336 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
3337
3338         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3339         process group regardless of having tty on stdin.
3340
3341 2013-07-25  Doug Evans  <dje@google.com>
3342
3343         * linux-fork.h (detach_fork): Delete.
3344
3345 2013-07-25  Tom Tromey  <tromey@redhat.com>
3346
3347         PR remote/15256, PR remote/15266:
3348         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3349         * monitor.c (monitor_detach): Use unpush_target.
3350         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3351         * remote-mips.c (mips_detach): Use unpush_target.  Don't
3352         call mips_close.
3353         * remote-sim.c (gdbsim_detach): Use unpush_target.
3354         * target.c (pop_target): Remove.
3355         (pop_all_targets_above): Don't call target_close.
3356         (target_close): Assert that the target is unpushed.
3357         * target.h (pop_target): Don't declare.
3358         * tracepoint.c (tfile_open): Use unpush_target.
3359
3360 2013-07-25  Tom Tromey  <tromey@redhat.com>
3361
3362         * linux-thread-db.c (init_thread_db_ops): Call
3363         complete_target_initialization.
3364         (_initialize_thread_db): Don't call add_target.
3365         * target.c (complete_target_initialization): New function.
3366         (add_target_with_completer): Call it.
3367         * target.h (complete_target_initialization): Declare.
3368
3369 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3370
3371         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3372         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3373         (HPPANBSD_SIZEOF_GREGS): New define.
3374         (hppaobsd_supply_gregset): Handle additional registers.
3375         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3376         we provide more registers now.
3377         (hppabsd_supply_gregset): Supply additional registers.
3378         (hppabsd_collect_gregset): Collect additional registers.
3379
3380 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3381
3382         * hppabsd-tdep.c: Include "dwarf2-frame.h".
3383         (hppabsd_dwarf2_frame_init_reg): New function.
3384         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3385
3386 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3387
3388         * mi/mi-main.c (output_register): Make MI 'r' format use standard
3389         'z' format code.  Remove error for optimized out values, standard
3390         code will handle these fine.
3391
3392 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3393
3394         * NEWS: Mention new 'z' formatter.
3395         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3396         (_initialize_printcmd): Mention 'z' formatter in help text of the
3397         'x' command.
3398
3399 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
3400
3401         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3402         formatting.
3403
3404 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
3405
3406         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3407         interface can evaluate arguments.  Fallback to the old mode if it
3408         cannot.
3409         (create_exception_master_breakpoint): Likewise.
3410         * elfread.c (elf_can_evaluate_probe_arguments): New function.
3411         (struct sym_probe_fns elf_probe_fns): Export function above to the
3412         probe interface.
3413         * probe.c (can_evaluate_probe_arguments): New function.
3414         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3415         function pointer.
3416         (can_evaluate_probe_arguments): New function prototype.
3417         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3418         probe interface can evaluate arguments.  Fallback to the old mode
3419         if it cannot.
3420         * stap-probe.c (stap_get_probe_argument_count): Check if probe
3421         interface can evaluate arguments.  Warning the user if it cannot.
3422         (stap_can_evaluate_probe_arguments): New function.
3423         (struct probe_ops stap_probe_ops): Export function above to the
3424         probe interface.
3425         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3426         New function pointer.
3427
3428 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
3429
3430         * Makefile.in (SFILES): Add common/target-common.c.
3431         Add common/target-common.h to headers.
3432         (COMMON_OBS): Add target-common.o.
3433         (target-common.o): New target.
3434         * linux-nat.h (resume_kind): Move to common/target-common.h.
3435         * target.c (target_waitstatus_to_string): Move to
3436         common/target-common.c.
3437         * target.h: Include target-common.h.
3438         (target_waitkind): Move to common/target-common.h.
3439         (target_waitstatus): Likewise.
3440         (TARGET_WNOHANG): Likewise.
3441         * common/target-common.c: New file.
3442         * common/target-common.h: New file.
3443
3444 2013-07-24  Doug Evans  <dje@google.com>
3445
3446         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3447         a warning.
3448
3449 2013-07-23  Yao Qi  <yao@codesourcery.com>
3450
3451         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3452         parameter 'gdbarch'.
3453         (i386_stack_tramp_frame_sniffer): Caller update.
3454         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3455         parameter 'gdbarch' and 'target'.
3456         (i386_linux_core_read_description): Caller update.
3457         * amd64-linux-tdep.c (amd64_linux_core_read_description):
3458         Likewise.
3459         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3460         declaration.
3461
3462 2013-07-23  Tom Tromey  <tromey@redhat.com>
3463
3464         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3465         2013-07-22.
3466
3467 2013-07-22  Doug Evans  <dje@google.com>
3468
3469         * exec.h (remove_target_sections): Delete arg abfd.
3470         * exec.c (exec_close): Update call to remove_target_sections.
3471         (remove_target_sections): Delete arg abfd.
3472         * solib.c (update_solib_list): Ditto.
3473         (reload_shared_libraries_1): Ditto.
3474         (clear_solib): Ditto, and unconditionally call remove_target_sections.
3475         * target.h (struct target_section): Rename key to owner.
3476         All uses updated.
3477
3478 2013-07-22  Tom Tromey  <tromey@redhat.com>
3479
3480         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3481
3482 2013-07-22  Tom Tromey  <tromey@redhat.com>
3483
3484         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3485         Simplify cleanup handling.
3486
3487 2013-07-22  Tom Tromey  <tromey@redhat.com>
3488
3489         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3490         on all return paths.
3491
3492 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3493
3494         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3495         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3496         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3497
3498 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
3499
3500         * top.c (print_gdb_version): Add help, apropos description and
3501         url to online documentation.
3502
3503 2013-07-19  Hui Zhu  <hui@codesourcery.com>
3504
3505         PR gdb/15692
3506         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3507
3508 2013-07-19  Yao Qi  <yao@codesourcery.com>
3509
3510         * target.c (update_current_target): Change the default action
3511         of 'to_traceframe_info' from tcomplain to return_zero.
3512         * target.h (struct target_ops) <to_traceframe_info>: Add more
3513         comments.
3514         * valops.c (read_value_memory): Call
3515         traceframe_available_memory unconditionally.
3516
3517 2013-07-18  Yao Qi  <yao@codesourcery.com>
3518
3519         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3520         if the name is prefixed by "__imp_" or "_imp_", look for minimal
3521         symbol without prefix.  If found, set its type to
3522         'mst_solib_trampoline'.
3523
3524 2013-07-17  Doug Evans  <dje@google.com>
3525
3526         * NEWS: Mention "set print raw frame-arguments".
3527         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3528         * stack.c (print_raw_frame_arguments): New static global.
3529         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3530         (_initialize_stack): New command "set/show print raw frame-arguments".
3531         * valprint.c (setprintrawlist, showprintrawlist): New globals.
3532         (set_print_raw, show_print_raw): New functions.
3533         (_initialize_valprint): New prefix command "set/show print raw".
3534         * valprint.h (value_print_options): Improve comments.
3535
3536         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3537         of all *list variables.
3538
3539         * gdbcmd.h (togglelist): Delete.
3540         * cli/cli-cmds.c (togglelist): Delete.
3541         (init_cmd_lists): Update.
3542         * cli/cli-cmds.h (togglelist): Delete.
3543
3544 2013-07-17  Tom Tromey  <tromey@redhat.com>
3545
3546         * dwarf2read.c (dwarf2_per_objfile_free): Clear
3547         dwarf2_per_objfile.
3548
3549 2013-07-16  Doug Evans  <dje@google.com>
3550
3551         * nto-tdep.c (nto_relocate_section_addresses): Update,
3552         target_section.bfd deleted.
3553         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3554         * s390-tdep.c (s390_load): Ditto.
3555         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3556
3557 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
3558
3559         * common/format.c (parse_format_string): Add checks for NULL
3560         character before calling strchr.
3561
3562 2013-07-16  Doug Evans  <dje@google.com>
3563
3564         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3565         temp_pathname argument.
3566         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3567         when opening the file fails.
3568
3569         * target.h (struct target_section): Delete member bfd.
3570         All users updated to use the_bfd_section->owner instead.
3571         * exec.c (add_to_section_table): Assert bfd is expected value.
3572         Remove initialization of target_section.bfd.
3573         (remove_target_sections): Update.
3574         (section_table_available_memory): Update.
3575         (section_table_xfer_memory_partial): Update.
3576         (print_section_info): Update.
3577         (exec_set_section_address): Update.
3578         * record-full.c (record_full_core_xfer_partial): Update.
3579         * solib-svr4.c (svr4_relocate_section_addresses): Update.
3580         * solib-target.c (solib_target_relocate_section_addresses): Update.
3581         * symfile.c (build_section_addr_info_from_section_table): Update.
3582         * target.c (memory_xfer_live_readonly_partial): Update.
3583         (memory_xfer_partial_1): Update.
3584
3585 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3586
3587         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3588         now available for embedded (BookE) and server (BookS) processors,
3589         correct mentions of 'booke' and adjust comments accordingly in order to
3590         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3591         (have_ptrace_booke_interface): Rename function and variable
3592         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3593         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3594         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3595         'hwdebug_point_cmp'. Update all uses.
3596         (booke_find_thread_points_by_tid): Rename function
3597         'booke_find_thread_points_by_tid' to
3598         'hwdebug_find_thread_points_by_tid'. Update all uses.
3599         (booke_insert_point): Rename function 'booke_insert_point' to
3600         'hwdebug_insert_point'. Update all uses.
3601         (booke_remove_point): Rename function 'booke_remove_point' to
3602         'hwdebug_remove_point'. Update all uses.
3603
3604 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
3605
3606         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3607         numbers with enum values.
3608
3609 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
3610
3611         PR threads/13217
3612         * thread.c (thread_apply_all_command): Check for valid threads
3613         and thread count.
3614         (thread_array_cleanup): New struct.
3615         (set_thread_refcount): New function.
3616
3617 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
3618
3619         * infcmd.c (default_print_one_register_info): Reuse function
3620         print_hex_chars.
3621
3622 2013-07-10  Tom Tromey  <tromey@redhat.com>
3623
3624         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3625         (ada-exp.o): New target.
3626
3627 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3628
3629         * mt-tdep.c (mt_registers_info): Call
3630         get_no_prettyformat_print_options instead of
3631         get_raw_print_options (regression by last patch from Doug
3632         Evans).
3633
3634 2013-07-09  Pedro Alves  <palves@redhat.com>
3635
3636         Checked in by Joel Brobecker  <brobecker@adacore.com>.
3637         * ada-lang.c (coerce_unspec_val_to_type): Use
3638         value_optimized_out_const.
3639         * value.c (value_optimized_out_const): New function.
3640         * value.h (value_optimized_out_const): New declaration.
3641
3642 2013-07-09  Doug Evans  <dje@google.com>
3643
3644         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3645         Enum values rename as well.  All uses updated.
3646         * valprint.h (value_print_options): Rename member pretty to
3647         pretty format.  Rename member prettyprint_arrays to
3648         prettyformat_arrays.  Rename member prettyprint_structs to
3649         prettyformat_structs.  All uses updated.
3650         (get_no_prettyformat_print_options): Renamed from
3651         get_raw_print_options.
3652         * valprint.c (get_no_prettyformat_print_options): Renamed from
3653         get_raw_print_options.  All callers updated.
3654         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3655         All callers updated.
3656         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3657         All callers updated.
3658         (_initialize_valprint): Improve help text for "set print pretty" and
3659         "set print arrays".
3660
3661 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
3662
3663         * value.c (value_bits_valid): Revert previous change, and change
3664         by Pedro on 2013-07-04, due to regressions in
3665         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3666
3667 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
3668             Pedro Alves  <palves@redhat.com>
3669
3670         * value.c (value_bits_valid): If the value is not lval_computed
3671         or has no check validity handler then the answer is the
3672         optimized_out flag, otherwise defer to the handler.
3673
3674 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
3675
3676         * top.c (print_gdb_configuration): Explain in output of
3677         --configuration what does "relocatable" mean.
3678
3679         * main.c (print_gdb_help): Regroup options in the --help text.
3680         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3681         the relevant discussions.
3682
3683 2013-07-06  Yao Qi  <yao@codesourcery.com>
3684
3685         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3686         Remove parameter 'lsal'.
3687         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3688         to inner block.  Caller update.
3689         (base_breakpoint_create_breakpoints_sal): Update.
3690         (bkpt_create_breakpoints_sal): Likewise.
3691         (tracepoint_create_breakpoints_sal): Likewise.
3692         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3693         element 0 of vector 'canonical->sals'.
3694
3695 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
3696
3697         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3698         register number instead of the pseudo register one.
3699         (rs6000_dwarf2_reg_to_regnum): Likewise.
3700
3701 2013-07-04  Pedro Alves  <palves@redhat.com>
3702
3703         * findvar.c (value_of_register): Use allocate_optimized_out_value
3704         if the register has been optimized out, instead of
3705         set_value_optimized_out.
3706         * frame-unwind.c (frame_unwind_got_optimized): Use
3707         allocate_optimized_out_value.
3708
3709 2013-07-04  Pedro Alves  <palves@redhat.com>
3710
3711         * value.c (value_bits_valid): If the value is not lval_computed,
3712         or doesn't have a check_validity hook, assume the value is entirely
3713         valid.
3714
3715 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3716
3717         * stack.c (read_frame_arg): No longer fetch lazy values.
3718         * value.c (value_optimized_out): If the value is not already
3719         marked optimized out, and is lazy then fetch it.
3720         (value_primitive_field): Move optimized out check to later in the
3721         function, after we have loaded any lazy values.
3722         (value_fetch_lazy): Use optimized out flag directly rather than
3723         calling optimized_out method.
3724
3725 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3726
3727         * valops.c: Don't include "user-regs.h".
3728         (value_fetch_lazy): Moved to value.c.
3729         * value.c: Include "user-regs.h".
3730         (value_fetch_lazy): Moved from valops.c.
3731
3732 2013-07-04  Yao Qi  <yao@codesourcery.com>
3733
3734         Revert:
3735         2013-06-27  Yao Qi  <yao@codesourcery.com>
3736
3737         * common/create-version.sh: Update comments.  Handle the case
3738         that TARGET_ALIAS is empty.
3739
3740 2013-07-03  Pedro Alves  <palves@redhat.com>
3741
3742         * Makefile.in (config.status): Depend on development.sh.
3743         (aclocal_m4_deps): Add libmcheck.m4.
3744         * acinclude.m4: Include libmcheck.m4.
3745         * configure.ac: Source development.sh instead of setting
3746         'development' here.  --enable-libmcheck/--disable-libmcheck code
3747         factored out to GDB_AC_LIBMCHECK.  Run it.
3748         * development.sh: New file.
3749         * libmcheck.m4: New file.
3750         * configure: Regenerate.
3751
3752 2013-07-02  Tom Tromey  <tromey@redhat.com>
3753
3754         * contrib/ari/update-web-ari.sh: Update for version.in change.
3755
3756 2013-07-02  Tom Tromey  <tromey@redhat.com>
3757
3758         * common/ptid.h: Comment fixes.
3759
3760 2013-07-01  Tom Tromey  <tromey@redhat.com>
3761
3762         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3763         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
3764         (dwarf2_read_index, create_all_comp_units): Update.
3765
3766 2013-07-01  Tom Tromey  <tromey@redhat.com>
3767
3768         * configure.ac (build_warnings): Add -Wold-style-definition.
3769         * configure: Rebuild.
3770         * machoread.c (_initialize_machoread): Use "(void)".
3771         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3772         use "(void)".
3773
3774 2013-07-01  Tom Tromey  <tromey@redhat.com>
3775
3776         * configure.ac (build_warnings): Add -Wold-style-declaration.
3777         * configure: Rebuild.
3778         * dsrec.c (make_srec): Use "static const", not "const static".
3779         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3780         not "const static".
3781         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3782         Use "static const", not "const static".
3783         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3784         not "const static".
3785         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3786         not "const static".
3787         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3788         not "const static".
3789         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3790         not "const static".
3791         (v850_dbtrap_breakpoint_from_pc): Likewise.
3792         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3793         not "const static".
3794
3795 2013-07-01  Tom Tromey  <tromey@redhat.com>
3796
3797         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3798         * configure: Rebuild.
3799
3800 2013-07-01  Pedro Alves  <palves@redhat.com>
3801
3802         * defs.h: Include "pathmax.h".
3803         * utils.c: Don't include sys/param.h.
3804         (gdb_realpath): Remove code that checks for MAXPATHLEN.
3805         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3806         instead of MAXPATHLEN.
3807         * solib-sunos.c: Don't include sys/param.h.
3808         * xcoffread.c: Don't include sys/param.h.
3809         * bsd-kvm.c: Don't include sys/param.h.
3810         * darwin-nat.c: Don't include sys/param.h.
3811         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3812         * darwin-nat-info.c: Don't include sys/param.h.
3813         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3814         MAXPATHLEN.
3815         * i386obsd-nat.c: Don't include sys/param.h.
3816         * inf-child.c: Don't include sys/param.h.
3817         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3818         * linux-fork.c: Don't include sys/param.h.
3819         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3820         * linux-nat.c: Don't include sys/param.h.
3821         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3822         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3823         * m68klinux-nat.c: Don't include sys/param.h.
3824         * nbsd-nat.c: Don't include sys/param.h.
3825         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3826         * ppc-linux-nat.c: Don't include sys/param.h.
3827         * rs6000-nat.c: Don't include sys/param.h.
3828         * spu-linux-nat.c. Don't include sys/param.h.
3829         * windows-nat.c: Don't include sys/param.h.
3830         * xtensa-linux-nat.c: Don't include sys/param.h.
3831         * config/i386/nm-fbsd.h: Don't include sys/param.h.
3832
3833 2013-07-01  Pedro Alves  <palves@redhat.com>
3834
3835         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3836         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3837         * gnulib/aclocal.m4: Regenerate.
3838         * gnulib/config.in: Regenerate.
3839         * gnulib/configure: Regenerate.
3840         * gnulib/import/pathmax.h: New file.
3841         * gnulib/import/Makefile.am: Regenerate.
3842         * gnulib/import/Makefile.in: Regenerate.
3843         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3844         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3845         * gnulib/import/m4/pathmax.m4: New file.
3846
3847 2013-07-01  Pedro Alves  <palves@redhat.com>
3848
3849         * configure.ac (GDBINIT): Define, depending on host.
3850         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3851         * top.c (PATH_MAX): Delete fallback definition.
3852         (GDBINIT_FILENAME): Delete.
3853         (gdbinit): Reimplement as const char array set to the GDBINIT
3854         string constant.
3855         * top.h (gdbinit): Make const.
3856         * configure, config.in: Regenerate.
3857
3858 2013-07-01  Pedro Alves  <palves@redhat.com>
3859
3860         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3861         * cli/cli-cmds.h (source_script): Likewise.
3862         * exceptions.c (catch_command_errors_const): New function.
3863         * exceptions.h (catch_command_errors_const): Declare.
3864         * main.c (get_init_files): Make parameters const, and adjust.
3865         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3866         'local_gdbinit' locals const.  Adjust to use
3867         catch_command_errors_const.
3868         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3869         'local_gdbinit' locals const.
3870
3871 2013-07-01  Pedro Alves  <palves@redhat.com>
3872
3873         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3874         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3875         * tracepoint.c: Don't check HAVE_UNISTD_H before including
3876         <unistd.h>.
3877
3878 2013-07-01  Pedro Alves  <palves@redhat.com>
3879
3880         Import the "unistd" gnulib module.
3881         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3882         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3883         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3884         import/m4/unistd_h.m4.
3885         * gnulib/aclocal.m4: Renenerate.
3886         * gnulib/config.in: Renenerate.
3887         * gnulib/configure: Renenerate.
3888         * gnulib/import/Makefile.am: Renenerate.
3889         * gnulib/import/Makefile.in: Renenerate.
3890         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3891         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3892         * gnulib/import/m4/off_t.m4: New file.
3893         * gnulib/import/m4/ssize_t.m4: New file.
3894         * gnulib/import/m4/sys_types_h.m4: New file.
3895         * gnulib/import/m4/unistd_h.m4: New file.
3896         * gnulib/import/sys_types.in.h: New file.
3897         * gnulib/import/unistd.c: New file.
3898         * gnulib/import/unistd.in.h: New file.
3899
3900 2013-07-01  Pedro Alves  <palves@redhat.com>
3901
3902         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3903         defined instead of checking HAVE_UNISTD_H.
3904
3905 2013-07-01  Pedro Alves  <palves@redhat.com>
3906
3907         Reimport gnulib from scratch.
3908         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3909         import/m4/onceonly.m4.
3910         * gnulib/aclocal.m4: Renegerate.
3911         * gnulib/config.in: Renegerate.
3912         * gnulib/configure: Renegerate.
3913         * gnulib/import/Makefile.in: Renegerate.
3914         * gnulib/import/extra/update-copyright: Renegerate.
3915         * gnulib/import/m4/onceonly.m4: Delete.
3916
3917 2013-07-01  Pedro Alves  <palves@redhat.com>
3918
3919         * tui/tui-regs.c (pagination_enabled): Delete declaration.
3920
3921 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3922
3923         Code cleanup.
3924         * remote.c (async_remote_interrupt_twice): Make it static.
3925         * remote.h (async_remote_interrupt_twice): Remove the declaration.
3926
3927 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3928
3929         * ia64-linux-tdep.c: Include <ctype.h>.
3930         (ia64_linux_stap_is_single_operand): New function.
3931         (ia64_linux_init_abi): Initialize SystemTap related attributes.
3932
3933 2013-06-28  Tom Tromey  <tromey@redhat.com>
3934
3935         * Makefile.in (version.c): Use version.in, not
3936         common/version.in.
3937         * common/create-version.sh: Likewise.
3938         * common/version.in: Move...
3939         * version.in: ...here.
3940
3941 2013-06-28  Pedro Alves  <palves@redhat.com>
3942
3943         * infrun.c (set_observer_mode): Don't declare pagination_enabled
3944         here.
3945         * utils.h (pagination_enabled): Declare.
3946
3947 2013-06-28  Pedro Alves  <palves@redhat.com>
3948
3949         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3950         Move higher up in file.
3951
3952 2013-06-28  Tom Tromey  <tromey@redhat.com>
3953
3954         * tracepoint.c (deprecated_readline_begin_hook)
3955         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3956         declare.
3957
3958 2013-06-28  Pedro Alves  <palves@redhat.com>
3959
3960         PR tui/14880
3961         * tui/tui-regs.c (tui_get_register): Fetch value contents before
3962         checking if they're available.
3963         * value.c (value_available_contents_eq): Change comment.
3964         * value.h (value_available_contents_eq): Expand comment.
3965
3966 2013-06-27  Tom Tromey  <tromey@redhat.com>
3967
3968         * target.c (find_run_target): Remove.
3969         * target.h (find_run_target): Remove.
3970
3971 2013-06-27  Tom Tromey  <tromey@redhat.com>
3972
3973         * corelow.c (core_gdbarch): Now static.
3974
3975 2013-06-27  Tom Tromey  <tromey@redhat.com>
3976
3977         * target.c (target_struct_index): Remove.
3978
3979 2013-06-27  Pedro Alves  <palves@redhat.com>
3980
3981         * infrun.c: Remove comment describing the 'stepping over runtime
3982         loader dynamic symbol resolution code' mechanism; moved to
3983         gdbint.texinfo.
3984
3985 2013-06-27  Pedro Alves  <palves@redhat.com>
3986
3987         * exceptions.c (catch_command_errors): Remove spurious space.
3988         * exceptions.h (catch_command_errors): Second parameter is "arg",
3989         not "command".
3990
3991 2013-06-27  Yao Qi  <yao@codesourcery.com>
3992
3993         * common/create-version.sh: Update comments.  Handle the case
3994         that TARGET_ALIAS is empty.
3995
3996 2013-06-26  Pedro Alves  <palves@redhat.com>
3997
3998         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3999         comment.
4000
4001 2013-06-26  Pedro Alves  <palves@redhat.com>
4002
4003         * infrun.c: Update comments on stepping over runtime loader
4004         dynamic symbol resolution code.
4005
4006 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
4007
4008         * ax-gdb.h (union exp_element): Forward declare.
4009         * parser-defs.h: Include expression.h.
4010
4011 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4012
4013         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4014
4015 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
4016
4017         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4018
4019 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
4020
4021         Fix trace-status to output proper start-time and stop-time.
4022         * tracepoint.c (trace_status_command): Fix type of printf arg to
4023         prevent improper type conversion.
4024         (trace_status_mi): Likewise.
4025
4026 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4027
4028         * mips-tdep.c (mips_next_pc): Fix a typo.
4029
4030 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
4031
4032         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4033
4034 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4035             Yao Qi  <yao@codesourcery.com>
4036
4037         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4038         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4039         * mi/mi-main.c (print_variable_or_computed): New function.
4040         (mi_cmd_trace_frame_collected): New function.
4041         * tracepoint.c (find_trace_state_variable_by_number): New.
4042         (struct traceframe_info): Move to tracepoint.h
4043         (struct collection_list): Likewise.
4044         (do_collect_symbol): Include locals and arguments in the
4045         collected variables list.
4046         (clear_collection_list): Clear wholly collected variables list
4047         and computed variables list.
4048         (append_exp): New function.
4049         (encode_actions_1): Include variables in the wholly
4050         collected variables list.  Include memory ranges and
4051         full-fledged expressions in the computed expressions list.
4052         (encode_actions): Move some code to ...
4053         Return the cleanup chain.
4054         (encode_actions_rsp): ... here.  New function.
4055         (get_traceframe_location, get_traceframe_info): Remove static.
4056         * tracepoint.h (struct memrange): Moved from tracepoint.c.
4057         (struct collection_list): Moved from tracepoint.c.  Add two
4058         new fields 'wholly_collected' and 'computed'.
4059         (find_trace_state_variable_by_number): Declare.
4060         (encode_actions): Adjust declaration.
4061         (encode_actions_rsp): Declare.
4062         (get_traceframe_info, get_traceframe_location): Declare.
4063
4064         * NEWS: Mention new MI command -trace-frame-collected.
4065
4066 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4067             Yao Qi  <yao@codesourcery.com>
4068
4069         * ctf.c (ctf_traceframe_info): Push trace state variables
4070         present in the trace data into the traceframe info object.
4071         * breakpoint.c (DEF_VEC_I): Remove.
4072         * common/filestuff.c (DEF_VEC_I): Likewise.
4073         * dwarf2loc.c (DEF_VEC_I): Likewise.
4074         * mi/mi-main.c (DEF_VEC_I): Likewise.
4075         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4076         * features/traceframe-info.dtd: Add tvar element and its
4077         attributes.
4078         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4079         (build_traceframe_info): Push trace state variables present in
4080         the trace data into the traceframe info object.
4081         (traceframe_info_start_tvar): New function.
4082         (tvar_attributes): New.
4083         (traceframe_info_children): Add "tvar" element.
4084         * tracepoint.h (struct traceframe_info) <tvars>: New field.
4085
4086         * NEWS: Mention the change in GDB and GDBserver.
4087
4088 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4089             Yao Qi  <yao@codesourcery.com>
4090
4091         * tracepoint.c (trace_dump_command): Move code to ...
4092         (get_traceframe_location): ... here.  New.
4093
4094 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4095             Yao Qi  <yao@codesourcery.com>
4096
4097         * tracepoint.c (trace_dump_command): GDB emits an error
4098          instead of a warning when a traceframe is not selected.
4099
4100 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4101             Yao Qi  <yao@codesourcery.com>
4102
4103         * tracepoint.c (tracepoint_list, stepping_list): Remove.
4104         (clear_collection_list): Free fields 'aexpre_list' and 'list'
4105         in collection_list.
4106         (do_clear_collection_list, init_collection_list): New.
4107         (encode_actions): Add local variables 'tracepoint_list' and
4108         'stepping_list'.  Call init_collection_list and make cleanup
4109         which calls do_clear_collection_list.  Don't call
4110         clear_collection_list.
4111         (_initialize_tracepoint): Delete references to
4112         'tracepoint_list' and 'stepping_list'.
4113
4114 2013-06-25  Tom Tromey  <tromey@redhat.com>
4115
4116         * common/create-version.sh (date): Use "$", not "$$" in sed
4117         expression.
4118
4119 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
4120
4121         * NEWS (New targets): Add entry for TI MSP430.
4122
4123 2013-06-25  Yao Qi  <yao@codesourcery.com>
4124
4125         * remote.c (remote_start_remote): Move code to upload tsv
4126         earlier.
4127
4128 2013-06-25  Yao Qi  <yao@codesourcery.com>
4129             Hui Zhu  <hui@codesourcery.com>
4130             Pedro Alves  <palves@redhat.com>
4131
4132         PR breakpoints/15075
4133         PR breakpoints/15434
4134         * breakpoint.c (bpstat_stop_status): Call
4135         b->ops->after_condition_true.
4136         (update_dprintf_command_list): Don't append "continue" command
4137         to the command list of dprintf breakpoint.
4138         (base_breakpoint_after_condition_true): New function.
4139         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4140         (dprintf_after_condition_true): New function.
4141         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4142         * breakpoint.h (breakpoint_ops): Add after_condition_true.
4143
4144 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
4145
4146         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4147         (ALLDEPFILES): Add msp430-tdep.c.
4148         * configure.tgt (msp430*-*-elf): New target.
4149         * msp430-tdep.c: New file.
4150
4151 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4152
4153         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4154         microMIPS synthetic symbols.
4155
4156 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4157
4158         * objfiles.h (pc_in_section): New prototype.
4159         (in_plt_section): Remove name argument, replace prototype with
4160         static inline function.
4161         * mips-tdep.h: Include "objfiles.h".
4162         (in_mips_stubs_section): New function.
4163         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4164         in_solib_call_trampoline member.
4165         (hppa_in_solib_call_trampoline): Remove name argument.
4166         * objfiles.c (pc_in_section): New function.
4167         (in_plt_section): Remove function.
4168         * mips-linux-tdep.c: Include "objfiles.h".
4169         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
4170         name argument.  Return 1 rather than the low 16-bit halfword of
4171         any instruction examined.
4172         (mips_linux_in_dynsym_resolve_code): Update
4173         mips_linux_in_dynsym_stub call accordingly.
4174         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4175         rather than an equivalent hand-coded sequence.
4176         * hppa-hpux-tdep.c (in_opd_section): Remove function.
4177         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4178         (hppa64_hpux_in_solib_call_trampoline): Likewise.
4179         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4180         in_opd_section.
4181         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4182         on call to tdep->in_solib_call_trampoline.
4183         (hppa_in_solib_call_trampoline): Remove name argument, update
4184         according to in_plt_section change.
4185         (hppa_skip_trampoline_code): Update according to in_plt_section
4186         change.
4187         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4188         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4189         Likewise.
4190         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4191         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4192         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4193         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4194         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4195         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4196         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4197         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4198         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4199         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4200         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4201         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4202         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4203
4204 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
4205
4206         * common/create-version.sh: Fix expansion of $host_alias
4207         and $target_alias in generation of HOST_NAME and TARGET_NAME
4208         (resp.).
4209
4210 2013-06-24  Tom Tromey  <tromey@redhat.com>
4211
4212         * common/create-version.sh: New file.
4213         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4214         create-version.sh.
4215         (HFILES_NO_SRCDIR): Use common/version.h.
4216         * version.in: Move to ...
4217         * common/version.in: ... here.  Replace date with "DATE".
4218         * version.h: Move to ...
4219         * common/version.h: ... here.
4220
4221 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4222
4223         * gdb/gnulib/Makefile.in: Update date in copyright header.
4224         * gdb/gnulib/configure.ac: Ditto.
4225         * gdb/gnulib/update-gnulib.sh: Ditto.
4226
4227 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4228
4229         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4230         "gdb/gnulib/import".
4231
4232 2013-06-21  Will Newton  <will.newton@linaro.org>
4233
4234         * doublest.c (ldfrexp): Remove function.
4235         (convert_doublest_to_floatformat): Call frexpl instead of
4236         ldfrexp.
4237
4238 2013-06-21  Will Newton  <will.newton@linaro.org>
4239
4240         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4241         * gnulib/aclocal.m4: Regenerate.
4242         * gnulib/config.in: Regenerate.
4243         * gnulib/configure: Regenerate.
4244         * gnulib/import/Makefile.am: Update.
4245         * gnulib/import/Makefile.in: Update.
4246         * gnulib/import/m4/gnulib-cache.m4: Update.
4247         * gnulib/import/m4/gnulib-comp.m4: Update.
4248         * gnulib/import/float+.h: Import.
4249         * gnulib/import/float.c: Import.
4250         * gnulib/import/float.in.h: Import.
4251         * gnulib/import/fpucw.h: Import.
4252         * gnulib/import/frexp.c: Import.
4253         * gnulib/import/frexpl.c: Import.
4254         * gnulib/import/isnan.c: Import.
4255         * gnulib/import/isnand-nolibm.h: Import.
4256         * gnulib/import/isnand.c: Import.
4257         * gnulib/import/isnanl-nolibm.h: Import.
4258         * gnulib/import/isnanl.c: Import.
4259         * gnulib/import/itold.c: Import.
4260         * gnulib/import/m4/exponentd.m4: Import.
4261         * gnulib/import/m4/exponentl.m4: Import.
4262         * gnulib/import/m4/float_h.m4: Import.
4263         * gnulib/import/m4/fpieee.m4: Import.
4264         * gnulib/import/m4/frexp.m4: Import.
4265         * gnulib/import/m4/frexpl.m4: Import.
4266         * gnulib/import/m4/isnand.m4: Import.
4267         * gnulib/import/m4/isnanl.m4: Import.
4268         * gnulib/import/m4/math_h.m4: Import.
4269         * gnulib/import/math.c: Import.
4270         * gnulib/import/math.in.h: Import.
4271
4272 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4273
4274         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4275         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4276         signature_INTEL_edx comparisons.
4277
4278 2013-06-20  Doug Evans  <dje@google.com>
4279
4280         symtab/15652
4281         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4282         All callers updated.
4283         (open_dwp_file): If we can't find the dwp file, search the basename
4284         in debug-file-directory.
4285
4286         * dwarf2read.c (struct dwp_file): Fix comment.
4287         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4288
4289         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4290         better.
4291
4292 2013-06-20  Yao Qi  <yao@codesourcery.com>
4293
4294         * breakpoint.c (create_breakpoint): Fix code indentation.
4295
4296 2013-06-20  Yao Qi  <yao@codesourcery.com>
4297
4298         * breakpoint.c (create_breakpoints_sal_default): Remove
4299         parameter 'lsal'.  Update declaration.
4300         (bkpt_create_breakpoints_sal): Caller update.
4301         (tracepoint_create_breakpoints_sal): Likewise.
4302
4303 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
4304             Yao Qi  <yao@codesourcery.com>
4305
4306         * NEWS: Mention the new option '--skip-unavailable' of command
4307         -data-list-register-values.
4308         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4309         --skip-unavailable option.  Adjust to use output_register.
4310         (output_register): Add new 'skip_unavailable' parameter.
4311         Handle it.
4312
4313 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
4314
4315         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4316         common/i386-gcc-cpuid.h.
4317         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4318         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4319         Copy the latest version from upstream gcc.
4320         * common/linux-btrace.c: Include i386-cpuid.h.
4321         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4322         call to i386_cpuid.
4323         (cpu_supports_btrace): Likewise.
4324         * go32-nat.c: Include i386-cpuid.h.
4325         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4326
4327 2013-06-19  Doug Evans  <dje@google.com>
4328
4329         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4330         (get_section_index): Ditto.
4331
4332 2013-06-19  Tom Tromey  <tromey@redhat.com>
4333
4334         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4335         "dprintf" help.
4336
4337 2013-06-18  Doug Evans  <dje@google.com>
4338
4339         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4340         before using it.
4341         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4342         Move test of cu_index closer to use.  Print complaint if cu_index
4343         is bad.
4344
4345 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4346
4347         * machoread.c (oso_vector): Delete this global.
4348         (macho_register_oso): Add new parameter "oso_vector_ptr".
4349         Use it instead of the "oso_vector" global.
4350         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4351         (macho_symfile_read): Use a local oso_vector, to be free'ed
4352         at the end of this function, in place of the old "oso_vector"
4353         global.  Update various function calls accordingly.  Use one
4354         single cleanup chain for the entire function.
4355
4356 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4357
4358         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4359         DWARF2_PER_OBJFILE by uses of DATA instead.
4360
4361 2013-06-18  Tom Tromey  <tromey@redhat.com>
4362
4363         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4364         argument.
4365         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4366         Special case signals other than GDB_SIGNAL_TRAP.
4367         (explains_signal_watchpoint): New function.
4368         (base_breakpoint_explains_signal): Add 'sig' argument.
4369         (initialize_breakpoint_ops): Set 'explains_signal' method for
4370         watchpoints.
4371         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4372         signal argument.
4373         (bpstat_explains_signal): Likewise.
4374         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4375
4376 2013-06-18  Tom Tromey  <tromey@redhat.com>
4377
4378         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4379
4380 2013-06-18  Tom Tromey  <tromey@redhat.com>
4381
4382         * python/python.c (finish_python_initialization): Decref
4383         'pythondir' on failure path as well.
4384
4385 2013-06-18  Tom Tromey  <tromey@redhat.com>
4386
4387         PR symtab/15391:
4388         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4389         after taking bits_to_skip into account.  Sign extend byte_offset.
4390         * utils.h (gdb_sign_extend): Declare.
4391         * utils.c (gdb_sign_extend): New function.
4392
4393 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4394
4395         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4396
4397 2013-06-17  Pierre Muller  <muller@sourceware.org>
4398
4399         * corelow.c (core_open): Print GDB signal name instead of target
4400         signal number.
4401
4402 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
4403
4404         * .gitignore: Add /gcore.
4405
4406 2013-06-13  Doug Evans  <dje@google.com>
4407
4408         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4409         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4410
4411 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
4412
4413         * stack.c (backtrace_command_1): Fix indentation.
4414
4415 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4416
4417         * window-nat.c (thread_rec): Add missing empty line after
4418         local variable declaration.
4419
4420 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4421
4422         * windows-nat.c (thread_rec): Revert format used to print
4423         error code returned by SuspendThread from %d back to %u.
4424
4425 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4426
4427         * windows-nat.c (windows_continue): Add "0x" prefix for thread
4428         ID in debug trace.
4429         (get_windows_debug_event): Likewise, for all debug traces.
4430
4431 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4432
4433         * window-nat.c (thread_rec): Add thread ID in SuspendThread
4434         warning message.
4435
4436 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
4437             Yao Qi  <yao@codesourcery.com>
4438
4439         * mi/mi-main.c (get_register): Remove declaration.
4440         (output_register): Declare.
4441         (mi_cmd_data_list_register_values): Remove local variable
4442         'tuple_cleanup'.  Move some code into output_register.
4443         (get_register): Renamed to ...
4444         (output_register): ... this.  Output the register's
4445         "number" ui_out tuple here.
4446
4447 2013-06-07  Pedro Alves  <palves@redhat.com>
4448
4449         * darwin-nat.c: Fix formating in copyright header.
4450         * darwin-nat.h: Likewise.
4451         * gnu-nat.c: Likewise.
4452         * machoread.c: Likewise.
4453
4454 2013-06-07  Pedro Alves  <palves@redhat.com>
4455
4456         PR server/14823
4457         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
4458         static.  Output a global target description pointer.
4459         (init_registers_${name}): Adjust to initialize a
4460         target description structure.
4461
4462 2013-06-07  Will Newton  <will.newton@linaro.org>
4463
4464         * printcmd.c (build_address_symbolic): Call
4465         gdbarch_addr_bits_remove for text minimal symbols.
4466
4467 2013-06-07  Will Newton  <will.newton@linaro.org>
4468
4469         * MAINTAINERS: Add myself to Write After Approval.
4470
4471 2013-06-07  Yao Qi  <yao@codesourcery.com>
4472
4473         * tracepoint.c (start_tracing): Move code to ...
4474         (trace_reset_local_state): ... here.  New.
4475         (disconnect_tracing): Don't call set_current_traceframe,
4476         set_tracepoint_num, and set_traceframe_context. Call
4477         trace_reset_local_state instead.
4478         (tfile_close): Call trace_reset_local_state.
4479         * ctf.c (ctf_close): Likewise.
4480         * remote.c (remote_close): Likewise.
4481         * tracepoint.h (trace_reset_local_state): Declare.
4482
4483 2013-06-06  Doug Evans  <dje@google.com>
4484
4485         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4486         and fix header docs.
4487
4488 2013-06-05  Doug Evans  <dje@google.com>
4489             Keith Seitz  <keiths@redhat.com>
4490
4491         PR 15519
4492         * cp-namespace.c (find_symbol_in_baseclass): Call
4493         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4494         Check result of call to lookup_symbol_static.
4495         Call lookup_static_symbol_aux unconditionally.
4496         Call check_typedef on base types before accessing them.
4497         (cp_lookup_nested_symbol): Fix comment.
4498
4499 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
4500
4501         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4502         minimal symbols pointing to function descriptors.
4503
4504 2013-06-05  Tom Tromey  <tromey@redhat.com>
4505
4506         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4507
4508 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4509             Pedro Alves  <palves@redhat.com>
4510
4511         * remote.c (remote_wait_as): Restore signal handler before returning
4512         when GDB gets a notification.
4513
4514 2013-06-04  Gary Benson  <gbenson@redhat.com>
4515
4516         PR 2328
4517         * breakpoint.h (handle_solib_event): Moved function declaration
4518         to solib.h.
4519         * breakpoint.c (handle_solib_event): Moved function to solib.c.
4520         (bpstat_stop_status): Pass new argument to handle_solib_event.
4521         * solib.h (update_solib_breakpoints): New function declaration.
4522         (handle_solib_event): Moved function declaration from
4523         breakpoint.h.
4524         * solib.c (update_solib_breakpoints): New function.
4525         (handle_solib_event): Moved function from breakpoint.c.
4526         Updated to call solib_ops->handle_event if not NULL.
4527         * solist.h (target_so_ops): New fields "update_breakpoints" and
4528         "handle_event".
4529         * infrun.c (set_stop_on_solib_events): New function.
4530         (_initialize_infrun): Use the above for "set
4531         stop-on-solib-events".
4532         (handle_inferior_event): Pass new argument to handle_solib_event.
4533         * solib-svr4.c (probe.h): New include.
4534         (svr4_free_library_list): New forward declaration.
4535         (probe_action): New enum.
4536         (probe_info): New struct.
4537         (probe_info): New static variable.
4538         (NUM_PROBES): New definition.
4539         (svr4_info): New fields "using_xfer", "probes_table" and
4540         "solib_list".
4541         (free_probes_table): New function.
4542         (free_solib_list): New function.
4543         (svr4_pspace_data_cleanup): Free probes table and solib list.
4544         (svr4_copy_library_list): New function.
4545         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4546         (svr4_read_so_list): New parameter "prev_lm".
4547         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4548         (svr4_current_sos): New function.
4549         (probe_and_action): New struct.
4550         (hash_probe_and_action): New function.
4551         (equal_probe_and_action): Likewise.
4552         (register_solib_event_probe): Likewise.
4553         (solib_event_probe_at): Likewise.
4554         (solib_event_probe_action): Likewise.
4555         (solist_update_full): Likewise.
4556         (solist_update_incremental): Likewise.
4557         (disable_probes_interface_cleanup): Likewise.
4558         (svr4_handle_solib_event): Likewise.
4559         (svr4_update_solib_event_breakpoint): Likewise.
4560         (svr4_update_solib_event_breakpoints): Likewise.
4561         (svr4_create_solib_event_breakpoints): Likewise.
4562         (enable_break): Free probes table before creating breakpoints.
4563         Use svr4_create_solib_event_breakpoints to create breakpoints.
4564         (svr4_solib_create_inferior_hook): Free the solib list.
4565         (_initialize_svr4_solib): Initialise
4566         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4567
4568 2013-06-04  Gary Benson  <gbenson@redhat.com>
4569
4570         * target.h (target_ops): New field
4571         "to_augmented_libraries_svr4_read".
4572         (target_augmented_libraries_svr4_read): New macro.
4573         * target.c (update_current_target): Handle
4574         to_augmented_libraries_svr4_read.
4575         * remote.c (remote_state): New field
4576         "augmented_libraries_svr4_read".
4577         (remote_augmented_libraries_svr4_read_feature): New function.
4578         (remote_protocol_features): Add entry for
4579         "augmented-libraries-svr4-read".
4580         (remote_augmented_libraries_svr4_read): New function.
4581         (init_remote_ops): Initialize
4582         remote_ops.to_augmented_libraries_svr4_read.
4583
4584 2013-06-04  Gary Benson  <gbenson@redhat.com>
4585
4586         * NEWS: Update.
4587
4588 2013-06-04  Gary Benson  <gbenson@redhat.com>
4589
4590         * objfiles.h (inhibit_section_map_updates): New function
4591         declaration.
4592         (resume_section_map_updates): Likewise.
4593         (resume_section_map_updates_cleanup): Likewise.
4594         * objfiles.c (objfile_pspace_info): Removed field
4595         "objfiles_changed_p".  New fields "new_objfiles_available",
4596         "section_map_dirty" and "inhibit_updates".
4597         (allocate_objfile): Set new_objfiles_available.
4598         (free_objfile): Set section_map_dirty.
4599         (objfile_relocate1): Likewise.
4600         (in_plt_section): Likewise.
4601         (find_pc_section): Update the conditions under which the
4602         section map will be updated.
4603         (inhibit_section_map_updates): New function.
4604         (resume_section_map_updates): Likewise.
4605         (resume_section_map_updates_cleanup): Likewise.
4606
4607 2013-06-04  Gary Benson  <gbenson@redhat.com>
4608
4609         * probe.h (get_probe_argument_count): New declaration.
4610         (evaluate_probe_argument): Likewise.
4611         * probe.c (get_probe_argument_count): New function.
4612         (evaluate_probe_argument): Likewise.
4613         (probe_safe_evaluate_at_pc): Use the above new functions.
4614
4615 2013-06-04  Alan Modra  <amodra@gmail.com>
4616
4617         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4618         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4619         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
4620         target mem reads on optional insns.
4621         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4622         ppc_insns_match_pattern calls.
4623         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4624         Add match for power7 thread safety insns, and new order of
4625         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
4626         invocation in comment, and update rest of comment.
4627         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4628         PPC64_STANDARD_LINKAGE3_LEN): Delete.
4629         (ppc64_standard_linkage2_target): Update insn offsets.
4630         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
4631         stubs first.  Update calls.
4632
4633 2013-06-04  Yao Qi  <yao@codesourcery.com>
4634
4635         * solib.c (solib_find): Don't need dir separator if path has
4636         drive spec.
4637
4638 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
4639
4640         Revert (indirectly causes a SIGSEGV):
4641         * machoread.c (macho_symfile_read): Assign first cleanup to
4642         'back_to'.
4643
4644 2013-06-03  Yao Qi  <yao@codesourcery.com>
4645
4646         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4647         mi-parse.c.  Make them static.
4648         (mi_all_values): Likewise.
4649         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
4650         mi_parse_print_values.  Make it external.
4651         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4652         Remove the declarations.
4653         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4654         * mi/mi-parse.h (mi_parse_print_values): Declare.
4655         * mi/mi-cmd-stack.c: Include mi-parse.h.
4656         (parse_print_values): Remove
4657         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4658         of parse_print_values.
4659         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4660
4661 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
4662             Yao Qi  <yao@codesourcery.com>
4663
4664         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4665         (encode_actions): Move code to ...
4666         (all_tracepoint_actions_and_cleanup): ... here.  New.
4667         (trace_dump_command): Likewise.
4668
4669 2013-05-30  Tom Tromey  <tromey@redhat.com>
4670
4671         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4672
4673 2013-05-30  Tom Tromey  <tromey@redhat.com>
4674
4675         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4676         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
4677         'old_chain' argument.  Add 'parser_result' argument.
4678         (gdb_xml_create_parser_and_cleanup): Remove old version.
4679         (gdb_xml_parse_quick): Update.
4680         (xml_process_xincludes): Update.
4681         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4682         declare.
4683
4684 2013-05-30  Tom Tromey  <tromey@redhat.com>
4685
4686         * probe.c (collect_probes): Check arguments for NULL before
4687         calling compile_rx_or_error.
4688         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4689         Remove NULL return.
4690
4691 2013-05-30  Tom Tromey  <tromey@redhat.com>
4692
4693         * infrun.c (adjust_pc_after_break): Introduce an outer null
4694         cleanup.
4695
4696 2013-05-30  Tom Tromey  <tromey@redhat.com>
4697
4698         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4699
4700 2013-05-30  Tom Tromey  <tromey@redhat.com>
4701
4702         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4703         for 'old_chain'.  Do not check 'head' before processing
4704         cleanups.
4705
4706 2013-05-30  Tom Tromey  <tromey@redhat.com>
4707
4708         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4709         "cleanup_tuple".
4710
4711 2013-05-30  Tom Tromey  <tromey@redhat.com>
4712
4713         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4714         inner scope.  Unconditionally call do_cleanups.
4715
4716 2013-05-30  Tom Tromey  <tromey@redhat.com>
4717
4718         * source.c (find_and_open_source): Call do_cleanups.
4719
4720 2013-05-30  Tom Tromey  <tromey@redhat.com>
4721
4722         * linux-thread-db.c (thread_db_load_search): Unconditionally
4723         call do_cleanups.
4724
4725 2013-05-30  Tom Tromey  <tromey@redhat.com>
4726
4727         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4728         for 'cleanup'; instead use a later one.
4729
4730 2013-05-30  Tom Tromey  <tromey@redhat.com>
4731
4732         * python/py-breakpoint.c (bppy_get_commands): Use
4733         explicit, unconditional return.
4734         * python/py-frame.c (frapy_read_var): Likewise.
4735         * python/python.c (gdbpy_decode_line): Likewise.
4736
4737 2013-05-30  Tom Tromey  <tromey@redhat.com>
4738
4739         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4740         do_cleanups on all return paths.
4741
4742 2013-05-30  Tom Tromey  <tromey@redhat.com>
4743
4744         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4745
4746 2013-05-30  Tom Tromey  <tromey@redhat.com>
4747
4748         * stabsread.c (read_struct_type): Call do_cleanups along
4749         all return paths.
4750
4751 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
4752
4753         * mips-linux-tdep.c: Adjust formatting throughout.
4754
4755 2013-05-30  Tom Tromey  <tromey@redhat.com>
4756
4757         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4758         along all return paths.
4759
4760 2013-05-30  Tom Tromey  <tromey@redhat.com>
4761
4762         * symfile.c (find_separate_debug_file): Call do_cleanups
4763         along all return paths.
4764
4765 2013-05-30  Tom Tromey  <tromey@redhat.com>
4766
4767         * symtab.c (search_symbols): Introduce a null cleanup for
4768         'retval_chain'.
4769
4770 2013-05-30  Tom Tromey  <tromey@redhat.com>
4771
4772         * python/py-value.c (valpy_binop): Call do_cleanups before
4773         exiting loop.
4774
4775 2013-05-30  Tom Tromey  <tromey@redhat.com>
4776
4777         * python/py-prettyprint.c (print_children): Remove extra
4778         do_cleanups call.
4779
4780 2013-05-30  Tom Tromey  <tromey@redhat.com>
4781
4782         * python/py-frame.c (frapy_read_var): Call do_cleanups along
4783         all return paths.
4784
4785 2013-05-30  Tom Tromey  <tromey@redhat.com>
4786
4787         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4788         along all return paths.
4789
4790 2013-05-30  Tom Tromey  <tromey@redhat.com>
4791
4792         * cli/cli-logging.c (set_logging_redirect): Unconditionally
4793         call do_cleanups.
4794
4795 2013-05-30  Tom Tromey  <tromey@redhat.com>
4796
4797         * varobj.c (c_value_of_root): Call do_cleanups along all
4798         return paths.
4799
4800 2013-05-30  Tom Tromey  <tromey@redhat.com>
4801
4802         * tracepoint.c (trace_dump_command): Unconditionally call
4803         do_cleanups.
4804
4805 2013-05-30  Tom Tromey  <tromey@redhat.com>
4806
4807         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4808         do_cleanups earlier.
4809
4810 2013-05-30  Tom Tromey  <tromey@redhat.com>
4811
4812         * machoread.c (macho_symfile_read): Assign first cleanup to
4813         'back_to'.
4814
4815 2013-05-30  Tom Tromey  <tromey@redhat.com>
4816
4817         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4818
4819 2013-05-30  Tom Tromey  <tromey@redhat.com>
4820
4821         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4822
4823 2013-05-30  Tom Tromey  <tromey@redhat.com>
4824
4825         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4826         call discard_cleanups.
4827         (inf_ptrace_attach): Likewise.
4828
4829 2013-05-30  Tom Tromey  <tromey@redhat.com>
4830
4831         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4832         return paths.
4833         (mips_initialize): Likewise.
4834         (common_open): Call do_cleanups.
4835
4836 2013-05-30  Tom Tromey  <tromey@redhat.com>
4837
4838         * utils.c (internal_vproblem): Call do_cleanups.
4839
4840 2013-05-30  Tom Tromey  <tromey@redhat.com>
4841
4842         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4843
4844 2013-05-30  Tom Tromey  <tromey@redhat.com>
4845
4846         * cli/cli-script.c (setup_user_args): Don't return after error.
4847
4848 2013-05-30  Tom Tromey  <tromey@redhat.com>
4849
4850         * somread.c (som_symtab_read): Call do_cleanups.
4851
4852 2013-05-30  Tom Tromey  <tromey@redhat.com>
4853
4854         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4855
4856 2013-05-30  Tom Tromey  <tromey@redhat.com>
4857
4858         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4859         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4860         * interps.c (interpreter_exec_cmd): Call do_cleanups.
4861         * source.c (show_substitute_path_command): Call do_cleanups.
4862         (unset_substitute_path_command, set_substitute_path_command):
4863         Likewise.
4864         * symfile.c (load_command): Call do_cleanups.
4865
4866 2013-05-30  Tom Tromey  <tromey@redhat.com>
4867
4868         * contrib/cleanup_check.py: New file.
4869         * contrib/gcc-with-excheck: Add option parsing.
4870
4871 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
4872
4873         * windows-nat.c (windows_delete_thread): Add missing space
4874         in cast expression.
4875
4876 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4877
4878         * inferior.c (top level): Include tilde.h.
4879         (add_inferior_command): Call tilde_expand on the value of 'exec'
4880         argument.
4881
4882 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
4883             Yao Qi  <yao@codesourcery.com>
4884
4885         * tracepoint.c (encode_actions_1): Remove parameter 't'.
4886         Caller update.
4887         (encode_actions): Likewise.
4888         * remote.c (remote_download_tracepoint): Caller update.
4889         * tracepoint.h (encode_actions): Update declaration.
4890
4891 2013-05-30  Pedro Alves  <palves@redhat.com>
4892
4893         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4894         pointer.
4895
4896 2013-05-30  Yao Qi  <yao@codesourcery.com>
4897
4898         * remote.c (remote_check_symbols): Remove unused parameter
4899         'objfile'.
4900         Declaration update.
4901         (remote_start_remote, remote_new_objfile): Caller update.
4902
4903 2013-05-30  Yao Qi  <yao@codesourcery.com>
4904
4905         * mi/mi-cmds.c (mi_cmds): Define MI command
4906         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4907         DEF_MI_CMD_CLI.
4908
4909 2013-05-29  Pedro Alves  <palves@redhat.com>
4910
4911         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4912         (remote_insert_watchpoint, remote_remove_watchpoint)
4913         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4914         (remote_verify_memory, compare_sections_command)
4915         (remote_search_memory): Set the general process/thread on the
4916         remote side.
4917
4918 2013-05-29  Pedro Alves  <palves@redhat.com>
4919
4920         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4921         (_initialize_aarch64_tdep): Don't call
4922         initialize_tdesc_aarch64_without_fpu.
4923         * features/Makefile (WHICH): Remove reference to
4924         aarch64-without-fpu.
4925         * features/aarch64-without-fpu.c: Delete file.
4926         * regformats/aarch64-without-fpu.dat: Delete file.
4927
4928 2013-05-28  Yao Qi  <yao@codesourcery.com>
4929
4930         * tracepoint.c (stringify_collection_list): Remove parameter
4931         'string'.
4932         (encode_actions): Caller update.  Remove local variables.
4933
4934 2013-05-24  Yao Qi  <yao@codesourcery.com>
4935
4936         * tracepoint.c (TFILE_PID): Remove.
4937         (tfile_open): Don't add thread and inferior.
4938         (tfile_close): Don't set 'inferior_ptid'.  Don't call
4939         exit_inferior_silent.
4940         (tfile_thread_alive): Remove.
4941         (init_tfile_ops): Don't set field 'to_thread_alive' of
4942         tfile_ops.
4943
4944 2013-05-23  Doug Evans  <dje@google.com>
4945
4946         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4947
4948 2013-05-23  Pedro Alves  <palves@redhat.com>
4949
4950         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4951         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4952         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4953         Only define if HAVE_SOCKETS is defined.
4954         * configure.ac: Check for sys/socket.h.
4955         * config.in, configure: Regenerate.
4956
4957 2013-05-23  Pedro Alves  <palves@redhat.com>
4958
4959         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4960         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4961         printing uint32_t variables.
4962
4963 2013-05-23  Pedro Alves  <palves@redhat.com>
4964
4965         * NEWS: Mention GDBserver range stepping support.
4966
4967 2013-05-23  Yao Qi  <yao@codesourcery.com>
4968             Pedro Alves  <palves@redhat.com>
4969
4970         * gdbthread.h (struct thread_control_state) <may_range_step>: New
4971         field.
4972         * infcmd.c (step_once, until_next_command): Enable range stepping.
4973         * infrun.c (displaced_step_prepare): Disable range stepping.
4974         (resume): Disable range stepping if stepping over a breakpoint or
4975         we have software watchpoints.  If range stepping is enabled,
4976         assert the thread is in the stepping range.
4977         (clear_proceed_status_thread): Clear may_range_step.
4978         (handle_inferior_event): Disable range stepping as soon as we know
4979         the thread that hit the event.  Re-enable it whenever we're going
4980         to step with a step range.
4981         * remote.c (struct vCont_action_support) <r>: New field.
4982         (use_range_stepping): New global.
4983         (remote_vcont_probe): Handle 'r' action.
4984         (append_resumption): Append an 'r' action if the thread may range
4985         step.
4986         (show_range_stepping): New function.
4987         (set_range_stepping): New function.
4988         (_initialize_remote): Call add_setshow_boolean_cmd to register the
4989         'set range-stepping' and 'show range-stepping' commands.
4990         * NEWS: Mention range stepping, the new vCont;r action, and the
4991         new "set/show range-stepping" commands.
4992
4993 2013-05-23  Yao Qi  <yao@codesourcery.com>
4994             Pedro Alves  <palves@redhat.com>
4995
4996         * remote.c (struct vCont_action_support): New struct.
4997         (struct remote_state) <support_vCont_t>: Remove field.
4998         <vCont_actions_support>: New field.
4999         (remote_vcont_probe, remote_stop_ns): Update.
5000
5001 2013-05-23  Yao Qi  <yao@codesourcery.com>
5002             Pedro Alves  <palves@redhat.com>
5003
5004         * gdbthread.h (pc_in_thread_step_range): New declaration.
5005         * thread.c (pc_in_thread_step_range): New function.
5006         * infrun.c (handle_inferior_event): Use it.
5007
5008 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
5009
5010         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5011         of sprintf.
5012
5013 2013-05-22  Keith Seitz  <keiths@redhat.com>
5014
5015         * ada-lang.c (is_known_support_routine): Add explicit free of
5016         'func_name' from find_frame_funname.
5017         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5018         for func_name from find_frame_funname.
5019         * python/py-frame.c (frapy_name): Add explicit free of
5020         'name' from find_frame_funname.
5021         * stack.c (find_frame_funname): Add comment explaining that
5022         funcp must be freed by the caller.
5023         Return copy of symbol names instead of pointers.
5024         (print_frame): Add a cleanup for 'funname' from
5025         find_frame_funname.
5026         * stack.h (find_frame_funname): Remove "const" from
5027         'funname' parameter.
5028
5029 2013-05-22  Tom Tromey  <tromey@redhat.com>
5030
5031         PR c++/15401:
5032         * c-valprint.c (c_value_print): Use value_addr for
5033         references.  Convert back to reference type with value_ref.
5034
5035 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
5036
5037         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5038         unloaded DLL, it will be done by handle_solib_event.  See
5039         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5040         details.
5041
5042 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
5043
5044         * ui-out.c: Create typedef ui_out_level_p and define vector
5045         operations for that type.
5046         (struct ui_out): Use a vector instead of an array.
5047         (current_level): Return level from a vector.
5048         (push_level): Create a level in a vector.
5049         (pop_level): Delete a level in a vector.
5050         (ui_out_new): Create initial level zero level, and store in a
5051         vector.
5052         (ui_out_destroy): Add vector cleanup.
5053
5054 2013-05-22  Pedro Alves  <palves@redhat.com>
5055
5056         * python/python-internal.h (gdb_Py_DECREF): Tag with
5057         "ARI: editCase function".
5058
5059 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5060
5061         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5062
5063 2013-05-21  Pedro Alves  <palves@redhat.com>
5064
5065         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5066         whether PRINTER is NULL before installing a Py_DECREF cleanup.
5067         * python/py-utils.c (py_decref): Don't check for NULL before
5068         calling Py_DECREF.
5069
5070 2013-05-21  Pedro Alves  <palves@redhat.com>
5071
5072         * python/py-utils.c (py_decref): Remove extra braces.
5073         (gdb_pymodule_addobject): Remove extra braces.
5074         * python-internal.h (gdb_Py_DECREF): New static inline function.
5075         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5076
5077 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5078
5079         * breakpoints.c (detach_breakpoints): Do not
5080         detach breakpoints locations with loc_type bp_loc_other.
5081
5082 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5083
5084         Workaround Python 2.6.
5085         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5086         a block.
5087
5088 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5089
5090         Code cleanup: constification.
5091         * solib.c (solib_ops): Make return type and ops variable type const.
5092         (set_solib_ops): Make the new_ops parameter and ops variable const.
5093         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5094         (solib_add, solib_keep_data_in_core, clear_solib)
5095         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5096         (reload_shared_libraries, solib_global_lookup): Make the ops variable
5097         const.
5098         * solib.h (set_solib_ops): Make the new_ops parameter const.
5099
5100 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5101
5102         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5103         variable.
5104         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5105         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5106         (SYSTEM_GDBINIT_FILES): New variables.
5107         (all): Add stamp-system-gdbinit.
5108         (stamp-system-gdbinit): New rule.
5109         (clean-system-gdbinit, install-system-gdbinit)
5110         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
5111         (install-only): Add dependency on install-system-gdbinit.
5112         (uninstall): Add dependency on uninstall-system-gdbinit.
5113         (clean): Add dependency on clean-system-gdbinit.
5114         * system-gdbinit/elinos.py: New file.
5115         * system-gdbinit/wrs-linux.py: New file.
5116
5117 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5118
5119         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5120
5121 2013-05-21  Hui Zhu  <hui@codesourcery.com>
5122
5123         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5124         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5125         * mi/mi-cmd-break.c (ctype.h): New include.
5126         (gdb_obstack.h): New include.
5127         (mi_argv_to_format, mi_cmd_break_insert_1): New.
5128         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5129         (mi_cmd_dprintf_insert): New.
5130         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5131         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5132
5133 2013-05-20  Tom Tromey  <tromey@redhat.com>
5134
5135         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5136
5137 2013-05-20  Tom Tromey  <tromey@redhat.com>
5138
5139         * python/py-value.c (valpy_get_dynamic_type): Simplify
5140         dynamic_type assignment.  Use Py_XINCREF.
5141
5142 2013-05-20  Tom Tromey  <tromey@redhat.com>
5143
5144         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5145
5146 2013-05-20  Tom Tromey  <tromey@redhat.com>
5147
5148         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5149         (gdbpy_selected_frame): Move object-construction code
5150         out of TRY_CATCH.
5151
5152 2013-05-20  Tom Tromey  <tromey@redhat.com>
5153
5154         * python/py-arch.c (gdbpy_initialize_arch): Use
5155         gdb_pymodule_addobject.
5156         * python/py-block.c (gdbpy_initialize_blocks): Use
5157         gdb_pymodule_addobject.
5158         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5159         gdb_pymodule_addobject.
5160         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5161         gdb_pymodule_addobject.
5162         * python/py-event.c (gdbpy_initialize_event_generic): Use
5163         gdb_pymodule_addobject.
5164         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5165         gdb_pymodule_addobject.
5166         * python/py-evts.c (add_new_registry): Use
5167         gdb_pymodule_addobject.
5168         (gdbpy_initialize_py_events): Likewise.
5169         * python/py-finishbreakpoint.c
5170         (gdbpy_initialize_finishbreakpoints): Use
5171         gdb_pymodule_addobject.
5172         * python/py-frame.c (gdbpy_initialize_frames): Use
5173         gdb_pymodule_addobject.
5174         * python/py-function.c (gdbpy_initialize_functions): Use
5175         gdb_pymodule_addobject.
5176         * python/py-inferior.c (gdbpy_initialize_inferior): Use
5177         gdb_pymodule_addobject.
5178         * python/py-infthread.c (gdbpy_initialize_thread): Use
5179         gdb_pymodule_addobject.
5180         * python/py-objfile.c (gdbpy_initialize_objfile): Use
5181         gdb_pymodule_addobject.
5182         * python/py-param.c (gdbpy_initialize_parameters): Use
5183         gdb_pymodule_addobject.
5184         * python/py-progspace.c (gdbpy_initialize_pspace): Use
5185         gdb_pymodule_addobject.
5186         * python/py-symbol.c (gdbpy_initialize_symbols): Use
5187         gdb_pymodule_addobject.
5188         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5189         gdb_pymodule_addobject.
5190         * python/py-type.c (gdbpy_initialize_types): Use
5191         gdb_pymodule_addobject.
5192         * python/py-utils.c (gdb_pymodule_addobject): New function.
5193         * python/py-value.c (gdbpy_initialize_values): Use
5194         gdb_pymodule_addobject.
5195         * python/python-internal.h (gdb_pymodule_addobject): Declare.
5196         * python/python.c (_initialize_python): Use
5197         gdb_pymodule_addobject.
5198
5199 2013-05-20  Tom Tromey  <tromey@redhat.com>
5200
5201         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5202         * python/py-param.c (get_set_value, get_show_value): Use
5203         explicit decrefs.
5204         * python/python.c (start_type_printers, apply_type_printers):
5205         Use explicit decrefs.
5206
5207 2013-05-20  Tom Tromey  <tromey@redhat.com>
5208
5209         * python/py-evts.c (gdbpy_initialize_py_events): Don't
5210         incref the module.
5211
5212 2013-05-20  Tom Tromey  <tromey@redhat.com>
5213
5214         * python/python.c (gdbpy_run_events): Decref the result
5215         of PyObject_CallObject.
5216
5217 2013-05-20  Tom Tromey  <tromey@redhat.com>
5218
5219         * python/py-symtab.c (set_sal): Use
5220         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
5221         (symtab_and_line_to_sal_object): Update.
5222
5223 2013-05-20  Tom Tromey  <tromey@redhat.com>
5224
5225         * python/py-param.c (compute_enum_values): Decref 'item'.
5226
5227 2013-05-20  Tom Tromey  <tromey@redhat.com>
5228
5229         * mi/mi-main.c: Include python-internal.h.
5230         (mi_cmd_list_features): Check gdb_python_initialized.
5231         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5232         (python_inferior_exit, python_new_objfile, add_thread_object)
5233         (delete_thread_object, py_free_inferior): Check
5234         gdb_python_initialized.
5235         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5236         gdb_python_initialized.
5237         * python/py-type.c (save_objfile_types): Check
5238         gdb_python_initialized.
5239         * python/python-internal.h (gdb_python_initialized): Declare.
5240         * python/python.c (ensure_python_env): Throw exception if
5241         Python not initialized.
5242         (before_prompt_hook, source_python_script_for_objfile)
5243         (start_type_printers, apply_type_printers,
5244         free_type_printers): Check gdb_python_initialized.
5245         * varobj.c (varobj_get_display_hint)
5246         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5247         (install_new_value_visualizer, varobj_set_visualizer)
5248         (value_get_print_value): Check gdb_python_initialized.
5249
5250 2013-05-20  Tom Tromey  <tromey@redhat.com>
5251
5252         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5253         Check errors.
5254         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5255         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5256         Check errors.
5257         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5258         Check errors.
5259         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5260         Check errors.
5261         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5262         Check errors.
5263         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5264         init function to return 'int'.
5265         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5266         Return 'int'.  Check errors.
5267         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5268         Check errors.
5269         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5270         Return 'int'.  Check errors.
5271         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5272         Check errors.
5273         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5274         Check errors.
5275         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5276         Check errors.
5277         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5278         Check errors.
5279         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5280         Check errors.
5281         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5282         Check errors.
5283         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5284         Check errors.
5285         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5286         Check errors.
5287         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5288         Check errors.
5289         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5290         Check errors.
5291         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5292         Check errors.
5293         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5294         Check errors.
5295         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5296         Check errors.
5297         * python/python-internal.h (gdbpy_initialize_auto_load,
5298         gdbpy_initialize_values, gdbpy_initialize_frames,
5299         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5300         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5301         gdbpy_initialize_blocks, gdbpy_initialize_types,
5302         gdbpy_initialize_functions, gdbpy_initialize_pspace,
5303         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5304         gdbpy_initialize_finishbreakpoints,
5305         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5306         gdbpy_initialize_thread, gdbpy_initialize_inferior,
5307         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5308         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5309         gdbpy_initialize_signal_event,
5310         gdbpy_initialize_breakpoint_event,
5311         gdbpy_initialize_continue_event,
5312         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5313         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5314         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5315         * python/python.c (gdb_python_initialized): New global.
5316         (gdbpy_initialize_events): Return 'int'.  Check errors.
5317         (_initialize_python): Check errors.  Set
5318         gdb_python_initialized.
5319
5320 2013-05-20  Tom Tromey  <tromey@redhat.com>
5321
5322         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5323         Decref the reslut of PyObject_CallMethod.
5324
5325 2013-05-20  Tom Tromey  <tromey@redhat.com>
5326
5327         * python/py-event.c (gdbpy_initialize_event_generic): Return
5328         early if PyType_Ready fails.
5329
5330 2013-05-20  Tom Tromey  <tromey@redhat.com>
5331
5332         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5333         as 'default' in the switch.
5334
5335 2013-05-20  Tom Tromey  <tromey@redhat.com>
5336
5337         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
5338         get_addr_from_python calls out of TRY_CATCH.
5339         (infpy_write_memory, infpy_search_memory): Likewise.
5340         * python/py-utils.c (get_addr_from_python): Return negative
5341         value on error.  Use TRY_CATCH.
5342         * python/python-internal.h (get_addr_from_python): Use
5343         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5344
5345 2013-05-20  Tom Tromey  <tromey@redhat.com>
5346
5347         * python/py-event.c (evpy_emit_event): Decref the
5348         result of PyObject_CallFunctionObjArgs.
5349
5350 2013-05-20  Tom Tromey  <tromey@redhat.com>
5351
5352         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5353         Correctly decref.
5354
5355 2013-05-20  Tom Tromey  <tromey@redhat.com>
5356
5357         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5358
5359 2013-05-20  Tom Tromey  <tromey@redhat.com>
5360
5361         * python/py-event.h (gdbpy_initialize_event_generic): Use
5362         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5363         * python/py-evts.c (add_new_registry): Use
5364         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5365         * python/python-internal.h
5366         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5367
5368 2013-05-20  Tom Tromey  <tromey@redhat.com>
5369
5370         * python/py-arch.c (archpy_disassemble): Update.
5371         * python/py-type.c (typy_get_composite, typy_lookup_typename)
5372         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5373         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5374         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5375         macro.
5376         (GDB_PY_HANDLE_EXCEPTION): Update.
5377         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
5378
5379 2013-05-20  Tom Tromey  <tromey@redhat.com>
5380
5381         * python/python-internal.h (events_object_type): Remove.
5382
5383 2013-05-20  Tom Tromey  <tromey@redhat.com>
5384
5385         * python/py-event.h (evpy_emit_event): Use
5386         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5387         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5388         New macro.
5389
5390 2013-05-20  Tom Tromey  <tromey@redhat.com>
5391
5392         * py-evtregistry.c (create_event_object): Decref
5393         eventregistry_object if PyList_New fails.
5394
5395 2013-05-20  Tom Tromey  <tromey@redhat.com>
5396
5397         * py-cmd.c (gdbpy_string_to_argv): Check result of
5398         PyList_New.
5399
5400 2013-05-20  Tom Tromey  <tromey@redhat.com>
5401
5402         * python/python.c (before_prompt_hook): Add cleanup to
5403         decref 'hook'.
5404
5405 2013-05-20  Tom Tromey  <tromey@redhat.com>
5406
5407         * python/py-function.c (fnpy_init): Decref result of
5408         PyObject_GetAttrString.
5409
5410 2013-05-20  Tom Tromey  <tromey@redhat.com>
5411
5412         * python/py-threadevent.c (get_event_thread): Use
5413         CPYCHECKER_RETURNS_BORROWED_REF.
5414         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5415         New define.
5416         (pspace_to_pspace_object, objfile_to_objfile_object)
5417         (find_thread_object): Use it.
5418
5419 2013-05-20  Tom Tromey  <tromey@redhat.com>
5420
5421         * python/py-arch.c (arch_object_type): Use
5422         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5423         * python/py-block.c (block_syms_iterator_object_type):
5424         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5425         * python/py-bpevent.c (breakpoint_event_object_type):
5426         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5427         * python/py-cmd.c (cmdpy_object_type): Use
5428         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5429         * python/py-continueevent.c (continue_event_object_type):
5430         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5431         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5432         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5433         * python/py-events.h (thread_event_object_type):
5434         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5435         * python/py-evtregistry.c (eventregistry_object_type): Use
5436         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5437         * python/py-exitedevent.c (exited_event_object_type):
5438         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5439         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5440         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5441         * python/py-function.c (fnpy_object_type): Use
5442         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5443         * python/py-inferior.c (inferior_object_type, membuf_object_type):
5444         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5445         * python/py-infthread.c (thread_object_type): Use
5446         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5447         * python/py-lazy-string.c (lazy_string_object_type):
5448         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5449         * python/py-newobjfileevent.c (new_objfile_event_object_type):
5450         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5451         * python/py-objfile.c (objfile_object_type): Use
5452         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5453         * python/py-param.c (parmpy_object_type):
5454         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5455         * python/py-progspace.c (pspace_object_type):
5456         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5457         * python/py-signalevent.c (signal_event_object_type):
5458         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5459         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5460         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5461         * python/py-type.c (type_object_type, field_object_type)
5462         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5463         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5464         define.
5465         (value_object_type, block_object_type, symbol_object_type)
5466         (event_object_type, stop_event_object_type, breakpoint_object_type)
5467         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5468
5469 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
5470
5471         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5472         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5473
5474 2013-05-20  Doug Evans  <dje@google.com>
5475
5476         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
5477         For Fission.
5478         * dwarf2read.c (struct dwarf2_per_cu_data): New member
5479         reading_dwo_directly.
5480         (struct signatured_type): New member dwo_unit.
5481         (struct die_reader_specs): New member comp_dir.
5482         (create_signatured_type_table_from_index): Use malloc for
5483         all_type_units instead of objfile's obstack.
5484         (create_all_type_units): Ditto.
5485         (fill_in_sig_entry_from_dwo_entry): New function.
5486         (add_type_unit): New function.
5487         (lookup_dwo_signatured_type): New function.
5488         (lookup_dwp_signatured_type): New function.
5489         (lookup_signatured_type): New arg cu.  All callers updated.
5490         (init_cu_die_reader): Initialize comp_dir.
5491         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
5492         Change assert of matching type signatures to call error on mismatch.
5493         (lookup_dwo_unit): Add assert.
5494         (init_tu_and_read_dwo_dies): New function.
5495         (init_cutu_and_read_dies): Call it.
5496         (build_type_unit_groups): Handle case of no type unit groups created.
5497         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5498         (lookup_dwo_cutu): Tweak complaint.
5499         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5500         (dwarf2_per_objfile_free): Free all_type_units.
5501
5502 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5503
5504         * windows-nat.c (handle_unload_dll): Add missing empty line.
5505
5506 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5507
5508         * dwarf2read.c (prototyped_function_p): New function.
5509         (read_subroutine_type): Use it.
5510
5511 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5512
5513         * rs6000-aix-tdep.c: De-indent some example code provided
5514         as a comment.
5515
5516 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5517
5518         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5519         region is ok for a hardware watchpoint using the new ptrace interface
5520         on Power servers.
5521
5522 2013-05-17  Doug Evans  <dje@google.com>
5523
5524         * NEWS: Mention new maintenance commands check-symtabs, and
5525         expand-symtabs, and renamed check-psymtabs.
5526         * psymtab.c (maintenance_check_psymtabs): Renamed from
5527         maintenance_check_symtabs.  Only process already-expanded symbol
5528         tables.
5529         (_initialize_psymtab): Update.
5530         * symmisc.c (maintenance_check_symtabs): New function.
5531         (maintenance_expand_name_matcher): New function
5532         (maintenance_expand_file_matcher): New function
5533         (maintenance_expand_symtabs): New function.
5534         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5535         commands.
5536
5537 2013-05-17  Tom Tromey  <tromey@redhat.com>
5538
5539         * python/py-inferior.c (infpy_read_memory): Don't call
5540         PyErr_SetString if PyObject_New fails.
5541         * python/py-frame.c (frame_info_to_frame_object): Don't call
5542         PyErr_SetString if PyObject_New fails.
5543
5544 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
5545
5546         * acinclude.m4: Add check for dlopen in libdl.
5547         * configure.ac: Ditto.
5548         * configure: Regenerate.
5549
5550 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
5551
5552         * frame.c (frame_stash): Convert to htab.
5553         (frame_addr_hash): New function.
5554         (frame_addr_hash_eq): New function.
5555         (frame_stash_create): Convert function to create
5556         a hash table.
5557         (frame_stash_add): Convert function to add an entry to a hash
5558         table.
5559         (frame_stash_find): Convert function to search the hash table.
5560         (frame_stash_invalidate): Convert function to empty the hash
5561         table.
5562         (get_frame_id): Only add to stash if a frame_id is created.
5563         (_initialize_frame): Call frame_stash_create.
5564
5565 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
5566
5567         * configure.ac: Ensure MIG is available when building for GNU Hurd
5568         hosts.
5569         * configure: Regenerate.
5570
5571 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5572
5573         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5574
5575 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5576
5577         * ada-lang.c (ada_make_symbol_completion_list): Make sure
5578         all cleanups are done before returning from this function.
5579
5580 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5581
5582         * utils.h: #include "exceptions.h".
5583         (enum errors): Remove partial declaration.
5584
5585 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5586
5587         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5588         * gdbarch.h, gdbarch.c: Regenerate.
5589         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5590         handling.
5591
5592         * rs6000-aix-tdep.h: New file.
5593         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5594         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5595         "xml-utils.h".
5596         (struct field_info, struct ld_info_desc): New types.
5597         (ld_info32_desc, ld_info64_desc): New static constants.
5598         (struct ld_info): New type.
5599         (rs6000_aix_extract_ld_info): New function.
5600         (rs6000_aix_shared_library_to_xml): Likewise.
5601         (rs6000_aix_ld_info_to_xml): Likewise.
5602         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5603         (rs6000_aix_init_osabi): Add call to
5604         set_gdbarch_core_xfer_shared_libraries_aix.
5605         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5606         Remove "xml-utils.h" include.
5607         (LdInfo): Delete typedef.
5608         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5609         Delete macros.
5610         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5611         Adjust code accordingly.
5612         (rs6000_core_ldinfo): Delete, folded into
5613         rs6000_aix_core_xfer_shared_libraries_aix.
5614         (rs6000_xfer_shared_library): Delete.
5615         (rs6000_xfer_shared_libraries): Reimplement.
5616
5617 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
5618
5619         * record.c (record_goto_cmdlist): New.
5620         (cmd_record_goto): Split into this ...
5621         (cmd_record_goto_begin): ... this
5622         (cmd_record_goto_end): ... and this.
5623         (_initialize_record): Change "record goto" to prefix command.
5624         Add commands for "record goto begin" and "record goto end".
5625         Add an alias for "record goto start" to "record goto begin".
5626
5627 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5628
5629         * linespec.c (convert_linespec_to_sals): New comment for
5630         SOURCE_FILENAME assignment.
5631
5632 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5633
5634         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5635         internal_warning.
5636
5637 2013-05-14  Tom Tromey  <tromey@redhat.com>
5638
5639         * eval.c (parse_and_eval_long): Make 'exp' const.
5640         * value.h (parse_and_eval_long): Update.
5641
5642 2013-05-14  Tom Tromey  <tromey@redhat.com>
5643
5644         * ui-file.c (gdb_fopen): Make arguments const.
5645         * ui-file.h (gdb_fopen): Make arguments const.
5646
5647 2013-05-14  Tom Tromey  <tromey@redhat.com>
5648
5649         * remote.c (remote_set_trace_notes): Make arguments const.
5650         * target.c (update_current_target): Update cast.
5651         * target.h (to_set_trace_notes): Make arguments const.
5652
5653 2013-05-14  Tom Tromey  <tromey@redhat.com>
5654
5655         * go32-nat.c (go32_terminal_info): Make 'args' const.
5656         * inferior.h (child_terminal_info): Update.
5657         * inflow.c (child_terminal_info): Make 'args' const.
5658         * target.c (default_terminal_info): Make 'args' const.
5659         (debug_to_terminal_save_ours): Likewise.
5660         * target.h (struct target_ops) <to_terminal_info>: Make argument
5661         const.
5662
5663 2013-05-13  Tom Tromey  <tromey@redhat.com>
5664
5665         * gcore.c (create_gcore_bfd): Make 'filename' const.
5666         * gcore.h (create_gcore_bfd): Make 'filename' const.
5667         * record-full.c (record_full_save): Make 'recfilename' const.
5668         * target.c (target_save_record): Make 'filename' const.
5669         * target.h (struct target_ops) <to_save_record>: Make 'filename'
5670         const.
5671         (target_save_record): Likewise.
5672
5673 2013-05-13  Tom Tromey  <tromey@redhat.com>
5674
5675         PR gdb/15338:
5676         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5677         ranges section has been read.
5678
5679 2013-05-13  Tom Tromey  <tromey@redhat.com>
5680
5681         PR exp/15364:
5682         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5683         STRUCTOP_PTR>: Return a not_lval value for
5684         EVAL_AVOID_SIDE_EFFECTS.
5685         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5686         for EVAL_AVOID_SIDE_EFFECTS.
5687
5688 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
5689
5690         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5691         floating point registers to register type before storing
5692         value.
5693         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5694         Likewise.
5695
5696 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5697             Tom Tromey  <tromey@redhat.com>
5698
5699         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5700         New functions.
5701         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5702         Declare.
5703         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5704         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5705         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5706         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5707
5708 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
5709             Tom Tromey  <tromey@redhat.com>
5710
5711         PR build/15414:
5712         * configure: Rebuild.
5713         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5714         with -Wno-format.
5715
5716 2013-05-10  Pedro Alves  <palves@redhat.com>
5717
5718         * remote.c (_initialize_remote): Fix spelling of
5719         qXfer:traceframe-info:read packet in packet config command.
5720
5721 2013-05-10  David Taylor  <dtaylor@emc.com>
5722
5723         PR remote/15455
5724
5725         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5726         "QTro" at start of packet.
5727
5728 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5729
5730         * solib-aix.c (solib_aix_relocate_section_addresses):
5731         For the .bss section action, apply the same offset as
5732         the .data section.
5733
5734 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5735
5736         * solib-aix.c (solib_aix_relocate_section_addresses):
5737         Remove FIXME comment.
5738
5739 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5740
5741         PR tdep/15420:
5742         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5743         New functions, directly copied from sparc-sol-thread.c.
5744         * sparc-sol-thread.c: Delete.
5745         * configure.ac: Remove code handling sparc-solaris-thread.c.
5746         * configure: Regenerate.
5747
5748 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
5749
5750         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5751         filter logic.
5752         (backtrace_command): Add "no-filters" option parsing.
5753         (_initialize_stack): Alter help to reflect "no-filters" option.
5754         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5755         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5756         (py-frame.o): Add target
5757         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5758         filter files.
5759         * python/python.h: Add new frame filter constants, and flag enum.
5760         (apply_frame_filter): Add definition.
5761         * python/python.c (apply_frame_filter): New non-Python
5762         enabled function.
5763         * python/py-utils.c (py_xdecref): New function.
5764         (make_cleanup_py_xdecref): Ditto.
5765         * python/py-objfile.c: Declare frame_filters dictionary.
5766         (objfpy_dealloc): Add frame_filters dealloc.
5767         (objfpy_new): Initialize frame_filters attribute.
5768         (objfile_to_objfile_object): Ditto.
5769         (objfpy_get_frame_filters): New function.
5770         (objfpy_set_frame_filters): New function.
5771         * python/py-progspace.c: Declare frame_filters dictionary.
5772         (pspy_dealloc): Add frame_filters dealloc.
5773         (pspy_new): Initialize frame_filters attribute.
5774         (pspacee_to_pspace_object): Ditto.
5775         (pspy_get_frame_filters): New function.
5776         (pspy_set_frame_filters): New function.
5777         * python/py-framefilter.c: New file.
5778         * python/lib/gdb/command/frame_filters.py: New file.
5779         * python/lib/gdb/frames.py: New file.
5780         * python/lib/gdb/__init__.py: Initialize global frame_filters
5781         dictionary
5782         * python/lib/gdb/FrameDecorator.py: New file.
5783         * python/lib/gdb/FrameIterator.py: New file.
5784         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5785         * mi/mi-cmds.h: Declare.
5786         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5787         --no-frame-filter logic, and Python frame filter logic.
5788         (stack_enable_frame_filters): New function.
5789         (parse_no_frame_option): Ditto.
5790         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5791         filter logic.
5792         (mi_cmd_stack_list_locals): Ditto.
5793         (mi_cmd_stack_list_args): Ditto.
5794         (mi_cmd_stack_list_variables): Ditto.
5795         * NEWS: Add frame filter note.
5796
5797 2013-05-09  Doug Evans  <dje@google.com>
5798
5799         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5800         All callers updated.
5801         (syms_from_objfile): Ditto.  Make static.
5802         (symbol_file_add_with_addrs): Renamed from
5803         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
5804         num_offsets.  All callers updated.
5805         * symfile.h (syms_from_objfile): Delete.
5806
5807         * symfile.c (decrement_reading_symtab): Add assert.
5808         (increment_reading_symtab): Ditto.
5809
5810 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
5811
5812         * source.c (forward_search_command): Replace call to getc
5813         by call to fgetc.
5814         (reverse_search_command): Likewise.
5815
5816 2013-05-08  Doug Evans  <dje@google.com>
5817
5818         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5819         matching test.
5820
5821 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5822
5823         * sol-thread.c (info_cb): Factorize the code a little.
5824
5825 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5826
5827         * sol-thread.c (info_cb): Rework the output of the "maintenance
5828         info sol-threads" command a bit.
5829
5830 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5831
5832         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5833         Replace ti.ti_startfunc by ti.ti_pc.
5834
5835 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5836
5837         * solib-aix.c (solib_aix_free_library_list): New function
5838         for the case where HAVE_LIBEXPAT is not defined.
5839
5840 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5841
5842         PR breakpoints/15413:
5843         * breakpoint.c (condition_completer): Simplify the code to
5844         disconsider multiple locations of breakpoints when completing the
5845         "condition" command.
5846
5847 2013-05-07  Pierre Muller  <muller@sourceware.org>
5848
5849         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5850         instead of <sys/wait.h>.
5851
5852 2013-05-07  Pierre Muller  <muller@sourceware.org>
5853
5854         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5855         trailing new line from warning message.
5856
5857 2013-05-07  Pierre Muller  <muller@sourceware.org>
5858
5859         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5860         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5861
5862 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5863
5864         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5865         error message (ARI fix).
5866
5867 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5868
5869         * features/library-list-aix.dtd: Replace library-list by
5870         library-list-aix.
5871         * rs6000-nat.c: Replace library-list by library-list-aix
5872         throughout.
5873         * solib-aix.c: Likewise.
5874
5875 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5876
5877         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5878         Renames TARGET_OBJECT_AIX_LIBRARIES.
5879         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5880         TARGET_OBJECT_LIBRARIES_AIX throughout.
5881         * solib-aix.c: Likwise.
5882
5883 2013-05-07  Yao Qi  <yao@codesourcery.com>
5884
5885         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5886         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5887
5888 2013-05-07  Yao Qi  <yao@codesourcery.com>
5889
5890         * solib-dsbt.c (enable_break): Declare.
5891         (dsbt_current_sos): Remove call to enable_break2.
5892         (enable_break2): Rename to enable_break.  Set solib breakpoint
5893         on '_dl_debug_state'.
5894         (enable_break): Remove.
5895
5896 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
5897
5898         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5899         debug state prior to replicating existing hardware watchpoints or
5900         breakpoints.
5901
5902 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5903
5904         * gcore.c (gcore_create_callback): Ignore sections with
5905         separate_debug_objfile_backlink != NULL.
5906
5907 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
5908             Andrew Jenner  <andrew@codesourcery.com>
5909             Chung-Lin Tang  <cltang@codesourcery.com>
5910             Julian Brown  <julian@codesourcery.com>
5911
5912         Based on the nios2-elf port from Altera Corporation.
5913
5914         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5915         nios2-linux-tdep.o.
5916         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5917         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5918         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5919         * nios2-tdep.h: New.
5920         * nios2-tdep.c: New.
5921         * nios2-linux-tdep.c: New.
5922         * features/Makefile (WHICH): Add nios2-linux.
5923         (nios2-linux-expedite): Set.
5924         * features/nios2-cpu.xml: New.
5925         * features/nios2.xml: New.
5926         * features/nios2-linux.xml: New.
5927         * features/nios2.c: New (autogenerated).
5928         * features/nios2-linux.c: New (autogenerated).
5929         * regformats/nios2-linux.dat: New (autogenerated).
5930         * NEWS (Changes since GDB 7.6): Add new Nios II targets
5931         and commands.
5932
5933 2013-05-06  Doug Evans  <dje@google.com>
5934
5935         * symfile.c: Whitespace cleanup.
5936
5937         * solist.h (struct target_so_ops): New member clear_so.
5938         * solib-svr4.c (svr4_clear_so): New function.
5939         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5940         * solib.c (clear_so): Renamed from free_so_symbols.
5941         All callers updated.  Call target clear_so if it exists.
5942
5943 2013-05-06  Tom Tromey  <tromey@redhat.com>
5944
5945         * ada-lang.c (ada_value_primitive_packed_val): Don't
5946         call value_incref.
5947         * value.c (set_value_parent): Incref the new parent and decref
5948         the old parent.
5949         (value_copy, value_primitive_field): Use set_value_parent.
5950
5951 2013-05-06  Tom Tromey  <tromey@redhat.com>
5952
5953         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5954         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5955         if needed.
5956         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5957         * dwarf2read.c (write_constant_as_bytes)
5958         (dwarf2_fetch_constant_bytes): New functions.
5959
5960 2013-05-06  Tom Tromey  <tromey@redhat.com>
5961
5962         * dwarf2read.c (dwarf2_const_value_data): Remove unused
5963         parameters.
5964         (dwarf2_const_value_attr): Update.
5965
5966 2013-05-06  Tom Tromey  <tromey@redhat.com>
5967
5968         * somread.c (som_symfile_offsets): Add 'const' to addrs.
5969         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5970         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5971         Remove declaration.
5972
5973 2013-05-06  Tom Tromey  <tromey@redhat.com>
5974
5975         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5976         objfile's obstack.
5977
5978 2013-05-06  Doug Evans  <dje@google.com>
5979
5980         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5981         * stabsread.h (process_one_symbol): Update declaration.
5982         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5983         * elfread.c (elf_symfile_relocate_probe): Ditto.
5984         * psymtab.c (relocate_psymtabs): Ditto.
5985         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5986         (objfile_relocate): Ditto.
5987         * objfiles.h (objfile_relocate): Update declaration.
5988         * symfile.c (relative_addr_info_to_section_offsets): Constify
5989         addrs parameter.
5990         (default_symfile_offsets): Ditto.
5991         (syms_from_objfile_1): Constify offsets parameter.
5992         (syms_from_objfile): Ditto.
5993         (symbol_file_add_with_addrs_or_offsets): Ditto.
5994         (symfile_map_offsets_to_segments): Constify data parameter.
5995         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5996         delta parameters of member relocate.
5997         (struct sym_probe_fns): Constify new_offsets,
5998         delta parameters of member sym_relocate_probe.
5999         (struct sym_fns): Constify section_addr_info parameter of member
6000         sym_offsets.
6001         (relative_addr_info_to_section_offsets): Update declaration.
6002         (default_symfile_offsets): Ditto.
6003         (syms_from_objfile): Ditto.
6004         (symfile_map_offsets_to_segments): Ditto.
6005
6006         * symfile.c (syms_from_objfile_1): Use correct section count when
6007         objfile->sf == NULL.
6008
6009 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
6010
6011         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6012
6013 2013-05-06  Doug Evans  <dje@google.com>
6014
6015         * psympriv.h (struct partial_symtab): Augment comment for member
6016         section_offsets.
6017
6018 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6019
6020         Reimplement shared library support on ppc-aix...
6021         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6022         * features/library-list-aix.dtd: New file.
6023         * solib-aix.h, solib-aix.c: New file.
6024         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6025         (rs6000_find_toc_address_hook): Delete.
6026         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6027         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6028         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
6029         "xml-utils.h".
6030         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6031         (vmap_symtab, fixup_breakpoints): Delete.
6032         (rs6000_xfer_shared_libraries): New function.
6033         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6034         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6035         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6036         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6037         (rs6000_xfer_shared_library): New function.
6038         (find_toc_address): Delete.
6039         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6040         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6041         * xcoffread.c (record_minimal_symbol): Reloate symbol address
6042         before creating minimal symbol.  Adjust function description
6043         accordingly.
6044         (scan_xcoff_symtab): Replace call to
6045         prim_record_minimal_symbol_and_info by call to
6046         record_minimal_symbol.
6047         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6048         around default_symfile_offsets.
6049         * configure.tgt: Add solib-aix.o to gdb_target_obs for
6050         powerpc-aix targets.
6051         * config/rs6000/nm-rs6000.h: Delete.
6052         * config/powerpc/aix.mh (NAT_FILE): Delete.
6053         (NATDEPFILES): Remove xcoffsolib.o.
6054         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6055         (ALL_TARGET_OBS): Add solib-aix.o.
6056         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6057         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
6058         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
6059         * xcoffsolib.h, xcoffsolib.c: Delete.
6060
6061         * solib.c (reload_shared_libraries): Remove reference to
6062         SOLIB_CREATE_INFERIOR_HOOK.
6063         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6064         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6065         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6066         comment.
6067         * corelow.c (deprecated_core_resize_section_table): Delete.
6068         * exec.c: Remove include of xcoffsolib.h".
6069         (map_vmap, vmap): Delete.
6070         (exec_close_1): Remove references to vmap.
6071         (exec_file_attach): Remove vmap handling code, and reference
6072         to DEPRECATED_IBM6000_TARGET.
6073         (bfdsec_to_vmap): Delete.
6074         (exec_files_info): Remove block of code handling VMAP.
6075         * infcmd.c (post_create_inferior): Remove reference to
6076         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6077         * infrun.c (follow_exec): Remove reference to
6078         SOLIB_CREATE_INFERIOR_HOOK.
6079         * stack.c (print_frame): Remove reference to PC_SOLIB.
6080         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6081         (dsbt_relocate_main_executable): Likewise.
6082         * solib-frv.c (frv_current_sos): Likewise.
6083
6084 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6085
6086         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6087         to target_write_memory and target_read_memory.
6088
6089 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6090
6091         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6092         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6093
6094 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6095
6096         * darwin-nat.c: Replace all "%x" instances in format strings
6097         into "0x%x" throughout.
6098
6099 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6100
6101         * darwin-nat.c (darwin_mourn_inferior): Replace call to
6102         gdb_assert by call to MACH_CHECK_ERROR.
6103         (darwin_attach_pid): Raise an error rather than a failed
6104         assertion when various system calls failed.  Report a warning
6105         instead of raising a failed assertion when PREV_NOT is not NULL
6106         after call to mach_port_request_notification.
6107         (darwin_ptrace_me): Raise an error rather than a failed
6108         assertion when read returns nonzero.
6109
6110 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6111
6112         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6113
6114 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6115
6116         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6117
6118 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6119
6120         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6121         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6122         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
6123         a stale cleanup.  Fix double free of NAME.
6124
6125 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
6126
6127         * windows-nat.c (windows_delete_thread): Accept an additional
6128         argument, the thread's exit code, and announce thread death when
6129         print_thread_events is non-zero and we are deleting a thread that
6130         is not the main thread.
6131         (get_windows_debug_event): Pass thread exit code to
6132         windows_delete_thread.
6133
6134 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6135
6136         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6137         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6138         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6139         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6140         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6141         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6142         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6143         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6144         (gdbarch_tdep): New struct.
6145         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6146         E_NUM_REGS.
6147         (v850e3v5_register_name): New function.
6148         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6149         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
6150         code handling the struct return conventions for the RH850 ABI.
6151         Update all callers.
6152         (v850_eight_byte_align_p): New function.
6153         (v850_push_call_dummy): Push structs by value, not by reference
6154         for the RH850 ABI.  Add support for eight byte alignment.
6155         (v850_dbtrap_breakpoint_from_pc): New function.
6156         (v850_gdbarch_init): Add ABI detection code.  Register
6157         v850e3v5_register_name for the v850e3v5 architecture.  Set the
6158         number of registers for v850e3v5.  Register
6159         v850_dbtrap_breakpoint_from_pc as appropriate.
6160         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6161
6162 2013-05-03  Doug Evans  <dje@google.com>
6163
6164         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6165         of bfd_count_sections.
6166         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6167         * symfile.c (default_symfile_offsets): Ditto.
6168         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
6169         one entry, not bfd_count_sections entries.
6170
6171 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6172
6173         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6174         `save' and `restore' register groups.  Don't include SPL
6175         or SPH in these groups.
6176         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
6177         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
6178         RL78_ES_REGNUM, and RL78_CS_REGNUM.
6179         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
6180         dwarf2_append_unwinders().
6181
6182 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6183
6184         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6185         ignore SIGINT and SIGTRAP in case these internal signals are
6186         caught explicitely.
6187
6188 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6189
6190         * darwin-nat.c (darwin_read_write_inferior): Change types
6191         of parameters rdaddr and wraddr to "gdb_byte *". Change type
6192         of copy_count to "mach_msg_type_number_t".
6193         (darwin_read_dyld_info): Change type of parameter
6194         rdaddr to "gdb_byte *".
6195
6196 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6197
6198         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6199         of &info->load_map from "char *" to "gdb_byte *".
6200
6201 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6202
6203         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6204         from "char *" to "gdb_byte *".
6205         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6206
6207 2013-04-30  Doug Evans  <dje@google.com>
6208
6209         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6210         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6211         DWO stub.  If DWO isn't found, just use stub.
6212         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6213
6214         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6215         calling init_cutu_and_read_dies.
6216
6217 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6218
6219         * target-descriptions.c (maint_print_c_tdesc_cmd):
6220         Add case to parse structures as register types and
6221         bitfields.
6222
6223 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6224
6225         * MAINTAINERS (Write After Approval): Add myself to the list.
6226
6227 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6228
6229         * sol-thread.c (rw_common): Change type of parameter "buf"
6230         to "gdb_byte *".
6231         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6232         rw_common to "gdb_byte *" instead of "char *".
6233
6234 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6235
6236         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6237         of local variable msym to const struct bound_minimal_symbol.
6238         Adjust use accordingly.
6239         [ti.ti_state == TD_THR_SLEEP]: Likewise.
6240
6241 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
6242
6243         * i386gnu-nat.c (CREG_OFFSET): New macro.
6244         (creg_offset): New array.
6245         (CREG_ADDR): Use creg_offset instead of reg_offset.
6246
6247 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6248
6249         * mep-tdep.c (mep_write_pc): Delete.
6250         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6251         Add call to set_gdbarch_pc_regnum.
6252
6253 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6254
6255         * common/filestuff.c: Replace #include <dirent.h> by
6256         #include "gdb_dirent.h".
6257
6258 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6259
6260         * common/filestuff.c: Replace #include <sys/stat.h> by
6261         #include "gdb_stat.h".
6262
6263 2013-04-29  Pierre Muller  <muller@sourceware.org>
6264
6265         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6266         editCase function rule.
6267         (get_DW_AT_signature_type): Likewise.
6268
6269 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6270
6271         * m32r-tdep.c (m32r_write_pc): Delete.
6272         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6273         Add call to set_gdbarch_pc_regnum.
6274
6275 2013-04-29  Pierre Muller  <muller@sourceware.org>
6276
6277         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6278
6279 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6280
6281         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6282
6283 2013-04-28  Yao Qi  <yao@codesourcery.com>
6284
6285         * solib-dsbt.c (fetch_loadmap): Re-indent.
6286         (displacement_from_map, enable_break2): Likewise.
6287         (dsbt_relocate_section_addresses): Likewise.
6288
6289 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
6290
6291         GDB 7.6 released.
6292
6293 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
6294
6295         PR corefiles/14983:
6296         * dwarf2read.c (process_full_comp_unit): Always create a static
6297         block.
6298
6299 2013-04-25  Hui Zhu  <hui@codesourcery.com>
6300
6301         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6302         to loc->cmd_bytecode.
6303
6304 2013-04-24  Doug Evans  <dje@google.com>
6305
6306         * dwarf2read.c (setup_type_unit_groups): Fix comment.
6307
6308 2013-04-22  Keith Seitz  <keiths@redhat.com>
6309
6310         * tracepoint.c (trace_save):  Call the writer's start method.
6311
6312 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
6313
6314         PR gdb/10462
6315         * cli/cli-decode.c (lookup_command): Show an error if there is no space
6316         before argument.
6317
6318 2013-04-23  Tom Tromey  <tromey@redhat.com>
6319
6320         * common/filestuff.c: Check USE_WIN32API before including
6321         sys/socket.h.
6322         (HAVE_F_GETFD): New define.
6323         (mark_cloexec): Check HAVE_F_GETFD.
6324         (gdb_open_cloexec): Change 'mode' to unsigned long.
6325         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6326         (gdb_pipe_cloexec): Check HAVE_PIPE.
6327         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6328         long.
6329
6330 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6331
6332         PR gdb/15293
6333         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6334
6335 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6336
6337         PR gdb/15165
6338         * breakpoint.c (dprintf_print_recreate): New.
6339         (save_breakpoints): Let it not save dprintf commands.
6340         (initialize_breakpoint_ops): Set dprintf_print_recreate.
6341
6342 2013-04-22  Tom Tromey  <tromey@redhat.com>
6343
6344         PR gdb/7912:
6345         * Makefile.in (SFILES): Add filestuff.c
6346         (COMMON_OBS): Add filestuff.o.
6347         (filestuff.o): New target.
6348         * auto-load.c (auto_load_objfile_script_1): Use
6349         gdb_fopen_cloexec.
6350         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6351         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6352         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6353         * common/agent.c (gdb_connect_sync_socket): Use
6354         gdb_socket_cloexec.
6355         * common/filestuff.c: New file.
6356         * common/filestuff.h: New file.
6357         * common/linux-osdata.c (linux_common_core_of_thread)
6358         (command_from_pid, commandline_from_pid, print_source_lines)
6359         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6360         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6361         gdb_fopen_cloexec.
6362         * common/linux-procfs.c (linux_proc_get_int)
6363         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6364         * config.in, configure: Rebuild.
6365         * configure.ac: Don't check for sys/socket.h.  Check for
6366         fdwalk, pipe2.
6367         * corelow.c (core_open): Use gdb_open_cloexec.
6368         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6369         * fork-child.c (fork_inferior): Call close_most_fds.
6370         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6371         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6372         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6373         Use gdb_fopen_cloexec.
6374         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6375         gdb_open_cloexec.
6376         (linux_async_pipe): Use gdb_pipe_cloexec.
6377         * remote-fileio.c (remote_fileio_func_open): Use
6378         gdb_open_cloexec.
6379         * remote.c (remote_file_put, remote_file_get): Use
6380         gdb_fopen_cloexec.
6381         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6382         close_most_fds.
6383         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6384         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6385         * solib.c (solib_find): Use gdb_open_cloexec.
6386         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6387         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6388         (tfile_open): Use gdb_open_cloexec.
6389         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6390         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6391         * xml-support.c (xml_fetch_content_from_file): Use
6392         gdb_fopen_cloexec.
6393         * main.c (captured_main): Call notice_open_fds.
6394
6395 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6396
6397         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6398         'char *' to 'gdb_byte *'.
6399         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6400         'gdb_byte'.
6401
6402 2013-04-22  Yao Qi  <yao@codesourcery.com>
6403
6404         * infrun.c: Fix typo in comment.
6405
6406 2013-04-22  Andrew Haley  <aph@redhat.com>
6407
6408         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6409         instead of "long".
6410
6411 2013-04-20  Yao Qi  <yao@codesourcery.com>
6412
6413         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6414         'char *' to 'gdb_byte *'.  Cast the return value of
6415         'bt_ctf_get_char_array' to 'gdb_byte *'.
6416
6417 2013-04-19  Pedro Alves  <palves@redhat.com>
6418
6419         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6420         -Wpointer-sign.
6421         * configure: Regenerate.
6422
6423 2013-04-19  Pedro Alves  <palves@redhat.com>
6424
6425         * ser-tcp.c (net_read_prim): Cast second argument to recv to
6426         'void *'.
6427
6428 2013-04-19  Pedro Alves  <palves@redhat.com>
6429
6430         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6431         Change type of 'myaddr' parameter to gdb_byte pointer.
6432         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
6433         to 'long long' pointer instead of to 'unsigned long long'.
6434         (monitor_write_memory_block, monitor_read_memory_single)
6435         (monitor_read_memory): Change type of 'myaddr' parameter to
6436         gdb_byte pointer.
6437
6438 2013-04-19  Pedro Alves  <palves@redhat.com>
6439
6440         * record.c (validate_history_size): Make parameter 'setting'
6441         unsigned.
6442
6443 2013-04-19  Pedro Alves  <palves@redhat.com>
6444
6445         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6446         to 'gdb_byte *'.
6447
6448 2013-04-19  Pedro Alves  <palves@redhat.com>
6449
6450         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6451         local to int.
6452
6453 2013-04-19  Pedro Alves  <palves@redhat.com>
6454
6455         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6456         * ada-tasks.c (read_fat_string_value): Likewise.
6457
6458 2013-04-19  Pedro Alves  <palves@redhat.com>
6459
6460         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6461         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
6462         'offset', and adjust.
6463
6464 2013-04-19  Pedro Alves  <palves@redhat.com>
6465
6466         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6467         (read_index_from_section): Add cast to 'char *'.
6468
6469 2013-04-19  Pedro Alves  <palves@redhat.com>
6470
6471         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6472
6473 2013-04-19  Pedro Alves  <palves@redhat.com>
6474
6475         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6476
6477 2013-04-19  Pedro Alves  <palves@redhat.com>
6478
6479         * record-full.c (record_full_get_bookmark): Change local 'ret'
6480         type to char * and add cast to gdb_byte *.
6481         (record_full_goto_bookmark): Handle 'bookmark' argument as a
6482         string.
6483         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6484
6485 2013-04-19  Pedro Alves  <palves@redhat.com>
6486
6487         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6488         * python/py-prettyprint.c (print_string_repr): Change type of
6489         'output' local to char *.  Add cast to gdb_byte * in
6490         LA_PRINT_STRING call.
6491         (print_children): Change type of 'output' local to char *.
6492         * python/py-value.c (valpy_string): Add cast to const char * in
6493         PyUnicode_Decode call.
6494
6495 2013-04-19  Pedro Alves  <palves@redhat.com>
6496
6497         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6498         and change its type to 'const char *'.  Adjust.
6499         (mips_send_packet): Add cast to 'char *', and remove cast to
6500         'unsigned char *'.
6501         (mips_receive_packet): Remove cast to 'unsigned char *'.
6502         (mips_load_srec): Use bfd_byte.
6503         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6504         (pmon_checkset): Make 'value' parameter unsigned.
6505
6506 2013-04-19  Pedro Alves  <palves@redhat.com>
6507
6508         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6509
6510 2013-04-19  Pedro Alves  <palves@redhat.com>
6511
6512         * remote.c (remote_write_bytes_aux, compare_sections_command)
6513         (remote_read_qxfer)
6514         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6515         (remote_hostio_readlink, remote_bfd_iovec_pread)
6516         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6517         binary buffer, and char when buffer is used as string.
6518         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6519         (trace_save, tfile_open, traceframe_walk_blocks)
6520         (tfile_fetch_registers): Likewise.
6521
6522 2013-04-19  Pedro Alves  <palves@redhat.com>
6523
6524         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6525         buffer and size_t size.  Adjust.
6526         * ser-base.h (ser_base_write): Adjust.
6527         * ser-go32.c (cnts): Change type to size_t.
6528         (dos_write): Change prototype -- take 'void *'
6529         buffer and size_t size.  Adjust.
6530         (dos_info): Print elements of 'cnts' as unsigned long.
6531         * serial.c (serial_write): Likewise.
6532         * serial.h (serial_write): Adjust.
6533         (struct serial_ops) <write>: Change prototype -- take 'void *'
6534         buffer and size_t size.  Adjust.
6535
6536 2013-04-19  Pedro Alves  <palves@redhat.com>
6537
6538         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6539         gdb_byte *.
6540         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6541
6542 2013-04-19  Pedro Alves  <palves@redhat.com>
6543
6544         * alpha-tdep.c (alpha_extract_return_value): Use
6545         regcache_cooked_read_unsigned to read 'v0'.
6546
6547 2013-04-19  Pedro Alves  <palves@redhat.com>
6548
6549         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6550         parameters 'at', 'as' and 'offset' to uint32_t.
6551
6552 2013-04-19  Pedro Alves  <palves@redhat.com>
6553
6554         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6555         'is64' to signed 'int'.
6556
6557 2013-04-19  Pedro Alves  <palves@redhat.com>
6558
6559         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6560         parameter to int *.
6561
6562 2013-04-19  Pedro Alves  <palves@redhat.com>
6563
6564         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6565         'insnbuf' buffer type to unsigned int[].
6566
6567 2013-04-19  Pedro Alves  <palves@redhat.com>
6568
6569         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6570
6571 2013-04-19  Pedro Alves  <palves@redhat.com>
6572
6573         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6574         unsigned long *.
6575
6576 2013-04-19  Pedro Alves  <palves@redhat.com>
6577
6578         * alpha-tdep.c (heuristic_fence_post): Change type to int.
6579         (alpha_heuristic_proc_start): Adjust to check -1 instead of
6580         UINT_MAX.
6581         * mips-tdep.c (heuristic_fence_post): Change type to int.
6582         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6583
6584 2013-04-19  Pedro Alves  <palves@redhat.com>
6585
6586         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6587         (struct gdbarch_tdep) <cris_version>: Make unsigned.
6588         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6589
6590 2013-04-19  Pedro Alves  <palves@redhat.com>
6591
6592         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
6593         it to get a string view of the byte buffer.
6594         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6595         type to gdb_byte *.  Adjust.
6596         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6597         Change local to char *.
6598         * solib-darwin.c (find_program_interpreter): Change return type to
6599         char *.  Adjust.
6600         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6601         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6602         * solib-frv.c (enable_break2): Change local 'buf' to char *.
6603         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6604         * solib-svr4.c (find_program_interpreter): Change return type to
6605         char *.  Adjust.
6606         (enable_break): Change local 'interp_name' to char *.
6607         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6608         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6609         (spu_pseudo_register_write_spu): Use char for string buffer.
6610         Adjust.
6611         (info_spu_event_command, info_spu_signal_command): Add casts to
6612         'char *'.
6613
6614 2013-04-19  Pedro Alves  <palves@redhat.com>
6615
6616         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6617         gdb_byte[].
6618         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6619         * ada-lang.c (ada_value_assign): Use gdb_byte.
6620         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6621         (alphanbsd_sigtramp_offset): Use gdb_byte.
6622         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6623         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6624         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6625         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6626         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6627         * arm-tdep.c (arm_stub_unwind_sniffer)
6628         (arm_displaced_init_closure): Use gdb_byte.
6629         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6630         (arm_default_thumb_le_breakpoint)
6631         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6632         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6633         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6634         * arm-wince-tdep.c (arm_wince_le_breakpoint)
6635         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6636         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6637         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6638         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6639         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6640         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6641         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6642         (cris_store_return_value, cris_extract_return_value): Use
6643         gdb_byte.
6644         (constraint): Change type of parameter to char * from signed
6645         char*.  Use gdb_byte.
6646         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6647         of local buffer to gdb_byte *.
6648         * dwarf2read.c (read_index_from_section): Use gdb_byte.
6649         (create_dwp_hash_table): Change type of locals to gdb_byte *.
6650         (add_address_entry): Change type of local buffer to gdb_byte[].
6651         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6652         (frv_push_dummy_call): Use gdb_byte.
6653         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6654         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6655         (hppa_hpux_supply_save_state): Use gdb_byte.
6656         * hppa-tdep.c (hppa32_push_dummy_call)
6657         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6658         * ia64-tdep.c (extract_bit_field, replace_bit_field)
6659         (slotN_contents, replace_slotN_contents): Change type of parameter
6660         to gdb_byte *.
6661         (fetch_instruction, ia64_pseudo_register_write)
6662         (ia64_register_to_value, ia64_value_to_register)
6663         (ia64_extract_return_value, ia64_store_return_value)
6664         (ia64_push_dummy_call): Use gdb_byte.
6665         * m32c-tdep.c (m32c_return_value): Remove cast.
6666         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6667         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6668         gdb_byte.
6669         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6670         * mn10300-tdep.c (mn10300_store_return_value)
6671         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6672         gdb_byte.
6673         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6674         (moxie_process_record): Remove casts.
6675         * ppc-ravenscar-thread.c (supply_register_at_address)
6676         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6677         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6678         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6679         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6680         * remote.c (compare_sections_command): Use gdb_byte.
6681         * score-tdep.c (score7_free_memblock): Change type of parameter to
6682         gdb_byte *.
6683         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6684         gdb_byte *.  Use gdb_byte.
6685         (sh_push_dummy_call_fpu): Use gdb_byte.
6686         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6687         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6688         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6689         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6690         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6691         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6692         (sh64_store_return_value, sh64_register_convert_to_virtual):
6693         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6694         (sh64_pseudo_register_write): Use gdb_byte.
6695         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6696         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
6697         buffer.
6698         (irix_current_sos): Use gdb_byte.
6699         * solib-som.c (som_current_sos): Use gdb_byte.
6700         * sparc-ravenscar-thread.c (supply_register_at_address)
6701         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6702         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6703         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6704         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6705         'gdb_byte *'.
6706         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6707         'gdb_byte *'.
6708         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6709         * xstormy16-tdep.c (xstormy16_extract_return_value)
6710         (xstormy16_store_return_value): Change parameter type to
6711         'gdb_byte *'.  Adjust.
6712         (xstormy16_push_dummy_call): Use gdb_byte.
6713         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6714         (call0_analyze_prologue, execute_code): Use gdb_byte.
6715
6716 2013-04-19  Vladimir Kargov <kargov@gmail.com>
6717             Pedro Alves  <palves@redhat.com>
6718
6719         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6720         value contents.
6721
6722 2013-04-17  Doug Evans  <dje@google.com>
6723
6724         * dwarf2read.c (struct signatured_type): New member type.
6725         (struct attribute): Replace member signatured_type with signature.
6726         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6727         (read_call_site_scope): Call follow_die_ref instead of
6728         follow_die_ref_or_sig.
6729         (read_structure_type): Rewrite handling of signatured types.
6730         (read_enumeration_type): Ditto.
6731         (read_attribute_value): Update.
6732         (build_error_marker_type): New function.
6733         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
6734         Don't call error for bad types, just build an error marker type.
6735         (dump_die_shallow): Update.
6736         (follow_die_sig_1): Renamed from follow_die_sig.
6737         Don't call error for bad types, instead return NULL.
6738         (follow_die_sig): New function.
6739         (get_signatured_type, get_DW_AT_signature_type): New functions.
6740
6741 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
6742
6743         * aarch64-tdep.c (aarch64_write_pc): Removed.
6744         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6745         function.
6746
6747 2013-04-17  Yao Qi  <yao@codesourcery.com>
6748
6749         * top.c (print_gdb_configuration): Print configure-time
6750         parameter on using libbabeltrace or not.
6751
6752 2013-04-16  Pedro Alves  <palves@redhat.com>
6753
6754         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6755
6756 2013-04-16  Pedro Alves  <palves@redhat.com>
6757
6758         * common/glibc_thread_db.h: Update from upstream glibc
6759         (git 568035b7874a099087b77f7bba3e36a1173787b0).
6760
6761 2013-04-16  Pedro Alves  <palves@redhat.com>
6762
6763         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6764         * common/glibc_thread_db.h: ... this new file ...
6765         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6766
6767 2013-04-16  Will Newton  <will.newton@gmail.com>
6768             Pedro Alves  <palves@redhat.com>
6769
6770         PR build/11881
6771
6772         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6773         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6774         HAVE_THREAD_DB_H.
6775
6776 2013-04-16  Pedro Alves  <palves@redhat.com>
6777             Eli Zaretskii  <eliz@gnu.org>
6778
6779         * NEWS: Mention "set foo unlimited".
6780
6781 2013-04-15  Doug Evans  <dje@google.com>
6782
6783         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6784         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6785         (create_dwo_cu_reader): Renamed from
6786         create_dwo_debug_info_hash_table_reader.
6787         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6788         Remove support for multiple CUs in a DWO file.
6789         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6790
6791         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6792         instead of phex.
6793         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6794         (create_dwo_in_dwp): Ditto.
6795
6796 2013-04-15  Tom Tromey  <tromey@redhat.com>
6797
6798         * NEWS: Move recent entries into "since 7.6" section.
6799
6800 2013-04-15  Tom Tromey  <tromey@redhat.com>
6801
6802         PR c++/13588:
6803         * NEWS: Update.
6804         * break-catch-throw.c (struct exception_catchpoint)
6805         <exception_rx, pattern>: New fields.
6806         (fetch_probe_arguments, dtor_exception_catchpoint)
6807         (check_status_exception_catchpoint)
6808         (print_one_detail_exception_catchpoint): New functions.
6809         (handle_gnu_v3_exceptions): Add "except_rx" argument.
6810         Compile regular expression if needed.
6811         (extract_exception_regexp): New function.
6812         (catch_exception_command_1): Use extract_exception_regexp.
6813         (compute_exception): Use fetch_probe_arguments.
6814         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6815         and check_status fields.
6816         * cp-abi.c (cplus_typename_from_type_info): New function.
6817         * cp-abi.h (cplus_typename_from_type_info): Declare.
6818         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6819         * gdb_regex.h (compile_rx_or_error): Declare.
6820         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6821         comment.
6822         (init_gnuv3_ops): Set get_type_from_type_info field.
6823         * probe.c (compile_rx_or_error): Move...
6824         * utils.c (compile_rx_or_error): ... here.
6825
6826 2013-04-15  Tom Tromey  <tromey@redhat.com>
6827
6828         PR c++/15176:
6829         * NEWS: Update.
6830         * break-catch-throw.c (compute_exception): New function.
6831         (exception_funcs): New global.
6832         (_initialize_break_catch_throw): Create $_exception.
6833         * cp-abi.c (cplus_type_from_type_info): New function.
6834         * cp-abi.h (cplus_type_from_type_info): Declare.
6835         (struct cp_abi_ops) <get_type_from_type_info>: New field.
6836         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6837         (gnuv3_get_type_from_type_info): New functions.
6838         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6839
6840 2013-04-15  Tom Tromey  <tromey@redhat.com>
6841
6842         * break-catch-throw.c (struct exception_names): New.
6843         (exception_functions): Change type.
6844         (re_set_exception_catchpoint): Look for SDT probes.
6845
6846 2013-04-15  Tom Tromey  <tromey@redhat.com>
6847
6848         PR c++/10119:
6849         * break-catch-throw.c (exception_functions): New global.
6850         (gnu_v3_exception_catchpoint_ops): Move earlier.
6851         (struct exception_catchpoint): New.
6852         (classify_exception_breakpoint): Rewrite.
6853         (re_set_exception_catchpoint): New function.
6854         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
6855         Allocate a struct exception_catchpoint.
6856         (catch_exception_command_1): Update.
6857         (initialize_throw_catchpoint_ops): Set 're_set' method.
6858
6859 2013-04-15  Tom Tromey  <tromey@redhat.com>
6860
6861         * Makefile.in (SFILES): Add break-catch-throw.c
6862         (COMMON_OBS): Add break-catch-throw.o.
6863         * break-catch-throw.c: New file.
6864         * breakpoint.c: Move exception-catching code to new file.
6865         (ep_parse_optional_if_clause): No longer static.
6866         * breakpoint.h (ep_parse_optional_if_clause): Declare.
6867
6868 2013-04-15  Tom Tromey  <tromey@redhat.com>
6869
6870         PR c++/9065:
6871         * NEWS: Update.
6872         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6873         * c-exp.y (TYPEID): New token.
6874         (exp): Add new TYPEID productions.
6875         (ident_tokens): Add "typeid".
6876         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6877         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6878         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6879         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6880         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6881         case.
6882         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6883         (build_std_type_info_type, gnuv3_get_typeid_type)
6884         (gnuv3_get_typeid): New functions.
6885         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
6886         new fields on ABI object.
6887         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6888         * std-operator.def (OP_TYPEID): New.
6889
6890 2013-04-15  Tom Tromey  <tromey@redhat.com>
6891
6892         * elfread.c (elf_symtab_read): Install versioned symbol under
6893         unversioned name as well.
6894
6895 2013-04-15  Tom Tromey  <tromey@redhat.com>
6896
6897         PR c++/11990:
6898         * c-lang.c (cplus_language_defn): Use gdb_demangle.
6899         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6900         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6901         (gdb_demangle): New function.
6902         * cp-support.h (gdb_demangle): Declare.
6903         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6904         (dwarf2_name): Use gdb_demangle.
6905         * gdbtypes.c (check_stub_method): Use gdb_demangle.
6906         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6907         suffixes from name.
6908         (gnuv3_print_method_ptr): Use gdb_demangle.
6909         * jv-lang.c (java_demangle): Use gdb_demangle.
6910         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6911         * language.c (unk_lang_demangle): Use gdb_demangle.
6912         * symtab.c (symbol_find_demangled_name)
6913         (demangle_for_lookup): Use gdb_demangle.
6914
6915 2013-04-15  Tom Tromey  <tromey@redhat.com>
6916
6917         PR c++/12824:
6918         * NEWS: Update.
6919         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6920         New constant.
6921         (classify_exception_breakpoint): New function.
6922         (print_it_exception_catchpoint, print_one_exception_catchpoint)
6923         (print_mention_exception_catchpoint)
6924         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6925         (catch_exception_command_1): Handle "rethrow" catchpoint.
6926         (catch_rethrow_command): New function.
6927         (_initialize_breakpoint): Add "catch rethrow" command.
6928
6929 2013-04-15  Pierre Muller  <muller@sourceware.org>
6930
6931         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6932         set_gdbarch_write_pc as deprecated anymore.
6933
6934 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
6935
6936         * spu-tdep.c (spu_write_pc): Add empty line after local variable
6937         declarations.
6938
6939 2013-04-13  Yao Qi  <yao@codesourcery.com>
6940
6941         * ctf.c (_initialize_ctf): Include "completer.h".
6942         Call add_target_with_completer instead of add_target.
6943
6944 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6945
6946         Fix GDB regression related to PR binutils/14813.
6947         * jit.c (mem_bfd_iovec_close): Return 0 for success.
6948         * minidebug.c (lzma_close): Add return value comment.
6949         * remote.c (remote_bfd_iovec_close): Return 0 for success.
6950         * solib-spu.c (spu_bfd_iovec_close): Likewise.
6951         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6952
6953 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6954
6955         * config.in: Regenerate.
6956
6957 2013-04-12  Tom Tromey  <tromey@redhat.com>
6958
6959         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6960         const.
6961         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6962         (struct die_reader_specs) <buffer>: Likewise.
6963         (die_reader_func_ftype): Make 'info_ptr' const.
6964         (struct line_header) <include_dirs, statement_program_start,
6965         statement_program_end>: Now const.
6966         (struct file_entry) <name>: Likewise.
6967         (struct partial_die_info) <sibling>: Likewise.
6968         (struct dwarf_block) <data>: Likewise.
6969         (dwarf2_read_section): Remove cast.
6970         (dwarf2_get_section_info): Make 'bufp' const.
6971         (read_index_from_section): Constify.
6972         (dw2_get_file_names_reader): Make 'info_ptr' const.
6973         (dw2_get_primary_filename_reader): Likewise.
6974         (read_comp_unit_head): Make 'info_ptr' and return type const.
6975         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6976         Likewise.
6977         (read_abbrev_offset): Constify.
6978         (dwarf2_create_include_psymtab): Make 'name' const.
6979         (create_debug_types_hash_table): Update.
6980         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6981         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6982         Constify.
6983         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6984         (load_partial_comp_unit_reader): Make 'info_ptr' const.
6985         (read_comp_units_from_section): Constify.
6986         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6987         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6988         const.
6989         (dwarf2_compute_name, setup_type_unit_groups): Constify.
6990         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6991         (create_dwp_hash_table, dwarf2_ranges_read)
6992         (dwarf2_record_block_ranges): Constify.
6993         (read_die_and_children, read_die_and_siblings_1)
6994         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6995         const.
6996         (read_full_die_1, read_full_die): Make 'info_ptr' const.
6997         (abbrev_table_read_table): Constify.
6998         (load_partial_dies): Make 'info_ptr' const.
6999         (read_partial_die, read_attribute_value, read_attribute): Make
7000         'info_ptr' and return type const.
7001         (read_address, read_initial_length)
7002         (read_checked_initial_length_and_offset, read_offset)
7003         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7004         const.
7005         (read_direct_string): Make 'buf' and return type const.
7006         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7007         (read_indirect_string): Make return type const.
7008         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7009         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7010         'info_ptr' const.
7011         (read_str_index): Make return type const.
7012         (add_include_dir): Make 'include_dir' const.
7013         (add_file_name): Make 'name' const.
7014         (dwarf_decode_line_header): Constify.
7015         (psymtab_include_file_name): Make return type const.
7016         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7017         (dwarf2_start_subfile): Make 'filename' const.
7018         (dwarf2_const_value_attr): Make 'bytes' const.
7019         (read_signatured_type_reader): Make 'info_ptr' const.
7020         (decode_locdesc): Constify.
7021         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7022         const.
7023         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7024         'mac_end', and return type const.
7025         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7026         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7027         type const.
7028         (per_cu_header_read_in): Constify.
7029         * symfile.h (dwarf2_get_section_info): Update.
7030
7031 2013-04-12  Tom Tromey  <tromey@redhat.com>
7032
7033         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7034
7035 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
7036
7037         * NEWS: Mention "show configuration", --configuration.
7038         * top.c (print_gdb_configuration): New function, displays the
7039         details about GDB configure-time parameters.
7040         (print_gdb_version): Mention "show configuration".
7041         * cli/cli-cmds.c (show_configuration): New function.
7042         (_initialize_cli_cmds): Add the "show configuration" command.
7043         * main.c (captured_main) <print_configuration>: New static var.
7044         <long_options>: Use it.
7045         If --configuration was given, call print_gdb_configuration.
7046
7047 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7048             Pedro Alves  <palves@redhat.com>
7049
7050         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7051         (generated_files): Add gcore.
7052         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7053         HAVE_NATIVE_GCORE_HOST.
7054         (gcore): New.
7055         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7056         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7057         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7058         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7059         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7060         Add HAVE_NATIVE_GCORE_HOST.
7061         * configure: Regenerate.
7062         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7063         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
7064         AC_CONFIG_FILES for gcore.
7065         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
7066         gdb_have_gcore.
7067         * gdb_gcore.sh: Rename to ...
7068         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
7069         and GCORE_TRANSFORM_NAME substitutions.
7070
7071         Fix parsing tabs in ${gdb_target_obs}.
7072         * configure.tgt (gdb_have_gcore): Replace case with for and if.
7073
7074 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7075
7076         * remote.c (unpush_and_perror): Add output message final dot.
7077
7078 2013-04-11  Yao Qi  <yao@codesourcery.com>
7079
7080         * tracepoint.c (tfile_interp_line): Fit parameters line and
7081         utpp in one line.
7082
7083 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
7084
7085         * solib.c (solib_map_sections): Remove code overwriting
7086         SO->SO_NAME with the bfd's filename.
7087
7088 2013-04-10  Pedro Alves  <palves@redhat.com>
7089
7090         * cli/cli-decode.c (integer_unlimited_completer): New function.
7091         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7092         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7093         completer.
7094         * cli/cli-setshow.c: Include "cli/cli-utils.h".
7095         (is_unlimited_literal): New function.
7096         (do_set_command): Handle literal "unlimited" arguments.
7097         * frame.c (_initialize_frame) <set backtrace limit>: Document
7098         "unlimited".
7099         * printcmd.c (_initialize_printcmd) <set print
7100         max-symbolic-offset>: Add help text.
7101         * record-full.c (_initialize_record_full) <set record full
7102         insn-number-max>: Likewise.
7103         * record.c (_initialize_record) <set record
7104         instruction-history-size, set record function-call-history-size>:
7105         Add help text.
7106         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7107         help text.
7108         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7109         Likewise.
7110         * source.c (_initialize_source) <set listsize>: Add help text.
7111         * utils.c (initialize_utils) <set height, set width>: Likewise.
7112         <set pagination>: Mention "set height unlimited".
7113         * valprint.c (_initialize_valprint) <set print elements, set print
7114         repeats>: Document "unlimited".
7115
7116 2013-04-10  Pedro Alves  <palves@redhat.com>
7117
7118         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7119         instead of disconnect_tracing.
7120         * infcmd.c (detach_command, disconnect_command): Call
7121         query_if_trace_running.  Adjust.
7122         * top.c: Include "tracepoint.h".
7123         (quit_target): Delete.  Contents moved ...
7124         (quit_force): ... here.  Wrap each stage of teardown in
7125         TRY_CATCH.  Call disconnect_tracing before detaching.
7126
7127 2013-04-10  Hui Zhu  <hui@codesourcery.com>
7128             Yao Qi  <yao@codesourcery.com>
7129
7130         * configure.ac: Check libbabeltrace is installed.
7131         * config.in: Regenerate.
7132         * configure: Regenerate.
7133         * Makefile.in (LIBBABELTRACE): New.
7134         (CLIBS): Add LIBBABELTRACE.
7135         * ctf.c: Include "exec.h".
7136         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7137         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7138         (ctf_save_metadata_header): Define new type aliases in
7139         metadata.
7140         (ctf_write_header): Define event type "tsv_def" and "tp_def"
7141         in metadata.  Start a new faked packet for trace status.
7142         (ctf_write_status): Write trace status to CTF.
7143         (ctf_write_uploaded_tsv): Write TSV to CTF.
7144         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7145         (ctf_write_definition_end): End the faked packet.
7146
7147         (ctx, ctf_iter, trace_dirname): New.
7148         (start_pos): New variable.
7149         (ctf_destroy, ctf_open_dir, ctf_open): New.
7150         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7151         macros.
7152         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7153         (ctf_fetch_registers, ctf_xfer_partial): New.
7154         (ctf_get_trace_state_variable_value): New.
7155         (ctf_get_tpnum_from_frame_event): New.
7156         (ctf_get_traceframe_address): New.
7157         (ctf_trace_find, ctf_has_stack): New.
7158         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7159         (ctf_get_trace_status, ctf_read_status): New.
7160         (_initialize_ctf): New.
7161         * tracepoint.c (get_tracepoint_number): New
7162         (get_uploaded_tsv): Remove 'static'.
7163         (struct traceframe_info, trace_regblock_size): Move it to ...
7164         * tracepoint.h: ... here.
7165         (get_tracepoint_number): Declare it.
7166         (get_uploaded_tsv): Declare it.
7167
7168         * NEWS: Mention new configure option.
7169
7170 2013-04-10  Pedro Alves  <palves@redhat.com>
7171             Hui Zhu  <hui@codesourcery.com>
7172
7173         * breakpoint.c (dprintf_re_set): New.
7174         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7175         to dprintf_re_set.
7176
7177 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7178
7179         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7180         Remove solib-svr4.o from the list.
7181
7182 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7183
7184         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7185         Use gdb_assert_not_reached instead of invalid boolean expression.
7186
7187 2013-04-09  Pedro Alves  <palves@redhat.com>
7188
7189         * remote.c (unpush_and_perror): New function.
7190         (readchar, remote_serial_write): Use it.
7191
7192 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
7193
7194         * NEWS: Mention new btrace RSP packets.
7195
7196 2013-04-08  Tom Tromey  <tromey@redhat.com>
7197
7198         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7199         long.
7200
7201 2013-04-08  Tom Tromey  <tromey@redhat.com>
7202
7203         * maint.c (print_bfd_section_info): Print the section index.
7204         * symmisc.c (dump_msymbols): Print the section index.
7205
7206 2013-04-08  Tom Tromey  <tromey@redhat.com>
7207
7208         PR symtab/8424:
7209         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7210         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7211         * breakpoint.c (resolve_sal_pc): Update.
7212         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7213         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7214         (minsym_lookup_iterator_cb): Use it.
7215         (default_read_var_value): Update.
7216         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7217         Update.
7218         * infcmd.c (jump_command): Update.
7219         * linespec.c (minsym_found): Update.
7220         * maint.c (maintenance_translate_address): Update.
7221         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7222         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7223         * parse.c (write_exp_msymbol): Update.
7224         * printcmd.c (address_info): Update.
7225         * psymtab.c (find_pc_sect_psymbol): Update.
7226         (fixup_psymbol_section): Check SYMBOL_SECTION, not
7227         SYMBOL_OBJ_SECTION.
7228         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7229         Don't initialize SYMBOL_OBJ_SECTION.
7230         * spu-tdep.c (spu_catch_start): Update.
7231         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7232         * symmisc.c (dump_msymbols, print_symbol): Update.
7233         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
7234         how fallback section is computed.
7235         (fixup_symbol_section): Update.
7236         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7237         Update.
7238         (allocate_symbol, initialize_symbol, allocate_template_symbol):
7239         Initialize SYMBOL_SECTION.
7240         * symtab.h (struct general_symbol_info) <section>: Update comment.
7241         <obj_section>: Remove.
7242         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
7243         (SYMBOL_OBJFILE): New macro.
7244
7245 2013-04-08  Tom Tromey  <tromey@redhat.com>
7246
7247         * coffread.c (record_minimal_symbol): Update.
7248         * dbxread.c (record_minimal_symbol): Update.
7249         * elfread.c (record_minimal_symbol): Update.
7250         * machoread.c (macho_symtab_add_minsym): Update.
7251         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7252         Update.
7253         * minsyms.c (prim_record_minimal_symbol): Update.
7254         (prim_record_minimal_symbol_full): Remove 'bfd_section'
7255         argument.
7256         (prim_record_minimal_symbol_and_info): Likewise.
7257         * minsyms.h (prim_record_minimal_symbol_full)
7258         (prim_record_minimal_symbol_and_info): Update.
7259         * symtab.c (allocate_symbol, initialize_symbol)
7260         (allocate_template_symbol): Initialize SYMBOL_SECTION.
7261         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7262         Update.
7263
7264 2013-04-08  Tom Tromey  <tromey@redhat.com>
7265
7266         PR symtab/8423:
7267         * solib-som.c (som_solib_section_offsets): Use BFD section
7268         indices.  Set offsets for all sections.
7269         * somread.c (som_symtab_read): Compute BFD section for
7270         symbol.  Use prim_record_minimal_symbol_and_info.
7271         (som_symfile_read): Fix comment.
7272         (struct find_section_offset_arg): New.
7273         (find_section_offset, set_section_index): New functions.
7274         (som_symfile_offsets): Use set_section_index to compute
7275         section indices.
7276
7277 2013-04-08  Tom Tromey  <tromey@redhat.com>
7278
7279         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7280         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7281         gdb_bfd_section_index.
7282         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7283         New functions.
7284         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7285         Declare.
7286         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7287         Update.
7288         * objfiles.c (add_to_objfile_sections_full): New function.
7289         (add_to_objfile_sections): Use it.
7290         (build_section_table): Rewrite.
7291         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
7292         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7293         (struct objfile) <sections>: Update comment.
7294         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7295         is NULL.
7296         (ALL_OBJSECTIONS): Use it.
7297         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7298         * solib-frv.c (frv_relocate_main_executable): Update.
7299         * solib-target.c (solib_target_relocate_section_addresses):
7300         Use gdb_bfd_section_index.
7301         * symfile.c (build_section_addr_info_from_section_table):
7302         Use gdb_bfd_section_index.
7303         (build_section_addr_info_from_bfd, place_section): Likewise.
7304         * symtab.c (fixup_section): Update.
7305         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7306
7307 2013-04-08  Tom Tromey  <tromey@redhat.com>
7308
7309         * minsyms.h (struct bound_minimal_symbol): New.
7310         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7311         Remove objfile argument.
7312         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7313         Return bound_minimal_symbol.
7314         * minsyms.c (lookup_minimal_symbol_by_pc_1)
7315         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7316         Return bound_minimal_symbol.
7317         (in_gnu_ifunc_stub): Update.
7318         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7319         Remove 'objfile_p' argument.
7320         (lookup_solib_trampoline_symbol_by_pc): Update.
7321         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7322         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7323         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7324         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7325         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7326         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7327         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7328         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7329         stack.c, symtab.c, tui/tui-disasm.c: Update.
7330
7331 2013-04-08  Tom Tromey  <tromey@redhat.com>
7332
7333         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7334         Use symbol's obstack, not an objfile.
7335         * coffread.c (process_coff_symbol): Update.
7336         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7337         * jv-lang.c (add_class_symbol): Update.
7338         * mdebugread.c (new_symbol): Update.
7339         * minsyms.c (prim_record_minimal_symbol_full)
7340         (terminate_minimal_symbol_table): Update.
7341         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
7342         * stabsread.c (define_symbol, read_enum_type): Update.
7343         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7344         Handle Ada specially.
7345         (symbol_set_language): Add 'obstack' argument.
7346         (symbol_set_names): Update.
7347         (symbol_natural_name, symbol_demangled_name): Always use
7348         ada_decode_symbol.
7349         * symtab.h (struct general_symbol_info)
7350         <language_specific::obstack>: New field.
7351         <ada_mangled>: New field.
7352         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7353         (symbol_set_language): Update.
7354
7355 2013-04-08  Tom Tromey  <tromey@redhat.com>
7356
7357         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7358         Take an obstack, not an objfile.
7359         (symbol_set_names): Update.
7360         * symtab.h (symbol_set_demangled_name): Update.
7361
7362 2013-04-08  Tom Tromey  <tromey@redhat.com>
7363
7364         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7365         allocate_symbol.
7366         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7367         (read_func_scope): Call allocate_template_symbol.
7368         (new_symbol_full): Call allocate_symbol.
7369         * jit.c (finalize_symtab): Call allocate_symbol.
7370         * jv-lang.c (add_class_symbol): Call allocate_symbol.
7371         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7372         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7373         (common_block_end): Call allocate_symbol.
7374         * symtab.c (allocate_symbol, initialize_symbol)
7375         (allocate_template_symbol): New functions.
7376         * symtab.c (allocate_symbol, initialize_symbol)
7377         (allocate_template_symbol): Declare.
7378         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7379
7380 2013-04-08  Pedro Alves  <palves@redhat.com>
7381             Keith Seitz  <keiths@redhat.com>
7382
7383         * breakpoint.c (create_breakpoint): Rename
7384         "parse_condition_and_thread" parameter to "parse_arg".  Update
7385         describing comment.  If !PARSE_ARG, then error out if ARG is not
7386         the empty string after extracting the location.
7387         * breakpoint.h (create_breakpoint): Rename
7388         "parse_condition_and_thread" parameter to "parse_arg".
7389
7390 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
7391
7392         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7393
7394 2013-04-07  Yao Qi  <yao@codesourcery.com>
7395
7396         * remote.c (remote_trace_find): Change type of parameters 'addr1'
7397         and 'addr2' to CORE_ADDR.
7398         * target.c (update_current_target): Update.
7399         * target.h (struct target_ops) <to_trace_find>: Change parameter
7400         type to CORE_ADDR.
7401         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7402         'addr2' to CORE_ADDR.
7403         (tfile_trace_find): Likewise.
7404         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7405         Change local variable 'addr' to type CORE_ADDR.
7406         * tracepoint.h (tfind_1): Update declaration.
7407
7408 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
7409
7410         * windows-nat.c (windows_get_absolute_argv0): Move from here...
7411         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7412         Include main.h.
7413
7414         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7415         here...
7416         * main.h (windows_get_absolute_argv0): ...to here.
7417
7418 2013-04-05  Doug Evans  <dje@google.com>
7419
7420         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7421         (read_cutu_die_from_dwo): Add comments.
7422         (read_structure_type): Update comment.
7423         (read_enumeration_type, read_namespace_type): Update comment.
7424         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7425
7426 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7427
7428         Convert man pages to texinfo, new gdbinit.5 texinfo page.
7429         * Makefile.in (gdb.z): Remove.
7430         (install-only): Remove $(man1dir) and gdb.1 installation.
7431         * gdb.1: Remove.
7432
7433 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7434
7435         Fix compatibility with Linux kernel 3.8.3.
7436         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7437         to more inner block.  Remove parsing of NUMBER from outer block.
7438         Parse NUMBER only if KEYWORD has been identified.
7439
7440 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7441
7442         Fix variable name shadowing.
7443         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7444         filename to mapsfilename and update its uses.
7445
7446 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
7447
7448         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7449         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7450         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7451         details of the problem.
7452
7453 2013-04-04  Pedro Alves  <palves@redhat.com>
7454             Hui Zhu  <hui@codesourcery.com>
7455
7456         * breakpoint.c (validate_commands_for_breakpoint): If validating a
7457         tracepoint, reset its STEP_COUNT and call validate_actionline.
7458
7459 2013-04-03  Doug Evans  <dje@google.com>
7460
7461         * dwarf2read.c (read_die_and_siblings_1): Renamed from
7462         read_die_and_siblings.
7463         (read_die_and_siblings): New function.
7464         (read_cutu_die_from_dwo): Dump die if requested.
7465         (read_die_and_children): Call read_full_die_1 and
7466         read_die_and_siblings_1.
7467         (read_full_die): Dump die if requested.
7468
7469         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7470
7471         * dwarf2read.c (struct dwo_file): New member comp_dir.
7472         Rename member name to dwo_name.  All uses updated.
7473         (hash_dwo_file): Include comp_dir in computation.
7474         (eq_dwo_file): Ditto.
7475         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
7476         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7477
7478         * psymtab.c (read_psymtabs_with_fullname): Don't call
7479         psymtab_to_fullname if the basenames are different.
7480
7481 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7482
7483         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7484         New entry about "fullname" presence.
7485
7486 2013-04-03  Pedro Alves  <palves@redhat.com>
7487
7488         * NEWS: Mention x86_64/Cygwin as new native configuration.
7489
7490 2013-04-02  Doug Evans  <dje@google.com>
7491
7492         * dwarf2read.c (read_structure_type): Fix typo in comment.
7493
7494 2013-04-02  Pedro Alves  <palves@redhat.com>
7495
7496         * NEWS: Mention "set/show debug aarch64", "set/show debug
7497         coff-pe-read" and "set/show debug mach-o".
7498
7499 2013-04-02  Pedro Alves  <palves@redhat.com>
7500
7501         * NEWS: Mention "set/show remote trace-buffer-size-packet".
7502
7503 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
7504
7505         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7506         gdb_string.h is now in common/.
7507
7508 2013-04-02  Pedro Alves  <palves@redhat.com>
7509
7510         * NEWS: Move "set debug notification" and "set trace-buffer-size"
7511         under "New options".
7512
7513 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7514
7515         Revert this patch:
7516         PR gdb/15275
7517         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7518
7519 2013-04-02  Pedro Alves  <palves@redhat.com>
7520
7521         PR gdb/15275
7522
7523         * remote.c (send_interrupt_sequence): Use remote_serial_write.
7524         (remote_serial_write): New function.
7525         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7526
7527 2013-04-01  Jiong Wang  <jiwang@tilera.com>
7528
7529         * NEWS: Mention TILE-Gx in "New native configurations" and
7530         "New targets" sections.
7531
7532 2013-04-01  Doug Evans  <dje@google.com>
7533
7534         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7535         (process_enumeration_scope): Simplify.
7536
7537         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7538         type_unit_group ...
7539         (struct signatured_type): ... to here.
7540         (sig_type_ptr): New typedef.
7541         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
7542         out of union 't'.  All uses updated.
7543         (dw2_get_file_names_reader): Assert not called for a type unit.
7544         (dw2_get_file_names): Assert not called for a type unit or type
7545         unit group.
7546         (build_type_psymtabs_reader): Assert called for a type unit.
7547         (build_type_psymtab_dependencies): Assert called for a type unit group.
7548
7549         * dwarf2read.c (free_dwo_file): Add comment.
7550         (dwarf2_per_objfile_free): Unref dwp bfd.
7551
7552 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7553
7554         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7555         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7556         (read_pe_exported_syms): Remove unused 'exportix'.
7557         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7558         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7559         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7560
7561 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7562
7563         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7564         (print_it_watchpoint): Remove unused 'bl'.
7565         (say_where): Remove unused 'uiout'.
7566         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7567         (bkpt_breakpoint_hit): Remove unused 'b'.
7568         (internal_bkpt_print_it): Remove unused 'uiout'.
7569         * buildsym.c (augment_type_symtab): Remove unused 'i'.
7570
7571 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7572
7573         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7574         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7575
7576 2013-03-29  Doug Evans  <dje@google.com>
7577
7578         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7579         Delete arg is_dwp.  All callers updated.
7580         (open_dwp_file): New function.
7581         (open_and_init_dwp_file): Call it.
7582         (get_dwp_file): New function.
7583         (lookup_dwo_cutu): Call it.
7584
7585         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7586         unnecessary, cleanup.
7587
7588         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7589
7590         * dwarf2read.c (read_cutu_die_from_dwo): New function.
7591         (lookup_dwo_unit): New function.
7592         (init_cutu_and_read_dies): Move DWO handling to new functions.
7593
7594         * dwarf2read.c (struct signatured_type): Tweak comment.
7595         (struct dwo_unit): Tweak comment.
7596         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
7597         (create_dwo_debug_info_hash_table): Tweak comment.
7598         (dwarf2_per_cu_offset_and_type): Tweak comment.
7599
7600         * dwarf2read.c (lookup_signatured_type): Remove complaint about
7601         missing .debug_types section.
7602
7603 2013-03-29  Yao Qi  <yao@codesourcery.com>
7604
7605         * corelow.c: Include "completer.h".
7606         (_initialize_corelow): Call add_target_with_completer with
7607         argument 'filename_completer'.
7608         * tracepoint.c: Likewise.
7609         * exec.c (_initialize_exec): Likewise.
7610         * target.c (add_target): Rename to ...
7611         (add_target_with_completer): ... this.  Call set_cmd_completer
7612         if parameter completer is not NULL.
7613         (add_target): New.
7614         * target.h: Include "command.h".
7615         (add_target_with_completer): Declare it.
7616
7617 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
7618
7619         * coffread.c (is_import_fixup_symbol): New function.
7620         (record_minimal_symbol): Use is_import_fixup_symbol to
7621         detect import fixup symbols, and discard them.
7622
7623 2013-03-28  Doug Evans  <dje@google.com>
7624
7625         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7626         types hash table until we know we need it.
7627
7628         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7629         index numbers.
7630
7631         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7632         All callers updated.
7633         (dw2_print_stats): Print #read CUs too.
7634         (dump_die_shallow): Print signatured types better.
7635
7636         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7637         info_or_types_section to section.  All uses updated.
7638         (struct dwo_unit): Ditto.
7639
7640 2013-03-28  Pedro Alves  <palves@redhat.com>
7641
7642         * NEWS (New options): New section.
7643         (New options): Mention set/show remote trace-status-packet.
7644         * remote.c (PACKET_qTStatus): New enumeration value.
7645         (remote_get_trace_status): Skip sending qTStatus if the packet is
7646         disabled.  Use packet_ok.
7647         (_initialize_remote): Register a configuration command for
7648         qTStatus packet.
7649
7650 2013-03-28  Doug Evans  <dje@google.com>
7651
7652         * symfile.c (find_separate_debug_file): Add comment.
7653         (terminate_after_last_dir_separator): Tweak comment.
7654
7655         * dwarf2read.c (create_partial_symtab): Add forward decl.
7656         (create_partial_symtab): Move to be closer to other psymtab functions.
7657         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7658
7659         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7660         (compute_symtab_includes): Remove unnecessary forward declaration.
7661         (die_needs_namespace): Add comment marking group of functions for
7662         dwarf2 name computation.
7663
7664         * typeprint.c (_initialize_typeprint): Improve type help text.
7665
7666         * python/python.c (finish_python_initialization): Provide suggestion
7667         for how to tell gdb to find its python files.
7668
7669 2013-03-28  Pedro Alves  <palves@redhat.com>
7670
7671         PR gdb/15294
7672
7673         * source.c (_initialize_source): Change back "set listsize" to an
7674         integer command.
7675
7676 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
7677
7678         PR gdb/15275
7679         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7680
7681 2013-03-27  Pedro Alves  <palves@redhat.com>
7682
7683         * top.c (history_size): Rename to ...
7684         (history_size_setshow_var): ... this.  Add comment.
7685         (show_commands): Use readline's 'history_length' instead of
7686         computing the history length by calling history_get in a loop.
7687         (set_history_size_command): Error out for sizes over INT_MAX.
7688         Restore previous history size on invalid size.
7689         (init_history): If HISTSIZE is negative, leave the history size as
7690         zero.  Add comments.
7691         (init_main): Adjust.
7692
7693 2013-03-27  Pedro Alves  <palves@redhat.com>
7694
7695         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7696         coff_pe_read" command to "set debug coff-pe-read".
7697
7698 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
7699
7700         * record.c (command_size_to_target_size): Fix size comparison.
7701         Change parameter type from pointer to integer to integer.
7702         Update all users.
7703
7704 2013-03-27  Pierre Muller  <muller@sourceware.org>
7705
7706         * windows-nat.c (handle_output_debug_string): Avoid typecast
7707         from integer of different size warning.
7708
7709 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
7710
7711         * windows-nat.c (handle_output_debug_string): Add empty line
7712         after local block variable definition.
7713
7714 2013-03-26  Pedro Alves  <palves@redhat.com>
7715
7716         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7717         (net_open): Make 'polls' local unsigned.
7718
7719 2013-03-26  Pedro Alves  <palves@redhat.com>
7720
7721         * remote.c (_initialize_remote): Make "set remoteaddresssize"
7722         a zuinteger command instead of uinteger.
7723
7724 2013-03-26  Pedro Alves  <palves@redhat.com>
7725
7726         * record-full.c (record_full_insn_num): Make it unsigned.
7727         (record_full_check_insn_num, record_full_message)
7728         (record_full_registers_change, record_full_xfer_partial): Remove
7729         record_full_insn_max_num check (it's always != 0).
7730         (record_full_info, record_full_restore): Use %u as format string.
7731         (): Use %u as format string.
7732         (set_record_full_insn_max_num): Remove record_full_insn_max_num
7733         check (it's always != 0).
7734
7735 2013-03-26  Pedro Alves  <palves@redhat.com>
7736
7737         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7738         and "set dcache size" commands zuinteger instead of uinteger.
7739
7740 2013-03-26  Pedro Alves  <palves@redhat.com>
7741
7742         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7743         command zuinteger instead of uinteger.
7744
7745 2013-03-26  Pedro Alves  <palves@redhat.com>
7746
7747         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7748         zuinteger instead of uinteger.
7749
7750 2013-03-26  Pedro Alves  <palves@redhat.com>
7751
7752         * record.c (record_insn_history_size_setshow_var)
7753         (record_call_history_size_setshow_var): New globals.
7754         (command_size_to_target_size): New function.
7755         (cmd_record_insn_history, cmd_record_call_history): Use
7756         command_size_to_target_size instead of cast.
7757         (validate_history_size, set_record_insn_history_size)
7758         (set_record_call_history_size): New functions.
7759         (_initialize_record): Install set_record_insn_history_size and
7760         set_record_call_history_size as "set" hooks of "set record
7761         instruction-history-size" and "set record
7762         function-call-history-size".
7763
7764 2013-03-26  Pedro Alves  <palves@redhat.com>
7765
7766         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7767         use with history_max_entries use.  Remove FIXME note.
7768
7769 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
7770
7771         * record-btrace.c (record_btrace_close): Call
7772         record_btrace_auto_disable.
7773
7774 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
7775
7776         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7777
7778 2013-03-25  Doug Evans  <dje@google.com>
7779
7780         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7781
7782 2013-03-25  Tom Tromey  <tromey@redhat.com>
7783
7784         PR symtab/11462:
7785         * c-exp.y (exp): Add new productions for destructors after '.' and
7786         '->'.
7787         (write_destructor_name): New function.
7788
7789 2013-03-25  Tom Tromey  <tromey@redhat.com>
7790
7791         PR c++/9197:
7792         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7793         value_struct_elt, not lookup_struct_elt_type.
7794         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7795         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7796         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7797
7798 2013-03-25  Yao Qi  <yao@codesourcery.com>
7799
7800         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7801         instead of '_mkdir'.
7802
7803 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
7804
7805         * windows-nat.c (windows_get_absolute_argv0): New function.
7806         * windows-nat.h: Add its prototype.
7807
7808         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7809         Use IS_DIR_SEPARATOR instead of looking for a character inside
7810         SLASH_STRING.  Include filenames.h.
7811         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7812         relocate_gdb_directory works when passed gdb_program_name.
7813         Include windows-nat.h.
7814
7815 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7816
7817         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7818         * remote.c (trace_error): Remove the special handling of '2'.
7819         (readchar) <SERIAL_EOF>
7820         (readchar) <SERIAL_ERROR>
7821         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7822         (remote_get_trace_status): Call throw_exception if EX is
7823         TARGET_CLOSE_ERROR.
7824         * utils.c (perror_with_name): Rename to ...
7825         (throw_perror_with_name): ... here.  New parameter errcode, describe it
7826         in the function comment.
7827         (perror_with_name): New function wrapper.
7828         * utils.h (enum errors): New stub declaration.
7829         (throw_perror_with_name): New declaration.
7830
7831 2013-03-22  Pedro Alves  <palves@redhat.com>
7832             Yao Qi  <yao@codesourcery.com>
7833             Mark Kettenis  <kettenis@gnu.org>
7834
7835         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7836         Don't let the user set the value to UINT_MAX directly.
7837         <var_integer>: Don't let the user set the value to INT_MAX
7838         directly.
7839
7840 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7841
7842         * remote.c (remote_unpush_target): New function.
7843         (remote_open_1): Remove two pop_target calls, update one comment, add
7844         comment to target_preopen call.  Replace pop_target call by
7845         remote_unpush_target call.
7846         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7847         pop_target calls by remote_unpush_target calls.
7848
7849 2013-03-22  Pedro Alves  <palves@redhat.com>
7850
7851         * linux-nat.c (linux_child_follow_fork): Don't call
7852         linux_enable_event_reporting.
7853         (linux_handle_extended_wait): Don't call
7854         linux_enable_event_reporting.
7855
7856 2013-03-22  Pedro Alves  <palves@redhat.com>
7857
7858         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7859         use it to rewrite the trampoline buffers with type gdb_byte[], and
7860         undefine the macro.  Remove char* cast.
7861
7862 2013-03-21  Doug Evans  <dje@google.com>
7863
7864         New commands "mt set per-command {space,time,symtab} {on,off}".
7865         * NEWS: Add entry.
7866         * event-top.c: #include "maint.h".
7867         * main.c: #include "maint.h".
7868         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7869         timeval-utils.h, maint.h, cli/cli-setshow.h.
7870         (per_command_time, per_command_space): New static globals.
7871         (per_command_symtab): New static global.
7872         (per_command_setlist, per_command_showlist): New static globals.
7873         (struct cmd_stats): Move here from utils.c.
7874         (set_per_command_time): Renamed from set_display_time in utils.c
7875         and moved here.  All callers updated.
7876         (set_per_command_space): Renamed from set_display_space in utils.c
7877         and moved here.  All callers updated.
7878         (count_symtabs_and_blocks): New function.
7879         (report_command_stats): Moved here from utils.c.  Add support for
7880         printing symtab stats.  Only print data if enabled before command
7881         executed.
7882         (make_command_stats_cleanup): Ditto.
7883         (sert_per_command_cmd, show_per_command_cmd): New functions.
7884         (_initialize_maint_cmds): Add new commands
7885         mt set per-command {space,time,symtab} {on,off}.
7886         * maint.h: New file.
7887         * top.c: #include "maint.h".
7888         * utils.c (reset_prompt_for_continue_wait_time): New function.
7889         (get_prompt_for_continue_wait_time): New function.
7890         * utils.h (reset_prompt_for_continue_wait_time): Declare
7891         (get_prompt_for_continue_wait_time): Declare.
7892         (make_command_stats_cleanup): Moved to maint.h.
7893         (set_display_time, set_display_space): Moved to maint.h and renamed
7894         to set_per_command_time, set_per_command_space.
7895         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7896         parse_binary_operation and made non-static.  Don't call error,
7897         just return an error marker.  All callers updated.
7898         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7899
7900 2013-03-21  Tom Tromey  <tromey@redhat.com>
7901
7902         * symfile.c (alloc_section_addr_info): Update header.  Don't set
7903         'num_sections' field.
7904         (build_section_addr_info_from_section_table): Set 'num_sections'.
7905         (build_section_addr_info_from_bfd): Likewise.
7906         (build_section_addr_info_from_objfile): Remove dead loop
7907         condition.
7908         (free_section_addr_info): Unconditionally call xfree.
7909         (relative_addr_info_to_section_offsets, addrs_section_sort)
7910         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7911         condition.
7912         (syms_from_objfile_1): Remove dead 'if' condition.  Check
7913         'num_sections'.
7914         (add_symbol_file_command): Set 'num_sections'.
7915         * symfile-mem.c (symbol_file_add_from_memory): Set
7916         'num_sections'.
7917         * somread.c (som_symfile_offsets): Remove dead loop condition.
7918         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7919         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7920
7921 2013-03-21  Tom Tromey  <tromey@redhat.com>
7922
7923         * tracepoint.h (decode_agent_options): Add 'trace_string'
7924         argument.
7925         * tracepoint.c (decode_agent_options): Add 'trace_string'
7926         argument.
7927         (validate_actionline): Update.
7928         (collect_symbol): Add 'trace_string' argument.
7929         (struct add_local_symbols_data) <trace_string>: New field.
7930         (do_collect_symbol): Update.
7931         (add_local_symbols): Add 'trace_string' argument.
7932         (encode_actions_1): Update.
7933         (trace_dump_actions): Update.
7934         * dwarf2loc.c (access_memory): Update.
7935         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7936         * ax-general.c (new_agent_expr): Update.
7937         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7938         (gen_trace_for_return_address): Add argument.
7939         (trace_kludge, trace_string_kludge): Remove.
7940         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7941         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7942         (gen_trace_for_var): Add 'trace_string' argument.
7943         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7944         (gen_printf, agent_eval_command_one): Update.
7945
7946 2013-03-21  Tom Tromey  <tromey@redhat.com>
7947
7948         PR exp/15109:
7949         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7950         Handle FILENAME token.
7951
7952 2013-03-21  Tom Tromey  <tromey@redhat.com>
7953
7954         * c-exp.y (YYPRINT): Define.
7955         (c_print_token): New function.
7956
7957 2013-03-21  Tom Tromey  <tromey@redhat.com>
7958
7959         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7960
7961 2013-03-21  Yao Qi  <yao@codesourcery.com>
7962
7963         * ctf.c: Include "gdb_stat.h".
7964         [USE_WIN32API]: New macro 'mkdir'.
7965         (ctf_start): Use permission bits macros if they are defined.
7966
7967 2013-03-20  Keith Seitz  <keiths@redhat.com>
7968
7969         * breakpoint.h (struct breakpoint): Add comment to
7970         extra_string indicating that this member is mallod'd.
7971         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7972
7973 2013-03-20  Pedro Alves  <palves@redhat.com>
7974
7975         PR gdb/15289
7976
7977         * cli/cli-setshow.c (do_set_command)
7978         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7979         the result of parsing the command argument.  Throw error if the
7980         value is greater than UINT_MAX.  Print the invalid value with
7981         plongest.
7982         <var_integer, var_zinteger>: Use LONGEST for variable holding the
7983         result of parsing the command argument.  Throw error if the value
7984         is greater than INT_MAX, not greater or equal.  Also throw error
7985         if the value is less than INT_MIN.  Print the invalid value with
7986         plongest.
7987         <var_zuinteger_unlimited>: Throw error if the value is greater
7988         than INT_MAX, not greater or equal.
7989         (do_show_command) <var_integer, var_zinteger,
7990         var_zuinteger_unlimited>: Use %d for printing int, not %u.
7991
7992 2013-03-20  Tom Tromey  <tromey@redhat.com>
7993
7994         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7995         if possible.
7996         * dwarf2read.c (read_func_scope): Remove old FIXME.
7997         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7998         not LOC_COMPUTED.
7999         * findvar.c (symbol_read_needs_frame, default_read_var_value):
8000         Unconditionally call via computed ops, if possible.
8001         * printcmd.c (address_info): Unconditionally call via computed ops,
8002         if possible.
8003         * stack.c (read_frame_arg): Unconditionally call via computed ops,
8004         if possible.
8005         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8006         * tracepoint.c (scope_info): Unconditionally call via computed ops,
8007         if possible.
8008
8009 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8010             Tom Tromey  <tromey@redhat.com>
8011
8012         PR symtab/8421:
8013         * coffread.c (coff_register_index): New global.
8014         (process_coff_symbol, coff_read_enum_type): Set
8015         SYMBOL_ACLASS_INDEX.
8016         (_initialize_coffread): Initialize new global.
8017         * dwarf2loc.c (locexpr_find_frame_base_location)
8018         (dwarf2_block_frame_base_locexpr_funcs)
8019         (loclist_find_frame_base_location)
8020         (dwarf2_block_frame_base_loclist_funcs): New.
8021         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8022         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8023         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8024         (dwarf2_block_frame_base_loclist_funcs): New.
8025         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8026         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8027         globals.
8028         (read_func_scope): Update.
8029         (fixup_go_packaging, mark_common_block_symbol_computed)
8030         (var_decode_location, new_symbol_full, dwarf2_const_value):
8031         Set SYMBOL_ACLASS_INDEX.
8032         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
8033         (_initialize_dwarf2_read): Initialize new globals.
8034         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8035         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8036         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8037         globals.
8038         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8039         (_initialize_mdebugread): Initialize new globals.
8040         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8041         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8042         (stab_register_index, stab_regparm_index): New globals.
8043         (define_symbol, read_enum_type, common_block_end): Set
8044         SYMBOL_ACLASS_INDEX.
8045         (_initialize_stabsread): Initialize new globals.
8046         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8047         globals.
8048         (MAX_SYMBOL_IMPLS): New define.
8049         (register_symbol_computed_impl, register_symbol_block_impl)
8050         (register_symbol_register_impl)
8051         (initialize_ordinary_address_classes): New functions.
8052         (_initialize_symtab): Call initialize_ordinary_address_classes.
8053         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8054         (struct symbol_impl): New.
8055         (SYMBOL_ACLASS_BITS): New define.
8056         (struct symbol) <aclass, ops>: Remove fields.
8057         <aclass_index>: New field.
8058         (symbol_impls): Declare.
8059         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8060         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8061         (register_symbol_computed_impl, register_symbol_block_impl)
8062         (register_symbol_register_impl): Declare.
8063         (struct symbol_computed_ops): Add location_has_loclist.
8064         (struct symbol_block_ops): New.
8065         (SYMBOL_BLOCK_OPS): New.
8066         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8067
8068 2013-03-20  Tom Tromey  <tromey@redhat.com>
8069
8070         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8071         (print_partial_symbols, recursively_search_psymtabs): Use
8072         PSYMBOL_CLASS.
8073
8074 2013-03-20  Pierre Muller  <muller@sourceware.org>
8075
8076         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8077         addtion, subtraction, multiplication and division binary operator.
8078
8079 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8080
8081         Code cleanup.
8082         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8083         * bsd-kvm.c (bsd_kvm_close): Likewise.
8084         * bsd-uthread.c (bsd_uthread_close): Likewise.
8085         * corelow.c (core_close): Likewise.
8086         (core_close_cleanup): Remove parameter quitting from a caller.
8087         * event-top.c (async_disconnect): Likewise.
8088         * exec.c (exec_close_1): Remove parameter quitting.
8089         * go32-nat.c (go32_close): Likewise.
8090         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
8091         parameter quitting from a caller.
8092         * mips-linux-nat.c (super_close): Remove parameter quitting from the
8093         variable.
8094         (mips_linux_close): Remove parameter quitting.  Remove parameter
8095         quitting from a caller.
8096         * monitor.c (monitor_close): Remove parameter quitting.
8097         * monitor.h (monitor_close): Likewise.
8098         * record-btrace.c (record_btrace_close): Likewise.
8099         * record-full.c (record_full_close): Likewise.
8100         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8101         it also from fprintf_unfiltered.
8102         * remote-mips.c (mips_close): Remove parameter quitting.
8103         (mips_detach): Remove parameter quitting from a caller.
8104         * remote-sim.c (gdbsim_close): Remove parameter quitting.
8105         (gdbsim_close): Remove duplicate function comment.  Remove parameter
8106         quitting and remove it also from printf_filtered.
8107         * remote.c (remote_close): Remove parameter quitting.
8108         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8109         * target.c (update_current_target): Remove parameter int from to_close
8110         de_fault.
8111         (push_target, unpush_target, pop_target): Remove parameter quitting from
8112         a caller.
8113         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8114         Remove parameter quitting from a caller.
8115         (target_preopen): Remove parameter quitting from a caller.
8116         (target_close): Remove parameter quitting.  Remove parameter quitting
8117         from a caller two times.  Remove parameter quitting also from
8118         fprintf_unfiltered.
8119         * target.h (struct target_ops): Remove parameter quitting and as int
8120         from fields to_xclose and to_close.
8121         (extern struct target_ops current_target):
8122         (target_close, pop_all_targets): Remove parameter quitting.  Update the
8123         comment.
8124         (pop_all_targets_above): Remove parameter quitting.
8125         * top.c (quit_target): Remove parameter quitting from a caller.
8126         * tracepoint.c (tfile_close): Remove parameter quitting.
8127         * windows-nat.c (windows_close): Remove parameter quitting.
8128
8129 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
8130
8131         * windows-nat.c (handle_output_debug_string): Replace call
8132         to string_to_core_addr with call to strtoull.
8133
8134 2013-03-20  Yao Qi  <yao@codesourcery.com>
8135
8136         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8137         and write it to CTF metadata.
8138
8139 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
8140
8141         * windows-nat.c (handle_output_debug_string): Change type of n to
8142         SIZE_T to avoid crash on 64 bit systems.
8143
8144 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
8145
8146         * python/python-internal.h (HAVE_SNPRINTF)
8147         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8148         about redefinition of snprintf by pyerrors.h.
8149
8150 2013-03-15  Steve Ellcey  <sellcey@mips.com>
8151
8152         * remote-sim.c (sim_command_completer): Make char arguments const.
8153
8154 2013-03-15  Tom Tromey  <tromey@redhat.com>
8155
8156         PR c++/15116:
8157         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8158
8159 2013-03-14  Tom Tromey  <tromey@redhat.com>
8160
8161         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8162         New fields.
8163         (get_file_crc): Move from symfile.c.
8164         (gdb_bfd_crc): New function.
8165         * gdb_bfd.h (gdb_bfd_crc): Declare.
8166         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8167         * symfile.c (get_file_crc): Move to gdb_bfd.c.
8168         (separate_debug_file_exists): Use gdb_bfd_crc.
8169
8170 2013-03-14  Tom Tromey  <tromey@redhat.com>
8171
8172         * symfile.c (get_debug_link_info): Remove.
8173         (find_separate_debug_file_by_debuglink): Use
8174         bfd_get_debug_link_info.
8175
8176 2013-03-14  Tom Tromey  <tromey@redhat.com>
8177
8178         * symtab.c (error_in_psymtab_expansion): New function.
8179         (lookup_symbol_aux_quick)
8180         (basic_lookup_transparent_type_quick): Remove "last resort"
8181         code.  Use error_in_psymtab_expansion.
8182
8183 2013-03-14  Doug Evans  <dje@google.com>
8184             Jan Kratochvil  <jan.kratochvil@redhat.com>
8185
8186         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8187         any successful compare_filenames_for_search or FILENAME_CMP.
8188         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8189         * symtab.c (iterate_over_some_symtabs): Likewise.
8190
8191 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8192
8193         * source.c (print_source_lines_base): Make a local copy of
8194         symtab_to_fullname.
8195
8196 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
8197             Jan Kratochvil  <jan.kratochvil@redhat.com>
8198
8199         * source.c (print_source_lines_base): Suppress "file" for TUI.
8200
8201 2013-03-14  Keith Seitz  <keiths@redhat.com>
8202             Alan Matsuoka  <alanm@redhat.com>
8203
8204         PR c++/15203
8205         PR c++/15210
8206         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8207         TYPE_CODE_METHOD.
8208         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8209         symbols.
8210
8211 2013-03-14  Yao Qi  <yao@codesourcery.com>
8212
8213         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8214         status to tfile if trace is stopped by command 'tstop'.
8215
8216 2013-03-14  Yao Qi  <yao@codesourcery.com>
8217
8218         * tracepoint.c (tfile_write_status): Write trace notes and user
8219         name into tfile if they are not NULL.
8220
8221 2013-03-14  Hui Zhu  <hui@codesourcery.com>
8222             Yao Qi  <yao@codesourcery.com>
8223
8224         * Makefile.in (REMOTE_OBS): Add ctf.o.
8225         (SFILES): Add ctf.c.
8226         (HFILES_NO_SRCDIR): Add ctf.h.
8227         * ctf.c, ctf.h: New files.
8228         * tracepoint.c: Include 'ctf.h'.
8229         (collect_pseudocommand): Remove static.
8230         (trace_save_command): Parse option "-ctf".
8231         Produce different trace file writers per option.
8232         Adjust output message.
8233         (trace_save_tfile, trace_save_ctf): New.
8234         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8235         * mi/mi-main.c: Include 'ctf.h'.
8236         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
8237         trace_save_tfile or trace_save_ctf.
8238         * NEWS: Mention these changes.
8239
8240 2013-03-14  Yao Qi  <yao@codesourcery.com>
8241
8242         * tracepoint.c (trace_file_writer_xfree): New.
8243         (struct tfile_writer_data): New.
8244         (tfile_dtor, tfile_can_target_save, tfile_start): New.
8245         (tfile_write_header, tfile_write_regblock_type): New.
8246         (tfile_write_status, tfile_write_uploaded_tsv): New.
8247         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8248         (tfile_write_raw_data, (tfile_end): New.
8249         (tfile_write_ops): New global variable.
8250         (TRACE_WRITE_R_BLOCK): New macro.
8251         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8252         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8253         (TRACE_WRITE_V_BLOCK): New macro.
8254         (trace_save): Add extra one parameter WRITER.  Make it static.
8255         Use WRITER to writer trace.
8256         (tfile_trace_file_writer_new): New.
8257         (trace_save_command): Caller update.
8258         (trace_save_tfile): Write trace data in TFILE format.
8259         * tracepoint.h (struct trace_frame_write_ops): New.
8260         (struct trace_file_write_ops): New.
8261         (struct trace_file_writer): New.
8262         (trace_save): Remove its declaration.
8263         (trace_save_tfile): Declare it.
8264         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8265         instead of trace_save.
8266
8267 2013-03-13  Pedro Alves  <palves@redhat.com>
8268
8269         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8270
8271 2013-03-13  Pedro Alves  <palves@redhat.com>
8272
8273         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8274         commented out code.
8275         * demangle.c (current_demangling_style_string): Make it const.
8276         (set_demangling_command): Assert the demangling style is known.
8277         Remove all handling of unknown styles.  Set
8278         'current_demangling_style_string' to an element of the
8279         demangling_style_names array.
8280         (set_demangling_style): Delete.
8281         (_initialize_demangler): Set current_demangling_style_string to the
8282         element of the demangling_style_names array that corresponds to
8283         the default demangling style.  Remove FIXME note.  Don't call
8284         set_demangling_style.
8285         * gdb-demangle.h (set_demangling_style): Remove declaration.
8286
8287 2013-03-13  Pedro Alves  <palves@redhat.com>
8288
8289         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8290         fields const.
8291         (ada_make_symbol_completion_list): Make "text0" parameter const.
8292         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8293         * breakpoint.c (condition_completer): Make "text" and "word"
8294         parameters const.  Adjust.
8295         (check_tracepoint_command): Adjust to validate_actionline
8296         prototype change.
8297         (catch_syscall_completer): Make "text" and "word" parameters
8298         const.
8299         * cli/cli-cmds.c (show_user): Make "comname" local const.
8300         (valid_command_p): Make "command" parameter const.
8301         (alias_command): Make "alias_prefix" and "command_prefix" locals
8302         const.
8303         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8304         (add_alias_cmd): Make "name" and "oldname" parameters const.
8305         Adjust.  No longer make copy of OLDNAME.
8306         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8307         (add_setshow_cmd_full, add_setshow_enum_cmd)
8308         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8309         (add_setshow_filename_cmd, add_setshow_string_cmd)
8310         (add_setshow_string_noescape_cmd)
8311         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8312         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8313         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8314         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8315         Make "name" parameter const.
8316         (help_cmd): Rename "command" parameter to "arg".  New const local
8317         "command".
8318         (find_cmd): Make "command" parameter const.
8319         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
8320         deprecated_cmd_warning prototype change.
8321         (undef_cmd_error): Make "cmdtype" parameter const.
8322         (lookup_cmd): Make "line" parameter const.
8323         (deprecated_cmd_warning): Change type of "text" parameter to
8324         pointer to const char, from pointer to pointer to char.  Adjust.
8325         (lookup_cmd_composition): Make "text" parameter const.
8326         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8327         parameters const.
8328         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8329         const.
8330         * cli/cli-script.c (validate_comname): Make "tem" local const.
8331         (define_command): New const local "tem_c".  Use it in calls to
8332         lookup_cmd.
8333         (document_command): Make "tem" and "comfull" locals const.
8334         (show_user_1): Make "prefix" and "name" parameters const.
8335         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8336         const.
8337         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8338         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8339         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8340         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8341         (complete_on_enum, add_setshow_enum_cmd)
8342         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8343         (add_setshow_filename_cmd, add_setshow_string_cmd)
8344         (add_setshow_string_noescape_cmd)
8345         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8346         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8347         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8348         Change prototypes, constifying strings.
8349         * completer.c (noop_completer, filename_completer): Make "text"
8350         and "prefix" parameters const.
8351         (location_completer, expression_completer)
8352         (complete_line_internal): Make "text" and "prefix" parameters
8353         const and adjust.
8354         (command_completer, signal_completer): Make "text" and "prefix"
8355         parameters const.
8356         * completer.h (noop_completer, filename_completer)
8357         (expression_completer, location_completer, command_completer)
8358         (signal_completer): Change prototypes.
8359         * corefile.c (complete_set_gnutarget): Make "text" and "word"
8360         parameters const.
8361         * cp-abi.c (cp_abi_completer): Likewise.
8362         * expression.h (parse_expression_for_completion): Change
8363         prototype.
8364         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8365         parameters const.
8366         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8367         * infrun.c (handle_completer): Make "text" and "word" parameters
8368         const.
8369         * interps.c (interpreter_completer): Make "text" and "word"
8370         parameters const.
8371         * language.h (struct language_defn)
8372         <la_make_symbol_completion_list>: Make "text" and "word"
8373         parameters const.
8374         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8375         (parse_exp_in_context): Rename to ...
8376         (parse_exp_in_context_1): ... this.
8377         (parse_exp_in_context): Reimplement, with const hack from
8378         parse_exp_1.
8379         (parse_expression_for_completion): Make "string" parameter const.
8380         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8381         to pointer to const char.  Adjust.
8382         (print_command_1): Make "exp" parameter const.
8383         (output_command): Rename to ...
8384         (output_command_const): ... this.  Make "exp" parameter const.
8385         (output_command): Reimplement.
8386         (x_command): Adjust.
8387         (display_command): Rename "exp" parameter to "arg".  New "exp"
8388         local, const version of "arg".
8389         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8390         "cmd_name" local const.
8391         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8392         call.
8393         (cmdpy_completer): Make "text" and "word" parameters const.
8394         (gdbpy_parse_command_name): Make "prefix_text2" local const.
8395         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8396         const.
8397         * remote.c (_initialize_remote): Make "cmd_name" local const.
8398         * symtab.c (language_search_unquoted_string): Make "text" and "p"
8399         parameters const.  Adjust.
8400         (completion_list_add_fields): Make "sym_text", "text" and "word"
8401         parameters const.
8402         (struct add_name_data) <sym_text, text, word>: Make fields const.
8403         (default_make_symbol_completion_list_break_on): Make "text" and
8404         "word" parameters const.  Adjust locals.
8405         (default_make_symbol_completion_list)
8406         (make_symbol_completion_list, make_symbol_completion_type)
8407         (make_symbol_completion_list_fn): Make "text" and "word"
8408         parameters const.
8409         (make_file_symbol_completion_list): Make "text", "word" and
8410         "srcfile" parameters const.  Adjust locals.
8411         (add_filename_to_list): Make "text" and "word" parameters const.
8412         (struct add_partial_filename_data) <text, word>: Make fields
8413         const.
8414         (make_source_files_completion_list): Make "text" and "word"
8415         parameters const.
8416         * symtab.h (default_make_symbol_completion_list_break_on)
8417         (default_make_symbol_completion_list, make_symbol_completion_list)
8418         (make_symbol_completion_type enum type_code)
8419         (make_symbol_completion_list_fn make_file_symbol_completion_list)
8420         (make_source_files_completion_list): Change prototype.
8421         * top.c (execute_command): Adjust to pass pointer to pointer to
8422         const char to lookup_cmd, and to deprecated_cmd_warning prototype
8423         change.
8424         (set_verbose): Make "cmdname" local const.
8425         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8426         and adjust.
8427         (validate_actionline): Make "line" parameter a pointer to const
8428         char, and adjust.
8429         (encode_actions_1): Make "action_exp" local const, and adjust.
8430         (encode_actions): Adjust.
8431         (replace_comma): Delete.
8432         (trace_dump_actions): Make "action_exp" and "next_comma" locals
8433         const, and adjust.  Don't frob the action string while splitting
8434         it at commas.  Instead, make a copy of each split substring in
8435         turn.
8436         (trace_dump_command): Adjust to validate_actionline prototype
8437         change.
8438         * tracepoint.h (decode_agent_options, decode_agent_options)
8439         (encode_actions, validate_actionline): Change prototypes.
8440         * valprint.h (output_command): Delete declaration.
8441         (output_command_const): Declare.
8442         * value.c (function_destroyer): Cast const away in xfree call.
8443
8444 2013-03-13  Pedro Alves  <palves@redhat.com>
8445
8446         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8447         rather than casting 'const char * const *' to 'const char **'.
8448         * ada-lex.l (processInt): Make "trailer" local const.  Remove
8449         'const char **' cast.
8450         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8451         locals, and use those as strtol output pointer, instead than doing
8452         invalid casts to from 'const char **' to 'char **'.
8453         (_initialize_demangle): Remove cast.
8454         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8455         locals, and use those as strtol output pointer, instead than doing
8456         invalid casts to from 'const char **' to 'char **'.
8457         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8458         casts.
8459         * stap-probe.c (stap_parse_register_operand)
8460         (stap_parse_single_operand): Likewise.
8461
8462 2013-03-13  Yao Qi  <yao@codesourcery.com>
8463
8464         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8465         the last matched 'V' blcok in trace frame.
8466
8467 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8468
8469         * NEWS: Create a new section for the next release branch.
8470         Rename the section of the current branch, now that it has
8471         been cut.
8472
8473 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8474
8475         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8476         * version.in: Bump version to 7.6.50.20130312-cvs.
8477
8478 2013-03-12  Keith Seitz  <keiths@redhat.com>
8479
8480         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8481         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8482         Remove temporary copy of input string.
8483         (mi_execute_command_wrapper): Make "cmd" const.
8484         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8485         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8486         Use const strings.
8487         (mi_parse): Make "cmd" const.
8488         Use const strings.
8489         * mi/mi-parse.h (mi_parse): Make "cmd" const.
8490
8491 2013-03-12  Keith Seitz  <keiths@redhat.com>
8492
8493         * ada-lang.c (ada_read_renaming_var_value): Pass const
8494         pointer to expression string to parse_exp_1.
8495         (create_excep_cond_exprs): Likewise.
8496         * ax-gdb.c (agent_eval_command_one): Likewise.
8497         (maint_agent_printf_command): Likewise.
8498         Constify much of the string handling/parsing.
8499         * breakpoint.c (set_breakpoint_condition): Pass const
8500         pointer to expression string to parse_exp_1.
8501         (update_watchpoint): Likewise.
8502         (parse_cmd_to_aexpr): Constify string handling.
8503         Pass const pointer to parse_exp_1.
8504         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8505         (find_condition_and_thread): Likewise.
8506         Make TOK const.
8507         (watch_command_1): Make "arg" const.
8508         Constify string handling.
8509         Copy the expression string instead of changing the input
8510         string.
8511         (update_breakpoint_location): Pass const pointer to
8512         parse_exp_1.
8513         * eval.c (parse_and_eval_address): Make "exp" const.
8514         (parse_to_comma_and_eval): Make "expp" const.
8515         (parse_and_eval): Make "exp" const.
8516         * expression.h (parse_expression): Make argument const.
8517         (parse_exp_1): Make first argument const.
8518         * findcmd.c (parse_find_args): Treat "args" as const.
8519         * linespec.c (parse_linespec): Pass const pointer to
8520         linespec_expression_to_pc.
8521         (linespec_expression_to_pc): Make "exp_ptr" const.
8522         * parse.c (parse_exp_1): Make "stringptr" const.
8523         Make a copy of the expression to pass to parse_exp_in_context until
8524         this whole interface can be constified.
8525         (parse_expression): Make "string" const.
8526         * printcmd.c (ui_printf): Treat "arg" as const.
8527         Handle const strings.
8528         * tracepoint.c (validate_actionline): Pass const pointer to
8529         all calls to parse_exp_1.
8530         (encode_actions_1): Likewise.
8531         * value.h (parse_to_comma_and_eval): Make argument const.
8532         (parse_and_eval_address): Likewise.
8533         (parse_and_eval): Likewise.
8534         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8535         (varobj_set_value): Likewise.
8536         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8537         constify string handling.
8538         Pass const pointers to parse_and_eval_address and
8539         parse_to_comman_and_eval.
8540         * cli/cli-utils.c (skip_to_space): Rename to ...
8541         (skip_to_space_const): ... this. Handle const strings.
8542         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8543         skip_to_space_const.
8544         (skip_to_space_const): Declare.
8545         * common/format.c (parse_format_string): Make "arg" const.
8546         Handle const strings.
8547         * common/format.h (parse_format_string): Make "arg" const.
8548         * gdbserver/ax.c (ax_printf): Make "format" const.
8549         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8550         of the expression string.
8551
8552 2013-03-12  Hui Zhu  <hui@codesourcery.com>
8553
8554         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8555
8556 2013-03-12  Yao Qi  <yao@codesourcery.com>
8557             Hui Zhu  <hui@codesourcery.com>
8558
8559         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8560         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8561         DW_OP_deref_size.
8562
8563 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
8564
8565         * ada-lex.l (rules): Only recognize 'thread' as a
8566         delimiter when followed by numerals, as for c-exp.y.
8567         Use new rewind_to_char function to rewind the input for
8568         expression-delimiting tokens.
8569         (rewind_to_char): New function.
8570
8571 2013-03-11  Pedro Alves  <palves@redhat.com>
8572             Jan Kratochvil  <jan.kratochvil@redhat.com>
8573
8574         * configure: Regenerate.
8575         * configure.ac (check dynamic export flag): Link python test with
8576         $PYTHON_LIBS.
8577
8578 2013-03-11  Doug Evans  <dje@google.com>
8579             Keith Seitz  <keiths@redhat.com>
8580
8581         * linespec.c (find_linespec_symbols): Call find_function_symbols
8582         first, and then call lookup_prefix_sym/find_method.
8583
8584 2013-03-11  Pedro Alves  <palves@redhat.com>
8585
8586         * charset.c (convert_between_encodings): Don't cast between
8587         different pointer to pointer types.  Instead, make the 'inp' local
8588         be of the type iconv expects.
8589         (wchar_iterate): Don't cast between different pointer to pointer
8590         types.  Instead, use new pointer local of the type iconv expects.
8591         * target.c (target_read_stralloc, target_fileio_read_stralloc):
8592         Add new local of type char pointer, and use it to get a
8593         char/string view of the byte buffer, instead of casting between
8594         pointer to pointer types.
8595
8596 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
8597
8598         * remote.c (remote_set_trace_buffer_size): Move != operator
8599         to the start of next line to fix an ARI warning.
8600
8601 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8602
8603         * NEWS: Add record changes.
8604
8605 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8606
8607         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8608         the instruction history disassembly.
8609         * disasm.c (dump_insns): Omit the pc prefix, if requested.
8610         * disasm.h (DISASSEMBLY_OMIT_PC): New.
8611
8612 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8613
8614         * Makefile.in (SFILES): Add record-btrace.c
8615         (COMMON_OBS): Add record-btrace.o
8616         * record-btrace.c: New.
8617         * objfiles.c: Include btrace.h.
8618         (free_objfile): call btrace_free_objfile.
8619
8620 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8621
8622         * target.c (target_call_history, target_call_history_from,
8623         target_call_history_range): New.
8624         * target.h (target_ops) <to_call_history, to_call_history_from,
8625         to_call_history_range>: New fields.
8626         (target_call_history, target_call_history_from,
8627         target_call_history_range): New declaration.
8628         * record.c (get_call_history_modifiers, cmd_record_call_history,
8629         record_call_history_size): New.
8630         (_initialize_record): Add the "record function-call-history" command.
8631         Add "set/show record function-call-history-size" commands.
8632         * record.h (record_print_flag): New.
8633
8634 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8635
8636         * target.h (target_ops) <to_insn_history, to_insn_history_from,
8637         to_insn_history_range>: New fields.
8638         (target_insn_history): New.
8639         (target_insn_history_from): New.
8640         (target_insn_history_range): New.
8641         * target.c (target_insn_history): New.
8642         (target_insn_history_from): New.
8643         (target_insn_history_range): New.
8644         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8645         (record_insn_history_size): New.
8646         (get_insn_number): New.
8647         (get_context_size): New.
8648         (no_chunk): New.
8649         (get_insn_history_modifiers): New.
8650         (cmd_record_insn_history): New.
8651         (_initialize_record): Add "set/show record instruction-history-size"
8652         command. Add "record instruction-history" command.
8653
8654 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8655
8656         * record.h (record_disconnect): New.
8657         (record_detach): New.
8658         (record_mourn_inferior): New.
8659         (record_kill): New.
8660         * record-full.c (record_disconnect, record_detach,
8661         record_mourn_inferior, record_kill): Move to...
8662         * record.c: ...here.
8663         (DEBUG): New.
8664         (record_stop): New.
8665         (record_unpush): New.
8666         (cmd_record_stop): Call record_stop. Replace unpush_target
8667         call with record_unpush call.
8668         (record_disconnect, record_detach): Assert that the target
8669         is of record stratum. Call record_unpush, record_stop, and
8670         DEBUG.
8671         (record_mourn_inferior, record_kill): Assert that the target
8672         is of record stratum. Call record_unpush and DEBUG.
8673
8674 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8675
8676         * record-full.h, record-full.c (record_memory_query): Rename
8677         to ...
8678         (record_full_memory_query): ...this. Update all users.
8679         (record_arch_list_add_reg): Rename to ...
8680         (record_full_arch_list_add_reg): ...this. Update all users.
8681         (record_arch_list_add_mem): Rename to ...
8682         (record_full_arch_list_add_mem): ...this. Update all users.
8683         (record_arch_list_add_end): Rename to ...
8684         (record_full_arch_list_add_end): ...this. Update all users.
8685         (record_gdb_operation_disable_set): Rename to ...
8686         (record_full_gdb_operation_disable_set): ...this.
8687         Update all users.
8688
8689 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8690
8691         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8692         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8693         (RECORD_IS_REPLAY): Renamed to ...
8694         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8695         (RECORD_FILE_MAGIC): Renamed to ...
8696         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8697         (record_mem_entry): Renamed to ...
8698         (record_full_mem_entry): ... this. Updated all users.
8699         (record_reg_entry): Renamed to ...
8700         (record_full_reg_entry): ... this. Updated all users.
8701         (record_end_entry): Renamed to ...
8702         (record_full_end_entry): ... this. Updated all users.
8703         (record_type) <record_end, record_reg, record_mem>: Renamed
8704         to ...
8705         (record_full_type) <record_full_end, record_full_reg,
8706         record_full_mem>: ... this. Updated all users.
8707         (record_entry): Renamed to ...
8708         (record_full_entry): ... this. Updated all users.
8709         (record_core_buf_entry): Renamed to ...
8710         (record_full_core_buf_entry): ... this. Updated all users.
8711         (record_core_regbuf): Renamed to ...
8712         (record_full_core_regbuf): ... this. Updated all users.
8713         (record_core_start): Renamed to ...
8714         (record_full_core_start): ... this. Updated all users.
8715         (record_core_end): Renamed to ...
8716         (record_full_core_end): ... this. Updated all users.
8717         (record_core_buf_list): Renamed to ...
8718         (record_full_core_buf_list): ... this. Updated all users.
8719         (record_first): Renamed to ...
8720         (record_full_first): ... this. Updated all users.
8721         (record_list): Renamed to ...
8722         (record_full_list): ... this. Updated all users.
8723         (record_arch_list_head): Renamed to ...
8724         (record_full_arch_list_head): ... this. Updated all users.
8725         (record_arch_list_tail): Renamed to ...
8726         (record_full_arch_list_tail): ... this. Updated all users.
8727         (record_stop_at_limit): Renamed to ...
8728         (record_full_stop_at_limit): ... this. Updated all users.
8729         (record_insn_max_num): Renamed to ...
8730         (record_full_insn_max_num): ... this. Updated all users.
8731         (record_insn_num): Renamed to ...
8732         (record_full_insn_num): ... this. Updated all users.
8733         (record_insn_count): Renamed to ...
8734         (record_full_insn_count): ... this. Updated all users.
8735         (record_ops): Renamed to ...
8736         (record_full_ops): ... this. Updated all users.
8737         (record_core_ops): Renamed to ...
8738         (record_full_core_ops): ... this. Updated all users.
8739         (set_record_cmdlist): Renamed to ...
8740         (set_record_full_cmdlist): ... this. Updated all users.
8741         (show_record_cmdlist): Renamed to ...
8742         (show_record_full_cmdlist): ... this. Updated all users.
8743         (record_cmdlist): Renamed to ...
8744         (record_full_cmdlist): ... this. Updated all users.
8745         (record_beneath_to_resume_ops): Renamed to ...
8746         (record_full_beneath_to_resume_ops): ... this. Updated all users.
8747         (record_beneath_to_resume): Renamed to ...
8748         (record_full_beneath_to_resume): ... this. Updated all users.
8749         (record_beneath_to_wait_ops): Renamed to ...
8750         (record_full_beneath_to_wait_ops): ... this. Updated all users.
8751         (record_beneath_to_wait): Renamed to ...
8752         (record_full_beneath_to_wait): ... this. Updated all users.
8753         (record_beneath_to_store_registers_ops): Renamed to ...
8754         (record_full_beneath_to_store_registers_ops): ... this.
8755         Updated all users.
8756         (record_beneath_to_store_registers): Renamed to ...
8757         (record_full_beneath_to_store_registers): ... this.
8758         Updated all users.
8759         (record_beneath_to_xfer_partial_ops): Renamed to ...
8760         (record_full_beneath_to_xfer_partial_ops): ... this.
8761         Updated all users.
8762         (record_beneath_to_xfer_partial): Renamed to ...
8763         (record_full_beneath_to_xfer_partial): ... this.
8764         Updated all users.
8765         (record_beneath_to_insert_breakpoint): Renamed to ...
8766         (record_full_beneath_to_insert_breakpoint): ... this.
8767         Updated all users.
8768         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8769         (record_full_beneath_to_stopped_by_watchpoint): ... this.
8770         Updated all users.
8771         (record_beneath_to_stopped_data_address): Renamed to ...
8772         (record_full_beneath_to_stopped_data_address): ... this.
8773         Updated all users.
8774         (record_beneath_to_async): Renamed to ...
8775         (record_full_beneath_to_async): ... this. Updated all users.
8776         (record_goto_insn): Renamed to ...
8777         (record_full_goto_insn): ... this. Updated all users.
8778         (record_save): Renamed to ...
8779         (record_full_save): ... this. Updated all users.
8780         (record_reg_alloc): Renamed to ...
8781         (record_full_reg_alloc): ... this. Updated all users.
8782         (record_reg_release): Renamed to ...
8783         (record_full_reg_release): ... this. Updated all users.
8784         (record_mem_alloc): Renamed to ...
8785         (record_full_mem_alloc): ... this. Updated all users.
8786         (record_mem_release): Renamed to ...
8787         (record_full_mem_release): ... this. Updated all users.
8788         (record_end_alloc): Renamed to ...
8789         (record_full_end_alloc): ... this. Updated all users.
8790         (record_end_release): Renamed to ...
8791         (record_full_end_release): ... this. Updated all users.
8792         (record_entry_release): Renamed to ...
8793         (record_full_entry_release): ... this. Updated all users.
8794         (record_list_release): Renamed to ...
8795         (record_full_list_release): ... this. Updated all users.
8796         (record_list_release_following): Renamed to ...
8797         (record_full_list_release_following): ... this.
8798         Updated all users.
8799         (record_list_release_first): Renamed to ...
8800         (record_full_list_release_first): ... this. Updated all users.
8801         (record_arch_list_add): Renamed to ...
8802         (record_full_arch_list_add): ... this. Updated all users.
8803         (record_get_loc): Renamed to ...
8804         (record_full_get_loc): ... this. Updated all users.
8805         (record_check_insn_num): Renamed to ...
8806         (record_full_check_insn_num): ... this. Updated all users.
8807         (record_arch_list_cleanups): Renamed to ...
8808         (record_full_arch_list_cleanups): ... this. Updated all users.
8809         (record_message): Renamed to ...
8810         (record_full_message): ... this. Updated all users.
8811         (record_message_wrapper): Renamed to ...
8812         (record_full_message_wrapper): ... this. Updated all users.
8813         (record_message_wrapper_safe): Renamed to ...
8814         (record_full_message_wrapper_safe): ... this. Updated all users.
8815         (record_gdb_operation_disable): Renamed to ...
8816         (record_full_gdb_operation_disable): ... this. Updated all users.
8817         (record_hw_watchpoint): Renamed to ...
8818         (record_full_hw_watchpoint): ... this. Updated all users.
8819         (record_exec_insn): Renamed to ...
8820         (record_full_exec_insn): ... this. Updated all users.
8821         (record_restore): Renamed to ...
8822         (record_full_restore): ... this. Updated all users.
8823         (record_async_inferior_event_token): Renamed to ...
8824         (record_full_async_inferior_event_token): ... this.
8825         Updated all users.
8826         (record_async_inferior_event_handler): Renamed to ...
8827         (record_full_async_inferior_event_handler): ... this.
8828         Updated all users.
8829         (record_core_open_1): Renamed to ...
8830         (record_full_core_open_1): ... this. Updated all users.
8831         (record_open_1): Renamed to ...
8832         (record_full_open_1): ... this. Updated all users.
8833         (record_open): Renamed to ...
8834         (record_full_open): ... this. Updated all users.
8835         (record_close): Renamed to ...
8836         (record_full_close): ... this. Updated all users.
8837         (record_resume_step): Renamed to ...
8838         (record_full_resume_step): ... this. Updated all users.
8839         (record_resumed): Renamed to ...
8840         (record_full_resumed): ... this. Updated all users.
8841         (record_execution_dir): Renamed to ...
8842         (record_full_execution_dir): ... this. Updated all users.
8843         (record_resume): Renamed to ...
8844         (record_full_resume): ... this. Updated all users.
8845         (record_get_sig): Renamed to ...
8846         (record_full_get_sig): ... this. Updated all users.
8847         (record_sig_handler): Renamed to ...
8848         (record_full_sig_handler): ... this. Updated all users.
8849         (record_wait_cleanups): Renamed to ...
8850         (record_full_wait_cleanups): ... this. Updated all users.
8851         (record_wait_1): Renamed to ...
8852         (record_full_wait_1): ... this. Updated all users.
8853         (record_wait): Renamed to ...
8854         (record_full_wait): ... this. Updated all users.
8855         (record_stopped_by_watchpoint): Renamed to ...
8856         (record_full_stopped_by_watchpoint): ... this. Updated all users.
8857         (record_disconnect): Renamed to ...
8858         (record_full_disconnect): ... this. Updated all users.
8859         (record_detach): Renamed to ...
8860         (record_full_detach): ... this. Updated all users.
8861         (record_mourn_inferior): Renamed to ...
8862         (record_full_mourn_inferior): ... this. Updated all users.
8863         (record_kill): Renamed to ...
8864         (record_full_kill): ... this. Updated all users.
8865         (record_stopped_data_address): Renamed to ...
8866         (record_full_stopped_data_address): ... this. Updated all users.
8867         (record_registers_change): Renamed to ...
8868         (record_full_registers_change): ... this. Updated all users.
8869         (record_store_registers): Renamed to ...
8870         (record_full_store_registers): ... this. Updated all users.
8871         (record_xfer_partial): Renamed to ...
8872         (record_full_xfer_partial): ... this. Updated all users.
8873         (record_breakpoint): Renamed to ...
8874         (record_full_breakpoint): ... this. Updated all users.
8875         (record_breakpoint_p): Renamed to ...
8876         (record_full_breakpoint_p): ... this. Updated all users.
8877         (record_breakpoints): Renamed to ...
8878         (record_full_breakpoints): ... this. Updated all users.
8879         (record_sync_record_breakpoints): Renamed to ...
8880         (record_full_sync_record_breakpoints): ... this.
8881         Updated all users.
8882         (record_init_record_breakpoints): Renamed to ...
8883         (record_full_init_record_breakpoints): ... this.
8884         Updated all users.
8885         (record_insert_breakpoint): Renamed to ...
8886         (record_full_insert_breakpoint): ... this. Updated all users.
8887         (record_remove_breakpoint): Renamed to ...
8888         (record_full_remove_breakpoint): ... this. Updated all users.
8889         (record_can_execute_reverse): Renamed to ...
8890         (record_full_can_execute_reverse): ... this. Updated all users.
8891         (record_get_bookmark): Renamed to ...
8892         (record_full_get_bookmark): ... this. Updated all users.
8893         (record_goto_bookmark): Renamed to ...
8894         (record_full_goto_bookmark): ... this. Updated all users.
8895         (record_async): Renamed to ...
8896         (record_full_async): ... this. Updated all users.
8897         (record_can_async_p): Renamed to ...
8898         (record_full_can_async_p): ... this. Updated all users.
8899         (record_is_async_p): Renamed to ...
8900         (record_full_is_async_p): ... this. Updated all users.
8901         (record_execution_direction): Renamed to ...
8902         (record_full_execution_direction): ... this. Updated all users.
8903         (record_info): Renamed to ...
8904         (record_full_info): ... this. Updated all users.
8905         (record_delete): Renamed to ...
8906         (record_full_delete): ... this. Updated all users.
8907         (record_is_replaying): Renamed to ...
8908         (record_full_is_replaying): ... this. Updated all users.
8909         (record_goto_entry): Renamed to ...
8910         (record_full_goto_entry): ... this. Updated all users.
8911         (record_goto_begin): Renamed to ...
8912         (record_full_goto_begin): ... this. Updated all users.
8913         (record_goto_end): Renamed to ...
8914         (record_full_goto_end): ... this. Updated all users.
8915         (record_goto): Renamed to ...
8916         (record_full_goto): ... this. Updated all users.
8917         (init_record_ops): Renamed to ...
8918         (init_record_full_ops): ... this. Updated all users.
8919         (record_core_resume): Renamed to ...
8920         (record_full_core_resume): ... this. Updated all users.
8921         (record_core_kill): Renamed to ...
8922         (record_full_core_kill): ... this. Updated all users.
8923         (record_core_fetch_registers): Renamed to ...
8924         (record_full_core_fetch_registers): ... this. Updated all users.
8925         (record_core_prepare_to_store): Renamed to ...
8926         (record_full_core_prepare_to_store): ... this. Updated all users.
8927         (record_core_store_registers): Renamed to ...
8928         (record_full_core_store_registers): ... this. Updated all users.
8929         (record_core_xfer_partial): Renamed to ...
8930         (record_full_core_xfer_partial): ... this. Updated all users.
8931         (record_core_insert_breakpoint): Renamed to ...
8932         (record_full_core_insert_breakpoint): ... this. Updated all users.
8933         (record_core_remove_breakpoint): Renamed to ...
8934         (record_full_core_remove_breakpoint): ... this. Updated all users.
8935         (record_core_has_execution): Renamed to ...
8936         (record_full_core_has_execution): ... this. Updated all users.
8937         (init_record_core_ops): Renamed to ...
8938         (init_record_full_core_ops): ... this. Updated all users.
8939         (cmd_record_restore): Renamed to ...
8940         (cmd_record_full_restore): ... this. Updated all users.
8941         (record_save_cleanups): Renamed to ...
8942         (record_full_save_cleanups): ... this. Updated all users.
8943         (cmd_record_start): Renamed to ...
8944         (cmd_record_full_start): ... this. Updated all users.
8945         (set_record_insn_max_num): Renamed to ...
8946         (set_record_full_insn_max_num): ... this. Updated all users.
8947         (set_record_command): Renamed to ...
8948         (set_record_full_command): ... this. Updated all users.
8949         (show_record_command): Renamed to ...
8950         (show_record_full_command): ... this. Updated all users.
8951         (_initialize_record): Renamed to ...
8952         (_initialize_record_full): ... this. Updated all users.
8953
8954 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8955
8956         * record.h: Split into this and ...
8957         * record-full.h: ... this.
8958         * record.c: Split into this and ...
8959         * record-full.c: ... this.
8960         * target.h (target_ops): Add new fields to_info_record,
8961         to_save_record, to_delete_record, to_record_is_replaying,
8962         to_goto_record_begin, to_goto_record_end, to_goto_record.
8963         (target_info_record): New.
8964         (target_save_record): New.
8965         (target_supports_delete_record): New.
8966         (target_delete_record): New.
8967         (target_record_is_replaying): New.
8968         (target_goto_record_begin): New.
8969         (target_goto_record_end): New.
8970         (target_goto_record): New.
8971         * target.c (target_info_record): New.
8972         (target_save_record): New.
8973         (target_supports_delete_record): New.
8974         (target_delete_record): New.
8975         (target_record_is_replaying): New.
8976         (target_goto_record_begin): New.
8977         (target_goto_record_end): New.
8978         (target_goto_record): New.
8979         * record.h: Declare struct cmd_list_element.
8980         (record_cmdlist): New declaration.
8981         (set_record_cmdlist): New declaration.
8982         (show_record_cmdlist): New declaration.
8983         (info_record_cmdlist): New declaration.
8984         (cmd_record_goto): New declaration.
8985         * record.c: Remove unnecessary includes.
8986         Include inferior.h.
8987         (cmd_record_goto): Remove declaration.
8988         (record_cmdlist): Now extern. Initialize.
8989         (set_record_cmdlist): Now extern. Initialize.
8990         (show_record_cmdlist): Now extern. Initialize.
8991         (info_record_cmdlist): Now extern. Initialize.
8992         (find_record_target): New.
8993         (require_record_target): New.
8994         (cmd_record_start): Update.
8995         (cmd_record_delete): Remove target-specific code.
8996         Call target_delete_record.
8997         (cmd_record_stop): Unpush any record target.
8998         (set_record_insn_max_num): Move to record-full.c
8999         (set_record_command): Add comment.
9000         (show_record_command): Add comment.
9001         (info_record_command): Update comment.
9002         Remove target-specific code.
9003         Call the record target's to_info_record.
9004         (cmd_record_start): New.
9005         (cmd_record_goto): Now extern.
9006         Remove target-specific code.
9007         Call target_goto_begin,  target_goto_end, or target_goto.
9008         (_initialize_record): Move record target ops initialization to
9009         record-full.c.
9010         Change "record" command help text.
9011         Move "record restore", "record set", and "record show" commands to
9012         record-full.c.
9013         * Makefile.in (SFILES): Add record-full.c.
9014         (HFILES_NO_SRCDIR): Add record-full.h.
9015         (COMMON_OBS): Add record-full.o.
9016         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9017         * arm-tdep.c: Include record-full.h.
9018         * i386-linux-tdep.c: Include record-full.h instead of record.h.
9019         * i386-tdep.c: Include record-full.h.
9020         * infrun.c: Include record-full.h.
9021         * linux-record.c: Include record-full.h.
9022         * moxie-tdep.c: Include record-full.h.
9023         * record-full.c: Include record-full.h.
9024         Change module comment.
9025         (set_record_full_cmdlist): New.
9026         (show_record_full_cmdlist): New.
9027         (record_full_cmdlist): New.
9028         (record_goto_insn): New declaration.
9029         (record_save): New declaration.
9030         (record_check_insn_num): Change query string.
9031         (record_info): New.
9032         (record_delete): New.
9033         (record_is_replaying): New.
9034         (record_goto_entry): New.
9035         (record_goto_begin): New.
9036         (record_goto_end): New.
9037         (record_goto): New.
9038         (init_record_ops): Update.
9039         (init_record_core_ops): Update.
9040         (cmd_record_save): Rename to record_save. Remove target and arg checks.
9041         (cmd_record_start): New.
9042         (set_record_insn_max_num): Moved from record.c
9043         (set_record_full_command): New.
9044         (show_record_full_command): New.
9045         (_initialize_record_full): New.
9046
9047 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9048
9049         * target.h (add_deprecated_target_alias): New.
9050         * target.c (add_deprecated_target_alias): New.
9051
9052 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9053
9054         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9055         and signal.h.
9056         (linux_supports_btrace): Add kernel and
9057         cpuid check.
9058         (kernel_supports_btrace): New function.
9059         (cpu_supports_btrace): New function.
9060         (intel_supports_btrace): New function.
9061
9062 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9063
9064         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9065         * remote.c: Include btrace.h.
9066         (struct btrace_target_info): New struct.
9067         (remote_supports_btrace): New function.
9068         (send_Qbtrace): New function.
9069         (remote_enable_btrace): New function.
9070         (remote_disable_btrace): New function.
9071         (remote_teardown_btrace): New function.
9072         (remote_read_btrace): New function.
9073         (init_remote_ops): Add btrace ops.
9074         (enum <unnamed>): Add btrace packets.
9075         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9076         (_initialize_remote): Add packet configuration for branch tracing.
9077
9078 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9079
9080         * features/btrace.dtd: New file.
9081         * Makefile.in (XMLFILES): Add btrace.dtd.
9082         * btrace.h (parse_xml_btrace): New declaration.
9083         * btrace.c: Include xml-support.h.
9084         (parse_xml_btrace): New function.
9085         (parse_xml_btrace_block): New function.
9086         (block_attributes): New struct.
9087         (btrace_attributes): New struct.
9088         (btrace_children): New struct.
9089         (btrace_elements): New struct.
9090
9091 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9092
9093         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9094         (amd64_linux_enable_btrace): New.
9095         (amd64_linux_disable_btrace): New.
9096         (amd64_linux_teardown_btrace): New.
9097         (_initialize_amd64_linux_nat): Initialize btrace ops.
9098         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9099         (i386_linux_enable_btrace): New.
9100         (i386_linux_disable_btrace): New.
9101         (i386_linux_teardown_btrace): New.
9102         (_initialize_i386_linux_nat): Initialize btrace ops.
9103         * config/i386/linux.mh: Add linux-btrace.o.
9104         * config/i386/linux64.mh: Add linux-btrace.o.
9105
9106 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9107
9108         * common/linux_btrace.h: New file.
9109         * common/linux_btrace.c: New file.
9110         * Makefile.in (SFILES): Add btrace.c.
9111         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9112         (COMMON_OBS): Add btrace.o.
9113         (linux-btrace.o): New rule.
9114
9115 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9116
9117         * target.h: Include btrace.h.
9118         (struct target_ops) <to_supports_btrace, to_enable_btrace,
9119         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9120         * target.c (target_supports_btrace): New function.
9121         (target_enable_btrace): New function.
9122         (target_disable_btrace): New function.
9123         (target_teardown_btrace): New function.
9124         (target_read_btrace): New function.
9125         * btrace.h: New file.
9126         * btrace.c: New file.
9127         * Makefile.in: Add btrace.c.
9128         * gdbthread.h: Include btrace.h.
9129         (struct thread_info): Add btrace field.
9130         * thread.c: Include btrace.h.
9131         (clear_thread_inferior_resources): Call target_teardown_btrace.
9132         * common/btrace-common.h: New file.
9133
9134 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9135
9136         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9137         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9138         kill_status to outer block.
9139
9140 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9141
9142         Fix entry-values if the callee called a noreturn function.
9143         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9144         get_frame_address_in_block.  Add new comment.
9145
9146 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9147
9148         Fix entry-values in C++ across CUs.
9149         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9150         lookup_minimal_symbol.  Add a comment.
9151         * dwarf2read.c
9152         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9153         DW_AT_linkage_name.
9154
9155 2013-03-08  Yao Qi  <yao@codesourcery.com>
9156
9157         * tracepoint.c (_initialize_tracepoint): Indent the code.
9158
9159 2013-03-08  Pedro Alves  <palves@redhat.com>
9160
9161         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9162         (parse_find_args, find_command): Change type of pattern buffer
9163         locals to 'gdb_byte *'.
9164
9165 2013-03-08  Stan Shebs  <stan@codesourcery.com>
9166             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9167
9168         * NEWS: Mention set and show trace-buffer-size commands.
9169         Mention new packet.
9170         * target.h (struct target_ops): New method
9171         to_set_trace_buffer_size.
9172         (target_set_trace_buffer_size): New macro.
9173         * target.c (update_current_target): Set up new method.
9174         * tracepoint.c (trace_buffer_size): New global.
9175         (start_tracing): Send it to the target.
9176         (set_trace_buffer_size): New function.
9177         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9178         * remote.c (remote_set_trace_buffer_size): New function.
9179         (_initialize_remote): Use it.
9180         (QTBuffer:size) New remote command.
9181         (PACKET_QTBuffer_size): New enum.
9182         (remote_protocol_features): Add an entry for
9183         PACKET_QTBuffer_size.
9184
9185 2013-03-08  Tom Tromey  <tromey@redhat.com>
9186
9187         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9188         variable.
9189
9190 2013-03-07  Pedro Alves  <palves@redhat.com>
9191
9192         * target.c (target_read_stralloc, target_fileio_read_alloc):
9193         *Cast pointer to 'gdb_byte *' in target call.
9194
9195 2013-03-07  Pedro Alves  <palves@redhat.com>
9196
9197         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9198         call.
9199
9200 2013-03-07  Keith Seitz  <keiths@redhat.com>
9201
9202         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9203         (trace_pass_command): Likewise.
9204         * cli/cli-cmds.c: Include cli/cli-utils.h.
9205         (source_command): Use skip-spaces.
9206         (disassemble_command): Likewise.
9207         * findcmd.c: Include cli/cli-utils.h.
9208         (parse_find_args): Use skip_spaces.
9209         * go32-nat.c: Include cli/cli-utils.h.
9210         (go32_sldt): Use skip_spaces.
9211         (go32_sgdt): Likewise.
9212         (go32_sidt): Likewise.
9213         (go32_pde): Likewise.
9214         (go32_pte): Likewise.
9215         (go32_pte_for_address): Likewise.
9216         * infcmd.c: Include cli/cli-utils.h.
9217         (registers_info): Use skip_spaces.
9218         * linux-tdep.c (read_mapping): Use skip_spaces_const.
9219         (linux_info_proc): Likewise.
9220         * linux-thread-db.c: Include cli/cli-utils.h.
9221         (info_auto_load_libthread_db): Use skip_spaces_const.
9222         * m32r-rom.c: Include cli/cli-utils.h.
9223         (m32r_upload_command): Use skip_spaces.
9224         * maint.c: Include cli/cli-utils.h.
9225         (maintenance_translate_address): Use skip_spaces.
9226         * mi/mi-parse.c: Include cli/cli-utils.h.
9227         (mi_parse_argv): Use skip_spaces.
9228         (mi_parse): Likewise.
9229         * minsyms.c: Include cli/cli-utils.h.
9230         (msymbol_hash_iw): Use skip_spaces_const.
9231         * objc-lang.c: Include cli/cli-utils.h.
9232         (parse_selector): Use skip_spaces.
9233         (parse_method): Likewise.
9234         * python/python.c: Include cli/cli-utils.h.
9235         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9236         (python_command)[HAVE_PYTHON]: Likewise.
9237         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9238         * remote-m32r-sdi.c: Include cli/cli-utils.h.
9239         (m32r_load): Use skip_spaces.
9240         * serial.c: Include cli/cli-utils.h.
9241         (serial_open): Use skip_spaces_const.
9242         * stack.c: Include cli/cli-utils.h.
9243         (parse_frame_specification_1): Use skip_spaces_const.
9244         * symfile.c: Include cli/cli-utils.h.
9245         (set_ext_lang_command): Use skip_spaces.
9246         * symtab.c: Include cli/cli-utils.h.
9247         (rbreak_command): Use skip_spaces.
9248         * thread.c (thread_name_command): Use skip_spaces.
9249         * tracepoint.c (validate_actionline): Use skip_spaces.
9250         (encode_actions_1): Likewise.
9251         (trace_find_range_command): Likewise.
9252         (trace_find_outside_command): Likewise.
9253         (trace_dump_actions): Likewise.
9254
9255 2013-03-07  Pedro Alves  <palves@redhat.com>
9256
9257         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9258         * expprint.c (print_subexp_standard): Likewise.
9259         * utils.c (host_char_to_target): Likewise.
9260         * valprint.c (generic_emit_char, generic_printstr): Likewise.
9261         * varobj.c (value_get_print_value): Change type of local to char*.
9262         Cast it gdb_byte * in call to language printer.
9263
9264 2013-03-07  Pedro Alves  <palves@redhat.com>
9265
9266         * charset.c (struct wchar_iterator) <input>: Change type to 'const
9267         gdb_byte *'.
9268         (make_wchar_iterator): Remove cast to char*.
9269         (wchar_iterate): Change type of local.
9270
9271 2013-03-07  Pedro Alves  <palves@redhat.com>
9272
9273         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9274         for 'regcache->register_status'.
9275
9276 2013-03-07  Pedro Alves  <palves@redhat.com>
9277
9278         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9279         int.
9280
9281 2013-03-07  Pedro Alves  <palves@redhat.com>
9282
9283         * stap-probe.c (handle_stap_probe): Add cast to char*.
9284
9285 2013-03-07  Pedro Alves  <palves@redhat.com>
9286
9287         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9288         RECORD_MSGRCV>: Pass a signed variable to
9289         regcache_raw_read_signed, instead of an unsigned one.
9290
9291 2013-03-07  Pedro Alves  <palves@redhat.com>
9292
9293         * remote-notif.c (notif_debug): Change type to int.
9294         * remote-notif.h (notif_debug): Likewise.
9295
9296 2013-03-07  Pedro Alves  <palves@redhat.com>
9297
9298         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9299
9300 2013-03-07  Pedro Alves  <palves@redhat.com>
9301
9302         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9303         * remote.h (hex2bin, bin2hex): ... here.
9304         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9305
9306 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
9307
9308         * utils.c (initialize_utils): Improve doc strings of "set/show
9309         width", "set/show height", and "set/show pagination".
9310
9311 2013-03-06  Keith Seitz  <keiths@redhat.com>
9312
9313         * ax-gdb.c (gen_printf): Make FORMAT const.
9314         * ax-gdb.h (gen_printf): Likewise.
9315         * ax-general.c (ax_string): Make STR const.
9316         * ax.h (ax_string): Likewise.
9317
9318 2013-03-06  Doug Evans  <dje@google.com>
9319
9320         * elfread.c (elf_symfile_read): Move debugging printf to more
9321         logical location.
9322
9323 2013-03-06  Pedro Alves  <palves@redhat.com>
9324
9325         * python/py-utils.c (target_string_to_unicode): Delete function.
9326         * python/python-internal.h (target_string_to_unicode): Delete
9327         declaration.
9328
9329 2013-03-06  Pierre Muller  <muller@sourceware.org>
9330
9331         * linespec.c (get_current_search_block): ARI fix, use (void)
9332         for empty parameter list.
9333
9334 2013-03-05  Doug Evans  <dje@google.com>
9335
9336         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9337         of old ada_lookup_symbol_list.  In !full_search case, don't
9338         search superblocks.
9339         (ada_lookup_symbol_list): Delete arg full_search, all callers
9340         updated.  Call ada_lookup_symbol_list_worker.
9341         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9342         * ada-lang.h (ada_lookup_symbol_list): Update.
9343         * language.h (language_defn): Update comment for
9344         la_iterate_over_symbols.
9345         * linespec.c (iterate_over_file_blocks): New function.
9346         (iterate_over_all_matching_symtabs): Call it.
9347         (lookup_prefix_sym): Ditto.
9348         (get_current_search_block): New function.
9349         (get_search_block): Delete.
9350         (find_label_symbols): Call get_current_search_block.
9351         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9352         * symtab.c (iterate_over_symbols): Don't search superblocks.
9353
9354 2013-03-05  Yao Qi  <yao@codesourcery.com>
9355
9356         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9357         parameter VAR's type from "unsigned int" to "int".
9358         * command.h (var_zuinteger_unlimited): Update its comments.
9359         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9360
9361 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9362
9363         * NEWS: Mention new target x86_64-*-cygwin*.
9364
9365 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9366
9367         * configure.host: Add x86_64-*-cygwin* as host.
9368         * configure.tgt: Add x86_64-*-cygwin* as target.
9369         * config/i386/cygwin64.mh: New file.
9370
9371 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9372
9373         * linespec.c (decode_line_2): Fix duplicate request off by two message.
9374
9375 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9376
9377         * linespec.c (struct linespec_canonical_name): New.
9378         (struct linespec_state): Change canonical_names type to it.
9379         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
9380         xrealloc element size.  Initialize the different CANONICAL fields.
9381         (canonical_to_fullform): New.
9382         (filter_results): Use it.  Add variables canonical, fullform and
9383         cleanup.
9384         (struct decode_line_2_item, decode_line_2_compare_items): New.
9385         (decode_line_2): Remove variables iter and item_names, add variables
9386         items and items_count.  Modify the code for these new variables.
9387
9388 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
9389
9390         * coff-pe-read.c (read_pe_exported_syms): Don't return without
9391         calling do_cleanup.
9392
9393 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
9394
9395         * tracepoint.c (build_traceframe_info): Add code for byte order.
9396
9397 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
9398
9399         * v850-tdep.c: (v850e2_register_name): Revise system register
9400         names to match current V850E2M architecture specifications.
9401         Update register number enum comments too.
9402
9403 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9404             Pedro Alves  <palves@redhat.com>
9405
9406         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9407         to END_ADDR.
9408         (tilegx_skip_prologue): Limit prologue analysis to section end.
9409
9410 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9411
9412         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9413         use it.
9414
9415 2013-03-01  Pedro Alves  <palves@redhat.com>
9416
9417         Use gdb_byte for bytes from the program being debugged.
9418
9419         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9420         Change type of local 'buf' to gdb_byte.
9421         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9422         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9423         * cris-tdep.c (cris_sigcontext_addr)
9424         (cris_sigtramp_frame_unwind_cache): Likewise.
9425         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9426         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9427         Likewise.
9428         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9429         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9430         (hppa32_hpux_search_dummy_call_sequence)
9431         (hppa_hpux_supply_save_state): Likewise.
9432         * hppa-linux-tdep.c (insns_match_pattern)
9433         (hppa_linux_find_global_pointer): Likewise.
9434         * hppa-tdep.c (hppa_in_function_epilogue_p)
9435         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9436         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9437         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9438         (i386fbsd_collect_uthread): Likewise.
9439         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9440         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9441         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9442         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9443         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9444         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9445         (ia64_libunwind_frame_prev_register)
9446         (ia64_libunwind_sigtramp_frame_this_id)
9447         (ia64_find_global_pointer_from_dynamic_section)
9448         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9449         (ia64_unwind_pc): Likewise.
9450         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9451         * m68hc11-tdep.c (m68hc11_push_dummy_call)
9452         (m68hc11_extract_return_value): Likewise.
9453         * m68klinux-nat.c (fetch_register, store_register): Likewise.
9454         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9455         (mep_get_insn, mep_push_dummy_call): Likewise.
9456         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9457         (mips_linux_in_dynsym_stub): Likewise.
9458         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9459         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9460         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9461         to gdb_byte.
9462         * remote-mips.c (mips_set_register): Likewise.
9463         * remote-sim.c (gdbsim_fetch_register): Likewise.
9464         * score-tdep.c (score7_fetch_inst): Change type of parameter
9465         'memblock' and local 'buf' to gdb_byte.
9466         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9467         Change type of local 'buf' to gdb_byte.  Adjust.
9468         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9469         to gdb_byte**.
9470         (score7_analyze_prologue): Change type of 'memblock' and
9471         'memblock_ptr' locals to gdb_byte*.
9472         * sh64-tdep.c (sh64_extract_return_value)
9473         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9474         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9475         * solib-pa64.c (pa64_solib_create_inferior_hook)
9476         (pa64_open_symbol_file_object): Remove local 'buf'.
9477         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9478         (som_open_symbol_file_object): Likewise.
9479         * solib-spu.c (spu_current_sos): Likewise.
9480         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9481         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9482         (spu_store_registers): Likewise.
9483         * target.c (debug_print_register): Likewise.
9484         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9485         * xstormy16-tdep.c (xstormy16_store_return_value)
9486         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9487         (xstormy16_find_jmp_table_entry): Likewise.
9488
9489 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9490
9491         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9492         (tilegx_gdbarch_init): Install it.
9493
9494 2013-02-28  Tom Tromey  <tromey@redhat.com>
9495
9496         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9497         PyLong_Check.
9498
9499 2013-02-28  Doug Evans  <dje@google.com>
9500
9501         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9502         * python/python.c (gdbpy_find_pc_line): Ditto.
9503
9504 2013-02-28  Tom Tromey  <tromey@redhat.com>
9505
9506         * contrib/excheck.py: New file.
9507         * contrib/exsummary.py: New file.
9508         * contrib/gcc-with-excheck: New file.
9509
9510 2013-02-28  Tom Tromey  <tromey@redhat.com>
9511
9512         * python/python.c (gdbpy_print_stack): Call begin_line and
9513         fprintf_filtered inside TRY_CATCH.
9514
9515 2013-02-28  Tom Tromey  <tromey@redhat.com>
9516
9517         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9518         inside TRY_CATCH.
9519
9520 2013-02-28  Tom Tromey  <tromey@redhat.com>
9521
9522         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9523         frame_object_to_frame_info inside TRY_CATCH.
9524
9525 2013-02-28  Tom Tromey  <tromey@redhat.com>
9526
9527         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9528         TRY_CATCH.
9529
9530 2013-02-28  Tom Tromey  <tromey@redhat.com>
9531
9532         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9533
9534 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
9535
9536         * windows-nat.c: Throughout, fix format strings and casts of
9537         printf-like functions to avoid type related warnings on all
9538         platforms.
9539         (handle_output_debug_string): Fetch context information address
9540         from debug string using string_to_core_addr.
9541
9542 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9543
9544         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9545         * regformats/reg-tilegx32.dat: New.
9546
9547 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9548
9549         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9550
9551 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9552
9553         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9554
9555 2013-02-27  Yao Qi  <yao@codesourcery.com>
9556             Pedro Alves  <palves@redhat.com>
9557
9558         * tracepoint.c (tfile_trace_find): For tfind
9559         pc/tp/range/outside, look for the next trace frame instead of
9560         always starting from frame 0.
9561
9562 2013-02-26  Anthony Green  <green@moxielogic.com>
9563
9564         * configure.tgt: Add support for moxie-*-rtems* target.
9565
9566 2013-02-25  Pedro Alves  <palves@redhat.com>
9567
9568         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9569         warning text.
9570
9571 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9572
9573         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9574         if $fp is used as the virtual frame pointer.
9575
9576 2013-02-23  Alan Modra  <amodra@gmail.com>
9577
9578         * elfread.c (elf_symtab_read): Do not use udata.p here to find
9579         symbol size.
9580         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9581         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9582         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9583         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9584
9585 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9586
9587         Code cleanup.
9588         * elfread.c (build_id_bfd_get): Make the return type const.
9589         (build_id_verify): Make the check parameter const.
9590         (build_id_to_debug_filename): Make the build_id parameter and variable
9591         data const.
9592         (find_separate_debug_file_by_buildid): Make the variable build_id const.
9593
9594 2013-02-21  Alan Modra  <amodra@gmail.com>
9595
9596         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9597
9598 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
9599
9600         Add a new method 'disassemble' to gdb.Architecture class.
9601         * python/py-arch.c (archpy_disassmble): Implementation of the
9602         new method gdb.Architecture.disassemble.
9603         (arch_object_methods): Add entry for the new method.
9604
9605 2013-02-20  Jiong Wang  <jiwang@tilera.com>
9606
9607         * MAINTAINERS (Write After Approval): Add myself to the list.
9608
9609 2013-02-19  Pedro Alves  <palves@redhat.com>
9610
9611         Garbage collect 'struct monitor_ops'::load_routine.
9612
9613         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9614         * monitor.c (monitor_load): No longer call
9615         current_monitor->load_routine.
9616         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9617         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9618         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9619
9620 2013-02-19  Pedro Alves  <palves@redhat.com>
9621
9622         PR gdb/15161
9623
9624         Harmonize with generic_load.
9625
9626         * monitor.c: Include "readline/readline.h".
9627         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
9628         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
9629         long/strtol for the 'load_offset' local.  Error out if no argument
9630         is given or if too many arguments are given.  Tilde expand the
9631         passed in file name.
9632
9633 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9634
9635         PR gdb/15161
9636         * symfile.c (load_section_data): Change type of load_offset
9637         to CORE_ADDR.
9638         (generic_load): User strtoulst instead of strtoul for conversion
9639         of load_offset.
9640
9641 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9642
9643         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9644          for return address, "lr" register, saved on stack.
9645         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9646         after we invoke tilegx_analyze_prologue.
9647
9648 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9649
9650         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9651
9652 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9653
9654         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9655
9656 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9657
9658         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9659         (tilegx_write_pc): New function.
9660         (tilegx_cannot_reference_register): Return zero if REGNO
9661         is TILEGX_FAULTNUM_REGNUM.
9662         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9663         (tilegx_register_name): Add handling of "faultnum" register.
9664         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9665         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9666         handling of TILEGX_FAULTNUM_REGNUM.
9667         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9668
9669 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9670
9671         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9672         should be aligned to 64bit.
9673
9674 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9675
9676         * windows-nat.c (windows_xfer_memory): Fix debug-output
9677         for LLP64.
9678
9679 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
9680
9681         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9682         Don't check DSP register number if HAVE_DSP is not set.
9683
9684 2013-02-19  Alan Modra  <amodra@gmail.com>
9685
9686         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
9687         throughout file instead.
9688         (build_id_bfd_get): Update to use new elf_tdata build_id field.
9689         Don't xmalloc return value.
9690         (build_id_verify): Similarly.  Don't xfree.
9691         (build_id_to_debug_filename): Update.
9692         (find_separate_debug_file_by_buildid): Update, don't xfree.
9693
9694 2013-02-18  Tom Tromey  <tromey@redhat.com>
9695
9696         PR gdb/15102:
9697         * dwarf2read.c (read_subrange_type): Use result of
9698         'check_typedef'.
9699
9700 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9701
9702         * frame.c: Remove one extra white space after #include
9703         directive.
9704
9705 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9706
9707         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9708
9709 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9710
9711         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9712         and dir commands into an if block.
9713
9714 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
9715
9716         * python/py-breakpoint (struct pybp_code):  Use int instead of
9717         enum type_code.
9718
9719 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
9720             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9721
9722         * NEWS: Mention new field "trace-file".
9723         * tracepoint.c (trace_status_mi): Output "trace-file" field.
9724         (tfile_open): Record the trace file's filename in the trace
9725         status.
9726         (tfile_files_info): Mention the name of the trace file.
9727         Check the "filename" field explicitely.
9728         (trace_status_command): Explicitely check "filename" field.
9729         (trace_find_command): Ditto.
9730         (trace_find_pc_command): Ditto.
9731         (trace_find_tracepoint_command): Ditto.
9732         (trace_find_line_command): Ditto.
9733         (trace_find_range_command): Ditto.
9734         (trace_find_outside_command): Ditto.
9735         * tracepoint.h (struct trace_status) <from_file>: Rename it
9736         to "filename" and make it hold the trace file's filename
9737         instead of a boolean.
9738         * remote.c (remote_get_trace_status): Initialize "filename"
9739         field with NULL instead of 0.
9740
9741 2013-02-15  Yao Qi  <yao@codesourcery.com>
9742
9743         * remote.c: Fix a typo.
9744
9745 2013-02-14  Pierre Muller  <muller@sourceware.org>
9746
9747         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9748
9749 2013-02-14  Pedro Alves  <palves@redhat.com>
9750
9751         * utils.c (savestring): Don't #undef it.  Move function to
9752         common/common-utils.c.
9753         * common/common-utils.c: Include gdb_string.h.
9754         (savestring): Move here from utils.c.
9755         * common/common-utils.h (savestring): Declare.
9756
9757 2013-02-14  Pedro Alves  <palves@redhat.com>
9758
9759         * utils.c (savestring): Rename parameter 'size' to 'len'.
9760
9761 2013-02-14  Pedro Alves  <palves@redhat.com>
9762             Yufeng Zhang  <yufeng.zhang@arm.com>
9763
9764         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9765         (aarch64_inferior_data, struct aarch64_inferior_data):
9766         Delete.
9767         (struct aarch64_process_info): New.
9768         (aarch64_process_list): New global.
9769         (aarch64_find_process_pid, aarch64_add_process)
9770         (aarch64_process_info_get): New functions.
9771         (aarch64_inferior_data_get): Delete.
9772         (aarch64_process_info_get): New function.
9773         (aarch64_forget_process): New function.
9774         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
9775         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9776         aarch64_get_debug_reg_state.
9777         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9778         instead of linux_nat_iterate_watchpoint_lwps.
9779         (aarch64_linux_new_fork): New function.
9780         (aarch64_linux_child_post_startup_inferior): Use
9781         aarch64_forget_process instead of aarch64_init_debug_reg_state.
9782         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9783         (aarch64_linux_remove_hw_breakpoint)
9784         (aarch64_handle_aligned_watchpoint)
9785         (aarch64_handle_unaligned_watchpoint)
9786         (aarch64_linux_insert_watchpoint)
9787         (aarch64_linux_remove_watchpoint)
9788         (aarch64_linux_stopped_data_address): Adjust to pass the current
9789         process id to aarch64_debug_reg_state.
9790         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9791         linux_nat_new_fork hook, and aarch64_forget_process as
9792         linux_nat_forget_process hook; remove the call to
9793         register_inferior_data_with_cleanup.
9794
9795 2013-02-14  Pedro Alves  <palves@redhat.com>
9796
9797         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9798         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9799         lval_memory.
9800
9801 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
9802             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9803
9804         * tracepoint.h (validate_trace_state_variable_name): Declare.
9805         * tracepoint.c (validate_trace_state_variable_name): New.
9806         (trace_variable_command): Parse the trace state variable's name
9807         without using parse_expression.  Do several validations.
9808         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9809         trace state variable's name with parse_expression.  Validate it.
9810
9811 2013-02-14  Yao Qi  <yao@codesourcery.com>
9812
9813         * infcmd.c (breakpoint_proceeded): Remove it.
9814
9815 2013-02-14  Yao Qi  <yao@codesourcery.com>
9816
9817         * tracepoint.c (end_actions_pseudocommand): Make it static.
9818         (while_stepping_pseudocommand): Likewise.
9819         * tracepoint.h (end_actions_pseudocommand): Remove the
9820         declaration.
9821         (while_stepping_pseudocommand): Likewise.
9822
9823 2013-02-14  Yao Qi  <yao@codesourcery.com>
9824
9825         * cli/cli-decode.c (help_cmd): Remove the declaration of
9826         "cmdlist".
9827         (help_all): Likewise.
9828
9829 2013-02-13  Pedro Alves  <palves@redhat.com>
9830
9831         * amd64-linux-nat.c (update_debug_registers_callback):
9832         Update comment.
9833         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9834         iterate_over_lwps.
9835         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9836         i386_debug_reg_state.
9837         (amd64_linux_new_fork): New function.
9838         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9839         linux_nat_new_fork hook, and i386_forget_process as
9840         linux_nat_forget_process hook.
9841         * i386-linux-nat.c (update_debug_registers_callback):
9842         Update comment.
9843         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9844         iterate_over_lwps.
9845         (i386_linux_prepare_to_resume): Pass the lwp's pid to
9846         i386_debug_reg_state.
9847         (i386_linux_new_fork): New function.
9848         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9849         linux_nat_new_fork hook, and i386_forget_process as
9850         linux_nat_forget_process hook.
9851         * i386-nat.c (i386_init_dregs): Delete.
9852         (i386_inferior_data, struct i386_inferior_data):
9853         Delete.
9854         (struct i386_process_info): New.
9855         (i386_process_list): New global.
9856         (i386_find_process_pid, i386_add_process, i386_process_info_get):
9857         New functions.
9858         (i386_inferior_data_get): Delete.
9859         (i386_process_info_get): New function.
9860         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
9861         (i386_forget_process): New function.
9862         (i386_cleanup_dregs): Rewrite.
9863         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9864         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9865         (i386_stopped_data_address, i386_insert_hw_breakpoint)
9866         (i386_remove_hw_breakpoint): Adjust to pass the current process id
9867         to i386_debug_reg_state.
9868         (i386_use_watchpoints): Don't register inferior data.
9869         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9870         adjust comment.
9871         (i386_forget_process): Declare.
9872         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9873         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9874         New static globals.
9875         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9876         (add_initial_lwp): New, factored out from ...
9877         (add_lwp): ... this.  Don't check the number of lwps before
9878         calling linux_nat_new_thread.
9879         (linux_nat_iterate_watchpoint_lwps): Delete.
9880         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9881         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9882         forks and vforks.
9883         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9884         initial lwp.
9885         (linux_nat_kill, linux_nat_mourn_inferior): Call
9886         linux_nat_forget_process.
9887         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9888         (linux_nat_forget_process): New functions.
9889         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9890         type.
9891         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9892         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9893         types.
9894         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9895         (linux_nat_forget_process): New declarations.
9896
9897         * amd64fbsd-nat.c (super_mourn_inferior): New global.
9898         (amd64fbsd_mourn_inferior): New function.
9899         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9900         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9901
9902 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9903
9904         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9905         Adding _().
9906
9907 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9908
9909         * aarch64-linux-nat.c (debug_reg_change_callback)
9910         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9911         %s and phex().
9912
9913 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9914
9915         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9916         with LONGEST.
9917
9918 2013-02-13  Pedro Alves  <palves@redhat.com>
9919             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9920
9921         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9922
9923 2013-02-12  Tom Tromey  <tromey@redhat.com>
9924
9925         PR symtab/11464:
9926         * c-exp.y (lex_one_token): Initialize other fields of yylval on
9927         NAME return.
9928         (classify_inner_name): Remove 'first_name' argument, add
9929         'context'.  Remove unused variable.
9930         (yylex): Explicitly maintain the context type.  Exit loop earlier
9931         if NAME result is seen.
9932
9933 2013-02-12  Pedro Alves  <palves@redhat.com>
9934
9935         * amd64-darwin-tdep.c: Add (C) after Copyright.
9936         * cli/cli-cmds.h: Ditto.
9937         * cli/cli-decode.c: Ditto.
9938         * cli/cli-decode.h: Ditto.
9939         * cli/cli-dump.c: Ditto.
9940         * cli/cli-dump.h: Ditto.
9941         * cli/cli-interp.c: Ditto.
9942         * cli/cli-logging.c: Ditto.
9943         * cli/cli-script.c: Ditto.
9944         * cli/cli-script.h: Ditto.
9945         * cli/cli-setshow.c: Ditto.
9946         * cli/cli-setshow.h: Ditto.
9947         * cli/cli-utils.c: Ditto.
9948         * cli/cli-utils.h: Ditto.
9949         * config/alpha/nm-osf3.h: Ditto.
9950         * config/djgpp/djconfig.sh: Ditto.
9951         * config/i386/nm-fbsd.h: Ditto.
9952         * config/i386/nm-i386gnu.h: Ditto.
9953         * config/nm-linux.h: Ditto.
9954         * config/nm-nto.h: Ditto.
9955         * config/rs6000/nm-rs6000.h: Ditto.
9956         * config/sparc/nm-sol2.h: Ditto.
9957         * darwin-nat-info.c: Ditto.
9958         * dfp.c: Ditto.
9959         * dfp.h: Ditto.
9960         * gdb-demangle.h: Ditto.
9961         * i386-darwin-nat.c: Ditto.
9962         * i386-darwin-tdep.c: Ditto.
9963         * linux-fork.h: Ditto.
9964         * m32c-tdep.c: Ditto.
9965         * microblaze-linux-tdep.c: Ditto.
9966         * microblaze-rom.c: Ditto.
9967         * microblaze-tdep.c: Ditto.
9968         * microblaze-tdep.h: Ditto.
9969         * mips-linux-tdep.h: Ditto.
9970         * ppc-ravenscar-thread.c: Ditto.
9971         * ppc-ravenscar-thread.h: Ditto.
9972         * prologue-value.c: Ditto.
9973         * prologue-value.h: Ditto.
9974         * ravenscar-thread.c: Ditto.
9975         * ravenscar-thread.h: Ditto.
9976         * sparc-ravenscar-thread.c: Ditto.
9977         * sparc-ravenscar-thread.h: Ditto.
9978         * tilegx-linux-tdep.c: Ditto.
9979         * unwind_stop_reasons.def: Ditto.
9980         * windows-nat.h: Ditto.
9981         * xtensa-linux-tdep.c: Ditto.
9982         * xtensa-xtregs.c: Ditto.
9983         * regformats/regdat.sh: Ditto.
9984         * regformats/regdef.h: Ditto.
9985
9986 2013-02-12  Pedro Alves  <palves@redhat.com>
9987
9988         * break-catch-sig.c: Update copyright years.
9989
9990 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
9991
9992         Add support for a destructor for ui_out data and use it to
9993         provide a ui_out destructor.
9994         * ui-out.h: Declare the new ui_out destructor.
9995         (ui_out_impl): Add a field for data destructor in ui_out_impl.
9996         * ui-out.c (default_data_destroy): Add a default data destructor
9997         which does nothing.
9998         (default_ui_out_impl): Set the new data_destroy field to
9999         default_data_destroy
10000         (uo_data_destroy): Local function which invokes the data
10001         destructor if present.
10002         (clear_table): Local function which clears the table data of a
10003         ui_out object.
10004         (ui_out_destroy): Public function which frees a ui_out object.
10005         (ui_out_table_end): Use the new clear_table function.
10006         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10007         NULL.
10008         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10009         to NULL.
10010
10011 2013-02-11  Doug Evans  <dje@google.com>
10012
10013         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10014         (printf_decfloat): New function.  Broken out from ui_printf.
10015         Remove unnecessary code to shift the entire format string down.
10016         (printf_pointer): New function.
10017         (ui_printf): Code to print C strings, wide C strings, decfloats,
10018         and pointers moved to separate functions.
10019
10020 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10021
10022         * valops.c (value_assign): Handling bitfield offset in
10023         `lval_internalvar_component' case.
10024
10025 2013-02-08  Doug Evans  <dje@google.com>
10026
10027         * common/format.c (parse_format_string): Fix whitespace.
10028
10029 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
10030
10031         * stack.c (return_command): Work around uninitialized variable
10032         warning.
10033
10034 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
10035
10036         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10037         number of the registers from 36 to 34.
10038
10039 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10040
10041         * NEWS: Mention new AArch64 native and target support.
10042
10043 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10044
10045         * MAINTAINERS (Write After Approval): Add myself.
10046
10047 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
10048             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10049             Nigel Stephens  <nigel.stephens@arm.com>
10050             Yufeng Zhang  <yufeng.zhang@arm.com>
10051
10052         * aarch64-linux-nat.c: New file.
10053         * config/aarch64/linux.mh: New file.
10054         * configure.host: Add AArch64.
10055         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10056
10057 2013-02-07  Doug Evans  <dje@google.com>
10058
10059         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10060         disassemble command.
10061
10062 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10063
10064         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10065         set_gdbarch_fetch_tls_load_module_address.
10066
10067 2013-02-06  David S. Miller  <davem@davemloft.net>
10068
10069         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10070         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10071         * value.c (struct_return_convention): New function.
10072         (using_struct_return): Implement in terms of struct_return_convention.
10073         * value.h (struct_return_convention): Declare.
10074         * stack.c (return_command): Allow successful overriding of the return
10075         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10076
10077 2013-02-06  Tom Tromey  <tromey@redhat.com>
10078
10079         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10080         outside of TRY_CATCH.
10081
10082 2013-02-06  Yao Qi  <yao@codesourcery.com>
10083
10084         * mi/mi-interp.c: Include "tracepoint.h".
10085         (mi_tsv_modified): Declare.
10086         (mi_tsv_created, mi_tsv_deleted): Update declaration.
10087         (mi_interpreter_init): Call observer_attach_tsv_modified.
10088         (mi_tsv_modified): New.
10089         (mi_tsv_created, mi_tsv_deleted): Update.
10090         * tracepoint.c (trace_variable_command): Call
10091         observer_notify_tsv_modified if the initial value of tsv is
10092         changed.
10093         (delete_trace_state_variable): Call
10094         observer_notify_tsv_deleted earlier.
10095         (trace_variable_command): Caller update.
10096         (create_tsv_from_upload): Likewise.
10097         * observer.sh: Declare "struct trace_state_variable".
10098
10099         * NEWS: Mention the new MI notification "=tsv-modified".
10100
10101 2013-02-05  Doug Evans  <dje@google.com>
10102
10103         * completer.c (location_completer): Fix typo in comment.
10104
10105 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10106
10107         * breakpoint.c (add_location_to_breakpoint): Insert the location with
10108         ADDRESS sorted.
10109
10110 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10111
10112         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10113         Refactor if statement to avoid trailing || operator.
10114
10115 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
10116
10117         * NEWS: Add PowerPC FreeBSD as a new native configuration.
10118
10119 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
10120
10121         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10122         * configure.host: Add powerpc*-*-freebsd* target.
10123         * configure.tgt: Add target info for powerpc*-*-freebsd*.
10124         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10125         * config/powerpc/fbsd.mh: New file.
10126
10127 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
10128             Denys Vlasenko  <dvlasenk@redhat.com>
10129             Pedro Alves  <palves@redhat.com>
10130
10131         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10132         (struct elf_internal_linux_prpsinfo): Forward declare.
10133         * gdbarch.h, gdbarch.c: Regenerate.
10134         * linux-tdep.c: Include `cli/cli-utils.h'.
10135         (linux_fill_prpsinfo): New function.
10136         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
10137         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10138         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10139         depending on gdbarch pointer bitness.
10140         * ppc-linux-tdep.c: Include elf-bfd.h.
10141         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10142         on 32-bit.
10143
10144 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10145             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10146             Nigel Stephens  <nigel.stephens@arm.com>
10147             Yufeng Zhang  <yufeng.zhang@arm.com>
10148
10149         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10150
10151 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10152             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10153             Nigel Stephens  <nigel.stephens@arm.com>
10154             Yufeng Zhang  <yufeng.zhang@arm.com>
10155
10156         * aarch64-newlib-tdep.c: New file.
10157         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10158         aarch64*-*-elf.
10159         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10160         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10161         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10162         * osabi.c (gdb_osabi_names): Add "Newlib".
10163
10164 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10165             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10166             Nigel Stephens  <nigel.stephens@arm.com>
10167             Yufeng Zhang  <yufeng.zhang@arm.com>
10168
10169         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10170         (ALLDEPFILES): Add aarch64-linux-tdep.c.
10171         * aarch64-linux-tdep.c: New file.
10172         * aarch64-linux-tdep.h: New file.
10173         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10174         * configure.tgt: Add aarch64-none-linux-gnu.
10175
10176 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10177             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10178             Nigel Stephens  <nigel.stephens@arm.com>
10179             Yufeng Zhang  <yufeng.zhang@arm.com>
10180
10181         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10182         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10183         (ALLDEPFILES): Add aarch64-tdep.c.
10184         * aarch64-tdep.c: New file.
10185         * aarch64-tdep.h: New file.
10186         * configure.tgt: Add AArch64.
10187         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10188         (aarch64-expedite): New definition.
10189         * features/aarch64-core.xml: New file.
10190         * features/aarch64-fpu.xml: New file.
10191         * features/aarch64-without-fpu.c: New file (generated).
10192         * features/aarch64-without-fpu.xml: New file.
10193         * features/aarch64.c: New file (generated).
10194         * features/aarch64.xml: New file.
10195         * regformats/aarch64-without-fpu.dat: New file (generated).
10196         * regformats/aarch64.dat: New file (generated).
10197
10198 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10199
10200         * contrib/expect-read1.c: New file.
10201         * contrib/expect-read1.sh: New file.
10202
10203 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10204
10205         * dwarf2read.c (file_file_name): New function with code from
10206         file_full_name.
10207         (file_full_name): Move most of the code to file_file_name.
10208         (macro_start_file): Rename variable full_name to file_name and use
10209         file_file_name for it.  Add comp_dir parameter to new_macro_table.
10210         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
10211         macro_source_file->filename access by macro_source_fullname call.
10212         * macroscope.c (_initialize_macroscope): Update the new_macro_table
10213         caller.
10214         * macrotab.c (struct macro_table): New field comp_dir.
10215         (macro_include): New variables link_fullname and source_fullname.
10216         Replace any macro_source_file->filename access by macro_source_fullname
10217         call.
10218         (macro_lookup_inclusion): Remove the partial filenames checking code.
10219         (check_for_redefinition): New variables source_fullname and
10220         found_key_fullname.  Replace any macro_source_file->filename access by
10221         macro_source_fullname call.
10222         (macro_undef): New variables source_fullname and key_fullname.  Replace
10223         any macro_source_file->filename access by macro_source_fullname call.
10224         (macro_lookup_definition): New variables retval and source_fullname.
10225         Replace any macro_source_file->filename access by macro_source_fullname
10226         call.
10227         (foreach_macro): New variable key_fullname.  Replace any
10228         macro_source_file->filename access by macro_source_fullname call.
10229         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
10230         macro_source_file->filename access by macro_source_fullname call.
10231         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
10232         (macro_source_fullname): New function.
10233         * macrotab.h (struct macro_source_file): Extent the filename field
10234         comment.
10235         (new_macro_table): New parameter comp_dir, add a comment for it.
10236         (macro_source_fullname): new declaration.
10237
10238 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10239
10240         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10241         this_real_name to outer block.  Use it also for
10242         compare_filenames_for_search.
10243         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
10244         with dw2_get_real_path for file_matcher, considering also
10245         BASENAMES_MAY_DIFFER.
10246         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10247
10248 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10249
10250         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10251         to the file_matcher parameter.  Pass 0 to it.
10252         (dwarf2_create_include_psymtab): Copy also DIRNAME.
10253         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10254         NULL psymtab_to_fullname result.
10255         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
10256         an expected filename instead.
10257         (expand_symtabs_matching_via_partial): Add basenames parameter to the
10258         file_matcher parameter.  Call also psymtab_to_fullname, after newly
10259         considering BASENAMES_MAY_DIFFER.
10260         * source.c (rewrite_source_path): Remove static.
10261         * source.h (rewrite_source_path): New declaration.
10262         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10263         the expand_symtabs_matching field.  Comment it.
10264         * symtab.c (file_matches): New function comment.  Add parameter
10265         basenames, implement it.
10266         (search_symbols_file_matches): Add basenames parameter.  Update the
10267         file_matches caller.
10268         (search_symbols): Match FILES also against symtab_to_fullname.
10269         Optimize it for BASENAMES_MAY_DIFFER.
10270
10271 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10272
10273         * source.c (print_source_lines_base): Print for TUI also "fullname".
10274         * tui/tui-data.c (init_content_element): Change tui_locator_element
10275         field to full_name.
10276         * tui/tui-data.h (struct tui_locator_element): Likewise.
10277         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10278         tui_update_locator_filename calls to tui_update_locator_fullname.
10279         Replace symtab->filename refererence by symtab_to_fullname call.
10280         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10281         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10282         field to full_name.  Replace symtab->filename refererence by
10283         symtab_to_fullname call.
10284         (tui_show_symtab_source): Rename parameter to fullname.  Change
10285         tui_locator_element field to full_name.
10286         * tui/tui-stack.c: Include source.h.
10287         (tui_set_locator_filename): Rename the declaration to ...
10288         (tui_set_locator_fullname): ... here.  Rename its parameter to
10289         fullname, updates its comment.
10290         (tui_set_locator_info): Rename its parameter to fullname.
10291         (tui_set_locator_filename): Rename the definition to ...
10292         (tui_set_locator_fullname): ... here.  Rename its parameter to
10293         fullname, updates its comment.  Change tui_locator_element field to
10294         full_name.
10295         (tui_set_locator_info): Rename its parameter to fullname.
10296         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10297         (tui_update_locator_filename): Rename to ...
10298         (tui_update_locator_fullname): ... here. Rename callee to
10299         tui_set_locator_fullname.
10300         (tui_show_frame_info): Replace symtab->filename refererence by
10301         symtab_to_fullname call.
10302         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10303         (tui_update_locator_fullname): ... here.
10304         * tui/tui-winsource.c (tui_display_main): Rename the callee to
10305         tui_update_locator_fullname.  Replace symtab->filename refererence by
10306         symtab_to_fullname call.
10307         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10308         Rename the callee to tui_update_locator_fullname.
10309         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10310
10311 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10312
10313         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10314         by symtab_to_filename_for_display calls.
10315         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10316         (clear_command): New variable sal_fullname, initialize it.  Replace
10317         compare_filenames_for_search by filename_cmp with sal_fullname.
10318         (say_where, update_static_tracepoint): Replace symtab->filename
10319         refererences by symtab_to_filename_for_display calls.
10320         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10321         Likewise.
10322         * dwarf2read.c: Include source.h.
10323         (fixup_go_packaging): Replace symtab->filename refererences by
10324         symtab_to_filename_for_display calls.
10325         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10326         Replace symtab->filename refererences by symtab_to_filename_for_display
10327         calls.
10328         (create_sals_line_offset, convert_linespec_to_sals): New variable
10329         fullname, initialize it, replace symtab->filename reference by the
10330         variable.
10331         * linux-fork.c: Include source.h.
10332         (info_checkpoints_command): Replace symtab->filename refererences by
10333         symtab_to_filename_for_display calls.
10334         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10335         by symtab_to_filename_for_display calls.
10336         * mdebugread.c: Include source.h.
10337         (psymtab_to_symtab_1): Replace symtab->filename refererences by
10338         symtab_to_filename_for_display calls.
10339         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10340         (mi_cmd_file_list_exec_source_files): Likewise.
10341         * printcmd.c: Include source.h.
10342         (build_address_symbolic): Replace symtab->filename refererences by
10343         symtab_to_filename_for_display calls.
10344         * psymtab.c (partial_map_symtabs_matching_filename)
10345         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10346         with psymtab_to_fullname.
10347         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10348         by symtab_to_filename_for_display calls.
10349         (stpy_get_filename): New variable filename, initialize it, use instead
10350         of symtab->filename refererences.
10351         (salpy_str): Make variable filename const char *.  Replace
10352         symtab->filename refererences by symtab_to_filename_for_display calls.
10353         * skip.c: Include source.h and filenames.h.
10354         (skip_file_command): Remove const from the symtab variable.  Replace
10355         symtab->filename refererences by symtab_to_fullname call.
10356         (function_name_is_marked_for_skip): New variables searched_for_fullname
10357         and fullname.  Use them to search also with symtab's fullname.
10358         * source.c (find_source_lines): Replace symtab->filename refererences
10359         by symtab_to_filename_for_display calls.
10360         (print_source_lines_base): New variable filename, use it instead of
10361         symtab->filename.  Replace symtab->filename refererences by
10362         symtab_to_filename_for_display calls.
10363         (line_info, forward_search_command): Replace symtab->filename
10364         refererences by symtab_to_filename_for_display calls.
10365         (reverse_search_command): Replace symtab->filename refererences by
10366         symtab_to_filename_for_display calls.  New variable filename for it.
10367         * stack.c (frame_info): Likewise.
10368         * symmisc.c: Include source.h.
10369         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10370         (maintenance_info_symtabs): Replace symtab->filename refererences by
10371         symtab_to_filename_for_display calls.
10372         * symtab.c (iterate_over_some_symtabs): Call
10373         compare_filenames_for_search also with symtab_to_fullname.
10374         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10375         symtab->filename refererences by symtab_to_filename_for_display calls.
10376         (find_line_symtab): Replace symtab->filename refererences by
10377         symtab_to_filename_for_display calls.
10378         (file_matches): Replace filename_cmp by compare_filenames_for_search.
10379         (print_symbol_info): Make the last parameter const char *.  New
10380         variable s_filename.  Use it in the function.
10381         (symtab_symbol_info): Make the last_filename variable const char *.
10382         Replace symtab->filename refererences by symtab_to_filename_for_display
10383         calls.
10384         (rbreak_command): New variable fullname.  Use it.  Replace
10385         symtab->filename refererence by symtab_to_filename_for_display call.
10386         * tracepoint.c (set_traceframe_context, trace_find_line_command)
10387         (print_one_static_tracepoint_marker): Replace symtab->filename
10388         refererences by symtab_to_filename_for_display calls.
10389         * tui/tui-source.c (tui_set_source_content): New variables filename and
10390         s_filename.  Replace symtab->filename refererences by this variable.
10391         Replace other symtab->filename refererences by
10392         symtab_to_filename_for_display calls.
10393
10394 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10395             Jan Kratochvil  <jan.kratochvil@redhat.com>
10396
10397         Add a new variable that controls a way in which filenames are
10398         displayed.
10399         * NEWS (set filename-display): New entry.
10400         * source.c (filename_display_basename, filename_display_relative)
10401         (filename_display_absolute, filename_display_kind_names)
10402         (filename_display_string, show_filename_display_string)
10403         (symtab_to_filename_for_display): New.
10404         (_initialize_source): Added initialization of 'filename-display'
10405         variable.
10406         * source.h (symtab_to_filename_for_display): Added declaration.
10407         * stack.c (print_frame): Added new variable and calling of a new
10408         function and condition with this variable. Changed third argument of
10409         calling of a function.
10410
10411 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10412
10413         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10414         Rename field reference filename to fullname.
10415         * tui/tui-data.h (struct tui_source_info): Rename field filename to
10416         fullname.  New comment for it.
10417         * tui/tui-source.c (tui_set_source_content): Rename field reference
10418         filename to fullname.  Initialize field by symtab_to_fullname now.
10419         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10420         reference filename to fullname.  Use symtab_to_fullname during
10421         comparison.
10422
10423 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10424
10425         Code cleanup.
10426         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10427         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
10428         filename to fullname.  Rename variable this_name to this_fullname.
10429         Lowercase FILENAME_CMP call.
10430         (dw2_find_symbol_file): New comment for the returned string.
10431         (dwarf2_gdb_index_functions): Rename the function to
10432         dw2_expand_symtabs_with_fullname.
10433         * psymtab.c (read_psymtabs_with_filename): Rename to ...
10434         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
10435         fullname.
10436         (psym_functions): Rename the function to read_psymtabs_with_fullname.
10437         * symfile.h (struct quick_symbol_functions): Rename field
10438         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10439         parameter filename to fullname.  Document returned string meaning for
10440         find_symbol_file.
10441         * symtab.c (find_line_symtab): Rename the called function to
10442         expand_symtabs_with_fullname.
10443
10444 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10445
10446         Code cleanup.
10447         * breakpoint.c (clear_command): Remove variable is_abs, unify the
10448         call of filename_cmp with compare_filenames_for_search.
10449         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10450         is_abs, unify the call of FILENAME_CMP with
10451         compare_filenames_for_search.  New gdb_asserts for real_path and name.
10452         Unify the call of compare_filenames_for_search with FILENAME_CMP.
10453         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10454         * symfile.h (struct quick_symbol_functions): Extend the comment for
10455         map_symtabs_matching_filename.
10456         * symtab.c (compare_filenames_for_search): Remove the function comment
10457         relative path requirement.  Handle absolute filenames, with a comment.
10458         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10459         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
10460         real_path and name.  Unify the call of compare_filenames_for_search
10461         with FILENAME_CMP.
10462         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10463
10464 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10465
10466         Code cleanup.
10467         * breakpoint.c (print_breakpoint_location): Replace bp_location field
10468         source_file references by symtab field references.  Remove variables
10469         sal and fullname.
10470         (momentary_breakpoint_from_master, add_location_to_breakpoint):
10471         (clear_command, say_where): Replace bp_location field source_file
10472         references by symtab field references.
10473         (bp_location_dtor): Remove the source_file reference.
10474         (update_static_tracepoint): Replace bp_location field source_file
10475         references by symtab field references.
10476         (breakpoint_free_objfile): New function.
10477         * breakpoint.h (struct bp_location): Extend the comment for line_number.
10478         Replace the field source_file by field symtab, extend its comment.
10479         (breakpoint_free_objfile): New declaration.
10480         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10481         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10482         field source_file references by symtab field references.
10483
10484 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10485
10486         Replace xfullpath calls by gdb_realpath calls.
10487         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10488         function comment.
10489         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10490         Remove it from the iterate_over_some_symtabs call.
10491         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10492         Remove it from the dw2_map_expand_apply calls, remove a block handling
10493         it.
10494         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10495         Remove it from the iterate_over_some_symtabs call.
10496         (partial_map_symtabs_matching_filename): Remove parameter full_path.
10497         Remove it from the partial_map_expand_apply calls, remove a block
10498         handling it.  Drop gdb_realpath call and cleanups from the real_path
10499         handling.
10500         * source.c (openp): Drop the comment part about xfullpath.  Replace
10501         xfullpath calls by gdb_realpath calls.
10502         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10503         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10504         from method map_symtabs_matching_filename and its comment.
10505         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10506         gdb_realpath call.
10507         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10508         remove it also from the function comment, remove a block handling it.
10509         Drop gdb_realpath call and cleanups from the real_path handling.
10510         (iterate_over_symtabs): Drop variable full_path and its use.
10511         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10512         * utils.c (xfullpath): Remove.
10513         * utils.h (xfullpath): Remove.
10514
10515 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
10516
10517         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10518         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10519         (ALLDEPFILES): Add ppc64-tdep.c.
10520         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10521         ppc64-tdep.o to gdb_target_obs.
10522         * ppc64-tdep.h: New file.
10523         * ppc64-tdep.c: New file.
10524         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10525         ppc-linux-tdep.c to here.
10526         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10527         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10528         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10529         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10530         from ppc-linux-tdep.c to here.
10531         (ppc64_convert_from_func_ptr_addr): Rename from
10532         ppc64_linux_convert_from_func_ptr_addr to
10533         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10534         here.
10535         * rs6000-tdep.c:
10536         (read_insn): Move from ppc-linux-tdep.c to here.
10537         (insns_match_pattern, insn_d_field, insn_ds_field): Move
10538         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10539         * ppc-linux-tdep.c: Include ppc64-tdep.h.
10540         Removed above functions.
10541         (ppc_linux_init_abi): Adjust.
10542
10543 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10544
10545         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10546
10547 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10548
10549         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10550
10551 2013-02-01  Pedro Alves  <palves@redhat.com>
10552
10553         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10554         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10555
10556 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10557
10558         * elfread.c (elf_symfile_read): Limit separate debug info additions to
10559         files with no separate debug info.
10560         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10561         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10562         only for files with no separate debug info.
10563
10564 2013-01-31  Tom Tromey  <tromey@redhat.com>
10565
10566         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10567         change type.
10568         (struct jit_program_space_data): Rename from jit_inferior_data.
10569         Update comments.
10570         (get_jit_program_space_data): Rename from get_jit_inferior_data.
10571         Change return type.  Attach data to program space.
10572         (jit_program_space_data_cleanup): Rename from
10573         jit_inferior_data_cleanup; change argument type.
10574         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10575         change type.
10576         (jit_register_code): Update.
10577         (jit_update_inferior_cache): Remove.
10578         (jit_breakpoint_deleted): Get jit data from the location's program
10579         space.
10580         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10581         'ps_data', change type.
10582         (jit_inferior_init, jit_breakpoint_re_set_internal)
10583         (jit_event_handler): Update.
10584         (free_objfile_data): Get data from objfile's program space.
10585         (_initialize_jit): Update.
10586
10587 2013-01-31  Tom Tromey  <tromey@redhat.com>
10588
10589         PR gdb/13987:
10590         * jit.c (struct jit_inferior_data) <cached_code_address,
10591         jit_breakpoint>: New fields.
10592         (jit_breakpoint_re_set_internal): Fix logging.  Only create
10593         breakpoint if cached address has changed.
10594         (jit_update_inferior_cache, jit_breakpoint_deleted): New
10595         functions.
10596         (_initialize_jit): Register breakpoint deleted observer.
10597
10598 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10599
10600         * infrun.c (handle_syscall_event): Remove unused gdbarch.
10601         (save_infcall_suspend_state): Ifdef out unused inf.
10602         (restore_infcall_suspend_state): Ifdef out unused inf.
10603         * jit.c (jit_register_code): Remove unused i, b, inf_data.
10604         (jit_frame_sniffer): Remove unused inf_data.
10605
10606 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10607
10608         * c-exp.y (classify_inner_name): Remove unused type.
10609         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10610         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10611         need_escape.
10612         (c_get_string): Remove unused kind.
10613         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10614
10615 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10616
10617         * charset.c (intermediate_encoding): Remove unused i.
10618         * completer.c (signal_completer): Remove unused i.
10619         * continuations.c (discard_my_continuations_1): Remove unused
10620         continuation_ptr.
10621         * corelow.c (core_close): Remove unuseD name.
10622         (get_core_siginfo): Remove unused pid.
10623         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10624         i, cps.
10625         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10626         (loclist_describe_location): Remove unused first.
10627         * event-top.c (command_line_handler): Remove unused got_eof.
10628         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10629         (resize_section_table): Remove unused old_value.
10630         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10631         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10632         * i386-tdep.c (i386_process_record): Remove unused rex.
10633         * infcmd.c (get_return_value): Remove unused uiout.
10634         * jv-lang.c (type_from_class): Remove unused is_array.
10635         * jv-valprint.c (java_val_print): Remove unused i.
10636         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10637         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10638         * m2-typeprint.c (m2_print_type): Remove unused code.
10639         * macroexp.c (get_character_constant): Remove unused body_start.
10640         (macro_stringify): Remove unused result.
10641         * objc-lang.c (find_methods): Remove unused gdbarch.
10642         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10643         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10644         * stack.c (print_frame_args): Remove unused summary.
10645         * thread.c (thread_apply_command): Remove unused p.
10646         * valarith.c (value_x_unop): Remove unused mangle_ptr.
10647         * valops.c (search_struct_method): Remove unused skip.
10648         * valprint.c (generic_val_print): Remove unused byte_order.
10649         * varobj.c (varobj_update): Remove unused changed.
10650         * cli/cli-cmds.c (complete_command): Remove unused next_item.
10651         (alias_command): Remove unused c.
10652         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10653         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10654         format.
10655         (mi_cmd_data_write_memory): Remove unused word_format.
10656         (mi_cmd_data_write_memory_bytes): Remove unused r.
10657         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10658         p_start, p_end.
10659         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10660         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10661         line_width.
10662
10663 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10664
10665         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10666         * symtab.c (iterate_over_symtabs): Remove unused s.
10667         (find_pc_sect_symtab): Remove unused pspAce.
10668         (find_pc_sect_line): Remove unused alt_symtab.
10669         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10670         (completion_list_add_name): Remove unused newsize.
10671
10672 2013-01-31  Tom Tromey  <tromey@redhat.com>
10673
10674         PR c++/14998:
10675         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10676         TYPE_CODE_FUNC.
10677
10678 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10679
10680         * target.c (target_read_string): Remove unused origlen.
10681
10682 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10683
10684         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10685         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10686         * ax-general.c (ax_print): Remove unused is_float.
10687         * blockframe.c (block_innermost_frame): Remove unused start, end.
10688         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10689
10690 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10691
10692         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10693         (svr4_read_so_list): Remove unused lmo.
10694         * solib-target.c (solib_target_relocate_section_addresses): Remove
10695         unused flags.
10696
10697 2013-01-30  Tom Tromey  <tromey@redhat.com>
10698
10699         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10700
10701 2013-01-30  Tom Tromey  <tromey@redhat.com>
10702
10703         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10704         * utils.c (gnu_debuglink_crc32): Remove.
10705         * utils.h (gnu_debuglink_crc32): Don't declare.
10706
10707 2013-01-30  Tom Tromey  <tromey@redhat.com>
10708
10709         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10710         (read_structure_type, read_enumeration_type): Remove cast.
10711
10712 2013-01-30  Tom Tromey  <tromey@redhat.com>
10713
10714         * dwarf2read.c (read_namespace_type): Remove cast.
10715         (read_typedef): Likewise.
10716
10717 2013-01-29  Tom Tromey  <tromey@redhat.com>
10718
10719         * dwarf2read.c (free_dwo_file): Remove assert.
10720
10721 2013-01-29  Tom Tromey  <tromey@redhat.com>
10722
10723         * value.c (deprecated_set_value_modifiable): Remove.
10724         * value.h (deprecated_set_value_modifiable): Remove.
10725
10726 2013-01-28  Doug Evans  <dje@google.com>
10727
10728         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10729         to addresses from dwo files.
10730
10731 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
10732
10733         * valops.c (find_overload_match): Remove unused argument 'lax'.
10734         * value.h: Remove unused argument 'lax' from the declaration of
10735         find_overload_match.
10736         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10737         to find_overload_match.
10738         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10739         argument to find_overload_match.
10740
10741 2013-01-25  Tom Tromey  <tromey@redhat.com>
10742
10743         * dwarf2read.c (processing_has_namespace_info): Remove.
10744         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10745         (process_die, read_func_scope, dwarf2_start_symtab)
10746         (new_symbol_full): Update.
10747
10748 2013-01-25  Tom Tromey  <tromey@redhat.com>
10749
10750         * cp-namespace.c (cp_set_block_scope): Remove.
10751         * cp-support.h (cp_set_block_scope): Remove.
10752         * dbxread.c: Include block.h.
10753         (cp_set_block_scope): New function.
10754         (process_one_symbol): Update.
10755         * dwarf2read.c (read_func_scope): Use block_set_scope.
10756
10757 2013-01-25  Pedro Alves  <palves@redhat.com>
10758
10759         * remote.c (add_current_inferior_and_thread): Tweak comment.
10760
10761 2013-01-25  Tom Tromey  <tromey@redhat.com>
10762
10763         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10764         (cp_add_using_directive): Add 'copy_names' argument.
10765         * cp-support.h (cp_add_using_directive): Update.
10766         (struct using_direct) <import_src, import_dest, alias,
10767         declaration>: Now const.
10768         * dwarf2read.c (read_import_statement): Use obconcat.
10769         Don't copy names passed to cp_add_using_directive.
10770
10771 2013-01-25  Tom Tromey  <tromey@redhat.com>
10772
10773         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10774
10775 2013-01-25  Pedro Alves  <palves@redhat.com>
10776
10777         * remote.c (stop_reply_extract_thread): New.
10778         (add_current_inferior_and_thread): New parameter 'wait_status'.
10779         Handle it.
10780         (remote_start_remote): Pass wait status to
10781         add_current_inferior_and_thread.
10782         (extended_remote_run): Update comment.
10783         (extended_remote_create_inferior_1): Pass wait status to
10784         add_current_inferior_and_thread.
10785
10786 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
10787             Ulrich Weigand  <uweigand@de.ibm.com>
10788
10789         * valarith.c (value_vector_widen): New function for replicating a
10790         scalar into a vector.
10791         (value_binop): Use value_vector_widen to widen scalar to vector
10792         rather than casting, this better matches gcc C behaviour.
10793         * valops.c (value_casst): Update logic for casting between vector
10794         types, and for casting from scalar to vector, try to match gcc C
10795         behaviour.
10796         * value.h (value_vector_widen): Declare.
10797         * opencl-lang.c (opencl_value_cast): New opencl specific casting
10798         function, handle special case for casting scalar to vector.
10799         (opencl_relop): Use opencl_value_cast.
10800         (evaluate_subexp_opencl): Use opencl_value_cast instead of
10801         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10802         in order to use opencl_value_cast.
10803
10804 2013-01-25  Yao Qi  <yao@codesourcery.com>
10805
10806         * event-loop.c: Include "queue.h".
10807         (gdb_event_p): New typedef.
10808         (DECLARE_QUEUE_P): Use.
10809         (DEFINE_QUEUE_P): Use.
10810         (async_queue_event): Remove.
10811         (gdb_event_xfree): New.
10812         (initialize_event_loop): New.
10813         (process_event): Use QUEUE macros.
10814         (event_queue): Remove.
10815         (gdb_wait_for_event): Caller update.
10816         (check_async_event_handlers): Likewise.
10817         (poll_timers): Likewise.
10818         * event-loop.h (initialize_event_loop): Declare.
10819         * event-loop.c (gdb_event_xfree): New.
10820         * top.c (gdb_init): Call initialize_event_loop.
10821
10822 2013-01-25  Yao Qi  <yao@codesourcery.com>
10823
10824         * event-loop.c (async_queue_event): Remove one parameter
10825         'position'.  Remove code handling 'position' == TAIL.
10826         (gdb_wait_for_event): Caller update.
10827         (check_async_event_handlers): Caller update.
10828         (poll_timers): Caller update.
10829         * event-loop.h (enum queue_position): Remove.
10830
10831 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
10832
10833         * MAINTAINERS: Update my email.
10834
10835 2013-01-25  Yao Qi  <yao@codesourcery.com>
10836
10837         * main.c (print_gdb_help): Remove "--epoch" from the help
10838         message.
10839
10840 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
10841
10842         * symtab.c (skip_prologue_using_sal): Consider a file
10843         change the same as an increased line number
10844
10845 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10846
10847         * MAINTAINERS (Write After Approval): Add myself to the list.
10848
10849 2013-01-24  Tom Tromey  <tromey@redhat.com>
10850
10851         * ada-lang.h (ada_decode_symbol): Make return type const.
10852         * ada-lang.c (ada_decode_symbol): Likewise.
10853
10854 2013-01-23  Doug Evans  <dje@google.com>
10855
10856         * linespec.c (find_linespec_symbols): Make static.
10857
10858 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10859
10860         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10861         type on float conversion for complex type.
10862
10863 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
10864
10865         Add a new class gdb.Architecture which exposes GDB's
10866         internal representation of architecture via GDB Python API.
10867         * Makefile.in: Add entries corresponding to the new file
10868         python/py-arch.c.
10869         * NEWS (Python Scripting): Add entries for the new class
10870         gdb.Architecture and the new method gdb.Frame.architecture.
10871         * python/py-arch.c: Implement gdb.Architecture class.
10872         * python/py-frame.c (frapy_arch): Implement the method
10873         gdb.Frame.architecture().
10874         (frame_object_methods): Add 'architecture' to the method table.
10875         * python/python-internal.h: Add declarations of new utility
10876         functions.
10877         * python/python.c (_initialize_python): Initialize
10878         gdb.Architecture class.
10879
10880 2013-01-23  Doug Evans  <dje@google.com>
10881
10882         Work around binutils/15021.
10883         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10884         type_unit_group out of union s.  All uses updated.
10885         (read_index_from_section): Watch for index version 8.
10886         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10887         an imported symtab.
10888         (write_psymtabs_to_index): Increment version number to 8.
10889
10890 2013-01-22  Pedro Alves  <palves@redhat.com>
10891
10892         * annotate.c (breakpoint_changed): Skip if breakpoint is not
10893         user-visible.
10894
10895 2013-01-22  Pedro Alves  <palves@redhat.com>
10896
10897         * annotate.c (annotate_breakpoints_changed): Rename to ...
10898         (annotate_breakpoints_invalid): ... this.  Make static.
10899         (breakpoint_changed): Adjust.
10900         (_initialize_annotate): Always install the observers.  Install a
10901         "breakpoint_created" observer.
10902         * annotate.h (annotate_breakpoints_changed): Delete declaration.
10903         * breakpoint.c (set_breakpoint_condition)
10904         (breakpoint_set_commands, do_map_commands_command)
10905         (init_raw_breakpoint, clear_command, set_ignore_count)
10906         (enable_breakpoint_disp): No longer call
10907         annotate_breakpoints_changed.
10908
10909 2013-01-22  Pedro Alves  <palves@redhat.com>
10910
10911         * annotate.c: Include "inferior.h".
10912         (frames_invalid_emitted)
10913         (breakpoints_invalid_emitted): New globals.
10914         (async_background_execution_p): New function.
10915         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10916         emitting the annotation if it has already been emitted.
10917         (annotate_display_prompt): New function.
10918         * annotate.h (annotate_display_prompt): New declaration.
10919         * event-top.c: Include annotate.h.
10920         (display_gdb_prompt): Call annotate_display_prompt.
10921
10922 2013-01-22  Pedro Alves  <palves@redhat.com>
10923
10924         * annotate.c (ignore_count_changed): Delete.
10925         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10926         (annotate_ignore_count_change): Delete.
10927         (annotate_stopped): Don't emit a delayed breakpoints-changed
10928         annotation.
10929         * annotate.h (annotate_ignore_count_change): Delete.
10930         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10931         annotate_ignore_count_change.
10932
10933 2013-01-22  Tom Tromey  <tromey@redhat.com>
10934
10935         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10936         require_rvalue for a register location.
10937
10938 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
10939
10940         * breakpoint.c (print_one_breakpoint_location): Add MI
10941         field 'thread-groups' when printing a breakpoint.
10942         (output_thread_groups): New function.
10943
10944 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
10945
10946         * python/lib/gdb/commands/explore.py
10947         (CompoundExplorer.explore_expr): Correct the name of a method
10948         being invoked.
10949         (ExploreTypeCommand.invoke): Add a missing 'return'.
10950
10951 2013-01-21  Tom Tromey  <tromey@redhat.com>
10952
10953         * gdb_obstack.h (obconcat): Move declaration here, from...
10954         * symfile.h (obconcat): ... here.
10955         * gdb_obstack.c: New file.
10956         (obconcat): Move from...
10957         * symfile.c (obconcat): ... here.
10958         * Makefile.in (SFILES): Add gdb_obstack.c.
10959         (COMMON_OBS): Add gdb_obstack.o.
10960
10961 2013-01-21  Tom Tromey  <tromey@redhat.com>
10962
10963         * symfile.h (obsavestring): Don't declare.
10964         * symfile.c (obsavestring): Remove.
10965         * ada-exp.y: Use obstack_copy0, not obsavestring.
10966         * ada-lang.c: Use obstack_copy0, not obsavestring.
10967         * coffread.c: Use obstack_copy0, not obsavestring.
10968         * cp-namespace.c: Use obstack_copy0, not obsavestring.
10969         * dbxread.c: Use obstack_copy0, not obsavestring.
10970         * dwarf2read.c: Use obstack_copy0, not obsavestring.
10971         * jit.c: Use obstack_copy0, not obsavestring.
10972         * mdebugread.c: Use obstack_copy0, not obsavestring.
10973         * psymtab.c: Use obstack_copy0, not obsavestring.
10974         * stabsread.c: Use obstack_copy0, not obsavestring.
10975         * xcoffread.c: Use obstack_copy0, not obsavestring.
10976
10977 2013-01-21  Tom Tromey  <tromey@redhat.com>
10978
10979         * dwarf2read.c (fixup_go_packaging): Save package name
10980         on objfile obstack.
10981         * gdbtypes.c (init_type): Don't copy name.
10982
10983 2013-01-21  Tom Tromey  <tromey@redhat.com>
10984
10985         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10986         const.
10987         (struct attribute) <u.str>: Now const.
10988         (struct fnfieldlist) <name>: Now const.
10989         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10990         (partial_die_parent_scope): Make return type const.
10991         (partial_die_full_name, add_partial_symbol): Update.
10992         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10993         'name' const.
10994         (find_file_and_directory): Make 'name' and 'comp_dir' const.
10995         (read_file_scope, read_func_scope, dwarf2_add_field)
10996         (dwarf2_add_member_fn, read_structure_type)
10997         (process_enumeration_scope, read_array_type, read_module_type)
10998         (read_base_type, read_subrange_type): Update.
10999         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11000         (new_symbol_full, guess_full_die_structure_name): Update.
11001         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
11002         (dwarf2_name): Return const type.
11003         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11004         const.
11005
11006 2013-01-21  Tom Tromey  <tromey@redhat.com>
11007
11008         * gdbtypes.c (init_type): Make 'name' const.
11009         * gdbtypes.h (init_type): Update.
11010
11011 2013-01-21  Tom Tromey  <tromey@redhat.com>
11012
11013         * buildsym.c (patch_subfile_names): Use set_last_source_file.
11014         (start_symtab): Make 'name' and 'dirname' const.  Use
11015         set_last_source_file.
11016         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11017         (last_source_file): Define.  Now static.
11018         (set_last_source_file, get_last_source_file): New functions.
11019         * buildsym.h (last_source_file): Don't declare.
11020         (start_symtab): Update.
11021         (set_last_source_file, get_last_source_file): Declare.
11022         * coffread.c (complete_symtab): Use set_last_source_file.
11023         (coff_end_symtab): Likewise.
11024         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11025         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11026         set_last_source_file.
11027         (process_one_symbol): Use get_last_source_file.
11028         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11029         (psymtab_to_symtab_1): Use get_last_source_file.
11030         * xcoffread.c (process_linenos): Use get_last_source_file.
11031         (complete_symtab): Use set_last_source_file.
11032         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11033         (scan_xcoff_symtab): Use set_last_source_file.
11034
11035 2013-01-21  Tom Tromey  <tromey@redhat.com>
11036
11037         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11038         (symbol_set_names): Remove casts.  Handle field const-ness.
11039
11040 2013-01-21  Tom Tromey  <tromey@redhat.com>
11041
11042         * dwarf2read.c (new_symbol_full): Remove cast.
11043         * symtab.c (symbol_set_demangled_name): Make 'name' const.
11044         * symtab.h (symbol_set_demangled_name): Update.
11045
11046 2013-01-21  Tom Tromey  <tromey@redhat.com>
11047
11048         * main.c (captured_main): Call bfd_init.
11049
11050 2013-01-21  Tom Tromey  <tromey@redhat.com>
11051
11052         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11053         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11054         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11055         * NEWS: Update.
11056
11057 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11058
11059         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11060
11061 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11062
11063         Fix gdb.fortran/common-block.exp crash in PIE mode.
11064         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11065         LOC_COMMON_BLOCK.
11066         * f-valprint.c (info_common_command_for_block): Expect
11067         LOC_COMMON_BLOCK in gdb_assert.
11068         * symtab.h (struct general_symbol_info): Update comment for the
11069         common_block member.
11070         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11071         (enum address_class): New member LOC_COMMON_BLOCK.
11072
11073 2013-01-18  David Blaikie  <dblaikie@gmail.com>
11074
11075         * MAINTAINERS (Write After Approval): Add "David Blaikie".
11076
11077 2013-01-18  Tom Tromey  <tromey@redhat.com>
11078
11079         PR c++/14999:
11080         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11081         Call require_rvalue.
11082
11083 2013-01-18  Yao Qi  <yao@codesourcery.com>
11084
11085         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11086         (dbx_read_symtab): New declaration.
11087         (dbx_psymtab_to_symtab): Delete.
11088         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11089         Rename parameter PST to SELF.  Exchanged two parameters.
11090         (start_psymtab): Caller update.
11091         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11092         (dwarf2_read_symtab): New declaration.
11093         (dwarf2_psymtab_to_symtab): Delete.
11094         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11095         Rename parameter PST to SELF.  Exchanged two parameters.
11096         (create_partial_symtab): Caller update.
11097         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11098         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11099         Rename parameter PST to SELF.  Exchanged two parameters.
11100         (parse_partial_symbols, new_psymtab): Caller update.
11101         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11102         two parameters.
11103         * psymtab.c (psymtab_to_symtab): Caller update.
11104         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11105         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11106         Rename parameter PST to SELF.  Exchanged two parameters.
11107         (xcoff_start_psymtab): Caller update.
11108
11109 2013-01-18  Yao Qi  <yao@codesourcery.com>
11110
11111         * infrun.c (proceed): Rename local variable 'oneproc' to
11112         'force_step'.
11113
11114 2013-01-17  Doug Evans  <dje@google.com>
11115
11116         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11117         (dw2_build_type_unit_groups): Delete.  All uses updated.
11118
11119         * symtab.h (struct symbol_search): Add comment.
11120
11121 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11122
11123         * symtab.c (compare_filenames_for_search): New comment for
11124         HAS_DRIVE_SPEC.
11125
11126 2013-01-17  Tom Tromey  <tromey@redhat.com>
11127
11128         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11129
11130 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11131
11132         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11133         initialize it by existing make_cleanup.  Call new do_cleanups.
11134
11135 2013-01-17  Tom Tromey  <tromey@redhat.com>
11136
11137         * cp-abi.c (cp_abi_completer): New function.
11138         (_initialize_cp_abi): Set completer for "set cp-abi".
11139
11140 2013-01-17  Tom Tromey  <tromey@redhat.com>
11141
11142         * mem-break.c: Remove obsolete comment.
11143         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11144
11145 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11146
11147         * jit.c (jit_reader_load_command): Interpret the jit reader name
11148         as an absolute path if it begins with a forward slash.
11149
11150 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11151
11152         PR gdb/14550
11153
11154         * jit.c (finalize_symtab): Ensure that only the global block has a
11155         NULL superblock.
11156
11157 2013-01-17  Pedro Alves  <palves@redhat.com>
11158
11159         * acinclude.m4: Include ../config/plugins.m4,
11160         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
11161         * Makefile.in (aclocal_m4_deps): Update.
11162         * aclocal.m4: Renegerate.
11163
11164 2013-01-16  Doug Evans  <dje@google.com>
11165
11166         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11167
11168 2013-01-16  Pedro Alves  <palves@redhat.com>
11169             Tom Tromey  <tromey@redhat.com>
11170
11171         PR cli/7221:
11172         * NEWS: Add "catch signal".
11173         * breakpoint.c (base_breakpoint_ops): No longer static.
11174         (bpstat_explains_signal): New function.
11175         (init_catchpoint): No longer static.
11176         (base_breakpoint_explains_signal): New function.
11177         (base_breakpoint_ops): Initialize new field.
11178         * breakpoint.h (enum bpstat_signal_value): New.
11179         (struct breakpoint_ops) <explains_signal>: New field.
11180         (bpstat_explains_signal): Remove macro, declare as function.
11181         (base_breakpoint_ops, init_catchpoint): Declare.
11182         * break-catch-sig.c: New file.
11183         * inferior.h (signal_catch_update): Declare.
11184         * infrun.c (signal_catch): New global.
11185         (handle_syscall_event): Update for change to
11186         bpstat_explains_signal.
11187         (handle_inferior_event): Likewise.  Always handle random signals
11188         via bpstats.
11189         (signal_cache_update): Check signal_catch.
11190         (signal_catch_update): New function.
11191         (_initialize_infrun): Initialize signal_catch.
11192         * Makefile.in (SFILES): Add break-catch-sig.c.
11193         (COMMON_OBS): Add break-catch-sig.o.
11194
11195 2013-01-16  Tom Tromey  <tromey@redhat.com>
11196
11197         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11198         (print_one_catch_solib, print_one_catch_syscall)
11199         (print_one_catch_exec, print_one_exception_catchpoint): Emit
11200         "catch-type".
11201
11202 2013-01-16  Yao Qi  <yao@codesourcery.com>
11203
11204         * printcmd.c (current_display_number): Make it static.
11205
11206 2013-01-16  Yao Qi  <yao@codesourcery.com>
11207
11208         * infcmd.c (step_once): Don't check '!single_inst' as it was
11209         checked before.
11210
11211 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11212
11213         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11214
11215 2013-01-14  Tom Tromey  <tromey@redhat.com>
11216
11217         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11218         set command.
11219         * command.h (add_setshow_string_noescape_cmd): Update.
11220         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11221         (complete_set_gnutarget): New function.
11222         (_initialize_core): Set the "set gnutarget" completer.
11223
11224 2013-01-14  Tom Tromey  <tromey@redhat.com>
11225
11226         PR symtab/14442:
11227         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11228         (c_type_print_modifier): Likewise.
11229         * dwarf2read.c (read_tag_restrict_type): New function.
11230         (read_type_die_1): Handle DW_TAG_restrict_type.
11231         * gdbtypes.c (make_restrict_type): New function.
11232         (recursive_dump_type): Handle TYPE_RESTRICT.
11233         * gdbtypes.h (enum type_flag_values): Renumber.
11234         (enum type_instance_flag_value): Add
11235         TYPE_INSTANCE_FLAG_RESTRICT.
11236         (TYPE_RESTRICT): New macro.
11237         (make_restrict_type): Declare.
11238
11239 2013-01-14  Tom Tromey  <tromey@redhat.com>
11240
11241         PR symtab/14931:
11242         * psymtab.c (struct psymtab_state): New.
11243         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11244         functions.
11245         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11246         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11247
11248 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
11249             Pedro Alves  <palves@redhat.com>
11250
11251         PR remote/14786
11252
11253         * remote.c (remote_threads_info): Make a copy of the reply from
11254         qfThreadInfo and use that instead of rs->buf.
11255
11256 2013-01-14  Yao Qi  <yao@codesourcery.com>
11257
11258         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11259         (dbx_psymtab_to_symtab): Likewise.
11260         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11261         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11262         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11263
11264 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11265
11266         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
11267         make_cleanup_restore_current_language.  Call set_language.  Move
11268         OLD_CHAIN and INNER_CHAIN cleanups.
11269         * utils.c (do_restore_current_language)
11270         (make_cleanup_restore_current_language): New functions.
11271         * utils.h (make_cleanup_restore_current_language): New declaration.
11272
11273 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11274
11275         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11276         non-existing files.
11277
11278         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11279         non-existing files if FILENAME is already absolute.
11280
11281 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11282
11283         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11284         fputs_filtered.  Append trailing newline.
11285
11286 2013-01-11  Yao Qi  <yao@codesourcery.com>
11287             Stan Shebs  <stan@codesourcery.com>
11288
11289         * psymtab.c (init_psymbol_list): Clarify the comment.
11290
11291 2013-01-11  Yao Qi  <yao@codesourcery.com>
11292
11293         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11294         (update_dprintf_command_list): Assert that 'printf_line' is
11295         non-null.  Remove condition check.
11296
11297 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11298
11299         Code cleanup.
11300         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11301         type const char *.
11302         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11303         const char *.
11304         * tui/tui-source.h (tui_source_is_displayed): Likewise.
11305
11306 2013-01-09  Anthony Green  <green@moxielogic.com>
11307
11308         * cp-abi.c (cplus_print_vtable): Don't return value from void
11309         function.
11310         * ada-lang.c (re_set_catch_assert): Ditto.
11311
11312 2013-01-09  Doug Evans  <dje@google.com>
11313
11314         * symfile.h (quick_symbol_functions): Delete member
11315         pre_expand_symtabs_matching.  All uses removed.
11316         * dwarf2read.c (dw2_lookup_symbol): Implement.
11317         (dw2_do_expand_symtabs_matching): Delete.
11318         (dw2_pre_expand_symtabs_matching): Delete.
11319         (struct dw2_symtab_iterator): New type.
11320         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11321         (dw2_expand_symtabs_for_function): Rewrite.
11322         (dwarf2_gdb_index_functions): Update.
11323         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11324         (psym_functions): Update.
11325
11326 2013-01-09  Tom Tromey  <tromey@redhat.com>
11327
11328         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11329         * configure: Rebuild.
11330         * configure.ac: Add somread.o to the build if BFD has SOM
11331         support.
11332         * somread.c: Include som/aout.h, not syms.h.
11333         (som_symtab_read): Use som_external_symbol_dictionary_record.
11334         Unpack records manually.
11335         (_initialize_somread): Declare.
11336
11337 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
11338
11339         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11340         Cast return_address to 64bits.
11341
11342 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
11343
11344         * printcmd.c: Remove define of function output_command.
11345         * tracepoint.c: Remove extern of function output_command.
11346         * valprint.h: (output_command): New extern.
11347
11348 2013-01-07  Tom Tromey  <tromey@redhat.com>
11349
11350         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11351         Remove.
11352         (objc_language_defn): Use c_printchar, c_printstr,
11353         c_emit_char.
11354
11355 2013-01-07  Tom Tromey  <tromey@redhat.com>
11356
11357         PR cli/7719:
11358         * NEWS: Update.
11359         * ada-valprint.c (printstr, print_field_values): Remove
11360         "inspect_it" code.
11361         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11362         code.
11363         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11364         code.
11365         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11366         * main.c (captured_main): Remove "epoch" argument.
11367         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11368         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11369         * p-valprint.c (pascal_object_print_value_fields): Remove
11370         "inspect_it" code.
11371         * printcmd.c (print_command_1): Remove 'inspect' argument.
11372         (print_command, call_command): Update.
11373         (inspect_command): Remove.
11374         (_initialize_printcmd): Make "inspect" an alias for "print".
11375         * top.c (epoch_interface): Remove.
11376         * top.h (epoch_interface): Remove.
11377         * valprint.c (user_print_options): Update.
11378         (print_converted_chars_to_obstack): Remove "inspect_it" code.
11379         * valprint.h (struct value_print_options) <inspect_it>: Remove
11380         field.
11381
11382 2013-01-04  Tom Tromey  <tromey@redhat.com>
11383
11384         * valprint.h (read_string): Add 'extern'.
11385
11386 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
11387
11388         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11389         used to decide whether to define darwin_read_dyld_info or not.
11390
11391 2013-01-03  Pierre Muller  <muller@sourceware.org>
11392
11393         * main.c (relocate_gdb_directory): Avoid calling stat function
11394         if DIR is empty.
11395
11396 2013-01-03  Yao Qi  <yao@codesourcery.com>
11397
11398         * psymtab.c (fixup_psymbol_section): Update declaration.
11399         (fixup_psymbol_section): Remove code returning value.
11400
11401 2013-01-03  Yao Qi  <yao@codesourcery.com>
11402
11403         * symtab.h: Remove some out of date comments.
11404          (enum exception_event_kind): Move it ...
11405         * breakpoint.c: ... here.
11406
11407 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
11408
11409         PR gdb/14405
11410         * darwin-nat.c (darwin_read_dyld_info): Only build if
11411         TASK_DYLD_INFO_COUNT is defined.
11412         (darwin_xfer_partial): Call darwin_read_dyld_info only if
11413         TASK_DYLD_INFO_COUNT is defined.
11414
11415 2013-01-02  Tom Tromey  <tromey@redhat.com>
11416
11417         * symfile.h (struct ecoff_debug_hack): Remove.
11418         * objfiles.c: Don't include mdebugread.h.
11419
11420 2013-01-02  Tom Tromey  <tromey@redhat.com>
11421
11422         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11423         * configure.ac: Check for Mach-O support in BFD.  Update
11424         CONFIG_OBS.
11425         * configure: Rebuild.
11426
11427 2013-01-02  Tom Tromey  <tromey@redhat.com>
11428
11429         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11430         * configure.ac: Use GDB_AC_CHECK_BFD.
11431         * configure: Rebuild.
11432
11433 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11434
11435         * MAINTAINERS: Update my email.
11436
11437 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11438
11439         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11440
11441 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11442
11443         * rs6000-nat.c (bss_data_overlap): New function.
11444         (vmap_symtab): Use it to adjust the .bss section's offset.
11445
11446 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11447
11448         Update year range in copyright notice of all files.
11449
11450 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
11451
11452         * top.c (print_gdb_version): Update copyright year.
11453
11454 For older changes see ChangeLog-2012.
11455 \f
11456 Local Variables:
11457 mode: change-log
11458 left-margin: 8
11459 fill-column: 74
11460 version-control: never
11461 coding: utf-8
11462 End: