2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
[external/binutils.git] / gdb / ChangeLog
1 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
2
3         PR cli/15224
4         * top.c (init_main): 'set history save on' by default.
5
6 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
7
8         PR cli/16122
9         * top.c (command_line_input): Unify interactivity tests to use
10         input_from_terminal_p.
11         * event-top.c (command_line_handler): Likewise.
12
13 2013-11-06  Yao Qi  <yao@codesourcery.com>
14
15         * Makefile.in (check-perf): New target.
16
17 2013-11-05  Will Newton  <will.newton@linaro.org>
18
19         PR gdb/7670
20         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
21         (arm_print_float_info): Likewise.
22
23 2013-11-04  Anton Blanchard  <anton@samba.org>
24
25         * target.c (memory_xfer_partial): Cap write to 4KB.
26
27 2013-11-01  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
28
29         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
30         probe scan even when the arch provides no get_longjmp_target.
31
32 2013-10-31  Pedro Alves  <palves@redhat.com>
33
34         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
35         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
36         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
37         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
38         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
39         <bpstat handling>: If the bpstat chain wants the signal to be
40         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
41         GDB_SIGNAL_TRAP.
42
43 2013-10-31  Andrew Burgess  <aburgess@broadcom.com>
44
45         * breakpoint.c (update_watchpoint): Update error message and add
46         an additional error message.
47
48 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
49
50         * s390-tdep.h: Rename to...
51         * s390-linux-tdep.h: ...here.
52         * s390-tdep.c: Rename to...
53         * s390-linux-tdep.c: ...here.  Adjust #include.
54         * s390-nat.c: Rename to...
55         * s390-linux-nat.c: ...here.  Adjust #include.
56         * config/s390/s390.mh: Rename to...
57         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
58         s390-linux-nat.o.
59         * configure.host: Reflect host rename "s390" -> "linux".
60         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
61         * Makefile.in (ALL_TARGET_OBS): Likewise.
62         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
63         s390-linux-tdep.h.
64         (ALLDEPFILES): Reflect rename of .c files.
65
66 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
67
68         * s390-nat.c: Whitespace cleanup.
69         * s390-tdep.c: Likewise.
70         * s390-tdep.h: Remove empty line at end of file.
71
72 2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
73
74         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
75         siginfo_size.
76
77 2013-10-29  Tom Tromey  <tromey@redhat.com>
78
79         * utils.c (reg): Move undefinition...
80         * gdb_curses.h: ... here.  Update comment to mention AIX.
81
82 2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>
83
84         * exec.h (add_target_sections_of_objfile): New declaration.
85         * exec.c (add_target_sections_of_objfile): New function.
86         * symfile.c (add_symbol_file_command): Update current target sections.
87         (remove_symbol_file_command): New command.
88         (symfile_free_objfile): New function.
89         (_initialize_symfile): Register observer for free_objfile events.
90         * NEWS: Add description of the remove-symbol-file command.
91         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
92         * objfiles.c (free_objfile): Notify free_objfile.
93         (is_addr_in_objfile): New function.
94         * objfiles.h (is_addr_in_objfile): New declaration.
95         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
96         events instead of solib_unloaded events.
97         (_initialize_printcmd): Register observer for free_objfile instead
98         of solib_unloaded notifications.
99         * solib.c (remove_user_added_objfile): New function.
100         (_initialize_symfile): Add remove-symbol-file.
101
102 2013-10-29  Andrew Burgess  <aburgess@broadcom.com>
103
104         * infcmd.c (default_print_one_register_info): Use val_print to
105         print all values even optimized out or unavailable ones.  Don't
106         try to print a raw form of optimized out or unavailable values.
107
108 2013-10-29  Yao Qi  <yao@codesourcery.com>
109
110         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
111         parameter 'arg' instead of from program_space_data.
112         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
113         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
114         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
115         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
116         * inflow.c (inflow_inferior_data_cleanup): Get data from
117         parameter 'arg' instead of inferior_data.
118         * registry.h: Add comments.
119
120 2013-10-28  Pedro Alves  <palves@redhat.com>
121
122         * breakpoint.c (watchpoints_triggered)
123         <!target_stopped_data_address>: Hardcode return 1.
124
125 2013-10-28  Pedro Alves  <palves@redhat.com>
126
127         * infrun.c (process_event_stop_test): Remove unnecessary scoping
128         level and reindent.
129
130 2013-10-28  Pedro Alves  <palves@redhat.com>
131
132         * infrun.c (process_event_stop_test): New function, factored out
133         from handle_inferior_event.
134         (handle_inferior_event): 'process_event_stop_test' is now a
135         function instead of a goto label -- adjust.
136
137 2013-10-28  Pedro Alves  <palves@redhat.com>
138
139         * infrun.c (handle_inferior_event): Move process_event_stop_test
140         goto label to the else branch of the ecs->random_signal check,
141         along with FRAME and GDBARCH re-fetching.
142
143 2013-10-28  Pedro Alves  <palves@redhat.com>
144
145         * infrun.c (switch_back_to_stepped_thread): New function, factored
146         out from handle_inferior_event.
147         (handle_inferior_event): Adjust to call
148         switch_back_to_stepped_thread.  Call it also at the tail of the
149         random signal handling, and return, instead of also handling
150         random signals just before the stepping tests.
151
152 2013-10-28  Pedro Alves  <palves@redhat.com>
153
154         * infrun.c (clear_stop_func): Delete.
155         (handle_inferior_event): Don't call clear_stop_func and don't
156         clear 'ecs->random_signal'.
157
158 2013-10-27  Yao Qi  <yao@codesourcery.com>
159
160         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
161         (varobj_create, varobj_get_path_expr): Update.
162         (varobj_value_has_mutated, varobj_update): Likewise.
163         (create_child_with_value, new_root_variable): Likewise.
164         (number_of_children, name_of_variable): Likewise.
165         (value_of_child, my_value_of_variable): Likewise.
166         (varobj_value_is_changeable_p): Likewise.
167
168 2013-10-25  Yao Qi  <yao@codesourcery.com>
169
170         * language.h (struct lang_varobj_ops): Declare.
171         (struct language_defn) <la_varobj_ops>: New field.
172         * ada-lang.c: Include "varobj.h"
173         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
174         ada_varobj_ops.
175         * c-lang.c: Include "varobj.h"
176         (c_language_defn): Initialize field 'la_varobj_ops' with
177         c_varobj_ops.
178         (cplus_language_defn): Initialize field 'la_varobj_ops' with
179         cplus_varobj_ops.
180         (asm_language_defn): Initialize field 'la_varobj_ops' with
181         default_varobj_ops.
182         (minimal_language_defn): Likewise.
183         * d-lang.c (d_language_defn): Likewise.
184         * f-lang.c (f_language_defn): Likewise.
185         * go-lang.c (go_language_defn): Likewise.
186         * m2-lang.c (m2_language_defn): Likewise.
187         * objc-lang.c (objc_language_defn): Likewise.
188         * opencl-lang.c (opencl_language_defn): Likewise.
189         * p-lang.c (pascal_language_defn): Likewise.
190         * language.c (unknown_language_defn): Likewise.
191         (auto_language_defn): Likewise.
192         (local_language_defn): Likewise.
193         * jv-lang.c (java_language_defn): Initialize field
194         'la_varobj_ops' with java_varobj_ops.
195         * varobj.c (varobj_create): Update.
196         * varobj.h (default_varobj_ops): Define macro.
197
198 2013-10-25  Pedro Alves  <palves@redhat.com>
199
200         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
201         static field value.
202         (cp_print_static_field): If the value is entirely optimized out,
203         print <optimized out> here.
204         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
205         static field value.
206         * p-valprint.c (pascal_object_print_static_field): If the value is
207         entirely optimized out, print <optimized out> here.
208         * valops.c (do_search_struct_field)
209         (value_struct_elt_for_reference): No longer handle a NULL static
210         field value.
211         * value.c (value_static_field): Return an optimized out value
212         instead of NULL.
213
214 2013-10-25  Yao Qi  <yao@codesourcery.com>
215
216         * remote.c (remote_traceframe_info): Return early if
217         traceframe is not selected.
218
219 2013-10-25  Yao Qi  <yao@codesourcery.com>
220
221         * tracepoint.c (traceframe_fun): Remove.
222         (traceframe_sal): Remove.
223         (set_traceframe_context): Add local variables.
224
225 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
226
227         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
228         and parameter name.
229
230 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
231
232         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
233         failure from register information collection.
234
235 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
236
237         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
238         member.
239         (linux_corefile_thread_callback): Update accordingly.
240         (linux_make_corefile_notes): Likewise.
241
242 2013-10-24  Pedro Alves   <palves@redhat.com>
243
244         * NEWS (New options): Mention set/show startup-with-shell.
245         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
246         instead of 3.
247         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
248         startup-with-shell'.
249         (show_startup_with_shell): New function.
250         (_initialize_fork_child): Register the set/show startup-with-shell
251         commands.
252         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
253         * inf-ttrace.c (inf_ttrace_him): Remove comment.
254         * procfs.c (procfs_init_inferior): Remove comment.
255         * infcmd.c (startup_with_shell): New global.
256         * inferior.h (startup_with_shell): Declare global.
257         (STARTUP_WITH_SHELL): Delete.
258         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
259
260 2013-10-23  Pedro Alves  <palves@redhat.com>
261
262         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
263         * common/signals.c: Include "gdb_assert.h".
264         (signals): New field 'symbol'.
265         (SET): Use the 'symbol' parameter.
266         (gdb_signal_to_symbol_string): New function.
267         * infrun.c (handle_inferior_event) <random signal>: In debug
268         output, print the random signal enum as string in addition to its
269         number.
270         * target/waitstatus.c (target_waitstatus_to_string): Print the
271         signal's enum value as string instead of the (POSIX) signal name.
272
273 2013-10-23  Gary Benson  <gbenson@redhat.com>
274
275         PR 16013
276         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
277         from 32 to 18.  Adjusted fscanf format string accordingly.
278         (Avoids leaving cmd unterminated.)
279         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
280         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
281         that local_address and remote_address will not overflow.
282         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
283         leaving dependencies unterminated.  Parse size as "%u" to match
284         definition.
285
286 2013-10-22  Pedro Alves  <palves@redhat.com>
287
288         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
289         set ecs->random signal.
290
291 2013-10-22  Pedro Alves  <palves@redhat.com>
292
293         * infrun.c (keep_going): Update comments.
294
295 2013-10-22  Pedro Alves  <palves@redhat.com>
296
297         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
298         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
299
300 2013-10-22  Pedro Alves  <palves@redhat.com>
301
302         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
303         GDB_EXC_BAD_ACCESS.
304         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
305         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
306         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
307         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
308         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
309         (GDB_SIGNAL_LAST): Change description string.
310         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
311         Adjust to signal renaming.
312         * darwin-nat.c (darwin_decode_message): Likewise.
313
314 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
315
316         * MAINTAINERS (Write After Approval): Add myself to the list.
317
318 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
319
320         * breakpoint.c (update_watchpoint): If hardware watchpoints are
321         forced off, downgrade them to software watchpoints if possible,
322         and error out if not possible.
323         (watch_command_1): Move watchpoint type selection closer to
324         watchpoint creation, and extend the comments.
325
326 2013-10-18  Pedro Alves  <palves@redhat.com>
327
328         PR gdb/16062
329         * infrun.c (handle_inferior_event): Keep going if we got a random
330         signal we should not stop for, instead of falling through to the
331         step tests.
332
333 2013-10-18  Yao Qi  <yao@codesourcery.com>
334
335         * c-varobj.c (cplus_number_of_children): Fix indentation.
336
337 2013-10-17  Tom Tromey  <tromey@redhat.com>
338
339         PR gdb/15995:
340         * printcmd.c (printcmd): Call gdb_flush.
341
342 2013-10-17  Tom Tromey  <tromey@redhat.com>
343
344         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
345         (elf_locate_sections): Update.
346
347 2013-10-17  Yao Qi  <yao@codesourcery.com>
348
349         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
350         * ada-varobj.c: Remove the include of ada-varobj.h.
351         (ada_varobj_get_number_of_children): Declare.
352         (ada_varobj_get_name_of_child): Make it static.
353         (ada_varobj_get_path_expr_of_child): Likewise.
354         (ada_varobj_get_value_of_child): Likewise.
355         (ada_varobj_get_type_of_child): Likewise.
356         (ada_varobj_get_value_of_array_variable): Likewise.
357         * ada-varobj.h: Remove.
358
359 2013-10-17  Yao Qi  <yao@codesourcery.com>
360
361         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
362         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
363         * ada-varobj.c: Include "varobj.h".
364         (ada_number_of_children): New.  Moved from varobj.c.
365         (ada_name_of_variable, ada_name_of_child): Likewise.
366         (ada_path_expr_of_child, ada_value_of_child): Likewise.
367         (ada_type_of_child, ada_value_of_variable): Likewise.
368         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
369         (ada_varobj_ops): New.
370         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
371         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
372         * gdbtypes.h (get_target_type): Declare.
373         * varobj.c: Remove the inclusion of "ada-varobj.h" and
374         "ada-lang.h".
375         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
376         (ANONYMOUS_UNION_NAME): Likewise.
377         (get_type, get_value_type, get_target_type): Remove declarations.
378         (value_get_print_value, varobj_value_get_print_value): Likewise.
379         (c_number_of_children, c_name_of_variable): Likewise.
380         (c_name_of_child, c_path_expr_of_child): Likewise.
381         (c_value_of_child, c_type_of_child): Likewise.
382         (c_value_of_variable, cplus_number_of_children): Likewise.
383         (cplus_class_num_children, cplus_name_of_variable): Likewise.
384         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
385         (cplus_value_of_child, cplus_type_of_child): Likewise.
386         (cplus_value_of_variable, java_number_of_children): Likewise.
387         (java_name_of_variable, java_name_of_child): Likewise.
388         (java_path_expr_of_child, java_value_of_child): Likewise.
389         (java_type_of_child, java_value_of_variable): Likewise.
390         (ada_number_of_children, ada_name_of_variable): Likewise.
391         (ada_name_of_child, ada_path_expr_of_child): Likewise.
392         (ada_value_of_child, ada_type_of_child): Likewise.
393         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
394         (ada_value_has_mutated): Likewise.
395         (struct language_specific): Move it to varobj.h.
396         (CPLUS_FAKE_CHILD): Move it to varobj.h.
397         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
398         Callers update.
399         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
400         Make it extern.
401         (is_anonymous_child): Move it to c-varobj.c and rename to
402         varobj_is_anonymous_child.  Caller update.
403         (get_type): Move it to c-varobj.c.
404         (get_value_type): Rename it varobj_get_value_type.  Make it
405         extern.
406         (get_target_type): Move it gdbtypes.c.
407         (varobj_formatted_print_options): New function.
408         (value_get_print_value): Rename it to
409         varobj_value_get_print_value and make it extern.
410         (varobj_value_is_changeable_p): Make it extern.
411         (adjust_value_for_child_access): Move it to c-varobj.c.
412         (default_value_is_changeable_p): Rename it to
413         varobj_default_value_is_changeable_p.  Make it extern.
414         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
415         (c_name_of_child, c_path_expr_of_child): Likewise.
416         (c_value_of_child, c_type_of_child): Likewise.
417         (c_value_of_variable, cplus_number_of_children): Likewise.
418         (cplus_class_num_children, cplus_name_of_variable): Likewise.
419         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
420         (cplus_value_of_child, cplus_type_of_child): Likewise.
421         (cplus_value_of_variable): Likewise.
422         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
423         (java_name_of_child, java_path_expr_of_child): Likewise.
424         (java_value_of_child, java_type_of_child): Likewise.
425         (java_value_of_variable): Likewise.
426         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
427         (ada_name_of_child, ada_path_expr_of_child): Likewise.
428         (ada_value_of_child, ada_type_of_child): Likewise.
429         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
430         (ada_value_has_mutated): Likewise.
431         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
432         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
433         (c_varobj_ops, cplus_varobj_ops): Declare.
434         (java_varobj_ops, ada_varobj_ops): Declare.
435         (varobj_default_value_is_changeable_p): Declare.
436         (varobj_value_is_changeable_p): Declare.
437         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
438         (varobj_get_path_expr_parent): Declare.
439         (varobj_value_get_print_value): Declare.
440         (varobj_formatted_print_options): Declare.
441         (varobj_restrict_range): Declare.
442
443 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
444
445         * target/waitstatus.h (target_waitkind): Remove spurious
446         character from the comments.
447
448 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
449
450         * gdbarch.sh (get_longjmp_target): Add method documentation.
451         * gdbarch.h: Regenerate.
452
453 2013-10-16  Tom Tromey  <tromey@redhat.com>
454
455         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
456         label.
457
458 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
459
460         * gcore.in: Call GDB using the full path to the gcore script.
461         Error out if the GDB binary is not found.
462
463 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
464
465         PR gdb/16014
466         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
467         sizeof.
468
469 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
470
471         PR gdb/16042
472         * target.c (target_disable_btrace): Fix invalid return value for
473         void function.
474         (target_teardown_btrace): Likewise.
475
476 2013-10-14  Yao Qi  <yao@codesourcery.com>
477
478         * varobj.c (struct varobj): Move most of the fields to
479         varobj.h.
480         (struct varobj_dynamic): New struct.
481         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
482         (varobj_has_more): Likewise.
483         (dynamic_varobj_has_child_method): Likewise.
484         (update_dynamic_varobj_children): Likewise.
485         (varobj_get_num_children): Likewise.
486         (varobj_list_children, varobj_pretty_printed_p): Likewise.
487         (install_new_value_visualizer): Likewise.
488         (install_new_value_visualizer, install_new_value): Likewise.
489         (varobj_update, new_variable, free_variable): Likewise.
490         (my_value_of_variable, value_get_print_value): Likewise.
491         (install_visualizer): Change the type of parameter 'var' to
492         'struct varobjd_dynamic *'.  Callers update.
493         * varobj.h (struct varobj): Moved from varobj.c.
494         (struct varobj) <dynamic>: New field.
495
496 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
497
498         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
499         as the preferred name of r30.
500         * nios2-linux-tdep.c (reg_offsets): Likewise.
501         * features/nios2-cpu.xml: Likewise.
502         * features/nios2-linux.c: Regenerated.
503         * features/nios2.c: Regenerated.
504         * regformats/nios2-linux.dat: Regenerated.
505
506 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
507
508         Canonicalize directories for EXEC_FILENAME.
509         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
510         exec_filename.
511         * utils.c (gdb_realpath_keepfile): New function.
512         * utils.h (gdb_realpath_keepfile): New declaration.
513
514 2013-10-11  Doug Evans  <dje@google.com>
515
516         * Makefile.in (GDBFLAGS): New variable.
517         (run): New rule.
518
519 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
520
521         * NEWS: Add entry documenting the new "-catch-assert" and
522         "-catch-exception" GDB/MI commands.
523
524 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
525
526         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
527         "enabled".
528         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
529         "enabled".  Set B->ENABLE_STATE accordingly.
530         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
531         ada-lang.c.
532         (create_ada_exception_catchpoint): Add declaration.
533         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
534         (create_ada_exception_catchpoint): Make non-static. Add new
535         parameter "disabled". Use it in call to
536         init_ada_exception_breakpoint.
537         (catch_ada_exception_command): Add parameter "enabled" in call
538         to create_ada_exception_catchpoint.
539         (catch_assert_command): Likewise.
540
541         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
542         Add declarations.
543         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
544         "catch-exception" commands.
545         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
546         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
547
548 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
549
550         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
551         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
552         of all its enumerates with "ada_".  Update the rest of this
553         file throughout.
554
555 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
556
557         * ada-lang.c (ada_decode_exception_location): Delete.
558         (create_ada_exception_catchpoint): Remove arguments "sal",
559         "addr_string" and "ops".  Add argument "ex_kind" instead.
560         Adjust implementation accordingly, calling ada_exception_sal
561         to get the entities it no longer gets passed as arguments.
562         Document the function's arguments.
563         (catch_ada_exception_command): Use catch_ada_exception_command_split
564         instead of ada_decode_exception_location, and update call to
565         create_ada_exception_catchpoint.
566         (catch_ada_assert_command_split): Renames
567         ada_decode_assert_location.  Remove parameters "addr_string" and
568         "ops", and now returns void.  Adjust implementation accordingly.
569         Update the function documentation.
570         (catch_assert_command): Use catch_ada_assert_command_split
571         instead of ada_decode_assert_location.  Update call to
572         create_ada_exception_catchpoint.
573
574 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
575
576         * utils.h (perror_warning_with_name): Add declaration.
577         * utils.c (perror_warning_with_name): New function.
578         * cli/cli-cmds.c (source_script_with_search): Add call to
579         perror_warning_with_name if from_tty is nul.
580
581 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
582
583         * utils.c (perror_string): New function, extracted out of
584         throw_perror_with_name.
585         (throw_perror_with_name): Rework to use perror_string.
586
587 2013-10-11  Yao Qi  <yao@codesourcery.com>
588
589         * remote.c (discard_pending_stop_replies_in_queue): Update
590         declaration.
591         (struct stop_reply) <rs>: New field.
592         (remove_stop_reply_of_remote_state): New function.
593         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
594         Callers update.  Pass remove_stop_reply_of_remote_state to
595         QUEUE_iterate.
596         (remote_parse_stop_reply): Initialize field 'rs'.
597
598 2013-10-10  Will Newton  <will.newton@linaro.org>
599
600         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
601         linux_init_abi.
602
603 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
604
605         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
606         serial_baud_show_cmd.
607         (_initialize_cli_cmds): Delete the code creating the
608         "set/show remotebaud" commands.
609         * serial.c (baud_rate): Move here from top.c.
610         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
611         (_initialize_serial): Create "set/show serial baud" commands.
612         Add "set/show remotebaud" command aliases.
613         * top.c (baud_rate): Moved to serial.c.
614         * NEWS: Document the new "set/show serial baud" commands,
615         replacing "set/show remotebaud".
616
617 2013-10-09  Pedro Alves  <palves@redhat.com>
618
619         * breakpoint.c (insert_bp_location): Use memory_error_message to
620         build the memory error string.
621         * c-lang.c: Include "gdbcore.h".
622         (c_get_string): Use memory_error to throw error.
623         (target_xfer_memory_error): Delete.
624         (memory_error_message): New, factored out from
625         target_xfer_memory_error.
626         (memory_error): Change parameter type to target_xfer_error.
627         Rewrite.
628         (read_memory): Use memory_error instead of
629         target_xfer_memory_error.
630         * gdbcore.h: Include "target.h".
631         (memory_error): Change parameter type to target_xfer_error.
632         (memory_error_message): Declare function.
633         * target.c (target_read_memory, target_read_stack)
634         (target_write_memory, target_write_raw_memory): Return
635         TARGET_XFER_E_IO on error.  Adjust comments.
636         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
637         instead of EIO.
638         * target.h (target_read, target_insert_breakpoint)
639         (target_remove_breakpoint): Adjust comments.
640         * valprint.c (partial_memory_read): Rename parameter, and adjust
641         comment.
642         (val_print_string): Use memory_error_message to build the memory
643         error string.
644
645 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
646
647         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
648         result variable.  Rename variable fopen_e_ever_failed to
649         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
650
651 2013-10-09  Pedro Alves  <palves@redhat.com>
652
653         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
654         (monitor_write_memory_longlongs, monitor_write_memory_block):
655         Constify 'myaddr' parameter.
656         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
657         helper.
658         (monitor_xfer_partial): New function.
659         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
660         hook.  Install a to_xfer_partial hook.
661
662 2013-10-09  Tom Tromey  <tromey@redhat.com>
663
664         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
665         bfd_get_alt_debug_link_info.
666
667 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
668
669         New flag OBJF_NOT_FILENAME.
670         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
671         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
672         allocate_objfile.
673         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
674         symbol_file_add_from_bfd.
675         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
676         allocate_objfile.
677         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
678         NULL.
679         * objfiles.h (OBJF_NOT_FILENAME): New.
680
681 2013-10-08  Tom Tromey  <tromey@redhat.com>
682
683         * Makefile.in (SFILES): Add build-id.c.
684         (HFILES_NO_SRCDIR): Add build-id.h.
685         * build-id.c: New file, largely from elfread.c.  Modified
686         most functions.
687         * build-id.h: New file.
688         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
689         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
690         Search for dwz file using build-id.
691         * elfread.c (build_id_bfd_get, build_id_verify)
692         (build_id_to_debug_filename, find_separate_debug_file): Remove.
693
694 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
695
696         * ada-lang.c (compare_names_with_case): Renamed from
697         compare_names, adding a new parameter "casing" and its handling.
698         New function documentation.
699         (compare_names): New function, implemented using
700         compare_names_with_case.
701
702 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
703
704         * ada-lang.c (ada_exception_sal): Remove advance declaration.
705
706 2013-10-07  Tom Tromey  <tromey@redhat.com>
707
708         * objfiles.c (free_objfile_per_bfd_storage): Delete the
709         demangled_names_hash.
710         (free_objfile): Don't delete the demangled_names_hash.
711         * objfiles.h (struct objfile_per_bfd_storage)
712         <demangled_names_hash>: New field.
713         (struct objfile) <demangled_names_hash>: Move to
714         objfile_per_bfd_storage.
715         * symfile.c (reread_symbols): Don't delete the
716         demangled_names_hash.
717         * symtab.c (create_demangled_names_hash): Update.
718         (symbol_set_names): Update.
719
720 2013-10-07  Tom Tromey  <tromey@redhat.com>
721
722         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
723         needs_relocations>: New fields.
724         (gdb_bfd_requires_relocations): New function.
725         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
726         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
727         the BFD needs relocations applied.
728
729 2013-10-07  Pedro Alves  <palves@redhat.com>
730
731         PR breakpoints/11568
732         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
733         the thread list" instead of "gone".
734
735 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
736
737         * NEWS: Mention new convenience variable $_exitsignal.
738         * corelow.c (core_open): Reset exit convenience variables.  Set
739         $_exitsignal to the uncaught signal which generated the corefile.
740         * infrun.c (handle_inferior_event): Reset exit convenience
741         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
742         (clear_exit_convenience_vars): New function.
743         * inferior.h (clear_exit_convenience_vars): New prototype.
744
745 2013-10-06  Yao Qi  <yao@codesourcery.com>
746
747         * varobj.h: Add comments to enum varobj_languages.
748
749 2013-10-04  Doug Evans  <dje@google.com>
750
751         Add support for DWP file format version 2.
752         * NEWS: Mention support for DWP file format version 2.
753         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
754         union of asection, containing_section.  New fields virtual_offset
755         and is_virtual.  Change type of readin filed from int to char.
756         (dwo_sections, dwo_file): Tweak comments.
757         (dwp_v2_section_ids): New enum.
758         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
759         str_offsets, types.
760         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
761         All uses updated.
762         (virtual_v2_dwo_sections): New struct.
763         (dwp_hash_table): New fields version, nr_columns.  Change type of
764         section_pool field to a union.
765         (dwp_file): New field version.
766         (dwarf2_has_info): Check for virtual sections.
767         (get_containing_section): New function.
768         (get_section_bfd_owner, get_section_bfd_section): Call it.
769         (dwarf2_locate_sections): Update.
770         (dwarf2_section_empty_p): Update.
771         (dwarf2_read_section): Handle virtual sections.
772         (locate_dwz_sections): Update.
773         (create_dwp_hash_table): Document and handle V2 format.
774         (locate_v1_virtual_dwo_sections): Renamed from
775         locate_virtual_dwo_sections and update.  All callers updated.
776         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
777         Delete arg htab.  Rename arg section_index to unit_index.
778         All callers updated.
779         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
780         All uses updated.
781         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
782         (lookup_dwo_unit_in_dwp): Add V2 support.
783         (dwarf2_locate_dwo_sections): Update.
784         (dwarf2_locate_common_dwp_sections): Renamed from
785         dwarf2_locate_dwp_sections and update.  All callers updated.
786         (dwarf2_locate_v2_dwp_sections): New function.
787         (open_and_init_dwp_file): Add V2 support.
788         (read_str_index): New locals str_section, str_offsets_section.
789
790 2013-10-04  Pedro Alves  <palves@redhat.com>
791
792         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
793         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
794         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
795         describing comments with references to ptid.h.
796         * common/ptid.h: Remove intro description of constructors,
797         accessors and predicates.
798         (struct ptid): Reformat.
799         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
800         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
801         describing comments.
802
803 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
804
805         * aix-thread.c (sync_threadlists): Add missing ')' in call
806         to ptid_build.
807
808 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
809
810         * procfs.c (procfs_init_inferior): Fix typo causing the build
811         to fail.
812
813 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
814
815         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
816
817 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
818
819         * mi/mi-main.c (run_one_inferior): Add function description.
820         Make ARG a pointer to an integer whose value determines whether
821         we should "run" or "start" the program.
822         (mi_cmd_exec_run): Add handling of the "--start" option.
823         Reject all other command-line options.
824         * NEWS: Add entry for "-exec-run"'s new "--start" option.
825
826 2013-10-04  Yao Qi  <yao@codesourcery.com>
827
828         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
829         (struct notif_client) <pending_event>: Moved
830         to struct remote_notif_state.
831         <id>: New field.
832         (struct remote_notif_state) <pending_event>: New field.
833         (notif_event_xfree): Declare.
834         * remote-notif.c (handle_notification): Adjust.
835         (notif_event_xfree): New function.
836         (do_notif_event_xfree): Call notif_event_xfree.
837         (remote_notif_state_xfree): Call notif_event_xfree to free
838         each element in field pending_event.
839         * remote.c (discard_pending_stop_replies): Remove declaration.
840         (discard_pending_stop_replies_in_queue): Declare.
841         (remote_close): Call discard_pending_stop_replies_in_queue
842         instead of discard_pending_stop_replies.
843         (remote_start_remote): Adjust.
844         (stop_reply_xfree): Call notif_event_xfree.
845         (notif_client_stop): Adjust initialization.
846         (remote_notif_remove_all): Rename it to ...
847         (remove_stop_reply_for_inferior): ... this.  Update comments.
848         Don't check INF is NULL.
849         (discard_pending_stop_replies): Return early if notif_state is
850         NULL.  Adjust.  Don't check INF is NULL.
851         (remote_notif_get_pending_events): Adjust.
852         (discard_pending_stop_replies_in_queue): New function.
853         (remote_wait_ns): Likewise.
854
855 2013-10-04  Yao Qi  <yao@codesourcery.com>
856
857         * remote-notif.c (DECLARE_QUEUE_P): Remove.
858         (notif_queue): Remove.
859         (remote_notif_process): Add one parameter 'notif_queue'.
860         Update comments.  Callers update.
861         (remote_async_get_pending_events_token): Remove.
862         (remote_notif_register_async_event_handler): Remove.
863         (remote_notif_unregister_async_event_handler): Remove.
864         (handle_notification): Add parameter 'notif_queue'.  Update
865         comments.  Callers update.
866         (notif_xfree): Remove.
867         (remote_notif_state_allocate): New function.
868         (remote_notif_state_xfree): New function.
869         (_initialize_notif): Remove code to allocate queue.
870         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
871         (struct remote_notif_state): New.
872         (handle_notification): Update declaration.
873         (remote_notif_process): Likewise.
874         (remote_notif_register_async_event_handler): Remove.
875         (remote_notif_unregister_async_event_handler): Remove.
876         (remote_notif_state_allocate): Declare.
877         (remote_notif_state_xfree): Declare.
878         * remote.c (struct remote_state) <notif_state>: New field.
879         (remote_close): Don't call
880         remote_notif_unregister_async_event_handler.  Call
881         remote_notif_state_xfree.
882         (remote_open_1): Don't call
883         remote_notif_register_async_event_handler.  Call
884         remote_notif_state_allocate.
885
886 2013-10-04  Yao Qi  <yao@codesourcery.com>
887
888         * varobj.c (create_child_with_value): Remove 'const' from the
889         type of parameter 'name'.
890         (varobj_add_child): Likewise.
891         (install_dynamic_child): Remove 'const' from the type of
892         parameter 'name'.
893         (varobj_add_child): Likewise.
894         (create_child_with_value): Likewise.  Update comments.  Don't
895         duplicate 'name'.
896         (update_dynamic_varobj_children): Duplicate 'name'
897         and pass it to install_dynamic_child.
898
899 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
900
901         * python/py-value.c (convert_value_from_python): Move PyInt_Check
902         conversion logic to occur after PyLong_Check.  Comment on order
903         change significance.
904         * python/py-arch.c (archpy_disassemble): Comment on order of
905         conversion for integers and longs.
906
907 2013-10-03  Pedro Alves  <palves@redhat.com>
908
909         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
910         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
911         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
912         PTRACE_O_TRACEFORK is not supported.
913         (linux_test_for_tracesysgood): New function.
914         (linux_test_for_tracefork): New function, factored out from
915         linux_check_ptrace_features, and also don't kill child_pid here.
916
917 2013-10-03  Tristan Gingold  <gingold@adacore.com>
918
919         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
920         Remove verbose error reporting.  Use detected state to
921         thread_set_state call.
922         (i386_darwin_dr_get): Fix return type.  Remove verbose error
923         report.
924         Remove trailing spaces.
925
926 2013-10-02  Pedro Alves  <palves@redhat.com>
927
928         * cp-valprint.c (cp_print_value_fields): Adjust calls to
929         val_print_optimized_out.
930         * jv-valprint.c (java_print_value_fields): Likewise.
931         * p-valprint.c (pascal_object_print_value_fields): Likewise.
932         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
933         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
934         new optimized out value.
935         * findvar.c (address_from_register): Likewise.
936         * frame.c (put_frame_register): Tweak error string to say the
937         register was not saved, rather than optimized out.
938         * infcmd.c (default_print_one_register_info): Adjust call to
939         val_print_optimized_out.  Use value_of_register instead of
940         get_frame_register_value.
941         * mi/mi-main.c (output_register): Use value_of_register instead of
942         get_frame_register_value.
943         * valprint.c (valprint_check_validity): Likewise.
944         (val_print_optimized_out): New value parameter.  If the value is
945         lval_register, print <not saved> instead.
946         (value_check_printable, val_print_scalar_formatted): Adjust calls
947         to val_print_optimized_out.
948         * valprint.h (val_print_optimized_out): New value parameter.
949         * value.c (struct value) <optimized_out>: Extend comment.
950         (error_value_optimized_out): New function.
951         (require_not_optimized_out): Use it.  Use a different string for
952         lval_register values.
953         * value.h (error_value_optimized_out): New declaration.
954         * NEWS: Mention <not saved>.
955
956 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
957
958         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
959         strcmp to compare two symtab filenames.
960
961 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
962
963         * symtab.c (search_symbols_equal): Delete.
964         (sort_search_symbols_remove_dups): Replace call to
965         search_symbols_equal by call to compare_search_syms,
966         adjusting as necessary.
967
968 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
969
970         PR python/15579
971
972         * python/python.c: Document gdb.execute command in Python help.
973
974 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
975
976         * python/py-frame.c (frame_info_to_frame_object): Use
977         gdbpy_convert_exception. Clean up Python object on failure.
978
979 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
980
981         * python/lib/gdb/command/frame_filters.py
982         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
983         (ShowFrameFilterPriority.invoke): Ditto.
984
985 2013-10-01  Keith Seitz  <keiths@redhat.com>
986
987         * linespec.c (struct ls_parser): Make 'saved_arg' const.
988         (parse_linespec): Make 'argptr' const.
989         Remove temporary cast of 'argptr' to const char **.
990         (decode_line_full): Pass const pointer to parse_linespec.
991         (decode_line_1): Likewise.
992         (decode_objc): Make local variable 'new_argptr' const.
993         (find_function_symbols): Remove temporary cast to char *
994         to find_imps.
995         * objc-lang.c (find_imps): Make argument 'method' const.
996         Return const.
997         * objc-lang.h (find_imps): Likewise.
998
999 2013-10-01  Keith Seitz  <keiths@redhat.com>
1000
1001         * completer.c (skip_quoted_chars): Make all arguments const.
1002         Return const.
1003         (skip_quoted): Likewise.
1004         * completer.h (skip_quoted_chars): Likewise.
1005         (skip_quoted): Likewise.
1006         * defs.h (skip_quoted): Remove duplicate declaration.
1007         * jv-exp.y: Include completer.h.
1008         (yylex): Remove unneccessary cast to char * fro skip_quoted.
1009         * p-exp.y: Include completer.h.
1010
1011 2013-10-01  Keith Seitz  <keiths@redhat.com>
1012
1013         * c-exp.y (parse_number): Make first argument const.
1014         Make a copy of the input to manipulate.
1015         (c_parse_escape): Make first argument const.
1016         Make local variable 'tokptr' const.
1017         (parse_string_or_char): Make first two arguments const.
1018         (macro_original_text): Make const.
1019         (lex_one_token): Make local variable 'tokstart' const.
1020         Likewise for local variables named 'p'.
1021         Cast away const for struct stoken (temporary).
1022         * c-lang.h (c_parse_escpae): Make first argument const.
1023         * cli/cli-cmds.c (echo_command): Make local variable 'p'
1024         const.
1025         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1026         var_string case.
1027         * f-exp.y (parse_number): Make first argument const.
1028         (match_string_literal): Make local variable 'tokstart'
1029         const.
1030         (yylex): Make local variable 'p' const.
1031         Cast away const for struct stoken (temporary).
1032         * go-exp.y (parse_number): Make first argument const.
1033         (parse_string_or_char): Likewise.
1034         Make local variable 'tokstart' const.
1035         (lex_one_token): Likewise for numerous locals called 'p'.
1036         Cast away const for struct stoken (temporary).
1037         * jv-exp.y (parse_number): Make first argument const.
1038         Make local variables 'tokstart' and 'tokptr' const.
1039         Cast away const for call to skip_quoted (temporary).
1040         (yylex): Make local variable 'p' const.
1041         Cast away const for struct stoken (temporary).
1042         * m2-exp.y (parse_number): Make local variable 'p' const.
1043         (yylex): Likewise for 'tokstart'.
1044         Cast away const for struct stoken (temporary).
1045         Make local variable 'p' const.
1046         * macroexp.c (get_character_constant): Pass a const string
1047         to c_parse_escape.
1048         (get_string_literal): Likewise.
1049         (macro_expand_next): Make first argument const.
1050         Cast away const for init_shared_buffer.
1051         * macroexp.h (macro_expand_next): Make first argument const.
1052         * p-exp.y (yylex): Make a local copy of 'lexptr'.
1053         Pass a const string to c_parse_escape.
1054         Make local variables 'p' and 'namestart' const.
1055         * parse.c (lexptr): Make const.
1056         (prev_lexptr): Likewise.
1057         (find_template_name_end): Return const.
1058         Make argument const, too.
1059         (parse_exp_in_context): Make first argument const.
1060         Remove the entire const_hack.
1061         (parse_exp_in_context_1): Make first argument const.
1062         * parser-defs.h (find_template_name_end): Return const.
1063         Make argument const, too.
1064         (lexptr): Make const.
1065         (prev_lexptr): Likewise.
1066         * utils.c (parse_escape): Make second argument const.
1067         * utils.h (parse_escape): Likewise.
1068
1069 2013-10-01  Keith Seitz  <keiths@redhat.com>
1070
1071         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1072         is now const.
1073         (block_lookup): Make 'raw_name' and 'name' const.
1074         * ada-lex.l (processString): Update for struct stoken.ptr.
1075         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1076         (operator_stoken): Likewise.
1077         (lex_one_token): Remove temporary cast to char * for
1078         'yylval.sval.ptr'.
1079         * f-exp.y (yylex): Likewise.
1080         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1081         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1082         * go-exp.y (lex_one_token): Remove temporary cast to char * for
1083         'yylval.sval.ptr'.
1084         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1085         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1086         * linespec.c (struct ls_parser): Make 'stream' const.
1087         (find_parameter_list_end): Make argument 'input' and local
1088         variable 'p' const.
1089         (linespec_lexer_lex_string): Make local variables 'start' and
1090         'p' const.
1091         Use skip_spaces_const instead of skip_spaces.
1092         (linespec_lexer_peek_token): Make local variable 'saved_stream'
1093         const.
1094         (parse_linespec): Temporarily cast 'argptr' to const for
1095         'parser->lexer.stream'.
1096         * m2-exp.y (yylex): Remove temporary cast to char * for
1097         'yylval.sval.ptr'.
1098         * objc-lang.c (add_msglist): Make local variable 'p' const.
1099         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1100         (exp : STRING): Make 'sp' const.
1101         (parse_number): Make argument 'p' const.
1102         * parser-defs.h (struct stoken): Make 'ptr' const.
1103
1104 2013-10-01  Doug Evans  <dje@google.com>
1105
1106         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1107
1108 2013-10-01  Yao Qi  <yao@codesourcery.com>
1109
1110         * varobj.c (c_value_of_root): Remove declaration.
1111         (cplus_value_of_root, java_value_of_root): Likewise.
1112         (ada_value_of_root): Likewise.
1113         (struct language_specific) <value_of_root>: Remove.
1114         (languages): Update initialization.
1115         (check_scope): Move earlier.
1116         (c_value_of_root): Move earlier and rename to ...
1117         (value_of_root_1): ... this.
1118         (value_of_root): Caller update.
1119         (cplus_value_of_root, java_value_of_root): Remove.
1120         (ada_value_of_root): Remove.
1121
1122 2013-10-01  Yao Qi  <yao@codesourcery.com>
1123
1124         * varobj.c (varobj_format_string): Remove "unknown".
1125         (languages): Remove the first element.
1126         * varobj.h (enum varobj_languages): Remove vlang_c.
1127
1128 2013-10-01  Yao Qi  <yao@codesourcery.com>
1129
1130         * varobj.c (struct language_specific) <language>: Remove.
1131         (languages): Update the initialization.
1132
1133 2013-10-01  Yao Qi  <yao@codesourcery.com>
1134
1135         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1136         "solib-target.h".  Include "windows-tdep.h".
1137         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
1138         set_solib_ops and set_gdbarch_has_dos_based_file_system.
1139         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1140         windows-tdep.o to gdb_target_obs.
1141
1142 2013-10-01  Yao Qi  <yao@codesourcery.com>
1143
1144         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1145         "solib-target.h".
1146         (amd64_windows_init_abi): Don't call set_solib_ops and
1147         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1148         windows_init_abi instead.
1149         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1150         "solib-target.h".
1151         (i386_cygwin_init_abi): Don't call set_solib_ops,
1152         set_gdbarch_has_dos_based_file_system and
1153         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1154         windows_init_abi instead.
1155         * windows-tdep.c: Include "solib.h" and "solib-target.h".
1156         (windows_init_abi): New function.
1157         (windows_iterate_over_objfiles_in_search_order): Make it
1158         static.
1159         * windows-tdep.h (windows_init_abi): Declare.
1160         (windows_iterate_over_objfiles_in_search_order): Remove
1161         declaration.
1162
1163 2013-10-01  Jerome Guitton  <guitton@adacore.com>
1164
1165         Checked in by Joel Brobecker  <brobecker@adacore.com>
1166         * system-gdbinit/elinos.py (get_elinos_environment): Return an
1167         incomplete dictionnary instead of None in case of missing
1168         environment variables.
1169         (elinos_init): in case of an incomplete environment, best
1170         effort to load system libraries instead of abort.
1171
1172 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
1173
1174         * ada-lang.c (ada_has_this_exception_support): Ignore
1175         mst_solib_trampoline minimal symbols.
1176
1177 2013-09-30  Tristan Gingold  <gingold@adacore.com>
1178
1179         * i386-darwin-nat.c (darwin_complete_target): Install methods for
1180         hardware watchpoint.
1181         (i386_darwin_dr_set): Support 32 and 64 bit states.
1182         (i386_darwin_dr_get): Likewise.
1183         (i386_darwin_dr_set_control): Make static.
1184         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1185         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1186
1187 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
1188
1189         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1190         Replace TIDGET with ptid_get_lwp.
1191         Replace GET_LWP with ptid_get_lwp.
1192         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1193         Replace BUILD_THREAD with ptid_build.
1194         Replace BUILD_LWP with ptid_build.
1195         Replace PIDGET with ptid_get_pid.
1196         Replace TIDGET with ptid_get_lwp.
1197         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1198         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1199         Replace TIDGET with ptid_get_lwp.
1200         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1201         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1202         Replace TIDGET with ptid_get_lwp.
1203         Replace GET_LWP with ptid_get_lwp.
1204         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1205         * auxv.c: Likewise.
1206         * breakpoint.c: Likewise.
1207         * common/ptid.c (ptid_is_pid): Condense check for
1208         null_ptid and minus_one_ptid.
1209         (ptid_lwp_p): New function.
1210         (ptid_tid_p): New function.
1211         * common/ptid.h: Update comments for accessors.
1212         (ptid_lwp_p): New prototype.
1213         (ptid_tid_p): New prototype.
1214         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1215         * gcore.c: Replace PIDGET with ptid_get_pid.
1216         * gdbthread.h: Likewise.
1217         * gnu-nat.c: Likewise.
1218         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1219         Replace TIDGET with ptid_get_lwp.
1220         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1221         * hppanbsd-nat.c: Likewise.
1222         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1223         Replace TIDGET with ptid_get_lwp.
1224         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1225         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1226         * infcmd.c: Likewise.
1227         * inferior.h: Likewise.
1228         * inflow.c: Likewise.
1229         * infrun.c: Likewise.
1230         * linux-fork.c: Likewise.
1231         * linux-nat.c: Replace PIDGET with ptid_get_pid.
1232         Replace GET_PID with ptid_get_pid.
1233         Replace is_lwp with ptid_lwp_p.
1234         Replace GET_LWP with ptid_get_lwp.
1235         Replace BUILD_LWP with ptid_build.
1236
1237 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1238
1239         * common/linux-btrace.c: Move sys/syscall.h out of the
1240         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1241         Also check for SYS_perf_event_open before attempting to buid.
1242
1243 2013-09-27  Doug Evans  <dje@google.com>
1244
1245         * dwarf2read.c (dwarf2_section_info): Add comment.
1246         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1247         All uses updated.
1248         (dwarf2_section_empty_p): Rename arg from "info" to "section".
1249         (dwarf2_read_section): Delete unused local "header".  Add section
1250         name to error message.
1251         (create_dwo_in_dwp): Tweak comment.
1252         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1253
1254         * dwarf2read.c (die_reader_specs): Tweak comment.
1255         (get_section_bfd_owner, get_section_bfd_section): New functions.
1256         (get_section_name, get_section_file_name): New functions.
1257         (get_section_id, get_section_flags): New functions.
1258         (*): Use new functions to access section fields.
1259
1260         * dwarf2read.c (struct dwo_file): Add/tweak comments.
1261         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
1262         arg "htab".  All callers updated.
1263         (create_debug_types_hash_table): Remove redundant copy of
1264         abbrev_section.
1265         (create_dwo_in_dwp): Tweak comments.
1266         (read_str_index): Tweak comment.  Record dwarf form name in static
1267         local.
1268
1269 2013-09-27  Pedro Alves  <palves@redhat.com>
1270
1271         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1272         (remote_filename_p): Add comment.
1273         * remote.c (remote_filename_p): Adjust to use
1274         REMOTE_SYSROOT_PREFIX.
1275         * solib.c (solib_find): When deciding whether we need to add a
1276         directory separator, check whether the sysroot is "remote:"
1277         instead of checking whether the patch has a drive spec.  Add
1278         comments.
1279
1280 2013-09-27  Pedro Alves  <palves@redhat.com>
1281
1282         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1283         Delete fields.
1284         (remote_parse_stop_reply): Adjust, setting event->ws.kind
1285         directly.
1286
1287 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1288
1289         Fix set debug frame output.
1290         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
1291         SENTINEL_FRAME entry lower to match enum frame_type order.
1292
1293 2013-09-26  Pierre Muller  <muller@sourceware.org>
1294
1295         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1296         AMD64_R15_REGNUM when a register index is expected.
1297         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1298         Substitute in array.
1299         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1300         (amd64_push_arguments): Substitute in integer_regnum array.
1301
1302 2013-09-25  Doug Evans  <dje@google.com>
1303
1304         * objfiles.c (allocate_objfile): Move comment to better place.
1305
1306         New option "set debug symfile on".
1307         * NEWS: Mention "set debug symfile".
1308         * Makefile.in (SFILES): Add symfile-debug.c.
1309         (COMMON_OBS): Add symfile-debug.o.
1310         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1311         objfile's symbol functions.
1312         * objfiles.h (objfile_set_sym_fns): Declare.
1313         * symfile-debug.c: New file.
1314         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1315         objfile's symbol functions.
1316         (reread_symbols): Ditto.
1317
1318         * symfile.h (struct sym_fns): Delete member "sym_flavour".
1319         All uses updated.
1320         (add_symtab_fns): Update prototype.
1321         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
1322         (registered_sym_fns): ... this.
1323         (symtab_fns): Update.
1324         (add_symtab_fns): New arg "flavour".  All callers updated.
1325         (find_sym_fns): Rewrite to use new sym_fns registry.
1326
1327         * symfile.h (struct sym_fns): Add "objfile" argument to
1328         sym_read_linetable.  All uses updated.
1329
1330         * symtab.c (domain_name, search_domain_name): New functions.
1331         * symtab.h (domain_name, search_domain_name): Declare.
1332
1333         * symfile.h (struct quick_symbol_functions): Reorg arg list of
1334         map_matching_symbols so objfile is first.  All uses updated.
1335         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1336         * psymtab.c (map_matching_symbols_psymtab): Update signature.
1337
1338 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1339
1340         PR shlibs/8882
1341         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1342         link map entries.
1343
1344 2013-09-24  Doug Evans  <dje@google.com>
1345
1346         * objfiles.c (free_objfile): Move comment.
1347
1348 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1349
1350         * ada-exp.y (string_to_operator): Delete.
1351         (dummy_string_to_ada_operator): Delete.
1352
1353 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1354
1355         Revert:
1356         * i386-tdep.h (enum amd64_reg_class): New, moved here from
1357         amd64-tdep.c.
1358         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1359         call_dummy_integer_regs, and classify.
1360         * amd64-tdep.h (amd64_classify): Add declaration.
1361         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1362         (amd64_reg_class): Delete, moved to i386-tdep.h.
1363         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
1364         Replace call to amd64_classify by call to tdep->classify.
1365         (amd64_push_arguments): Get the list of registers to use for
1366         passing integer parameters from the gdbarch tdep structure,
1367         rather than using a hardcoded one.  Replace calls to amd64_classify
1368         by calls to tdep->classify.
1369         (amd64_push_dummy_call): Get the register number used for
1370         the "hidden" argument from tdep->call_dummy_integer_regs.
1371         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1372         and tdep->call_dummy_integer_regs.  Set tdep->classify.
1373
1374 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1375
1376         Revert:
1377         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1378         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1379         where tdep->memory_args_by_pointer is non-zero.
1380
1381 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1382
1383         Revert:
1384         * i386-tdep.h (struct gdbarch_tdep): Add new field
1385         integer_param_regs_saved_in_caller_frame.
1386         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1387         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1388
1389 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1390
1391         * amd64-windows-tdep.c: #include "value.h"
1392         (amd64_windows_classify): Delete.
1393         (amd64_windows_passed_by_integer_register)
1394         (amd64_windows_passed_by_xmm_register)
1395         (amd64_windows_passed_by_pointer)
1396         (amd64_windows_adjust_args_passed_by_pointer)
1397         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1398         (amd64_windows_push_dummy_call): New functions.
1399         (amd64_windows_init_abi): Remove setting of
1400         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1401         tdep->classify, tdep->memory_args_by_pointer and
1402         tdep->integer_param_regs_saved_in_caller_frame.
1403         Add call to set_gdbarch_push_dummy_call.
1404
1405 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1406
1407         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1408         objfile->original_name.
1409
1410 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1411
1412         Pass down original filename for objfile.
1413         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1414         * elfread.c (elf_symfile_read): Likewise.
1415         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1416         longer set ORIGINAL_NAME.
1417         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1418         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1419         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
1420         symbol_file_add_from_bfd call.
1421         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1422         (macho_check_dsym): Add parameter filenamep.  Change function comment.
1423         Set *filenamep.
1424         (macho_symfile_read): New variable dsym_filename.  Update
1425         macho_check_dsym call.  Use it for symbol_file_add_separate.
1426         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
1427         it.  Use it for objfile->original_name.
1428         (objfile_name): Return OBFD's filename, if available.
1429         * objfiles.h (allocate_objfile): Add new parameter name.
1430         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1431         * symfile-mem.c (symbol_file_add_from_memory): Update
1432         symbol_file_add_from_bfd call.
1433         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1434         comment for it.
1435         (symbol_file_add_with_addrs): New parameter name, add function comment
1436         for it.  Remove variable name.  Update allocate_objfile call.
1437         (symbol_file_add_separate): New parameter name, add function comment
1438         for it.  Update symbol_file_add_with_addrs call.
1439         (symbol_file_add_from_bfd): New parameter name.  Update
1440         symbol_file_add_with_addrs call.
1441         (symbol_file_add): Update symbol_file_add_from_bfd call.
1442         (reread_symbols): New variable original_name.  Save
1443         objfile->original_name by it.
1444         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1445         second parameter.
1446
1447 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1448
1449         Code cleanup: Add objfile_name accessor function.
1450         * ada-lang.c (is_known_support_routine): Use objfile_name.
1451         * auto-load.c (source_gdb_script_for_objfile)
1452         (auto_load_objfile_script): Likewise.
1453         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1454         * dbxread.c (dbx_symfile_read): Likewise.
1455         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1456         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1457         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1458         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1459         (lookup_dwp_signatured_type, lookup_dwo_unit)
1460         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1461         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1462         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1463         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1464         (dwarf2_record_block_ranges, read_common_block, read_typedef)
1465         (read_subrange_type, load_partial_dies, read_partial_die)
1466         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1467         (die_containing_type, build_error_marker_type, lookup_die_type)
1468         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1469         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1470         (get_DW_AT_signature_type, write_psymtabs_to_index)
1471         (save_gdb_index_command): Likewise.
1472         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1473         Likewise.
1474         * expprint.c (dump_subexp_body_standard): Likewise.
1475         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1476         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1477         original_name.
1478         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1479         obj_name, use objfile_name for it, use the variable.
1480         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1481         Use objfile_name.
1482         * machoread.c (macho_symtab_read, macho_check_dsym)
1483         (macho_symfile_relocate): Likewise.
1484         * maint.c (maintenance_translate_address): Likewise.
1485         * minidebug.c (find_separate_debug_file_in_section): Likewise.
1486         * minsyms.c (install_minimal_symbols): Likewise.
1487         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1488         original_name.
1489         (filter_overlapping_sections): Use objfile_name.
1490         (objfile_name): New function.
1491         * objfiles.h (struct objfile): Rename field name to original_name.
1492         (objfile_name): New prototype.
1493         * printcmd.c (sym_info, address_info): Use objfile_name.
1494         * probe.c (parse_probes, collect_probes, compare_probes)
1495         (info_probes_for_ops): Likewise.
1496         * progspace.c (clone_program_space): Likewise.
1497         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1498         (maintenance_info_psymtabs): Likewise.
1499         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1500         (source_section_scripts): Likewise.
1501         * python/py-objfile.c (objfpy_get_filename): Likewise.
1502         * python/py-progspace.c (pspy_get_filename): Likewise.
1503         * solib-aix.c (solib_aix_get_toc_value): Likewise.
1504         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1505         * solib.c (solib_read_symbols): Likewise.
1506         * stabsread.c (scan_file_globals): Likewise.
1507         * stap-probe.c (handle_stap_probe): Likewise.
1508         * symfile.c (symbol_file_clear, separate_debug_file_exists)
1509         (find_separate_debug_file_by_debuglink): Likewise.
1510         (reread_symbols): Likewise.  Use the objfile field name renamed to
1511         original_name.
1512         (allocate_symtab): Use objfile_name.
1513         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1514         (dump_objfile, dump_msymbols, dump_symtab_1)
1515         (maintenance_print_msymbols, maintenance_print_objfiles)
1516         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1517         * target.c (target_translate_tls_address, target_info): Likewise.
1518         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
1519         objfile_name.
1520
1521 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1522
1523         Code cleanup.
1524         * probe.c (parse_probes): Rename variable objfile_name to
1525         objfile_namestr.
1526
1527 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1528
1529         Remove solib-sunos.c.
1530         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1531         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1532         * objfiles.c (rt_common_objfile): Remove.
1533         (free_objfile): Remove rt_common_objfile comparison.
1534         * objfiles.h (rt_common_objfile): Remove.
1535         * solib-sunos.c: Remove.
1536         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1537
1538 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1539
1540         Remove a.out NetBSD and OpenBSD hosts.
1541         * NEWS (Removed native configurations): New.
1542         * config/arm/nbsdaout.mh: Remove.
1543         * config/i386/nbsdaout.mh: Remove.
1544         * config/i386/obsdaout.mh: Remove.
1545         * config/m68k/nbsdaout.mh: Remove.
1546         * config/sparc/nbsdaout.mh: Remove.
1547         * config/vax/nbsdaout.mh: Remove.
1548         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1549         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1550         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1551         error.
1552         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1553         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1554         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1555
1556 2013-09-23  Tom Tromey  <tromey@redhat.com>
1557
1558         * linespec.c (struct minsym_and_objfile): Remove.
1559         (minsym_and_objfile_d): Remove.
1560         (struct linespec, struct collect_info, linespec_parse_basic)
1561         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1562         (compare_msymbols, find_method, find_function_symbols)
1563         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1564         (add_minsym, search_minsyms_for_name): Update.
1565
1566 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1567
1568         * regcache.c: Add include of valprint.h.
1569         (dump_endian_bytes): Delete.
1570         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1571
1572 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1573
1574         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1575
1576 2013-09-19  Pedro Alves  <palves@redhat.com>
1577
1578         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1579         breakpoints.
1580
1581 2013-09-19  Pedro Alves  <palves@redhat.com>
1582             Thomas Schwinge  <thomas@codesourcery.com>
1583             Yue Lu  <hacklu.newborn@gmail.com>
1584
1585         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1586         Take a gdb_byte pointer instead of a char pointer.
1587
1588         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1589         gnu_xfer_partial helper.
1590         (gnu_xfer_partial): New function.
1591         (gnu_target): Don't install a deprecated_xfer_memory hook.
1592         Install a to_xfer_partial hook.
1593
1594 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1595
1596         Constification.
1597         * main.c (captured_main): Replace catch_command_errors by
1598         catch_command_errors_const.  Twice.
1599         * symfile.c (symbol_file_add_main_1): Make args parameter const.
1600         (symbol_file_add): Make name parameter const.
1601         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1602         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
1603         variable name.  Change their usage accordingly.
1604         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1605         const.
1606         (symbol_file_add_main): Make args parameter const.
1607
1608 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
1609             Ulrich Weigand  <uweigand@de.ibm.com>
1610
1611         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1612         of c_value member.
1613         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1614
1615 2013-09-18  Pedro Alves  <palves@redhat.com>
1616             Yue Lu  <hacklu.newborn@gmail.com>
1617
1618         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1619         (gnu_create_inferior)
1620         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1621         (set_sig_thread_cmd): Use the lwpid field of ptids to
1622         store/extract thread ids instead of the tid field.
1623         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1624
1625 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1626
1627         * infcmd.c (default_print_one_register_info): Add detection of
1628         optimized out values.
1629         (default_print_registers_info): Switch to using
1630         get_frame_register_value.
1631
1632 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1633
1634         * infrun.c (handle_inferior_event): Check if we know the
1635         function start address before setting a resume breakpoint.
1636
1637 2013-09-18  Pedro Alves  <palves@redhat.com>
1638
1639         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1640         minus_one_ptid instead of looking at the ptid's tid field and
1641         comparing that to -1.
1642
1643 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1644
1645         * main.h (get_gdb_program_name): Remove extra whitespace.
1646
1647 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1648
1649         * main.h (get_gdb_program_name): Add declaration.
1650         * main.c (get_gdb_program_name): Add definition.
1651
1652 2013-09-17  Doug Evans  <dje@google.com>
1653
1654         * dwarf2read.c: Move definitions of complaint functions to after
1655         forward declarations of local functions.
1656
1657 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
1658             Pedro Alves  <palves@redhat.com>
1659
1660         PR gdb/11568
1661         * breakpoint.c (remove_threaded_breakpoints): New function.
1662         (_initialize_breakpoint): Attach remove_threaded_breakpoints
1663         as thread_exit observer.
1664
1665 2013-09-17  Pedro Alves  <palves@redhat.com>
1666
1667         PR gdb/15911
1668         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1669         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1670         * corelow.c (core_open):
1671         * frame.h (print_stack_frame, print_frame_info): New
1672         'set_current_sal' parameter.
1673         * infcmd.c (finish_command, kill_command): Adjust call to
1674         print_stack_frame.
1675         * inferior.c (inferior_command): Likewise.
1676         * infrun.c (normal_stop): Likewise.
1677         * linux-fork.c (linux_fork_context): Likewise.
1678         * record-full.c (record_full_goto_entry, record_full_restore):
1679         Likewise.
1680         * remote-mips.c (common_open): Likewise.
1681         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1682         Use it.
1683         (print_frame_info): New 'set_current_sal' parameter.  Set the last
1684         displayed sal depending on the new paremeter instead of looking at
1685         print_what.
1686         (backtrace_command_1, select_and_print_frame, frame_command)
1687         (current_frame_command, up_command, down_command): Adjust call to
1688         print_stack_frame.
1689         * thread.c (print_thread_info, restore_selected_frame)
1690         (do_captured_thread_select): Adjust call to print_stack_frame.
1691         * tracepoint.c (tfind_1): Likewise.
1692         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1693         (mi_cmd_stack_info_frame): Likewise.
1694         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1695         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1696
1697 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1698
1699         * value.c (isvoid_internal_fn): Replace "parameter" with
1700         "argument".
1701
1702 2013-09-16  Stan Shebs  <stan@codesourcery.com>
1703
1704         * README: Update references to writing code for GDB.
1705         * configure.ac (build_warnings): Remove obsolete comment.
1706         * configure: Regenerate.
1707         * gdbarch.sh: Remove references to gdbint.texinfo.
1708         * gdbarch.h: Regenerate.
1709         * gdbtypes.c (objfile_type): Remove comments referencing internals
1710         manual and D10V.
1711
1712 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1713
1714         * NEWS: Mention new convenience function $_isvoid.
1715         * value.c (isvoid_internal_fn): New function.
1716         (_initialize_values): Add new convenience function $_isvoid.
1717
1718 2013-09-16  Pierre Muller  <muller@sourceware.org>
1719
1720         * arm-linux-tdep.c: Add "elf/common.h" header.
1721         Remove AT_HWCAP macro definintion as it is provided in
1722         added include file.
1723         * s390-tdep.c: Remove system header <elf.h>
1724         Add "elf/common.h" header for AT_HWCAP definition.
1725         (s390_core_read_description): Use correct CORE_ADDR
1726         for hwcap local variable used as third parameter
1727         of function target_auxv_search.
1728
1729 2013-09-14  Pierre Muller  <muller@sourceware.org>
1730             Tom Tromey  <tromey@redhat.com>
1731             Pedro Alves  <palves@redhat.com>
1732
1733         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1734         mode if operating system doesn't know O_CLOEXEC.
1735
1736 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1737
1738         Code cleanup.
1739         * symfile.c (reread_symbols): Move variable obfd_filename to a more
1740         inner block.
1741
1742 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1743
1744         * NEWS: Mention TDB support.
1745         * features/s390-tdb.xml: New file.
1746         * features/s390-te-linux64.xml: New file.
1747         * features/s390x-te-linux64.xml: New file.
1748         * features/Makefile (WHICH): Add new tdescs above.
1749         (s390-te-linux64-expedite): Set.
1750         (s390x-te-linux64-expedite): Set.
1751         * features/s390-te-linux64.c: New file (generated).
1752         * features/s390x-te-linux64.c: New file (generated).
1753         * regformats/s390-te-linux64.dat: New file (generated).
1754         * regformats/s390x-te-linux64.dat: New file (generated).
1755         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1756         (HWCAP_S390_TE): Likewise.
1757         (S390_TDB_DWORD0_REGNUM): Likewise.
1758         (S390_TDB_DWORD0_REGNUM): Likewise.
1759         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1760         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1761         (S390_TDB_ATIA_REGNUM): Likewise.
1762         (S390_TDB_R0_REGNUM): Likewise.
1763         (S390_TDB_R1_REGNUM): Likewise.
1764         (S390_TDB_R2_REGNUM): Likewise.
1765         (S390_TDB_R3_REGNUM): Likewise.
1766         (S390_TDB_R4_REGNUM): Likewise.
1767         (S390_TDB_R5_REGNUM): Likewise.
1768         (S390_TDB_R6_REGNUM): Likewise.
1769         (S390_TDB_R7_REGNUM): Likewise.
1770         (S390_TDB_R8_REGNUM): Likewise.
1771         (S390_TDB_R9_REGNUM): Likewise.
1772         (S390_TDB_R10_REGNUM): Likewise.
1773         (S390_TDB_R11_REGNUM): Likewise.
1774         (S390_TDB_R12_REGNUM): Likewise.
1775         (S390_TDB_R13_REGNUM): Likewise.
1776         (S390_TDB_R14_REGNUM): Likewise.
1777         (S390_TDB_R15_REGNUM): Likewise.
1778         (S390_NUM_REGS): Increase.
1779         (S390_IS_TDBREGSET_REGNUM): New macro.
1780         (s390_regmap_tdb): Declare.
1781         (s390_sizeof_tdbregset): Define.
1782         (tdesc_s390_te_linux64): Declare.
1783         (tdesc_s390x_te_linux64): Likewise.
1784         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1785         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1786         (s390_regmap_tdb): New regmap.
1787         (s390_supply_tdb_regset): New function.
1788         (s390_tdb_regset): New regset.
1789         (s390_linux64v2_regset_sections): Add TDB regset to list.
1790         (s390x_linux64v2_regset_sections): Likewise.
1791         (s390_regset_from_core_section): Recognize TDB core note section.
1792         (s390_core_read_description): If HWCAP indicates TE support,
1793         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1794         (s390_gdbarch_init): Handle TDB regset.
1795         (_initialize_s390_tdep): Initialize new tdescs.
1796         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1797         (have_regset_tdb): New variable.
1798         (s390_native_supply): Support register invalidation.
1799         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1800         (check_regset): Treat ENODATA as "regset exists".
1801         (s390_linux_fetch_inferior_registers): Add TDB.
1802         (s390_read_description): Check for TDB existence and select
1803         appropriate tdesc.
1804         * gdbserver/Makefile.in (clean): Add removal of new makefile
1805         targets.
1806         (s390-te-linux64.c): New makefile target.
1807         (s390x-te-linux64.c): Likewise.
1808         * gdbserver/configure.srv (srv_regobj): Append new objects
1809         s390-te-linux64.o and s390x-te-linux64.o.
1810         (srv_xmlfiles): Append new files s390-te-linux64.xml,
1811         s390x-te-linux64.xml, and s390-tdb.xml.
1812         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1813         declaration.
1814         (tdesc_s390_te_linux64): Likewise.
1815         (init_registers_s390x_te_linux64): Likewise.
1816         (tdesc_s390x_te_linux64): Likewise.
1817         (s390_check_regset): Treat ENODATA as "regset exists".
1818         (s390_arch_setup): Add TDB regset support.
1819         (initialize_low_arch): Initialize registers for new tdescs.
1820
1821 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1822
1823         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1824         (S390_IS_FPREGSET_REGNUM): New macro.
1825         * s390-tdep.c (s390_dwarf_regmap): Make const.
1826         (regnum_is_gpr_full): New function for replacing repeated code.
1827         (s390_pseudo_register_name): Use it.
1828         (s390_pseudo_register_type): Likewise.
1829         (s390_pseudo_register_read): Likewise.
1830         (s390_pseudo_register_write): Likewise.
1831         (s390_unwind_pseudo_register): Likewise.
1832         (s390_regmap_gregset): New format for regmap.
1833         (s390x_regmap_gregset): Likewise.
1834         (s390_regmap_fpregset): Likewise.
1835         (s390_regmap_upper): Likewise.
1836         (s390_regmap_last_break): Likewise.
1837         (s390_regmap_system_call): Likewise.
1838         (s390_supply_regset): Adjust to new regmap format.
1839         (s390_collect_regset): Likewise.
1840         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1841         (s390_native_collect): Likewise.
1842         (supply_gregset): Likewise.
1843         (fill_gregset): Likewise.
1844         (supply_fpregset): Likewise.
1845         (fill_fpregset): Likewise.
1846         (fetch_regset): Likewise.
1847         (store_regset): Likewise.
1848         (s390_linux_fetch_inferior_registers): Likewise.
1849         (s390_linux_fetch_inferior_registers): Likewise.
1850
1851 2013-09-12  Andrew Pinski  <apinski@cavium.com>
1852
1853         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1854
1855 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1856
1857         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1858
1859 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
1860
1861         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1862
1863 2013-09-06  Pedro Alves <palves@redhat.com>
1864
1865         * remote-sim.c (dump_mem, gdbsim_fetch_register)
1866         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1867         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1868         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1869         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1870         gdb_stdlog.
1871
1872 2013-09-06  Pedro Alves  <palves@redhat.com>
1873
1874         * remote-sim.c (dump_mem): Constify buf parameter.
1875         gdbsim_xfer_inferior_memory): Rename to ...
1876         (gdbsim_xfer_memory): ... this.  Adjust interface as
1877         target_xfer_partial helper.
1878         (gdbsim_xfer_partial): New function.
1879         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1880         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
1881
1882 2013-09-06  Pedro Alves  <palves@redhat.com>
1883
1884         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1885         host_address_to_string, and send debug output to gdb_stdlog.
1886
1887 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1888
1889         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1890         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1891         gdb_target_obs for cris target.
1892         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1893         (cris_gdbarch_init): Move calls to
1894         set_gdbarch_fetch_tls_load_module_address and
1895         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1896         Add call to gdbarch_init_osabi.
1897         * cris-linux-tdep.c: New file.
1898         * cris-tdep.h: New file.
1899
1900 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1901
1902         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1903         to deprecated_init_ui_hook.
1904
1905 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1906
1907         * cli/cli-interp.c (_initialize_cli_interp): Add a
1908         command_loop_proc to interp_procs.
1909         * event-top.c (cli_command_loop): Change signature to match
1910         interp_command_loop_ftype.
1911         * event-top.h (cli_command_loop): Same.
1912         * interps.c (interp_new): Require every interpreter to have a
1913         command_loop_proc.
1914         (current_interp_command_loop): Just call the command_loop_proc on
1915         the current interpreter.
1916         * tui/tui-interp.c (_initialize_tui_interp): Add a
1917         command_loop_proc to interp_procs.
1918
1919 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1920
1921         * cris-tdep.c (cris_gdbarch_init): Add call to
1922         get_gdbarch_fetch_tls_load_module_address.
1923
1924 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1925
1926         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1927         (cris_elf_gregset_t): Rename from elf_gregset_t.
1928         (crisv32_elf_gregset_t): Adjust.
1929         (cris_supply_gregset, fetch_core_registers): Adjust.
1930
1931 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1932
1933         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1934
1935 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
1936
1937         * defs.h (deprecated_command_loop_hook): Remove, including
1938         references in comments.
1939         * interps.c (current_interp_command_loop): No longer use
1940         deprecated_command_loop_hook.
1941         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1942         setup.
1943         * top.c (deprecated_command_loop_hook): Remove.
1944
1945 2013-09-05  Pedro Alves  <palves@redhat.com>
1946
1947         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1948         local is now int instead of ULONGEST.  Print it with %d
1949         instead of paddress.
1950
1951 2013-09-05  Tristan Gingold  <gingold@adacore.com>
1952
1953         * MAINTAINERS: Remove avr maintainership.
1954
1955 2013-09-05  Pedro Alves  <palves@redhat.com>
1956
1957         * findvar.c (value_of_register): Rework in terms of
1958         value_of_register_lazy.
1959
1960 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
1961
1962         * symfile.c (add_symbol_file_command): Remove trailing
1963          whitespaces and blank line after comment.
1964
1965 2013-09-05  Pedro Alves  <palves@redhat.com>
1966
1967         * tui/tui-regs.c (tui_register_format): Don't look at the
1968         register's name here.  Return string representing register
1969         value instead of storing it in the data element.
1970         (tui_get_register): Compare register string representations
1971         instead of register value states and contents.
1972
1973 2013-09-05  Pedro Alves  <palves@redhat.com>
1974
1975         PR tui/15933
1976         * tui/tui-regs.c (tui_show_registers): Show registers of the
1977         selected frame, not the current frame.
1978
1979 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
1980
1981         * MAINTAINERS (Write After Approval): Add myself to the list.
1982
1983 2013-09-04  Doug Evans  <dje@google.com>
1984
1985         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1986         (queue_and_load_dwo_tu): New function.
1987         (lookup_dwo_signatured_type): Set per_cu.tu_read.
1988         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1989         Make dependent_cu optional.
1990         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1991         and an older .gdb_index is in use, queue and load all its TUs too.
1992
1993 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1994
1995         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1996         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1997         variable search_flags.
1998         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1999         (OPF_RETURN_REALPATH): ... here.
2000         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2001         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2002         call.  Twice.
2003         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2004         openp call.
2005         * solib.c (solib_find): Likewise.  Four times.
2006         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2007         in the function comment and for the realpath_fptr variable.
2008         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2009         (find_and_open_source): Likewise.  Twice.
2010         * symfile.c (symfile_bfd_open): Likewise, also twice.
2011
2012 2013-09-04  Doug Evans  <dje@google.com>
2013
2014         * progspace.c (save_current_space_and_thread): Remove unnecessary
2015         call to save_current_inferior.
2016
2017 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
2018
2019         * sh64-tdep.c (sh64_do_register): Return after printing message
2020         about unavailable register contents.
2021
2022 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
2023             Pedro Alves  <palves@redhat.com>
2024
2025         * symfile.c (add_symbol_file_command): Error out on unknown
2026         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2027         options and collapse into single conditional branch.
2028
2029 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
2030
2031         * inf-child.c (inf_child_follow_fork): New parameter
2032         detach_fork.
2033         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2034         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2035         * inferior.h (detach_fork): Remove.
2036         * infrun.c (detach_fork): Adjust comment and make it
2037         static.
2038         (follow_fork): Pass detach_fork parameter to
2039         target_follow_fork.
2040         * linux-nat.c (linux_child_follow_fork): New parameter
2041         detach_fork.
2042         * target.c (target_follow_fork): New parameter detach_fork.
2043         Pass detach_fork as parameter and print its value.
2044         * target.h (struct target_ops) <to_follow_fork>: New int
2045         parameter.
2046         (target_follow_fork): New parameter detach_fork.
2047
2048 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
2049
2050         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2051         Replace sec->bfd by sec->the_bfd_section->owner.
2052
2053 2013-09-03  Yao Qi  <yao@codesourcery.com>
2054
2055         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
2056         from linux_has_shared_address_space.
2057         (linux_has_shared_address_space): Call linux_is_uclinux.
2058         * linux-tdep.h (linux_is_uclinux): Declare.
2059         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2060         linux_is_uclinux.
2061
2062 2013-09-03  Yao Qi  <yao@codesourcery.com>
2063
2064         * config/djgpp/fnchange.lst: Remove entry of
2065         i386-interix-nat.c and i386-interix-tdep.c.
2066         * configure.ac: Remove '*-*-interix*'.
2067         * configure: Re-generated.
2068         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2069         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2070         obsolete comments.
2071         * osabi.c (gdb_osabi_names): Remove "Interix".
2072
2073 2013-09-03  Yao Qi  <yao@codesourcery.com>
2074
2075         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2076
2077 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
2078
2079         * record.h (record_print_flag) <record_print_src_line,
2080         record_print_insn_range>: Rename into ...
2081         (record_print_flag) <record_print_src_line,
2082         record_print_insn_range>: ... this.  Update all users.
2083
2084 2013-09-02  Pierre Muller  <muller@sourceware.org>
2085
2086         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2087         error code.
2088
2089 2013-09-02  Pierre Muller  <muller@sourceware.org>
2090
2091         * windows-nat.c (windows_xfer_memory): Fix compilation failure
2092         by use of plongest function.
2093
2094 2013-09-02  Tristan Gingold  <gingold@adacore.com>
2095
2096         * NEWS: Add entry mentioning support for native Windows x64
2097         SEH data.
2098
2099         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2100         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2101         (struct amd64_windows_frame_cache): New struct.
2102         (amd64_windows_w2gdb_regnum): New global.
2103         (pc_in_range, amd64_windows_frame_decode_epilogue)
2104         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2105         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2106         (amd64_windows_frame_this_id): New functions.
2107         (amd64_windows_frame_unwind): New static global.
2108         (amd64_windows_skip_prologue): New function.
2109         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2110         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2111         with amd64_windows_skip_prologue.
2112
2113 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
2114
2115         GDB 7.6.1 released.
2116
2117 2013-08-30  Pedro Alves  <palves@redhat.com>
2118
2119         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2120         SRC_AND_LOC.
2121
2122 2013-08-30  Pedro Alves  <palves@redhat.com>
2123
2124         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2125         warning text.
2126
2127 2013-08-30  Pedro Alves  <palves@redhat.com>
2128
2129         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2130         Adjust arguments to print_stack_frame.
2131
2132 2013-08-30  Pedro Alves  <palves@redhat.com>
2133
2134         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2135
2136 2013-08-30  Pedro Alves  <palves@redhat.com>
2137
2138         * frame.h (show_and_print_stack_frame): Delete declaration.
2139
2140 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
2141
2142         PR python/15461
2143
2144         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2145         (archpy_name): Check for valid architecture.
2146         (archpy_disassemble): Ditto.
2147
2148 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
2149
2150         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2151         instead of "long long" in call to ptrace64.
2152
2153 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
2154
2155         * mi/mi-interp.c (mi_command_loop): Change signature to match
2156         interp_command_loop_ftype.
2157         (mi1_command_loop): Remove.
2158         (mi2_command_loop): Remove.
2159         (mi3_command_loop): Remove.
2160         (mi_interpreter_resume): Remove setting of
2161         deprecated_command_loop_hook.
2162         (_initialize_mi_interp): Set mi_command_loop as the command loop
2163         callback.
2164
2165 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2166
2167         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2168         value_type.
2169
2170 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2171
2172         * value.c (allocate_value_contents): Make static.
2173         * value.h (allocate_value_contents): Remove prototype.
2174
2175 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2176
2177         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2178         of assembling value via allocate_value_lazy and attribute setter.
2179         * findvar.c (default_read_var_value): Use value_at_lazy instead of
2180         assembling value via allocate_value_lazy and attribute setter.
2181         * valops.c (do_search_struct_field): Use value_at_lazy instead of
2182         assembling value via allocate_value_lazy and attribute setter.
2183
2184 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2185
2186         * value.c (value_from_contents_and_address): Replace allocate_value and
2187         memcpy with value_from_contents.
2188
2189 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2190
2191         * python/py-framefilter.c (py_print_frame): Remove usage of
2192         PyString_AsString.  Use python_string_to_host_string instead.
2193         Refactor function to work with a string as a new allocation
2194         instead of a pointer.
2195         (py_print_frame): Ditto.
2196         * python/lib/gdb/frames.py (return_list): Cain iterators together
2197         instead of adding them as a list.
2198         (_sort_list): Call return_list, and remove duplicate code.
2199         (execute_frame_filters): Convert iterator to a list with list().
2200         * python/lib/gdb/command/frame_filters.py
2201         (SetFrameFilterPriority._set_filter_priority): Convert priority
2202         attribute to an integer.
2203         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2204         wrapper function __next__.
2205         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2206         define as "str".
2207
2208 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2209
2210         PR python/15752
2211         * python/py-framefilter.c (apply_frame_filter): Check
2212         gdb_python_initialized.  Exit if the Python frame-filter code
2213         cannot be initialized.
2214
2215 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2216
2217         PR cli/15842
2218         * top.c (print_gdb_version): Remove erroneous newline after help
2219         text.
2220
2221 2013-08-29  Yao Qi  <yao@codesourcery.com>
2222
2223         * varobj.c (install_dynamic_child): Remove trailing space.
2224         Add one blank line after variable declaration.
2225
2226 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2227
2228         PR gdb/15415
2229         * corefile.c (get_exec_file): Use exec_filename.
2230         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
2231         * exec.c (exec_close): Free EXEC_FILENAME.
2232         (exec_file_attach): New variable canonical_pathname.  Use
2233         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
2234         EXEC_FILENAME.
2235         * exec.h (exec_filename): New.
2236         * inferior.c (print_inferior, inferior_command): Use
2237         PSPACE_EXEC_FILENAME.
2238         * mi/mi-main.c (print_one_inferior): Likewise.
2239         * progspace.c (clone_program_space, print_program_space): Likewise.
2240         * progspace.h (struct program_space): New field pspace_exec_filename.
2241         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
2242         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2243
2244 2013-08-28  Will Newton  <will.newton@linaro.org>
2245
2246         * common/linux-ptrace.c: Include stdint.h unconditionally.
2247
2248 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2249
2250         Code cleanup.
2251         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2252
2253 2013-08-28  Yao Qi  <yao@codesourcery.com>
2254             Pedro Alves  <palves@redhat.com>
2255
2256         * event-top.c (gdb_setup_readline): Call stderr_fileopen
2257         instead of stdio_fileopen.
2258         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2259         .Call stderr_fileopen instead of stdio_fileopen.
2260         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2261         [__MINGW32__] (stderr_file_fputs): New function.
2262         (stderr_fileopen): New function.
2263         * ui-file.h (stderr_fileopen): Declare.
2264
2265 2013-08-27  Doug Evans  <dje@google.com>
2266
2267         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2268         (struct dwarf2_per_cu_data): Ditto.
2269         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
2270         (process_imported_unit_die): Ditto.
2271         (follow_die_sig_1): Simplify assert.
2272
2273 2013-08-27  Pedro Alves  <palves@redhat.com>
2274
2275         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2276         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
2277         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2278         windows_xfer_memory directly.
2279         (init_windows_ops): Don't install a deprecated_xfer_memory method.
2280
2281 2013-08-27  Pedro Alves  <palves@redhat.com>
2282
2283         * darwin-nat.c (darwin_xfer_memory): Delete.
2284         (_initialize_darwin_inferior): Don't install a
2285         deprecated_xfer_memory method.
2286
2287 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
2288             Yao Qi  <yao@codesourcery.com>
2289
2290         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2291         (parse_no_frames_option): Remove.
2292         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2293         (mi_cmd_stack_list_args): Adjust.
2294         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2295         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
2296         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2297         Caller update.
2298         (list_args_or_locals): New parameter 'skip_unavailable'.
2299         Handle it.
2300         * valprint.c (scalar_type_p): Rename to ...
2301         (val_print_scalar_type_p): ... this.  Make extern.
2302         (val_print, value_check_printable): Adjust.
2303         * valprint.h (val_print_scalar_type_p): Declare.
2304         * value.c (value_entirely_unavailable): New function.
2305         * value.h (value_entirely_unavailable): Declare.
2306
2307         * NEWS: Mention the new option "--skip-unavailable" to MI
2308         commands '-stack-list-locals', '-stack-list-arguments' and
2309         '-stack-list-variables'.
2310
2311 2013-08-27  Yao Qi  <yao@codesourcery.com>
2312
2313         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2314         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2315         options.
2316         * mi/mi-getopt.c (mi_getopt): Remove.
2317         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
2318         'error_on_unknown'.
2319         (mi_getopt): Call mi_getopt_1.
2320         (mi_getopt_silent): New.
2321         * mi/mi-getopt.h (mi_getopt_silent): Declare.
2322
2323 2013-08-26  Doug Evans  <dje@google.com>
2324
2325         PR symtab/15885
2326         * dwarf2read.c (dw2_dump): Print some minimal information indicating
2327         .gdb_index is in use.
2328         * symfile.c (reread_symbols): Reset objfile->sf.
2329
2330         * NEWS: Document "mt print objfiles" now takes optional regexp.
2331         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2332         regexp of objfiles to print.
2333         (_initialize_symmisc): Update doc string for "mt print objfiles".
2334
2335         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2336         missing debug info checks.
2337
2338 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
2339             Ulrich Weigand  <uweigand@de.ibm.com>
2340
2341         * xcoffread.c (arrange_linetable): Add fix to correctly handle
2342         line tables generated by XLC compiled binaries.
2343
2344 2013-08-23  Doug Evans  <dje@google.com>
2345
2346         * symmisc.c (dump_symtab): Delete prototype.
2347         (dump_msymbols, dump_objfile): Ditto.
2348         (maintenance_info_symtabs): Mark as dont_repeat.
2349         (_initialize_symmisc): Improve doc string for "mt info symtabs".
2350
2351         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2352         debugging printf to better location.
2353
2354 2013-08-23  Pedro Alves  <palves@redhat.com>
2355
2356         * target.c (target_read_live_memory): Change type of 'ret' local
2357         to LONGEST.
2358
2359 2013-08-23  Pedro Alves  <palves@redhat.com>
2360
2361         * remote.c (remote_write_bytes_aux, remote_write_bytes)
2362         (remote_read_bytes): Change return type to LONGEST, and adjust to
2363         return a target_xfer_error on error.
2364         (remote_xfer_memory): Delete.
2365         (remote_flash_write): Change type of 'ret' local to LONGEST.
2366         (remote_xfer_partial, remote_xfer_partial): Adjust.
2367         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2368
2369 2013-08-23  Pierre Muller  <muller@sourceware.org>
2370
2371         ARI fix: Push # directives to start of line.
2372         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2373
2374 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
2375
2376         PR gdb/15501
2377         * breakpoint.c (enable_command, disable_command): Iterate over
2378         all specified breakpoint locations.
2379
2380 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2381
2382         * common/linux-ptrace.c (linux_fork_to_function): Push #
2383         directives to the start of the line.
2384         (linux_check_ptrace_features): Fix warning message to use
2385         the "_" markup.
2386
2387 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2388
2389         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2390         nat/linux-waitpid.h.
2391         (linux-waitpid.o): New object file rule.
2392         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2393         (current_ptrace_options): Moved from linux-nat.c.
2394         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2395         parameters.
2396         (linux_fork_to_function): New function.
2397         (linux_grandchild_function): Likewise.
2398         (linux_child_function): Likewise.
2399         (linux_check_ptrace_features): New function, heavily
2400         based on linux-nat.c:linux_test_for_tracefork.
2401         (linux_enable_event_reporting): New function.
2402         (ptrace_supports_feature): Likewise.
2403         (linux_supports_tracefork): Likewise.
2404         (linux_supports_traceclone): Likewise.
2405         (linux_supports_tracevforkdone): Likewise.
2406         (linux_supports_tracesysgood): Likewise.
2407         * common/linux-ptrace.h (HAS_NOMMU): Moved from
2408         gdbserver/linux-low.c.
2409         (linux_enable_event_reporting): New declaration.
2410         (linux_supports_tracefork): Likewise.
2411         (linux_supports_traceclone): Likewise.
2412         (linux_supports_tracevforkdone): Likewise.
2413         (linux_supports_tracesysgood): Likewise.
2414         * config.in (PTRACE_TYPE_ARG4): Regenerate.
2415         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2416         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2417         * config/arm/linux.mh (NATDEPFILES): Likewise.
2418         * config/i386/linux.mh (NATDEPFILES): Likewise.
2419         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2420         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2421         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2422         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2423         * config/mips/linux.mh (NATDEPFILES): Likewise.
2424         * config/pa/linux.mh (NATDEPFILES): Likewise..
2425         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2426         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2427         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2428         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2429         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2430         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2431         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2432         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2433         ptrace's 4th argument's types.
2434         Check the type of PTRACE_TYPE_ARG4.
2435         * configure: Regenerate.
2436         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2437         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2438         (linux_supports_tracefork_flag): Remove.
2439         (linux_supports_tracesysgood_flag): Likewise.
2440         (linux_supports_tracevforkdone_flag): Likewise.
2441         (current_ptrace_options): Moved to
2442         common/linux-ptrace.c.
2443         (linux_tracefork_child): Remove.
2444         (my_waitpid): Remove.
2445         (linux_test_for_tracefork): Renamed to
2446         linux_check_ptrace_features and moved to common/linux-ptrace.c.
2447         (linux_test_for_tracesysgood): Remove.
2448         (linux_supports_tracesysgood): Remove.
2449         (linux_supports_tracefork): Remove.
2450         (linux_supports_tracevforkdone): Remove.
2451         (linux_enable_tracesysgood): Remove.
2452         (linux_enable_event_reporting): Remove.
2453         (linux_init_ptrace): New function.
2454         (linux_child_post_attach): Call linux_init_ptrace.
2455         (linux_child_post_startup_inferior): Call linux_init_ptrace.
2456         (linux_child_follow_fork): Call linux_supports_tracefork
2457         and linux_supports_tracevforkdone.
2458         (linux_child_insert_fork_catchpoint): Call
2459         linux_supports_tracefork.
2460         (linux_child_insert_vfork_catchpoint): Likewise.
2461         (linux_child_set_syscall_catchpoint): Call
2462         linux_supports_tracesysgood.
2463         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2464         * nat/linux-nat.h: New file.
2465         * nat/linux-waitpid.c: New file.
2466         * nat/linux-waitpid.h: New file.
2467
2468 2013-08-22  Samuel Bronson  <naesten@gmail.com>
2469
2470         ARM Linux support for `catch syscall'.
2471         * syscalls/arm-linux.py: New file.
2472         * syscalls/arm-linux.xml: Likewise.
2473         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2474         (arm_linux_init_abi): Register the new function and syscall xml file.
2475         * data-directory/Makefile.in: Install the new syscall xml file.
2476         * NEWS: Brag about this.
2477
2478 2013-08-22  Pedro Alves  <palves@redhat.com>
2479
2480         PR gdb/15871
2481         * corefile.c (target_xfer_memory_error): New function.
2482         (memory_error): Defer EIO to target_memory_error.
2483         (read_memory): Use target_xfer_partial, and handle finer-grained
2484         target xfer errors.
2485         * target.c (target_xfer_error_to_string): New function.
2486         (memory_xfer_partial_1): If memory is known to be
2487         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2488         (target_xfer_partial): Make extern.
2489         * target.h (enum target_xfer_error): New enum.
2490         (target_xfer_error_to_string): Declare function.
2491         (target_xfer_partial): Declare function.
2492         (struct target_ops) <xfer_partial>: Adjust describing comment.
2493
2494 2013-08-22  Alan Modra  <amodra@gmail.com>
2495
2496         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2497         * configure.tgt: Likewise as targets.
2498
2499 2013-08-20  Doug Evans  <dje@google.com>
2500
2501         * buildsym.c (subfile_stack): Move here from buildsym.h.
2502         (pending_macros): Ditto.
2503         (get_macro_table): New function.
2504         (buildsym_init): Initialize subfile_stack.
2505         * coffread.c (type_vector,type_vector_length): Moved here from
2506         buildsym.h.
2507         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2508         (coff_symtab_read): Use it.
2509         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2510         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2511         with call to get_macro_table.
2512         * stabsread.c (type_vector,type_vector_length): Moved here from
2513         buildsym.h.
2514         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2515         * buildsym.h (get_macro_table): Declare.
2516
2517 2013-08-20  Tom Tromey  <tromey@redhat.com>
2518
2519         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2520         Update.
2521         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
2522
2523 2013-08-20  Doug Evans  <dje@google.com>
2524
2525         * blockframe.c: Remove #include "psymtab.h".
2526         * cp-support.c: Ditto.
2527         * source.c: Ditto.
2528         * stack.c: Ditto.
2529
2530 2013-08-20  Tom Tromey  <tromey@redhat.com>
2531
2532         PR python/15816:
2533         * exceptions.h (return_mask): Now an enum.
2534         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2535         enum constants.
2536
2537 2013-08-20  Tom Tromey  <tromey@redhat.com>
2538
2539         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2540         get_objfile_arch.
2541         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2542         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2543         * jit.c (jit_object_close_impl): Update.
2544         * jv-lang.c (get_dynamics_objfile): Update.
2545         * linespec.c (add_minsym): Use get_dynamics_objfile.
2546         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2547         (allocate_objfile): Don't initialize 'gdbarch' field.
2548         (get_objfile_arch): Update.
2549         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2550         moved from...
2551         (struct objfile) <gdbarch>: ... here.  Remove.
2552         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2553         get_objfile_arch.
2554         * symfile.c (init_entry_point_info): Use get_objfile_arch.
2555
2556 2013-08-20  Alan Modra  <amodra@gmail.com>
2557
2558         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2559         for IBM long double nan and inf.
2560         (floatformat_is_negative, floatformat_classify,
2561         floatformat_mantissa): Similarly.
2562         (floatformat_ieee_single, floatformat_ieee_double,
2563         floatformat_ieee_quad, floatformat_arm_ext,
2564         floatformat_ia64_spill): Delete unused vars.
2565         (_initialize_doublest): Delete unused function.
2566         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2567         little-endian variants of floatformat_ibm_long_double.
2568
2569 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
2570
2571         * Makefile.in (SFILES): Remove common/target-common.c and
2572         add target/waitstatus.c.
2573         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2574         target/resume.h, target/wait.h and target/waitstatus.h.
2575         (COMMON_OBS): Remove target-common.o and add
2576         waitstatus.o.
2577         (target-common.o): Remove.
2578         (waitstatus.o): New target object file.
2579         * common/target-common.c: Move contents to
2580         target/waitstatus.c and remove.
2581         * common/target-common.h: Move contents to other files and
2582         remove.
2583         (enum resume_kind: Move to target/resume.h.
2584         (TARGET_WNOHANG): Move to target/wait.h.
2585         (enum target_waitkind): Move to target/waitstatus.h.
2586         (struct target_waitstatus): Likewise.
2587         * target.h: Do not include target-common.h and
2588         include target/resume.h, target/wait.h and
2589         target/waitstatus.h.
2590         * target/resume.h: New file.
2591         * target/wait.h: New file.
2592         * target/waitstatus.h: New file.
2593         * target/waitstatus.c: New file.
2594
2595 2013-08-19  Pedro Alves  <palves@redhat.com>
2596
2597         * linux-nat.c (linux_test_for_tracefork)
2598         (linux_test_for_tracesysgood, linux_child_follow_fork)
2599         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2600         (linux_nat_wait_1): Extend comment.
2601         (linux_async_pipe): Add comment.
2602
2603 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
2604
2605         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2606         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2607         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2608         Update to account for fact that PC is now a pseudo-register.
2609         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
2610         cases for RL78_PC_REGNUM.
2611
2612 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
2613
2614         PR cli/15841
2615         * top.c (quit_force): Skip writing history file
2616         if input is not from terminal.
2617
2618 2013-08-14  Tom Tromey  <tromey@redhat.com>
2619
2620         * remote.c (struct remote_state) <echo_nextthread, nextthread,
2621         resultthreadlist>: New fields.
2622         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2623         (remote_get_threadlist, remote_threadlist_iterator): Use
2624         new fields.  Remove static variables.
2625
2626 2013-08-14  Tom Tromey  <tromey@redhat.com>
2627
2628         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2629         remote_watch_data_address>: New fields.
2630         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2631         (process_stop_reply, remote_wait_as)
2632         (remote_check_watch_resources, remote_stopped_data_address): Update.
2633
2634 2013-08-14  Tom Tromey  <tromey@redhat.com>
2635
2636         * remote.c (struct remote_state) <async_client_callback,
2637         async_client_context>: New fields.
2638         (async_client_callback, async_client_context): Remove.
2639         (remote_async_serial_handler, remote_async): Update.
2640
2641 2013-08-14  Tom Tromey  <tromey@redhat.com>
2642
2643         * remote.c (sizeof_pkt): Remove.
2644         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2645
2646 2013-08-14  Tom Tromey  <tromey@redhat.com>
2647
2648         * remote.c (struct remote_state) <use_threadinfo_query,
2649         use_threadextra_query>: New fields.
2650         (remote_threads_info, remote_threads_extra_info)
2651         (remote_open_1): Update.
2652
2653 2013-08-14  Tom Tromey  <tromey@redhat.com>
2654
2655         * remote.c (struct remote_state) <finished_object,
2656         finished_annex, finished_offset>: New fields.
2657         (remote_read_qxfer): Use remote_state fields; remove static
2658         variables.
2659
2660 2013-08-14  Tom Tromey  <tromey@redhat.com>
2661
2662         * remote.c (struct remote_state) <last_sent_step>:
2663         New field.
2664         (last_sent_step): Remove.
2665         (remote_resume, remote_wait_as): Update.
2666
2667 2013-08-14  Tom Tromey  <tromey@redhat.com>
2668
2669         * remote.c (struct remote_state) <last_sent_signal>:
2670         New field.
2671         (last_sent_signal): Remove.
2672         (new_remote_state, remote_resume, remote_wait_as): Update.
2673
2674 2013-08-14  Tom Tromey  <tromey@redhat.com>
2675
2676         * remote.c (struct remote_state) <last_program_signals_packet>:
2677         New field.
2678         (last_program_signals_packet): Remove.
2679         (remote_program_signals, remote_open_1): Update.
2680
2681 2013-08-14  Tom Tromey  <tromey@redhat.com>
2682
2683         * remote.c (struct remote_state) <last_pass_packet>:
2684         New field.
2685         (last_pass_packet): Remove.
2686         (remote_pass_signals, remote_open_1): Update.
2687
2688 2013-08-14  Tom Tromey  <tromey@redhat.com>
2689
2690         * remote.c (struct remote_state) <remote_traceframe_number>:
2691         New field.
2692         (remote_traceframe_number): Remove.
2693         (new_remote_state, remote_open_1, set_remote_traceframe)
2694         (remote_trace_find): Update.
2695
2696 2013-08-14  Tom Tromey  <tromey@redhat.com>
2697
2698         * remote.c (struct remote_state) <general_thread, continue_thread>:
2699         New fields.
2700         (general_thread, continue_thread): Remove.
2701         (record_currthread, set_thread, set_general_process)
2702         (remote_open_1, extended_remote_attach_1, remote_wait_as)
2703         (extended_remote_mourn_1): Update.
2704
2705 2013-08-14  Tom Tromey  <tromey@redhat.com>
2706
2707         * remote.c (struct remote_state) <remote_desc>: New field.
2708         (remote_desc): Remove.
2709         (remote_threads_info, remote_threads_extra_info, remote_close)
2710         (send_interrupt_sequence, remote_start_remote, remote_open_1)
2711         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2712         (remote_hostio_send_command, remote_file_put, remote_file_get)
2713         (remote_file_delete, remote_can_async_p, remote_is_async_p)
2714         (remote_async, remote_new_objfile, set_range_stepping): Update.
2715
2716 2013-08-14  Tom Tromey  <tromey@redhat.com>
2717
2718         * remote.c (remote_state): Now a pointer.
2719         (get_remote_state_raw): Update.
2720         (new_remote_state): New function.
2721         (_initialize_remote): Use new_remote_state.
2722
2723 2013-08-14  Tom Tromey  <tromey@redhat.com>
2724
2725         * remote.c (remote_protocol_features): Now const.
2726
2727 2013-08-14  Tom Tromey  <tromey@redhat.com>
2728
2729         * remote.c (crc32_table, crc32): Remove.
2730         (remote_verify_memory): Use xcrc32.
2731
2732 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
2733
2734         * value.h (create_internalvar_type_lazy): Adjust prototype
2735         declaration.
2736
2737 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
2738
2739         * common/format.c (parse_format_string): Don't allow '#' flag for
2740         pointer arguments in format string.
2741
2742 2013-08-13  Pierre Muller  <muller@sourceware.org>
2743
2744         * utils.c (init_page_info): Only call tgetnum function
2745         if rl_get_screen_size did not return useful values.
2746
2747 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
2748
2749         PR breakpoints/15117
2750         * linespec.c (linespec_parse_basic): Check for convenience
2751         variable or history value while parsing.
2752
2753 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2754
2755         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2756         AVR.
2757         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
2758         different signals between the generic Linux kernel implementation
2759         and AVR's.
2760         (avr_linux_gdb_signal_from_target): Delete.
2761         (avr_linux_gdb_signal_to_target): Delete.
2762         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2763
2764 2013-08-09  Doug Evans  <dje@google.com>
2765
2766         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2767         entries.
2768
2769 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2770
2771         * linux-tdep.c: Define enum with generic signal numbers.
2772         (linux_gdb_signal_from_target): New function.
2773         (linux_gdb_signal_to_target): Likewise.
2774         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2775         methods to the functions above.
2776         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2777         (linux_gdb_signal_to_target): Likewise.
2778         * alpha-linux-tdep.c: Define new enum with signals different
2779         from generic Linux kernel.
2780         (alpha_linux_gdb_signal_from_target): New function.
2781         (alpha_linux_gdb_signal_to_target): Likewise.
2782         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2783         with the functions mentioned above.
2784         * avr-tdep.c: Define enum with differences between Linux kernel
2785         and AVR signals.
2786         (avr_linux_gdb_signal_from_target): New function.
2787         (avr_linux_gdb_signal_to_target): Likewise.
2788         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2789         the functions mentioned above.
2790         * sparc-linux-tdep.c: Define enum with differences between SPARC
2791         and generic Linux kernel signal numbers.
2792         (sparc32_linux_gdb_signal_from_target): New function.
2793         (sparc32_linux_gdb_signal_to_target): Likewise.
2794         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2795         to the functions defined above.
2796         * xtensa-linux-tdep.c: Define enum with differences between
2797         Xtensa and Linux kernel generic signals.
2798         (xtensa_linux_gdb_signal_from_target): New function.
2799         (xtensa_linux_gdb_signal_to_target): Likewise.
2800         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2801         to the functions defined above.
2802         * mips-linux-tdep.c: Define enum with differences between
2803         signals in MIPS and Linux kernel generic ones.
2804         (mips_gdb_signal_to_target): New function.
2805         (mips_gdb_signal_from_target): Redefine to use new enum, handle
2806         only different signals from the Linux kernel generic.
2807         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2808         the functions defined above.
2809         * mips-linux-tdep.h (enum mips_signals): Remove.
2810
2811 2013-08-09  Pedro Alves  <palves@redhat.com>
2812
2813         * avr-tdep.c (XMALLOC): Delete macro.
2814         * cli/cli-dump.c (XMALLOC): Delete macro.
2815
2816 2013-08-09  Pedro Alves  <palves@redhat.com>
2817
2818         * cli/cli-dump.c: Don't include cli/cli-dump.h.
2819         (scan_expression_with_cleanup, scan_filename_with_cleanup)
2820         (fopen_with_cleanup, add_dump_command): Make static.
2821         * cli/cli-dump.h: Delete file.
2822         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2823         cli/cli-dump.h.
2824
2825 2013-08-09  Pedro Alves  <palves@redhat.com>
2826
2827         * tracepoint.c (tfile_start): Show tilde-expanded filename in
2828         error message.
2829
2830 2013-08-09  Pedro Alves  <palves@redhat.com>
2831
2832         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2833         error message.
2834
2835 2013-08-09  Pedro Alves  <palves@redhat.com>
2836
2837         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2838         (gcore_command): Use tilde_expand here, and when showing the
2839         filename to the user, show the expanded version.
2840
2841 2013-08-09  Yao Qi  <yao@codesourcery.com>
2842
2843         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2844         'entryval' is set.
2845
2846 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
2847
2848         * gcore.c (create_gcore_bfd): Use tilde_expand.
2849
2850 2013-08-08  Yao Qi  <yao@codesourcery.com>
2851
2852         * frame.h (read_frame_local): Declare.
2853         * mi/mi-cmd-stack.c (list_args_or_locals): Call
2854         read_frame_local.
2855         * stack.c (read_frame_local): New.
2856
2857 2013-08-08  Yao Qi  <yao@codesourcery.com>
2858
2859         * mi/mi-cmd-stack.c: Update comments to function
2860         list_args_or_locals.
2861
2862 2013-08-07  Tom Tromey  <tromey@redhat.com>
2863
2864         PR symtab/15028:
2865         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2866         (process_psymtab_comp_unit_reader): Use it.
2867         (process_psymtab_comp_unit): Update.  Add "pretend_language"
2868         argument.
2869         (dwarf2_build_psymtabs_hard): Update.
2870         (scan_partial_symbols): Pass CU's language to
2871         process_psymtab_comp_unit.
2872
2873 2013-08-07  Tom Tromey  <tromey@redhat.com>
2874
2875         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2876         (dwarf2_gdb_index_functions): Update.
2877         * psymtab.c (find_symbol_file_from_partial): Remove.
2878         (psym_functions): Update.
2879         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2880         Remove.
2881
2882 2013-08-07  Tom Tromey  <tromey@redhat.com>
2883
2884         * symfile.c (set_initial_language): Look up "main" symbol
2885         and use its language.
2886         * symtab.c (find_main_filename): Remove.
2887         * symtab.h (find_main_filename): Remove.
2888
2889 2013-08-07  Tom Tromey  <tromey@redhat.com>
2890
2891         * dwarf2read.c (recursively_compute_inclusions): Add
2892         "immediate_parent" argument.  Set symtab's "user" field
2893         if not set.
2894         (compute_symtab_includes): Update.
2895
2896 2013-08-07  Tom Tromey  <tromey@redhat.com>
2897
2898         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2899         when adding label symbols.
2900
2901 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2902             Ulrich Weigand  <uweigand@de.ibm.com>
2903
2904         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2905         * configure.host (powerpc64-*-aix*): Likewise.
2906
2907 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2908             Ulrich Weigand  <uweigand@de.ibm.com>
2909
2910         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2911         is defined.
2912         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2913         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2914         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2915         * configure.ac: Check for ptrace64.
2916         * configure, config.in: Regenerate.
2917
2918 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2919             Ulrich Weigand  <uweigand@de.ibm.com>
2920
2921         * aixthread.c: Call ptrace64 instead of ptracex if defined.
2922         Call ptrace64 instead of ptrace if defined.
2923         Add macro addr_ptr to take care of ptrace address argument.
2924         (pdc_read_regs): Likewise.
2925         (pdc_write_regs): Likewise.
2926         (aix_thread_resume): Likewise.
2927         (fetch_regs_kernel_thread): Likewise.
2928         (store_regs_kernel_thread): Likewise.
2929
2930 2013-08-07  Anton Blanchard  <anton@samba.org>
2931
2932         * MAINTAINERS: Add myself to Write After Approval.
2933
2934 2013-08-05  Tom Tromey  <tromey@redhat.com>
2935
2936         * aix-thread.c (_initialize_aix_thread): Use
2937         complete_target_initialization.
2938         * bsd-uthread.c (_initialize_bsd_uthread): Use
2939         complete_target_initialization.
2940         * dec-thread.c (_initialize_dec_thread): Use
2941         complete_target_initialization.
2942         * ravenscar-thread.c (_initialize_ravenscar): Use
2943         complete_target_initialization.
2944         * sol-thread.c (_initialize_sol_thread): Use
2945         complete_target_initialization.
2946         * spu-multiarch.c (_initialize_spu_multiarch): Use
2947         complete_target_initialization.
2948
2949 2013-08-05  Tom Tromey  <tromey@redhat.com>
2950
2951         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2952         * ada-lang.c (ada_lookup_simple_minsym): Return
2953         bound_minimal_symbol.
2954         * ada-lang.h (ada_lookup_simple_minsym): Update.
2955         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2956         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2957         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2958         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2959         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2960         * minsyms.c (msymbol_objfile): Remove.
2961         (lookup_minimal_symbol_internal): New function, from
2962         lookup_minimal_symbol.
2963         (lookup_minimal_symbol): Rewrite using
2964         lookup_minimal_symbol_internal.
2965         (lookup_bound_minimal_symbol): New function.
2966         * minsyms.h (msymbol_objfile): Remove.
2967         (lookup_bound_minimal_symbol): Declare.
2968         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2969         * parse.c (write_exp_msymbol): Change parameter to a
2970         bound_minimal_symbol.
2971         (write_dollar_variable): Use lookup_bound_minimal_symbol.
2972         * parser-defs.h (write_exp_msymbol): Update.
2973         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2974         * symfile.c (simple_read_overlay_table): Use
2975         lookup_bound_minimal_symbol.
2976         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2977         (search_symbols): Likewise.
2978         (print_msymbol_info): Take a bound_minimal_symbol argument.
2979         (symtab_symbol_info, rbreak_command): Update.
2980         * symtab.h (struct symbol_search) <msymbol>: Change type
2981         to bound_minimal_symbol.
2982         * valops.c (find_function_in_inferior): Use
2983         lookup_bound_minimal_symbol.
2984         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2985
2986 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2987
2988         Code cleanup.
2989         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2990         to ...
2991         (async_cleanup_sigint_signal_handler): ... this.
2992         (initialize_sigint_signal_handler): Remove declaration.
2993         (handle_remote_sigint): Rename the declaration to ...
2994         (async_handle_remote_sigint): ... this.
2995         (handle_remote_sigint_twice): Rename the declaration to ...
2996         (async_handle_remote_sigint_twice): ... this.
2997         (async_remote_interrupt, async_remote_interrupt_twice)
2998         (remote_interrupt): Remove the declarations.
2999         (remote_interrupt_twice): Rename the declaration ...
3000         (sync_remote_interrupt_twice): ... this.
3001         (sigint_remote_twice_token): Rename the variable to ...
3002         (async_sigint_remote_twice_token): ... this.
3003         (sigint_remote_token): Rename the variable to ...
3004         (async_sigint_remote_token): ... this.
3005         (initialize_sigint_signal_handler): Rename the function to ...
3006         (async_initialize_sigint_signal_handler): ... this.  Update the name
3007         inside.
3008         (handle_remote_sigint): Rename the function to ...
3009         (async_handle_remote_sigint): ... this.  Update the names inside.
3010         (handle_remote_sigint_twice): Rename the function to ...
3011         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
3012         (cleanup_sigint_signal_handler): Rename the function to ...
3013         (async_cleanup_sigint_signal_handler): ... this.
3014         (remote_interrupt): Rename the function to ...
3015         (sync_remote_interrupt): this.  Update the names inside.
3016         (remote_interrupt_twice): Rename the function to ...
3017         (sync_remote_interrupt_twice): this.  Update the names inside.
3018         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3019         (_initialize_remote): Update the names inside.
3020
3021 2013-08-02  Tom Tromey  <tromey@redhat.com>
3022
3023         PR symtab/15719:
3024         * breakpoint.c (update_watchpoint, watchpoint_check)
3025         (watch_command_1): Update.
3026         * eval.c (fetch_subexp_value): Add "preserve_errors"
3027         parameter.
3028         * ppc-linux-nat.c (check_condition): Update.
3029         * value.h (fetch_subexp_value): Update.
3030
3031 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
3032
3033         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3034         add_file_handler.
3035
3036 2013-08-01  Doug Evans  <dje@google.com>
3037
3038         PR symtab/15691
3039         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3040         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3041         Add assert of sig_entry->dwo_unit == NULL.
3042         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3043         had already been read.
3044         (read_signatured_type): Set per_cu.tu_read.
3045
3046         PR symtab/15695
3047         * valops.c (value_struct_elt): Add missing call to check_typedef.
3048         (value_find_oload_method_list): Ditto.
3049
3050         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3051         effectively, struct symbol_search **.
3052         (make_cleanup_free_search_symbols): Change arg to struct
3053         symbol_search **.  All callers updated.
3054         (compare_search_syms): Compare symtab file name and block as well.
3055         (search_symbols_equal): New function.
3056         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3057         New args new_head, new_tail.  Result is now void.  Remove dups after
3058         sorting the symbols.
3059         (search_symbols): Sort all found symbols once, after all have been
3060         found, and remove duplicates.  Simplify cleanup tracking of result.
3061         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3062
3063         Further workarounds for binutils/15021.
3064         * dwarf2read.c (recursively_compute_inclusions): Change type of result
3065         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
3066         Watch for duplicate symtabs coming from type units.
3067         (compute_symtab_includes): Update call to
3068         recursively_compute_inclusions. Build vector of included symtabs
3069         instead of per_cus.
3070         * symtab.h (symtab_ptr): New typedef.
3071         (DEF_VEC_P (symtab_ptr)): New VEC type.
3072         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
3073         instead.
3074
3075 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
3076
3077         * cli/cli-script.c (script_from_file): Remove use of
3078         error_pre_print.
3079         * main.c (captured_main): Remove use of error_pre_print and
3080         quit_pre_print.
3081         * utils.c (error_pre_print, quit_pre_print): Remove.
3082         * utils.h (error_pre_print, quit_pre_print): Likewise.
3083
3084 2013-08-01  Yao Qi  <yao@codesourcery.com>
3085
3086         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3087         with mi_getopt.
3088         (mi_cmd_stack_list_variables): Likewise.
3089
3090 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3091
3092         * exceptions.c (deprecated_throw_reason): Remove.
3093         * exceptions.h (deprecated_throw_reason): Remove.
3094
3095 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3096
3097         * remote-mips.c (mips_error): Replace use of
3098         deprecated_throw_reason with throw_verror.  Use the error message
3099         passed to mips_error as the error message for throw_verror.
3100
3101 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3102
3103         * monitor.c (monitor_interrupt_query): Replace use of
3104         deprecated_throw_reason with quit.
3105         * nto-procfs.c (interrupt_query): Likewise.
3106         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3107         * remote-mips.c (mips_kill): Likewise.
3108         * remote.c (interrupt_query): Likewise.
3109
3110 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
3111
3112         * utils.c (internal_verror): Replace use of deprecated_throw_reason
3113         with call to fatal.
3114
3115 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
3116             Yao Qi  <yao@codesourcery.com>
3117
3118         * tracepoint.c (trace_dump_command): Select the current frame.
3119
3120 2013-07-30  Doug Evans  <dje@google.com>
3121
3122         * dwarf2read.c (process_queue): Add type signature to debug output.
3123
3124 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3125
3126         * value.c (value_fetch_lazy): Mark optimized out values as such
3127         rather than raising an error.
3128
3129 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
3130
3131         * value.c (value_fetch_lazy): Ensure parent value is not lazy
3132         before checking which bits of the parent, not the child, value are
3133         valid.
3134
3135 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
3136
3137         PR gdb/15715
3138         * top.c: Include "filenames.h".
3139         (set_history_filename): New function.
3140         (init_main): Install it as set hook of the "set history filename"
3141         command.
3142
3143 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3144
3145         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3146         attribute parameter.
3147         (dwarf2_const_value_data): Constify struct attribute parameter.
3148         (dwarf2_const_value): Constify struct attribute parameter.
3149         (dwarf2_const_value_attr): Constify struct attribute parameter.
3150         (lookup_die_type): Constify struct attribute parameter.
3151         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3152         (follow_die_ref_or_sig): Constify struct attribute parameter.
3153         (follow_die_ref): Constify struct attribute parameter.
3154         (follow_die_sig): Constify struct attribute parameter.
3155         (get_DW_AT_signature_type): Constify struct attribute parameter.
3156         (get_type_unit_group): Constify struct attribute parameter.
3157         (fill_in_loclist_baton): Constify struct attribute parameter.
3158         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3159         (type_unit_group): Constify struct attribute parameter.
3160
3161 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3162
3163         * dwarf2read.c (attr_form_is_block): Make argument const.
3164         (attr_form_is_section_offset): Make argument const.
3165         (attr_form_is_constant): Make argument const.
3166         (attr_form_is_ref): Make argument const.
3167
3168 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3169
3170         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3171         All uses updated.
3172         (attr_form_is_ref): Moved below attr_form_is_constant.
3173
3174 2013-07-29  Doug Evans  <dje@google.com>
3175
3176         * main.c (captured_command_loop): Tweak comment.
3177
3178         * target.c (target_async_permitted_1): Fix comment.
3179
3180         * symtab.c (iterate_over_some_symtabs): Add comment.
3181
3182         * symtab.c (iterate_over_some_symtabs): Fix indentation.
3183
3184 2013-07-27  Yao Qi  <yao@codesourcery.com>
3185
3186         * NEWS: Mention that GDBserver now supports hardware
3187         watchpoints on the MIPS GNU/Linux target.
3188
3189 2013-07-27  Yao Qi  <yao@codesourcery.com>
3190
3191         * Makefile.in (HFILES_NO_SRCDIR): Add
3192         common/mips-linux-watch.h.
3193         (mips-linux-watch.o): New rule.
3194         * common/mips-linux-watch.c: New.
3195         * common/mips-linux-watch.h: New.
3196         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3197         * mips-linux-nat.c: Include mips-linux-watch.h.
3198         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3199         to common/mips-linux-watch.h.
3200         (MAX_DEBUG_REGISTER): Likewise.
3201         (enum pt_watch_style): Likewise.
3202         (struct mips32_watch_regs): Likewise.
3203         (struct mips64_watch_regs): Likewise.
3204         (struct pt_watch_regs): Likewise.
3205         (struct mips_watchpoint): Likewise.
3206         (mips_linux_watch_get_irw_mask): Move to
3207         common/mips-linux-watch.c.
3208         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3209         (mips_linux_watch_get_watchlo): Likewise.
3210         (mips_linux_watch_set_watchlo): Likewise.
3211         (mips_linux_watch_get_watchhi): Likewise.
3212         (mips_linux_watch_set_watchhi): Likewise.
3213         (mips_linux_read_watch_registers): Likewise.
3214         (mips_linux_watch_type_to_irw): Likewise.
3215         (mips_linux_stopped_data_address, fill_mask): Likewise.
3216         (mips_linux_watch_try_one_watch): Likewise.
3217         (mips_linux_watch_populate_regs): Likewise.
3218
3219 2013-07-27  Yao Qi  <yao@codesourcery.com>
3220
3221         * mips-linux-nat.c (get_irw_mask): Rename to ...
3222         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
3223         'set' to 'n'.  Update function comment.  All callers changed.
3224         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
3225         function comment.  All callers changed.
3226         (get_num_valid): Rename to ...
3227         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
3228         'set' to 'n'.  Update function comment.  All callers changed.
3229         (get_watchlo): Rename to ...
3230         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
3231         'set' to 'n'.  Update function comment.  All callers changed.
3232         (set_watchlo): Rename to ...
3233         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
3234         'set' to 'n'.  Update function comment.  All callers changed.
3235         (get_watchhi): Rename to ...
3236         (mips_linux_watch_get_watchhi): ... this.  Update function
3237         comment.  All callers changed.
3238         (set_watchhi): Rename to ...
3239         (mips_linux_watch_set_watchhi): ... this.  Update function
3240         comment.  All callers changed.
3241         (mips_linux_read_watch_registers): Update function comment.
3242         Add new parameters 'lwpid', 'watch_readback', and
3243         'watch_readback_valid'.  Update.
3244         (type_to_irw): Rename to ...
3245         (mips_linux_watch_type_to_irw): ... this.  Update function
3246         comment.  All callers changed.
3247         (fill_mask): Update function comment.
3248         (try_one_watch): Rename to ...
3249         (mips_linux_watch_try_one_watch): ... this.  Change the type
3250         of parameter 'irw' from 'unsigned' to 'uint32_t'.
3251         (populate_regs_from_watches): Rename to ...
3252         (mips_linux_watch_populate_regs): ... this.  Add parameter
3253         'current_watches'.  All callers changed.
3254
3255 2013-07-27  Yao Qi  <yao@codesourcery.com>
3256
3257         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3258         the code.
3259         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3260         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3261         (struct pt_watch_regs): Likewise.
3262         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3263         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3264         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3265         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3266         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3267
3268 2013-07-27  Yao Qi  <yao@codesourcery.com>
3269
3270         * breakpoint.h: Include break-common.h.
3271         (enum target_hw_bp_type): Move to ...
3272         * common/break-common.h: ... here.  New.
3273
3274 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
3275
3276         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3277         process group regardless of having tty on stdin.
3278
3279 2013-07-25  Doug Evans  <dje@google.com>
3280
3281         * linux-fork.h (detach_fork): Delete.
3282
3283 2013-07-25  Tom Tromey  <tromey@redhat.com>
3284
3285         PR remote/15256, PR remote/15266:
3286         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3287         * monitor.c (monitor_detach): Use unpush_target.
3288         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3289         * remote-mips.c (mips_detach): Use unpush_target.  Don't
3290         call mips_close.
3291         * remote-sim.c (gdbsim_detach): Use unpush_target.
3292         * target.c (pop_target): Remove.
3293         (pop_all_targets_above): Don't call target_close.
3294         (target_close): Assert that the target is unpushed.
3295         * target.h (pop_target): Don't declare.
3296         * tracepoint.c (tfile_open): Use unpush_target.
3297
3298 2013-07-25  Tom Tromey  <tromey@redhat.com>
3299
3300         * linux-thread-db.c (init_thread_db_ops): Call
3301         complete_target_initialization.
3302         (_initialize_thread_db): Don't call add_target.
3303         * target.c (complete_target_initialization): New function.
3304         (add_target_with_completer): Call it.
3305         * target.h (complete_target_initialization): Declare.
3306
3307 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3308
3309         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3310         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3311         (HPPANBSD_SIZEOF_GREGS): New define.
3312         (hppaobsd_supply_gregset): Handle additional registers.
3313         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3314         we provide more registers now.
3315         (hppabsd_supply_gregset): Supply additional registers.
3316         (hppabsd_collect_gregset): Collect additional registers.
3317
3318 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3319
3320         * hppabsd-tdep.c: Include "dwarf2-frame.h".
3321         (hppabsd_dwarf2_frame_init_reg): New function.
3322         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3323
3324 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3325
3326         * mi/mi-main.c (output_register): Make MI 'r' format use standard
3327         'z' format code.  Remove error for optimized out values, standard
3328         code will handle these fine.
3329
3330 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3331
3332         * NEWS: Mention new 'z' formatter.
3333         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3334         (_initialize_printcmd): Mention 'z' formatter in help text of the
3335         'x' command.
3336
3337 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
3338
3339         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3340         formatting.
3341
3342 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
3343
3344         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3345         interface can evaluate arguments.  Fallback to the old mode if it
3346         cannot.
3347         (create_exception_master_breakpoint): Likewise.
3348         * elfread.c (elf_can_evaluate_probe_arguments): New function.
3349         (struct sym_probe_fns elf_probe_fns): Export function above to the
3350         probe interface.
3351         * probe.c (can_evaluate_probe_arguments): New function.
3352         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3353         function pointer.
3354         (can_evaluate_probe_arguments): New function prototype.
3355         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3356         probe interface can evaluate arguments.  Fallback to the old mode
3357         if it cannot.
3358         * stap-probe.c (stap_get_probe_argument_count): Check if probe
3359         interface can evaluate arguments.  Warning the user if it cannot.
3360         (stap_can_evaluate_probe_arguments): New function.
3361         (struct probe_ops stap_probe_ops): Export function above to the
3362         probe interface.
3363         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3364         New function pointer.
3365
3366 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
3367
3368         * Makefile.in (SFILES): Add common/target-common.c.
3369         Add common/target-common.h to headers.
3370         (COMMON_OBS): Add target-common.o.
3371         (target-common.o): New target.
3372         * linux-nat.h (resume_kind): Move to common/target-common.h.
3373         * target.c (target_waitstatus_to_string): Move to
3374         common/target-common.c.
3375         * target.h: Include target-common.h.
3376         (target_waitkind): Move to common/target-common.h.
3377         (target_waitstatus): Likewise.
3378         (TARGET_WNOHANG): Likewise.
3379         * common/target-common.c: New file.
3380         * common/target-common.h: New file.
3381
3382 2013-07-24  Doug Evans  <dje@google.com>
3383
3384         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3385         a warning.
3386
3387 2013-07-23  Yao Qi  <yao@codesourcery.com>
3388
3389         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3390         parameter 'gdbarch'.
3391         (i386_stack_tramp_frame_sniffer): Caller update.
3392         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3393         parameter 'gdbarch' and 'target'.
3394         (i386_linux_core_read_description): Caller update.
3395         * amd64-linux-tdep.c (amd64_linux_core_read_description):
3396         Likewise.
3397         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3398         declaration.
3399
3400 2013-07-23  Tom Tromey  <tromey@redhat.com>
3401
3402         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3403         2013-07-22.
3404
3405 2013-07-22  Doug Evans  <dje@google.com>
3406
3407         * exec.h (remove_target_sections): Delete arg abfd.
3408         * exec.c (exec_close): Update call to remove_target_sections.
3409         (remove_target_sections): Delete arg abfd.
3410         * solib.c (update_solib_list): Ditto.
3411         (reload_shared_libraries_1): Ditto.
3412         (clear_solib): Ditto, and unconditionally call remove_target_sections.
3413         * target.h (struct target_section): Rename key to owner.
3414         All uses updated.
3415
3416 2013-07-22  Tom Tromey  <tromey@redhat.com>
3417
3418         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3419
3420 2013-07-22  Tom Tromey  <tromey@redhat.com>
3421
3422         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3423         Simplify cleanup handling.
3424
3425 2013-07-22  Tom Tromey  <tromey@redhat.com>
3426
3427         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3428         on all return paths.
3429
3430 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3431
3432         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3433         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3434         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3435
3436 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
3437
3438         * top.c (print_gdb_version): Add help, apropos description and
3439         url to online documentation.
3440
3441 2013-07-19  Hui Zhu  <hui@codesourcery.com>
3442
3443         PR gdb/15692
3444         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3445
3446 2013-07-19  Yao Qi  <yao@codesourcery.com>
3447
3448         * target.c (update_current_target): Change the default action
3449         of 'to_traceframe_info' from tcomplain to return_zero.
3450         * target.h (struct target_ops) <to_traceframe_info>: Add more
3451         comments.
3452         * valops.c (read_value_memory): Call
3453         traceframe_available_memory unconditionally.
3454
3455 2013-07-18  Yao Qi  <yao@codesourcery.com>
3456
3457         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3458         if the name is prefixed by "__imp_" or "_imp_", look for minimal
3459         symbol without prefix.  If found, set its type to
3460         'mst_solib_trampoline'.
3461
3462 2013-07-17  Doug Evans  <dje@google.com>
3463
3464         * NEWS: Mention "set print raw frame-arguments".
3465         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3466         * stack.c (print_raw_frame_arguments): New static global.
3467         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3468         (_initialize_stack): New command "set/show print raw frame-arguments".
3469         * valprint.c (setprintrawlist, showprintrawlist): New globals.
3470         (set_print_raw, show_print_raw): New functions.
3471         (_initialize_valprint): New prefix command "set/show print raw".
3472         * valprint.h (value_print_options): Improve comments.
3473
3474         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3475         of all *list variables.
3476
3477         * gdbcmd.h (togglelist): Delete.
3478         * cli/cli-cmds.c (togglelist): Delete.
3479         (init_cmd_lists): Update.
3480         * cli/cli-cmds.h (togglelist): Delete.
3481
3482 2013-07-17  Tom Tromey  <tromey@redhat.com>
3483
3484         * dwarf2read.c (dwarf2_per_objfile_free): Clear
3485         dwarf2_per_objfile.
3486
3487 2013-07-16  Doug Evans  <dje@google.com>
3488
3489         * nto-tdep.c (nto_relocate_section_addresses): Update,
3490         target_section.bfd deleted.
3491         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3492         * s390-tdep.c (s390_load): Ditto.
3493         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3494
3495 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
3496
3497         * common/format.c (parse_format_string): Add checks for NULL
3498         character before calling strchr.
3499
3500 2013-07-16  Doug Evans  <dje@google.com>
3501
3502         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3503         temp_pathname argument.
3504         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3505         when opening the file fails.
3506
3507         * target.h (struct target_section): Delete member bfd.
3508         All users updated to use the_bfd_section->owner instead.
3509         * exec.c (add_to_section_table): Assert bfd is expected value.
3510         Remove initialization of target_section.bfd.
3511         (remove_target_sections): Update.
3512         (section_table_available_memory): Update.
3513         (section_table_xfer_memory_partial): Update.
3514         (print_section_info): Update.
3515         (exec_set_section_address): Update.
3516         * record-full.c (record_full_core_xfer_partial): Update.
3517         * solib-svr4.c (svr4_relocate_section_addresses): Update.
3518         * solib-target.c (solib_target_relocate_section_addresses): Update.
3519         * symfile.c (build_section_addr_info_from_section_table): Update.
3520         * target.c (memory_xfer_live_readonly_partial): Update.
3521         (memory_xfer_partial_1): Update.
3522
3523 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3524
3525         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3526         now available for embedded (BookE) and server (BookS) processors,
3527         correct mentions of 'booke' and adjust comments accordingly in order to
3528         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3529         (have_ptrace_booke_interface): Rename function and variable
3530         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3531         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3532         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3533         'hwdebug_point_cmp'. Update all uses.
3534         (booke_find_thread_points_by_tid): Rename function
3535         'booke_find_thread_points_by_tid' to
3536         'hwdebug_find_thread_points_by_tid'. Update all uses.
3537         (booke_insert_point): Rename function 'booke_insert_point' to
3538         'hwdebug_insert_point'. Update all uses.
3539         (booke_remove_point): Rename function 'booke_remove_point' to
3540         'hwdebug_remove_point'. Update all uses.
3541
3542 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
3543
3544         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3545         numbers with enum values.
3546
3547 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
3548
3549         PR threads/13217
3550         * thread.c (thread_apply_all_command): Check for valid threads
3551         and thread count.
3552         (thread_array_cleanup): New struct.
3553         (set_thread_refcount): New function.
3554
3555 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
3556
3557         * infcmd.c (default_print_one_register_info): Reuse function
3558         print_hex_chars.
3559
3560 2013-07-10  Tom Tromey  <tromey@redhat.com>
3561
3562         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3563         (ada-exp.o): New target.
3564
3565 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3566
3567         * mt-tdep.c (mt_registers_info): Call
3568         get_no_prettyformat_print_options instead of
3569         get_raw_print_options (regression by last patch from Doug
3570         Evans).
3571
3572 2013-07-09  Pedro Alves  <palves@redhat.com>
3573
3574         Checked in by Joel Brobecker  <brobecker@adacore.com>.
3575         * ada-lang.c (coerce_unspec_val_to_type): Use
3576         value_optimized_out_const.
3577         * value.c (value_optimized_out_const): New function.
3578         * value.h (value_optimized_out_const): New declaration.
3579
3580 2013-07-09  Doug Evans  <dje@google.com>
3581
3582         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3583         Enum values rename as well.  All uses updated.
3584         * valprint.h (value_print_options): Rename member pretty to
3585         pretty format.  Rename member prettyprint_arrays to
3586         prettyformat_arrays.  Rename member prettyprint_structs to
3587         prettyformat_structs.  All uses updated.
3588         (get_no_prettyformat_print_options): Renamed from
3589         get_raw_print_options.
3590         * valprint.c (get_no_prettyformat_print_options): Renamed from
3591         get_raw_print_options.  All callers updated.
3592         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3593         All callers updated.
3594         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3595         All callers updated.
3596         (_initialize_valprint): Improve help text for "set print pretty" and
3597         "set print arrays".
3598
3599 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
3600
3601         * value.c (value_bits_valid): Revert previous change, and change
3602         by Pedro on 2013-07-04, due to regressions in
3603         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3604
3605 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
3606             Pedro Alves  <palves@redhat.com>
3607
3608         * value.c (value_bits_valid): If the value is not lval_computed
3609         or has no check validity handler then the answer is the
3610         optimized_out flag, otherwise defer to the handler.
3611
3612 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
3613
3614         * top.c (print_gdb_configuration): Explain in output of
3615         --configuration what does "relocatable" mean.
3616
3617         * main.c (print_gdb_help): Regroup options in the --help text.
3618         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3619         the relevant discussions.
3620
3621 2013-07-06  Yao Qi  <yao@codesourcery.com>
3622
3623         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3624         Remove parameter 'lsal'.
3625         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3626         to inner block.  Caller update.
3627         (base_breakpoint_create_breakpoints_sal): Update.
3628         (bkpt_create_breakpoints_sal): Likewise.
3629         (tracepoint_create_breakpoints_sal): Likewise.
3630         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3631         element 0 of vector 'canonical->sals'.
3632
3633 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
3634
3635         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3636         register number instead of the pseudo register one.
3637         (rs6000_dwarf2_reg_to_regnum): Likewise.
3638
3639 2013-07-04  Pedro Alves  <palves@redhat.com>
3640
3641         * findvar.c (value_of_register): Use allocate_optimized_out_value
3642         if the register has been optimized out, instead of
3643         set_value_optimized_out.
3644         * frame-unwind.c (frame_unwind_got_optimized): Use
3645         allocate_optimized_out_value.
3646
3647 2013-07-04  Pedro Alves  <palves@redhat.com>
3648
3649         * value.c (value_bits_valid): If the value is not lval_computed,
3650         or doesn't have a check_validity hook, assume the value is entirely
3651         valid.
3652
3653 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3654
3655         * stack.c (read_frame_arg): No longer fetch lazy values.
3656         * value.c (value_optimized_out): If the value is not already
3657         marked optimized out, and is lazy then fetch it.
3658         (value_primitive_field): Move optimized out check to later in the
3659         function, after we have loaded any lazy values.
3660         (value_fetch_lazy): Use optimized out flag directly rather than
3661         calling optimized_out method.
3662
3663 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3664
3665         * valops.c: Don't include "user-regs.h".
3666         (value_fetch_lazy): Moved to value.c.
3667         * value.c: Include "user-regs.h".
3668         (value_fetch_lazy): Moved from valops.c.
3669
3670 2013-07-04  Yao Qi  <yao@codesourcery.com>
3671
3672         Revert:
3673         2013-06-27  Yao Qi  <yao@codesourcery.com>
3674
3675         * common/create-version.sh: Update comments.  Handle the case
3676         that TARGET_ALIAS is empty.
3677
3678 2013-07-03  Pedro Alves  <palves@redhat.com>
3679
3680         * Makefile.in (config.status): Depend on development.sh.
3681         (aclocal_m4_deps): Add libmcheck.m4.
3682         * acinclude.m4: Include libmcheck.m4.
3683         * configure.ac: Source development.sh instead of setting
3684         'development' here.  --enable-libmcheck/--disable-libmcheck code
3685         factored out to GDB_AC_LIBMCHECK.  Run it.
3686         * development.sh: New file.
3687         * libmcheck.m4: New file.
3688         * configure: Regenerate.
3689
3690 2013-07-02  Tom Tromey  <tromey@redhat.com>
3691
3692         * contrib/ari/update-web-ari.sh: Update for version.in change.
3693
3694 2013-07-02  Tom Tromey  <tromey@redhat.com>
3695
3696         * common/ptid.h: Comment fixes.
3697
3698 2013-07-01  Tom Tromey  <tromey@redhat.com>
3699
3700         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3701         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
3702         (dwarf2_read_index, create_all_comp_units): Update.
3703
3704 2013-07-01  Tom Tromey  <tromey@redhat.com>
3705
3706         * configure.ac (build_warnings): Add -Wold-style-definition.
3707         * configure: Rebuild.
3708         * machoread.c (_initialize_machoread): Use "(void)".
3709         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3710         use "(void)".
3711
3712 2013-07-01  Tom Tromey  <tromey@redhat.com>
3713
3714         * configure.ac (build_warnings): Add -Wold-style-declaration.
3715         * configure: Rebuild.
3716         * dsrec.c (make_srec): Use "static const", not "const static".
3717         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3718         not "const static".
3719         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3720         Use "static const", not "const static".
3721         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3722         not "const static".
3723         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3724         not "const static".
3725         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3726         not "const static".
3727         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3728         not "const static".
3729         (v850_dbtrap_breakpoint_from_pc): Likewise.
3730         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3731         not "const static".
3732
3733 2013-07-01  Tom Tromey  <tromey@redhat.com>
3734
3735         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3736         * configure: Rebuild.
3737
3738 2013-07-01  Pedro Alves  <palves@redhat.com>
3739
3740         * defs.h: Include "pathmax.h".
3741         * utils.c: Don't include sys/param.h.
3742         (gdb_realpath): Remove code that checks for MAXPATHLEN.
3743         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3744         instead of MAXPATHLEN.
3745         * solib-sunos.c: Don't include sys/param.h.
3746         * xcoffread.c: Don't include sys/param.h.
3747         * bsd-kvm.c: Don't include sys/param.h.
3748         * darwin-nat.c: Don't include sys/param.h.
3749         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3750         * darwin-nat-info.c: Don't include sys/param.h.
3751         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3752         MAXPATHLEN.
3753         * i386obsd-nat.c: Don't include sys/param.h.
3754         * inf-child.c: Don't include sys/param.h.
3755         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3756         * linux-fork.c: Don't include sys/param.h.
3757         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3758         * linux-nat.c: Don't include sys/param.h.
3759         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3760         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3761         * m68klinux-nat.c: Don't include sys/param.h.
3762         * nbsd-nat.c: Don't include sys/param.h.
3763         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3764         * ppc-linux-nat.c: Don't include sys/param.h.
3765         * rs6000-nat.c: Don't include sys/param.h.
3766         * spu-linux-nat.c. Don't include sys/param.h.
3767         * windows-nat.c: Don't include sys/param.h.
3768         * xtensa-linux-nat.c: Don't include sys/param.h.
3769         * config/i386/nm-fbsd.h: Don't include sys/param.h.
3770
3771 2013-07-01  Pedro Alves  <palves@redhat.com>
3772
3773         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3774         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3775         * gnulib/aclocal.m4: Regenerate.
3776         * gnulib/config.in: Regenerate.
3777         * gnulib/configure: Regenerate.
3778         * gnulib/import/pathmax.h: New file.
3779         * gnulib/import/Makefile.am: Regenerate.
3780         * gnulib/import/Makefile.in: Regenerate.
3781         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3782         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3783         * gnulib/import/m4/pathmax.m4: New file.
3784
3785 2013-07-01  Pedro Alves  <palves@redhat.com>
3786
3787         * configure.ac (GDBINIT): Define, depending on host.
3788         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3789         * top.c (PATH_MAX): Delete fallback definition.
3790         (GDBINIT_FILENAME): Delete.
3791         (gdbinit): Reimplement as const char array set to the GDBINIT
3792         string constant.
3793         * top.h (gdbinit): Make const.
3794         * configure, config.in: Regenerate.
3795
3796 2013-07-01  Pedro Alves  <palves@redhat.com>
3797
3798         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3799         * cli/cli-cmds.h (source_script): Likewise.
3800         * exceptions.c (catch_command_errors_const): New function.
3801         * exceptions.h (catch_command_errors_const): Declare.
3802         * main.c (get_init_files): Make parameters const, and adjust.
3803         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3804         'local_gdbinit' locals const.  Adjust to use
3805         catch_command_errors_const.
3806         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3807         'local_gdbinit' locals const.
3808
3809 2013-07-01  Pedro Alves  <palves@redhat.com>
3810
3811         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3812         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3813         * tracepoint.c: Don't check HAVE_UNISTD_H before including
3814         <unistd.h>.
3815
3816 2013-07-01  Pedro Alves  <palves@redhat.com>
3817
3818         Import the "unistd" gnulib module.
3819         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3820         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3821         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3822         import/m4/unistd_h.m4.
3823         * gnulib/aclocal.m4: Renenerate.
3824         * gnulib/config.in: Renenerate.
3825         * gnulib/configure: Renenerate.
3826         * gnulib/import/Makefile.am: Renenerate.
3827         * gnulib/import/Makefile.in: Renenerate.
3828         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3829         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3830         * gnulib/import/m4/off_t.m4: New file.
3831         * gnulib/import/m4/ssize_t.m4: New file.
3832         * gnulib/import/m4/sys_types_h.m4: New file.
3833         * gnulib/import/m4/unistd_h.m4: New file.
3834         * gnulib/import/sys_types.in.h: New file.
3835         * gnulib/import/unistd.c: New file.
3836         * gnulib/import/unistd.in.h: New file.
3837
3838 2013-07-01  Pedro Alves  <palves@redhat.com>
3839
3840         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3841         defined instead of checking HAVE_UNISTD_H.
3842
3843 2013-07-01  Pedro Alves  <palves@redhat.com>
3844
3845         Reimport gnulib from scratch.
3846         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3847         import/m4/onceonly.m4.
3848         * gnulib/aclocal.m4: Renegerate.
3849         * gnulib/config.in: Renegerate.
3850         * gnulib/configure: Renegerate.
3851         * gnulib/import/Makefile.in: Renegerate.
3852         * gnulib/import/extra/update-copyright: Renegerate.
3853         * gnulib/import/m4/onceonly.m4: Delete.
3854
3855 2013-07-01  Pedro Alves  <palves@redhat.com>
3856
3857         * tui/tui-regs.c (pagination_enabled): Delete declaration.
3858
3859 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3860
3861         Code cleanup.
3862         * remote.c (async_remote_interrupt_twice): Make it static.
3863         * remote.h (async_remote_interrupt_twice): Remove the declaration.
3864
3865 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3866
3867         * ia64-linux-tdep.c: Include <ctype.h>.
3868         (ia64_linux_stap_is_single_operand): New function.
3869         (ia64_linux_init_abi): Initialize SystemTap related attributes.
3870
3871 2013-06-28  Tom Tromey  <tromey@redhat.com>
3872
3873         * Makefile.in (version.c): Use version.in, not
3874         common/version.in.
3875         * common/create-version.sh: Likewise.
3876         * common/version.in: Move...
3877         * version.in: ...here.
3878
3879 2013-06-28  Pedro Alves  <palves@redhat.com>
3880
3881         * infrun.c (set_observer_mode): Don't declare pagination_enabled
3882         here.
3883         * utils.h (pagination_enabled): Declare.
3884
3885 2013-06-28  Pedro Alves  <palves@redhat.com>
3886
3887         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3888         Move higher up in file.
3889
3890 2013-06-28  Tom Tromey  <tromey@redhat.com>
3891
3892         * tracepoint.c (deprecated_readline_begin_hook)
3893         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3894         declare.
3895
3896 2013-06-28  Pedro Alves  <palves@redhat.com>
3897
3898         PR tui/14880
3899         * tui/tui-regs.c (tui_get_register): Fetch value contents before
3900         checking if they're available.
3901         * value.c (value_available_contents_eq): Change comment.
3902         * value.h (value_available_contents_eq): Expand comment.
3903
3904 2013-06-27  Tom Tromey  <tromey@redhat.com>
3905
3906         * target.c (find_run_target): Remove.
3907         * target.h (find_run_target): Remove.
3908
3909 2013-06-27  Tom Tromey  <tromey@redhat.com>
3910
3911         * corelow.c (core_gdbarch): Now static.
3912
3913 2013-06-27  Tom Tromey  <tromey@redhat.com>
3914
3915         * target.c (target_struct_index): Remove.
3916
3917 2013-06-27  Pedro Alves  <palves@redhat.com>
3918
3919         * infrun.c: Remove comment describing the 'stepping over runtime
3920         loader dynamic symbol resolution code' mechanism; moved to
3921         gdbint.texinfo.
3922
3923 2013-06-27  Pedro Alves  <palves@redhat.com>
3924
3925         * exceptions.c (catch_command_errors): Remove spurious space.
3926         * exceptions.h (catch_command_errors): Second parameter is "arg",
3927         not "command".
3928
3929 2013-06-27  Yao Qi  <yao@codesourcery.com>
3930
3931         * common/create-version.sh: Update comments.  Handle the case
3932         that TARGET_ALIAS is empty.
3933
3934 2013-06-26  Pedro Alves  <palves@redhat.com>
3935
3936         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3937         comment.
3938
3939 2013-06-26  Pedro Alves  <palves@redhat.com>
3940
3941         * infrun.c: Update comments on stepping over runtime loader
3942         dynamic symbol resolution code.
3943
3944 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
3945
3946         * ax-gdb.h (union exp_element): Forward declare.
3947         * parser-defs.h: Include expression.h.
3948
3949 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3950
3951         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3952
3953 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
3954
3955         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3956
3957 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
3958
3959         Fix trace-status to output proper start-time and stop-time.
3960         * tracepoint.c (trace_status_command): Fix type of printf arg to
3961         prevent improper type conversion.
3962         (trace_status_mi): Likewise.
3963
3964 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3965
3966         * mips-tdep.c (mips_next_pc): Fix a typo.
3967
3968 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3969
3970         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3971
3972 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3973             Yao Qi  <yao@codesourcery.com>
3974
3975         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3976         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3977         * mi/mi-main.c (print_variable_or_computed): New function.
3978         (mi_cmd_trace_frame_collected): New function.
3979         * tracepoint.c (find_trace_state_variable_by_number): New.
3980         (struct traceframe_info): Move to tracepoint.h
3981         (struct collection_list): Likewise.
3982         (do_collect_symbol): Include locals and arguments in the
3983         collected variables list.
3984         (clear_collection_list): Clear wholly collected variables list
3985         and computed variables list.
3986         (append_exp): New function.
3987         (encode_actions_1): Include variables in the wholly
3988         collected variables list.  Include memory ranges and
3989         full-fledged expressions in the computed expressions list.
3990         (encode_actions): Move some code to ...
3991         Return the cleanup chain.
3992         (encode_actions_rsp): ... here.  New function.
3993         (get_traceframe_location, get_traceframe_info): Remove static.
3994         * tracepoint.h (struct memrange): Moved from tracepoint.c.
3995         (struct collection_list): Moved from tracepoint.c.  Add two
3996         new fields 'wholly_collected' and 'computed'.
3997         (find_trace_state_variable_by_number): Declare.
3998         (encode_actions): Adjust declaration.
3999         (encode_actions_rsp): Declare.
4000         (get_traceframe_info, get_traceframe_location): Declare.
4001
4002         * NEWS: Mention new MI command -trace-frame-collected.
4003
4004 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4005             Yao Qi  <yao@codesourcery.com>
4006
4007         * ctf.c (ctf_traceframe_info): Push trace state variables
4008         present in the trace data into the traceframe info object.
4009         * breakpoint.c (DEF_VEC_I): Remove.
4010         * common/filestuff.c (DEF_VEC_I): Likewise.
4011         * dwarf2loc.c (DEF_VEC_I): Likewise.
4012         * mi/mi-main.c (DEF_VEC_I): Likewise.
4013         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4014         * features/traceframe-info.dtd: Add tvar element and its
4015         attributes.
4016         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4017         (build_traceframe_info): Push trace state variables present in
4018         the trace data into the traceframe info object.
4019         (traceframe_info_start_tvar): New function.
4020         (tvar_attributes): New.
4021         (traceframe_info_children): Add "tvar" element.
4022         * tracepoint.h (struct traceframe_info) <tvars>: New field.
4023
4024         * NEWS: Mention the change in GDB and GDBserver.
4025
4026 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4027             Yao Qi  <yao@codesourcery.com>
4028
4029         * tracepoint.c (trace_dump_command): Move code to ...
4030         (get_traceframe_location): ... here.  New.
4031
4032 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4033             Yao Qi  <yao@codesourcery.com>
4034
4035         * tracepoint.c (trace_dump_command): GDB emits an error
4036          instead of a warning when a traceframe is not selected.
4037
4038 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
4039             Yao Qi  <yao@codesourcery.com>
4040
4041         * tracepoint.c (tracepoint_list, stepping_list): Remove.
4042         (clear_collection_list): Free fields 'aexpre_list' and 'list'
4043         in collection_list.
4044         (do_clear_collection_list, init_collection_list): New.
4045         (encode_actions): Add local variables 'tracepoint_list' and
4046         'stepping_list'.  Call init_collection_list and make cleanup
4047         which calls do_clear_collection_list.  Don't call
4048         clear_collection_list.
4049         (_initialize_tracepoint): Delete references to
4050         'tracepoint_list' and 'stepping_list'.
4051
4052 2013-06-25  Tom Tromey  <tromey@redhat.com>
4053
4054         * common/create-version.sh (date): Use "$", not "$$" in sed
4055         expression.
4056
4057 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
4058
4059         * NEWS (New targets): Add entry for TI MSP430.
4060
4061 2013-06-25  Yao Qi  <yao@codesourcery.com>
4062
4063         * remote.c (remote_start_remote): Move code to upload tsv
4064         earlier.
4065
4066 2013-06-25  Yao Qi  <yao@codesourcery.com>
4067             Hui Zhu  <hui@codesourcery.com>
4068             Pedro Alves  <palves@redhat.com>
4069
4070         PR breakpoints/15075
4071         PR breakpoints/15434
4072         * breakpoint.c (bpstat_stop_status): Call
4073         b->ops->after_condition_true.
4074         (update_dprintf_command_list): Don't append "continue" command
4075         to the command list of dprintf breakpoint.
4076         (base_breakpoint_after_condition_true): New function.
4077         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4078         (dprintf_after_condition_true): New function.
4079         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4080         * breakpoint.h (breakpoint_ops): Add after_condition_true.
4081
4082 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
4083
4084         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4085         (ALLDEPFILES): Add msp430-tdep.c.
4086         * configure.tgt (msp430*-*-elf): New target.
4087         * msp430-tdep.c: New file.
4088
4089 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4090
4091         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4092         microMIPS synthetic symbols.
4093
4094 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
4095
4096         * objfiles.h (pc_in_section): New prototype.
4097         (in_plt_section): Remove name argument, replace prototype with
4098         static inline function.
4099         * mips-tdep.h: Include "objfiles.h".
4100         (in_mips_stubs_section): New function.
4101         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4102         in_solib_call_trampoline member.
4103         (hppa_in_solib_call_trampoline): Remove name argument.
4104         * objfiles.c (pc_in_section): New function.
4105         (in_plt_section): Remove function.
4106         * mips-linux-tdep.c: Include "objfiles.h".
4107         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
4108         name argument.  Return 1 rather than the low 16-bit halfword of
4109         any instruction examined.
4110         (mips_linux_in_dynsym_resolve_code): Update
4111         mips_linux_in_dynsym_stub call accordingly.
4112         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4113         rather than an equivalent hand-coded sequence.
4114         * hppa-hpux-tdep.c (in_opd_section): Remove function.
4115         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4116         (hppa64_hpux_in_solib_call_trampoline): Likewise.
4117         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4118         in_opd_section.
4119         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4120         on call to tdep->in_solib_call_trampoline.
4121         (hppa_in_solib_call_trampoline): Remove name argument, update
4122         according to in_plt_section change.
4123         (hppa_skip_trampoline_code): Update according to in_plt_section
4124         change.
4125         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4126         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4127         Likewise.
4128         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4129         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4130         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4131         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4132         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4133         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4134         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4135         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4136         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4137         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4138         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4139         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4140         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4141
4142 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
4143
4144         * common/create-version.sh: Fix expansion of $host_alias
4145         and $target_alias in generation of HOST_NAME and TARGET_NAME
4146         (resp.).
4147
4148 2013-06-24  Tom Tromey  <tromey@redhat.com>
4149
4150         * common/create-version.sh: New file.
4151         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4152         create-version.sh.
4153         (HFILES_NO_SRCDIR): Use common/version.h.
4154         * version.in: Move to ...
4155         * common/version.in: ... here.  Replace date with "DATE".
4156         * version.h: Move to ...
4157         * common/version.h: ... here.
4158
4159 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4160
4161         * gdb/gnulib/Makefile.in: Update date in copyright header.
4162         * gdb/gnulib/configure.ac: Ditto.
4163         * gdb/gnulib/update-gnulib.sh: Ditto.
4164
4165 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4166
4167         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4168         "gdb/gnulib/import".
4169
4170 2013-06-21  Will Newton  <will.newton@linaro.org>
4171
4172         * doublest.c (ldfrexp): Remove function.
4173         (convert_doublest_to_floatformat): Call frexpl instead of
4174         ldfrexp.
4175
4176 2013-06-21  Will Newton  <will.newton@linaro.org>
4177
4178         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4179         * gnulib/aclocal.m4: Regenerate.
4180         * gnulib/config.in: Regenerate.
4181         * gnulib/configure: Regenerate.
4182         * gnulib/import/Makefile.am: Update.
4183         * gnulib/import/Makefile.in: Update.
4184         * gnulib/import/m4/gnulib-cache.m4: Update.
4185         * gnulib/import/m4/gnulib-comp.m4: Update.
4186         * gnulib/import/float+.h: Import.
4187         * gnulib/import/float.c: Import.
4188         * gnulib/import/float.in.h: Import.
4189         * gnulib/import/fpucw.h: Import.
4190         * gnulib/import/frexp.c: Import.
4191         * gnulib/import/frexpl.c: Import.
4192         * gnulib/import/isnan.c: Import.
4193         * gnulib/import/isnand-nolibm.h: Import.
4194         * gnulib/import/isnand.c: Import.
4195         * gnulib/import/isnanl-nolibm.h: Import.
4196         * gnulib/import/isnanl.c: Import.
4197         * gnulib/import/itold.c: Import.
4198         * gnulib/import/m4/exponentd.m4: Import.
4199         * gnulib/import/m4/exponentl.m4: Import.
4200         * gnulib/import/m4/float_h.m4: Import.
4201         * gnulib/import/m4/fpieee.m4: Import.
4202         * gnulib/import/m4/frexp.m4: Import.
4203         * gnulib/import/m4/frexpl.m4: Import.
4204         * gnulib/import/m4/isnand.m4: Import.
4205         * gnulib/import/m4/isnanl.m4: Import.
4206         * gnulib/import/m4/math_h.m4: Import.
4207         * gnulib/import/math.c: Import.
4208         * gnulib/import/math.in.h: Import.
4209
4210 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4211
4212         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4213         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4214         signature_INTEL_edx comparisons.
4215
4216 2013-06-20  Doug Evans  <dje@google.com>
4217
4218         symtab/15652
4219         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4220         All callers updated.
4221         (open_dwp_file): If we can't find the dwp file, search the basename
4222         in debug-file-directory.
4223
4224         * dwarf2read.c (struct dwp_file): Fix comment.
4225         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4226
4227         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4228         better.
4229
4230 2013-06-20  Yao Qi  <yao@codesourcery.com>
4231
4232         * breakpoint.c (create_breakpoint): Fix code indentation.
4233
4234 2013-06-20  Yao Qi  <yao@codesourcery.com>
4235
4236         * breakpoint.c (create_breakpoints_sal_default): Remove
4237         parameter 'lsal'.  Update declaration.
4238         (bkpt_create_breakpoints_sal): Caller update.
4239         (tracepoint_create_breakpoints_sal): Likewise.
4240
4241 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
4242             Yao Qi  <yao@codesourcery.com>
4243
4244         * NEWS: Mention the new option '--skip-unavailable' of command
4245         -data-list-register-values.
4246         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4247         --skip-unavailable option.  Adjust to use output_register.
4248         (output_register): Add new 'skip_unavailable' parameter.
4249         Handle it.
4250
4251 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
4252
4253         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4254         common/i386-gcc-cpuid.h.
4255         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4256         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4257         Copy the latest version from upstream gcc.
4258         * common/linux-btrace.c: Include i386-cpuid.h.
4259         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4260         call to i386_cpuid.
4261         (cpu_supports_btrace): Likewise.
4262         * go32-nat.c: Include i386-cpuid.h.
4263         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4264
4265 2013-06-19  Doug Evans  <dje@google.com>
4266
4267         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4268         (get_section_index): Ditto.
4269
4270 2013-06-19  Tom Tromey  <tromey@redhat.com>
4271
4272         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4273         "dprintf" help.
4274
4275 2013-06-18  Doug Evans  <dje@google.com>
4276
4277         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4278         before using it.
4279         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4280         Move test of cu_index closer to use.  Print complaint if cu_index
4281         is bad.
4282
4283 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4284
4285         * machoread.c (oso_vector): Delete this global.
4286         (macho_register_oso): Add new parameter "oso_vector_ptr".
4287         Use it instead of the "oso_vector" global.
4288         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4289         (macho_symfile_read): Use a local oso_vector, to be free'ed
4290         at the end of this function, in place of the old "oso_vector"
4291         global.  Update various function calls accordingly.  Use one
4292         single cleanup chain for the entire function.
4293
4294 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4295
4296         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4297         DWARF2_PER_OBJFILE by uses of DATA instead.
4298
4299 2013-06-18  Tom Tromey  <tromey@redhat.com>
4300
4301         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4302         argument.
4303         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4304         Special case signals other than GDB_SIGNAL_TRAP.
4305         (explains_signal_watchpoint): New function.
4306         (base_breakpoint_explains_signal): Add 'sig' argument.
4307         (initialize_breakpoint_ops): Set 'explains_signal' method for
4308         watchpoints.
4309         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4310         signal argument.
4311         (bpstat_explains_signal): Likewise.
4312         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4313
4314 2013-06-18  Tom Tromey  <tromey@redhat.com>
4315
4316         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4317
4318 2013-06-18  Tom Tromey  <tromey@redhat.com>
4319
4320         * python/python.c (finish_python_initialization): Decref
4321         'pythondir' on failure path as well.
4322
4323 2013-06-18  Tom Tromey  <tromey@redhat.com>
4324
4325         PR symtab/15391:
4326         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4327         after taking bits_to_skip into account.  Sign extend byte_offset.
4328         * utils.h (gdb_sign_extend): Declare.
4329         * utils.c (gdb_sign_extend): New function.
4330
4331 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4332
4333         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4334
4335 2013-06-17  Pierre Muller  <muller@sourceware.org>
4336
4337         * corelow.c (core_open): Print GDB signal name instead of target
4338         signal number.
4339
4340 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
4341
4342         * .gitignore: Add /gcore.
4343
4344 2013-06-13  Doug Evans  <dje@google.com>
4345
4346         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4347         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4348
4349 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
4350
4351         * stack.c (backtrace_command_1): Fix indentation.
4352
4353 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4354
4355         * window-nat.c (thread_rec): Add missing empty line after
4356         local variable declaration.
4357
4358 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4359
4360         * windows-nat.c (thread_rec): Revert format used to print
4361         error code returned by SuspendThread from %d back to %u.
4362
4363 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4364
4365         * windows-nat.c (windows_continue): Add "0x" prefix for thread
4366         ID in debug trace.
4367         (get_windows_debug_event): Likewise, for all debug traces.
4368
4369 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4370
4371         * window-nat.c (thread_rec): Add thread ID in SuspendThread
4372         warning message.
4373
4374 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
4375             Yao Qi  <yao@codesourcery.com>
4376
4377         * mi/mi-main.c (get_register): Remove declaration.
4378         (output_register): Declare.
4379         (mi_cmd_data_list_register_values): Remove local variable
4380         'tuple_cleanup'.  Move some code into output_register.
4381         (get_register): Renamed to ...
4382         (output_register): ... this.  Output the register's
4383         "number" ui_out tuple here.
4384
4385 2013-06-07  Pedro Alves  <palves@redhat.com>
4386
4387         * darwin-nat.c: Fix formating in copyright header.
4388         * darwin-nat.h: Likewise.
4389         * gnu-nat.c: Likewise.
4390         * machoread.c: Likewise.
4391
4392 2013-06-07  Pedro Alves  <palves@redhat.com>
4393
4394         PR server/14823
4395         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
4396         static.  Output a global target description pointer.
4397         (init_registers_${name}): Adjust to initialize a
4398         target description structure.
4399
4400 2013-06-07  Will Newton  <will.newton@linaro.org>
4401
4402         * printcmd.c (build_address_symbolic): Call
4403         gdbarch_addr_bits_remove for text minimal symbols.
4404
4405 2013-06-07  Will Newton  <will.newton@linaro.org>
4406
4407         * MAINTAINERS: Add myself to Write After Approval.
4408
4409 2013-06-07  Yao Qi  <yao@codesourcery.com>
4410
4411         * tracepoint.c (start_tracing): Move code to ...
4412         (trace_reset_local_state): ... here.  New.
4413         (disconnect_tracing): Don't call set_current_traceframe,
4414         set_tracepoint_num, and set_traceframe_context. Call
4415         trace_reset_local_state instead.
4416         (tfile_close): Call trace_reset_local_state.
4417         * ctf.c (ctf_close): Likewise.
4418         * remote.c (remote_close): Likewise.
4419         * tracepoint.h (trace_reset_local_state): Declare.
4420
4421 2013-06-06  Doug Evans  <dje@google.com>
4422
4423         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4424         and fix header docs.
4425
4426 2013-06-05  Doug Evans  <dje@google.com>
4427             Keith Seitz  <keiths@redhat.com>
4428
4429         PR 15519
4430         * cp-namespace.c (find_symbol_in_baseclass): Call
4431         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4432         Check result of call to lookup_symbol_static.
4433         Call lookup_static_symbol_aux unconditionally.
4434         Call check_typedef on base types before accessing them.
4435         (cp_lookup_nested_symbol): Fix comment.
4436
4437 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
4438
4439         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4440         minimal symbols pointing to function descriptors.
4441
4442 2013-06-05  Tom Tromey  <tromey@redhat.com>
4443
4444         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4445
4446 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4447             Pedro Alves  <palves@redhat.com>
4448
4449         * remote.c (remote_wait_as): Restore signal handler before returning
4450         when GDB gets a notification.
4451
4452 2013-06-04  Gary Benson  <gbenson@redhat.com>
4453
4454         PR 2328
4455         * breakpoint.h (handle_solib_event): Moved function declaration
4456         to solib.h.
4457         * breakpoint.c (handle_solib_event): Moved function to solib.c.
4458         (bpstat_stop_status): Pass new argument to handle_solib_event.
4459         * solib.h (update_solib_breakpoints): New function declaration.
4460         (handle_solib_event): Moved function declaration from
4461         breakpoint.h.
4462         * solib.c (update_solib_breakpoints): New function.
4463         (handle_solib_event): Moved function from breakpoint.c.
4464         Updated to call solib_ops->handle_event if not NULL.
4465         * solist.h (target_so_ops): New fields "update_breakpoints" and
4466         "handle_event".
4467         * infrun.c (set_stop_on_solib_events): New function.
4468         (_initialize_infrun): Use the above for "set
4469         stop-on-solib-events".
4470         (handle_inferior_event): Pass new argument to handle_solib_event.
4471         * solib-svr4.c (probe.h): New include.
4472         (svr4_free_library_list): New forward declaration.
4473         (probe_action): New enum.
4474         (probe_info): New struct.
4475         (probe_info): New static variable.
4476         (NUM_PROBES): New definition.
4477         (svr4_info): New fields "using_xfer", "probes_table" and
4478         "solib_list".
4479         (free_probes_table): New function.
4480         (free_solib_list): New function.
4481         (svr4_pspace_data_cleanup): Free probes table and solib list.
4482         (svr4_copy_library_list): New function.
4483         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4484         (svr4_read_so_list): New parameter "prev_lm".
4485         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4486         (svr4_current_sos): New function.
4487         (probe_and_action): New struct.
4488         (hash_probe_and_action): New function.
4489         (equal_probe_and_action): Likewise.
4490         (register_solib_event_probe): Likewise.
4491         (solib_event_probe_at): Likewise.
4492         (solib_event_probe_action): Likewise.
4493         (solist_update_full): Likewise.
4494         (solist_update_incremental): Likewise.
4495         (disable_probes_interface_cleanup): Likewise.
4496         (svr4_handle_solib_event): Likewise.
4497         (svr4_update_solib_event_breakpoint): Likewise.
4498         (svr4_update_solib_event_breakpoints): Likewise.
4499         (svr4_create_solib_event_breakpoints): Likewise.
4500         (enable_break): Free probes table before creating breakpoints.
4501         Use svr4_create_solib_event_breakpoints to create breakpoints.
4502         (svr4_solib_create_inferior_hook): Free the solib list.
4503         (_initialize_svr4_solib): Initialise
4504         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4505
4506 2013-06-04  Gary Benson  <gbenson@redhat.com>
4507
4508         * target.h (target_ops): New field
4509         "to_augmented_libraries_svr4_read".
4510         (target_augmented_libraries_svr4_read): New macro.
4511         * target.c (update_current_target): Handle
4512         to_augmented_libraries_svr4_read.
4513         * remote.c (remote_state): New field
4514         "augmented_libraries_svr4_read".
4515         (remote_augmented_libraries_svr4_read_feature): New function.
4516         (remote_protocol_features): Add entry for
4517         "augmented-libraries-svr4-read".
4518         (remote_augmented_libraries_svr4_read): New function.
4519         (init_remote_ops): Initialize
4520         remote_ops.to_augmented_libraries_svr4_read.
4521
4522 2013-06-04  Gary Benson  <gbenson@redhat.com>
4523
4524         * NEWS: Update.
4525
4526 2013-06-04  Gary Benson  <gbenson@redhat.com>
4527
4528         * objfiles.h (inhibit_section_map_updates): New function
4529         declaration.
4530         (resume_section_map_updates): Likewise.
4531         (resume_section_map_updates_cleanup): Likewise.
4532         * objfiles.c (objfile_pspace_info): Removed field
4533         "objfiles_changed_p".  New fields "new_objfiles_available",
4534         "section_map_dirty" and "inhibit_updates".
4535         (allocate_objfile): Set new_objfiles_available.
4536         (free_objfile): Set section_map_dirty.
4537         (objfile_relocate1): Likewise.
4538         (in_plt_section): Likewise.
4539         (find_pc_section): Update the conditions under which the
4540         section map will be updated.
4541         (inhibit_section_map_updates): New function.
4542         (resume_section_map_updates): Likewise.
4543         (resume_section_map_updates_cleanup): Likewise.
4544
4545 2013-06-04  Gary Benson  <gbenson@redhat.com>
4546
4547         * probe.h (get_probe_argument_count): New declaration.
4548         (evaluate_probe_argument): Likewise.
4549         * probe.c (get_probe_argument_count): New function.
4550         (evaluate_probe_argument): Likewise.
4551         (probe_safe_evaluate_at_pc): Use the above new functions.
4552
4553 2013-06-04  Alan Modra  <amodra@gmail.com>
4554
4555         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4556         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4557         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
4558         target mem reads on optional insns.
4559         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4560         ppc_insns_match_pattern calls.
4561         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4562         Add match for power7 thread safety insns, and new order of
4563         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
4564         invocation in comment, and update rest of comment.
4565         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4566         PPC64_STANDARD_LINKAGE3_LEN): Delete.
4567         (ppc64_standard_linkage2_target): Update insn offsets.
4568         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
4569         stubs first.  Update calls.
4570
4571 2013-06-04  Yao Qi  <yao@codesourcery.com>
4572
4573         * solib.c (solib_find): Don't need dir separator if path has
4574         drive spec.
4575
4576 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
4577
4578         Revert (indirectly causes a SIGSEGV):
4579         * machoread.c (macho_symfile_read): Assign first cleanup to
4580         'back_to'.
4581
4582 2013-06-03  Yao Qi  <yao@codesourcery.com>
4583
4584         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4585         mi-parse.c.  Make them static.
4586         (mi_all_values): Likewise.
4587         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
4588         mi_parse_print_values.  Make it external.
4589         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4590         Remove the declarations.
4591         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4592         * mi/mi-parse.h (mi_parse_print_values): Declare.
4593         * mi/mi-cmd-stack.c: Include mi-parse.h.
4594         (parse_print_values): Remove
4595         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4596         of parse_print_values.
4597         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4598
4599 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
4600             Yao Qi  <yao@codesourcery.com>
4601
4602         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4603         (encode_actions): Move code to ...
4604         (all_tracepoint_actions_and_cleanup): ... here.  New.
4605         (trace_dump_command): Likewise.
4606
4607 2013-05-30  Tom Tromey  <tromey@redhat.com>
4608
4609         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4610
4611 2013-05-30  Tom Tromey  <tromey@redhat.com>
4612
4613         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4614         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
4615         'old_chain' argument.  Add 'parser_result' argument.
4616         (gdb_xml_create_parser_and_cleanup): Remove old version.
4617         (gdb_xml_parse_quick): Update.
4618         (xml_process_xincludes): Update.
4619         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4620         declare.
4621
4622 2013-05-30  Tom Tromey  <tromey@redhat.com>
4623
4624         * probe.c (collect_probes): Check arguments for NULL before
4625         calling compile_rx_or_error.
4626         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4627         Remove NULL return.
4628
4629 2013-05-30  Tom Tromey  <tromey@redhat.com>
4630
4631         * infrun.c (adjust_pc_after_break): Introduce an outer null
4632         cleanup.
4633
4634 2013-05-30  Tom Tromey  <tromey@redhat.com>
4635
4636         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4637
4638 2013-05-30  Tom Tromey  <tromey@redhat.com>
4639
4640         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4641         for 'old_chain'.  Do not check 'head' before processing
4642         cleanups.
4643
4644 2013-05-30  Tom Tromey  <tromey@redhat.com>
4645
4646         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4647         "cleanup_tuple".
4648
4649 2013-05-30  Tom Tromey  <tromey@redhat.com>
4650
4651         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4652         inner scope.  Unconditionally call do_cleanups.
4653
4654 2013-05-30  Tom Tromey  <tromey@redhat.com>
4655
4656         * source.c (find_and_open_source): Call do_cleanups.
4657
4658 2013-05-30  Tom Tromey  <tromey@redhat.com>
4659
4660         * linux-thread-db.c (thread_db_load_search): Unconditionally
4661         call do_cleanups.
4662
4663 2013-05-30  Tom Tromey  <tromey@redhat.com>
4664
4665         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4666         for 'cleanup'; instead use a later one.
4667
4668 2013-05-30  Tom Tromey  <tromey@redhat.com>
4669
4670         * python/py-breakpoint.c (bppy_get_commands): Use
4671         explicit, unconditional return.
4672         * python/py-frame.c (frapy_read_var): Likewise.
4673         * python/python.c (gdbpy_decode_line): Likewise.
4674
4675 2013-05-30  Tom Tromey  <tromey@redhat.com>
4676
4677         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4678         do_cleanups on all return paths.
4679
4680 2013-05-30  Tom Tromey  <tromey@redhat.com>
4681
4682         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4683
4684 2013-05-30  Tom Tromey  <tromey@redhat.com>
4685
4686         * stabsread.c (read_struct_type): Call do_cleanups along
4687         all return paths.
4688
4689 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
4690
4691         * mips-linux-tdep.c: Adjust formatting throughout.
4692
4693 2013-05-30  Tom Tromey  <tromey@redhat.com>
4694
4695         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4696         along all return paths.
4697
4698 2013-05-30  Tom Tromey  <tromey@redhat.com>
4699
4700         * symfile.c (find_separate_debug_file): Call do_cleanups
4701         along all return paths.
4702
4703 2013-05-30  Tom Tromey  <tromey@redhat.com>
4704
4705         * symtab.c (search_symbols): Introduce a null cleanup for
4706         'retval_chain'.
4707
4708 2013-05-30  Tom Tromey  <tromey@redhat.com>
4709
4710         * python/py-value.c (valpy_binop): Call do_cleanups before
4711         exiting loop.
4712
4713 2013-05-30  Tom Tromey  <tromey@redhat.com>
4714
4715         * python/py-prettyprint.c (print_children): Remove extra
4716         do_cleanups call.
4717
4718 2013-05-30  Tom Tromey  <tromey@redhat.com>
4719
4720         * python/py-frame.c (frapy_read_var): Call do_cleanups along
4721         all return paths.
4722
4723 2013-05-30  Tom Tromey  <tromey@redhat.com>
4724
4725         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4726         along all return paths.
4727
4728 2013-05-30  Tom Tromey  <tromey@redhat.com>
4729
4730         * cli/cli-logging.c (set_logging_redirect): Unconditionally
4731         call do_cleanups.
4732
4733 2013-05-30  Tom Tromey  <tromey@redhat.com>
4734
4735         * varobj.c (c_value_of_root): Call do_cleanups along all
4736         return paths.
4737
4738 2013-05-30  Tom Tromey  <tromey@redhat.com>
4739
4740         * tracepoint.c (trace_dump_command): Unconditionally call
4741         do_cleanups.
4742
4743 2013-05-30  Tom Tromey  <tromey@redhat.com>
4744
4745         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4746         do_cleanups earlier.
4747
4748 2013-05-30  Tom Tromey  <tromey@redhat.com>
4749
4750         * machoread.c (macho_symfile_read): Assign first cleanup to
4751         'back_to'.
4752
4753 2013-05-30  Tom Tromey  <tromey@redhat.com>
4754
4755         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4756
4757 2013-05-30  Tom Tromey  <tromey@redhat.com>
4758
4759         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4760
4761 2013-05-30  Tom Tromey  <tromey@redhat.com>
4762
4763         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4764         call discard_cleanups.
4765         (inf_ptrace_attach): Likewise.
4766
4767 2013-05-30  Tom Tromey  <tromey@redhat.com>
4768
4769         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4770         return paths.
4771         (mips_initialize): Likewise.
4772         (common_open): Call do_cleanups.
4773
4774 2013-05-30  Tom Tromey  <tromey@redhat.com>
4775
4776         * utils.c (internal_vproblem): Call do_cleanups.
4777
4778 2013-05-30  Tom Tromey  <tromey@redhat.com>
4779
4780         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4781
4782 2013-05-30  Tom Tromey  <tromey@redhat.com>
4783
4784         * cli/cli-script.c (setup_user_args): Don't return after error.
4785
4786 2013-05-30  Tom Tromey  <tromey@redhat.com>
4787
4788         * somread.c (som_symtab_read): Call do_cleanups.
4789
4790 2013-05-30  Tom Tromey  <tromey@redhat.com>
4791
4792         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4793
4794 2013-05-30  Tom Tromey  <tromey@redhat.com>
4795
4796         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4797         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4798         * interps.c (interpreter_exec_cmd): Call do_cleanups.
4799         * source.c (show_substitute_path_command): Call do_cleanups.
4800         (unset_substitute_path_command, set_substitute_path_command):
4801         Likewise.
4802         * symfile.c (load_command): Call do_cleanups.
4803
4804 2013-05-30  Tom Tromey  <tromey@redhat.com>
4805
4806         * contrib/cleanup_check.py: New file.
4807         * contrib/gcc-with-excheck: Add option parsing.
4808
4809 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
4810
4811         * windows-nat.c (windows_delete_thread): Add missing space
4812         in cast expression.
4813
4814 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4815
4816         * inferior.c (top level): Include tilde.h.
4817         (add_inferior_command): Call tilde_expand on the value of 'exec'
4818         argument.
4819
4820 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
4821             Yao Qi  <yao@codesourcery.com>
4822
4823         * tracepoint.c (encode_actions_1): Remove parameter 't'.
4824         Caller update.
4825         (encode_actions): Likewise.
4826         * remote.c (remote_download_tracepoint): Caller update.
4827         * tracepoint.h (encode_actions): Update declaration.
4828
4829 2013-05-30  Pedro Alves  <palves@redhat.com>
4830
4831         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4832         pointer.
4833
4834 2013-05-30  Yao Qi  <yao@codesourcery.com>
4835
4836         * remote.c (remote_check_symbols): Remove unused parameter
4837         'objfile'.
4838         Declaration update.
4839         (remote_start_remote, remote_new_objfile): Caller update.
4840
4841 2013-05-30  Yao Qi  <yao@codesourcery.com>
4842
4843         * mi/mi-cmds.c (mi_cmds): Define MI command
4844         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4845         DEF_MI_CMD_CLI.
4846
4847 2013-05-29  Pedro Alves  <palves@redhat.com>
4848
4849         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4850         (remote_insert_watchpoint, remote_remove_watchpoint)
4851         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4852         (remote_verify_memory, compare_sections_command)
4853         (remote_search_memory): Set the general process/thread on the
4854         remote side.
4855
4856 2013-05-29  Pedro Alves  <palves@redhat.com>
4857
4858         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4859         (_initialize_aarch64_tdep): Don't call
4860         initialize_tdesc_aarch64_without_fpu.
4861         * features/Makefile (WHICH): Remove reference to
4862         aarch64-without-fpu.
4863         * features/aarch64-without-fpu.c: Delete file.
4864         * regformats/aarch64-without-fpu.dat: Delete file.
4865
4866 2013-05-28  Yao Qi  <yao@codesourcery.com>
4867
4868         * tracepoint.c (stringify_collection_list): Remove parameter
4869         'string'.
4870         (encode_actions): Caller update.  Remove local variables.
4871
4872 2013-05-24  Yao Qi  <yao@codesourcery.com>
4873
4874         * tracepoint.c (TFILE_PID): Remove.
4875         (tfile_open): Don't add thread and inferior.
4876         (tfile_close): Don't set 'inferior_ptid'.  Don't call
4877         exit_inferior_silent.
4878         (tfile_thread_alive): Remove.
4879         (init_tfile_ops): Don't set field 'to_thread_alive' of
4880         tfile_ops.
4881
4882 2013-05-23  Doug Evans  <dje@google.com>
4883
4884         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4885
4886 2013-05-23  Pedro Alves  <palves@redhat.com>
4887
4888         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4889         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4890         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4891         Only define if HAVE_SOCKETS is defined.
4892         * configure.ac: Check for sys/socket.h.
4893         * config.in, configure: Regenerate.
4894
4895 2013-05-23  Pedro Alves  <palves@redhat.com>
4896
4897         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4898         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4899         printing uint32_t variables.
4900
4901 2013-05-23  Pedro Alves  <palves@redhat.com>
4902
4903         * NEWS: Mention GDBserver range stepping support.
4904
4905 2013-05-23  Yao Qi  <yao@codesourcery.com>
4906             Pedro Alves  <palves@redhat.com>
4907
4908         * gdbthread.h (struct thread_control_state) <may_range_step>: New
4909         field.
4910         * infcmd.c (step_once, until_next_command): Enable range stepping.
4911         * infrun.c (displaced_step_prepare): Disable range stepping.
4912         (resume): Disable range stepping if stepping over a breakpoint or
4913         we have software watchpoints.  If range stepping is enabled,
4914         assert the thread is in the stepping range.
4915         (clear_proceed_status_thread): Clear may_range_step.
4916         (handle_inferior_event): Disable range stepping as soon as we know
4917         the thread that hit the event.  Re-enable it whenever we're going
4918         to step with a step range.
4919         * remote.c (struct vCont_action_support) <r>: New field.
4920         (use_range_stepping): New global.
4921         (remote_vcont_probe): Handle 'r' action.
4922         (append_resumption): Append an 'r' action if the thread may range
4923         step.
4924         (show_range_stepping): New function.
4925         (set_range_stepping): New function.
4926         (_initialize_remote): Call add_setshow_boolean_cmd to register the
4927         'set range-stepping' and 'show range-stepping' commands.
4928         * NEWS: Mention range stepping, the new vCont;r action, and the
4929         new "set/show range-stepping" commands.
4930
4931 2013-05-23  Yao Qi  <yao@codesourcery.com>
4932             Pedro Alves  <palves@redhat.com>
4933
4934         * remote.c (struct vCont_action_support): New struct.
4935         (struct remote_state) <support_vCont_t>: Remove field.
4936         <vCont_actions_support>: New field.
4937         (remote_vcont_probe, remote_stop_ns): Update.
4938
4939 2013-05-23  Yao Qi  <yao@codesourcery.com>
4940             Pedro Alves  <palves@redhat.com>
4941
4942         * gdbthread.h (pc_in_thread_step_range): New declaration.
4943         * thread.c (pc_in_thread_step_range): New function.
4944         * infrun.c (handle_inferior_event): Use it.
4945
4946 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
4947
4948         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4949         of sprintf.
4950
4951 2013-05-22  Keith Seitz  <keiths@redhat.com>
4952
4953         * ada-lang.c (is_known_support_routine): Add explicit free of
4954         'func_name' from find_frame_funname.
4955         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4956         for func_name from find_frame_funname.
4957         * python/py-frame.c (frapy_name): Add explicit free of
4958         'name' from find_frame_funname.
4959         * stack.c (find_frame_funname): Add comment explaining that
4960         funcp must be freed by the caller.
4961         Return copy of symbol names instead of pointers.
4962         (print_frame): Add a cleanup for 'funname' from
4963         find_frame_funname.
4964         * stack.h (find_frame_funname): Remove "const" from
4965         'funname' parameter.
4966
4967 2013-05-22  Tom Tromey  <tromey@redhat.com>
4968
4969         PR c++/15401:
4970         * c-valprint.c (c_value_print): Use value_addr for
4971         references.  Convert back to reference type with value_ref.
4972
4973 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
4974
4975         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4976         unloaded DLL, it will be done by handle_solib_event.  See
4977         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4978         details.
4979
4980 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
4981
4982         * ui-out.c: Create typedef ui_out_level_p and define vector
4983         operations for that type.
4984         (struct ui_out): Use a vector instead of an array.
4985         (current_level): Return level from a vector.
4986         (push_level): Create a level in a vector.
4987         (pop_level): Delete a level in a vector.
4988         (ui_out_new): Create initial level zero level, and store in a
4989         vector.
4990         (ui_out_destroy): Add vector cleanup.
4991
4992 2013-05-22  Pedro Alves  <palves@redhat.com>
4993
4994         * python/python-internal.h (gdb_Py_DECREF): Tag with
4995         "ARI: editCase function".
4996
4997 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
4998
4999         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5000
5001 2013-05-21  Pedro Alves  <palves@redhat.com>
5002
5003         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5004         whether PRINTER is NULL before installing a Py_DECREF cleanup.
5005         * python/py-utils.c (py_decref): Don't check for NULL before
5006         calling Py_DECREF.
5007
5008 2013-05-21  Pedro Alves  <palves@redhat.com>
5009
5010         * python/py-utils.c (py_decref): Remove extra braces.
5011         (gdb_pymodule_addobject): Remove extra braces.
5012         * python-internal.h (gdb_Py_DECREF): New static inline function.
5013         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5014
5015 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5016
5017         * breakpoints.c (detach_breakpoints): Do not
5018         detach breakpoints locations with loc_type bp_loc_other.
5019
5020 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5021
5022         Workaround Python 2.6.
5023         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5024         a block.
5025
5026 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5027
5028         Code cleanup: constification.
5029         * solib.c (solib_ops): Make return type and ops variable type const.
5030         (set_solib_ops): Make the new_ops parameter and ops variable const.
5031         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5032         (solib_add, solib_keep_data_in_core, clear_solib)
5033         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5034         (reload_shared_libraries, solib_global_lookup): Make the ops variable
5035         const.
5036         * solib.h (set_solib_ops): Make the new_ops parameter const.
5037
5038 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5039
5040         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5041         variable.
5042         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5043         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5044         (SYSTEM_GDBINIT_FILES): New variables.
5045         (all): Add stamp-system-gdbinit.
5046         (stamp-system-gdbinit): New rule.
5047         (clean-system-gdbinit, install-system-gdbinit)
5048         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
5049         (install-only): Add dependency on install-system-gdbinit.
5050         (uninstall): Add dependency on uninstall-system-gdbinit.
5051         (clean): Add dependency on clean-system-gdbinit.
5052         * system-gdbinit/elinos.py: New file.
5053         * system-gdbinit/wrs-linux.py: New file.
5054
5055 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
5056
5057         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5058
5059 2013-05-21  Hui Zhu  <hui@codesourcery.com>
5060
5061         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5062         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5063         * mi/mi-cmd-break.c (ctype.h): New include.
5064         (gdb_obstack.h): New include.
5065         (mi_argv_to_format, mi_cmd_break_insert_1): New.
5066         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5067         (mi_cmd_dprintf_insert): New.
5068         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5069         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5070
5071 2013-05-20  Tom Tromey  <tromey@redhat.com>
5072
5073         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5074
5075 2013-05-20  Tom Tromey  <tromey@redhat.com>
5076
5077         * python/py-value.c (valpy_get_dynamic_type): Simplify
5078         dynamic_type assignment.  Use Py_XINCREF.
5079
5080 2013-05-20  Tom Tromey  <tromey@redhat.com>
5081
5082         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5083
5084 2013-05-20  Tom Tromey  <tromey@redhat.com>
5085
5086         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5087         (gdbpy_selected_frame): Move object-construction code
5088         out of TRY_CATCH.
5089
5090 2013-05-20  Tom Tromey  <tromey@redhat.com>
5091
5092         * python/py-arch.c (gdbpy_initialize_arch): Use
5093         gdb_pymodule_addobject.
5094         * python/py-block.c (gdbpy_initialize_blocks): Use
5095         gdb_pymodule_addobject.
5096         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5097         gdb_pymodule_addobject.
5098         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5099         gdb_pymodule_addobject.
5100         * python/py-event.c (gdbpy_initialize_event_generic): Use
5101         gdb_pymodule_addobject.
5102         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5103         gdb_pymodule_addobject.
5104         * python/py-evts.c (add_new_registry): Use
5105         gdb_pymodule_addobject.
5106         (gdbpy_initialize_py_events): Likewise.
5107         * python/py-finishbreakpoint.c
5108         (gdbpy_initialize_finishbreakpoints): Use
5109         gdb_pymodule_addobject.
5110         * python/py-frame.c (gdbpy_initialize_frames): Use
5111         gdb_pymodule_addobject.
5112         * python/py-function.c (gdbpy_initialize_functions): Use
5113         gdb_pymodule_addobject.
5114         * python/py-inferior.c (gdbpy_initialize_inferior): Use
5115         gdb_pymodule_addobject.
5116         * python/py-infthread.c (gdbpy_initialize_thread): Use
5117         gdb_pymodule_addobject.
5118         * python/py-objfile.c (gdbpy_initialize_objfile): Use
5119         gdb_pymodule_addobject.
5120         * python/py-param.c (gdbpy_initialize_parameters): Use
5121         gdb_pymodule_addobject.
5122         * python/py-progspace.c (gdbpy_initialize_pspace): Use
5123         gdb_pymodule_addobject.
5124         * python/py-symbol.c (gdbpy_initialize_symbols): Use
5125         gdb_pymodule_addobject.
5126         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5127         gdb_pymodule_addobject.
5128         * python/py-type.c (gdbpy_initialize_types): Use
5129         gdb_pymodule_addobject.
5130         * python/py-utils.c (gdb_pymodule_addobject): New function.
5131         * python/py-value.c (gdbpy_initialize_values): Use
5132         gdb_pymodule_addobject.
5133         * python/python-internal.h (gdb_pymodule_addobject): Declare.
5134         * python/python.c (_initialize_python): Use
5135         gdb_pymodule_addobject.
5136
5137 2013-05-20  Tom Tromey  <tromey@redhat.com>
5138
5139         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5140         * python/py-param.c (get_set_value, get_show_value): Use
5141         explicit decrefs.
5142         * python/python.c (start_type_printers, apply_type_printers):
5143         Use explicit decrefs.
5144
5145 2013-05-20  Tom Tromey  <tromey@redhat.com>
5146
5147         * python/py-evts.c (gdbpy_initialize_py_events): Don't
5148         incref the module.
5149
5150 2013-05-20  Tom Tromey  <tromey@redhat.com>
5151
5152         * python/python.c (gdbpy_run_events): Decref the result
5153         of PyObject_CallObject.
5154
5155 2013-05-20  Tom Tromey  <tromey@redhat.com>
5156
5157         * python/py-symtab.c (set_sal): Use
5158         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
5159         (symtab_and_line_to_sal_object): Update.
5160
5161 2013-05-20  Tom Tromey  <tromey@redhat.com>
5162
5163         * python/py-param.c (compute_enum_values): Decref 'item'.
5164
5165 2013-05-20  Tom Tromey  <tromey@redhat.com>
5166
5167         * mi/mi-main.c: Include python-internal.h.
5168         (mi_cmd_list_features): Check gdb_python_initialized.
5169         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5170         (python_inferior_exit, python_new_objfile, add_thread_object)
5171         (delete_thread_object, py_free_inferior): Check
5172         gdb_python_initialized.
5173         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5174         gdb_python_initialized.
5175         * python/py-type.c (save_objfile_types): Check
5176         gdb_python_initialized.
5177         * python/python-internal.h (gdb_python_initialized): Declare.
5178         * python/python.c (ensure_python_env): Throw exception if
5179         Python not initialized.
5180         (before_prompt_hook, source_python_script_for_objfile)
5181         (start_type_printers, apply_type_printers,
5182         free_type_printers): Check gdb_python_initialized.
5183         * varobj.c (varobj_get_display_hint)
5184         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5185         (install_new_value_visualizer, varobj_set_visualizer)
5186         (value_get_print_value): Check gdb_python_initialized.
5187
5188 2013-05-20  Tom Tromey  <tromey@redhat.com>
5189
5190         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5191         Check errors.
5192         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5193         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5194         Check errors.
5195         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5196         Check errors.
5197         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5198         Check errors.
5199         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5200         Check errors.
5201         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5202         init function to return 'int'.
5203         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5204         Return 'int'.  Check errors.
5205         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5206         Check errors.
5207         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5208         Return 'int'.  Check errors.
5209         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5210         Check errors.
5211         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5212         Check errors.
5213         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5214         Check errors.
5215         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5216         Check errors.
5217         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5218         Check errors.
5219         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5220         Check errors.
5221         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5222         Check errors.
5223         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5224         Check errors.
5225         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5226         Check errors.
5227         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5228         Check errors.
5229         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5230         Check errors.
5231         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5232         Check errors.
5233         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5234         Check errors.
5235         * python/python-internal.h (gdbpy_initialize_auto_load,
5236         gdbpy_initialize_values, gdbpy_initialize_frames,
5237         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5238         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5239         gdbpy_initialize_blocks, gdbpy_initialize_types,
5240         gdbpy_initialize_functions, gdbpy_initialize_pspace,
5241         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5242         gdbpy_initialize_finishbreakpoints,
5243         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5244         gdbpy_initialize_thread, gdbpy_initialize_inferior,
5245         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5246         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5247         gdbpy_initialize_signal_event,
5248         gdbpy_initialize_breakpoint_event,
5249         gdbpy_initialize_continue_event,
5250         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5251         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5252         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5253         * python/python.c (gdb_python_initialized): New global.
5254         (gdbpy_initialize_events): Return 'int'.  Check errors.
5255         (_initialize_python): Check errors.  Set
5256         gdb_python_initialized.
5257
5258 2013-05-20  Tom Tromey  <tromey@redhat.com>
5259
5260         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5261         Decref the reslut of PyObject_CallMethod.
5262
5263 2013-05-20  Tom Tromey  <tromey@redhat.com>
5264
5265         * python/py-event.c (gdbpy_initialize_event_generic): Return
5266         early if PyType_Ready fails.
5267
5268 2013-05-20  Tom Tromey  <tromey@redhat.com>
5269
5270         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5271         as 'default' in the switch.
5272
5273 2013-05-20  Tom Tromey  <tromey@redhat.com>
5274
5275         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
5276         get_addr_from_python calls out of TRY_CATCH.
5277         (infpy_write_memory, infpy_search_memory): Likewise.
5278         * python/py-utils.c (get_addr_from_python): Return negative
5279         value on error.  Use TRY_CATCH.
5280         * python/python-internal.h (get_addr_from_python): Use
5281         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5282
5283 2013-05-20  Tom Tromey  <tromey@redhat.com>
5284
5285         * python/py-event.c (evpy_emit_event): Decref the
5286         result of PyObject_CallFunctionObjArgs.
5287
5288 2013-05-20  Tom Tromey  <tromey@redhat.com>
5289
5290         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5291         Correctly decref.
5292
5293 2013-05-20  Tom Tromey  <tromey@redhat.com>
5294
5295         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5296
5297 2013-05-20  Tom Tromey  <tromey@redhat.com>
5298
5299         * python/py-event.h (gdbpy_initialize_event_generic): Use
5300         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5301         * python/py-evts.c (add_new_registry): Use
5302         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5303         * python/python-internal.h
5304         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5305
5306 2013-05-20  Tom Tromey  <tromey@redhat.com>
5307
5308         * python/py-arch.c (archpy_disassemble): Update.
5309         * python/py-type.c (typy_get_composite, typy_lookup_typename)
5310         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5311         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5312         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5313         macro.
5314         (GDB_PY_HANDLE_EXCEPTION): Update.
5315         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
5316
5317 2013-05-20  Tom Tromey  <tromey@redhat.com>
5318
5319         * python/python-internal.h (events_object_type): Remove.
5320
5321 2013-05-20  Tom Tromey  <tromey@redhat.com>
5322
5323         * python/py-event.h (evpy_emit_event): Use
5324         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5325         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5326         New macro.
5327
5328 2013-05-20  Tom Tromey  <tromey@redhat.com>
5329
5330         * py-evtregistry.c (create_event_object): Decref
5331         eventregistry_object if PyList_New fails.
5332
5333 2013-05-20  Tom Tromey  <tromey@redhat.com>
5334
5335         * py-cmd.c (gdbpy_string_to_argv): Check result of
5336         PyList_New.
5337
5338 2013-05-20  Tom Tromey  <tromey@redhat.com>
5339
5340         * python/python.c (before_prompt_hook): Add cleanup to
5341         decref 'hook'.
5342
5343 2013-05-20  Tom Tromey  <tromey@redhat.com>
5344
5345         * python/py-function.c (fnpy_init): Decref result of
5346         PyObject_GetAttrString.
5347
5348 2013-05-20  Tom Tromey  <tromey@redhat.com>
5349
5350         * python/py-threadevent.c (get_event_thread): Use
5351         CPYCHECKER_RETURNS_BORROWED_REF.
5352         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5353         New define.
5354         (pspace_to_pspace_object, objfile_to_objfile_object)
5355         (find_thread_object): Use it.
5356
5357 2013-05-20  Tom Tromey  <tromey@redhat.com>
5358
5359         * python/py-arch.c (arch_object_type): Use
5360         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5361         * python/py-block.c (block_syms_iterator_object_type):
5362         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5363         * python/py-bpevent.c (breakpoint_event_object_type):
5364         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5365         * python/py-cmd.c (cmdpy_object_type): Use
5366         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5367         * python/py-continueevent.c (continue_event_object_type):
5368         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5369         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5370         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5371         * python/py-events.h (thread_event_object_type):
5372         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5373         * python/py-evtregistry.c (eventregistry_object_type): Use
5374         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5375         * python/py-exitedevent.c (exited_event_object_type):
5376         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5377         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5378         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5379         * python/py-function.c (fnpy_object_type): Use
5380         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5381         * python/py-inferior.c (inferior_object_type, membuf_object_type):
5382         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5383         * python/py-infthread.c (thread_object_type): Use
5384         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5385         * python/py-lazy-string.c (lazy_string_object_type):
5386         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5387         * python/py-newobjfileevent.c (new_objfile_event_object_type):
5388         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5389         * python/py-objfile.c (objfile_object_type): Use
5390         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5391         * python/py-param.c (parmpy_object_type):
5392         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5393         * python/py-progspace.c (pspace_object_type):
5394         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5395         * python/py-signalevent.c (signal_event_object_type):
5396         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5397         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5398         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5399         * python/py-type.c (type_object_type, field_object_type)
5400         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5401         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5402         define.
5403         (value_object_type, block_object_type, symbol_object_type)
5404         (event_object_type, stop_event_object_type, breakpoint_object_type)
5405         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5406
5407 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
5408
5409         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5410         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5411
5412 2013-05-20  Doug Evans  <dje@google.com>
5413
5414         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
5415         For Fission.
5416         * dwarf2read.c (struct dwarf2_per_cu_data): New member
5417         reading_dwo_directly.
5418         (struct signatured_type): New member dwo_unit.
5419         (struct die_reader_specs): New member comp_dir.
5420         (create_signatured_type_table_from_index): Use malloc for
5421         all_type_units instead of objfile's obstack.
5422         (create_all_type_units): Ditto.
5423         (fill_in_sig_entry_from_dwo_entry): New function.
5424         (add_type_unit): New function.
5425         (lookup_dwo_signatured_type): New function.
5426         (lookup_dwp_signatured_type): New function.
5427         (lookup_signatured_type): New arg cu.  All callers updated.
5428         (init_cu_die_reader): Initialize comp_dir.
5429         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
5430         Change assert of matching type signatures to call error on mismatch.
5431         (lookup_dwo_unit): Add assert.
5432         (init_tu_and_read_dwo_dies): New function.
5433         (init_cutu_and_read_dies): Call it.
5434         (build_type_unit_groups): Handle case of no type unit groups created.
5435         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5436         (lookup_dwo_cutu): Tweak complaint.
5437         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5438         (dwarf2_per_objfile_free): Free all_type_units.
5439
5440 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5441
5442         * windows-nat.c (handle_unload_dll): Add missing empty line.
5443
5444 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5445
5446         * dwarf2read.c (prototyped_function_p): New function.
5447         (read_subroutine_type): Use it.
5448
5449 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5450
5451         * rs6000-aix-tdep.c: De-indent some example code provided
5452         as a comment.
5453
5454 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5455
5456         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5457         region is ok for a hardware watchpoint using the new ptrace interface
5458         on Power servers.
5459
5460 2013-05-17  Doug Evans  <dje@google.com>
5461
5462         * NEWS: Mention new maintenance commands check-symtabs, and
5463         expand-symtabs, and renamed check-psymtabs.
5464         * psymtab.c (maintenance_check_psymtabs): Renamed from
5465         maintenance_check_symtabs.  Only process already-expanded symbol
5466         tables.
5467         (_initialize_psymtab): Update.
5468         * symmisc.c (maintenance_check_symtabs): New function.
5469         (maintenance_expand_name_matcher): New function
5470         (maintenance_expand_file_matcher): New function
5471         (maintenance_expand_symtabs): New function.
5472         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5473         commands.
5474
5475 2013-05-17  Tom Tromey  <tromey@redhat.com>
5476
5477         * python/py-inferior.c (infpy_read_memory): Don't call
5478         PyErr_SetString if PyObject_New fails.
5479         * python/py-frame.c (frame_info_to_frame_object): Don't call
5480         PyErr_SetString if PyObject_New fails.
5481
5482 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
5483
5484         * acinclude.m4: Add check for dlopen in libdl.
5485         * configure.ac: Ditto.
5486         * configure: Regenerate.
5487
5488 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
5489
5490         * frame.c (frame_stash): Convert to htab.
5491         (frame_addr_hash): New function.
5492         (frame_addr_hash_eq): New function.
5493         (frame_stash_create): Convert function to create
5494         a hash table.
5495         (frame_stash_add): Convert function to add an entry to a hash
5496         table.
5497         (frame_stash_find): Convert function to search the hash table.
5498         (frame_stash_invalidate): Convert function to empty the hash
5499         table.
5500         (get_frame_id): Only add to stash if a frame_id is created.
5501         (_initialize_frame): Call frame_stash_create.
5502
5503 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
5504
5505         * configure.ac: Ensure MIG is available when building for GNU Hurd
5506         hosts.
5507         * configure: Regenerate.
5508
5509 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5510
5511         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5512
5513 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5514
5515         * ada-lang.c (ada_make_symbol_completion_list): Make sure
5516         all cleanups are done before returning from this function.
5517
5518 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5519
5520         * utils.h: #include "exceptions.h".
5521         (enum errors): Remove partial declaration.
5522
5523 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5524
5525         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5526         * gdbarch.h, gdbarch.c: Regenerate.
5527         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5528         handling.
5529
5530         * rs6000-aix-tdep.h: New file.
5531         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5532         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5533         "xml-utils.h".
5534         (struct field_info, struct ld_info_desc): New types.
5535         (ld_info32_desc, ld_info64_desc): New static constants.
5536         (struct ld_info): New type.
5537         (rs6000_aix_extract_ld_info): New function.
5538         (rs6000_aix_shared_library_to_xml): Likewise.
5539         (rs6000_aix_ld_info_to_xml): Likewise.
5540         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5541         (rs6000_aix_init_osabi): Add call to
5542         set_gdbarch_core_xfer_shared_libraries_aix.
5543         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5544         Remove "xml-utils.h" include.
5545         (LdInfo): Delete typedef.
5546         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5547         Delete macros.
5548         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5549         Adjust code accordingly.
5550         (rs6000_core_ldinfo): Delete, folded into
5551         rs6000_aix_core_xfer_shared_libraries_aix.
5552         (rs6000_xfer_shared_library): Delete.
5553         (rs6000_xfer_shared_libraries): Reimplement.
5554
5555 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
5556
5557         * record.c (record_goto_cmdlist): New.
5558         (cmd_record_goto): Split into this ...
5559         (cmd_record_goto_begin): ... this
5560         (cmd_record_goto_end): ... and this.
5561         (_initialize_record): Change "record goto" to prefix command.
5562         Add commands for "record goto begin" and "record goto end".
5563         Add an alias for "record goto start" to "record goto begin".
5564
5565 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5566
5567         * linespec.c (convert_linespec_to_sals): New comment for
5568         SOURCE_FILENAME assignment.
5569
5570 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5571
5572         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5573         internal_warning.
5574
5575 2013-05-14  Tom Tromey  <tromey@redhat.com>
5576
5577         * eval.c (parse_and_eval_long): Make 'exp' const.
5578         * value.h (parse_and_eval_long): Update.
5579
5580 2013-05-14  Tom Tromey  <tromey@redhat.com>
5581
5582         * ui-file.c (gdb_fopen): Make arguments const.
5583         * ui-file.h (gdb_fopen): Make arguments const.
5584
5585 2013-05-14  Tom Tromey  <tromey@redhat.com>
5586
5587         * remote.c (remote_set_trace_notes): Make arguments const.
5588         * target.c (update_current_target): Update cast.
5589         * target.h (to_set_trace_notes): Make arguments const.
5590
5591 2013-05-14  Tom Tromey  <tromey@redhat.com>
5592
5593         * go32-nat.c (go32_terminal_info): Make 'args' const.
5594         * inferior.h (child_terminal_info): Update.
5595         * inflow.c (child_terminal_info): Make 'args' const.
5596         * target.c (default_terminal_info): Make 'args' const.
5597         (debug_to_terminal_save_ours): Likewise.
5598         * target.h (struct target_ops) <to_terminal_info>: Make argument
5599         const.
5600
5601 2013-05-13  Tom Tromey  <tromey@redhat.com>
5602
5603         * gcore.c (create_gcore_bfd): Make 'filename' const.
5604         * gcore.h (create_gcore_bfd): Make 'filename' const.
5605         * record-full.c (record_full_save): Make 'recfilename' const.
5606         * target.c (target_save_record): Make 'filename' const.
5607         * target.h (struct target_ops) <to_save_record>: Make 'filename'
5608         const.
5609         (target_save_record): Likewise.
5610
5611 2013-05-13  Tom Tromey  <tromey@redhat.com>
5612
5613         PR gdb/15338:
5614         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5615         ranges section has been read.
5616
5617 2013-05-13  Tom Tromey  <tromey@redhat.com>
5618
5619         PR exp/15364:
5620         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5621         STRUCTOP_PTR>: Return a not_lval value for
5622         EVAL_AVOID_SIDE_EFFECTS.
5623         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5624         for EVAL_AVOID_SIDE_EFFECTS.
5625
5626 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
5627
5628         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5629         floating point registers to register type before storing
5630         value.
5631         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5632         Likewise.
5633
5634 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5635             Tom Tromey  <tromey@redhat.com>
5636
5637         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5638         New functions.
5639         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5640         Declare.
5641         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5642         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5643         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5644         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5645
5646 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
5647             Tom Tromey  <tromey@redhat.com>
5648
5649         PR build/15414:
5650         * configure: Rebuild.
5651         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5652         with -Wno-format.
5653
5654 2013-05-10  Pedro Alves  <palves@redhat.com>
5655
5656         * remote.c (_initialize_remote): Fix spelling of
5657         qXfer:traceframe-info:read packet in packet config command.
5658
5659 2013-05-10  David Taylor  <dtaylor@emc.com>
5660
5661         PR remote/15455
5662
5663         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5664         "QTro" at start of packet.
5665
5666 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5667
5668         * solib-aix.c (solib_aix_relocate_section_addresses):
5669         For the .bss section action, apply the same offset as
5670         the .data section.
5671
5672 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5673
5674         * solib-aix.c (solib_aix_relocate_section_addresses):
5675         Remove FIXME comment.
5676
5677 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5678
5679         PR tdep/15420:
5680         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5681         New functions, directly copied from sparc-sol-thread.c.
5682         * sparc-sol-thread.c: Delete.
5683         * configure.ac: Remove code handling sparc-solaris-thread.c.
5684         * configure: Regenerate.
5685
5686 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
5687
5688         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5689         filter logic.
5690         (backtrace_command): Add "no-filters" option parsing.
5691         (_initialize_stack): Alter help to reflect "no-filters" option.
5692         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5693         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5694         (py-frame.o): Add target
5695         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5696         filter files.
5697         * python/python.h: Add new frame filter constants, and flag enum.
5698         (apply_frame_filter): Add definition.
5699         * python/python.c (apply_frame_filter): New non-Python
5700         enabled function.
5701         * python/py-utils.c (py_xdecref): New function.
5702         (make_cleanup_py_xdecref): Ditto.
5703         * python/py-objfile.c: Declare frame_filters dictionary.
5704         (objfpy_dealloc): Add frame_filters dealloc.
5705         (objfpy_new): Initialize frame_filters attribute.
5706         (objfile_to_objfile_object): Ditto.
5707         (objfpy_get_frame_filters): New function.
5708         (objfpy_set_frame_filters): New function.
5709         * python/py-progspace.c: Declare frame_filters dictionary.
5710         (pspy_dealloc): Add frame_filters dealloc.
5711         (pspy_new): Initialize frame_filters attribute.
5712         (pspacee_to_pspace_object): Ditto.
5713         (pspy_get_frame_filters): New function.
5714         (pspy_set_frame_filters): New function.
5715         * python/py-framefilter.c: New file.
5716         * python/lib/gdb/command/frame_filters.py: New file.
5717         * python/lib/gdb/frames.py: New file.
5718         * python/lib/gdb/__init__.py: Initialize global frame_filters
5719         dictionary
5720         * python/lib/gdb/FrameDecorator.py: New file.
5721         * python/lib/gdb/FrameIterator.py: New file.
5722         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5723         * mi/mi-cmds.h: Declare.
5724         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5725         --no-frame-filter logic, and Python frame filter logic.
5726         (stack_enable_frame_filters): New function.
5727         (parse_no_frame_option): Ditto.
5728         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5729         filter logic.
5730         (mi_cmd_stack_list_locals): Ditto.
5731         (mi_cmd_stack_list_args): Ditto.
5732         (mi_cmd_stack_list_variables): Ditto.
5733         * NEWS: Add frame filter note.
5734
5735 2013-05-09  Doug Evans  <dje@google.com>
5736
5737         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5738         All callers updated.
5739         (syms_from_objfile): Ditto.  Make static.
5740         (symbol_file_add_with_addrs): Renamed from
5741         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
5742         num_offsets.  All callers updated.
5743         * symfile.h (syms_from_objfile): Delete.
5744
5745         * symfile.c (decrement_reading_symtab): Add assert.
5746         (increment_reading_symtab): Ditto.
5747
5748 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
5749
5750         * source.c (forward_search_command): Replace call to getc
5751         by call to fgetc.
5752         (reverse_search_command): Likewise.
5753
5754 2013-05-08  Doug Evans  <dje@google.com>
5755
5756         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5757         matching test.
5758
5759 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5760
5761         * sol-thread.c (info_cb): Factorize the code a little.
5762
5763 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5764
5765         * sol-thread.c (info_cb): Rework the output of the "maintenance
5766         info sol-threads" command a bit.
5767
5768 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5769
5770         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5771         Replace ti.ti_startfunc by ti.ti_pc.
5772
5773 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5774
5775         * solib-aix.c (solib_aix_free_library_list): New function
5776         for the case where HAVE_LIBEXPAT is not defined.
5777
5778 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5779
5780         PR breakpoints/15413:
5781         * breakpoint.c (condition_completer): Simplify the code to
5782         disconsider multiple locations of breakpoints when completing the
5783         "condition" command.
5784
5785 2013-05-07  Pierre Muller  <muller@sourceware.org>
5786
5787         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5788         instead of <sys/wait.h>.
5789
5790 2013-05-07  Pierre Muller  <muller@sourceware.org>
5791
5792         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5793         trailing new line from warning message.
5794
5795 2013-05-07  Pierre Muller  <muller@sourceware.org>
5796
5797         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5798         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5799
5800 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5801
5802         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5803         error message (ARI fix).
5804
5805 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5806
5807         * features/library-list-aix.dtd: Replace library-list by
5808         library-list-aix.
5809         * rs6000-nat.c: Replace library-list by library-list-aix
5810         throughout.
5811         * solib-aix.c: Likewise.
5812
5813 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5814
5815         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5816         Renames TARGET_OBJECT_AIX_LIBRARIES.
5817         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5818         TARGET_OBJECT_LIBRARIES_AIX throughout.
5819         * solib-aix.c: Likwise.
5820
5821 2013-05-07  Yao Qi  <yao@codesourcery.com>
5822
5823         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5824         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5825
5826 2013-05-07  Yao Qi  <yao@codesourcery.com>
5827
5828         * solib-dsbt.c (enable_break): Declare.
5829         (dsbt_current_sos): Remove call to enable_break2.
5830         (enable_break2): Rename to enable_break.  Set solib breakpoint
5831         on '_dl_debug_state'.
5832         (enable_break): Remove.
5833
5834 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
5835
5836         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5837         debug state prior to replicating existing hardware watchpoints or
5838         breakpoints.
5839
5840 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5841
5842         * gcore.c (gcore_create_callback): Ignore sections with
5843         separate_debug_objfile_backlink != NULL.
5844
5845 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
5846             Andrew Jenner  <andrew@codesourcery.com>
5847             Chung-Lin Tang  <cltang@codesourcery.com>
5848             Julian Brown  <julian@codesourcery.com>
5849
5850         Based on the nios2-elf port from Altera Corporation.
5851
5852         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5853         nios2-linux-tdep.o.
5854         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5855         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5856         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5857         * nios2-tdep.h: New.
5858         * nios2-tdep.c: New.
5859         * nios2-linux-tdep.c: New.
5860         * features/Makefile (WHICH): Add nios2-linux.
5861         (nios2-linux-expedite): Set.
5862         * features/nios2-cpu.xml: New.
5863         * features/nios2.xml: New.
5864         * features/nios2-linux.xml: New.
5865         * features/nios2.c: New (autogenerated).
5866         * features/nios2-linux.c: New (autogenerated).
5867         * regformats/nios2-linux.dat: New (autogenerated).
5868         * NEWS (Changes since GDB 7.6): Add new Nios II targets
5869         and commands.
5870
5871 2013-05-06  Doug Evans  <dje@google.com>
5872
5873         * symfile.c: Whitespace cleanup.
5874
5875         * solist.h (struct target_so_ops): New member clear_so.
5876         * solib-svr4.c (svr4_clear_so): New function.
5877         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5878         * solib.c (clear_so): Renamed from free_so_symbols.
5879         All callers updated.  Call target clear_so if it exists.
5880
5881 2013-05-06  Tom Tromey  <tromey@redhat.com>
5882
5883         * ada-lang.c (ada_value_primitive_packed_val): Don't
5884         call value_incref.
5885         * value.c (set_value_parent): Incref the new parent and decref
5886         the old parent.
5887         (value_copy, value_primitive_field): Use set_value_parent.
5888
5889 2013-05-06  Tom Tromey  <tromey@redhat.com>
5890
5891         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5892         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5893         if needed.
5894         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5895         * dwarf2read.c (write_constant_as_bytes)
5896         (dwarf2_fetch_constant_bytes): New functions.
5897
5898 2013-05-06  Tom Tromey  <tromey@redhat.com>
5899
5900         * dwarf2read.c (dwarf2_const_value_data): Remove unused
5901         parameters.
5902         (dwarf2_const_value_attr): Update.
5903
5904 2013-05-06  Tom Tromey  <tromey@redhat.com>
5905
5906         * somread.c (som_symfile_offsets): Add 'const' to addrs.
5907         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5908         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5909         Remove declaration.
5910
5911 2013-05-06  Tom Tromey  <tromey@redhat.com>
5912
5913         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5914         objfile's obstack.
5915
5916 2013-05-06  Doug Evans  <dje@google.com>
5917
5918         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5919         * stabsread.h (process_one_symbol): Update declaration.
5920         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5921         * elfread.c (elf_symfile_relocate_probe): Ditto.
5922         * psymtab.c (relocate_psymtabs): Ditto.
5923         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5924         (objfile_relocate): Ditto.
5925         * objfiles.h (objfile_relocate): Update declaration.
5926         * symfile.c (relative_addr_info_to_section_offsets): Constify
5927         addrs parameter.
5928         (default_symfile_offsets): Ditto.
5929         (syms_from_objfile_1): Constify offsets parameter.
5930         (syms_from_objfile): Ditto.
5931         (symbol_file_add_with_addrs_or_offsets): Ditto.
5932         (symfile_map_offsets_to_segments): Constify data parameter.
5933         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5934         delta parameters of member relocate.
5935         (struct sym_probe_fns): Constify new_offsets,
5936         delta parameters of member sym_relocate_probe.
5937         (struct sym_fns): Constify section_addr_info parameter of member
5938         sym_offsets.
5939         (relative_addr_info_to_section_offsets): Update declaration.
5940         (default_symfile_offsets): Ditto.
5941         (syms_from_objfile): Ditto.
5942         (symfile_map_offsets_to_segments): Ditto.
5943
5944         * symfile.c (syms_from_objfile_1): Use correct section count when
5945         objfile->sf == NULL.
5946
5947 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
5948
5949         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5950
5951 2013-05-06  Doug Evans  <dje@google.com>
5952
5953         * psympriv.h (struct partial_symtab): Augment comment for member
5954         section_offsets.
5955
5956 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5957
5958         Reimplement shared library support on ppc-aix...
5959         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5960         * features/library-list-aix.dtd: New file.
5961         * solib-aix.h, solib-aix.c: New file.
5962         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5963         (rs6000_find_toc_address_hook): Delete.
5964         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5965         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5966         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
5967         "xml-utils.h".
5968         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5969         (vmap_symtab, fixup_breakpoints): Delete.
5970         (rs6000_xfer_shared_libraries): New function.
5971         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5972         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5973         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5974         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5975         (rs6000_xfer_shared_library): New function.
5976         (find_toc_address): Delete.
5977         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5978         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5979         * xcoffread.c (record_minimal_symbol): Reloate symbol address
5980         before creating minimal symbol.  Adjust function description
5981         accordingly.
5982         (scan_xcoff_symtab): Replace call to
5983         prim_record_minimal_symbol_and_info by call to
5984         record_minimal_symbol.
5985         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5986         around default_symfile_offsets.
5987         * configure.tgt: Add solib-aix.o to gdb_target_obs for
5988         powerpc-aix targets.
5989         * config/rs6000/nm-rs6000.h: Delete.
5990         * config/powerpc/aix.mh (NAT_FILE): Delete.
5991         (NATDEPFILES): Remove xcoffsolib.o.
5992         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5993         (ALL_TARGET_OBS): Add solib-aix.o.
5994         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5995         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
5996         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
5997         * xcoffsolib.h, xcoffsolib.c: Delete.
5998
5999         * solib.c (reload_shared_libraries): Remove reference to
6000         SOLIB_CREATE_INFERIOR_HOOK.
6001         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6002         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6003         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6004         comment.
6005         * corelow.c (deprecated_core_resize_section_table): Delete.
6006         * exec.c: Remove include of xcoffsolib.h".
6007         (map_vmap, vmap): Delete.
6008         (exec_close_1): Remove references to vmap.
6009         (exec_file_attach): Remove vmap handling code, and reference
6010         to DEPRECATED_IBM6000_TARGET.
6011         (bfdsec_to_vmap): Delete.
6012         (exec_files_info): Remove block of code handling VMAP.
6013         * infcmd.c (post_create_inferior): Remove reference to
6014         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6015         * infrun.c (follow_exec): Remove reference to
6016         SOLIB_CREATE_INFERIOR_HOOK.
6017         * stack.c (print_frame): Remove reference to PC_SOLIB.
6018         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6019         (dsbt_relocate_main_executable): Likewise.
6020         * solib-frv.c (frv_current_sos): Likewise.
6021
6022 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6023
6024         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6025         to target_write_memory and target_read_memory.
6026
6027 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6028
6029         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6030         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6031
6032 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6033
6034         * darwin-nat.c: Replace all "%x" instances in format strings
6035         into "0x%x" throughout.
6036
6037 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6038
6039         * darwin-nat.c (darwin_mourn_inferior): Replace call to
6040         gdb_assert by call to MACH_CHECK_ERROR.
6041         (darwin_attach_pid): Raise an error rather than a failed
6042         assertion when various system calls failed.  Report a warning
6043         instead of raising a failed assertion when PREV_NOT is not NULL
6044         after call to mach_port_request_notification.
6045         (darwin_ptrace_me): Raise an error rather than a failed
6046         assertion when read returns nonzero.
6047
6048 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
6049
6050         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6051
6052 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6053
6054         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6055
6056 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6057
6058         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6059         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6060         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
6061         a stale cleanup.  Fix double free of NAME.
6062
6063 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
6064
6065         * windows-nat.c (windows_delete_thread): Accept an additional
6066         argument, the thread's exit code, and announce thread death when
6067         print_thread_events is non-zero and we are deleting a thread that
6068         is not the main thread.
6069         (get_windows_debug_event): Pass thread exit code to
6070         windows_delete_thread.
6071
6072 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6073
6074         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6075         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6076         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6077         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6078         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6079         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6080         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6081         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6082         (gdbarch_tdep): New struct.
6083         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6084         E_NUM_REGS.
6085         (v850e3v5_register_name): New function.
6086         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6087         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
6088         code handling the struct return conventions for the RH850 ABI.
6089         Update all callers.
6090         (v850_eight_byte_align_p): New function.
6091         (v850_push_call_dummy): Push structs by value, not by reference
6092         for the RH850 ABI.  Add support for eight byte alignment.
6093         (v850_dbtrap_breakpoint_from_pc): New function.
6094         (v850_gdbarch_init): Add ABI detection code.  Register
6095         v850e3v5_register_name for the v850e3v5 architecture.  Set the
6096         number of registers for v850e3v5.  Register
6097         v850_dbtrap_breakpoint_from_pc as appropriate.
6098         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6099
6100 2013-05-03  Doug Evans  <dje@google.com>
6101
6102         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6103         of bfd_count_sections.
6104         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6105         * symfile.c (default_symfile_offsets): Ditto.
6106         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
6107         one entry, not bfd_count_sections entries.
6108
6109 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
6110
6111         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6112         `save' and `restore' register groups.  Don't include SPL
6113         or SPH in these groups.
6114         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
6115         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
6116         RL78_ES_REGNUM, and RL78_CS_REGNUM.
6117         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
6118         dwarf2_append_unwinders().
6119
6120 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6121
6122         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6123         ignore SIGINT and SIGTRAP in case these internal signals are
6124         caught explicitely.
6125
6126 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6127
6128         * darwin-nat.c (darwin_read_write_inferior): Change types
6129         of parameters rdaddr and wraddr to "gdb_byte *". Change type
6130         of copy_count to "mach_msg_type_number_t".
6131         (darwin_read_dyld_info): Change type of parameter
6132         rdaddr to "gdb_byte *".
6133
6134 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6135
6136         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6137         of &info->load_map from "char *" to "gdb_byte *".
6138
6139 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
6140
6141         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6142         from "char *" to "gdb_byte *".
6143         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6144
6145 2013-04-30  Doug Evans  <dje@google.com>
6146
6147         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6148         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6149         DWO stub.  If DWO isn't found, just use stub.
6150         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6151
6152         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6153         calling init_cutu_and_read_dies.
6154
6155 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6156
6157         * target-descriptions.c (maint_print_c_tdesc_cmd):
6158         Add case to parse structures as register types and
6159         bitfields.
6160
6161 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6162
6163         * MAINTAINERS (Write After Approval): Add myself to the list.
6164
6165 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6166
6167         * sol-thread.c (rw_common): Change type of parameter "buf"
6168         to "gdb_byte *".
6169         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6170         rw_common to "gdb_byte *" instead of "char *".
6171
6172 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6173
6174         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6175         of local variable msym to const struct bound_minimal_symbol.
6176         Adjust use accordingly.
6177         [ti.ti_state == TD_THR_SLEEP]: Likewise.
6178
6179 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
6180
6181         * i386gnu-nat.c (CREG_OFFSET): New macro.
6182         (creg_offset): New array.
6183         (CREG_ADDR): Use creg_offset instead of reg_offset.
6184
6185 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6186
6187         * mep-tdep.c (mep_write_pc): Delete.
6188         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6189         Add call to set_gdbarch_pc_regnum.
6190
6191 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6192
6193         * common/filestuff.c: Replace #include <dirent.h> by
6194         #include "gdb_dirent.h".
6195
6196 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6197
6198         * common/filestuff.c: Replace #include <sys/stat.h> by
6199         #include "gdb_stat.h".
6200
6201 2013-04-29  Pierre Muller  <muller@sourceware.org>
6202
6203         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6204         editCase function rule.
6205         (get_DW_AT_signature_type): Likewise.
6206
6207 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6208
6209         * m32r-tdep.c (m32r_write_pc): Delete.
6210         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6211         Add call to set_gdbarch_pc_regnum.
6212
6213 2013-04-29  Pierre Muller  <muller@sourceware.org>
6214
6215         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6216
6217 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6218
6219         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6220
6221 2013-04-28  Yao Qi  <yao@codesourcery.com>
6222
6223         * solib-dsbt.c (fetch_loadmap): Re-indent.
6224         (displacement_from_map, enable_break2): Likewise.
6225         (dsbt_relocate_section_addresses): Likewise.
6226
6227 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
6228
6229         GDB 7.6 released.
6230
6231 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
6232
6233         PR corefiles/14983:
6234         * dwarf2read.c (process_full_comp_unit): Always create a static
6235         block.
6236
6237 2013-04-25  Hui Zhu  <hui@codesourcery.com>
6238
6239         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6240         to loc->cmd_bytecode.
6241
6242 2013-04-24  Doug Evans  <dje@google.com>
6243
6244         * dwarf2read.c (setup_type_unit_groups): Fix comment.
6245
6246 2013-04-22  Keith Seitz  <keiths@redhat.com>
6247
6248         * tracepoint.c (trace_save):  Call the writer's start method.
6249
6250 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
6251
6252         PR gdb/10462
6253         * cli/cli-decode.c (lookup_command): Show an error if there is no space
6254         before argument.
6255
6256 2013-04-23  Tom Tromey  <tromey@redhat.com>
6257
6258         * common/filestuff.c: Check USE_WIN32API before including
6259         sys/socket.h.
6260         (HAVE_F_GETFD): New define.
6261         (mark_cloexec): Check HAVE_F_GETFD.
6262         (gdb_open_cloexec): Change 'mode' to unsigned long.
6263         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6264         (gdb_pipe_cloexec): Check HAVE_PIPE.
6265         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6266         long.
6267
6268 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6269
6270         PR gdb/15293
6271         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6272
6273 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6274
6275         PR gdb/15165
6276         * breakpoint.c (dprintf_print_recreate): New.
6277         (save_breakpoints): Let it not save dprintf commands.
6278         (initialize_breakpoint_ops): Set dprintf_print_recreate.
6279
6280 2013-04-22  Tom Tromey  <tromey@redhat.com>
6281
6282         PR gdb/7912:
6283         * Makefile.in (SFILES): Add filestuff.c
6284         (COMMON_OBS): Add filestuff.o.
6285         (filestuff.o): New target.
6286         * auto-load.c (auto_load_objfile_script_1): Use
6287         gdb_fopen_cloexec.
6288         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6289         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6290         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6291         * common/agent.c (gdb_connect_sync_socket): Use
6292         gdb_socket_cloexec.
6293         * common/filestuff.c: New file.
6294         * common/filestuff.h: New file.
6295         * common/linux-osdata.c (linux_common_core_of_thread)
6296         (command_from_pid, commandline_from_pid, print_source_lines)
6297         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6298         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6299         gdb_fopen_cloexec.
6300         * common/linux-procfs.c (linux_proc_get_int)
6301         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6302         * config.in, configure: Rebuild.
6303         * configure.ac: Don't check for sys/socket.h.  Check for
6304         fdwalk, pipe2.
6305         * corelow.c (core_open): Use gdb_open_cloexec.
6306         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6307         * fork-child.c (fork_inferior): Call close_most_fds.
6308         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6309         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6310         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6311         Use gdb_fopen_cloexec.
6312         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6313         gdb_open_cloexec.
6314         (linux_async_pipe): Use gdb_pipe_cloexec.
6315         * remote-fileio.c (remote_fileio_func_open): Use
6316         gdb_open_cloexec.
6317         * remote.c (remote_file_put, remote_file_get): Use
6318         gdb_fopen_cloexec.
6319         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6320         close_most_fds.
6321         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6322         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6323         * solib.c (solib_find): Use gdb_open_cloexec.
6324         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6325         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6326         (tfile_open): Use gdb_open_cloexec.
6327         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6328         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6329         * xml-support.c (xml_fetch_content_from_file): Use
6330         gdb_fopen_cloexec.
6331         * main.c (captured_main): Call notice_open_fds.
6332
6333 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6334
6335         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6336         'char *' to 'gdb_byte *'.
6337         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6338         'gdb_byte'.
6339
6340 2013-04-22  Yao Qi  <yao@codesourcery.com>
6341
6342         * infrun.c: Fix typo in comment.
6343
6344 2013-04-22  Andrew Haley  <aph@redhat.com>
6345
6346         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6347         instead of "long".
6348
6349 2013-04-20  Yao Qi  <yao@codesourcery.com>
6350
6351         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6352         'char *' to 'gdb_byte *'.  Cast the return value of
6353         'bt_ctf_get_char_array' to 'gdb_byte *'.
6354
6355 2013-04-19  Pedro Alves  <palves@redhat.com>
6356
6357         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6358         -Wpointer-sign.
6359         * configure: Regenerate.
6360
6361 2013-04-19  Pedro Alves  <palves@redhat.com>
6362
6363         * ser-tcp.c (net_read_prim): Cast second argument to recv to
6364         'void *'.
6365
6366 2013-04-19  Pedro Alves  <palves@redhat.com>
6367
6368         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6369         Change type of 'myaddr' parameter to gdb_byte pointer.
6370         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
6371         to 'long long' pointer instead of to 'unsigned long long'.
6372         (monitor_write_memory_block, monitor_read_memory_single)
6373         (monitor_read_memory): Change type of 'myaddr' parameter to
6374         gdb_byte pointer.
6375
6376 2013-04-19  Pedro Alves  <palves@redhat.com>
6377
6378         * record.c (validate_history_size): Make parameter 'setting'
6379         unsigned.
6380
6381 2013-04-19  Pedro Alves  <palves@redhat.com>
6382
6383         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6384         to 'gdb_byte *'.
6385
6386 2013-04-19  Pedro Alves  <palves@redhat.com>
6387
6388         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6389         local to int.
6390
6391 2013-04-19  Pedro Alves  <palves@redhat.com>
6392
6393         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6394         * ada-tasks.c (read_fat_string_value): Likewise.
6395
6396 2013-04-19  Pedro Alves  <palves@redhat.com>
6397
6398         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6399         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
6400         'offset', and adjust.
6401
6402 2013-04-19  Pedro Alves  <palves@redhat.com>
6403
6404         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6405         (read_index_from_section): Add cast to 'char *'.
6406
6407 2013-04-19  Pedro Alves  <palves@redhat.com>
6408
6409         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6410
6411 2013-04-19  Pedro Alves  <palves@redhat.com>
6412
6413         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6414
6415 2013-04-19  Pedro Alves  <palves@redhat.com>
6416
6417         * record-full.c (record_full_get_bookmark): Change local 'ret'
6418         type to char * and add cast to gdb_byte *.
6419         (record_full_goto_bookmark): Handle 'bookmark' argument as a
6420         string.
6421         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6422
6423 2013-04-19  Pedro Alves  <palves@redhat.com>
6424
6425         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6426         * python/py-prettyprint.c (print_string_repr): Change type of
6427         'output' local to char *.  Add cast to gdb_byte * in
6428         LA_PRINT_STRING call.
6429         (print_children): Change type of 'output' local to char *.
6430         * python/py-value.c (valpy_string): Add cast to const char * in
6431         PyUnicode_Decode call.
6432
6433 2013-04-19  Pedro Alves  <palves@redhat.com>
6434
6435         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6436         and change its type to 'const char *'.  Adjust.
6437         (mips_send_packet): Add cast to 'char *', and remove cast to
6438         'unsigned char *'.
6439         (mips_receive_packet): Remove cast to 'unsigned char *'.
6440         (mips_load_srec): Use bfd_byte.
6441         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6442         (pmon_checkset): Make 'value' parameter unsigned.
6443
6444 2013-04-19  Pedro Alves  <palves@redhat.com>
6445
6446         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6447
6448 2013-04-19  Pedro Alves  <palves@redhat.com>
6449
6450         * remote.c (remote_write_bytes_aux, compare_sections_command)
6451         (remote_read_qxfer)
6452         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6453         (remote_hostio_readlink, remote_bfd_iovec_pread)
6454         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6455         binary buffer, and char when buffer is used as string.
6456         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6457         (trace_save, tfile_open, traceframe_walk_blocks)
6458         (tfile_fetch_registers): Likewise.
6459
6460 2013-04-19  Pedro Alves  <palves@redhat.com>
6461
6462         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6463         buffer and size_t size.  Adjust.
6464         * ser-base.h (ser_base_write): Adjust.
6465         * ser-go32.c (cnts): Change type to size_t.
6466         (dos_write): Change prototype -- take 'void *'
6467         buffer and size_t size.  Adjust.
6468         (dos_info): Print elements of 'cnts' as unsigned long.
6469         * serial.c (serial_write): Likewise.
6470         * serial.h (serial_write): Adjust.
6471         (struct serial_ops) <write>: Change prototype -- take 'void *'
6472         buffer and size_t size.  Adjust.
6473
6474 2013-04-19  Pedro Alves  <palves@redhat.com>
6475
6476         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6477         gdb_byte *.
6478         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6479
6480 2013-04-19  Pedro Alves  <palves@redhat.com>
6481
6482         * alpha-tdep.c (alpha_extract_return_value): Use
6483         regcache_cooked_read_unsigned to read 'v0'.
6484
6485 2013-04-19  Pedro Alves  <palves@redhat.com>
6486
6487         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6488         parameters 'at', 'as' and 'offset' to uint32_t.
6489
6490 2013-04-19  Pedro Alves  <palves@redhat.com>
6491
6492         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6493         'is64' to signed 'int'.
6494
6495 2013-04-19  Pedro Alves  <palves@redhat.com>
6496
6497         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6498         parameter to int *.
6499
6500 2013-04-19  Pedro Alves  <palves@redhat.com>
6501
6502         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6503         'insnbuf' buffer type to unsigned int[].
6504
6505 2013-04-19  Pedro Alves  <palves@redhat.com>
6506
6507         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6508
6509 2013-04-19  Pedro Alves  <palves@redhat.com>
6510
6511         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6512         unsigned long *.
6513
6514 2013-04-19  Pedro Alves  <palves@redhat.com>
6515
6516         * alpha-tdep.c (heuristic_fence_post): Change type to int.
6517         (alpha_heuristic_proc_start): Adjust to check -1 instead of
6518         UINT_MAX.
6519         * mips-tdep.c (heuristic_fence_post): Change type to int.
6520         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6521
6522 2013-04-19  Pedro Alves  <palves@redhat.com>
6523
6524         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6525         (struct gdbarch_tdep) <cris_version>: Make unsigned.
6526         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6527
6528 2013-04-19  Pedro Alves  <palves@redhat.com>
6529
6530         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
6531         it to get a string view of the byte buffer.
6532         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6533         type to gdb_byte *.  Adjust.
6534         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6535         Change local to char *.
6536         * solib-darwin.c (find_program_interpreter): Change return type to
6537         char *.  Adjust.
6538         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6539         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6540         * solib-frv.c (enable_break2): Change local 'buf' to char *.
6541         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6542         * solib-svr4.c (find_program_interpreter): Change return type to
6543         char *.  Adjust.
6544         (enable_break): Change local 'interp_name' to char *.
6545         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6546         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6547         (spu_pseudo_register_write_spu): Use char for string buffer.
6548         Adjust.
6549         (info_spu_event_command, info_spu_signal_command): Add casts to
6550         'char *'.
6551
6552 2013-04-19  Pedro Alves  <palves@redhat.com>
6553
6554         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6555         gdb_byte[].
6556         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6557         * ada-lang.c (ada_value_assign): Use gdb_byte.
6558         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6559         (alphanbsd_sigtramp_offset): Use gdb_byte.
6560         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6561         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6562         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6563         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6564         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6565         * arm-tdep.c (arm_stub_unwind_sniffer)
6566         (arm_displaced_init_closure): Use gdb_byte.
6567         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6568         (arm_default_thumb_le_breakpoint)
6569         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6570         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6571         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6572         * arm-wince-tdep.c (arm_wince_le_breakpoint)
6573         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6574         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6575         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6576         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6577         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6578         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6579         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6580         (cris_store_return_value, cris_extract_return_value): Use
6581         gdb_byte.
6582         (constraint): Change type of parameter to char * from signed
6583         char*.  Use gdb_byte.
6584         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6585         of local buffer to gdb_byte *.
6586         * dwarf2read.c (read_index_from_section): Use gdb_byte.
6587         (create_dwp_hash_table): Change type of locals to gdb_byte *.
6588         (add_address_entry): Change type of local buffer to gdb_byte[].
6589         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6590         (frv_push_dummy_call): Use gdb_byte.
6591         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6592         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6593         (hppa_hpux_supply_save_state): Use gdb_byte.
6594         * hppa-tdep.c (hppa32_push_dummy_call)
6595         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6596         * ia64-tdep.c (extract_bit_field, replace_bit_field)
6597         (slotN_contents, replace_slotN_contents): Change type of parameter
6598         to gdb_byte *.
6599         (fetch_instruction, ia64_pseudo_register_write)
6600         (ia64_register_to_value, ia64_value_to_register)
6601         (ia64_extract_return_value, ia64_store_return_value)
6602         (ia64_push_dummy_call): Use gdb_byte.
6603         * m32c-tdep.c (m32c_return_value): Remove cast.
6604         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6605         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6606         gdb_byte.
6607         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6608         * mn10300-tdep.c (mn10300_store_return_value)
6609         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6610         gdb_byte.
6611         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6612         (moxie_process_record): Remove casts.
6613         * ppc-ravenscar-thread.c (supply_register_at_address)
6614         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6615         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6616         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6617         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6618         * remote.c (compare_sections_command): Use gdb_byte.
6619         * score-tdep.c (score7_free_memblock): Change type of parameter to
6620         gdb_byte *.
6621         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6622         gdb_byte *.  Use gdb_byte.
6623         (sh_push_dummy_call_fpu): Use gdb_byte.
6624         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6625         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6626         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6627         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6628         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6629         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6630         (sh64_store_return_value, sh64_register_convert_to_virtual):
6631         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6632         (sh64_pseudo_register_write): Use gdb_byte.
6633         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6634         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
6635         buffer.
6636         (irix_current_sos): Use gdb_byte.
6637         * solib-som.c (som_current_sos): Use gdb_byte.
6638         * sparc-ravenscar-thread.c (supply_register_at_address)
6639         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6640         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6641         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6642         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6643         'gdb_byte *'.
6644         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6645         'gdb_byte *'.
6646         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6647         * xstormy16-tdep.c (xstormy16_extract_return_value)
6648         (xstormy16_store_return_value): Change parameter type to
6649         'gdb_byte *'.  Adjust.
6650         (xstormy16_push_dummy_call): Use gdb_byte.
6651         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6652         (call0_analyze_prologue, execute_code): Use gdb_byte.
6653
6654 2013-04-19  Vladimir Kargov <kargov@gmail.com>
6655             Pedro Alves  <palves@redhat.com>
6656
6657         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6658         value contents.
6659
6660 2013-04-17  Doug Evans  <dje@google.com>
6661
6662         * dwarf2read.c (struct signatured_type): New member type.
6663         (struct attribute): Replace member signatured_type with signature.
6664         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6665         (read_call_site_scope): Call follow_die_ref instead of
6666         follow_die_ref_or_sig.
6667         (read_structure_type): Rewrite handling of signatured types.
6668         (read_enumeration_type): Ditto.
6669         (read_attribute_value): Update.
6670         (build_error_marker_type): New function.
6671         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
6672         Don't call error for bad types, just build an error marker type.
6673         (dump_die_shallow): Update.
6674         (follow_die_sig_1): Renamed from follow_die_sig.
6675         Don't call error for bad types, instead return NULL.
6676         (follow_die_sig): New function.
6677         (get_signatured_type, get_DW_AT_signature_type): New functions.
6678
6679 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
6680
6681         * aarch64-tdep.c (aarch64_write_pc): Removed.
6682         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6683         function.
6684
6685 2013-04-17  Yao Qi  <yao@codesourcery.com>
6686
6687         * top.c (print_gdb_configuration): Print configure-time
6688         parameter on using libbabeltrace or not.
6689
6690 2013-04-16  Pedro Alves  <palves@redhat.com>
6691
6692         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6693
6694 2013-04-16  Pedro Alves  <palves@redhat.com>
6695
6696         * common/glibc_thread_db.h: Update from upstream glibc
6697         (git 568035b7874a099087b77f7bba3e36a1173787b0).
6698
6699 2013-04-16  Pedro Alves  <palves@redhat.com>
6700
6701         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6702         * common/glibc_thread_db.h: ... this new file ...
6703         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6704
6705 2013-04-16  Will Newton  <will.newton@gmail.com>
6706             Pedro Alves  <palves@redhat.com>
6707
6708         PR build/11881
6709
6710         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6711         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6712         HAVE_THREAD_DB_H.
6713
6714 2013-04-16  Pedro Alves  <palves@redhat.com>
6715             Eli Zaretskii  <eliz@gnu.org>
6716
6717         * NEWS: Mention "set foo unlimited".
6718
6719 2013-04-15  Doug Evans  <dje@google.com>
6720
6721         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6722         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6723         (create_dwo_cu_reader): Renamed from
6724         create_dwo_debug_info_hash_table_reader.
6725         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6726         Remove support for multiple CUs in a DWO file.
6727         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6728
6729         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6730         instead of phex.
6731         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6732         (create_dwo_in_dwp): Ditto.
6733
6734 2013-04-15  Tom Tromey  <tromey@redhat.com>
6735
6736         * NEWS: Move recent entries into "since 7.6" section.
6737
6738 2013-04-15  Tom Tromey  <tromey@redhat.com>
6739
6740         PR c++/13588:
6741         * NEWS: Update.
6742         * break-catch-throw.c (struct exception_catchpoint)
6743         <exception_rx, pattern>: New fields.
6744         (fetch_probe_arguments, dtor_exception_catchpoint)
6745         (check_status_exception_catchpoint)
6746         (print_one_detail_exception_catchpoint): New functions.
6747         (handle_gnu_v3_exceptions): Add "except_rx" argument.
6748         Compile regular expression if needed.
6749         (extract_exception_regexp): New function.
6750         (catch_exception_command_1): Use extract_exception_regexp.
6751         (compute_exception): Use fetch_probe_arguments.
6752         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6753         and check_status fields.
6754         * cp-abi.c (cplus_typename_from_type_info): New function.
6755         * cp-abi.h (cplus_typename_from_type_info): Declare.
6756         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6757         * gdb_regex.h (compile_rx_or_error): Declare.
6758         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6759         comment.
6760         (init_gnuv3_ops): Set get_type_from_type_info field.
6761         * probe.c (compile_rx_or_error): Move...
6762         * utils.c (compile_rx_or_error): ... here.
6763
6764 2013-04-15  Tom Tromey  <tromey@redhat.com>
6765
6766         PR c++/15176:
6767         * NEWS: Update.
6768         * break-catch-throw.c (compute_exception): New function.
6769         (exception_funcs): New global.
6770         (_initialize_break_catch_throw): Create $_exception.
6771         * cp-abi.c (cplus_type_from_type_info): New function.
6772         * cp-abi.h (cplus_type_from_type_info): Declare.
6773         (struct cp_abi_ops) <get_type_from_type_info>: New field.
6774         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6775         (gnuv3_get_type_from_type_info): New functions.
6776         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6777
6778 2013-04-15  Tom Tromey  <tromey@redhat.com>
6779
6780         * break-catch-throw.c (struct exception_names): New.
6781         (exception_functions): Change type.
6782         (re_set_exception_catchpoint): Look for SDT probes.
6783
6784 2013-04-15  Tom Tromey  <tromey@redhat.com>
6785
6786         PR c++/10119:
6787         * break-catch-throw.c (exception_functions): New global.
6788         (gnu_v3_exception_catchpoint_ops): Move earlier.
6789         (struct exception_catchpoint): New.
6790         (classify_exception_breakpoint): Rewrite.
6791         (re_set_exception_catchpoint): New function.
6792         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
6793         Allocate a struct exception_catchpoint.
6794         (catch_exception_command_1): Update.
6795         (initialize_throw_catchpoint_ops): Set 're_set' method.
6796
6797 2013-04-15  Tom Tromey  <tromey@redhat.com>
6798
6799         * Makefile.in (SFILES): Add break-catch-throw.c
6800         (COMMON_OBS): Add break-catch-throw.o.
6801         * break-catch-throw.c: New file.
6802         * breakpoint.c: Move exception-catching code to new file.
6803         (ep_parse_optional_if_clause): No longer static.
6804         * breakpoint.h (ep_parse_optional_if_clause): Declare.
6805
6806 2013-04-15  Tom Tromey  <tromey@redhat.com>
6807
6808         PR c++/9065:
6809         * NEWS: Update.
6810         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6811         * c-exp.y (TYPEID): New token.
6812         (exp): Add new TYPEID productions.
6813         (ident_tokens): Add "typeid".
6814         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6815         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6816         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6817         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6818         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6819         case.
6820         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6821         (build_std_type_info_type, gnuv3_get_typeid_type)
6822         (gnuv3_get_typeid): New functions.
6823         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
6824         new fields on ABI object.
6825         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6826         * std-operator.def (OP_TYPEID): New.
6827
6828 2013-04-15  Tom Tromey  <tromey@redhat.com>
6829
6830         * elfread.c (elf_symtab_read): Install versioned symbol under
6831         unversioned name as well.
6832
6833 2013-04-15  Tom Tromey  <tromey@redhat.com>
6834
6835         PR c++/11990:
6836         * c-lang.c (cplus_language_defn): Use gdb_demangle.
6837         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6838         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6839         (gdb_demangle): New function.
6840         * cp-support.h (gdb_demangle): Declare.
6841         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6842         (dwarf2_name): Use gdb_demangle.
6843         * gdbtypes.c (check_stub_method): Use gdb_demangle.
6844         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6845         suffixes from name.
6846         (gnuv3_print_method_ptr): Use gdb_demangle.
6847         * jv-lang.c (java_demangle): Use gdb_demangle.
6848         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6849         * language.c (unk_lang_demangle): Use gdb_demangle.
6850         * symtab.c (symbol_find_demangled_name)
6851         (demangle_for_lookup): Use gdb_demangle.
6852
6853 2013-04-15  Tom Tromey  <tromey@redhat.com>
6854
6855         PR c++/12824:
6856         * NEWS: Update.
6857         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6858         New constant.
6859         (classify_exception_breakpoint): New function.
6860         (print_it_exception_catchpoint, print_one_exception_catchpoint)
6861         (print_mention_exception_catchpoint)
6862         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6863         (catch_exception_command_1): Handle "rethrow" catchpoint.
6864         (catch_rethrow_command): New function.
6865         (_initialize_breakpoint): Add "catch rethrow" command.
6866
6867 2013-04-15  Pierre Muller  <muller@sourceware.org>
6868
6869         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6870         set_gdbarch_write_pc as deprecated anymore.
6871
6872 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
6873
6874         * spu-tdep.c (spu_write_pc): Add empty line after local variable
6875         declarations.
6876
6877 2013-04-13  Yao Qi  <yao@codesourcery.com>
6878
6879         * ctf.c (_initialize_ctf): Include "completer.h".
6880         Call add_target_with_completer instead of add_target.
6881
6882 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6883
6884         Fix GDB regression related to PR binutils/14813.
6885         * jit.c (mem_bfd_iovec_close): Return 0 for success.
6886         * minidebug.c (lzma_close): Add return value comment.
6887         * remote.c (remote_bfd_iovec_close): Return 0 for success.
6888         * solib-spu.c (spu_bfd_iovec_close): Likewise.
6889         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6890
6891 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6892
6893         * config.in: Regenerate.
6894
6895 2013-04-12  Tom Tromey  <tromey@redhat.com>
6896
6897         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6898         const.
6899         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6900         (struct die_reader_specs) <buffer>: Likewise.
6901         (die_reader_func_ftype): Make 'info_ptr' const.
6902         (struct line_header) <include_dirs, statement_program_start,
6903         statement_program_end>: Now const.
6904         (struct file_entry) <name>: Likewise.
6905         (struct partial_die_info) <sibling>: Likewise.
6906         (struct dwarf_block) <data>: Likewise.
6907         (dwarf2_read_section): Remove cast.
6908         (dwarf2_get_section_info): Make 'bufp' const.
6909         (read_index_from_section): Constify.
6910         (dw2_get_file_names_reader): Make 'info_ptr' const.
6911         (dw2_get_primary_filename_reader): Likewise.
6912         (read_comp_unit_head): Make 'info_ptr' and return type const.
6913         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6914         Likewise.
6915         (read_abbrev_offset): Constify.
6916         (dwarf2_create_include_psymtab): Make 'name' const.
6917         (create_debug_types_hash_table): Update.
6918         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6919         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6920         Constify.
6921         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6922         (load_partial_comp_unit_reader): Make 'info_ptr' const.
6923         (read_comp_units_from_section): Constify.
6924         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6925         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6926         const.
6927         (dwarf2_compute_name, setup_type_unit_groups): Constify.
6928         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6929         (create_dwp_hash_table, dwarf2_ranges_read)
6930         (dwarf2_record_block_ranges): Constify.
6931         (read_die_and_children, read_die_and_siblings_1)
6932         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6933         const.
6934         (read_full_die_1, read_full_die): Make 'info_ptr' const.
6935         (abbrev_table_read_table): Constify.
6936         (load_partial_dies): Make 'info_ptr' const.
6937         (read_partial_die, read_attribute_value, read_attribute): Make
6938         'info_ptr' and return type const.
6939         (read_address, read_initial_length)
6940         (read_checked_initial_length_and_offset, read_offset)
6941         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6942         const.
6943         (read_direct_string): Make 'buf' and return type const.
6944         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6945         (read_indirect_string): Make return type const.
6946         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6947         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6948         'info_ptr' const.
6949         (read_str_index): Make return type const.
6950         (add_include_dir): Make 'include_dir' const.
6951         (add_file_name): Make 'name' const.
6952         (dwarf_decode_line_header): Constify.
6953         (psymtab_include_file_name): Make return type const.
6954         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6955         (dwarf2_start_subfile): Make 'filename' const.
6956         (dwarf2_const_value_attr): Make 'bytes' const.
6957         (read_signatured_type_reader): Make 'info_ptr' const.
6958         (decode_locdesc): Constify.
6959         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6960         const.
6961         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6962         'mac_end', and return type const.
6963         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6964         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6965         type const.
6966         (per_cu_header_read_in): Constify.
6967         * symfile.h (dwarf2_get_section_info): Update.
6968
6969 2013-04-12  Tom Tromey  <tromey@redhat.com>
6970
6971         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6972
6973 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
6974
6975         * NEWS: Mention "show configuration", --configuration.
6976         * top.c (print_gdb_configuration): New function, displays the
6977         details about GDB configure-time parameters.
6978         (print_gdb_version): Mention "show configuration".
6979         * cli/cli-cmds.c (show_configuration): New function.
6980         (_initialize_cli_cmds): Add the "show configuration" command.
6981         * main.c (captured_main) <print_configuration>: New static var.
6982         <long_options>: Use it.
6983         If --configuration was given, call print_gdb_configuration.
6984
6985 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6986             Pedro Alves  <palves@redhat.com>
6987
6988         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6989         (generated_files): Add gcore.
6990         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6991         HAVE_NATIVE_GCORE_HOST.
6992         (gcore): New.
6993         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6994         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6995         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6996         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6997         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6998         Add HAVE_NATIVE_GCORE_HOST.
6999         * configure: Regenerate.
7000         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7001         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
7002         AC_CONFIG_FILES for gcore.
7003         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
7004         gdb_have_gcore.
7005         * gdb_gcore.sh: Rename to ...
7006         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
7007         and GCORE_TRANSFORM_NAME substitutions.
7008
7009         Fix parsing tabs in ${gdb_target_obs}.
7010         * configure.tgt (gdb_have_gcore): Replace case with for and if.
7011
7012 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7013
7014         * remote.c (unpush_and_perror): Add output message final dot.
7015
7016 2013-04-11  Yao Qi  <yao@codesourcery.com>
7017
7018         * tracepoint.c (tfile_interp_line): Fit parameters line and
7019         utpp in one line.
7020
7021 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
7022
7023         * solib.c (solib_map_sections): Remove code overwriting
7024         SO->SO_NAME with the bfd's filename.
7025
7026 2013-04-10  Pedro Alves  <palves@redhat.com>
7027
7028         * cli/cli-decode.c (integer_unlimited_completer): New function.
7029         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7030         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7031         completer.
7032         * cli/cli-setshow.c: Include "cli/cli-utils.h".
7033         (is_unlimited_literal): New function.
7034         (do_set_command): Handle literal "unlimited" arguments.
7035         * frame.c (_initialize_frame) <set backtrace limit>: Document
7036         "unlimited".
7037         * printcmd.c (_initialize_printcmd) <set print
7038         max-symbolic-offset>: Add help text.
7039         * record-full.c (_initialize_record_full) <set record full
7040         insn-number-max>: Likewise.
7041         * record.c (_initialize_record) <set record
7042         instruction-history-size, set record function-call-history-size>:
7043         Add help text.
7044         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7045         help text.
7046         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7047         Likewise.
7048         * source.c (_initialize_source) <set listsize>: Add help text.
7049         * utils.c (initialize_utils) <set height, set width>: Likewise.
7050         <set pagination>: Mention "set height unlimited".
7051         * valprint.c (_initialize_valprint) <set print elements, set print
7052         repeats>: Document "unlimited".
7053
7054 2013-04-10  Pedro Alves  <palves@redhat.com>
7055
7056         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7057         instead of disconnect_tracing.
7058         * infcmd.c (detach_command, disconnect_command): Call
7059         query_if_trace_running.  Adjust.
7060         * top.c: Include "tracepoint.h".
7061         (quit_target): Delete.  Contents moved ...
7062         (quit_force): ... here.  Wrap each stage of teardown in
7063         TRY_CATCH.  Call disconnect_tracing before detaching.
7064
7065 2013-04-10  Hui Zhu  <hui@codesourcery.com>
7066             Yao Qi  <yao@codesourcery.com>
7067
7068         * configure.ac: Check libbabeltrace is installed.
7069         * config.in: Regenerate.
7070         * configure: Regenerate.
7071         * Makefile.in (LIBBABELTRACE): New.
7072         (CLIBS): Add LIBBABELTRACE.
7073         * ctf.c: Include "exec.h".
7074         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7075         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7076         (ctf_save_metadata_header): Define new type aliases in
7077         metadata.
7078         (ctf_write_header): Define event type "tsv_def" and "tp_def"
7079         in metadata.  Start a new faked packet for trace status.
7080         (ctf_write_status): Write trace status to CTF.
7081         (ctf_write_uploaded_tsv): Write TSV to CTF.
7082         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7083         (ctf_write_definition_end): End the faked packet.
7084
7085         (ctx, ctf_iter, trace_dirname): New.
7086         (start_pos): New variable.
7087         (ctf_destroy, ctf_open_dir, ctf_open): New.
7088         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7089         macros.
7090         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7091         (ctf_fetch_registers, ctf_xfer_partial): New.
7092         (ctf_get_trace_state_variable_value): New.
7093         (ctf_get_tpnum_from_frame_event): New.
7094         (ctf_get_traceframe_address): New.
7095         (ctf_trace_find, ctf_has_stack): New.
7096         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7097         (ctf_get_trace_status, ctf_read_status): New.
7098         (_initialize_ctf): New.
7099         * tracepoint.c (get_tracepoint_number): New
7100         (get_uploaded_tsv): Remove 'static'.
7101         (struct traceframe_info, trace_regblock_size): Move it to ...
7102         * tracepoint.h: ... here.
7103         (get_tracepoint_number): Declare it.
7104         (get_uploaded_tsv): Declare it.
7105
7106         * NEWS: Mention new configure option.
7107
7108 2013-04-10  Pedro Alves  <palves@redhat.com>
7109             Hui Zhu  <hui@codesourcery.com>
7110
7111         * breakpoint.c (dprintf_re_set): New.
7112         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7113         to dprintf_re_set.
7114
7115 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7116
7117         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7118         Remove solib-svr4.o from the list.
7119
7120 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
7121
7122         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7123         Use gdb_assert_not_reached instead of invalid boolean expression.
7124
7125 2013-04-09  Pedro Alves  <palves@redhat.com>
7126
7127         * remote.c (unpush_and_perror): New function.
7128         (readchar, remote_serial_write): Use it.
7129
7130 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
7131
7132         * NEWS: Mention new btrace RSP packets.
7133
7134 2013-04-08  Tom Tromey  <tromey@redhat.com>
7135
7136         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7137         long.
7138
7139 2013-04-08  Tom Tromey  <tromey@redhat.com>
7140
7141         * maint.c (print_bfd_section_info): Print the section index.
7142         * symmisc.c (dump_msymbols): Print the section index.
7143
7144 2013-04-08  Tom Tromey  <tromey@redhat.com>
7145
7146         PR symtab/8424:
7147         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7148         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7149         * breakpoint.c (resolve_sal_pc): Update.
7150         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7151         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7152         (minsym_lookup_iterator_cb): Use it.
7153         (default_read_var_value): Update.
7154         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7155         Update.
7156         * infcmd.c (jump_command): Update.
7157         * linespec.c (minsym_found): Update.
7158         * maint.c (maintenance_translate_address): Update.
7159         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7160         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7161         * parse.c (write_exp_msymbol): Update.
7162         * printcmd.c (address_info): Update.
7163         * psymtab.c (find_pc_sect_psymbol): Update.
7164         (fixup_psymbol_section): Check SYMBOL_SECTION, not
7165         SYMBOL_OBJ_SECTION.
7166         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7167         Don't initialize SYMBOL_OBJ_SECTION.
7168         * spu-tdep.c (spu_catch_start): Update.
7169         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7170         * symmisc.c (dump_msymbols, print_symbol): Update.
7171         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
7172         how fallback section is computed.
7173         (fixup_symbol_section): Update.
7174         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7175         Update.
7176         (allocate_symbol, initialize_symbol, allocate_template_symbol):
7177         Initialize SYMBOL_SECTION.
7178         * symtab.h (struct general_symbol_info) <section>: Update comment.
7179         <obj_section>: Remove.
7180         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
7181         (SYMBOL_OBJFILE): New macro.
7182
7183 2013-04-08  Tom Tromey  <tromey@redhat.com>
7184
7185         * coffread.c (record_minimal_symbol): Update.
7186         * dbxread.c (record_minimal_symbol): Update.
7187         * elfread.c (record_minimal_symbol): Update.
7188         * machoread.c (macho_symtab_add_minsym): Update.
7189         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7190         Update.
7191         * minsyms.c (prim_record_minimal_symbol): Update.
7192         (prim_record_minimal_symbol_full): Remove 'bfd_section'
7193         argument.
7194         (prim_record_minimal_symbol_and_info): Likewise.
7195         * minsyms.h (prim_record_minimal_symbol_full)
7196         (prim_record_minimal_symbol_and_info): Update.
7197         * symtab.c (allocate_symbol, initialize_symbol)
7198         (allocate_template_symbol): Initialize SYMBOL_SECTION.
7199         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7200         Update.
7201
7202 2013-04-08  Tom Tromey  <tromey@redhat.com>
7203
7204         PR symtab/8423:
7205         * solib-som.c (som_solib_section_offsets): Use BFD section
7206         indices.  Set offsets for all sections.
7207         * somread.c (som_symtab_read): Compute BFD section for
7208         symbol.  Use prim_record_minimal_symbol_and_info.
7209         (som_symfile_read): Fix comment.
7210         (struct find_section_offset_arg): New.
7211         (find_section_offset, set_section_index): New functions.
7212         (som_symfile_offsets): Use set_section_index to compute
7213         section indices.
7214
7215 2013-04-08  Tom Tromey  <tromey@redhat.com>
7216
7217         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7218         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7219         gdb_bfd_section_index.
7220         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7221         New functions.
7222         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7223         Declare.
7224         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7225         Update.
7226         * objfiles.c (add_to_objfile_sections_full): New function.
7227         (add_to_objfile_sections): Use it.
7228         (build_section_table): Rewrite.
7229         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
7230         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7231         (struct objfile) <sections>: Update comment.
7232         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7233         is NULL.
7234         (ALL_OBJSECTIONS): Use it.
7235         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7236         * solib-frv.c (frv_relocate_main_executable): Update.
7237         * solib-target.c (solib_target_relocate_section_addresses):
7238         Use gdb_bfd_section_index.
7239         * symfile.c (build_section_addr_info_from_section_table):
7240         Use gdb_bfd_section_index.
7241         (build_section_addr_info_from_bfd, place_section): Likewise.
7242         * symtab.c (fixup_section): Update.
7243         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7244
7245 2013-04-08  Tom Tromey  <tromey@redhat.com>
7246
7247         * minsyms.h (struct bound_minimal_symbol): New.
7248         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7249         Remove objfile argument.
7250         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7251         Return bound_minimal_symbol.
7252         * minsyms.c (lookup_minimal_symbol_by_pc_1)
7253         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7254         Return bound_minimal_symbol.
7255         (in_gnu_ifunc_stub): Update.
7256         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7257         Remove 'objfile_p' argument.
7258         (lookup_solib_trampoline_symbol_by_pc): Update.
7259         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7260         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7261         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7262         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7263         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7264         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7265         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7266         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7267         stack.c, symtab.c, tui/tui-disasm.c: Update.
7268
7269 2013-04-08  Tom Tromey  <tromey@redhat.com>
7270
7271         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7272         Use symbol's obstack, not an objfile.
7273         * coffread.c (process_coff_symbol): Update.
7274         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7275         * jv-lang.c (add_class_symbol): Update.
7276         * mdebugread.c (new_symbol): Update.
7277         * minsyms.c (prim_record_minimal_symbol_full)
7278         (terminate_minimal_symbol_table): Update.
7279         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
7280         * stabsread.c (define_symbol, read_enum_type): Update.
7281         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7282         Handle Ada specially.
7283         (symbol_set_language): Add 'obstack' argument.
7284         (symbol_set_names): Update.
7285         (symbol_natural_name, symbol_demangled_name): Always use
7286         ada_decode_symbol.
7287         * symtab.h (struct general_symbol_info)
7288         <language_specific::obstack>: New field.
7289         <ada_mangled>: New field.
7290         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7291         (symbol_set_language): Update.
7292
7293 2013-04-08  Tom Tromey  <tromey@redhat.com>
7294
7295         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7296         Take an obstack, not an objfile.
7297         (symbol_set_names): Update.
7298         * symtab.h (symbol_set_demangled_name): Update.
7299
7300 2013-04-08  Tom Tromey  <tromey@redhat.com>
7301
7302         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7303         allocate_symbol.
7304         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7305         (read_func_scope): Call allocate_template_symbol.
7306         (new_symbol_full): Call allocate_symbol.
7307         * jit.c (finalize_symtab): Call allocate_symbol.
7308         * jv-lang.c (add_class_symbol): Call allocate_symbol.
7309         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7310         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7311         (common_block_end): Call allocate_symbol.
7312         * symtab.c (allocate_symbol, initialize_symbol)
7313         (allocate_template_symbol): New functions.
7314         * symtab.c (allocate_symbol, initialize_symbol)
7315         (allocate_template_symbol): Declare.
7316         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7317
7318 2013-04-08  Pedro Alves  <palves@redhat.com>
7319             Keith Seitz  <keiths@redhat.com>
7320
7321         * breakpoint.c (create_breakpoint): Rename
7322         "parse_condition_and_thread" parameter to "parse_arg".  Update
7323         describing comment.  If !PARSE_ARG, then error out if ARG is not
7324         the empty string after extracting the location.
7325         * breakpoint.h (create_breakpoint): Rename
7326         "parse_condition_and_thread" parameter to "parse_arg".
7327
7328 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
7329
7330         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7331
7332 2013-04-07  Yao Qi  <yao@codesourcery.com>
7333
7334         * remote.c (remote_trace_find): Change type of parameters 'addr1'
7335         and 'addr2' to CORE_ADDR.
7336         * target.c (update_current_target): Update.
7337         * target.h (struct target_ops) <to_trace_find>: Change parameter
7338         type to CORE_ADDR.
7339         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7340         'addr2' to CORE_ADDR.
7341         (tfile_trace_find): Likewise.
7342         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7343         Change local variable 'addr' to type CORE_ADDR.
7344         * tracepoint.h (tfind_1): Update declaration.
7345
7346 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
7347
7348         * windows-nat.c (windows_get_absolute_argv0): Move from here...
7349         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7350         Include main.h.
7351
7352         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7353         here...
7354         * main.h (windows_get_absolute_argv0): ...to here.
7355
7356 2013-04-05  Doug Evans  <dje@google.com>
7357
7358         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7359         (read_cutu_die_from_dwo): Add comments.
7360         (read_structure_type): Update comment.
7361         (read_enumeration_type, read_namespace_type): Update comment.
7362         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7363
7364 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7365
7366         Convert man pages to texinfo, new gdbinit.5 texinfo page.
7367         * Makefile.in (gdb.z): Remove.
7368         (install-only): Remove $(man1dir) and gdb.1 installation.
7369         * gdb.1: Remove.
7370
7371 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7372
7373         Fix compatibility with Linux kernel 3.8.3.
7374         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7375         to more inner block.  Remove parsing of NUMBER from outer block.
7376         Parse NUMBER only if KEYWORD has been identified.
7377
7378 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7379
7380         Fix variable name shadowing.
7381         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7382         filename to mapsfilename and update its uses.
7383
7384 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
7385
7386         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7387         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7388         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7389         details of the problem.
7390
7391 2013-04-04  Pedro Alves  <palves@redhat.com>
7392             Hui Zhu  <hui@codesourcery.com>
7393
7394         * breakpoint.c (validate_commands_for_breakpoint): If validating a
7395         tracepoint, reset its STEP_COUNT and call validate_actionline.
7396
7397 2013-04-03  Doug Evans  <dje@google.com>
7398
7399         * dwarf2read.c (read_die_and_siblings_1): Renamed from
7400         read_die_and_siblings.
7401         (read_die_and_siblings): New function.
7402         (read_cutu_die_from_dwo): Dump die if requested.
7403         (read_die_and_children): Call read_full_die_1 and
7404         read_die_and_siblings_1.
7405         (read_full_die): Dump die if requested.
7406
7407         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7408
7409         * dwarf2read.c (struct dwo_file): New member comp_dir.
7410         Rename member name to dwo_name.  All uses updated.
7411         (hash_dwo_file): Include comp_dir in computation.
7412         (eq_dwo_file): Ditto.
7413         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
7414         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7415
7416         * psymtab.c (read_psymtabs_with_fullname): Don't call
7417         psymtab_to_fullname if the basenames are different.
7418
7419 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7420
7421         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7422         New entry about "fullname" presence.
7423
7424 2013-04-03  Pedro Alves  <palves@redhat.com>
7425
7426         * NEWS: Mention x86_64/Cygwin as new native configuration.
7427
7428 2013-04-02  Doug Evans  <dje@google.com>
7429
7430         * dwarf2read.c (read_structure_type): Fix typo in comment.
7431
7432 2013-04-02  Pedro Alves  <palves@redhat.com>
7433
7434         * NEWS: Mention "set/show debug aarch64", "set/show debug
7435         coff-pe-read" and "set/show debug mach-o".
7436
7437 2013-04-02  Pedro Alves  <palves@redhat.com>
7438
7439         * NEWS: Mention "set/show remote trace-buffer-size-packet".
7440
7441 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
7442
7443         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7444         gdb_string.h is now in common/.
7445
7446 2013-04-02  Pedro Alves  <palves@redhat.com>
7447
7448         * NEWS: Move "set debug notification" and "set trace-buffer-size"
7449         under "New options".
7450
7451 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7452
7453         Revert this patch:
7454         PR gdb/15275
7455         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7456
7457 2013-04-02  Pedro Alves  <palves@redhat.com>
7458
7459         PR gdb/15275
7460
7461         * remote.c (send_interrupt_sequence): Use remote_serial_write.
7462         (remote_serial_write): New function.
7463         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7464
7465 2013-04-01  Jiong Wang  <jiwang@tilera.com>
7466
7467         * NEWS: Mention TILE-Gx in "New native configurations" and
7468         "New targets" sections.
7469
7470 2013-04-01  Doug Evans  <dje@google.com>
7471
7472         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7473         (process_enumeration_scope): Simplify.
7474
7475         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7476         type_unit_group ...
7477         (struct signatured_type): ... to here.
7478         (sig_type_ptr): New typedef.
7479         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
7480         out of union 't'.  All uses updated.
7481         (dw2_get_file_names_reader): Assert not called for a type unit.
7482         (dw2_get_file_names): Assert not called for a type unit or type
7483         unit group.
7484         (build_type_psymtabs_reader): Assert called for a type unit.
7485         (build_type_psymtab_dependencies): Assert called for a type unit group.
7486
7487         * dwarf2read.c (free_dwo_file): Add comment.
7488         (dwarf2_per_objfile_free): Unref dwp bfd.
7489
7490 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7491
7492         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7493         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7494         (read_pe_exported_syms): Remove unused 'exportix'.
7495         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7496         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7497         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7498
7499 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7500
7501         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7502         (print_it_watchpoint): Remove unused 'bl'.
7503         (say_where): Remove unused 'uiout'.
7504         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7505         (bkpt_breakpoint_hit): Remove unused 'b'.
7506         (internal_bkpt_print_it): Remove unused 'uiout'.
7507         * buildsym.c (augment_type_symtab): Remove unused 'i'.
7508
7509 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7510
7511         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7512         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7513
7514 2013-03-29  Doug Evans  <dje@google.com>
7515
7516         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7517         Delete arg is_dwp.  All callers updated.
7518         (open_dwp_file): New function.
7519         (open_and_init_dwp_file): Call it.
7520         (get_dwp_file): New function.
7521         (lookup_dwo_cutu): Call it.
7522
7523         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7524         unnecessary, cleanup.
7525
7526         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7527
7528         * dwarf2read.c (read_cutu_die_from_dwo): New function.
7529         (lookup_dwo_unit): New function.
7530         (init_cutu_and_read_dies): Move DWO handling to new functions.
7531
7532         * dwarf2read.c (struct signatured_type): Tweak comment.
7533         (struct dwo_unit): Tweak comment.
7534         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
7535         (create_dwo_debug_info_hash_table): Tweak comment.
7536         (dwarf2_per_cu_offset_and_type): Tweak comment.
7537
7538         * dwarf2read.c (lookup_signatured_type): Remove complaint about
7539         missing .debug_types section.
7540
7541 2013-03-29  Yao Qi  <yao@codesourcery.com>
7542
7543         * corelow.c: Include "completer.h".
7544         (_initialize_corelow): Call add_target_with_completer with
7545         argument 'filename_completer'.
7546         * tracepoint.c: Likewise.
7547         * exec.c (_initialize_exec): Likewise.
7548         * target.c (add_target): Rename to ...
7549         (add_target_with_completer): ... this.  Call set_cmd_completer
7550         if parameter completer is not NULL.
7551         (add_target): New.
7552         * target.h: Include "command.h".
7553         (add_target_with_completer): Declare it.
7554
7555 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
7556
7557         * coffread.c (is_import_fixup_symbol): New function.
7558         (record_minimal_symbol): Use is_import_fixup_symbol to
7559         detect import fixup symbols, and discard them.
7560
7561 2013-03-28  Doug Evans  <dje@google.com>
7562
7563         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7564         types hash table until we know we need it.
7565
7566         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7567         index numbers.
7568
7569         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7570         All callers updated.
7571         (dw2_print_stats): Print #read CUs too.
7572         (dump_die_shallow): Print signatured types better.
7573
7574         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7575         info_or_types_section to section.  All uses updated.
7576         (struct dwo_unit): Ditto.
7577
7578 2013-03-28  Pedro Alves  <palves@redhat.com>
7579
7580         * NEWS (New options): New section.
7581         (New options): Mention set/show remote trace-status-packet.
7582         * remote.c (PACKET_qTStatus): New enumeration value.
7583         (remote_get_trace_status): Skip sending qTStatus if the packet is
7584         disabled.  Use packet_ok.
7585         (_initialize_remote): Register a configuration command for
7586         qTStatus packet.
7587
7588 2013-03-28  Doug Evans  <dje@google.com>
7589
7590         * symfile.c (find_separate_debug_file): Add comment.
7591         (terminate_after_last_dir_separator): Tweak comment.
7592
7593         * dwarf2read.c (create_partial_symtab): Add forward decl.
7594         (create_partial_symtab): Move to be closer to other psymtab functions.
7595         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7596
7597         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7598         (compute_symtab_includes): Remove unnecessary forward declaration.
7599         (die_needs_namespace): Add comment marking group of functions for
7600         dwarf2 name computation.
7601
7602         * typeprint.c (_initialize_typeprint): Improve type help text.
7603
7604         * python/python.c (finish_python_initialization): Provide suggestion
7605         for how to tell gdb to find its python files.
7606
7607 2013-03-28  Pedro Alves  <palves@redhat.com>
7608
7609         PR gdb/15294
7610
7611         * source.c (_initialize_source): Change back "set listsize" to an
7612         integer command.
7613
7614 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
7615
7616         PR gdb/15275
7617         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7618
7619 2013-03-27  Pedro Alves  <palves@redhat.com>
7620
7621         * top.c (history_size): Rename to ...
7622         (history_size_setshow_var): ... this.  Add comment.
7623         (show_commands): Use readline's 'history_length' instead of
7624         computing the history length by calling history_get in a loop.
7625         (set_history_size_command): Error out for sizes over INT_MAX.
7626         Restore previous history size on invalid size.
7627         (init_history): If HISTSIZE is negative, leave the history size as
7628         zero.  Add comments.
7629         (init_main): Adjust.
7630
7631 2013-03-27  Pedro Alves  <palves@redhat.com>
7632
7633         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7634         coff_pe_read" command to "set debug coff-pe-read".
7635
7636 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
7637
7638         * record.c (command_size_to_target_size): Fix size comparison.
7639         Change parameter type from pointer to integer to integer.
7640         Update all users.
7641
7642 2013-03-27  Pierre Muller  <muller@sourceware.org>
7643
7644         * windows-nat.c (handle_output_debug_string): Avoid typecast
7645         from integer of different size warning.
7646
7647 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
7648
7649         * windows-nat.c (handle_output_debug_string): Add empty line
7650         after local block variable definition.
7651
7652 2013-03-26  Pedro Alves  <palves@redhat.com>
7653
7654         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7655         (net_open): Make 'polls' local unsigned.
7656
7657 2013-03-26  Pedro Alves  <palves@redhat.com>
7658
7659         * remote.c (_initialize_remote): Make "set remoteaddresssize"
7660         a zuinteger command instead of uinteger.
7661
7662 2013-03-26  Pedro Alves  <palves@redhat.com>
7663
7664         * record-full.c (record_full_insn_num): Make it unsigned.
7665         (record_full_check_insn_num, record_full_message)
7666         (record_full_registers_change, record_full_xfer_partial): Remove
7667         record_full_insn_max_num check (it's always != 0).
7668         (record_full_info, record_full_restore): Use %u as format string.
7669         (): Use %u as format string.
7670         (set_record_full_insn_max_num): Remove record_full_insn_max_num
7671         check (it's always != 0).
7672
7673 2013-03-26  Pedro Alves  <palves@redhat.com>
7674
7675         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7676         and "set dcache size" commands zuinteger instead of uinteger.
7677
7678 2013-03-26  Pedro Alves  <palves@redhat.com>
7679
7680         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7681         command zuinteger instead of uinteger.
7682
7683 2013-03-26  Pedro Alves  <palves@redhat.com>
7684
7685         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7686         zuinteger instead of uinteger.
7687
7688 2013-03-26  Pedro Alves  <palves@redhat.com>
7689
7690         * record.c (record_insn_history_size_setshow_var)
7691         (record_call_history_size_setshow_var): New globals.
7692         (command_size_to_target_size): New function.
7693         (cmd_record_insn_history, cmd_record_call_history): Use
7694         command_size_to_target_size instead of cast.
7695         (validate_history_size, set_record_insn_history_size)
7696         (set_record_call_history_size): New functions.
7697         (_initialize_record): Install set_record_insn_history_size and
7698         set_record_call_history_size as "set" hooks of "set record
7699         instruction-history-size" and "set record
7700         function-call-history-size".
7701
7702 2013-03-26  Pedro Alves  <palves@redhat.com>
7703
7704         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7705         use with history_max_entries use.  Remove FIXME note.
7706
7707 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
7708
7709         * record-btrace.c (record_btrace_close): Call
7710         record_btrace_auto_disable.
7711
7712 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
7713
7714         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7715
7716 2013-03-25  Doug Evans  <dje@google.com>
7717
7718         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7719
7720 2013-03-25  Tom Tromey  <tromey@redhat.com>
7721
7722         PR symtab/11462:
7723         * c-exp.y (exp): Add new productions for destructors after '.' and
7724         '->'.
7725         (write_destructor_name): New function.
7726
7727 2013-03-25  Tom Tromey  <tromey@redhat.com>
7728
7729         PR c++/9197:
7730         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7731         value_struct_elt, not lookup_struct_elt_type.
7732         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7733         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7734         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7735
7736 2013-03-25  Yao Qi  <yao@codesourcery.com>
7737
7738         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7739         instead of '_mkdir'.
7740
7741 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
7742
7743         * windows-nat.c (windows_get_absolute_argv0): New function.
7744         * windows-nat.h: Add its prototype.
7745
7746         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7747         Use IS_DIR_SEPARATOR instead of looking for a character inside
7748         SLASH_STRING.  Include filenames.h.
7749         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7750         relocate_gdb_directory works when passed gdb_program_name.
7751         Include windows-nat.h.
7752
7753 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7754
7755         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7756         * remote.c (trace_error): Remove the special handling of '2'.
7757         (readchar) <SERIAL_EOF>
7758         (readchar) <SERIAL_ERROR>
7759         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7760         (remote_get_trace_status): Call throw_exception if EX is
7761         TARGET_CLOSE_ERROR.
7762         * utils.c (perror_with_name): Rename to ...
7763         (throw_perror_with_name): ... here.  New parameter errcode, describe it
7764         in the function comment.
7765         (perror_with_name): New function wrapper.
7766         * utils.h (enum errors): New stub declaration.
7767         (throw_perror_with_name): New declaration.
7768
7769 2013-03-22  Pedro Alves  <palves@redhat.com>
7770             Yao Qi  <yao@codesourcery.com>
7771             Mark Kettenis  <kettenis@gnu.org>
7772
7773         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7774         Don't let the user set the value to UINT_MAX directly.
7775         <var_integer>: Don't let the user set the value to INT_MAX
7776         directly.
7777
7778 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7779
7780         * remote.c (remote_unpush_target): New function.
7781         (remote_open_1): Remove two pop_target calls, update one comment, add
7782         comment to target_preopen call.  Replace pop_target call by
7783         remote_unpush_target call.
7784         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7785         pop_target calls by remote_unpush_target calls.
7786
7787 2013-03-22  Pedro Alves  <palves@redhat.com>
7788
7789         * linux-nat.c (linux_child_follow_fork): Don't call
7790         linux_enable_event_reporting.
7791         (linux_handle_extended_wait): Don't call
7792         linux_enable_event_reporting.
7793
7794 2013-03-22  Pedro Alves  <palves@redhat.com>
7795
7796         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7797         use it to rewrite the trampoline buffers with type gdb_byte[], and
7798         undefine the macro.  Remove char* cast.
7799
7800 2013-03-21  Doug Evans  <dje@google.com>
7801
7802         New commands "mt set per-command {space,time,symtab} {on,off}".
7803         * NEWS: Add entry.
7804         * event-top.c: #include "maint.h".
7805         * main.c: #include "maint.h".
7806         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7807         timeval-utils.h, maint.h, cli/cli-setshow.h.
7808         (per_command_time, per_command_space): New static globals.
7809         (per_command_symtab): New static global.
7810         (per_command_setlist, per_command_showlist): New static globals.
7811         (struct cmd_stats): Move here from utils.c.
7812         (set_per_command_time): Renamed from set_display_time in utils.c
7813         and moved here.  All callers updated.
7814         (set_per_command_space): Renamed from set_display_space in utils.c
7815         and moved here.  All callers updated.
7816         (count_symtabs_and_blocks): New function.
7817         (report_command_stats): Moved here from utils.c.  Add support for
7818         printing symtab stats.  Only print data if enabled before command
7819         executed.
7820         (make_command_stats_cleanup): Ditto.
7821         (sert_per_command_cmd, show_per_command_cmd): New functions.
7822         (_initialize_maint_cmds): Add new commands
7823         mt set per-command {space,time,symtab} {on,off}.
7824         * maint.h: New file.
7825         * top.c: #include "maint.h".
7826         * utils.c (reset_prompt_for_continue_wait_time): New function.
7827         (get_prompt_for_continue_wait_time): New function.
7828         * utils.h (reset_prompt_for_continue_wait_time): Declare
7829         (get_prompt_for_continue_wait_time): Declare.
7830         (make_command_stats_cleanup): Moved to maint.h.
7831         (set_display_time, set_display_space): Moved to maint.h and renamed
7832         to set_per_command_time, set_per_command_space.
7833         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7834         parse_binary_operation and made non-static.  Don't call error,
7835         just return an error marker.  All callers updated.
7836         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7837
7838 2013-03-21  Tom Tromey  <tromey@redhat.com>
7839
7840         * symfile.c (alloc_section_addr_info): Update header.  Don't set
7841         'num_sections' field.
7842         (build_section_addr_info_from_section_table): Set 'num_sections'.
7843         (build_section_addr_info_from_bfd): Likewise.
7844         (build_section_addr_info_from_objfile): Remove dead loop
7845         condition.
7846         (free_section_addr_info): Unconditionally call xfree.
7847         (relative_addr_info_to_section_offsets, addrs_section_sort)
7848         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7849         condition.
7850         (syms_from_objfile_1): Remove dead 'if' condition.  Check
7851         'num_sections'.
7852         (add_symbol_file_command): Set 'num_sections'.
7853         * symfile-mem.c (symbol_file_add_from_memory): Set
7854         'num_sections'.
7855         * somread.c (som_symfile_offsets): Remove dead loop condition.
7856         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7857         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7858
7859 2013-03-21  Tom Tromey  <tromey@redhat.com>
7860
7861         * tracepoint.h (decode_agent_options): Add 'trace_string'
7862         argument.
7863         * tracepoint.c (decode_agent_options): Add 'trace_string'
7864         argument.
7865         (validate_actionline): Update.
7866         (collect_symbol): Add 'trace_string' argument.
7867         (struct add_local_symbols_data) <trace_string>: New field.
7868         (do_collect_symbol): Update.
7869         (add_local_symbols): Add 'trace_string' argument.
7870         (encode_actions_1): Update.
7871         (trace_dump_actions): Update.
7872         * dwarf2loc.c (access_memory): Update.
7873         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7874         * ax-general.c (new_agent_expr): Update.
7875         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7876         (gen_trace_for_return_address): Add argument.
7877         (trace_kludge, trace_string_kludge): Remove.
7878         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7879         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7880         (gen_trace_for_var): Add 'trace_string' argument.
7881         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7882         (gen_printf, agent_eval_command_one): Update.
7883
7884 2013-03-21  Tom Tromey  <tromey@redhat.com>
7885
7886         PR exp/15109:
7887         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7888         Handle FILENAME token.
7889
7890 2013-03-21  Tom Tromey  <tromey@redhat.com>
7891
7892         * c-exp.y (YYPRINT): Define.
7893         (c_print_token): New function.
7894
7895 2013-03-21  Tom Tromey  <tromey@redhat.com>
7896
7897         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7898
7899 2013-03-21  Yao Qi  <yao@codesourcery.com>
7900
7901         * ctf.c: Include "gdb_stat.h".
7902         [USE_WIN32API]: New macro 'mkdir'.
7903         (ctf_start): Use permission bits macros if they are defined.
7904
7905 2013-03-20  Keith Seitz  <keiths@redhat.com>
7906
7907         * breakpoint.h (struct breakpoint): Add comment to
7908         extra_string indicating that this member is mallod'd.
7909         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7910
7911 2013-03-20  Pedro Alves  <palves@redhat.com>
7912
7913         PR gdb/15289
7914
7915         * cli/cli-setshow.c (do_set_command)
7916         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7917         the result of parsing the command argument.  Throw error if the
7918         value is greater than UINT_MAX.  Print the invalid value with
7919         plongest.
7920         <var_integer, var_zinteger>: Use LONGEST for variable holding the
7921         result of parsing the command argument.  Throw error if the value
7922         is greater than INT_MAX, not greater or equal.  Also throw error
7923         if the value is less than INT_MIN.  Print the invalid value with
7924         plongest.
7925         <var_zuinteger_unlimited>: Throw error if the value is greater
7926         than INT_MAX, not greater or equal.
7927         (do_show_command) <var_integer, var_zinteger,
7928         var_zuinteger_unlimited>: Use %d for printing int, not %u.
7929
7930 2013-03-20  Tom Tromey  <tromey@redhat.com>
7931
7932         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7933         if possible.
7934         * dwarf2read.c (read_func_scope): Remove old FIXME.
7935         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7936         not LOC_COMPUTED.
7937         * findvar.c (symbol_read_needs_frame, default_read_var_value):
7938         Unconditionally call via computed ops, if possible.
7939         * printcmd.c (address_info): Unconditionally call via computed ops,
7940         if possible.
7941         * stack.c (read_frame_arg): Unconditionally call via computed ops,
7942         if possible.
7943         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7944         * tracepoint.c (scope_info): Unconditionally call via computed ops,
7945         if possible.
7946
7947 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7948             Tom Tromey  <tromey@redhat.com>
7949
7950         PR symtab/8421:
7951         * coffread.c (coff_register_index): New global.
7952         (process_coff_symbol, coff_read_enum_type): Set
7953         SYMBOL_ACLASS_INDEX.
7954         (_initialize_coffread): Initialize new global.
7955         * dwarf2loc.c (locexpr_find_frame_base_location)
7956         (dwarf2_block_frame_base_locexpr_funcs)
7957         (loclist_find_frame_base_location)
7958         (dwarf2_block_frame_base_loclist_funcs): New.
7959         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7960         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7961         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7962         (dwarf2_block_frame_base_loclist_funcs): New.
7963         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7964         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7965         globals.
7966         (read_func_scope): Update.
7967         (fixup_go_packaging, mark_common_block_symbol_computed)
7968         (var_decode_location, new_symbol_full, dwarf2_const_value):
7969         Set SYMBOL_ACLASS_INDEX.
7970         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
7971         (_initialize_dwarf2_read): Initialize new globals.
7972         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7973         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7974         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7975         globals.
7976         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7977         (_initialize_mdebugread): Initialize new globals.
7978         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7979         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7980         (stab_register_index, stab_regparm_index): New globals.
7981         (define_symbol, read_enum_type, common_block_end): Set
7982         SYMBOL_ACLASS_INDEX.
7983         (_initialize_stabsread): Initialize new globals.
7984         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7985         globals.
7986         (MAX_SYMBOL_IMPLS): New define.
7987         (register_symbol_computed_impl, register_symbol_block_impl)
7988         (register_symbol_register_impl)
7989         (initialize_ordinary_address_classes): New functions.
7990         (_initialize_symtab): Call initialize_ordinary_address_classes.
7991         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7992         (struct symbol_impl): New.
7993         (SYMBOL_ACLASS_BITS): New define.
7994         (struct symbol) <aclass, ops>: Remove fields.
7995         <aclass_index>: New field.
7996         (symbol_impls): Declare.
7997         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7998         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7999         (register_symbol_computed_impl, register_symbol_block_impl)
8000         (register_symbol_register_impl): Declare.
8001         (struct symbol_computed_ops): Add location_has_loclist.
8002         (struct symbol_block_ops): New.
8003         (SYMBOL_BLOCK_OPS): New.
8004         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8005
8006 2013-03-20  Tom Tromey  <tromey@redhat.com>
8007
8008         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8009         (print_partial_symbols, recursively_search_psymtabs): Use
8010         PSYMBOL_CLASS.
8011
8012 2013-03-20  Pierre Muller  <muller@sourceware.org>
8013
8014         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8015         addtion, subtraction, multiplication and division binary operator.
8016
8017 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8018
8019         Code cleanup.
8020         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8021         * bsd-kvm.c (bsd_kvm_close): Likewise.
8022         * bsd-uthread.c (bsd_uthread_close): Likewise.
8023         * corelow.c (core_close): Likewise.
8024         (core_close_cleanup): Remove parameter quitting from a caller.
8025         * event-top.c (async_disconnect): Likewise.
8026         * exec.c (exec_close_1): Remove parameter quitting.
8027         * go32-nat.c (go32_close): Likewise.
8028         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
8029         parameter quitting from a caller.
8030         * mips-linux-nat.c (super_close): Remove parameter quitting from the
8031         variable.
8032         (mips_linux_close): Remove parameter quitting.  Remove parameter
8033         quitting from a caller.
8034         * monitor.c (monitor_close): Remove parameter quitting.
8035         * monitor.h (monitor_close): Likewise.
8036         * record-btrace.c (record_btrace_close): Likewise.
8037         * record-full.c (record_full_close): Likewise.
8038         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8039         it also from fprintf_unfiltered.
8040         * remote-mips.c (mips_close): Remove parameter quitting.
8041         (mips_detach): Remove parameter quitting from a caller.
8042         * remote-sim.c (gdbsim_close): Remove parameter quitting.
8043         (gdbsim_close): Remove duplicate function comment.  Remove parameter
8044         quitting and remove it also from printf_filtered.
8045         * remote.c (remote_close): Remove parameter quitting.
8046         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8047         * target.c (update_current_target): Remove parameter int from to_close
8048         de_fault.
8049         (push_target, unpush_target, pop_target): Remove parameter quitting from
8050         a caller.
8051         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8052         Remove parameter quitting from a caller.
8053         (target_preopen): Remove parameter quitting from a caller.
8054         (target_close): Remove parameter quitting.  Remove parameter quitting
8055         from a caller two times.  Remove parameter quitting also from
8056         fprintf_unfiltered.
8057         * target.h (struct target_ops): Remove parameter quitting and as int
8058         from fields to_xclose and to_close.
8059         (extern struct target_ops current_target):
8060         (target_close, pop_all_targets): Remove parameter quitting.  Update the
8061         comment.
8062         (pop_all_targets_above): Remove parameter quitting.
8063         * top.c (quit_target): Remove parameter quitting from a caller.
8064         * tracepoint.c (tfile_close): Remove parameter quitting.
8065         * windows-nat.c (windows_close): Remove parameter quitting.
8066
8067 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
8068
8069         * windows-nat.c (handle_output_debug_string): Replace call
8070         to string_to_core_addr with call to strtoull.
8071
8072 2013-03-20  Yao Qi  <yao@codesourcery.com>
8073
8074         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8075         and write it to CTF metadata.
8076
8077 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
8078
8079         * windows-nat.c (handle_output_debug_string): Change type of n to
8080         SIZE_T to avoid crash on 64 bit systems.
8081
8082 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
8083
8084         * python/python-internal.h (HAVE_SNPRINTF)
8085         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8086         about redefinition of snprintf by pyerrors.h.
8087
8088 2013-03-15  Steve Ellcey  <sellcey@mips.com>
8089
8090         * remote-sim.c (sim_command_completer): Make char arguments const.
8091
8092 2013-03-15  Tom Tromey  <tromey@redhat.com>
8093
8094         PR c++/15116:
8095         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8096
8097 2013-03-14  Tom Tromey  <tromey@redhat.com>
8098
8099         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8100         New fields.
8101         (get_file_crc): Move from symfile.c.
8102         (gdb_bfd_crc): New function.
8103         * gdb_bfd.h (gdb_bfd_crc): Declare.
8104         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8105         * symfile.c (get_file_crc): Move to gdb_bfd.c.
8106         (separate_debug_file_exists): Use gdb_bfd_crc.
8107
8108 2013-03-14  Tom Tromey  <tromey@redhat.com>
8109
8110         * symfile.c (get_debug_link_info): Remove.
8111         (find_separate_debug_file_by_debuglink): Use
8112         bfd_get_debug_link_info.
8113
8114 2013-03-14  Tom Tromey  <tromey@redhat.com>
8115
8116         * symtab.c (error_in_psymtab_expansion): New function.
8117         (lookup_symbol_aux_quick)
8118         (basic_lookup_transparent_type_quick): Remove "last resort"
8119         code.  Use error_in_psymtab_expansion.
8120
8121 2013-03-14  Doug Evans  <dje@google.com>
8122             Jan Kratochvil  <jan.kratochvil@redhat.com>
8123
8124         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8125         any successful compare_filenames_for_search or FILENAME_CMP.
8126         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8127         * symtab.c (iterate_over_some_symtabs): Likewise.
8128
8129 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8130
8131         * source.c (print_source_lines_base): Make a local copy of
8132         symtab_to_fullname.
8133
8134 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
8135             Jan Kratochvil  <jan.kratochvil@redhat.com>
8136
8137         * source.c (print_source_lines_base): Suppress "file" for TUI.
8138
8139 2013-03-14  Keith Seitz  <keiths@redhat.com>
8140             Alan Matsuoka  <alanm@redhat.com>
8141
8142         PR c++/15203
8143         PR c++/15210
8144         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8145         TYPE_CODE_METHOD.
8146         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8147         symbols.
8148
8149 2013-03-14  Yao Qi  <yao@codesourcery.com>
8150
8151         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8152         status to tfile if trace is stopped by command 'tstop'.
8153
8154 2013-03-14  Yao Qi  <yao@codesourcery.com>
8155
8156         * tracepoint.c (tfile_write_status): Write trace notes and user
8157         name into tfile if they are not NULL.
8158
8159 2013-03-14  Hui Zhu  <hui@codesourcery.com>
8160             Yao Qi  <yao@codesourcery.com>
8161
8162         * Makefile.in (REMOTE_OBS): Add ctf.o.
8163         (SFILES): Add ctf.c.
8164         (HFILES_NO_SRCDIR): Add ctf.h.
8165         * ctf.c, ctf.h: New files.
8166         * tracepoint.c: Include 'ctf.h'.
8167         (collect_pseudocommand): Remove static.
8168         (trace_save_command): Parse option "-ctf".
8169         Produce different trace file writers per option.
8170         Adjust output message.
8171         (trace_save_tfile, trace_save_ctf): New.
8172         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8173         * mi/mi-main.c: Include 'ctf.h'.
8174         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
8175         trace_save_tfile or trace_save_ctf.
8176         * NEWS: Mention these changes.
8177
8178 2013-03-14  Yao Qi  <yao@codesourcery.com>
8179
8180         * tracepoint.c (trace_file_writer_xfree): New.
8181         (struct tfile_writer_data): New.
8182         (tfile_dtor, tfile_can_target_save, tfile_start): New.
8183         (tfile_write_header, tfile_write_regblock_type): New.
8184         (tfile_write_status, tfile_write_uploaded_tsv): New.
8185         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8186         (tfile_write_raw_data, (tfile_end): New.
8187         (tfile_write_ops): New global variable.
8188         (TRACE_WRITE_R_BLOCK): New macro.
8189         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8190         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8191         (TRACE_WRITE_V_BLOCK): New macro.
8192         (trace_save): Add extra one parameter WRITER.  Make it static.
8193         Use WRITER to writer trace.
8194         (tfile_trace_file_writer_new): New.
8195         (trace_save_command): Caller update.
8196         (trace_save_tfile): Write trace data in TFILE format.
8197         * tracepoint.h (struct trace_frame_write_ops): New.
8198         (struct trace_file_write_ops): New.
8199         (struct trace_file_writer): New.
8200         (trace_save): Remove its declaration.
8201         (trace_save_tfile): Declare it.
8202         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8203         instead of trace_save.
8204
8205 2013-03-13  Pedro Alves  <palves@redhat.com>
8206
8207         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8208
8209 2013-03-13  Pedro Alves  <palves@redhat.com>
8210
8211         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8212         commented out code.
8213         * demangle.c (current_demangling_style_string): Make it const.
8214         (set_demangling_command): Assert the demangling style is known.
8215         Remove all handling of unknown styles.  Set
8216         'current_demangling_style_string' to an element of the
8217         demangling_style_names array.
8218         (set_demangling_style): Delete.
8219         (_initialize_demangler): Set current_demangling_style_string to the
8220         element of the demangling_style_names array that corresponds to
8221         the default demangling style.  Remove FIXME note.  Don't call
8222         set_demangling_style.
8223         * gdb-demangle.h (set_demangling_style): Remove declaration.
8224
8225 2013-03-13  Pedro Alves  <palves@redhat.com>
8226
8227         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8228         fields const.
8229         (ada_make_symbol_completion_list): Make "text0" parameter const.
8230         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8231         * breakpoint.c (condition_completer): Make "text" and "word"
8232         parameters const.  Adjust.
8233         (check_tracepoint_command): Adjust to validate_actionline
8234         prototype change.
8235         (catch_syscall_completer): Make "text" and "word" parameters
8236         const.
8237         * cli/cli-cmds.c (show_user): Make "comname" local const.
8238         (valid_command_p): Make "command" parameter const.
8239         (alias_command): Make "alias_prefix" and "command_prefix" locals
8240         const.
8241         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8242         (add_alias_cmd): Make "name" and "oldname" parameters const.
8243         Adjust.  No longer make copy of OLDNAME.
8244         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8245         (add_setshow_cmd_full, add_setshow_enum_cmd)
8246         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8247         (add_setshow_filename_cmd, add_setshow_string_cmd)
8248         (add_setshow_string_noescape_cmd)
8249         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8250         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8251         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8252         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8253         Make "name" parameter const.
8254         (help_cmd): Rename "command" parameter to "arg".  New const local
8255         "command".
8256         (find_cmd): Make "command" parameter const.
8257         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
8258         deprecated_cmd_warning prototype change.
8259         (undef_cmd_error): Make "cmdtype" parameter const.
8260         (lookup_cmd): Make "line" parameter const.
8261         (deprecated_cmd_warning): Change type of "text" parameter to
8262         pointer to const char, from pointer to pointer to char.  Adjust.
8263         (lookup_cmd_composition): Make "text" parameter const.
8264         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8265         parameters const.
8266         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8267         const.
8268         * cli/cli-script.c (validate_comname): Make "tem" local const.
8269         (define_command): New const local "tem_c".  Use it in calls to
8270         lookup_cmd.
8271         (document_command): Make "tem" and "comfull" locals const.
8272         (show_user_1): Make "prefix" and "name" parameters const.
8273         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8274         const.
8275         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8276         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8277         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8278         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8279         (complete_on_enum, add_setshow_enum_cmd)
8280         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8281         (add_setshow_filename_cmd, add_setshow_string_cmd)
8282         (add_setshow_string_noescape_cmd)
8283         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8284         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8285         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8286         Change prototypes, constifying strings.
8287         * completer.c (noop_completer, filename_completer): Make "text"
8288         and "prefix" parameters const.
8289         (location_completer, expression_completer)
8290         (complete_line_internal): Make "text" and "prefix" parameters
8291         const and adjust.
8292         (command_completer, signal_completer): Make "text" and "prefix"
8293         parameters const.
8294         * completer.h (noop_completer, filename_completer)
8295         (expression_completer, location_completer, command_completer)
8296         (signal_completer): Change prototypes.
8297         * corefile.c (complete_set_gnutarget): Make "text" and "word"
8298         parameters const.
8299         * cp-abi.c (cp_abi_completer): Likewise.
8300         * expression.h (parse_expression_for_completion): Change
8301         prototype.
8302         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8303         parameters const.
8304         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8305         * infrun.c (handle_completer): Make "text" and "word" parameters
8306         const.
8307         * interps.c (interpreter_completer): Make "text" and "word"
8308         parameters const.
8309         * language.h (struct language_defn)
8310         <la_make_symbol_completion_list>: Make "text" and "word"
8311         parameters const.
8312         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8313         (parse_exp_in_context): Rename to ...
8314         (parse_exp_in_context_1): ... this.
8315         (parse_exp_in_context): Reimplement, with const hack from
8316         parse_exp_1.
8317         (parse_expression_for_completion): Make "string" parameter const.
8318         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8319         to pointer to const char.  Adjust.
8320         (print_command_1): Make "exp" parameter const.
8321         (output_command): Rename to ...
8322         (output_command_const): ... this.  Make "exp" parameter const.
8323         (output_command): Reimplement.
8324         (x_command): Adjust.
8325         (display_command): Rename "exp" parameter to "arg".  New "exp"
8326         local, const version of "arg".
8327         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8328         "cmd_name" local const.
8329         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8330         call.
8331         (cmdpy_completer): Make "text" and "word" parameters const.
8332         (gdbpy_parse_command_name): Make "prefix_text2" local const.
8333         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8334         const.
8335         * remote.c (_initialize_remote): Make "cmd_name" local const.
8336         * symtab.c (language_search_unquoted_string): Make "text" and "p"
8337         parameters const.  Adjust.
8338         (completion_list_add_fields): Make "sym_text", "text" and "word"
8339         parameters const.
8340         (struct add_name_data) <sym_text, text, word>: Make fields const.
8341         (default_make_symbol_completion_list_break_on): Make "text" and
8342         "word" parameters const.  Adjust locals.
8343         (default_make_symbol_completion_list)
8344         (make_symbol_completion_list, make_symbol_completion_type)
8345         (make_symbol_completion_list_fn): Make "text" and "word"
8346         parameters const.
8347         (make_file_symbol_completion_list): Make "text", "word" and
8348         "srcfile" parameters const.  Adjust locals.
8349         (add_filename_to_list): Make "text" and "word" parameters const.
8350         (struct add_partial_filename_data) <text, word>: Make fields
8351         const.
8352         (make_source_files_completion_list): Make "text" and "word"
8353         parameters const.
8354         * symtab.h (default_make_symbol_completion_list_break_on)
8355         (default_make_symbol_completion_list, make_symbol_completion_list)
8356         (make_symbol_completion_type enum type_code)
8357         (make_symbol_completion_list_fn make_file_symbol_completion_list)
8358         (make_source_files_completion_list): Change prototype.
8359         * top.c (execute_command): Adjust to pass pointer to pointer to
8360         const char to lookup_cmd, and to deprecated_cmd_warning prototype
8361         change.
8362         (set_verbose): Make "cmdname" local const.
8363         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8364         and adjust.
8365         (validate_actionline): Make "line" parameter a pointer to const
8366         char, and adjust.
8367         (encode_actions_1): Make "action_exp" local const, and adjust.
8368         (encode_actions): Adjust.
8369         (replace_comma): Delete.
8370         (trace_dump_actions): Make "action_exp" and "next_comma" locals
8371         const, and adjust.  Don't frob the action string while splitting
8372         it at commas.  Instead, make a copy of each split substring in
8373         turn.
8374         (trace_dump_command): Adjust to validate_actionline prototype
8375         change.
8376         * tracepoint.h (decode_agent_options, decode_agent_options)
8377         (encode_actions, validate_actionline): Change prototypes.
8378         * valprint.h (output_command): Delete declaration.
8379         (output_command_const): Declare.
8380         * value.c (function_destroyer): Cast const away in xfree call.
8381
8382 2013-03-13  Pedro Alves  <palves@redhat.com>
8383
8384         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8385         rather than casting 'const char * const *' to 'const char **'.
8386         * ada-lex.l (processInt): Make "trailer" local const.  Remove
8387         'const char **' cast.
8388         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8389         locals, and use those as strtol output pointer, instead than doing
8390         invalid casts to from 'const char **' to 'char **'.
8391         (_initialize_demangle): Remove cast.
8392         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8393         locals, and use those as strtol output pointer, instead than doing
8394         invalid casts to from 'const char **' to 'char **'.
8395         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8396         casts.
8397         * stap-probe.c (stap_parse_register_operand)
8398         (stap_parse_single_operand): Likewise.
8399
8400 2013-03-13  Yao Qi  <yao@codesourcery.com>
8401
8402         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8403         the last matched 'V' blcok in trace frame.
8404
8405 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8406
8407         * NEWS: Create a new section for the next release branch.
8408         Rename the section of the current branch, now that it has
8409         been cut.
8410
8411 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8412
8413         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8414         * version.in: Bump version to 7.6.50.20130312-cvs.
8415
8416 2013-03-12  Keith Seitz  <keiths@redhat.com>
8417
8418         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8419         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8420         Remove temporary copy of input string.
8421         (mi_execute_command_wrapper): Make "cmd" const.
8422         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8423         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8424         Use const strings.
8425         (mi_parse): Make "cmd" const.
8426         Use const strings.
8427         * mi/mi-parse.h (mi_parse): Make "cmd" const.
8428
8429 2013-03-12  Keith Seitz  <keiths@redhat.com>
8430
8431         * ada-lang.c (ada_read_renaming_var_value): Pass const
8432         pointer to expression string to parse_exp_1.
8433         (create_excep_cond_exprs): Likewise.
8434         * ax-gdb.c (agent_eval_command_one): Likewise.
8435         (maint_agent_printf_command): Likewise.
8436         Constify much of the string handling/parsing.
8437         * breakpoint.c (set_breakpoint_condition): Pass const
8438         pointer to expression string to parse_exp_1.
8439         (update_watchpoint): Likewise.
8440         (parse_cmd_to_aexpr): Constify string handling.
8441         Pass const pointer to parse_exp_1.
8442         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8443         (find_condition_and_thread): Likewise.
8444         Make TOK const.
8445         (watch_command_1): Make "arg" const.
8446         Constify string handling.
8447         Copy the expression string instead of changing the input
8448         string.
8449         (update_breakpoint_location): Pass const pointer to
8450         parse_exp_1.
8451         * eval.c (parse_and_eval_address): Make "exp" const.
8452         (parse_to_comma_and_eval): Make "expp" const.
8453         (parse_and_eval): Make "exp" const.
8454         * expression.h (parse_expression): Make argument const.
8455         (parse_exp_1): Make first argument const.
8456         * findcmd.c (parse_find_args): Treat "args" as const.
8457         * linespec.c (parse_linespec): Pass const pointer to
8458         linespec_expression_to_pc.
8459         (linespec_expression_to_pc): Make "exp_ptr" const.
8460         * parse.c (parse_exp_1): Make "stringptr" const.
8461         Make a copy of the expression to pass to parse_exp_in_context until
8462         this whole interface can be constified.
8463         (parse_expression): Make "string" const.
8464         * printcmd.c (ui_printf): Treat "arg" as const.
8465         Handle const strings.
8466         * tracepoint.c (validate_actionline): Pass const pointer to
8467         all calls to parse_exp_1.
8468         (encode_actions_1): Likewise.
8469         * value.h (parse_to_comma_and_eval): Make argument const.
8470         (parse_and_eval_address): Likewise.
8471         (parse_and_eval): Likewise.
8472         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8473         (varobj_set_value): Likewise.
8474         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8475         constify string handling.
8476         Pass const pointers to parse_and_eval_address and
8477         parse_to_comman_and_eval.
8478         * cli/cli-utils.c (skip_to_space): Rename to ...
8479         (skip_to_space_const): ... this. Handle const strings.
8480         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8481         skip_to_space_const.
8482         (skip_to_space_const): Declare.
8483         * common/format.c (parse_format_string): Make "arg" const.
8484         Handle const strings.
8485         * common/format.h (parse_format_string): Make "arg" const.
8486         * gdbserver/ax.c (ax_printf): Make "format" const.
8487         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8488         of the expression string.
8489
8490 2013-03-12  Hui Zhu  <hui@codesourcery.com>
8491
8492         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8493
8494 2013-03-12  Yao Qi  <yao@codesourcery.com>
8495             Hui Zhu  <hui@codesourcery.com>
8496
8497         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8498         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8499         DW_OP_deref_size.
8500
8501 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
8502
8503         * ada-lex.l (rules): Only recognize 'thread' as a
8504         delimiter when followed by numerals, as for c-exp.y.
8505         Use new rewind_to_char function to rewind the input for
8506         expression-delimiting tokens.
8507         (rewind_to_char): New function.
8508
8509 2013-03-11  Pedro Alves  <palves@redhat.com>
8510             Jan Kratochvil  <jan.kratochvil@redhat.com>
8511
8512         * configure: Regenerate.
8513         * configure.ac (check dynamic export flag): Link python test with
8514         $PYTHON_LIBS.
8515
8516 2013-03-11  Doug Evans  <dje@google.com>
8517             Keith Seitz  <keiths@redhat.com>
8518
8519         * linespec.c (find_linespec_symbols): Call find_function_symbols
8520         first, and then call lookup_prefix_sym/find_method.
8521
8522 2013-03-11  Pedro Alves  <palves@redhat.com>
8523
8524         * charset.c (convert_between_encodings): Don't cast between
8525         different pointer to pointer types.  Instead, make the 'inp' local
8526         be of the type iconv expects.
8527         (wchar_iterate): Don't cast between different pointer to pointer
8528         types.  Instead, use new pointer local of the type iconv expects.
8529         * target.c (target_read_stralloc, target_fileio_read_stralloc):
8530         Add new local of type char pointer, and use it to get a
8531         char/string view of the byte buffer, instead of casting between
8532         pointer to pointer types.
8533
8534 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
8535
8536         * remote.c (remote_set_trace_buffer_size): Move != operator
8537         to the start of next line to fix an ARI warning.
8538
8539 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8540
8541         * NEWS: Add record changes.
8542
8543 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8544
8545         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8546         the instruction history disassembly.
8547         * disasm.c (dump_insns): Omit the pc prefix, if requested.
8548         * disasm.h (DISASSEMBLY_OMIT_PC): New.
8549
8550 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8551
8552         * Makefile.in (SFILES): Add record-btrace.c
8553         (COMMON_OBS): Add record-btrace.o
8554         * record-btrace.c: New.
8555         * objfiles.c: Include btrace.h.
8556         (free_objfile): call btrace_free_objfile.
8557
8558 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8559
8560         * target.c (target_call_history, target_call_history_from,
8561         target_call_history_range): New.
8562         * target.h (target_ops) <to_call_history, to_call_history_from,
8563         to_call_history_range>: New fields.
8564         (target_call_history, target_call_history_from,
8565         target_call_history_range): New declaration.
8566         * record.c (get_call_history_modifiers, cmd_record_call_history,
8567         record_call_history_size): New.
8568         (_initialize_record): Add the "record function-call-history" command.
8569         Add "set/show record function-call-history-size" commands.
8570         * record.h (record_print_flag): New.
8571
8572 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8573
8574         * target.h (target_ops) <to_insn_history, to_insn_history_from,
8575         to_insn_history_range>: New fields.
8576         (target_insn_history): New.
8577         (target_insn_history_from): New.
8578         (target_insn_history_range): New.
8579         * target.c (target_insn_history): New.
8580         (target_insn_history_from): New.
8581         (target_insn_history_range): New.
8582         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8583         (record_insn_history_size): New.
8584         (get_insn_number): New.
8585         (get_context_size): New.
8586         (no_chunk): New.
8587         (get_insn_history_modifiers): New.
8588         (cmd_record_insn_history): New.
8589         (_initialize_record): Add "set/show record instruction-history-size"
8590         command. Add "record instruction-history" command.
8591
8592 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8593
8594         * record.h (record_disconnect): New.
8595         (record_detach): New.
8596         (record_mourn_inferior): New.
8597         (record_kill): New.
8598         * record-full.c (record_disconnect, record_detach,
8599         record_mourn_inferior, record_kill): Move to...
8600         * record.c: ...here.
8601         (DEBUG): New.
8602         (record_stop): New.
8603         (record_unpush): New.
8604         (cmd_record_stop): Call record_stop. Replace unpush_target
8605         call with record_unpush call.
8606         (record_disconnect, record_detach): Assert that the target
8607         is of record stratum. Call record_unpush, record_stop, and
8608         DEBUG.
8609         (record_mourn_inferior, record_kill): Assert that the target
8610         is of record stratum. Call record_unpush and DEBUG.
8611
8612 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8613
8614         * record-full.h, record-full.c (record_memory_query): Rename
8615         to ...
8616         (record_full_memory_query): ...this. Update all users.
8617         (record_arch_list_add_reg): Rename to ...
8618         (record_full_arch_list_add_reg): ...this. Update all users.
8619         (record_arch_list_add_mem): Rename to ...
8620         (record_full_arch_list_add_mem): ...this. Update all users.
8621         (record_arch_list_add_end): Rename to ...
8622         (record_full_arch_list_add_end): ...this. Update all users.
8623         (record_gdb_operation_disable_set): Rename to ...
8624         (record_full_gdb_operation_disable_set): ...this.
8625         Update all users.
8626
8627 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8628
8629         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8630         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8631         (RECORD_IS_REPLAY): Renamed to ...
8632         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8633         (RECORD_FILE_MAGIC): Renamed to ...
8634         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8635         (record_mem_entry): Renamed to ...
8636         (record_full_mem_entry): ... this. Updated all users.
8637         (record_reg_entry): Renamed to ...
8638         (record_full_reg_entry): ... this. Updated all users.
8639         (record_end_entry): Renamed to ...
8640         (record_full_end_entry): ... this. Updated all users.
8641         (record_type) <record_end, record_reg, record_mem>: Renamed
8642         to ...
8643         (record_full_type) <record_full_end, record_full_reg,
8644         record_full_mem>: ... this. Updated all users.
8645         (record_entry): Renamed to ...
8646         (record_full_entry): ... this. Updated all users.
8647         (record_core_buf_entry): Renamed to ...
8648         (record_full_core_buf_entry): ... this. Updated all users.
8649         (record_core_regbuf): Renamed to ...
8650         (record_full_core_regbuf): ... this. Updated all users.
8651         (record_core_start): Renamed to ...
8652         (record_full_core_start): ... this. Updated all users.
8653         (record_core_end): Renamed to ...
8654         (record_full_core_end): ... this. Updated all users.
8655         (record_core_buf_list): Renamed to ...
8656         (record_full_core_buf_list): ... this. Updated all users.
8657         (record_first): Renamed to ...
8658         (record_full_first): ... this. Updated all users.
8659         (record_list): Renamed to ...
8660         (record_full_list): ... this. Updated all users.
8661         (record_arch_list_head): Renamed to ...
8662         (record_full_arch_list_head): ... this. Updated all users.
8663         (record_arch_list_tail): Renamed to ...
8664         (record_full_arch_list_tail): ... this. Updated all users.
8665         (record_stop_at_limit): Renamed to ...
8666         (record_full_stop_at_limit): ... this. Updated all users.
8667         (record_insn_max_num): Renamed to ...
8668         (record_full_insn_max_num): ... this. Updated all users.
8669         (record_insn_num): Renamed to ...
8670         (record_full_insn_num): ... this. Updated all users.
8671         (record_insn_count): Renamed to ...
8672         (record_full_insn_count): ... this. Updated all users.
8673         (record_ops): Renamed to ...
8674         (record_full_ops): ... this. Updated all users.
8675         (record_core_ops): Renamed to ...
8676         (record_full_core_ops): ... this. Updated all users.
8677         (set_record_cmdlist): Renamed to ...
8678         (set_record_full_cmdlist): ... this. Updated all users.
8679         (show_record_cmdlist): Renamed to ...
8680         (show_record_full_cmdlist): ... this. Updated all users.
8681         (record_cmdlist): Renamed to ...
8682         (record_full_cmdlist): ... this. Updated all users.
8683         (record_beneath_to_resume_ops): Renamed to ...
8684         (record_full_beneath_to_resume_ops): ... this. Updated all users.
8685         (record_beneath_to_resume): Renamed to ...
8686         (record_full_beneath_to_resume): ... this. Updated all users.
8687         (record_beneath_to_wait_ops): Renamed to ...
8688         (record_full_beneath_to_wait_ops): ... this. Updated all users.
8689         (record_beneath_to_wait): Renamed to ...
8690         (record_full_beneath_to_wait): ... this. Updated all users.
8691         (record_beneath_to_store_registers_ops): Renamed to ...
8692         (record_full_beneath_to_store_registers_ops): ... this.
8693         Updated all users.
8694         (record_beneath_to_store_registers): Renamed to ...
8695         (record_full_beneath_to_store_registers): ... this.
8696         Updated all users.
8697         (record_beneath_to_xfer_partial_ops): Renamed to ...
8698         (record_full_beneath_to_xfer_partial_ops): ... this.
8699         Updated all users.
8700         (record_beneath_to_xfer_partial): Renamed to ...
8701         (record_full_beneath_to_xfer_partial): ... this.
8702         Updated all users.
8703         (record_beneath_to_insert_breakpoint): Renamed to ...
8704         (record_full_beneath_to_insert_breakpoint): ... this.
8705         Updated all users.
8706         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8707         (record_full_beneath_to_stopped_by_watchpoint): ... this.
8708         Updated all users.
8709         (record_beneath_to_stopped_data_address): Renamed to ...
8710         (record_full_beneath_to_stopped_data_address): ... this.
8711         Updated all users.
8712         (record_beneath_to_async): Renamed to ...
8713         (record_full_beneath_to_async): ... this. Updated all users.
8714         (record_goto_insn): Renamed to ...
8715         (record_full_goto_insn): ... this. Updated all users.
8716         (record_save): Renamed to ...
8717         (record_full_save): ... this. Updated all users.
8718         (record_reg_alloc): Renamed to ...
8719         (record_full_reg_alloc): ... this. Updated all users.
8720         (record_reg_release): Renamed to ...
8721         (record_full_reg_release): ... this. Updated all users.
8722         (record_mem_alloc): Renamed to ...
8723         (record_full_mem_alloc): ... this. Updated all users.
8724         (record_mem_release): Renamed to ...
8725         (record_full_mem_release): ... this. Updated all users.
8726         (record_end_alloc): Renamed to ...
8727         (record_full_end_alloc): ... this. Updated all users.
8728         (record_end_release): Renamed to ...
8729         (record_full_end_release): ... this. Updated all users.
8730         (record_entry_release): Renamed to ...
8731         (record_full_entry_release): ... this. Updated all users.
8732         (record_list_release): Renamed to ...
8733         (record_full_list_release): ... this. Updated all users.
8734         (record_list_release_following): Renamed to ...
8735         (record_full_list_release_following): ... this.
8736         Updated all users.
8737         (record_list_release_first): Renamed to ...
8738         (record_full_list_release_first): ... this. Updated all users.
8739         (record_arch_list_add): Renamed to ...
8740         (record_full_arch_list_add): ... this. Updated all users.
8741         (record_get_loc): Renamed to ...
8742         (record_full_get_loc): ... this. Updated all users.
8743         (record_check_insn_num): Renamed to ...
8744         (record_full_check_insn_num): ... this. Updated all users.
8745         (record_arch_list_cleanups): Renamed to ...
8746         (record_full_arch_list_cleanups): ... this. Updated all users.
8747         (record_message): Renamed to ...
8748         (record_full_message): ... this. Updated all users.
8749         (record_message_wrapper): Renamed to ...
8750         (record_full_message_wrapper): ... this. Updated all users.
8751         (record_message_wrapper_safe): Renamed to ...
8752         (record_full_message_wrapper_safe): ... this. Updated all users.
8753         (record_gdb_operation_disable): Renamed to ...
8754         (record_full_gdb_operation_disable): ... this. Updated all users.
8755         (record_hw_watchpoint): Renamed to ...
8756         (record_full_hw_watchpoint): ... this. Updated all users.
8757         (record_exec_insn): Renamed to ...
8758         (record_full_exec_insn): ... this. Updated all users.
8759         (record_restore): Renamed to ...
8760         (record_full_restore): ... this. Updated all users.
8761         (record_async_inferior_event_token): Renamed to ...
8762         (record_full_async_inferior_event_token): ... this.
8763         Updated all users.
8764         (record_async_inferior_event_handler): Renamed to ...
8765         (record_full_async_inferior_event_handler): ... this.
8766         Updated all users.
8767         (record_core_open_1): Renamed to ...
8768         (record_full_core_open_1): ... this. Updated all users.
8769         (record_open_1): Renamed to ...
8770         (record_full_open_1): ... this. Updated all users.
8771         (record_open): Renamed to ...
8772         (record_full_open): ... this. Updated all users.
8773         (record_close): Renamed to ...
8774         (record_full_close): ... this. Updated all users.
8775         (record_resume_step): Renamed to ...
8776         (record_full_resume_step): ... this. Updated all users.
8777         (record_resumed): Renamed to ...
8778         (record_full_resumed): ... this. Updated all users.
8779         (record_execution_dir): Renamed to ...
8780         (record_full_execution_dir): ... this. Updated all users.
8781         (record_resume): Renamed to ...
8782         (record_full_resume): ... this. Updated all users.
8783         (record_get_sig): Renamed to ...
8784         (record_full_get_sig): ... this. Updated all users.
8785         (record_sig_handler): Renamed to ...
8786         (record_full_sig_handler): ... this. Updated all users.
8787         (record_wait_cleanups): Renamed to ...
8788         (record_full_wait_cleanups): ... this. Updated all users.
8789         (record_wait_1): Renamed to ...
8790         (record_full_wait_1): ... this. Updated all users.
8791         (record_wait): Renamed to ...
8792         (record_full_wait): ... this. Updated all users.
8793         (record_stopped_by_watchpoint): Renamed to ...
8794         (record_full_stopped_by_watchpoint): ... this. Updated all users.
8795         (record_disconnect): Renamed to ...
8796         (record_full_disconnect): ... this. Updated all users.
8797         (record_detach): Renamed to ...
8798         (record_full_detach): ... this. Updated all users.
8799         (record_mourn_inferior): Renamed to ...
8800         (record_full_mourn_inferior): ... this. Updated all users.
8801         (record_kill): Renamed to ...
8802         (record_full_kill): ... this. Updated all users.
8803         (record_stopped_data_address): Renamed to ...
8804         (record_full_stopped_data_address): ... this. Updated all users.
8805         (record_registers_change): Renamed to ...
8806         (record_full_registers_change): ... this. Updated all users.
8807         (record_store_registers): Renamed to ...
8808         (record_full_store_registers): ... this. Updated all users.
8809         (record_xfer_partial): Renamed to ...
8810         (record_full_xfer_partial): ... this. Updated all users.
8811         (record_breakpoint): Renamed to ...
8812         (record_full_breakpoint): ... this. Updated all users.
8813         (record_breakpoint_p): Renamed to ...
8814         (record_full_breakpoint_p): ... this. Updated all users.
8815         (record_breakpoints): Renamed to ...
8816         (record_full_breakpoints): ... this. Updated all users.
8817         (record_sync_record_breakpoints): Renamed to ...
8818         (record_full_sync_record_breakpoints): ... this.
8819         Updated all users.
8820         (record_init_record_breakpoints): Renamed to ...
8821         (record_full_init_record_breakpoints): ... this.
8822         Updated all users.
8823         (record_insert_breakpoint): Renamed to ...
8824         (record_full_insert_breakpoint): ... this. Updated all users.
8825         (record_remove_breakpoint): Renamed to ...
8826         (record_full_remove_breakpoint): ... this. Updated all users.
8827         (record_can_execute_reverse): Renamed to ...
8828         (record_full_can_execute_reverse): ... this. Updated all users.
8829         (record_get_bookmark): Renamed to ...
8830         (record_full_get_bookmark): ... this. Updated all users.
8831         (record_goto_bookmark): Renamed to ...
8832         (record_full_goto_bookmark): ... this. Updated all users.
8833         (record_async): Renamed to ...
8834         (record_full_async): ... this. Updated all users.
8835         (record_can_async_p): Renamed to ...
8836         (record_full_can_async_p): ... this. Updated all users.
8837         (record_is_async_p): Renamed to ...
8838         (record_full_is_async_p): ... this. Updated all users.
8839         (record_execution_direction): Renamed to ...
8840         (record_full_execution_direction): ... this. Updated all users.
8841         (record_info): Renamed to ...
8842         (record_full_info): ... this. Updated all users.
8843         (record_delete): Renamed to ...
8844         (record_full_delete): ... this. Updated all users.
8845         (record_is_replaying): Renamed to ...
8846         (record_full_is_replaying): ... this. Updated all users.
8847         (record_goto_entry): Renamed to ...
8848         (record_full_goto_entry): ... this. Updated all users.
8849         (record_goto_begin): Renamed to ...
8850         (record_full_goto_begin): ... this. Updated all users.
8851         (record_goto_end): Renamed to ...
8852         (record_full_goto_end): ... this. Updated all users.
8853         (record_goto): Renamed to ...
8854         (record_full_goto): ... this. Updated all users.
8855         (init_record_ops): Renamed to ...
8856         (init_record_full_ops): ... this. Updated all users.
8857         (record_core_resume): Renamed to ...
8858         (record_full_core_resume): ... this. Updated all users.
8859         (record_core_kill): Renamed to ...
8860         (record_full_core_kill): ... this. Updated all users.
8861         (record_core_fetch_registers): Renamed to ...
8862         (record_full_core_fetch_registers): ... this. Updated all users.
8863         (record_core_prepare_to_store): Renamed to ...
8864         (record_full_core_prepare_to_store): ... this. Updated all users.
8865         (record_core_store_registers): Renamed to ...
8866         (record_full_core_store_registers): ... this. Updated all users.
8867         (record_core_xfer_partial): Renamed to ...
8868         (record_full_core_xfer_partial): ... this. Updated all users.
8869         (record_core_insert_breakpoint): Renamed to ...
8870         (record_full_core_insert_breakpoint): ... this. Updated all users.
8871         (record_core_remove_breakpoint): Renamed to ...
8872         (record_full_core_remove_breakpoint): ... this. Updated all users.
8873         (record_core_has_execution): Renamed to ...
8874         (record_full_core_has_execution): ... this. Updated all users.
8875         (init_record_core_ops): Renamed to ...
8876         (init_record_full_core_ops): ... this. Updated all users.
8877         (cmd_record_restore): Renamed to ...
8878         (cmd_record_full_restore): ... this. Updated all users.
8879         (record_save_cleanups): Renamed to ...
8880         (record_full_save_cleanups): ... this. Updated all users.
8881         (cmd_record_start): Renamed to ...
8882         (cmd_record_full_start): ... this. Updated all users.
8883         (set_record_insn_max_num): Renamed to ...
8884         (set_record_full_insn_max_num): ... this. Updated all users.
8885         (set_record_command): Renamed to ...
8886         (set_record_full_command): ... this. Updated all users.
8887         (show_record_command): Renamed to ...
8888         (show_record_full_command): ... this. Updated all users.
8889         (_initialize_record): Renamed to ...
8890         (_initialize_record_full): ... this. Updated all users.
8891
8892 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8893
8894         * record.h: Split into this and ...
8895         * record-full.h: ... this.
8896         * record.c: Split into this and ...
8897         * record-full.c: ... this.
8898         * target.h (target_ops): Add new fields to_info_record,
8899         to_save_record, to_delete_record, to_record_is_replaying,
8900         to_goto_record_begin, to_goto_record_end, to_goto_record.
8901         (target_info_record): New.
8902         (target_save_record): New.
8903         (target_supports_delete_record): New.
8904         (target_delete_record): New.
8905         (target_record_is_replaying): New.
8906         (target_goto_record_begin): New.
8907         (target_goto_record_end): New.
8908         (target_goto_record): New.
8909         * target.c (target_info_record): New.
8910         (target_save_record): New.
8911         (target_supports_delete_record): New.
8912         (target_delete_record): New.
8913         (target_record_is_replaying): New.
8914         (target_goto_record_begin): New.
8915         (target_goto_record_end): New.
8916         (target_goto_record): New.
8917         * record.h: Declare struct cmd_list_element.
8918         (record_cmdlist): New declaration.
8919         (set_record_cmdlist): New declaration.
8920         (show_record_cmdlist): New declaration.
8921         (info_record_cmdlist): New declaration.
8922         (cmd_record_goto): New declaration.
8923         * record.c: Remove unnecessary includes.
8924         Include inferior.h.
8925         (cmd_record_goto): Remove declaration.
8926         (record_cmdlist): Now extern. Initialize.
8927         (set_record_cmdlist): Now extern. Initialize.
8928         (show_record_cmdlist): Now extern. Initialize.
8929         (info_record_cmdlist): Now extern. Initialize.
8930         (find_record_target): New.
8931         (require_record_target): New.
8932         (cmd_record_start): Update.
8933         (cmd_record_delete): Remove target-specific code.
8934         Call target_delete_record.
8935         (cmd_record_stop): Unpush any record target.
8936         (set_record_insn_max_num): Move to record-full.c
8937         (set_record_command): Add comment.
8938         (show_record_command): Add comment.
8939         (info_record_command): Update comment.
8940         Remove target-specific code.
8941         Call the record target's to_info_record.
8942         (cmd_record_start): New.
8943         (cmd_record_goto): Now extern.
8944         Remove target-specific code.
8945         Call target_goto_begin,  target_goto_end, or target_goto.
8946         (_initialize_record): Move record target ops initialization to
8947         record-full.c.
8948         Change "record" command help text.
8949         Move "record restore", "record set", and "record show" commands to
8950         record-full.c.
8951         * Makefile.in (SFILES): Add record-full.c.
8952         (HFILES_NO_SRCDIR): Add record-full.h.
8953         (COMMON_OBS): Add record-full.o.
8954         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8955         * arm-tdep.c: Include record-full.h.
8956         * i386-linux-tdep.c: Include record-full.h instead of record.h.
8957         * i386-tdep.c: Include record-full.h.
8958         * infrun.c: Include record-full.h.
8959         * linux-record.c: Include record-full.h.
8960         * moxie-tdep.c: Include record-full.h.
8961         * record-full.c: Include record-full.h.
8962         Change module comment.
8963         (set_record_full_cmdlist): New.
8964         (show_record_full_cmdlist): New.
8965         (record_full_cmdlist): New.
8966         (record_goto_insn): New declaration.
8967         (record_save): New declaration.
8968         (record_check_insn_num): Change query string.
8969         (record_info): New.
8970         (record_delete): New.
8971         (record_is_replaying): New.
8972         (record_goto_entry): New.
8973         (record_goto_begin): New.
8974         (record_goto_end): New.
8975         (record_goto): New.
8976         (init_record_ops): Update.
8977         (init_record_core_ops): Update.
8978         (cmd_record_save): Rename to record_save. Remove target and arg checks.
8979         (cmd_record_start): New.
8980         (set_record_insn_max_num): Moved from record.c
8981         (set_record_full_command): New.
8982         (show_record_full_command): New.
8983         (_initialize_record_full): New.
8984
8985 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8986
8987         * target.h (add_deprecated_target_alias): New.
8988         * target.c (add_deprecated_target_alias): New.
8989
8990 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8991
8992         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8993         and signal.h.
8994         (linux_supports_btrace): Add kernel and
8995         cpuid check.
8996         (kernel_supports_btrace): New function.
8997         (cpu_supports_btrace): New function.
8998         (intel_supports_btrace): New function.
8999
9000 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9001
9002         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9003         * remote.c: Include btrace.h.
9004         (struct btrace_target_info): New struct.
9005         (remote_supports_btrace): New function.
9006         (send_Qbtrace): New function.
9007         (remote_enable_btrace): New function.
9008         (remote_disable_btrace): New function.
9009         (remote_teardown_btrace): New function.
9010         (remote_read_btrace): New function.
9011         (init_remote_ops): Add btrace ops.
9012         (enum <unnamed>): Add btrace packets.
9013         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9014         (_initialize_remote): Add packet configuration for branch tracing.
9015
9016 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9017
9018         * features/btrace.dtd: New file.
9019         * Makefile.in (XMLFILES): Add btrace.dtd.
9020         * btrace.h (parse_xml_btrace): New declaration.
9021         * btrace.c: Include xml-support.h.
9022         (parse_xml_btrace): New function.
9023         (parse_xml_btrace_block): New function.
9024         (block_attributes): New struct.
9025         (btrace_attributes): New struct.
9026         (btrace_children): New struct.
9027         (btrace_elements): New struct.
9028
9029 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9030
9031         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9032         (amd64_linux_enable_btrace): New.
9033         (amd64_linux_disable_btrace): New.
9034         (amd64_linux_teardown_btrace): New.
9035         (_initialize_amd64_linux_nat): Initialize btrace ops.
9036         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9037         (i386_linux_enable_btrace): New.
9038         (i386_linux_disable_btrace): New.
9039         (i386_linux_teardown_btrace): New.
9040         (_initialize_i386_linux_nat): Initialize btrace ops.
9041         * config/i386/linux.mh: Add linux-btrace.o.
9042         * config/i386/linux64.mh: Add linux-btrace.o.
9043
9044 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9045
9046         * common/linux_btrace.h: New file.
9047         * common/linux_btrace.c: New file.
9048         * Makefile.in (SFILES): Add btrace.c.
9049         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9050         (COMMON_OBS): Add btrace.o.
9051         (linux-btrace.o): New rule.
9052
9053 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9054
9055         * target.h: Include btrace.h.
9056         (struct target_ops) <to_supports_btrace, to_enable_btrace,
9057         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9058         * target.c (target_supports_btrace): New function.
9059         (target_enable_btrace): New function.
9060         (target_disable_btrace): New function.
9061         (target_teardown_btrace): New function.
9062         (target_read_btrace): New function.
9063         * btrace.h: New file.
9064         * btrace.c: New file.
9065         * Makefile.in: Add btrace.c.
9066         * gdbthread.h: Include btrace.h.
9067         (struct thread_info): Add btrace field.
9068         * thread.c: Include btrace.h.
9069         (clear_thread_inferior_resources): Call target_teardown_btrace.
9070         * common/btrace-common.h: New file.
9071
9072 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9073
9074         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9075         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9076         kill_status to outer block.
9077
9078 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9079
9080         Fix entry-values if the callee called a noreturn function.
9081         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9082         get_frame_address_in_block.  Add new comment.
9083
9084 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9085
9086         Fix entry-values in C++ across CUs.
9087         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9088         lookup_minimal_symbol.  Add a comment.
9089         * dwarf2read.c
9090         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9091         DW_AT_linkage_name.
9092
9093 2013-03-08  Yao Qi  <yao@codesourcery.com>
9094
9095         * tracepoint.c (_initialize_tracepoint): Indent the code.
9096
9097 2013-03-08  Pedro Alves  <palves@redhat.com>
9098
9099         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9100         (parse_find_args, find_command): Change type of pattern buffer
9101         locals to 'gdb_byte *'.
9102
9103 2013-03-08  Stan Shebs  <stan@codesourcery.com>
9104             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9105
9106         * NEWS: Mention set and show trace-buffer-size commands.
9107         Mention new packet.
9108         * target.h (struct target_ops): New method
9109         to_set_trace_buffer_size.
9110         (target_set_trace_buffer_size): New macro.
9111         * target.c (update_current_target): Set up new method.
9112         * tracepoint.c (trace_buffer_size): New global.
9113         (start_tracing): Send it to the target.
9114         (set_trace_buffer_size): New function.
9115         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9116         * remote.c (remote_set_trace_buffer_size): New function.
9117         (_initialize_remote): Use it.
9118         (QTBuffer:size) New remote command.
9119         (PACKET_QTBuffer_size): New enum.
9120         (remote_protocol_features): Add an entry for
9121         PACKET_QTBuffer_size.
9122
9123 2013-03-08  Tom Tromey  <tromey@redhat.com>
9124
9125         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9126         variable.
9127
9128 2013-03-07  Pedro Alves  <palves@redhat.com>
9129
9130         * target.c (target_read_stralloc, target_fileio_read_alloc):
9131         *Cast pointer to 'gdb_byte *' in target call.
9132
9133 2013-03-07  Pedro Alves  <palves@redhat.com>
9134
9135         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9136         call.
9137
9138 2013-03-07  Keith Seitz  <keiths@redhat.com>
9139
9140         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9141         (trace_pass_command): Likewise.
9142         * cli/cli-cmds.c: Include cli/cli-utils.h.
9143         (source_command): Use skip-spaces.
9144         (disassemble_command): Likewise.
9145         * findcmd.c: Include cli/cli-utils.h.
9146         (parse_find_args): Use skip_spaces.
9147         * go32-nat.c: Include cli/cli-utils.h.
9148         (go32_sldt): Use skip_spaces.
9149         (go32_sgdt): Likewise.
9150         (go32_sidt): Likewise.
9151         (go32_pde): Likewise.
9152         (go32_pte): Likewise.
9153         (go32_pte_for_address): Likewise.
9154         * infcmd.c: Include cli/cli-utils.h.
9155         (registers_info): Use skip_spaces.
9156         * linux-tdep.c (read_mapping): Use skip_spaces_const.
9157         (linux_info_proc): Likewise.
9158         * linux-thread-db.c: Include cli/cli-utils.h.
9159         (info_auto_load_libthread_db): Use skip_spaces_const.
9160         * m32r-rom.c: Include cli/cli-utils.h.
9161         (m32r_upload_command): Use skip_spaces.
9162         * maint.c: Include cli/cli-utils.h.
9163         (maintenance_translate_address): Use skip_spaces.
9164         * mi/mi-parse.c: Include cli/cli-utils.h.
9165         (mi_parse_argv): Use skip_spaces.
9166         (mi_parse): Likewise.
9167         * minsyms.c: Include cli/cli-utils.h.
9168         (msymbol_hash_iw): Use skip_spaces_const.
9169         * objc-lang.c: Include cli/cli-utils.h.
9170         (parse_selector): Use skip_spaces.
9171         (parse_method): Likewise.
9172         * python/python.c: Include cli/cli-utils.h.
9173         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9174         (python_command)[HAVE_PYTHON]: Likewise.
9175         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9176         * remote-m32r-sdi.c: Include cli/cli-utils.h.
9177         (m32r_load): Use skip_spaces.
9178         * serial.c: Include cli/cli-utils.h.
9179         (serial_open): Use skip_spaces_const.
9180         * stack.c: Include cli/cli-utils.h.
9181         (parse_frame_specification_1): Use skip_spaces_const.
9182         * symfile.c: Include cli/cli-utils.h.
9183         (set_ext_lang_command): Use skip_spaces.
9184         * symtab.c: Include cli/cli-utils.h.
9185         (rbreak_command): Use skip_spaces.
9186         * thread.c (thread_name_command): Use skip_spaces.
9187         * tracepoint.c (validate_actionline): Use skip_spaces.
9188         (encode_actions_1): Likewise.
9189         (trace_find_range_command): Likewise.
9190         (trace_find_outside_command): Likewise.
9191         (trace_dump_actions): Likewise.
9192
9193 2013-03-07  Pedro Alves  <palves@redhat.com>
9194
9195         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9196         * expprint.c (print_subexp_standard): Likewise.
9197         * utils.c (host_char_to_target): Likewise.
9198         * valprint.c (generic_emit_char, generic_printstr): Likewise.
9199         * varobj.c (value_get_print_value): Change type of local to char*.
9200         Cast it gdb_byte * in call to language printer.
9201
9202 2013-03-07  Pedro Alves  <palves@redhat.com>
9203
9204         * charset.c (struct wchar_iterator) <input>: Change type to 'const
9205         gdb_byte *'.
9206         (make_wchar_iterator): Remove cast to char*.
9207         (wchar_iterate): Change type of local.
9208
9209 2013-03-07  Pedro Alves  <palves@redhat.com>
9210
9211         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9212         for 'regcache->register_status'.
9213
9214 2013-03-07  Pedro Alves  <palves@redhat.com>
9215
9216         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9217         int.
9218
9219 2013-03-07  Pedro Alves  <palves@redhat.com>
9220
9221         * stap-probe.c (handle_stap_probe): Add cast to char*.
9222
9223 2013-03-07  Pedro Alves  <palves@redhat.com>
9224
9225         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9226         RECORD_MSGRCV>: Pass a signed variable to
9227         regcache_raw_read_signed, instead of an unsigned one.
9228
9229 2013-03-07  Pedro Alves  <palves@redhat.com>
9230
9231         * remote-notif.c (notif_debug): Change type to int.
9232         * remote-notif.h (notif_debug): Likewise.
9233
9234 2013-03-07  Pedro Alves  <palves@redhat.com>
9235
9236         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9237
9238 2013-03-07  Pedro Alves  <palves@redhat.com>
9239
9240         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9241         * remote.h (hex2bin, bin2hex): ... here.
9242         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9243
9244 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
9245
9246         * utils.c (initialize_utils): Improve doc strings of "set/show
9247         width", "set/show height", and "set/show pagination".
9248
9249 2013-03-06  Keith Seitz  <keiths@redhat.com>
9250
9251         * ax-gdb.c (gen_printf): Make FORMAT const.
9252         * ax-gdb.h (gen_printf): Likewise.
9253         * ax-general.c (ax_string): Make STR const.
9254         * ax.h (ax_string): Likewise.
9255
9256 2013-03-06  Doug Evans  <dje@google.com>
9257
9258         * elfread.c (elf_symfile_read): Move debugging printf to more
9259         logical location.
9260
9261 2013-03-06  Pedro Alves  <palves@redhat.com>
9262
9263         * python/py-utils.c (target_string_to_unicode): Delete function.
9264         * python/python-internal.h (target_string_to_unicode): Delete
9265         declaration.
9266
9267 2013-03-06  Pierre Muller  <muller@sourceware.org>
9268
9269         * linespec.c (get_current_search_block): ARI fix, use (void)
9270         for empty parameter list.
9271
9272 2013-03-05  Doug Evans  <dje@google.com>
9273
9274         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9275         of old ada_lookup_symbol_list.  In !full_search case, don't
9276         search superblocks.
9277         (ada_lookup_symbol_list): Delete arg full_search, all callers
9278         updated.  Call ada_lookup_symbol_list_worker.
9279         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9280         * ada-lang.h (ada_lookup_symbol_list): Update.
9281         * language.h (language_defn): Update comment for
9282         la_iterate_over_symbols.
9283         * linespec.c (iterate_over_file_blocks): New function.
9284         (iterate_over_all_matching_symtabs): Call it.
9285         (lookup_prefix_sym): Ditto.
9286         (get_current_search_block): New function.
9287         (get_search_block): Delete.
9288         (find_label_symbols): Call get_current_search_block.
9289         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9290         * symtab.c (iterate_over_symbols): Don't search superblocks.
9291
9292 2013-03-05  Yao Qi  <yao@codesourcery.com>
9293
9294         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9295         parameter VAR's type from "unsigned int" to "int".
9296         * command.h (var_zuinteger_unlimited): Update its comments.
9297         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9298
9299 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9300
9301         * NEWS: Mention new target x86_64-*-cygwin*.
9302
9303 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9304
9305         * configure.host: Add x86_64-*-cygwin* as host.
9306         * configure.tgt: Add x86_64-*-cygwin* as target.
9307         * config/i386/cygwin64.mh: New file.
9308
9309 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9310
9311         * linespec.c (decode_line_2): Fix duplicate request off by two message.
9312
9313 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9314
9315         * linespec.c (struct linespec_canonical_name): New.
9316         (struct linespec_state): Change canonical_names type to it.
9317         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
9318         xrealloc element size.  Initialize the different CANONICAL fields.
9319         (canonical_to_fullform): New.
9320         (filter_results): Use it.  Add variables canonical, fullform and
9321         cleanup.
9322         (struct decode_line_2_item, decode_line_2_compare_items): New.
9323         (decode_line_2): Remove variables iter and item_names, add variables
9324         items and items_count.  Modify the code for these new variables.
9325
9326 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
9327
9328         * coff-pe-read.c (read_pe_exported_syms): Don't return without
9329         calling do_cleanup.
9330
9331 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
9332
9333         * tracepoint.c (build_traceframe_info): Add code for byte order.
9334
9335 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
9336
9337         * v850-tdep.c: (v850e2_register_name): Revise system register
9338         names to match current V850E2M architecture specifications.
9339         Update register number enum comments too.
9340
9341 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9342             Pedro Alves  <palves@redhat.com>
9343
9344         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9345         to END_ADDR.
9346         (tilegx_skip_prologue): Limit prologue analysis to section end.
9347
9348 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9349
9350         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9351         use it.
9352
9353 2013-03-01  Pedro Alves  <palves@redhat.com>
9354
9355         Use gdb_byte for bytes from the program being debugged.
9356
9357         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9358         Change type of local 'buf' to gdb_byte.
9359         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9360         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9361         * cris-tdep.c (cris_sigcontext_addr)
9362         (cris_sigtramp_frame_unwind_cache): Likewise.
9363         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9364         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9365         Likewise.
9366         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9367         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9368         (hppa32_hpux_search_dummy_call_sequence)
9369         (hppa_hpux_supply_save_state): Likewise.
9370         * hppa-linux-tdep.c (insns_match_pattern)
9371         (hppa_linux_find_global_pointer): Likewise.
9372         * hppa-tdep.c (hppa_in_function_epilogue_p)
9373         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9374         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9375         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9376         (i386fbsd_collect_uthread): Likewise.
9377         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9378         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9379         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9380         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9381         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9382         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9383         (ia64_libunwind_frame_prev_register)
9384         (ia64_libunwind_sigtramp_frame_this_id)
9385         (ia64_find_global_pointer_from_dynamic_section)
9386         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9387         (ia64_unwind_pc): Likewise.
9388         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9389         * m68hc11-tdep.c (m68hc11_push_dummy_call)
9390         (m68hc11_extract_return_value): Likewise.
9391         * m68klinux-nat.c (fetch_register, store_register): Likewise.
9392         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9393         (mep_get_insn, mep_push_dummy_call): Likewise.
9394         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9395         (mips_linux_in_dynsym_stub): Likewise.
9396         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9397         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9398         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9399         to gdb_byte.
9400         * remote-mips.c (mips_set_register): Likewise.
9401         * remote-sim.c (gdbsim_fetch_register): Likewise.
9402         * score-tdep.c (score7_fetch_inst): Change type of parameter
9403         'memblock' and local 'buf' to gdb_byte.
9404         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9405         Change type of local 'buf' to gdb_byte.  Adjust.
9406         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9407         to gdb_byte**.
9408         (score7_analyze_prologue): Change type of 'memblock' and
9409         'memblock_ptr' locals to gdb_byte*.
9410         * sh64-tdep.c (sh64_extract_return_value)
9411         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9412         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9413         * solib-pa64.c (pa64_solib_create_inferior_hook)
9414         (pa64_open_symbol_file_object): Remove local 'buf'.
9415         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9416         (som_open_symbol_file_object): Likewise.
9417         * solib-spu.c (spu_current_sos): Likewise.
9418         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9419         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9420         (spu_store_registers): Likewise.
9421         * target.c (debug_print_register): Likewise.
9422         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9423         * xstormy16-tdep.c (xstormy16_store_return_value)
9424         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9425         (xstormy16_find_jmp_table_entry): Likewise.
9426
9427 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9428
9429         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9430         (tilegx_gdbarch_init): Install it.
9431
9432 2013-02-28  Tom Tromey  <tromey@redhat.com>
9433
9434         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9435         PyLong_Check.
9436
9437 2013-02-28  Doug Evans  <dje@google.com>
9438
9439         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9440         * python/python.c (gdbpy_find_pc_line): Ditto.
9441
9442 2013-02-28  Tom Tromey  <tromey@redhat.com>
9443
9444         * contrib/excheck.py: New file.
9445         * contrib/exsummary.py: New file.
9446         * contrib/gcc-with-excheck: New file.
9447
9448 2013-02-28  Tom Tromey  <tromey@redhat.com>
9449
9450         * python/python.c (gdbpy_print_stack): Call begin_line and
9451         fprintf_filtered inside TRY_CATCH.
9452
9453 2013-02-28  Tom Tromey  <tromey@redhat.com>
9454
9455         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9456         inside TRY_CATCH.
9457
9458 2013-02-28  Tom Tromey  <tromey@redhat.com>
9459
9460         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9461         frame_object_to_frame_info inside TRY_CATCH.
9462
9463 2013-02-28  Tom Tromey  <tromey@redhat.com>
9464
9465         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9466         TRY_CATCH.
9467
9468 2013-02-28  Tom Tromey  <tromey@redhat.com>
9469
9470         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9471
9472 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
9473
9474         * windows-nat.c: Throughout, fix format strings and casts of
9475         printf-like functions to avoid type related warnings on all
9476         platforms.
9477         (handle_output_debug_string): Fetch context information address
9478         from debug string using string_to_core_addr.
9479
9480 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9481
9482         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9483         * regformats/reg-tilegx32.dat: New.
9484
9485 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9486
9487         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9488
9489 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9490
9491         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9492
9493 2013-02-27  Yao Qi  <yao@codesourcery.com>
9494             Pedro Alves  <palves@redhat.com>
9495
9496         * tracepoint.c (tfile_trace_find): For tfind
9497         pc/tp/range/outside, look for the next trace frame instead of
9498         always starting from frame 0.
9499
9500 2013-02-26  Anthony Green  <green@moxielogic.com>
9501
9502         * configure.tgt: Add support for moxie-*-rtems* target.
9503
9504 2013-02-25  Pedro Alves  <palves@redhat.com>
9505
9506         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9507         warning text.
9508
9509 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9510
9511         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9512         if $fp is used as the virtual frame pointer.
9513
9514 2013-02-23  Alan Modra  <amodra@gmail.com>
9515
9516         * elfread.c (elf_symtab_read): Do not use udata.p here to find
9517         symbol size.
9518         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9519         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9520         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9521         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9522
9523 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9524
9525         Code cleanup.
9526         * elfread.c (build_id_bfd_get): Make the return type const.
9527         (build_id_verify): Make the check parameter const.
9528         (build_id_to_debug_filename): Make the build_id parameter and variable
9529         data const.
9530         (find_separate_debug_file_by_buildid): Make the variable build_id const.
9531
9532 2013-02-21  Alan Modra  <amodra@gmail.com>
9533
9534         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9535
9536 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
9537
9538         Add a new method 'disassemble' to gdb.Architecture class.
9539         * python/py-arch.c (archpy_disassmble): Implementation of the
9540         new method gdb.Architecture.disassemble.
9541         (arch_object_methods): Add entry for the new method.
9542
9543 2013-02-20  Jiong Wang  <jiwang@tilera.com>
9544
9545         * MAINTAINERS (Write After Approval): Add myself to the list.
9546
9547 2013-02-19  Pedro Alves  <palves@redhat.com>
9548
9549         Garbage collect 'struct monitor_ops'::load_routine.
9550
9551         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9552         * monitor.c (monitor_load): No longer call
9553         current_monitor->load_routine.
9554         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9555         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9556         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9557
9558 2013-02-19  Pedro Alves  <palves@redhat.com>
9559
9560         PR gdb/15161
9561
9562         Harmonize with generic_load.
9563
9564         * monitor.c: Include "readline/readline.h".
9565         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
9566         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
9567         long/strtol for the 'load_offset' local.  Error out if no argument
9568         is given or if too many arguments are given.  Tilde expand the
9569         passed in file name.
9570
9571 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9572
9573         PR gdb/15161
9574         * symfile.c (load_section_data): Change type of load_offset
9575         to CORE_ADDR.
9576         (generic_load): User strtoulst instead of strtoul for conversion
9577         of load_offset.
9578
9579 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9580
9581         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9582          for return address, "lr" register, saved on stack.
9583         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9584         after we invoke tilegx_analyze_prologue.
9585
9586 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9587
9588         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9589
9590 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9591
9592         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9593
9594 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9595
9596         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9597         (tilegx_write_pc): New function.
9598         (tilegx_cannot_reference_register): Return zero if REGNO
9599         is TILEGX_FAULTNUM_REGNUM.
9600         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9601         (tilegx_register_name): Add handling of "faultnum" register.
9602         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9603         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9604         handling of TILEGX_FAULTNUM_REGNUM.
9605         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9606
9607 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9608
9609         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9610         should be aligned to 64bit.
9611
9612 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9613
9614         * windows-nat.c (windows_xfer_memory): Fix debug-output
9615         for LLP64.
9616
9617 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
9618
9619         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9620         Don't check DSP register number if HAVE_DSP is not set.
9621
9622 2013-02-19  Alan Modra  <amodra@gmail.com>
9623
9624         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
9625         throughout file instead.
9626         (build_id_bfd_get): Update to use new elf_tdata build_id field.
9627         Don't xmalloc return value.
9628         (build_id_verify): Similarly.  Don't xfree.
9629         (build_id_to_debug_filename): Update.
9630         (find_separate_debug_file_by_buildid): Update, don't xfree.
9631
9632 2013-02-18  Tom Tromey  <tromey@redhat.com>
9633
9634         PR gdb/15102:
9635         * dwarf2read.c (read_subrange_type): Use result of
9636         'check_typedef'.
9637
9638 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9639
9640         * frame.c: Remove one extra white space after #include
9641         directive.
9642
9643 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9644
9645         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9646
9647 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9648
9649         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9650         and dir commands into an if block.
9651
9652 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
9653
9654         * python/py-breakpoint (struct pybp_code):  Use int instead of
9655         enum type_code.
9656
9657 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
9658             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9659
9660         * NEWS: Mention new field "trace-file".
9661         * tracepoint.c (trace_status_mi): Output "trace-file" field.
9662         (tfile_open): Record the trace file's filename in the trace
9663         status.
9664         (tfile_files_info): Mention the name of the trace file.
9665         Check the "filename" field explicitely.
9666         (trace_status_command): Explicitely check "filename" field.
9667         (trace_find_command): Ditto.
9668         (trace_find_pc_command): Ditto.
9669         (trace_find_tracepoint_command): Ditto.
9670         (trace_find_line_command): Ditto.
9671         (trace_find_range_command): Ditto.
9672         (trace_find_outside_command): Ditto.
9673         * tracepoint.h (struct trace_status) <from_file>: Rename it
9674         to "filename" and make it hold the trace file's filename
9675         instead of a boolean.
9676         * remote.c (remote_get_trace_status): Initialize "filename"
9677         field with NULL instead of 0.
9678
9679 2013-02-15  Yao Qi  <yao@codesourcery.com>
9680
9681         * remote.c: Fix a typo.
9682
9683 2013-02-14  Pierre Muller  <muller@sourceware.org>
9684
9685         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9686
9687 2013-02-14  Pedro Alves  <palves@redhat.com>
9688
9689         * utils.c (savestring): Don't #undef it.  Move function to
9690         common/common-utils.c.
9691         * common/common-utils.c: Include gdb_string.h.
9692         (savestring): Move here from utils.c.
9693         * common/common-utils.h (savestring): Declare.
9694
9695 2013-02-14  Pedro Alves  <palves@redhat.com>
9696
9697         * utils.c (savestring): Rename parameter 'size' to 'len'.
9698
9699 2013-02-14  Pedro Alves  <palves@redhat.com>
9700             Yufeng Zhang  <yufeng.zhang@arm.com>
9701
9702         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9703         (aarch64_inferior_data, struct aarch64_inferior_data):
9704         Delete.
9705         (struct aarch64_process_info): New.
9706         (aarch64_process_list): New global.
9707         (aarch64_find_process_pid, aarch64_add_process)
9708         (aarch64_process_info_get): New functions.
9709         (aarch64_inferior_data_get): Delete.
9710         (aarch64_process_info_get): New function.
9711         (aarch64_forget_process): New function.
9712         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
9713         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9714         aarch64_get_debug_reg_state.
9715         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9716         instead of linux_nat_iterate_watchpoint_lwps.
9717         (aarch64_linux_new_fork): New function.
9718         (aarch64_linux_child_post_startup_inferior): Use
9719         aarch64_forget_process instead of aarch64_init_debug_reg_state.
9720         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9721         (aarch64_linux_remove_hw_breakpoint)
9722         (aarch64_handle_aligned_watchpoint)
9723         (aarch64_handle_unaligned_watchpoint)
9724         (aarch64_linux_insert_watchpoint)
9725         (aarch64_linux_remove_watchpoint)
9726         (aarch64_linux_stopped_data_address): Adjust to pass the current
9727         process id to aarch64_debug_reg_state.
9728         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9729         linux_nat_new_fork hook, and aarch64_forget_process as
9730         linux_nat_forget_process hook; remove the call to
9731         register_inferior_data_with_cleanup.
9732
9733 2013-02-14  Pedro Alves  <palves@redhat.com>
9734
9735         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9736         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9737         lval_memory.
9738
9739 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
9740             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9741
9742         * tracepoint.h (validate_trace_state_variable_name): Declare.
9743         * tracepoint.c (validate_trace_state_variable_name): New.
9744         (trace_variable_command): Parse the trace state variable's name
9745         without using parse_expression.  Do several validations.
9746         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9747         trace state variable's name with parse_expression.  Validate it.
9748
9749 2013-02-14  Yao Qi  <yao@codesourcery.com>
9750
9751         * infcmd.c (breakpoint_proceeded): Remove it.
9752
9753 2013-02-14  Yao Qi  <yao@codesourcery.com>
9754
9755         * tracepoint.c (end_actions_pseudocommand): Make it static.
9756         (while_stepping_pseudocommand): Likewise.
9757         * tracepoint.h (end_actions_pseudocommand): Remove the
9758         declaration.
9759         (while_stepping_pseudocommand): Likewise.
9760
9761 2013-02-14  Yao Qi  <yao@codesourcery.com>
9762
9763         * cli/cli-decode.c (help_cmd): Remove the declaration of
9764         "cmdlist".
9765         (help_all): Likewise.
9766
9767 2013-02-13  Pedro Alves  <palves@redhat.com>
9768
9769         * amd64-linux-nat.c (update_debug_registers_callback):
9770         Update comment.
9771         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9772         iterate_over_lwps.
9773         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9774         i386_debug_reg_state.
9775         (amd64_linux_new_fork): New function.
9776         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9777         linux_nat_new_fork hook, and i386_forget_process as
9778         linux_nat_forget_process hook.
9779         * i386-linux-nat.c (update_debug_registers_callback):
9780         Update comment.
9781         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9782         iterate_over_lwps.
9783         (i386_linux_prepare_to_resume): Pass the lwp's pid to
9784         i386_debug_reg_state.
9785         (i386_linux_new_fork): New function.
9786         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9787         linux_nat_new_fork hook, and i386_forget_process as
9788         linux_nat_forget_process hook.
9789         * i386-nat.c (i386_init_dregs): Delete.
9790         (i386_inferior_data, struct i386_inferior_data):
9791         Delete.
9792         (struct i386_process_info): New.
9793         (i386_process_list): New global.
9794         (i386_find_process_pid, i386_add_process, i386_process_info_get):
9795         New functions.
9796         (i386_inferior_data_get): Delete.
9797         (i386_process_info_get): New function.
9798         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
9799         (i386_forget_process): New function.
9800         (i386_cleanup_dregs): Rewrite.
9801         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9802         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9803         (i386_stopped_data_address, i386_insert_hw_breakpoint)
9804         (i386_remove_hw_breakpoint): Adjust to pass the current process id
9805         to i386_debug_reg_state.
9806         (i386_use_watchpoints): Don't register inferior data.
9807         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9808         adjust comment.
9809         (i386_forget_process): Declare.
9810         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9811         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9812         New static globals.
9813         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9814         (add_initial_lwp): New, factored out from ...
9815         (add_lwp): ... this.  Don't check the number of lwps before
9816         calling linux_nat_new_thread.
9817         (linux_nat_iterate_watchpoint_lwps): Delete.
9818         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9819         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9820         forks and vforks.
9821         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9822         initial lwp.
9823         (linux_nat_kill, linux_nat_mourn_inferior): Call
9824         linux_nat_forget_process.
9825         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9826         (linux_nat_forget_process): New functions.
9827         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9828         type.
9829         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9830         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9831         types.
9832         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9833         (linux_nat_forget_process): New declarations.
9834
9835         * amd64fbsd-nat.c (super_mourn_inferior): New global.
9836         (amd64fbsd_mourn_inferior): New function.
9837         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9838         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9839
9840 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9841
9842         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9843         Adding _().
9844
9845 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9846
9847         * aarch64-linux-nat.c (debug_reg_change_callback)
9848         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9849         %s and phex().
9850
9851 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9852
9853         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9854         with LONGEST.
9855
9856 2013-02-13  Pedro Alves  <palves@redhat.com>
9857             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9858
9859         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9860
9861 2013-02-12  Tom Tromey  <tromey@redhat.com>
9862
9863         PR symtab/11464:
9864         * c-exp.y (lex_one_token): Initialize other fields of yylval on
9865         NAME return.
9866         (classify_inner_name): Remove 'first_name' argument, add
9867         'context'.  Remove unused variable.
9868         (yylex): Explicitly maintain the context type.  Exit loop earlier
9869         if NAME result is seen.
9870
9871 2013-02-12  Pedro Alves  <palves@redhat.com>
9872
9873         * amd64-darwin-tdep.c: Add (C) after Copyright.
9874         * cli/cli-cmds.h: Ditto.
9875         * cli/cli-decode.c: Ditto.
9876         * cli/cli-decode.h: Ditto.
9877         * cli/cli-dump.c: Ditto.
9878         * cli/cli-dump.h: Ditto.
9879         * cli/cli-interp.c: Ditto.
9880         * cli/cli-logging.c: Ditto.
9881         * cli/cli-script.c: Ditto.
9882         * cli/cli-script.h: Ditto.
9883         * cli/cli-setshow.c: Ditto.
9884         * cli/cli-setshow.h: Ditto.
9885         * cli/cli-utils.c: Ditto.
9886         * cli/cli-utils.h: Ditto.
9887         * config/alpha/nm-osf3.h: Ditto.
9888         * config/djgpp/djconfig.sh: Ditto.
9889         * config/i386/nm-fbsd.h: Ditto.
9890         * config/i386/nm-i386gnu.h: Ditto.
9891         * config/nm-linux.h: Ditto.
9892         * config/nm-nto.h: Ditto.
9893         * config/rs6000/nm-rs6000.h: Ditto.
9894         * config/sparc/nm-sol2.h: Ditto.
9895         * darwin-nat-info.c: Ditto.
9896         * dfp.c: Ditto.
9897         * dfp.h: Ditto.
9898         * gdb-demangle.h: Ditto.
9899         * i386-darwin-nat.c: Ditto.
9900         * i386-darwin-tdep.c: Ditto.
9901         * linux-fork.h: Ditto.
9902         * m32c-tdep.c: Ditto.
9903         * microblaze-linux-tdep.c: Ditto.
9904         * microblaze-rom.c: Ditto.
9905         * microblaze-tdep.c: Ditto.
9906         * microblaze-tdep.h: Ditto.
9907         * mips-linux-tdep.h: Ditto.
9908         * ppc-ravenscar-thread.c: Ditto.
9909         * ppc-ravenscar-thread.h: Ditto.
9910         * prologue-value.c: Ditto.
9911         * prologue-value.h: Ditto.
9912         * ravenscar-thread.c: Ditto.
9913         * ravenscar-thread.h: Ditto.
9914         * sparc-ravenscar-thread.c: Ditto.
9915         * sparc-ravenscar-thread.h: Ditto.
9916         * tilegx-linux-tdep.c: Ditto.
9917         * unwind_stop_reasons.def: Ditto.
9918         * windows-nat.h: Ditto.
9919         * xtensa-linux-tdep.c: Ditto.
9920         * xtensa-xtregs.c: Ditto.
9921         * regformats/regdat.sh: Ditto.
9922         * regformats/regdef.h: Ditto.
9923
9924 2013-02-12  Pedro Alves  <palves@redhat.com>
9925
9926         * break-catch-sig.c: Update copyright years.
9927
9928 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
9929
9930         Add support for a destructor for ui_out data and use it to
9931         provide a ui_out destructor.
9932         * ui-out.h: Declare the new ui_out destructor.
9933         (ui_out_impl): Add a field for data destructor in ui_out_impl.
9934         * ui-out.c (default_data_destroy): Add a default data destructor
9935         which does nothing.
9936         (default_ui_out_impl): Set the new data_destroy field to
9937         default_data_destroy
9938         (uo_data_destroy): Local function which invokes the data
9939         destructor if present.
9940         (clear_table): Local function which clears the table data of a
9941         ui_out object.
9942         (ui_out_destroy): Public function which frees a ui_out object.
9943         (ui_out_table_end): Use the new clear_table function.
9944         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9945         NULL.
9946         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9947         to NULL.
9948
9949 2013-02-11  Doug Evans  <dje@google.com>
9950
9951         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9952         (printf_decfloat): New function.  Broken out from ui_printf.
9953         Remove unnecessary code to shift the entire format string down.
9954         (printf_pointer): New function.
9955         (ui_printf): Code to print C strings, wide C strings, decfloats,
9956         and pointers moved to separate functions.
9957
9958 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9959
9960         * valops.c (value_assign): Handling bitfield offset in
9961         `lval_internalvar_component' case.
9962
9963 2013-02-08  Doug Evans  <dje@google.com>
9964
9965         * common/format.c (parse_format_string): Fix whitespace.
9966
9967 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
9968
9969         * stack.c (return_command): Work around uninitialized variable
9970         warning.
9971
9972 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
9973
9974         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9975         number of the registers from 36 to 34.
9976
9977 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9978
9979         * NEWS: Mention new AArch64 native and target support.
9980
9981 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9982
9983         * MAINTAINERS (Write After Approval): Add myself.
9984
9985 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
9986             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9987             Nigel Stephens  <nigel.stephens@arm.com>
9988             Yufeng Zhang  <yufeng.zhang@arm.com>
9989
9990         * aarch64-linux-nat.c: New file.
9991         * config/aarch64/linux.mh: New file.
9992         * configure.host: Add AArch64.
9993         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9994
9995 2013-02-07  Doug Evans  <dje@google.com>
9996
9997         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9998         disassemble command.
9999
10000 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10001
10002         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10003         set_gdbarch_fetch_tls_load_module_address.
10004
10005 2013-02-06  David S. Miller  <davem@davemloft.net>
10006
10007         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10008         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10009         * value.c (struct_return_convention): New function.
10010         (using_struct_return): Implement in terms of struct_return_convention.
10011         * value.h (struct_return_convention): Declare.
10012         * stack.c (return_command): Allow successful overriding of the return
10013         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10014
10015 2013-02-06  Tom Tromey  <tromey@redhat.com>
10016
10017         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10018         outside of TRY_CATCH.
10019
10020 2013-02-06  Yao Qi  <yao@codesourcery.com>
10021
10022         * mi/mi-interp.c: Include "tracepoint.h".
10023         (mi_tsv_modified): Declare.
10024         (mi_tsv_created, mi_tsv_deleted): Update declaration.
10025         (mi_interpreter_init): Call observer_attach_tsv_modified.
10026         (mi_tsv_modified): New.
10027         (mi_tsv_created, mi_tsv_deleted): Update.
10028         * tracepoint.c (trace_variable_command): Call
10029         observer_notify_tsv_modified if the initial value of tsv is
10030         changed.
10031         (delete_trace_state_variable): Call
10032         observer_notify_tsv_deleted earlier.
10033         (trace_variable_command): Caller update.
10034         (create_tsv_from_upload): Likewise.
10035         * observer.sh: Declare "struct trace_state_variable".
10036
10037         * NEWS: Mention the new MI notification "=tsv-modified".
10038
10039 2013-02-05  Doug Evans  <dje@google.com>
10040
10041         * completer.c (location_completer): Fix typo in comment.
10042
10043 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10044
10045         * breakpoint.c (add_location_to_breakpoint): Insert the location with
10046         ADDRESS sorted.
10047
10048 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10049
10050         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10051         Refactor if statement to avoid trailing || operator.
10052
10053 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
10054
10055         * NEWS: Add PowerPC FreeBSD as a new native configuration.
10056
10057 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
10058
10059         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10060         * configure.host: Add powerpc*-*-freebsd* target.
10061         * configure.tgt: Add target info for powerpc*-*-freebsd*.
10062         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10063         * config/powerpc/fbsd.mh: New file.
10064
10065 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
10066             Denys Vlasenko  <dvlasenk@redhat.com>
10067             Pedro Alves  <palves@redhat.com>
10068
10069         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10070         (struct elf_internal_linux_prpsinfo): Forward declare.
10071         * gdbarch.h, gdbarch.c: Regenerate.
10072         * linux-tdep.c: Include `cli/cli-utils.h'.
10073         (linux_fill_prpsinfo): New function.
10074         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
10075         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10076         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10077         depending on gdbarch pointer bitness.
10078         * ppc-linux-tdep.c: Include elf-bfd.h.
10079         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10080         on 32-bit.
10081
10082 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10083             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10084             Nigel Stephens  <nigel.stephens@arm.com>
10085             Yufeng Zhang  <yufeng.zhang@arm.com>
10086
10087         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10088
10089 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10090             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10091             Nigel Stephens  <nigel.stephens@arm.com>
10092             Yufeng Zhang  <yufeng.zhang@arm.com>
10093
10094         * aarch64-newlib-tdep.c: New file.
10095         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10096         aarch64*-*-elf.
10097         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10098         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10099         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10100         * osabi.c (gdb_osabi_names): Add "Newlib".
10101
10102 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10103             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10104             Nigel Stephens  <nigel.stephens@arm.com>
10105             Yufeng Zhang  <yufeng.zhang@arm.com>
10106
10107         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10108         (ALLDEPFILES): Add aarch64-linux-tdep.c.
10109         * aarch64-linux-tdep.c: New file.
10110         * aarch64-linux-tdep.h: New file.
10111         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10112         * configure.tgt: Add aarch64-none-linux-gnu.
10113
10114 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
10115             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10116             Nigel Stephens  <nigel.stephens@arm.com>
10117             Yufeng Zhang  <yufeng.zhang@arm.com>
10118
10119         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10120         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10121         (ALLDEPFILES): Add aarch64-tdep.c.
10122         * aarch64-tdep.c: New file.
10123         * aarch64-tdep.h: New file.
10124         * configure.tgt: Add AArch64.
10125         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10126         (aarch64-expedite): New definition.
10127         * features/aarch64-core.xml: New file.
10128         * features/aarch64-fpu.xml: New file.
10129         * features/aarch64-without-fpu.c: New file (generated).
10130         * features/aarch64-without-fpu.xml: New file.
10131         * features/aarch64.c: New file (generated).
10132         * features/aarch64.xml: New file.
10133         * regformats/aarch64-without-fpu.dat: New file (generated).
10134         * regformats/aarch64.dat: New file (generated).
10135
10136 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10137
10138         * contrib/expect-read1.c: New file.
10139         * contrib/expect-read1.sh: New file.
10140
10141 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10142
10143         * dwarf2read.c (file_file_name): New function with code from
10144         file_full_name.
10145         (file_full_name): Move most of the code to file_file_name.
10146         (macro_start_file): Rename variable full_name to file_name and use
10147         file_file_name for it.  Add comp_dir parameter to new_macro_table.
10148         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
10149         macro_source_file->filename access by macro_source_fullname call.
10150         * macroscope.c (_initialize_macroscope): Update the new_macro_table
10151         caller.
10152         * macrotab.c (struct macro_table): New field comp_dir.
10153         (macro_include): New variables link_fullname and source_fullname.
10154         Replace any macro_source_file->filename access by macro_source_fullname
10155         call.
10156         (macro_lookup_inclusion): Remove the partial filenames checking code.
10157         (check_for_redefinition): New variables source_fullname and
10158         found_key_fullname.  Replace any macro_source_file->filename access by
10159         macro_source_fullname call.
10160         (macro_undef): New variables source_fullname and key_fullname.  Replace
10161         any macro_source_file->filename access by macro_source_fullname call.
10162         (macro_lookup_definition): New variables retval and source_fullname.
10163         Replace any macro_source_file->filename access by macro_source_fullname
10164         call.
10165         (foreach_macro): New variable key_fullname.  Replace any
10166         macro_source_file->filename access by macro_source_fullname call.
10167         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
10168         macro_source_file->filename access by macro_source_fullname call.
10169         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
10170         (macro_source_fullname): New function.
10171         * macrotab.h (struct macro_source_file): Extent the filename field
10172         comment.
10173         (new_macro_table): New parameter comp_dir, add a comment for it.
10174         (macro_source_fullname): new declaration.
10175
10176 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10177
10178         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10179         this_real_name to outer block.  Use it also for
10180         compare_filenames_for_search.
10181         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
10182         with dw2_get_real_path for file_matcher, considering also
10183         BASENAMES_MAY_DIFFER.
10184         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10185
10186 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10187
10188         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10189         to the file_matcher parameter.  Pass 0 to it.
10190         (dwarf2_create_include_psymtab): Copy also DIRNAME.
10191         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10192         NULL psymtab_to_fullname result.
10193         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
10194         an expected filename instead.
10195         (expand_symtabs_matching_via_partial): Add basenames parameter to the
10196         file_matcher parameter.  Call also psymtab_to_fullname, after newly
10197         considering BASENAMES_MAY_DIFFER.
10198         * source.c (rewrite_source_path): Remove static.
10199         * source.h (rewrite_source_path): New declaration.
10200         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10201         the expand_symtabs_matching field.  Comment it.
10202         * symtab.c (file_matches): New function comment.  Add parameter
10203         basenames, implement it.
10204         (search_symbols_file_matches): Add basenames parameter.  Update the
10205         file_matches caller.
10206         (search_symbols): Match FILES also against symtab_to_fullname.
10207         Optimize it for BASENAMES_MAY_DIFFER.
10208
10209 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10210
10211         * source.c (print_source_lines_base): Print for TUI also "fullname".
10212         * tui/tui-data.c (init_content_element): Change tui_locator_element
10213         field to full_name.
10214         * tui/tui-data.h (struct tui_locator_element): Likewise.
10215         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10216         tui_update_locator_filename calls to tui_update_locator_fullname.
10217         Replace symtab->filename refererence by symtab_to_fullname call.
10218         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10219         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10220         field to full_name.  Replace symtab->filename refererence by
10221         symtab_to_fullname call.
10222         (tui_show_symtab_source): Rename parameter to fullname.  Change
10223         tui_locator_element field to full_name.
10224         * tui/tui-stack.c: Include source.h.
10225         (tui_set_locator_filename): Rename the declaration to ...
10226         (tui_set_locator_fullname): ... here.  Rename its parameter to
10227         fullname, updates its comment.
10228         (tui_set_locator_info): Rename its parameter to fullname.
10229         (tui_set_locator_filename): Rename the definition to ...
10230         (tui_set_locator_fullname): ... here.  Rename its parameter to
10231         fullname, updates its comment.  Change tui_locator_element field to
10232         full_name.
10233         (tui_set_locator_info): Rename its parameter to fullname.
10234         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10235         (tui_update_locator_filename): Rename to ...
10236         (tui_update_locator_fullname): ... here. Rename callee to
10237         tui_set_locator_fullname.
10238         (tui_show_frame_info): Replace symtab->filename refererence by
10239         symtab_to_fullname call.
10240         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10241         (tui_update_locator_fullname): ... here.
10242         * tui/tui-winsource.c (tui_display_main): Rename the callee to
10243         tui_update_locator_fullname.  Replace symtab->filename refererence by
10244         symtab_to_fullname call.
10245         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10246         Rename the callee to tui_update_locator_fullname.
10247         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10248
10249 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10250
10251         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10252         by symtab_to_filename_for_display calls.
10253         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10254         (clear_command): New variable sal_fullname, initialize it.  Replace
10255         compare_filenames_for_search by filename_cmp with sal_fullname.
10256         (say_where, update_static_tracepoint): Replace symtab->filename
10257         refererences by symtab_to_filename_for_display calls.
10258         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10259         Likewise.
10260         * dwarf2read.c: Include source.h.
10261         (fixup_go_packaging): Replace symtab->filename refererences by
10262         symtab_to_filename_for_display calls.
10263         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10264         Replace symtab->filename refererences by symtab_to_filename_for_display
10265         calls.
10266         (create_sals_line_offset, convert_linespec_to_sals): New variable
10267         fullname, initialize it, replace symtab->filename reference by the
10268         variable.
10269         * linux-fork.c: Include source.h.
10270         (info_checkpoints_command): Replace symtab->filename refererences by
10271         symtab_to_filename_for_display calls.
10272         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10273         by symtab_to_filename_for_display calls.
10274         * mdebugread.c: Include source.h.
10275         (psymtab_to_symtab_1): Replace symtab->filename refererences by
10276         symtab_to_filename_for_display calls.
10277         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10278         (mi_cmd_file_list_exec_source_files): Likewise.
10279         * printcmd.c: Include source.h.
10280         (build_address_symbolic): Replace symtab->filename refererences by
10281         symtab_to_filename_for_display calls.
10282         * psymtab.c (partial_map_symtabs_matching_filename)
10283         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10284         with psymtab_to_fullname.
10285         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10286         by symtab_to_filename_for_display calls.
10287         (stpy_get_filename): New variable filename, initialize it, use instead
10288         of symtab->filename refererences.
10289         (salpy_str): Make variable filename const char *.  Replace
10290         symtab->filename refererences by symtab_to_filename_for_display calls.
10291         * skip.c: Include source.h and filenames.h.
10292         (skip_file_command): Remove const from the symtab variable.  Replace
10293         symtab->filename refererences by symtab_to_fullname call.
10294         (function_name_is_marked_for_skip): New variables searched_for_fullname
10295         and fullname.  Use them to search also with symtab's fullname.
10296         * source.c (find_source_lines): Replace symtab->filename refererences
10297         by symtab_to_filename_for_display calls.
10298         (print_source_lines_base): New variable filename, use it instead of
10299         symtab->filename.  Replace symtab->filename refererences by
10300         symtab_to_filename_for_display calls.
10301         (line_info, forward_search_command): Replace symtab->filename
10302         refererences by symtab_to_filename_for_display calls.
10303         (reverse_search_command): Replace symtab->filename refererences by
10304         symtab_to_filename_for_display calls.  New variable filename for it.
10305         * stack.c (frame_info): Likewise.
10306         * symmisc.c: Include source.h.
10307         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10308         (maintenance_info_symtabs): Replace symtab->filename refererences by
10309         symtab_to_filename_for_display calls.
10310         * symtab.c (iterate_over_some_symtabs): Call
10311         compare_filenames_for_search also with symtab_to_fullname.
10312         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10313         symtab->filename refererences by symtab_to_filename_for_display calls.
10314         (find_line_symtab): Replace symtab->filename refererences by
10315         symtab_to_filename_for_display calls.
10316         (file_matches): Replace filename_cmp by compare_filenames_for_search.
10317         (print_symbol_info): Make the last parameter const char *.  New
10318         variable s_filename.  Use it in the function.
10319         (symtab_symbol_info): Make the last_filename variable const char *.
10320         Replace symtab->filename refererences by symtab_to_filename_for_display
10321         calls.
10322         (rbreak_command): New variable fullname.  Use it.  Replace
10323         symtab->filename refererence by symtab_to_filename_for_display call.
10324         * tracepoint.c (set_traceframe_context, trace_find_line_command)
10325         (print_one_static_tracepoint_marker): Replace symtab->filename
10326         refererences by symtab_to_filename_for_display calls.
10327         * tui/tui-source.c (tui_set_source_content): New variables filename and
10328         s_filename.  Replace symtab->filename refererences by this variable.
10329         Replace other symtab->filename refererences by
10330         symtab_to_filename_for_display calls.
10331
10332 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10333             Jan Kratochvil  <jan.kratochvil@redhat.com>
10334
10335         Add a new variable that controls a way in which filenames are
10336         displayed.
10337         * NEWS (set filename-display): New entry.
10338         * source.c (filename_display_basename, filename_display_relative)
10339         (filename_display_absolute, filename_display_kind_names)
10340         (filename_display_string, show_filename_display_string)
10341         (symtab_to_filename_for_display): New.
10342         (_initialize_source): Added initialization of 'filename-display'
10343         variable.
10344         * source.h (symtab_to_filename_for_display): Added declaration.
10345         * stack.c (print_frame): Added new variable and calling of a new
10346         function and condition with this variable. Changed third argument of
10347         calling of a function.
10348
10349 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10350
10351         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10352         Rename field reference filename to fullname.
10353         * tui/tui-data.h (struct tui_source_info): Rename field filename to
10354         fullname.  New comment for it.
10355         * tui/tui-source.c (tui_set_source_content): Rename field reference
10356         filename to fullname.  Initialize field by symtab_to_fullname now.
10357         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10358         reference filename to fullname.  Use symtab_to_fullname during
10359         comparison.
10360
10361 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10362
10363         Code cleanup.
10364         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10365         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
10366         filename to fullname.  Rename variable this_name to this_fullname.
10367         Lowercase FILENAME_CMP call.
10368         (dw2_find_symbol_file): New comment for the returned string.
10369         (dwarf2_gdb_index_functions): Rename the function to
10370         dw2_expand_symtabs_with_fullname.
10371         * psymtab.c (read_psymtabs_with_filename): Rename to ...
10372         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
10373         fullname.
10374         (psym_functions): Rename the function to read_psymtabs_with_fullname.
10375         * symfile.h (struct quick_symbol_functions): Rename field
10376         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10377         parameter filename to fullname.  Document returned string meaning for
10378         find_symbol_file.
10379         * symtab.c (find_line_symtab): Rename the called function to
10380         expand_symtabs_with_fullname.
10381
10382 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10383
10384         Code cleanup.
10385         * breakpoint.c (clear_command): Remove variable is_abs, unify the
10386         call of filename_cmp with compare_filenames_for_search.
10387         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10388         is_abs, unify the call of FILENAME_CMP with
10389         compare_filenames_for_search.  New gdb_asserts for real_path and name.
10390         Unify the call of compare_filenames_for_search with FILENAME_CMP.
10391         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10392         * symfile.h (struct quick_symbol_functions): Extend the comment for
10393         map_symtabs_matching_filename.
10394         * symtab.c (compare_filenames_for_search): Remove the function comment
10395         relative path requirement.  Handle absolute filenames, with a comment.
10396         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10397         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
10398         real_path and name.  Unify the call of compare_filenames_for_search
10399         with FILENAME_CMP.
10400         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10401
10402 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10403
10404         Code cleanup.
10405         * breakpoint.c (print_breakpoint_location): Replace bp_location field
10406         source_file references by symtab field references.  Remove variables
10407         sal and fullname.
10408         (momentary_breakpoint_from_master, add_location_to_breakpoint):
10409         (clear_command, say_where): Replace bp_location field source_file
10410         references by symtab field references.
10411         (bp_location_dtor): Remove the source_file reference.
10412         (update_static_tracepoint): Replace bp_location field source_file
10413         references by symtab field references.
10414         (breakpoint_free_objfile): New function.
10415         * breakpoint.h (struct bp_location): Extend the comment for line_number.
10416         Replace the field source_file by field symtab, extend its comment.
10417         (breakpoint_free_objfile): New declaration.
10418         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10419         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10420         field source_file references by symtab field references.
10421
10422 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10423
10424         Replace xfullpath calls by gdb_realpath calls.
10425         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10426         function comment.
10427         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10428         Remove it from the iterate_over_some_symtabs call.
10429         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10430         Remove it from the dw2_map_expand_apply calls, remove a block handling
10431         it.
10432         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10433         Remove it from the iterate_over_some_symtabs call.
10434         (partial_map_symtabs_matching_filename): Remove parameter full_path.
10435         Remove it from the partial_map_expand_apply calls, remove a block
10436         handling it.  Drop gdb_realpath call and cleanups from the real_path
10437         handling.
10438         * source.c (openp): Drop the comment part about xfullpath.  Replace
10439         xfullpath calls by gdb_realpath calls.
10440         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10441         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10442         from method map_symtabs_matching_filename and its comment.
10443         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10444         gdb_realpath call.
10445         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10446         remove it also from the function comment, remove a block handling it.
10447         Drop gdb_realpath call and cleanups from the real_path handling.
10448         (iterate_over_symtabs): Drop variable full_path and its use.
10449         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10450         * utils.c (xfullpath): Remove.
10451         * utils.h (xfullpath): Remove.
10452
10453 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
10454
10455         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10456         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10457         (ALLDEPFILES): Add ppc64-tdep.c.
10458         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10459         ppc64-tdep.o to gdb_target_obs.
10460         * ppc64-tdep.h: New file.
10461         * ppc64-tdep.c: New file.
10462         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10463         ppc-linux-tdep.c to here.
10464         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10465         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10466         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10467         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10468         from ppc-linux-tdep.c to here.
10469         (ppc64_convert_from_func_ptr_addr): Rename from
10470         ppc64_linux_convert_from_func_ptr_addr to
10471         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10472         here.
10473         * rs6000-tdep.c:
10474         (read_insn): Move from ppc-linux-tdep.c to here.
10475         (insns_match_pattern, insn_d_field, insn_ds_field): Move
10476         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10477         * ppc-linux-tdep.c: Include ppc64-tdep.h.
10478         Removed above functions.
10479         (ppc_linux_init_abi): Adjust.
10480
10481 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10482
10483         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10484
10485 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10486
10487         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10488
10489 2013-02-01  Pedro Alves  <palves@redhat.com>
10490
10491         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10492         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10493
10494 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10495
10496         * elfread.c (elf_symfile_read): Limit separate debug info additions to
10497         files with no separate debug info.
10498         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10499         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10500         only for files with no separate debug info.
10501
10502 2013-01-31  Tom Tromey  <tromey@redhat.com>
10503
10504         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10505         change type.
10506         (struct jit_program_space_data): Rename from jit_inferior_data.
10507         Update comments.
10508         (get_jit_program_space_data): Rename from get_jit_inferior_data.
10509         Change return type.  Attach data to program space.
10510         (jit_program_space_data_cleanup): Rename from
10511         jit_inferior_data_cleanup; change argument type.
10512         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10513         change type.
10514         (jit_register_code): Update.
10515         (jit_update_inferior_cache): Remove.
10516         (jit_breakpoint_deleted): Get jit data from the location's program
10517         space.
10518         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10519         'ps_data', change type.
10520         (jit_inferior_init, jit_breakpoint_re_set_internal)
10521         (jit_event_handler): Update.
10522         (free_objfile_data): Get data from objfile's program space.
10523         (_initialize_jit): Update.
10524
10525 2013-01-31  Tom Tromey  <tromey@redhat.com>
10526
10527         PR gdb/13987:
10528         * jit.c (struct jit_inferior_data) <cached_code_address,
10529         jit_breakpoint>: New fields.
10530         (jit_breakpoint_re_set_internal): Fix logging.  Only create
10531         breakpoint if cached address has changed.
10532         (jit_update_inferior_cache, jit_breakpoint_deleted): New
10533         functions.
10534         (_initialize_jit): Register breakpoint deleted observer.
10535
10536 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10537
10538         * infrun.c (handle_syscall_event): Remove unused gdbarch.
10539         (save_infcall_suspend_state): Ifdef out unused inf.
10540         (restore_infcall_suspend_state): Ifdef out unused inf.
10541         * jit.c (jit_register_code): Remove unused i, b, inf_data.
10542         (jit_frame_sniffer): Remove unused inf_data.
10543
10544 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10545
10546         * c-exp.y (classify_inner_name): Remove unused type.
10547         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10548         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10549         need_escape.
10550         (c_get_string): Remove unused kind.
10551         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10552
10553 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10554
10555         * charset.c (intermediate_encoding): Remove unused i.
10556         * completer.c (signal_completer): Remove unused i.
10557         * continuations.c (discard_my_continuations_1): Remove unused
10558         continuation_ptr.
10559         * corelow.c (core_close): Remove unuseD name.
10560         (get_core_siginfo): Remove unused pid.
10561         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10562         i, cps.
10563         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10564         (loclist_describe_location): Remove unused first.
10565         * event-top.c (command_line_handler): Remove unused got_eof.
10566         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10567         (resize_section_table): Remove unused old_value.
10568         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10569         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10570         * i386-tdep.c (i386_process_record): Remove unused rex.
10571         * infcmd.c (get_return_value): Remove unused uiout.
10572         * jv-lang.c (type_from_class): Remove unused is_array.
10573         * jv-valprint.c (java_val_print): Remove unused i.
10574         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10575         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10576         * m2-typeprint.c (m2_print_type): Remove unused code.
10577         * macroexp.c (get_character_constant): Remove unused body_start.
10578         (macro_stringify): Remove unused result.
10579         * objc-lang.c (find_methods): Remove unused gdbarch.
10580         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10581         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10582         * stack.c (print_frame_args): Remove unused summary.
10583         * thread.c (thread_apply_command): Remove unused p.
10584         * valarith.c (value_x_unop): Remove unused mangle_ptr.
10585         * valops.c (search_struct_method): Remove unused skip.
10586         * valprint.c (generic_val_print): Remove unused byte_order.
10587         * varobj.c (varobj_update): Remove unused changed.
10588         * cli/cli-cmds.c (complete_command): Remove unused next_item.
10589         (alias_command): Remove unused c.
10590         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10591         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10592         format.
10593         (mi_cmd_data_write_memory): Remove unused word_format.
10594         (mi_cmd_data_write_memory_bytes): Remove unused r.
10595         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10596         p_start, p_end.
10597         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10598         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10599         line_width.
10600
10601 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10602
10603         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10604         * symtab.c (iterate_over_symtabs): Remove unused s.
10605         (find_pc_sect_symtab): Remove unused pspAce.
10606         (find_pc_sect_line): Remove unused alt_symtab.
10607         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10608         (completion_list_add_name): Remove unused newsize.
10609
10610 2013-01-31  Tom Tromey  <tromey@redhat.com>
10611
10612         PR c++/14998:
10613         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10614         TYPE_CODE_FUNC.
10615
10616 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10617
10618         * target.c (target_read_string): Remove unused origlen.
10619
10620 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10621
10622         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10623         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10624         * ax-general.c (ax_print): Remove unused is_float.
10625         * blockframe.c (block_innermost_frame): Remove unused start, end.
10626         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10627
10628 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10629
10630         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10631         (svr4_read_so_list): Remove unused lmo.
10632         * solib-target.c (solib_target_relocate_section_addresses): Remove
10633         unused flags.
10634
10635 2013-01-30  Tom Tromey  <tromey@redhat.com>
10636
10637         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10638
10639 2013-01-30  Tom Tromey  <tromey@redhat.com>
10640
10641         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10642         * utils.c (gnu_debuglink_crc32): Remove.
10643         * utils.h (gnu_debuglink_crc32): Don't declare.
10644
10645 2013-01-30  Tom Tromey  <tromey@redhat.com>
10646
10647         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10648         (read_structure_type, read_enumeration_type): Remove cast.
10649
10650 2013-01-30  Tom Tromey  <tromey@redhat.com>
10651
10652         * dwarf2read.c (read_namespace_type): Remove cast.
10653         (read_typedef): Likewise.
10654
10655 2013-01-29  Tom Tromey  <tromey@redhat.com>
10656
10657         * dwarf2read.c (free_dwo_file): Remove assert.
10658
10659 2013-01-29  Tom Tromey  <tromey@redhat.com>
10660
10661         * value.c (deprecated_set_value_modifiable): Remove.
10662         * value.h (deprecated_set_value_modifiable): Remove.
10663
10664 2013-01-28  Doug Evans  <dje@google.com>
10665
10666         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10667         to addresses from dwo files.
10668
10669 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
10670
10671         * valops.c (find_overload_match): Remove unused argument 'lax'.
10672         * value.h: Remove unused argument 'lax' from the declaration of
10673         find_overload_match.
10674         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10675         to find_overload_match.
10676         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10677         argument to find_overload_match.
10678
10679 2013-01-25  Tom Tromey  <tromey@redhat.com>
10680
10681         * dwarf2read.c (processing_has_namespace_info): Remove.
10682         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10683         (process_die, read_func_scope, dwarf2_start_symtab)
10684         (new_symbol_full): Update.
10685
10686 2013-01-25  Tom Tromey  <tromey@redhat.com>
10687
10688         * cp-namespace.c (cp_set_block_scope): Remove.
10689         * cp-support.h (cp_set_block_scope): Remove.
10690         * dbxread.c: Include block.h.
10691         (cp_set_block_scope): New function.
10692         (process_one_symbol): Update.
10693         * dwarf2read.c (read_func_scope): Use block_set_scope.
10694
10695 2013-01-25  Pedro Alves  <palves@redhat.com>
10696
10697         * remote.c (add_current_inferior_and_thread): Tweak comment.
10698
10699 2013-01-25  Tom Tromey  <tromey@redhat.com>
10700
10701         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10702         (cp_add_using_directive): Add 'copy_names' argument.
10703         * cp-support.h (cp_add_using_directive): Update.
10704         (struct using_direct) <import_src, import_dest, alias,
10705         declaration>: Now const.
10706         * dwarf2read.c (read_import_statement): Use obconcat.
10707         Don't copy names passed to cp_add_using_directive.
10708
10709 2013-01-25  Tom Tromey  <tromey@redhat.com>
10710
10711         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10712
10713 2013-01-25  Pedro Alves  <palves@redhat.com>
10714
10715         * remote.c (stop_reply_extract_thread): New.
10716         (add_current_inferior_and_thread): New parameter 'wait_status'.
10717         Handle it.
10718         (remote_start_remote): Pass wait status to
10719         add_current_inferior_and_thread.
10720         (extended_remote_run): Update comment.
10721         (extended_remote_create_inferior_1): Pass wait status to
10722         add_current_inferior_and_thread.
10723
10724 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
10725             Ulrich Weigand  <uweigand@de.ibm.com>
10726
10727         * valarith.c (value_vector_widen): New function for replicating a
10728         scalar into a vector.
10729         (value_binop): Use value_vector_widen to widen scalar to vector
10730         rather than casting, this better matches gcc C behaviour.
10731         * valops.c (value_casst): Update logic for casting between vector
10732         types, and for casting from scalar to vector, try to match gcc C
10733         behaviour.
10734         * value.h (value_vector_widen): Declare.
10735         * opencl-lang.c (opencl_value_cast): New opencl specific casting
10736         function, handle special case for casting scalar to vector.
10737         (opencl_relop): Use opencl_value_cast.
10738         (evaluate_subexp_opencl): Use opencl_value_cast instead of
10739         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10740         in order to use opencl_value_cast.
10741
10742 2013-01-25  Yao Qi  <yao@codesourcery.com>
10743
10744         * event-loop.c: Include "queue.h".
10745         (gdb_event_p): New typedef.
10746         (DECLARE_QUEUE_P): Use.
10747         (DEFINE_QUEUE_P): Use.
10748         (async_queue_event): Remove.
10749         (gdb_event_xfree): New.
10750         (initialize_event_loop): New.
10751         (process_event): Use QUEUE macros.
10752         (event_queue): Remove.
10753         (gdb_wait_for_event): Caller update.
10754         (check_async_event_handlers): Likewise.
10755         (poll_timers): Likewise.
10756         * event-loop.h (initialize_event_loop): Declare.
10757         * event-loop.c (gdb_event_xfree): New.
10758         * top.c (gdb_init): Call initialize_event_loop.
10759
10760 2013-01-25  Yao Qi  <yao@codesourcery.com>
10761
10762         * event-loop.c (async_queue_event): Remove one parameter
10763         'position'.  Remove code handling 'position' == TAIL.
10764         (gdb_wait_for_event): Caller update.
10765         (check_async_event_handlers): Caller update.
10766         (poll_timers): Caller update.
10767         * event-loop.h (enum queue_position): Remove.
10768
10769 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
10770
10771         * MAINTAINERS: Update my email.
10772
10773 2013-01-25  Yao Qi  <yao@codesourcery.com>
10774
10775         * main.c (print_gdb_help): Remove "--epoch" from the help
10776         message.
10777
10778 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
10779
10780         * symtab.c (skip_prologue_using_sal): Consider a file
10781         change the same as an increased line number
10782
10783 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10784
10785         * MAINTAINERS (Write After Approval): Add myself to the list.
10786
10787 2013-01-24  Tom Tromey  <tromey@redhat.com>
10788
10789         * ada-lang.h (ada_decode_symbol): Make return type const.
10790         * ada-lang.c (ada_decode_symbol): Likewise.
10791
10792 2013-01-23  Doug Evans  <dje@google.com>
10793
10794         * linespec.c (find_linespec_symbols): Make static.
10795
10796 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10797
10798         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10799         type on float conversion for complex type.
10800
10801 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
10802
10803         Add a new class gdb.Architecture which exposes GDB's
10804         internal representation of architecture via GDB Python API.
10805         * Makefile.in: Add entries corresponding to the new file
10806         python/py-arch.c.
10807         * NEWS (Python Scripting): Add entries for the new class
10808         gdb.Architecture and the new method gdb.Frame.architecture.
10809         * python/py-arch.c: Implement gdb.Architecture class.
10810         * python/py-frame.c (frapy_arch): Implement the method
10811         gdb.Frame.architecture().
10812         (frame_object_methods): Add 'architecture' to the method table.
10813         * python/python-internal.h: Add declarations of new utility
10814         functions.
10815         * python/python.c (_initialize_python): Initialize
10816         gdb.Architecture class.
10817
10818 2013-01-23  Doug Evans  <dje@google.com>
10819
10820         Work around binutils/15021.
10821         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10822         type_unit_group out of union s.  All uses updated.
10823         (read_index_from_section): Watch for index version 8.
10824         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10825         an imported symtab.
10826         (write_psymtabs_to_index): Increment version number to 8.
10827
10828 2013-01-22  Pedro Alves  <palves@redhat.com>
10829
10830         * annotate.c (breakpoint_changed): Skip if breakpoint is not
10831         user-visible.
10832
10833 2013-01-22  Pedro Alves  <palves@redhat.com>
10834
10835         * annotate.c (annotate_breakpoints_changed): Rename to ...
10836         (annotate_breakpoints_invalid): ... this.  Make static.
10837         (breakpoint_changed): Adjust.
10838         (_initialize_annotate): Always install the observers.  Install a
10839         "breakpoint_created" observer.
10840         * annotate.h (annotate_breakpoints_changed): Delete declaration.
10841         * breakpoint.c (set_breakpoint_condition)
10842         (breakpoint_set_commands, do_map_commands_command)
10843         (init_raw_breakpoint, clear_command, set_ignore_count)
10844         (enable_breakpoint_disp): No longer call
10845         annotate_breakpoints_changed.
10846
10847 2013-01-22  Pedro Alves  <palves@redhat.com>
10848
10849         * annotate.c: Include "inferior.h".
10850         (frames_invalid_emitted)
10851         (breakpoints_invalid_emitted): New globals.
10852         (async_background_execution_p): New function.
10853         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10854         emitting the annotation if it has already been emitted.
10855         (annotate_display_prompt): New function.
10856         * annotate.h (annotate_display_prompt): New declaration.
10857         * event-top.c: Include annotate.h.
10858         (display_gdb_prompt): Call annotate_display_prompt.
10859
10860 2013-01-22  Pedro Alves  <palves@redhat.com>
10861
10862         * annotate.c (ignore_count_changed): Delete.
10863         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10864         (annotate_ignore_count_change): Delete.
10865         (annotate_stopped): Don't emit a delayed breakpoints-changed
10866         annotation.
10867         * annotate.h (annotate_ignore_count_change): Delete.
10868         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10869         annotate_ignore_count_change.
10870
10871 2013-01-22  Tom Tromey  <tromey@redhat.com>
10872
10873         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10874         require_rvalue for a register location.
10875
10876 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
10877
10878         * breakpoint.c (print_one_breakpoint_location): Add MI
10879         field 'thread-groups' when printing a breakpoint.
10880         (output_thread_groups): New function.
10881
10882 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
10883
10884         * python/lib/gdb/commands/explore.py
10885         (CompoundExplorer.explore_expr): Correct the name of a method
10886         being invoked.
10887         (ExploreTypeCommand.invoke): Add a missing 'return'.
10888
10889 2013-01-21  Tom Tromey  <tromey@redhat.com>
10890
10891         * gdb_obstack.h (obconcat): Move declaration here, from...
10892         * symfile.h (obconcat): ... here.
10893         * gdb_obstack.c: New file.
10894         (obconcat): Move from...
10895         * symfile.c (obconcat): ... here.
10896         * Makefile.in (SFILES): Add gdb_obstack.c.
10897         (COMMON_OBS): Add gdb_obstack.o.
10898
10899 2013-01-21  Tom Tromey  <tromey@redhat.com>
10900
10901         * symfile.h (obsavestring): Don't declare.
10902         * symfile.c (obsavestring): Remove.
10903         * ada-exp.y: Use obstack_copy0, not obsavestring.
10904         * ada-lang.c: Use obstack_copy0, not obsavestring.
10905         * coffread.c: Use obstack_copy0, not obsavestring.
10906         * cp-namespace.c: Use obstack_copy0, not obsavestring.
10907         * dbxread.c: Use obstack_copy0, not obsavestring.
10908         * dwarf2read.c: Use obstack_copy0, not obsavestring.
10909         * jit.c: Use obstack_copy0, not obsavestring.
10910         * mdebugread.c: Use obstack_copy0, not obsavestring.
10911         * psymtab.c: Use obstack_copy0, not obsavestring.
10912         * stabsread.c: Use obstack_copy0, not obsavestring.
10913         * xcoffread.c: Use obstack_copy0, not obsavestring.
10914
10915 2013-01-21  Tom Tromey  <tromey@redhat.com>
10916
10917         * dwarf2read.c (fixup_go_packaging): Save package name
10918         on objfile obstack.
10919         * gdbtypes.c (init_type): Don't copy name.
10920
10921 2013-01-21  Tom Tromey  <tromey@redhat.com>
10922
10923         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10924         const.
10925         (struct attribute) <u.str>: Now const.
10926         (struct fnfieldlist) <name>: Now const.
10927         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10928         (partial_die_parent_scope): Make return type const.
10929         (partial_die_full_name, add_partial_symbol): Update.
10930         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10931         'name' const.
10932         (find_file_and_directory): Make 'name' and 'comp_dir' const.
10933         (read_file_scope, read_func_scope, dwarf2_add_field)
10934         (dwarf2_add_member_fn, read_structure_type)
10935         (process_enumeration_scope, read_array_type, read_module_type)
10936         (read_base_type, read_subrange_type): Update.
10937         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10938         (new_symbol_full, guess_full_die_structure_name): Update.
10939         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
10940         (dwarf2_name): Return const type.
10941         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10942         const.
10943
10944 2013-01-21  Tom Tromey  <tromey@redhat.com>
10945
10946         * gdbtypes.c (init_type): Make 'name' const.
10947         * gdbtypes.h (init_type): Update.
10948
10949 2013-01-21  Tom Tromey  <tromey@redhat.com>
10950
10951         * buildsym.c (patch_subfile_names): Use set_last_source_file.
10952         (start_symtab): Make 'name' and 'dirname' const.  Use
10953         set_last_source_file.
10954         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10955         (last_source_file): Define.  Now static.
10956         (set_last_source_file, get_last_source_file): New functions.
10957         * buildsym.h (last_source_file): Don't declare.
10958         (start_symtab): Update.
10959         (set_last_source_file, get_last_source_file): Declare.
10960         * coffread.c (complete_symtab): Use set_last_source_file.
10961         (coff_end_symtab): Likewise.
10962         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10963         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10964         set_last_source_file.
10965         (process_one_symbol): Use get_last_source_file.
10966         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10967         (psymtab_to_symtab_1): Use get_last_source_file.
10968         * xcoffread.c (process_linenos): Use get_last_source_file.
10969         (complete_symtab): Use set_last_source_file.
10970         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10971         (scan_xcoff_symtab): Use set_last_source_file.
10972
10973 2013-01-21  Tom Tromey  <tromey@redhat.com>
10974
10975         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10976         (symbol_set_names): Remove casts.  Handle field const-ness.
10977
10978 2013-01-21  Tom Tromey  <tromey@redhat.com>
10979
10980         * dwarf2read.c (new_symbol_full): Remove cast.
10981         * symtab.c (symbol_set_demangled_name): Make 'name' const.
10982         * symtab.h (symbol_set_demangled_name): Update.
10983
10984 2013-01-21  Tom Tromey  <tromey@redhat.com>
10985
10986         * main.c (captured_main): Call bfd_init.
10987
10988 2013-01-21  Tom Tromey  <tromey@redhat.com>
10989
10990         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10991         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10992         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10993         * NEWS: Update.
10994
10995 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10996
10997         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10998
10999 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11000
11001         Fix gdb.fortran/common-block.exp crash in PIE mode.
11002         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11003         LOC_COMMON_BLOCK.
11004         * f-valprint.c (info_common_command_for_block): Expect
11005         LOC_COMMON_BLOCK in gdb_assert.
11006         * symtab.h (struct general_symbol_info): Update comment for the
11007         common_block member.
11008         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11009         (enum address_class): New member LOC_COMMON_BLOCK.
11010
11011 2013-01-18  David Blaikie  <dblaikie@gmail.com>
11012
11013         * MAINTAINERS (Write After Approval): Add "David Blaikie".
11014
11015 2013-01-18  Tom Tromey  <tromey@redhat.com>
11016
11017         PR c++/14999:
11018         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11019         Call require_rvalue.
11020
11021 2013-01-18  Yao Qi  <yao@codesourcery.com>
11022
11023         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11024         (dbx_read_symtab): New declaration.
11025         (dbx_psymtab_to_symtab): Delete.
11026         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11027         Rename parameter PST to SELF.  Exchanged two parameters.
11028         (start_psymtab): Caller update.
11029         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11030         (dwarf2_read_symtab): New declaration.
11031         (dwarf2_psymtab_to_symtab): Delete.
11032         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11033         Rename parameter PST to SELF.  Exchanged two parameters.
11034         (create_partial_symtab): Caller update.
11035         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11036         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11037         Rename parameter PST to SELF.  Exchanged two parameters.
11038         (parse_partial_symbols, new_psymtab): Caller update.
11039         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11040         two parameters.
11041         * psymtab.c (psymtab_to_symtab): Caller update.
11042         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11043         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11044         Rename parameter PST to SELF.  Exchanged two parameters.
11045         (xcoff_start_psymtab): Caller update.
11046
11047 2013-01-18  Yao Qi  <yao@codesourcery.com>
11048
11049         * infrun.c (proceed): Rename local variable 'oneproc' to
11050         'force_step'.
11051
11052 2013-01-17  Doug Evans  <dje@google.com>
11053
11054         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11055         (dw2_build_type_unit_groups): Delete.  All uses updated.
11056
11057         * symtab.h (struct symbol_search): Add comment.
11058
11059 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11060
11061         * symtab.c (compare_filenames_for_search): New comment for
11062         HAS_DRIVE_SPEC.
11063
11064 2013-01-17  Tom Tromey  <tromey@redhat.com>
11065
11066         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11067
11068 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11069
11070         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11071         initialize it by existing make_cleanup.  Call new do_cleanups.
11072
11073 2013-01-17  Tom Tromey  <tromey@redhat.com>
11074
11075         * cp-abi.c (cp_abi_completer): New function.
11076         (_initialize_cp_abi): Set completer for "set cp-abi".
11077
11078 2013-01-17  Tom Tromey  <tromey@redhat.com>
11079
11080         * mem-break.c: Remove obsolete comment.
11081         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11082
11083 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11084
11085         * jit.c (jit_reader_load_command): Interpret the jit reader name
11086         as an absolute path if it begins with a forward slash.
11087
11088 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
11089
11090         PR gdb/14550
11091
11092         * jit.c (finalize_symtab): Ensure that only the global block has a
11093         NULL superblock.
11094
11095 2013-01-17  Pedro Alves  <palves@redhat.com>
11096
11097         * acinclude.m4: Include ../config/plugins.m4,
11098         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
11099         * Makefile.in (aclocal_m4_deps): Update.
11100         * aclocal.m4: Renegerate.
11101
11102 2013-01-16  Doug Evans  <dje@google.com>
11103
11104         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11105
11106 2013-01-16  Pedro Alves  <palves@redhat.com>
11107             Tom Tromey  <tromey@redhat.com>
11108
11109         PR cli/7221:
11110         * NEWS: Add "catch signal".
11111         * breakpoint.c (base_breakpoint_ops): No longer static.
11112         (bpstat_explains_signal): New function.
11113         (init_catchpoint): No longer static.
11114         (base_breakpoint_explains_signal): New function.
11115         (base_breakpoint_ops): Initialize new field.
11116         * breakpoint.h (enum bpstat_signal_value): New.
11117         (struct breakpoint_ops) <explains_signal>: New field.
11118         (bpstat_explains_signal): Remove macro, declare as function.
11119         (base_breakpoint_ops, init_catchpoint): Declare.
11120         * break-catch-sig.c: New file.
11121         * inferior.h (signal_catch_update): Declare.
11122         * infrun.c (signal_catch): New global.
11123         (handle_syscall_event): Update for change to
11124         bpstat_explains_signal.
11125         (handle_inferior_event): Likewise.  Always handle random signals
11126         via bpstats.
11127         (signal_cache_update): Check signal_catch.
11128         (signal_catch_update): New function.
11129         (_initialize_infrun): Initialize signal_catch.
11130         * Makefile.in (SFILES): Add break-catch-sig.c.
11131         (COMMON_OBS): Add break-catch-sig.o.
11132
11133 2013-01-16  Tom Tromey  <tromey@redhat.com>
11134
11135         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11136         (print_one_catch_solib, print_one_catch_syscall)
11137         (print_one_catch_exec, print_one_exception_catchpoint): Emit
11138         "catch-type".
11139
11140 2013-01-16  Yao Qi  <yao@codesourcery.com>
11141
11142         * printcmd.c (current_display_number): Make it static.
11143
11144 2013-01-16  Yao Qi  <yao@codesourcery.com>
11145
11146         * infcmd.c (step_once): Don't check '!single_inst' as it was
11147         checked before.
11148
11149 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11150
11151         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11152
11153 2013-01-14  Tom Tromey  <tromey@redhat.com>
11154
11155         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11156         set command.
11157         * command.h (add_setshow_string_noescape_cmd): Update.
11158         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11159         (complete_set_gnutarget): New function.
11160         (_initialize_core): Set the "set gnutarget" completer.
11161
11162 2013-01-14  Tom Tromey  <tromey@redhat.com>
11163
11164         PR symtab/14442:
11165         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11166         (c_type_print_modifier): Likewise.
11167         * dwarf2read.c (read_tag_restrict_type): New function.
11168         (read_type_die_1): Handle DW_TAG_restrict_type.
11169         * gdbtypes.c (make_restrict_type): New function.
11170         (recursive_dump_type): Handle TYPE_RESTRICT.
11171         * gdbtypes.h (enum type_flag_values): Renumber.
11172         (enum type_instance_flag_value): Add
11173         TYPE_INSTANCE_FLAG_RESTRICT.
11174         (TYPE_RESTRICT): New macro.
11175         (make_restrict_type): Declare.
11176
11177 2013-01-14  Tom Tromey  <tromey@redhat.com>
11178
11179         PR symtab/14931:
11180         * psymtab.c (struct psymtab_state): New.
11181         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11182         functions.
11183         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11184         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11185
11186 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
11187             Pedro Alves  <palves@redhat.com>
11188
11189         PR remote/14786
11190
11191         * remote.c (remote_threads_info): Make a copy of the reply from
11192         qfThreadInfo and use that instead of rs->buf.
11193
11194 2013-01-14  Yao Qi  <yao@codesourcery.com>
11195
11196         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11197         (dbx_psymtab_to_symtab): Likewise.
11198         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11199         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11200         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11201
11202 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11203
11204         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
11205         make_cleanup_restore_current_language.  Call set_language.  Move
11206         OLD_CHAIN and INNER_CHAIN cleanups.
11207         * utils.c (do_restore_current_language)
11208         (make_cleanup_restore_current_language): New functions.
11209         * utils.h (make_cleanup_restore_current_language): New declaration.
11210
11211 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11212
11213         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11214         non-existing files.
11215
11216         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11217         non-existing files if FILENAME is already absolute.
11218
11219 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11220
11221         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11222         fputs_filtered.  Append trailing newline.
11223
11224 2013-01-11  Yao Qi  <yao@codesourcery.com>
11225             Stan Shebs  <stan@codesourcery.com>
11226
11227         * psymtab.c (init_psymbol_list): Clarify the comment.
11228
11229 2013-01-11  Yao Qi  <yao@codesourcery.com>
11230
11231         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11232         (update_dprintf_command_list): Assert that 'printf_line' is
11233         non-null.  Remove condition check.
11234
11235 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11236
11237         Code cleanup.
11238         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11239         type const char *.
11240         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11241         const char *.
11242         * tui/tui-source.h (tui_source_is_displayed): Likewise.
11243
11244 2013-01-09  Anthony Green  <green@moxielogic.com>
11245
11246         * cp-abi.c (cplus_print_vtable): Don't return value from void
11247         function.
11248         * ada-lang.c (re_set_catch_assert): Ditto.
11249
11250 2013-01-09  Doug Evans  <dje@google.com>
11251
11252         * symfile.h (quick_symbol_functions): Delete member
11253         pre_expand_symtabs_matching.  All uses removed.
11254         * dwarf2read.c (dw2_lookup_symbol): Implement.
11255         (dw2_do_expand_symtabs_matching): Delete.
11256         (dw2_pre_expand_symtabs_matching): Delete.
11257         (struct dw2_symtab_iterator): New type.
11258         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11259         (dw2_expand_symtabs_for_function): Rewrite.
11260         (dwarf2_gdb_index_functions): Update.
11261         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11262         (psym_functions): Update.
11263
11264 2013-01-09  Tom Tromey  <tromey@redhat.com>
11265
11266         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11267         * configure: Rebuild.
11268         * configure.ac: Add somread.o to the build if BFD has SOM
11269         support.
11270         * somread.c: Include som/aout.h, not syms.h.
11271         (som_symtab_read): Use som_external_symbol_dictionary_record.
11272         Unpack records manually.
11273         (_initialize_somread): Declare.
11274
11275 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
11276
11277         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11278         Cast return_address to 64bits.
11279
11280 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
11281
11282         * printcmd.c: Remove define of function output_command.
11283         * tracepoint.c: Remove extern of function output_command.
11284         * valprint.h: (output_command): New extern.
11285
11286 2013-01-07  Tom Tromey  <tromey@redhat.com>
11287
11288         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11289         Remove.
11290         (objc_language_defn): Use c_printchar, c_printstr,
11291         c_emit_char.
11292
11293 2013-01-07  Tom Tromey  <tromey@redhat.com>
11294
11295         PR cli/7719:
11296         * NEWS: Update.
11297         * ada-valprint.c (printstr, print_field_values): Remove
11298         "inspect_it" code.
11299         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11300         code.
11301         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11302         code.
11303         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11304         * main.c (captured_main): Remove "epoch" argument.
11305         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11306         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11307         * p-valprint.c (pascal_object_print_value_fields): Remove
11308         "inspect_it" code.
11309         * printcmd.c (print_command_1): Remove 'inspect' argument.
11310         (print_command, call_command): Update.
11311         (inspect_command): Remove.
11312         (_initialize_printcmd): Make "inspect" an alias for "print".
11313         * top.c (epoch_interface): Remove.
11314         * top.h (epoch_interface): Remove.
11315         * valprint.c (user_print_options): Update.
11316         (print_converted_chars_to_obstack): Remove "inspect_it" code.
11317         * valprint.h (struct value_print_options) <inspect_it>: Remove
11318         field.
11319
11320 2013-01-04  Tom Tromey  <tromey@redhat.com>
11321
11322         * valprint.h (read_string): Add 'extern'.
11323
11324 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
11325
11326         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11327         used to decide whether to define darwin_read_dyld_info or not.
11328
11329 2013-01-03  Pierre Muller  <muller@sourceware.org>
11330
11331         * main.c (relocate_gdb_directory): Avoid calling stat function
11332         if DIR is empty.
11333
11334 2013-01-03  Yao Qi  <yao@codesourcery.com>
11335
11336         * psymtab.c (fixup_psymbol_section): Update declaration.
11337         (fixup_psymbol_section): Remove code returning value.
11338
11339 2013-01-03  Yao Qi  <yao@codesourcery.com>
11340
11341         * symtab.h: Remove some out of date comments.
11342          (enum exception_event_kind): Move it ...
11343         * breakpoint.c: ... here.
11344
11345 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
11346
11347         PR gdb/14405
11348         * darwin-nat.c (darwin_read_dyld_info): Only build if
11349         TASK_DYLD_INFO_COUNT is defined.
11350         (darwin_xfer_partial): Call darwin_read_dyld_info only if
11351         TASK_DYLD_INFO_COUNT is defined.
11352
11353 2013-01-02  Tom Tromey  <tromey@redhat.com>
11354
11355         * symfile.h (struct ecoff_debug_hack): Remove.
11356         * objfiles.c: Don't include mdebugread.h.
11357
11358 2013-01-02  Tom Tromey  <tromey@redhat.com>
11359
11360         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11361         * configure.ac: Check for Mach-O support in BFD.  Update
11362         CONFIG_OBS.
11363         * configure: Rebuild.
11364
11365 2013-01-02  Tom Tromey  <tromey@redhat.com>
11366
11367         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11368         * configure.ac: Use GDB_AC_CHECK_BFD.
11369         * configure: Rebuild.
11370
11371 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11372
11373         * MAINTAINERS: Update my email.
11374
11375 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11376
11377         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11378
11379 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11380
11381         * rs6000-nat.c (bss_data_overlap): New function.
11382         (vmap_symtab): Use it to adjust the .bss section's offset.
11383
11384 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11385
11386         Update year range in copyright notice of all files.
11387
11388 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
11389
11390         * top.c (print_gdb_version): Update copyright year.
11391
11392 For older changes see ChangeLog-2012.
11393 \f
11394 Local Variables:
11395 mode: change-log
11396 left-margin: 8
11397 fill-column: 74
11398 version-control: never
11399 coding: utf-8
11400 End: