d6200fa0844d7135f5edb4152a2c6b7c20544fbf
[external/binutils.git] / gdb / ChangeLog
1 2013-10-17  Tom Tromey  <tromey@redhat.com>
2
3         PR gdb/15995:
4         * printcmd.c (printcmd): Call gdb_flush.
5
6 2013-10-17  Tom Tromey  <tromey@redhat.com>
7
8         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
9         (elf_locate_sections): Update.
10
11 2013-10-17  Yao Qi  <yao@codesourcery.com>
12
13         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
14         * ada-varobj.c: Remove the include of ada-varobj.h.
15         (ada_varobj_get_number_of_children): Declare.
16         (ada_varobj_get_name_of_child): Make it static.
17         (ada_varobj_get_path_expr_of_child): Likewise.
18         (ada_varobj_get_value_of_child): Likewise.
19         (ada_varobj_get_type_of_child): Likewise.
20         (ada_varobj_get_value_of_array_variable): Likewise.
21         * ada-varobj.h: Remove.
22
23 2013-10-17  Yao Qi  <yao@codesourcery.com>
24
25         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
26         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
27         * ada-varobj.c: Include "varobj.h".
28         (ada_number_of_children): New.  Moved from varobj.c.
29         (ada_name_of_variable, ada_name_of_child): Likewise.
30         (ada_path_expr_of_child, ada_value_of_child): Likewise.
31         (ada_type_of_child, ada_value_of_variable): Likewise.
32         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
33         (ada_varobj_ops): New.
34         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
35         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
36         * gdbtypes.h (get_target_type): Declare.
37         * varobj.c: Remove the inclusion of "ada-varobj.h" and
38         "ada-lang.h".
39         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
40         (ANONYMOUS_UNION_NAME): Likewise.
41         (get_type, get_value_type, get_target_type): Remove declarations.
42         (value_get_print_value, varobj_value_get_print_value): Likewise.
43         (c_number_of_children, c_name_of_variable): Likewise.
44         (c_name_of_child, c_path_expr_of_child): Likewise.
45         (c_value_of_child, c_type_of_child): Likewise.
46         (c_value_of_variable, cplus_number_of_children): Likewise.
47         (cplus_class_num_children, cplus_name_of_variable): Likewise.
48         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
49         (cplus_value_of_child, cplus_type_of_child): Likewise.
50         (cplus_value_of_variable, java_number_of_children): Likewise.
51         (java_name_of_variable, java_name_of_child): Likewise.
52         (java_path_expr_of_child, java_value_of_child): Likewise.
53         (java_type_of_child, java_value_of_variable): Likewise.
54         (ada_number_of_children, ada_name_of_variable): Likewise.
55         (ada_name_of_child, ada_path_expr_of_child): Likewise.
56         (ada_value_of_child, ada_type_of_child): Likewise.
57         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
58         (ada_value_has_mutated): Likewise.
59         (struct language_specific): Move it to varobj.h.
60         (CPLUS_FAKE_CHILD): Move it to varobj.h.
61         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
62         Callers update.
63         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
64         Make it extern.
65         (is_anonymous_child): Move it to c-varobj.c and rename to
66         varobj_is_anonymous_child.  Caller update.
67         (get_type): Move it to c-varobj.c.
68         (get_value_type): Rename it varobj_get_value_type.  Make it
69         extern.
70         (get_target_type): Move it gdbtypes.c.
71         (varobj_formatted_print_options): New function.
72         (value_get_print_value): Rename it to
73         varobj_value_get_print_value and make it extern.
74         (varobj_value_is_changeable_p): Make it extern.
75         (adjust_value_for_child_access): Move it to c-varobj.c.
76         (default_value_is_changeable_p): Rename it to
77         varobj_default_value_is_changeable_p.  Make it extern.
78         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
79         (c_name_of_child, c_path_expr_of_child): Likewise.
80         (c_value_of_child, c_type_of_child): Likewise.
81         (c_value_of_variable, cplus_number_of_children): Likewise.
82         (cplus_class_num_children, cplus_name_of_variable): Likewise.
83         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
84         (cplus_value_of_child, cplus_type_of_child): Likewise.
85         (cplus_value_of_variable): Likewise.
86         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
87         (java_name_of_child, java_path_expr_of_child): Likewise.
88         (java_value_of_child, java_type_of_child): Likewise.
89         (java_value_of_variable): Likewise.
90         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
91         (ada_name_of_child, ada_path_expr_of_child): Likewise.
92         (ada_value_of_child, ada_type_of_child): Likewise.
93         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
94         (ada_value_has_mutated): Likewise.
95         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
96         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
97         (c_varobj_ops, cplus_varobj_ops): Declare.
98         (java_varobj_ops, ada_varobj_ops): Declare.
99         (varobj_default_value_is_changeable_p): Declare.
100         (varobj_value_is_changeable_p): Declare.
101         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
102         (varobj_get_path_expr_parent): Declare.
103         (varobj_value_get_print_value): Declare.
104         (varobj_formatted_print_options): Declare.
105         (varobj_restrict_range): Declare.
106
107 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
108
109         * target/waitstatus.h (target_waitkind): Remove spurious
110         character from the comments.
111
112 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
113
114         * gdbarch.sh (get_longjmp_target): Add method documentation.
115         * gdbarch.h: Regenerate.
116
117 2013-10-16  Tom Tromey  <tromey@redhat.com>
118
119         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
120         label.
121
122 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
123
124         * gcore.in: Call GDB using the full path to the gcore script.
125         Error out if the GDB binary is not found.
126
127 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
128
129         PR gdb/16014
130         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
131         sizeof.
132
133 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
134
135         PR gdb/16042
136         * target.c (target_disable_btrace): Fix invalid return value for
137         void function.
138         (target_teardown_btrace): Likewise.
139
140 2013-10-14  Yao Qi  <yao@codesourcery.com>
141
142         * varobj.c (struct varobj): Move most of the fields to
143         varobj.h.
144         (struct varobj_dynamic): New struct.
145         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
146         (varobj_has_more): Likewise.
147         (dynamic_varobj_has_child_method): Likewise.
148         (update_dynamic_varobj_children): Likewise.
149         (varobj_get_num_children): Likewise.
150         (varobj_list_children, varobj_pretty_printed_p): Likewise.
151         (install_new_value_visualizer): Likewise.
152         (install_new_value_visualizer, install_new_value): Likewise.
153         (varobj_update, new_variable, free_variable): Likewise.
154         (my_value_of_variable, value_get_print_value): Likewise.
155         (install_visualizer): Change the type of parameter 'var' to
156         'struct varobjd_dynamic *'.  Callers update.
157         * varobj.h (struct varobj): Moved from varobj.c.
158         (struct varobj) <dynamic>: New field.
159
160 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
161
162         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
163         as the preferred name of r30.
164         * nios2-linux-tdep.c (reg_offsets): Likewise.
165         * features/nios2-cpu.xml: Likewise.
166         * features/nios2-linux.c: Regenerated.
167         * features/nios2.c: Regenerated.
168         * regformats/nios2-linux.dat: Regenerated.
169
170 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
171
172         Canonicalize directories for EXEC_FILENAME.
173         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
174         exec_filename.
175         * utils.c (gdb_realpath_keepfile): New function.
176         * utils.h (gdb_realpath_keepfile): New declaration.
177
178 2013-10-11  Doug Evans  <dje@google.com>
179
180         * Makefile.in (GDBFLAGS): New variable.
181         (run): New rule.
182
183 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
184
185         * NEWS: Add entry documenting the new "-catch-assert" and
186         "-catch-exception" GDB/MI commands.
187
188 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
189
190         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
191         "enabled".
192         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
193         "enabled".  Set B->ENABLE_STATE accordingly.
194         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
195         ada-lang.c.
196         (create_ada_exception_catchpoint): Add declaration.
197         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
198         (create_ada_exception_catchpoint): Make non-static. Add new
199         parameter "disabled". Use it in call to
200         init_ada_exception_breakpoint.
201         (catch_ada_exception_command): Add parameter "enabled" in call
202         to create_ada_exception_catchpoint.
203         (catch_assert_command): Likewise.
204
205         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
206         Add declarations.
207         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
208         "catch-exception" commands.
209         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
210         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
211
212 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
213
214         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
215         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
216         of all its enumerates with "ada_".  Update the rest of this
217         file throughout.
218
219 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
220
221         * ada-lang.c (ada_decode_exception_location): Delete.
222         (create_ada_exception_catchpoint): Remove arguments "sal",
223         "addr_string" and "ops".  Add argument "ex_kind" instead.
224         Adjust implementation accordingly, calling ada_exception_sal
225         to get the entities it no longer gets passed as arguments.
226         Document the function's arguments.
227         (catch_ada_exception_command): Use catch_ada_exception_command_split
228         instead of ada_decode_exception_location, and update call to
229         create_ada_exception_catchpoint.
230         (catch_ada_assert_command_split): Renames
231         ada_decode_assert_location.  Remove parameters "addr_string" and
232         "ops", and now returns void.  Adjust implementation accordingly.
233         Update the function documentation.
234         (catch_assert_command): Use catch_ada_assert_command_split
235         instead of ada_decode_assert_location.  Update call to
236         create_ada_exception_catchpoint.
237
238 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
239
240         * utils.h (perror_warning_with_name): Add declaration.
241         * utils.c (perror_warning_with_name): New function.
242         * cli/cli-cmds.c (source_script_with_search): Add call to
243         perror_warning_with_name if from_tty is nul.
244
245 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
246
247         * utils.c (perror_string): New function, extracted out of
248         throw_perror_with_name.
249         (throw_perror_with_name): Rework to use perror_string.
250
251 2013-10-11  Yao Qi  <yao@codesourcery.com>
252
253         * remote.c (discard_pending_stop_replies_in_queue): Update
254         declaration.
255         (struct stop_reply) <rs>: New field.
256         (remove_stop_reply_of_remote_state): New function.
257         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
258         Callers update.  Pass remove_stop_reply_of_remote_state to
259         QUEUE_iterate.
260         (remote_parse_stop_reply): Initialize field 'rs'.
261
262 2013-10-10  Will Newton  <will.newton@linaro.org>
263
264         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
265         linux_init_abi.
266
267 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
268
269         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
270         serial_baud_show_cmd.
271         (_initialize_cli_cmds): Delete the code creating the
272         "set/show remotebaud" commands.
273         * serial.c (baud_rate): Move here from top.c.
274         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
275         (_initialize_serial): Create "set/show serial baud" commands.
276         Add "set/show remotebaud" command aliases.
277         * top.c (baud_rate): Moved to serial.c.
278         * NEWS: Document the new "set/show serial baud" commands,
279         replacing "set/show remotebaud".
280
281 2013-10-09  Pedro Alves  <palves@redhat.com>
282
283         * breakpoint.c (insert_bp_location): Use memory_error_message to
284         build the memory error string.
285         * c-lang.c: Include "gdbcore.h".
286         (c_get_string): Use memory_error to throw error.
287         (target_xfer_memory_error): Delete.
288         (memory_error_message): New, factored out from
289         target_xfer_memory_error.
290         (memory_error): Change parameter type to target_xfer_error.
291         Rewrite.
292         (read_memory): Use memory_error instead of
293         target_xfer_memory_error.
294         * gdbcore.h: Include "target.h".
295         (memory_error): Change parameter type to target_xfer_error.
296         (memory_error_message): Declare function.
297         * target.c (target_read_memory, target_read_stack)
298         (target_write_memory, target_write_raw_memory): Return
299         TARGET_XFER_E_IO on error.  Adjust comments.
300         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
301         instead of EIO.
302         * target.h (target_read, target_insert_breakpoint)
303         (target_remove_breakpoint): Adjust comments.
304         * valprint.c (partial_memory_read): Rename parameter, and adjust
305         comment.
306         (val_print_string): Use memory_error_message to build the memory
307         error string.
308
309 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
310
311         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
312         result variable.  Rename variable fopen_e_ever_failed to
313         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
314
315 2013-10-09  Pedro Alves  <palves@redhat.com>
316
317         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
318         (monitor_write_memory_longlongs, monitor_write_memory_block):
319         Constify 'myaddr' parameter.
320         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
321         helper.
322         (monitor_xfer_partial): New function.
323         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
324         hook.  Install a to_xfer_partial hook.
325
326 2013-10-09  Tom Tromey  <tromey@redhat.com>
327
328         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
329         bfd_get_alt_debug_link_info.
330
331 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
332
333         New flag OBJF_NOT_FILENAME.
334         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
335         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
336         allocate_objfile.
337         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
338         symbol_file_add_from_bfd.
339         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
340         allocate_objfile.
341         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
342         NULL.
343         * objfiles.h (OBJF_NOT_FILENAME): New.
344
345 2013-10-08  Tom Tromey  <tromey@redhat.com>
346
347         * Makefile.in (SFILES): Add build-id.c.
348         (HFILES_NO_SRCDIR): Add build-id.h.
349         * build-id.c: New file, largely from elfread.c.  Modified
350         most functions.
351         * build-id.h: New file.
352         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
353         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
354         Search for dwz file using build-id.
355         * elfread.c (build_id_bfd_get, build_id_verify)
356         (build_id_to_debug_filename, find_separate_debug_file): Remove.
357
358 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
359
360         * ada-lang.c (compare_names_with_case): Renamed from
361         compare_names, adding a new parameter "casing" and its handling.
362         New function documentation.
363         (compare_names): New function, implemented using
364         compare_names_with_case.
365
366 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
367
368         * ada-lang.c (ada_exception_sal): Remove advance declaration.
369
370 2013-10-07  Tom Tromey  <tromey@redhat.com>
371
372         * objfiles.c (free_objfile_per_bfd_storage): Delete the
373         demangled_names_hash.
374         (free_objfile): Don't delete the demangled_names_hash.
375         * objfiles.h (struct objfile_per_bfd_storage)
376         <demangled_names_hash>: New field.
377         (struct objfile) <demangled_names_hash>: Move to
378         objfile_per_bfd_storage.
379         * symfile.c (reread_symbols): Don't delete the
380         demangled_names_hash.
381         * symtab.c (create_demangled_names_hash): Update.
382         (symbol_set_names): Update.
383
384 2013-10-07  Tom Tromey  <tromey@redhat.com>
385
386         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
387         needs_relocations>: New fields.
388         (gdb_bfd_requires_relocations): New function.
389         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
390         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
391         the BFD needs relocations applied.
392
393 2013-10-07  Pedro Alves  <palves@redhat.com>
394
395         PR breakpoints/11568
396         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
397         the thread list" instead of "gone".
398
399 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
400
401         * NEWS: Mention new convenience variable $_exitsignal.
402         * corelow.c (core_open): Reset exit convenience variables.  Set
403         $_exitsignal to the uncaught signal which generated the corefile.
404         * infrun.c (handle_inferior_event): Reset exit convenience
405         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
406         (clear_exit_convenience_vars): New function.
407         * inferior.h (clear_exit_convenience_vars): New prototype.
408
409 2013-10-06  Yao Qi  <yao@codesourcery.com>
410
411         * varobj.h: Add comments to enum varobj_languages.
412
413 2013-10-04  Doug Evans  <dje@google.com>
414
415         Add support for DWP file format version 2.
416         * NEWS: Mention support for DWP file format version 2.
417         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
418         union of asection, containing_section.  New fields virtual_offset
419         and is_virtual.  Change type of readin filed from int to char.
420         (dwo_sections, dwo_file): Tweak comments.
421         (dwp_v2_section_ids): New enum.
422         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
423         str_offsets, types.
424         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
425         All uses updated.
426         (virtual_v2_dwo_sections): New struct.
427         (dwp_hash_table): New fields version, nr_columns.  Change type of
428         section_pool field to a union.
429         (dwp_file): New field version.
430         (dwarf2_has_info): Check for virtual sections.
431         (get_containing_section): New function.
432         (get_section_bfd_owner, get_section_bfd_section): Call it.
433         (dwarf2_locate_sections): Update.
434         (dwarf2_section_empty_p): Update.
435         (dwarf2_read_section): Handle virtual sections.
436         (locate_dwz_sections): Update.
437         (create_dwp_hash_table): Document and handle V2 format.
438         (locate_v1_virtual_dwo_sections): Renamed from
439         locate_virtual_dwo_sections and update.  All callers updated.
440         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
441         Delete arg htab.  Rename arg section_index to unit_index.
442         All callers updated.
443         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
444         All uses updated.
445         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
446         (lookup_dwo_unit_in_dwp): Add V2 support.
447         (dwarf2_locate_dwo_sections): Update.
448         (dwarf2_locate_common_dwp_sections): Renamed from
449         dwarf2_locate_dwp_sections and update.  All callers updated.
450         (dwarf2_locate_v2_dwp_sections): New function.
451         (open_and_init_dwp_file): Add V2 support.
452         (read_str_index): New locals str_section, str_offsets_section.
453
454 2013-10-04  Pedro Alves  <palves@redhat.com>
455
456         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
457         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
458         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
459         describing comments with references to ptid.h.
460         * common/ptid.h: Remove intro description of constructors,
461         accessors and predicates.
462         (struct ptid): Reformat.
463         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
464         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
465         describing comments.
466
467 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
468
469         * aix-thread.c (sync_threadlists): Add missing ')' in call
470         to ptid_build.
471
472 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
473
474         * procfs.c (procfs_init_inferior): Fix typo causing the build
475         to fail.
476
477 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
478
479         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
480
481 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
482
483         * mi/mi-main.c (run_one_inferior): Add function description.
484         Make ARG a pointer to an integer whose value determines whether
485         we should "run" or "start" the program.
486         (mi_cmd_exec_run): Add handling of the "--start" option.
487         Reject all other command-line options.
488         * NEWS: Add entry for "-exec-run"'s new "--start" option.
489
490 2013-10-04  Yao Qi  <yao@codesourcery.com>
491
492         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
493         (struct notif_client) <pending_event>: Moved
494         to struct remote_notif_state.
495         <id>: New field.
496         (struct remote_notif_state) <pending_event>: New field.
497         (notif_event_xfree): Declare.
498         * remote-notif.c (handle_notification): Adjust.
499         (notif_event_xfree): New function.
500         (do_notif_event_xfree): Call notif_event_xfree.
501         (remote_notif_state_xfree): Call notif_event_xfree to free
502         each element in field pending_event.
503         * remote.c (discard_pending_stop_replies): Remove declaration.
504         (discard_pending_stop_replies_in_queue): Declare.
505         (remote_close): Call discard_pending_stop_replies_in_queue
506         instead of discard_pending_stop_replies.
507         (remote_start_remote): Adjust.
508         (stop_reply_xfree): Call notif_event_xfree.
509         (notif_client_stop): Adjust initialization.
510         (remote_notif_remove_all): Rename it to ...
511         (remove_stop_reply_for_inferior): ... this.  Update comments.
512         Don't check INF is NULL.
513         (discard_pending_stop_replies): Return early if notif_state is
514         NULL.  Adjust.  Don't check INF is NULL.
515         (remote_notif_get_pending_events): Adjust.
516         (discard_pending_stop_replies_in_queue): New function.
517         (remote_wait_ns): Likewise.
518
519 2013-10-04  Yao Qi  <yao@codesourcery.com>
520
521         * remote-notif.c (DECLARE_QUEUE_P): Remove.
522         (notif_queue): Remove.
523         (remote_notif_process): Add one parameter 'notif_queue'.
524         Update comments.  Callers update.
525         (remote_async_get_pending_events_token): Remove.
526         (remote_notif_register_async_event_handler): Remove.
527         (remote_notif_unregister_async_event_handler): Remove.
528         (handle_notification): Add parameter 'notif_queue'.  Update
529         comments.  Callers update.
530         (notif_xfree): Remove.
531         (remote_notif_state_allocate): New function.
532         (remote_notif_state_xfree): New function.
533         (_initialize_notif): Remove code to allocate queue.
534         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
535         (struct remote_notif_state): New.
536         (handle_notification): Update declaration.
537         (remote_notif_process): Likewise.
538         (remote_notif_register_async_event_handler): Remove.
539         (remote_notif_unregister_async_event_handler): Remove.
540         (remote_notif_state_allocate): Declare.
541         (remote_notif_state_xfree): Declare.
542         * remote.c (struct remote_state) <notif_state>: New field.
543         (remote_close): Don't call
544         remote_notif_unregister_async_event_handler.  Call
545         remote_notif_state_xfree.
546         (remote_open_1): Don't call
547         remote_notif_register_async_event_handler.  Call
548         remote_notif_state_allocate.
549
550 2013-10-04  Yao Qi  <yao@codesourcery.com>
551
552         * varobj.c (create_child_with_value): Remove 'const' from the
553         type of parameter 'name'.
554         (varobj_add_child): Likewise.
555         (install_dynamic_child): Remove 'const' from the type of
556         parameter 'name'.
557         (varobj_add_child): Likewise.
558         (create_child_with_value): Likewise.  Update comments.  Don't
559         duplicate 'name'.
560         (update_dynamic_varobj_children): Duplicate 'name'
561         and pass it to install_dynamic_child.
562
563 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
564
565         * python/py-value.c (convert_value_from_python): Move PyInt_Check
566         conversion logic to occur after PyLong_Check.  Comment on order
567         change significance.
568         * python/py-arch.c (archpy_disassemble): Comment on order of
569         conversion for integers and longs.
570
571 2013-10-03  Pedro Alves  <palves@redhat.com>
572
573         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
574         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
575         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
576         PTRACE_O_TRACEFORK is not supported.
577         (linux_test_for_tracesysgood): New function.
578         (linux_test_for_tracefork): New function, factored out from
579         linux_check_ptrace_features, and also don't kill child_pid here.
580
581 2013-10-03  Tristan Gingold  <gingold@adacore.com>
582
583         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
584         Remove verbose error reporting.  Use detected state to
585         thread_set_state call.
586         (i386_darwin_dr_get): Fix return type.  Remove verbose error
587         report.
588         Remove trailing spaces.
589
590 2013-10-02  Pedro Alves  <palves@redhat.com>
591
592         * cp-valprint.c (cp_print_value_fields): Adjust calls to
593         val_print_optimized_out.
594         * jv-valprint.c (java_print_value_fields): Likewise.
595         * p-valprint.c (pascal_object_print_value_fields): Likewise.
596         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
597         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
598         new optimized out value.
599         * findvar.c (address_from_register): Likewise.
600         * frame.c (put_frame_register): Tweak error string to say the
601         register was not saved, rather than optimized out.
602         * infcmd.c (default_print_one_register_info): Adjust call to
603         val_print_optimized_out.  Use value_of_register instead of
604         get_frame_register_value.
605         * mi/mi-main.c (output_register): Use value_of_register instead of
606         get_frame_register_value.
607         * valprint.c (valprint_check_validity): Likewise.
608         (val_print_optimized_out): New value parameter.  If the value is
609         lval_register, print <not saved> instead.
610         (value_check_printable, val_print_scalar_formatted): Adjust calls
611         to val_print_optimized_out.
612         * valprint.h (val_print_optimized_out): New value parameter.
613         * value.c (struct value) <optimized_out>: Extend comment.
614         (error_value_optimized_out): New function.
615         (require_not_optimized_out): Use it.  Use a different string for
616         lval_register values.
617         * value.h (error_value_optimized_out): New declaration.
618         * NEWS: Mention <not saved>.
619
620 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
621
622         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
623         strcmp to compare two symtab filenames.
624
625 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
626
627         * symtab.c (search_symbols_equal): Delete.
628         (sort_search_symbols_remove_dups): Replace call to
629         search_symbols_equal by call to compare_search_syms,
630         adjusting as necessary.
631
632 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
633
634         PR python/15579
635
636         * python/python.c: Document gdb.execute command in Python help.
637
638 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
639
640         * python/py-frame.c (frame_info_to_frame_object): Use
641         gdbpy_convert_exception. Clean up Python object on failure.
642
643 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
644
645         * python/lib/gdb/command/frame_filters.py
646         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
647         (ShowFrameFilterPriority.invoke): Ditto.
648
649 2013-10-01  Keith Seitz  <keiths@redhat.com>
650
651         * linespec.c (struct ls_parser): Make 'saved_arg' const.
652         (parse_linespec): Make 'argptr' const.
653         Remove temporary cast of 'argptr' to const char **.
654         (decode_line_full): Pass const pointer to parse_linespec.
655         (decode_line_1): Likewise.
656         (decode_objc): Make local variable 'new_argptr' const.
657         (find_function_symbols): Remove temporary cast to char *
658         to find_imps.
659         * objc-lang.c (find_imps): Make argument 'method' const.
660         Return const.
661         * objc-lang.h (find_imps): Likewise.
662
663 2013-10-01  Keith Seitz  <keiths@redhat.com>
664
665         * completer.c (skip_quoted_chars): Make all arguments const.
666         Return const.
667         (skip_quoted): Likewise.
668         * completer.h (skip_quoted_chars): Likewise.
669         (skip_quoted): Likewise.
670         * defs.h (skip_quoted): Remove duplicate declaration.
671         * jv-exp.y: Include completer.h.
672         (yylex): Remove unneccessary cast to char * fro skip_quoted.
673         * p-exp.y: Include completer.h.
674
675 2013-10-01  Keith Seitz  <keiths@redhat.com>
676
677         * c-exp.y (parse_number): Make first argument const.
678         Make a copy of the input to manipulate.
679         (c_parse_escape): Make first argument const.
680         Make local variable 'tokptr' const.
681         (parse_string_or_char): Make first two arguments const.
682         (macro_original_text): Make const.
683         (lex_one_token): Make local variable 'tokstart' const.
684         Likewise for local variables named 'p'.
685         Cast away const for struct stoken (temporary).
686         * c-lang.h (c_parse_escpae): Make first argument const.
687         * cli/cli-cmds.c (echo_command): Make local variable 'p'
688         const.
689         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
690         var_string case.
691         * f-exp.y (parse_number): Make first argument const.
692         (match_string_literal): Make local variable 'tokstart'
693         const.
694         (yylex): Make local variable 'p' const.
695         Cast away const for struct stoken (temporary).
696         * go-exp.y (parse_number): Make first argument const.
697         (parse_string_or_char): Likewise.
698         Make local variable 'tokstart' const.
699         (lex_one_token): Likewise for numerous locals called 'p'.
700         Cast away const for struct stoken (temporary).
701         * jv-exp.y (parse_number): Make first argument const.
702         Make local variables 'tokstart' and 'tokptr' const.
703         Cast away const for call to skip_quoted (temporary).
704         (yylex): Make local variable 'p' const.
705         Cast away const for struct stoken (temporary).
706         * m2-exp.y (parse_number): Make local variable 'p' const.
707         (yylex): Likewise for 'tokstart'.
708         Cast away const for struct stoken (temporary).
709         Make local variable 'p' const.
710         * macroexp.c (get_character_constant): Pass a const string
711         to c_parse_escape.
712         (get_string_literal): Likewise.
713         (macro_expand_next): Make first argument const.
714         Cast away const for init_shared_buffer.
715         * macroexp.h (macro_expand_next): Make first argument const.
716         * p-exp.y (yylex): Make a local copy of 'lexptr'.
717         Pass a const string to c_parse_escape.
718         Make local variables 'p' and 'namestart' const.
719         * parse.c (lexptr): Make const.
720         (prev_lexptr): Likewise.
721         (find_template_name_end): Return const.
722         Make argument const, too.
723         (parse_exp_in_context): Make first argument const.
724         Remove the entire const_hack.
725         (parse_exp_in_context_1): Make first argument const.
726         * parser-defs.h (find_template_name_end): Return const.
727         Make argument const, too.
728         (lexptr): Make const.
729         (prev_lexptr): Likewise.
730         * utils.c (parse_escape): Make second argument const.
731         * utils.h (parse_escape): Likewise.
732
733 2013-10-01  Keith Seitz  <keiths@redhat.com>
734
735         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
736         is now const.
737         (block_lookup): Make 'raw_name' and 'name' const.
738         * ada-lex.l (processString): Update for struct stoken.ptr.
739         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
740         (operator_stoken): Likewise.
741         (lex_one_token): Remove temporary cast to char * for
742         'yylval.sval.ptr'.
743         * f-exp.y (yylex): Likewise.
744         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
745         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
746         * go-exp.y (lex_one_token): Remove temporary cast to char * for
747         'yylval.sval.ptr'.
748         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
749         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
750         * linespec.c (struct ls_parser): Make 'stream' const.
751         (find_parameter_list_end): Make argument 'input' and local
752         variable 'p' const.
753         (linespec_lexer_lex_string): Make local variables 'start' and
754         'p' const.
755         Use skip_spaces_const instead of skip_spaces.
756         (linespec_lexer_peek_token): Make local variable 'saved_stream'
757         const.
758         (parse_linespec): Temporarily cast 'argptr' to const for
759         'parser->lexer.stream'.
760         * m2-exp.y (yylex): Remove temporary cast to char * for
761         'yylval.sval.ptr'.
762         * objc-lang.c (add_msglist): Make local variable 'p' const.
763         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
764         (exp : STRING): Make 'sp' const.
765         (parse_number): Make argument 'p' const.
766         * parser-defs.h (struct stoken): Make 'ptr' const.
767
768 2013-10-01  Doug Evans  <dje@google.com>
769
770         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
771
772 2013-10-01  Yao Qi  <yao@codesourcery.com>
773
774         * varobj.c (c_value_of_root): Remove declaration.
775         (cplus_value_of_root, java_value_of_root): Likewise.
776         (ada_value_of_root): Likewise.
777         (struct language_specific) <value_of_root>: Remove.
778         (languages): Update initialization.
779         (check_scope): Move earlier.
780         (c_value_of_root): Move earlier and rename to ...
781         (value_of_root_1): ... this.
782         (value_of_root): Caller update.
783         (cplus_value_of_root, java_value_of_root): Remove.
784         (ada_value_of_root): Remove.
785
786 2013-10-01  Yao Qi  <yao@codesourcery.com>
787
788         * varobj.c (varobj_format_string): Remove "unknown".
789         (languages): Remove the first element.
790         * varobj.h (enum varobj_languages): Remove vlang_c.
791
792 2013-10-01  Yao Qi  <yao@codesourcery.com>
793
794         * varobj.c (struct language_specific) <language>: Remove.
795         (languages): Update the initialization.
796
797 2013-10-01  Yao Qi  <yao@codesourcery.com>
798
799         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
800         "solib-target.h".  Include "windows-tdep.h".
801         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
802         set_solib_ops and set_gdbarch_has_dos_based_file_system.
803         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
804         windows-tdep.o to gdb_target_obs.
805
806 2013-10-01  Yao Qi  <yao@codesourcery.com>
807
808         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
809         "solib-target.h".
810         (amd64_windows_init_abi): Don't call set_solib_ops and
811         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
812         windows_init_abi instead.
813         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
814         "solib-target.h".
815         (i386_cygwin_init_abi): Don't call set_solib_ops,
816         set_gdbarch_has_dos_based_file_system and
817         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
818         windows_init_abi instead.
819         * windows-tdep.c: Include "solib.h" and "solib-target.h".
820         (windows_init_abi): New function.
821         (windows_iterate_over_objfiles_in_search_order): Make it
822         static.
823         * windows-tdep.h (windows_init_abi): Declare.
824         (windows_iterate_over_objfiles_in_search_order): Remove
825         declaration.
826
827 2013-10-01  Jerome Guitton  <guitton@adacore.com>
828
829         Checked in by Joel Brobecker  <brobecker@adacore.com>
830         * system-gdbinit/elinos.py (get_elinos_environment): Return an
831         incomplete dictionnary instead of None in case of missing
832         environment variables.
833         (elinos_init): in case of an incomplete environment, best
834         effort to load system libraries instead of abort.
835
836 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
837
838         * ada-lang.c (ada_has_this_exception_support): Ignore
839         mst_solib_trampoline minimal symbols.
840
841 2013-09-30  Tristan Gingold  <gingold@adacore.com>
842
843         * i386-darwin-nat.c (darwin_complete_target): Install methods for
844         hardware watchpoint.
845         (i386_darwin_dr_set): Support 32 and 64 bit states.
846         (i386_darwin_dr_get): Likewise.
847         (i386_darwin_dr_set_control): Make static.
848         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
849         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
850
851 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
852
853         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
854         Replace TIDGET with ptid_get_lwp.
855         Replace GET_LWP with ptid_get_lwp.
856         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
857         Replace BUILD_THREAD with ptid_build.
858         Replace BUILD_LWP with ptid_build.
859         Replace PIDGET with ptid_get_pid.
860         Replace TIDGET with ptid_get_lwp.
861         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
862         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
863         Replace TIDGET with ptid_get_lwp.
864         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
865         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
866         Replace TIDGET with ptid_get_lwp.
867         Replace GET_LWP with ptid_get_lwp.
868         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
869         * auxv.c: Likewise.
870         * breakpoint.c: Likewise.
871         * common/ptid.c (ptid_is_pid): Condense check for
872         null_ptid and minus_one_ptid.
873         (ptid_lwp_p): New function.
874         (ptid_tid_p): New function.
875         * common/ptid.h: Update comments for accessors.
876         (ptid_lwp_p): New prototype.
877         (ptid_tid_p): New prototype.
878         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
879         * gcore.c: Replace PIDGET with ptid_get_pid.
880         * gdbthread.h: Likewise.
881         * gnu-nat.c: Likewise.
882         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
883         Replace TIDGET with ptid_get_lwp.
884         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
885         * hppanbsd-nat.c: Likewise.
886         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
887         Replace TIDGET with ptid_get_lwp.
888         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
889         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
890         * infcmd.c: Likewise.
891         * inferior.h: Likewise.
892         * inflow.c: Likewise.
893         * infrun.c: Likewise.
894         * linux-fork.c: Likewise.
895         * linux-nat.c: Replace PIDGET with ptid_get_pid.
896         Replace GET_PID with ptid_get_pid.
897         Replace is_lwp with ptid_lwp_p.
898         Replace GET_LWP with ptid_get_lwp.
899         Replace BUILD_LWP with ptid_build.
900
901 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
902
903         * common/linux-btrace.c: Move sys/syscall.h out of the
904         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
905         Also check for SYS_perf_event_open before attempting to buid.
906
907 2013-09-27  Doug Evans  <dje@google.com>
908
909         * dwarf2read.c (dwarf2_section_info): Add comment.
910         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
911         All uses updated.
912         (dwarf2_section_empty_p): Rename arg from "info" to "section".
913         (dwarf2_read_section): Delete unused local "header".  Add section
914         name to error message.
915         (create_dwo_in_dwp): Tweak comment.
916         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
917
918         * dwarf2read.c (die_reader_specs): Tweak comment.
919         (get_section_bfd_owner, get_section_bfd_section): New functions.
920         (get_section_name, get_section_file_name): New functions.
921         (get_section_id, get_section_flags): New functions.
922         (*): Use new functions to access section fields.
923
924         * dwarf2read.c (struct dwo_file): Add/tweak comments.
925         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
926         arg "htab".  All callers updated.
927         (create_debug_types_hash_table): Remove redundant copy of
928         abbrev_section.
929         (create_dwo_in_dwp): Tweak comments.
930         (read_str_index): Tweak comment.  Record dwarf form name in static
931         local.
932
933 2013-09-27  Pedro Alves  <palves@redhat.com>
934
935         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
936         (remote_filename_p): Add comment.
937         * remote.c (remote_filename_p): Adjust to use
938         REMOTE_SYSROOT_PREFIX.
939         * solib.c (solib_find): When deciding whether we need to add a
940         directory separator, check whether the sysroot is "remote:"
941         instead of checking whether the patch has a drive spec.  Add
942         comments.
943
944 2013-09-27  Pedro Alves  <palves@redhat.com>
945
946         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
947         Delete fields.
948         (remote_parse_stop_reply): Adjust, setting event->ws.kind
949         directly.
950
951 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
952
953         Fix set debug frame output.
954         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
955         SENTINEL_FRAME entry lower to match enum frame_type order.
956
957 2013-09-26  Pierre Muller  <muller@sourceware.org>
958
959         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
960         AMD64_R15_REGNUM when a register index is expected.
961         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
962         Substitute in array.
963         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
964         (amd64_push_arguments): Substitute in integer_regnum array.
965
966 2013-09-25  Doug Evans  <dje@google.com>
967
968         * objfiles.c (allocate_objfile): Move comment to better place.
969
970         New option "set debug symfile on".
971         * NEWS: Mention "set debug symfile".
972         * Makefile.in (SFILES): Add symfile-debug.c.
973         (COMMON_OBS): Add symfile-debug.o.
974         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
975         objfile's symbol functions.
976         * objfiles.h (objfile_set_sym_fns): Declare.
977         * symfile-debug.c: New file.
978         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
979         objfile's symbol functions.
980         (reread_symbols): Ditto.
981
982         * symfile.h (struct sym_fns): Delete member "sym_flavour".
983         All uses updated.
984         (add_symtab_fns): Update prototype.
985         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
986         (registered_sym_fns): ... this.
987         (symtab_fns): Update.
988         (add_symtab_fns): New arg "flavour".  All callers updated.
989         (find_sym_fns): Rewrite to use new sym_fns registry.
990
991         * symfile.h (struct sym_fns): Add "objfile" argument to
992         sym_read_linetable.  All uses updated.
993
994         * symtab.c (domain_name, search_domain_name): New functions.
995         * symtab.h (domain_name, search_domain_name): Declare.
996
997         * symfile.h (struct quick_symbol_functions): Reorg arg list of
998         map_matching_symbols so objfile is first.  All uses updated.
999         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1000         * psymtab.c (map_matching_symbols_psymtab): Update signature.
1001
1002 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1003
1004         PR shlibs/8882
1005         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1006         link map entries.
1007
1008 2013-09-24  Doug Evans  <dje@google.com>
1009
1010         * objfiles.c (free_objfile): Move comment.
1011
1012 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1013
1014         * ada-exp.y (string_to_operator): Delete.
1015         (dummy_string_to_ada_operator): Delete.
1016
1017 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1018
1019         Revert:
1020         * i386-tdep.h (enum amd64_reg_class): New, moved here from
1021         amd64-tdep.c.
1022         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1023         call_dummy_integer_regs, and classify.
1024         * amd64-tdep.h (amd64_classify): Add declaration.
1025         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1026         (amd64_reg_class): Delete, moved to i386-tdep.h.
1027         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
1028         Replace call to amd64_classify by call to tdep->classify.
1029         (amd64_push_arguments): Get the list of registers to use for
1030         passing integer parameters from the gdbarch tdep structure,
1031         rather than using a hardcoded one.  Replace calls to amd64_classify
1032         by calls to tdep->classify.
1033         (amd64_push_dummy_call): Get the register number used for
1034         the "hidden" argument from tdep->call_dummy_integer_regs.
1035         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1036         and tdep->call_dummy_integer_regs.  Set tdep->classify.
1037
1038 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1039
1040         Revert:
1041         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1042         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1043         where tdep->memory_args_by_pointer is non-zero.
1044
1045 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1046
1047         Revert:
1048         * i386-tdep.h (struct gdbarch_tdep): Add new field
1049         integer_param_regs_saved_in_caller_frame.
1050         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1051         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1052
1053 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1054
1055         * amd64-windows-tdep.c: #include "value.h"
1056         (amd64_windows_classify): Delete.
1057         (amd64_windows_passed_by_integer_register)
1058         (amd64_windows_passed_by_xmm_register)
1059         (amd64_windows_passed_by_pointer)
1060         (amd64_windows_adjust_args_passed_by_pointer)
1061         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1062         (amd64_windows_push_dummy_call): New functions.
1063         (amd64_windows_init_abi): Remove setting of
1064         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1065         tdep->classify, tdep->memory_args_by_pointer and
1066         tdep->integer_param_regs_saved_in_caller_frame.
1067         Add call to set_gdbarch_push_dummy_call.
1068
1069 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1070
1071         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1072         objfile->original_name.
1073
1074 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1075
1076         Pass down original filename for objfile.
1077         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1078         * elfread.c (elf_symfile_read): Likewise.
1079         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1080         longer set ORIGINAL_NAME.
1081         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1082         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1083         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
1084         symbol_file_add_from_bfd call.
1085         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1086         (macho_check_dsym): Add parameter filenamep.  Change function comment.
1087         Set *filenamep.
1088         (macho_symfile_read): New variable dsym_filename.  Update
1089         macho_check_dsym call.  Use it for symbol_file_add_separate.
1090         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
1091         it.  Use it for objfile->original_name.
1092         (objfile_name): Return OBFD's filename, if available.
1093         * objfiles.h (allocate_objfile): Add new parameter name.
1094         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1095         * symfile-mem.c (symbol_file_add_from_memory): Update
1096         symbol_file_add_from_bfd call.
1097         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1098         comment for it.
1099         (symbol_file_add_with_addrs): New parameter name, add function comment
1100         for it.  Remove variable name.  Update allocate_objfile call.
1101         (symbol_file_add_separate): New parameter name, add function comment
1102         for it.  Update symbol_file_add_with_addrs call.
1103         (symbol_file_add_from_bfd): New parameter name.  Update
1104         symbol_file_add_with_addrs call.
1105         (symbol_file_add): Update symbol_file_add_from_bfd call.
1106         (reread_symbols): New variable original_name.  Save
1107         objfile->original_name by it.
1108         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1109         second parameter.
1110
1111 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1112
1113         Code cleanup: Add objfile_name accessor function.
1114         * ada-lang.c (is_known_support_routine): Use objfile_name.
1115         * auto-load.c (source_gdb_script_for_objfile)
1116         (auto_load_objfile_script): Likewise.
1117         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1118         * dbxread.c (dbx_symfile_read): Likewise.
1119         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1120         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1121         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1122         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1123         (lookup_dwp_signatured_type, lookup_dwo_unit)
1124         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1125         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1126         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1127         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1128         (dwarf2_record_block_ranges, read_common_block, read_typedef)
1129         (read_subrange_type, load_partial_dies, read_partial_die)
1130         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1131         (die_containing_type, build_error_marker_type, lookup_die_type)
1132         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1133         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1134         (get_DW_AT_signature_type, write_psymtabs_to_index)
1135         (save_gdb_index_command): Likewise.
1136         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1137         Likewise.
1138         * expprint.c (dump_subexp_body_standard): Likewise.
1139         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1140         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1141         original_name.
1142         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1143         obj_name, use objfile_name for it, use the variable.
1144         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1145         Use objfile_name.
1146         * machoread.c (macho_symtab_read, macho_check_dsym)
1147         (macho_symfile_relocate): Likewise.
1148         * maint.c (maintenance_translate_address): Likewise.
1149         * minidebug.c (find_separate_debug_file_in_section): Likewise.
1150         * minsyms.c (install_minimal_symbols): Likewise.
1151         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1152         original_name.
1153         (filter_overlapping_sections): Use objfile_name.
1154         (objfile_name): New function.
1155         * objfiles.h (struct objfile): Rename field name to original_name.
1156         (objfile_name): New prototype.
1157         * printcmd.c (sym_info, address_info): Use objfile_name.
1158         * probe.c (parse_probes, collect_probes, compare_probes)
1159         (info_probes_for_ops): Likewise.
1160         * progspace.c (clone_program_space): Likewise.
1161         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1162         (maintenance_info_psymtabs): Likewise.
1163         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1164         (source_section_scripts): Likewise.
1165         * python/py-objfile.c (objfpy_get_filename): Likewise.
1166         * python/py-progspace.c (pspy_get_filename): Likewise.
1167         * solib-aix.c (solib_aix_get_toc_value): Likewise.
1168         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1169         * solib.c (solib_read_symbols): Likewise.
1170         * stabsread.c (scan_file_globals): Likewise.
1171         * stap-probe.c (handle_stap_probe): Likewise.
1172         * symfile.c (symbol_file_clear, separate_debug_file_exists)
1173         (find_separate_debug_file_by_debuglink): Likewise.
1174         (reread_symbols): Likewise.  Use the objfile field name renamed to
1175         original_name.
1176         (allocate_symtab): Use objfile_name.
1177         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1178         (dump_objfile, dump_msymbols, dump_symtab_1)
1179         (maintenance_print_msymbols, maintenance_print_objfiles)
1180         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1181         * target.c (target_translate_tls_address, target_info): Likewise.
1182         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
1183         objfile_name.
1184
1185 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1186
1187         Code cleanup.
1188         * probe.c (parse_probes): Rename variable objfile_name to
1189         objfile_namestr.
1190
1191 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1192
1193         Remove solib-sunos.c.
1194         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1195         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1196         * objfiles.c (rt_common_objfile): Remove.
1197         (free_objfile): Remove rt_common_objfile comparison.
1198         * objfiles.h (rt_common_objfile): Remove.
1199         * solib-sunos.c: Remove.
1200         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1201
1202 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1203
1204         Remove a.out NetBSD and OpenBSD hosts.
1205         * NEWS (Removed native configurations): New.
1206         * config/arm/nbsdaout.mh: Remove.
1207         * config/i386/nbsdaout.mh: Remove.
1208         * config/i386/obsdaout.mh: Remove.
1209         * config/m68k/nbsdaout.mh: Remove.
1210         * config/sparc/nbsdaout.mh: Remove.
1211         * config/vax/nbsdaout.mh: Remove.
1212         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1213         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1214         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1215         error.
1216         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1217         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1218         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1219
1220 2013-09-23  Tom Tromey  <tromey@redhat.com>
1221
1222         * linespec.c (struct minsym_and_objfile): Remove.
1223         (minsym_and_objfile_d): Remove.
1224         (struct linespec, struct collect_info, linespec_parse_basic)
1225         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1226         (compare_msymbols, find_method, find_function_symbols)
1227         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1228         (add_minsym, search_minsyms_for_name): Update.
1229
1230 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1231
1232         * regcache.c: Add include of valprint.h.
1233         (dump_endian_bytes): Delete.
1234         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1235
1236 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1237
1238         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1239
1240 2013-09-19  Pedro Alves  <palves@redhat.com>
1241
1242         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1243         breakpoints.
1244
1245 2013-09-19  Pedro Alves  <palves@redhat.com>
1246             Thomas Schwinge  <thomas@codesourcery.com>
1247             Yue Lu  <hacklu.newborn@gmail.com>
1248
1249         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1250         Take a gdb_byte pointer instead of a char pointer.
1251
1252         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1253         gnu_xfer_partial helper.
1254         (gnu_xfer_partial): New function.
1255         (gnu_target): Don't install a deprecated_xfer_memory hook.
1256         Install a to_xfer_partial hook.
1257
1258 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1259
1260         Constification.
1261         * main.c (captured_main): Replace catch_command_errors by
1262         catch_command_errors_const.  Twice.
1263         * symfile.c (symbol_file_add_main_1): Make args parameter const.
1264         (symbol_file_add): Make name parameter const.
1265         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1266         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
1267         variable name.  Change their usage accordingly.
1268         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1269         const.
1270         (symbol_file_add_main): Make args parameter const.
1271
1272 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
1273             Ulrich Weigand  <uweigand@de.ibm.com>
1274
1275         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1276         of c_value member.
1277         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1278
1279 2013-09-18  Pedro Alves  <palves@redhat.com>
1280             Yue Lu  <hacklu.newborn@gmail.com>
1281
1282         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1283         (gnu_create_inferior)
1284         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1285         (set_sig_thread_cmd): Use the lwpid field of ptids to
1286         store/extract thread ids instead of the tid field.
1287         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1288
1289 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1290
1291         * infcmd.c (default_print_one_register_info): Add detection of
1292         optimized out values.
1293         (default_print_registers_info): Switch to using
1294         get_frame_register_value.
1295
1296 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1297
1298         * infrun.c (handle_inferior_event): Check if we know the
1299         function start address before setting a resume breakpoint.
1300
1301 2013-09-18  Pedro Alves  <palves@redhat.com>
1302
1303         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1304         minus_one_ptid instead of looking at the ptid's tid field and
1305         comparing that to -1.
1306
1307 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1308
1309         * main.h (get_gdb_program_name): Remove extra whitespace.
1310
1311 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1312
1313         * main.h (get_gdb_program_name): Add declaration.
1314         * main.c (get_gdb_program_name): Add definition.
1315
1316 2013-09-17  Doug Evans  <dje@google.com>
1317
1318         * dwarf2read.c: Move definitions of complaint functions to after
1319         forward declarations of local functions.
1320
1321 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
1322             Pedro Alves  <palves@redhat.com>
1323
1324         PR gdb/11568
1325         * breakpoint.c (remove_threaded_breakpoints): New function.
1326         (_initialize_breakpoint): Attach remove_threaded_breakpoints
1327         as thread_exit observer.
1328
1329 2013-09-17  Pedro Alves  <palves@redhat.com>
1330
1331         PR gdb/15911
1332         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1333         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1334         * corelow.c (core_open):
1335         * frame.h (print_stack_frame, print_frame_info): New
1336         'set_current_sal' parameter.
1337         * infcmd.c (finish_command, kill_command): Adjust call to
1338         print_stack_frame.
1339         * inferior.c (inferior_command): Likewise.
1340         * infrun.c (normal_stop): Likewise.
1341         * linux-fork.c (linux_fork_context): Likewise.
1342         * record-full.c (record_full_goto_entry, record_full_restore):
1343         Likewise.
1344         * remote-mips.c (common_open): Likewise.
1345         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1346         Use it.
1347         (print_frame_info): New 'set_current_sal' parameter.  Set the last
1348         displayed sal depending on the new paremeter instead of looking at
1349         print_what.
1350         (backtrace_command_1, select_and_print_frame, frame_command)
1351         (current_frame_command, up_command, down_command): Adjust call to
1352         print_stack_frame.
1353         * thread.c (print_thread_info, restore_selected_frame)
1354         (do_captured_thread_select): Adjust call to print_stack_frame.
1355         * tracepoint.c (tfind_1): Likewise.
1356         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1357         (mi_cmd_stack_info_frame): Likewise.
1358         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1359         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1360
1361 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1362
1363         * value.c (isvoid_internal_fn): Replace "parameter" with
1364         "argument".
1365
1366 2013-09-16  Stan Shebs  <stan@codesourcery.com>
1367
1368         * README: Update references to writing code for GDB.
1369         * configure.ac (build_warnings): Remove obsolete comment.
1370         * configure: Regenerate.
1371         * gdbarch.sh: Remove references to gdbint.texinfo.
1372         * gdbarch.h: Regenerate.
1373         * gdbtypes.c (objfile_type): Remove comments referencing internals
1374         manual and D10V.
1375
1376 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1377
1378         * NEWS: Mention new convenience function $_isvoid.
1379         * value.c (isvoid_internal_fn): New function.
1380         (_initialize_values): Add new convenience function $_isvoid.
1381
1382 2013-09-16  Pierre Muller  <muller@sourceware.org>
1383
1384         * arm-linux-tdep.c: Add "elf/common.h" header.
1385         Remove AT_HWCAP macro definintion as it is provided in
1386         added include file.
1387         * s390-tdep.c: Remove system header <elf.h>
1388         Add "elf/common.h" header for AT_HWCAP definition.
1389         (s390_core_read_description): Use correct CORE_ADDR
1390         for hwcap local variable used as third parameter
1391         of function target_auxv_search.
1392
1393 2013-09-14  Pierre Muller  <muller@sourceware.org>
1394             Tom Tromey  <tromey@redhat.com>
1395             Pedro Alves  <palves@redhat.com>
1396
1397         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1398         mode if operating system doesn't know O_CLOEXEC.
1399
1400 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1401
1402         Code cleanup.
1403         * symfile.c (reread_symbols): Move variable obfd_filename to a more
1404         inner block.
1405
1406 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1407
1408         * NEWS: Mention TDB support.
1409         * features/s390-tdb.xml: New file.
1410         * features/s390-te-linux64.xml: New file.
1411         * features/s390x-te-linux64.xml: New file.
1412         * features/Makefile (WHICH): Add new tdescs above.
1413         (s390-te-linux64-expedite): Set.
1414         (s390x-te-linux64-expedite): Set.
1415         * features/s390-te-linux64.c: New file (generated).
1416         * features/s390x-te-linux64.c: New file (generated).
1417         * regformats/s390-te-linux64.dat: New file (generated).
1418         * regformats/s390x-te-linux64.dat: New file (generated).
1419         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1420         (HWCAP_S390_TE): Likewise.
1421         (S390_TDB_DWORD0_REGNUM): Likewise.
1422         (S390_TDB_DWORD0_REGNUM): Likewise.
1423         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1424         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1425         (S390_TDB_ATIA_REGNUM): Likewise.
1426         (S390_TDB_R0_REGNUM): Likewise.
1427         (S390_TDB_R1_REGNUM): Likewise.
1428         (S390_TDB_R2_REGNUM): Likewise.
1429         (S390_TDB_R3_REGNUM): Likewise.
1430         (S390_TDB_R4_REGNUM): Likewise.
1431         (S390_TDB_R5_REGNUM): Likewise.
1432         (S390_TDB_R6_REGNUM): Likewise.
1433         (S390_TDB_R7_REGNUM): Likewise.
1434         (S390_TDB_R8_REGNUM): Likewise.
1435         (S390_TDB_R9_REGNUM): Likewise.
1436         (S390_TDB_R10_REGNUM): Likewise.
1437         (S390_TDB_R11_REGNUM): Likewise.
1438         (S390_TDB_R12_REGNUM): Likewise.
1439         (S390_TDB_R13_REGNUM): Likewise.
1440         (S390_TDB_R14_REGNUM): Likewise.
1441         (S390_TDB_R15_REGNUM): Likewise.
1442         (S390_NUM_REGS): Increase.
1443         (S390_IS_TDBREGSET_REGNUM): New macro.
1444         (s390_regmap_tdb): Declare.
1445         (s390_sizeof_tdbregset): Define.
1446         (tdesc_s390_te_linux64): Declare.
1447         (tdesc_s390x_te_linux64): Likewise.
1448         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1449         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1450         (s390_regmap_tdb): New regmap.
1451         (s390_supply_tdb_regset): New function.
1452         (s390_tdb_regset): New regset.
1453         (s390_linux64v2_regset_sections): Add TDB regset to list.
1454         (s390x_linux64v2_regset_sections): Likewise.
1455         (s390_regset_from_core_section): Recognize TDB core note section.
1456         (s390_core_read_description): If HWCAP indicates TE support,
1457         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1458         (s390_gdbarch_init): Handle TDB regset.
1459         (_initialize_s390_tdep): Initialize new tdescs.
1460         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1461         (have_regset_tdb): New variable.
1462         (s390_native_supply): Support register invalidation.
1463         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1464         (check_regset): Treat ENODATA as "regset exists".
1465         (s390_linux_fetch_inferior_registers): Add TDB.
1466         (s390_read_description): Check for TDB existence and select
1467         appropriate tdesc.
1468         * gdbserver/Makefile.in (clean): Add removal of new makefile
1469         targets.
1470         (s390-te-linux64.c): New makefile target.
1471         (s390x-te-linux64.c): Likewise.
1472         * gdbserver/configure.srv (srv_regobj): Append new objects
1473         s390-te-linux64.o and s390x-te-linux64.o.
1474         (srv_xmlfiles): Append new files s390-te-linux64.xml,
1475         s390x-te-linux64.xml, and s390-tdb.xml.
1476         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1477         declaration.
1478         (tdesc_s390_te_linux64): Likewise.
1479         (init_registers_s390x_te_linux64): Likewise.
1480         (tdesc_s390x_te_linux64): Likewise.
1481         (s390_check_regset): Treat ENODATA as "regset exists".
1482         (s390_arch_setup): Add TDB regset support.
1483         (initialize_low_arch): Initialize registers for new tdescs.
1484
1485 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1486
1487         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1488         (S390_IS_FPREGSET_REGNUM): New macro.
1489         * s390-tdep.c (s390_dwarf_regmap): Make const.
1490         (regnum_is_gpr_full): New function for replacing repeated code.
1491         (s390_pseudo_register_name): Use it.
1492         (s390_pseudo_register_type): Likewise.
1493         (s390_pseudo_register_read): Likewise.
1494         (s390_pseudo_register_write): Likewise.
1495         (s390_unwind_pseudo_register): Likewise.
1496         (s390_regmap_gregset): New format for regmap.
1497         (s390x_regmap_gregset): Likewise.
1498         (s390_regmap_fpregset): Likewise.
1499         (s390_regmap_upper): Likewise.
1500         (s390_regmap_last_break): Likewise.
1501         (s390_regmap_system_call): Likewise.
1502         (s390_supply_regset): Adjust to new regmap format.
1503         (s390_collect_regset): Likewise.
1504         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1505         (s390_native_collect): Likewise.
1506         (supply_gregset): Likewise.
1507         (fill_gregset): Likewise.
1508         (supply_fpregset): Likewise.
1509         (fill_fpregset): Likewise.
1510         (fetch_regset): Likewise.
1511         (store_regset): Likewise.
1512         (s390_linux_fetch_inferior_registers): Likewise.
1513         (s390_linux_fetch_inferior_registers): Likewise.
1514
1515 2013-09-12  Andrew Pinski  <apinski@cavium.com>
1516
1517         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1518
1519 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1520
1521         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1522
1523 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
1524
1525         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1526
1527 2013-09-06  Pedro Alves <palves@redhat.com>
1528
1529         * remote-sim.c (dump_mem, gdbsim_fetch_register)
1530         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1531         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1532         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1533         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1534         gdb_stdlog.
1535
1536 2013-09-06  Pedro Alves  <palves@redhat.com>
1537
1538         * remote-sim.c (dump_mem): Constify buf parameter.
1539         gdbsim_xfer_inferior_memory): Rename to ...
1540         (gdbsim_xfer_memory): ... this.  Adjust interface as
1541         target_xfer_partial helper.
1542         (gdbsim_xfer_partial): New function.
1543         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1544         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
1545
1546 2013-09-06  Pedro Alves  <palves@redhat.com>
1547
1548         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1549         host_address_to_string, and send debug output to gdb_stdlog.
1550
1551 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1552
1553         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1554         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1555         gdb_target_obs for cris target.
1556         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1557         (cris_gdbarch_init): Move calls to
1558         set_gdbarch_fetch_tls_load_module_address and
1559         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1560         Add call to gdbarch_init_osabi.
1561         * cris-linux-tdep.c: New file.
1562         * cris-tdep.h: New file.
1563
1564 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1565
1566         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1567         to deprecated_init_ui_hook.
1568
1569 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1570
1571         * cli/cli-interp.c (_initialize_cli_interp): Add a
1572         command_loop_proc to interp_procs.
1573         * event-top.c (cli_command_loop): Change signature to match
1574         interp_command_loop_ftype.
1575         * event-top.h (cli_command_loop): Same.
1576         * interps.c (interp_new): Require every interpreter to have a
1577         command_loop_proc.
1578         (current_interp_command_loop): Just call the command_loop_proc on
1579         the current interpreter.
1580         * tui/tui-interp.c (_initialize_tui_interp): Add a
1581         command_loop_proc to interp_procs.
1582
1583 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1584
1585         * cris-tdep.c (cris_gdbarch_init): Add call to
1586         get_gdbarch_fetch_tls_load_module_address.
1587
1588 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1589
1590         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1591         (cris_elf_gregset_t): Rename from elf_gregset_t.
1592         (crisv32_elf_gregset_t): Adjust.
1593         (cris_supply_gregset, fetch_core_registers): Adjust.
1594
1595 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1596
1597         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1598
1599 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
1600
1601         * defs.h (deprecated_command_loop_hook): Remove, including
1602         references in comments.
1603         * interps.c (current_interp_command_loop): No longer use
1604         deprecated_command_loop_hook.
1605         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1606         setup.
1607         * top.c (deprecated_command_loop_hook): Remove.
1608
1609 2013-09-05  Pedro Alves  <palves@redhat.com>
1610
1611         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1612         local is now int instead of ULONGEST.  Print it with %d
1613         instead of paddress.
1614
1615 2013-09-05  Tristan Gingold  <gingold@adacore.com>
1616
1617         * MAINTAINERS: Remove avr maintainership.
1618
1619 2013-09-05  Pedro Alves  <palves@redhat.com>
1620
1621         * findvar.c (value_of_register): Rework in terms of
1622         value_of_register_lazy.
1623
1624 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
1625
1626         * symfile.c (add_symbol_file_command): Remove trailing
1627          whitespaces and blank line after comment.
1628
1629 2013-09-05  Pedro Alves  <palves@redhat.com>
1630
1631         * tui/tui-regs.c (tui_register_format): Don't look at the
1632         register's name here.  Return string representing register
1633         value instead of storing it in the data element.
1634         (tui_get_register): Compare register string representations
1635         instead of register value states and contents.
1636
1637 2013-09-05  Pedro Alves  <palves@redhat.com>
1638
1639         PR tui/15933
1640         * tui/tui-regs.c (tui_show_registers): Show registers of the
1641         selected frame, not the current frame.
1642
1643 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
1644
1645         * MAINTAINERS (Write After Approval): Add myself to the list.
1646
1647 2013-09-04  Doug Evans  <dje@google.com>
1648
1649         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1650         (queue_and_load_dwo_tu): New function.
1651         (lookup_dwo_signatured_type): Set per_cu.tu_read.
1652         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1653         Make dependent_cu optional.
1654         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1655         and an older .gdb_index is in use, queue and load all its TUs too.
1656
1657 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1658
1659         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1660         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1661         variable search_flags.
1662         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1663         (OPF_RETURN_REALPATH): ... here.
1664         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1665         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1666         call.  Twice.
1667         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1668         openp call.
1669         * solib.c (solib_find): Likewise.  Four times.
1670         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1671         in the function comment and for the realpath_fptr variable.
1672         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1673         (find_and_open_source): Likewise.  Twice.
1674         * symfile.c (symfile_bfd_open): Likewise, also twice.
1675
1676 2013-09-04  Doug Evans  <dje@google.com>
1677
1678         * progspace.c (save_current_space_and_thread): Remove unnecessary
1679         call to save_current_inferior.
1680
1681 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
1682
1683         * sh64-tdep.c (sh64_do_register): Return after printing message
1684         about unavailable register contents.
1685
1686 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
1687             Pedro Alves  <palves@redhat.com>
1688
1689         * symfile.c (add_symbol_file_command): Error out on unknown
1690         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1691         options and collapse into single conditional branch.
1692
1693 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
1694
1695         * inf-child.c (inf_child_follow_fork): New parameter
1696         detach_fork.
1697         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1698         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1699         * inferior.h (detach_fork): Remove.
1700         * infrun.c (detach_fork): Adjust comment and make it
1701         static.
1702         (follow_fork): Pass detach_fork parameter to
1703         target_follow_fork.
1704         * linux-nat.c (linux_child_follow_fork): New parameter
1705         detach_fork.
1706         * target.c (target_follow_fork): New parameter detach_fork.
1707         Pass detach_fork as parameter and print its value.
1708         * target.h (struct target_ops) <to_follow_fork>: New int
1709         parameter.
1710         (target_follow_fork): New parameter detach_fork.
1711
1712 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
1713
1714         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1715         Replace sec->bfd by sec->the_bfd_section->owner.
1716
1717 2013-09-03  Yao Qi  <yao@codesourcery.com>
1718
1719         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
1720         from linux_has_shared_address_space.
1721         (linux_has_shared_address_space): Call linux_is_uclinux.
1722         * linux-tdep.h (linux_is_uclinux): Declare.
1723         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1724         linux_is_uclinux.
1725
1726 2013-09-03  Yao Qi  <yao@codesourcery.com>
1727
1728         * config/djgpp/fnchange.lst: Remove entry of
1729         i386-interix-nat.c and i386-interix-tdep.c.
1730         * configure.ac: Remove '*-*-interix*'.
1731         * configure: Re-generated.
1732         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1733         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1734         obsolete comments.
1735         * osabi.c (gdb_osabi_names): Remove "Interix".
1736
1737 2013-09-03  Yao Qi  <yao@codesourcery.com>
1738
1739         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1740
1741 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
1742
1743         * record.h (record_print_flag) <record_print_src_line,
1744         record_print_insn_range>: Rename into ...
1745         (record_print_flag) <record_print_src_line,
1746         record_print_insn_range>: ... this.  Update all users.
1747
1748 2013-09-02  Pierre Muller  <muller@sourceware.org>
1749
1750         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1751         error code.
1752
1753 2013-09-02  Pierre Muller  <muller@sourceware.org>
1754
1755         * windows-nat.c (windows_xfer_memory): Fix compilation failure
1756         by use of plongest function.
1757
1758 2013-09-02  Tristan Gingold  <gingold@adacore.com>
1759
1760         * NEWS: Add entry mentioning support for native Windows x64
1761         SEH data.
1762
1763         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1764         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1765         (struct amd64_windows_frame_cache): New struct.
1766         (amd64_windows_w2gdb_regnum): New global.
1767         (pc_in_range, amd64_windows_frame_decode_epilogue)
1768         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1769         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1770         (amd64_windows_frame_this_id): New functions.
1771         (amd64_windows_frame_unwind): New static global.
1772         (amd64_windows_skip_prologue): New function.
1773         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1774         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1775         with amd64_windows_skip_prologue.
1776
1777 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
1778
1779         GDB 7.6.1 released.
1780
1781 2013-08-30  Pedro Alves  <palves@redhat.com>
1782
1783         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1784         SRC_AND_LOC.
1785
1786 2013-08-30  Pedro Alves  <palves@redhat.com>
1787
1788         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1789         warning text.
1790
1791 2013-08-30  Pedro Alves  <palves@redhat.com>
1792
1793         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1794         Adjust arguments to print_stack_frame.
1795
1796 2013-08-30  Pedro Alves  <palves@redhat.com>
1797
1798         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1799
1800 2013-08-30  Pedro Alves  <palves@redhat.com>
1801
1802         * frame.h (show_and_print_stack_frame): Delete declaration.
1803
1804 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
1805
1806         PR python/15461
1807
1808         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1809         (archpy_name): Check for valid architecture.
1810         (archpy_disassemble): Ditto.
1811
1812 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
1813
1814         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1815         instead of "long long" in call to ptrace64.
1816
1817 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
1818
1819         * mi/mi-interp.c (mi_command_loop): Change signature to match
1820         interp_command_loop_ftype.
1821         (mi1_command_loop): Remove.
1822         (mi2_command_loop): Remove.
1823         (mi3_command_loop): Remove.
1824         (mi_interpreter_resume): Remove setting of
1825         deprecated_command_loop_hook.
1826         (_initialize_mi_interp): Set mi_command_loop as the command loop
1827         callback.
1828
1829 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
1830
1831         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1832         value_type.
1833
1834 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
1835
1836         * value.c (allocate_value_contents): Make static.
1837         * value.h (allocate_value_contents): Remove prototype.
1838
1839 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
1840
1841         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1842         of assembling value via allocate_value_lazy and attribute setter.
1843         * findvar.c (default_read_var_value): Use value_at_lazy instead of
1844         assembling value via allocate_value_lazy and attribute setter.
1845         * valops.c (do_search_struct_field): Use value_at_lazy instead of
1846         assembling value via allocate_value_lazy and attribute setter.
1847
1848 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
1849
1850         * value.c (value_from_contents_and_address): Replace allocate_value and
1851         memcpy with value_from_contents.
1852
1853 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
1854
1855         * python/py-framefilter.c (py_print_frame): Remove usage of
1856         PyString_AsString.  Use python_string_to_host_string instead.
1857         Refactor function to work with a string as a new allocation
1858         instead of a pointer.
1859         (py_print_frame): Ditto.
1860         * python/lib/gdb/frames.py (return_list): Cain iterators together
1861         instead of adding them as a list.
1862         (_sort_list): Call return_list, and remove duplicate code.
1863         (execute_frame_filters): Convert iterator to a list with list().
1864         * python/lib/gdb/command/frame_filters.py
1865         (SetFrameFilterPriority._set_filter_priority): Convert priority
1866         attribute to an integer.
1867         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1868         wrapper function __next__.
1869         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1870         define as "str".
1871
1872 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
1873
1874         PR python/15752
1875         * python/py-framefilter.c (apply_frame_filter): Check
1876         gdb_python_initialized.  Exit if the Python frame-filter code
1877         cannot be initialized.
1878
1879 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
1880
1881         PR cli/15842
1882         * top.c (print_gdb_version): Remove erroneous newline after help
1883         text.
1884
1885 2013-08-29  Yao Qi  <yao@codesourcery.com>
1886
1887         * varobj.c (install_dynamic_child): Remove trailing space.
1888         Add one blank line after variable declaration.
1889
1890 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1891
1892         PR gdb/15415
1893         * corefile.c (get_exec_file): Use exec_filename.
1894         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
1895         * exec.c (exec_close): Free EXEC_FILENAME.
1896         (exec_file_attach): New variable canonical_pathname.  Use
1897         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
1898         EXEC_FILENAME.
1899         * exec.h (exec_filename): New.
1900         * inferior.c (print_inferior, inferior_command): Use
1901         PSPACE_EXEC_FILENAME.
1902         * mi/mi-main.c (print_one_inferior): Likewise.
1903         * progspace.c (clone_program_space, print_program_space): Likewise.
1904         * progspace.h (struct program_space): New field pspace_exec_filename.
1905         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
1906         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1907
1908 2013-08-28  Will Newton  <will.newton@linaro.org>
1909
1910         * common/linux-ptrace.c: Include stdint.h unconditionally.
1911
1912 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1913
1914         Code cleanup.
1915         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1916
1917 2013-08-28  Yao Qi  <yao@codesourcery.com>
1918             Pedro Alves  <palves@redhat.com>
1919
1920         * event-top.c (gdb_setup_readline): Call stderr_fileopen
1921         instead of stdio_fileopen.
1922         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1923         .Call stderr_fileopen instead of stdio_fileopen.
1924         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1925         [__MINGW32__] (stderr_file_fputs): New function.
1926         (stderr_fileopen): New function.
1927         * ui-file.h (stderr_fileopen): Declare.
1928
1929 2013-08-27  Doug Evans  <dje@google.com>
1930
1931         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1932         (struct dwarf2_per_cu_data): Ditto.
1933         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
1934         (process_imported_unit_die): Ditto.
1935         (follow_die_sig_1): Simplify assert.
1936
1937 2013-08-27  Pedro Alves  <palves@redhat.com>
1938
1939         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1940         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
1941         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1942         windows_xfer_memory directly.
1943         (init_windows_ops): Don't install a deprecated_xfer_memory method.
1944
1945 2013-08-27  Pedro Alves  <palves@redhat.com>
1946
1947         * darwin-nat.c (darwin_xfer_memory): Delete.
1948         (_initialize_darwin_inferior): Don't install a
1949         deprecated_xfer_memory method.
1950
1951 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
1952             Yao Qi  <yao@codesourcery.com>
1953
1954         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1955         (parse_no_frames_option): Remove.
1956         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1957         (mi_cmd_stack_list_args): Adjust.
1958         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1959         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
1960         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1961         Caller update.
1962         (list_args_or_locals): New parameter 'skip_unavailable'.
1963         Handle it.
1964         * valprint.c (scalar_type_p): Rename to ...
1965         (val_print_scalar_type_p): ... this.  Make extern.
1966         (val_print, value_check_printable): Adjust.
1967         * valprint.h (val_print_scalar_type_p): Declare.
1968         * value.c (value_entirely_unavailable): New function.
1969         * value.h (value_entirely_unavailable): Declare.
1970
1971         * NEWS: Mention the new option "--skip-unavailable" to MI
1972         commands '-stack-list-locals', '-stack-list-arguments' and
1973         '-stack-list-variables'.
1974
1975 2013-08-27  Yao Qi  <yao@codesourcery.com>
1976
1977         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1978         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1979         options.
1980         * mi/mi-getopt.c (mi_getopt): Remove.
1981         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
1982         'error_on_unknown'.
1983         (mi_getopt): Call mi_getopt_1.
1984         (mi_getopt_silent): New.
1985         * mi/mi-getopt.h (mi_getopt_silent): Declare.
1986
1987 2013-08-26  Doug Evans  <dje@google.com>
1988
1989         PR symtab/15885
1990         * dwarf2read.c (dw2_dump): Print some minimal information indicating
1991         .gdb_index is in use.
1992         * symfile.c (reread_symbols): Reset objfile->sf.
1993
1994         * NEWS: Document "mt print objfiles" now takes optional regexp.
1995         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1996         regexp of objfiles to print.
1997         (_initialize_symmisc): Update doc string for "mt print objfiles".
1998
1999         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2000         missing debug info checks.
2001
2002 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
2003             Ulrich Weigand  <uweigand@de.ibm.com>
2004
2005         * xcoffread.c (arrange_linetable): Add fix to correctly handle
2006         line tables generated by XLC compiled binaries.
2007
2008 2013-08-23  Doug Evans  <dje@google.com>
2009
2010         * symmisc.c (dump_symtab): Delete prototype.
2011         (dump_msymbols, dump_objfile): Ditto.
2012         (maintenance_info_symtabs): Mark as dont_repeat.
2013         (_initialize_symmisc): Improve doc string for "mt info symtabs".
2014
2015         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2016         debugging printf to better location.
2017
2018 2013-08-23  Pedro Alves  <palves@redhat.com>
2019
2020         * target.c (target_read_live_memory): Change type of 'ret' local
2021         to LONGEST.
2022
2023 2013-08-23  Pedro Alves  <palves@redhat.com>
2024
2025         * remote.c (remote_write_bytes_aux, remote_write_bytes)
2026         (remote_read_bytes): Change return type to LONGEST, and adjust to
2027         return a target_xfer_error on error.
2028         (remote_xfer_memory): Delete.
2029         (remote_flash_write): Change type of 'ret' local to LONGEST.
2030         (remote_xfer_partial, remote_xfer_partial): Adjust.
2031         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2032
2033 2013-08-23  Pierre Muller  <muller@sourceware.org>
2034
2035         ARI fix: Push # directives to start of line.
2036         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2037
2038 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
2039
2040         PR gdb/15501
2041         * breakpoint.c (enable_command, disable_command): Iterate over
2042         all specified breakpoint locations.
2043
2044 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2045
2046         * common/linux-ptrace.c (linux_fork_to_function): Push #
2047         directives to the start of the line.
2048         (linux_check_ptrace_features): Fix warning message to use
2049         the "_" markup.
2050
2051 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2052
2053         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2054         nat/linux-waitpid.h.
2055         (linux-waitpid.o): New object file rule.
2056         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2057         (current_ptrace_options): Moved from linux-nat.c.
2058         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2059         parameters.
2060         (linux_fork_to_function): New function.
2061         (linux_grandchild_function): Likewise.
2062         (linux_child_function): Likewise.
2063         (linux_check_ptrace_features): New function, heavily
2064         based on linux-nat.c:linux_test_for_tracefork.
2065         (linux_enable_event_reporting): New function.
2066         (ptrace_supports_feature): Likewise.
2067         (linux_supports_tracefork): Likewise.
2068         (linux_supports_traceclone): Likewise.
2069         (linux_supports_tracevforkdone): Likewise.
2070         (linux_supports_tracesysgood): Likewise.
2071         * common/linux-ptrace.h (HAS_NOMMU): Moved from
2072         gdbserver/linux-low.c.
2073         (linux_enable_event_reporting): New declaration.
2074         (linux_supports_tracefork): Likewise.
2075         (linux_supports_traceclone): Likewise.
2076         (linux_supports_tracevforkdone): Likewise.
2077         (linux_supports_tracesysgood): Likewise.
2078         * config.in (PTRACE_TYPE_ARG4): Regenerate.
2079         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2080         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2081         * config/arm/linux.mh (NATDEPFILES): Likewise.
2082         * config/i386/linux.mh (NATDEPFILES): Likewise.
2083         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2084         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2085         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2086         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2087         * config/mips/linux.mh (NATDEPFILES): Likewise.
2088         * config/pa/linux.mh (NATDEPFILES): Likewise..
2089         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2090         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2091         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2092         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2093         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2094         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2095         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2096         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2097         ptrace's 4th argument's types.
2098         Check the type of PTRACE_TYPE_ARG4.
2099         * configure: Regenerate.
2100         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2101         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2102         (linux_supports_tracefork_flag): Remove.
2103         (linux_supports_tracesysgood_flag): Likewise.
2104         (linux_supports_tracevforkdone_flag): Likewise.
2105         (current_ptrace_options): Moved to
2106         common/linux-ptrace.c.
2107         (linux_tracefork_child): Remove.
2108         (my_waitpid): Remove.
2109         (linux_test_for_tracefork): Renamed to
2110         linux_check_ptrace_features and moved to common/linux-ptrace.c.
2111         (linux_test_for_tracesysgood): Remove.
2112         (linux_supports_tracesysgood): Remove.
2113         (linux_supports_tracefork): Remove.
2114         (linux_supports_tracevforkdone): Remove.
2115         (linux_enable_tracesysgood): Remove.
2116         (linux_enable_event_reporting): Remove.
2117         (linux_init_ptrace): New function.
2118         (linux_child_post_attach): Call linux_init_ptrace.
2119         (linux_child_post_startup_inferior): Call linux_init_ptrace.
2120         (linux_child_follow_fork): Call linux_supports_tracefork
2121         and linux_supports_tracevforkdone.
2122         (linux_child_insert_fork_catchpoint): Call
2123         linux_supports_tracefork.
2124         (linux_child_insert_vfork_catchpoint): Likewise.
2125         (linux_child_set_syscall_catchpoint): Call
2126         linux_supports_tracesysgood.
2127         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2128         * nat/linux-nat.h: New file.
2129         * nat/linux-waitpid.c: New file.
2130         * nat/linux-waitpid.h: New file.
2131
2132 2013-08-22  Samuel Bronson  <naesten@gmail.com>
2133
2134         ARM Linux support for `catch syscall'.
2135         * syscalls/arm-linux.py: New file.
2136         * syscalls/arm-linux.xml: Likewise.
2137         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2138         (arm_linux_init_abi): Register the new function and syscall xml file.
2139         * data-directory/Makefile.in: Install the new syscall xml file.
2140         * NEWS: Brag about this.
2141
2142 2013-08-22  Pedro Alves  <palves@redhat.com>
2143
2144         PR gdb/15871
2145         * corefile.c (target_xfer_memory_error): New function.
2146         (memory_error): Defer EIO to target_memory_error.
2147         (read_memory): Use target_xfer_partial, and handle finer-grained
2148         target xfer errors.
2149         * target.c (target_xfer_error_to_string): New function.
2150         (memory_xfer_partial_1): If memory is known to be
2151         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2152         (target_xfer_partial): Make extern.
2153         * target.h (enum target_xfer_error): New enum.
2154         (target_xfer_error_to_string): Declare function.
2155         (target_xfer_partial): Declare function.
2156         (struct target_ops) <xfer_partial>: Adjust describing comment.
2157
2158 2013-08-22  Alan Modra  <amodra@gmail.com>
2159
2160         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2161         * configure.tgt: Likewise as targets.
2162
2163 2013-08-20  Doug Evans  <dje@google.com>
2164
2165         * buildsym.c (subfile_stack): Move here from buildsym.h.
2166         (pending_macros): Ditto.
2167         (get_macro_table): New function.
2168         (buildsym_init): Initialize subfile_stack.
2169         * coffread.c (type_vector,type_vector_length): Moved here from
2170         buildsym.h.
2171         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2172         (coff_symtab_read): Use it.
2173         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2174         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2175         with call to get_macro_table.
2176         * stabsread.c (type_vector,type_vector_length): Moved here from
2177         buildsym.h.
2178         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2179         * buildsym.h (get_macro_table): Declare.
2180
2181 2013-08-20  Tom Tromey  <tromey@redhat.com>
2182
2183         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2184         Update.
2185         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
2186
2187 2013-08-20  Doug Evans  <dje@google.com>
2188
2189         * blockframe.c: Remove #include "psymtab.h".
2190         * cp-support.c: Ditto.
2191         * source.c: Ditto.
2192         * stack.c: Ditto.
2193
2194 2013-08-20  Tom Tromey  <tromey@redhat.com>
2195
2196         PR python/15816:
2197         * exceptions.h (return_mask): Now an enum.
2198         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2199         enum constants.
2200
2201 2013-08-20  Tom Tromey  <tromey@redhat.com>
2202
2203         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2204         get_objfile_arch.
2205         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2206         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2207         * jit.c (jit_object_close_impl): Update.
2208         * jv-lang.c (get_dynamics_objfile): Update.
2209         * linespec.c (add_minsym): Use get_dynamics_objfile.
2210         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2211         (allocate_objfile): Don't initialize 'gdbarch' field.
2212         (get_objfile_arch): Update.
2213         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2214         moved from...
2215         (struct objfile) <gdbarch>: ... here.  Remove.
2216         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2217         get_objfile_arch.
2218         * symfile.c (init_entry_point_info): Use get_objfile_arch.
2219
2220 2013-08-20  Alan Modra  <amodra@gmail.com>
2221
2222         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2223         for IBM long double nan and inf.
2224         (floatformat_is_negative, floatformat_classify,
2225         floatformat_mantissa): Similarly.
2226         (floatformat_ieee_single, floatformat_ieee_double,
2227         floatformat_ieee_quad, floatformat_arm_ext,
2228         floatformat_ia64_spill): Delete unused vars.
2229         (_initialize_doublest): Delete unused function.
2230         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2231         little-endian variants of floatformat_ibm_long_double.
2232
2233 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
2234
2235         * Makefile.in (SFILES): Remove common/target-common.c and
2236         add target/waitstatus.c.
2237         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2238         target/resume.h, target/wait.h and target/waitstatus.h.
2239         (COMMON_OBS): Remove target-common.o and add
2240         waitstatus.o.
2241         (target-common.o): Remove.
2242         (waitstatus.o): New target object file.
2243         * common/target-common.c: Move contents to
2244         target/waitstatus.c and remove.
2245         * common/target-common.h: Move contents to other files and
2246         remove.
2247         (enum resume_kind: Move to target/resume.h.
2248         (TARGET_WNOHANG): Move to target/wait.h.
2249         (enum target_waitkind): Move to target/waitstatus.h.
2250         (struct target_waitstatus): Likewise.
2251         * target.h: Do not include target-common.h and
2252         include target/resume.h, target/wait.h and
2253         target/waitstatus.h.
2254         * target/resume.h: New file.
2255         * target/wait.h: New file.
2256         * target/waitstatus.h: New file.
2257         * target/waitstatus.c: New file.
2258
2259 2013-08-19  Pedro Alves  <palves@redhat.com>
2260
2261         * linux-nat.c (linux_test_for_tracefork)
2262         (linux_test_for_tracesysgood, linux_child_follow_fork)
2263         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2264         (linux_nat_wait_1): Extend comment.
2265         (linux_async_pipe): Add comment.
2266
2267 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
2268
2269         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2270         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2271         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2272         Update to account for fact that PC is now a pseudo-register.
2273         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
2274         cases for RL78_PC_REGNUM.
2275
2276 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
2277
2278         PR cli/15841
2279         * top.c (quit_force): Skip writing history file
2280         if input is not from terminal.
2281
2282 2013-08-14  Tom Tromey  <tromey@redhat.com>
2283
2284         * remote.c (struct remote_state) <echo_nextthread, nextthread,
2285         resultthreadlist>: New fields.
2286         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2287         (remote_get_threadlist, remote_threadlist_iterator): Use
2288         new fields.  Remove static variables.
2289
2290 2013-08-14  Tom Tromey  <tromey@redhat.com>
2291
2292         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2293         remote_watch_data_address>: New fields.
2294         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2295         (process_stop_reply, remote_wait_as)
2296         (remote_check_watch_resources, remote_stopped_data_address): Update.
2297
2298 2013-08-14  Tom Tromey  <tromey@redhat.com>
2299
2300         * remote.c (struct remote_state) <async_client_callback,
2301         async_client_context>: New fields.
2302         (async_client_callback, async_client_context): Remove.
2303         (remote_async_serial_handler, remote_async): Update.
2304
2305 2013-08-14  Tom Tromey  <tromey@redhat.com>
2306
2307         * remote.c (sizeof_pkt): Remove.
2308         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2309
2310 2013-08-14  Tom Tromey  <tromey@redhat.com>
2311
2312         * remote.c (struct remote_state) <use_threadinfo_query,
2313         use_threadextra_query>: New fields.
2314         (remote_threads_info, remote_threads_extra_info)
2315         (remote_open_1): Update.
2316
2317 2013-08-14  Tom Tromey  <tromey@redhat.com>
2318
2319         * remote.c (struct remote_state) <finished_object,
2320         finished_annex, finished_offset>: New fields.
2321         (remote_read_qxfer): Use remote_state fields; remove static
2322         variables.
2323
2324 2013-08-14  Tom Tromey  <tromey@redhat.com>
2325
2326         * remote.c (struct remote_state) <last_sent_step>:
2327         New field.
2328         (last_sent_step): Remove.
2329         (remote_resume, remote_wait_as): Update.
2330
2331 2013-08-14  Tom Tromey  <tromey@redhat.com>
2332
2333         * remote.c (struct remote_state) <last_sent_signal>:
2334         New field.
2335         (last_sent_signal): Remove.
2336         (new_remote_state, remote_resume, remote_wait_as): Update.
2337
2338 2013-08-14  Tom Tromey  <tromey@redhat.com>
2339
2340         * remote.c (struct remote_state) <last_program_signals_packet>:
2341         New field.
2342         (last_program_signals_packet): Remove.
2343         (remote_program_signals, remote_open_1): Update.
2344
2345 2013-08-14  Tom Tromey  <tromey@redhat.com>
2346
2347         * remote.c (struct remote_state) <last_pass_packet>:
2348         New field.
2349         (last_pass_packet): Remove.
2350         (remote_pass_signals, remote_open_1): Update.
2351
2352 2013-08-14  Tom Tromey  <tromey@redhat.com>
2353
2354         * remote.c (struct remote_state) <remote_traceframe_number>:
2355         New field.
2356         (remote_traceframe_number): Remove.
2357         (new_remote_state, remote_open_1, set_remote_traceframe)
2358         (remote_trace_find): Update.
2359
2360 2013-08-14  Tom Tromey  <tromey@redhat.com>
2361
2362         * remote.c (struct remote_state) <general_thread, continue_thread>:
2363         New fields.
2364         (general_thread, continue_thread): Remove.
2365         (record_currthread, set_thread, set_general_process)
2366         (remote_open_1, extended_remote_attach_1, remote_wait_as)
2367         (extended_remote_mourn_1): Update.
2368
2369 2013-08-14  Tom Tromey  <tromey@redhat.com>
2370
2371         * remote.c (struct remote_state) <remote_desc>: New field.
2372         (remote_desc): Remove.
2373         (remote_threads_info, remote_threads_extra_info, remote_close)
2374         (send_interrupt_sequence, remote_start_remote, remote_open_1)
2375         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2376         (remote_hostio_send_command, remote_file_put, remote_file_get)
2377         (remote_file_delete, remote_can_async_p, remote_is_async_p)
2378         (remote_async, remote_new_objfile, set_range_stepping): Update.
2379
2380 2013-08-14  Tom Tromey  <tromey@redhat.com>
2381
2382         * remote.c (remote_state): Now a pointer.
2383         (get_remote_state_raw): Update.
2384         (new_remote_state): New function.
2385         (_initialize_remote): Use new_remote_state.
2386
2387 2013-08-14  Tom Tromey  <tromey@redhat.com>
2388
2389         * remote.c (remote_protocol_features): Now const.
2390
2391 2013-08-14  Tom Tromey  <tromey@redhat.com>
2392
2393         * remote.c (crc32_table, crc32): Remove.
2394         (remote_verify_memory): Use xcrc32.
2395
2396 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
2397
2398         * value.h (create_internalvar_type_lazy): Adjust prototype
2399         declaration.
2400
2401 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
2402
2403         * common/format.c (parse_format_string): Don't allow '#' flag for
2404         pointer arguments in format string.
2405
2406 2013-08-13  Pierre Muller  <muller@sourceware.org>
2407
2408         * utils.c (init_page_info): Only call tgetnum function
2409         if rl_get_screen_size did not return useful values.
2410
2411 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
2412
2413         PR breakpoints/15117
2414         * linespec.c (linespec_parse_basic): Check for convenience
2415         variable or history value while parsing.
2416
2417 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2418
2419         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2420         AVR.
2421         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
2422         different signals between the generic Linux kernel implementation
2423         and AVR's.
2424         (avr_linux_gdb_signal_from_target): Delete.
2425         (avr_linux_gdb_signal_to_target): Delete.
2426         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2427
2428 2013-08-09  Doug Evans  <dje@google.com>
2429
2430         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2431         entries.
2432
2433 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2434
2435         * linux-tdep.c: Define enum with generic signal numbers.
2436         (linux_gdb_signal_from_target): New function.
2437         (linux_gdb_signal_to_target): Likewise.
2438         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2439         methods to the functions above.
2440         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2441         (linux_gdb_signal_to_target): Likewise.
2442         * alpha-linux-tdep.c: Define new enum with signals different
2443         from generic Linux kernel.
2444         (alpha_linux_gdb_signal_from_target): New function.
2445         (alpha_linux_gdb_signal_to_target): Likewise.
2446         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2447         with the functions mentioned above.
2448         * avr-tdep.c: Define enum with differences between Linux kernel
2449         and AVR signals.
2450         (avr_linux_gdb_signal_from_target): New function.
2451         (avr_linux_gdb_signal_to_target): Likewise.
2452         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2453         the functions mentioned above.
2454         * sparc-linux-tdep.c: Define enum with differences between SPARC
2455         and generic Linux kernel signal numbers.
2456         (sparc32_linux_gdb_signal_from_target): New function.
2457         (sparc32_linux_gdb_signal_to_target): Likewise.
2458         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2459         to the functions defined above.
2460         * xtensa-linux-tdep.c: Define enum with differences between
2461         Xtensa and Linux kernel generic signals.
2462         (xtensa_linux_gdb_signal_from_target): New function.
2463         (xtensa_linux_gdb_signal_to_target): Likewise.
2464         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2465         to the functions defined above.
2466         * mips-linux-tdep.c: Define enum with differences between
2467         signals in MIPS and Linux kernel generic ones.
2468         (mips_gdb_signal_to_target): New function.
2469         (mips_gdb_signal_from_target): Redefine to use new enum, handle
2470         only different signals from the Linux kernel generic.
2471         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2472         the functions defined above.
2473         * mips-linux-tdep.h (enum mips_signals): Remove.
2474
2475 2013-08-09  Pedro Alves  <palves@redhat.com>
2476
2477         * avr-tdep.c (XMALLOC): Delete macro.
2478         * cli/cli-dump.c (XMALLOC): Delete macro.
2479
2480 2013-08-09  Pedro Alves  <palves@redhat.com>
2481
2482         * cli/cli-dump.c: Don't include cli/cli-dump.h.
2483         (scan_expression_with_cleanup, scan_filename_with_cleanup)
2484         (fopen_with_cleanup, add_dump_command): Make static.
2485         * cli/cli-dump.h: Delete file.
2486         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2487         cli/cli-dump.h.
2488
2489 2013-08-09  Pedro Alves  <palves@redhat.com>
2490
2491         * tracepoint.c (tfile_start): Show tilde-expanded filename in
2492         error message.
2493
2494 2013-08-09  Pedro Alves  <palves@redhat.com>
2495
2496         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2497         error message.
2498
2499 2013-08-09  Pedro Alves  <palves@redhat.com>
2500
2501         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2502         (gcore_command): Use tilde_expand here, and when showing the
2503         filename to the user, show the expanded version.
2504
2505 2013-08-09  Yao Qi  <yao@codesourcery.com>
2506
2507         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2508         'entryval' is set.
2509
2510 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
2511
2512         * gcore.c (create_gcore_bfd): Use tilde_expand.
2513
2514 2013-08-08  Yao Qi  <yao@codesourcery.com>
2515
2516         * frame.h (read_frame_local): Declare.
2517         * mi/mi-cmd-stack.c (list_args_or_locals): Call
2518         read_frame_local.
2519         * stack.c (read_frame_local): New.
2520
2521 2013-08-08  Yao Qi  <yao@codesourcery.com>
2522
2523         * mi/mi-cmd-stack.c: Update comments to function
2524         list_args_or_locals.
2525
2526 2013-08-07  Tom Tromey  <tromey@redhat.com>
2527
2528         PR symtab/15028:
2529         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2530         (process_psymtab_comp_unit_reader): Use it.
2531         (process_psymtab_comp_unit): Update.  Add "pretend_language"
2532         argument.
2533         (dwarf2_build_psymtabs_hard): Update.
2534         (scan_partial_symbols): Pass CU's language to
2535         process_psymtab_comp_unit.
2536
2537 2013-08-07  Tom Tromey  <tromey@redhat.com>
2538
2539         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2540         (dwarf2_gdb_index_functions): Update.
2541         * psymtab.c (find_symbol_file_from_partial): Remove.
2542         (psym_functions): Update.
2543         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2544         Remove.
2545
2546 2013-08-07  Tom Tromey  <tromey@redhat.com>
2547
2548         * symfile.c (set_initial_language): Look up "main" symbol
2549         and use its language.
2550         * symtab.c (find_main_filename): Remove.
2551         * symtab.h (find_main_filename): Remove.
2552
2553 2013-08-07  Tom Tromey  <tromey@redhat.com>
2554
2555         * dwarf2read.c (recursively_compute_inclusions): Add
2556         "immediate_parent" argument.  Set symtab's "user" field
2557         if not set.
2558         (compute_symtab_includes): Update.
2559
2560 2013-08-07  Tom Tromey  <tromey@redhat.com>
2561
2562         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2563         when adding label symbols.
2564
2565 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2566             Ulrich Weigand  <uweigand@de.ibm.com>
2567
2568         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2569         * configure.host (powerpc64-*-aix*): Likewise.
2570
2571 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2572             Ulrich Weigand  <uweigand@de.ibm.com>
2573
2574         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2575         is defined.
2576         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2577         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2578         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2579         * configure.ac: Check for ptrace64.
2580         * configure, config.in: Regenerate.
2581
2582 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2583             Ulrich Weigand  <uweigand@de.ibm.com>
2584
2585         * aixthread.c: Call ptrace64 instead of ptracex if defined.
2586         Call ptrace64 instead of ptrace if defined.
2587         Add macro addr_ptr to take care of ptrace address argument.
2588         (pdc_read_regs): Likewise.
2589         (pdc_write_regs): Likewise.
2590         (aix_thread_resume): Likewise.
2591         (fetch_regs_kernel_thread): Likewise.
2592         (store_regs_kernel_thread): Likewise.
2593
2594 2013-08-07  Anton Blanchard  <anton@samba.org>
2595
2596         * MAINTAINERS: Add myself to Write After Approval.
2597
2598 2013-08-05  Tom Tromey  <tromey@redhat.com>
2599
2600         * aix-thread.c (_initialize_aix_thread): Use
2601         complete_target_initialization.
2602         * bsd-uthread.c (_initialize_bsd_uthread): Use
2603         complete_target_initialization.
2604         * dec-thread.c (_initialize_dec_thread): Use
2605         complete_target_initialization.
2606         * ravenscar-thread.c (_initialize_ravenscar): Use
2607         complete_target_initialization.
2608         * sol-thread.c (_initialize_sol_thread): Use
2609         complete_target_initialization.
2610         * spu-multiarch.c (_initialize_spu_multiarch): Use
2611         complete_target_initialization.
2612
2613 2013-08-05  Tom Tromey  <tromey@redhat.com>
2614
2615         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2616         * ada-lang.c (ada_lookup_simple_minsym): Return
2617         bound_minimal_symbol.
2618         * ada-lang.h (ada_lookup_simple_minsym): Update.
2619         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2620         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2621         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2622         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2623         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2624         * minsyms.c (msymbol_objfile): Remove.
2625         (lookup_minimal_symbol_internal): New function, from
2626         lookup_minimal_symbol.
2627         (lookup_minimal_symbol): Rewrite using
2628         lookup_minimal_symbol_internal.
2629         (lookup_bound_minimal_symbol): New function.
2630         * minsyms.h (msymbol_objfile): Remove.
2631         (lookup_bound_minimal_symbol): Declare.
2632         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2633         * parse.c (write_exp_msymbol): Change parameter to a
2634         bound_minimal_symbol.
2635         (write_dollar_variable): Use lookup_bound_minimal_symbol.
2636         * parser-defs.h (write_exp_msymbol): Update.
2637         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2638         * symfile.c (simple_read_overlay_table): Use
2639         lookup_bound_minimal_symbol.
2640         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2641         (search_symbols): Likewise.
2642         (print_msymbol_info): Take a bound_minimal_symbol argument.
2643         (symtab_symbol_info, rbreak_command): Update.
2644         * symtab.h (struct symbol_search) <msymbol>: Change type
2645         to bound_minimal_symbol.
2646         * valops.c (find_function_in_inferior): Use
2647         lookup_bound_minimal_symbol.
2648         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2649
2650 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2651
2652         Code cleanup.
2653         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2654         to ...
2655         (async_cleanup_sigint_signal_handler): ... this.
2656         (initialize_sigint_signal_handler): Remove declaration.
2657         (handle_remote_sigint): Rename the declaration to ...
2658         (async_handle_remote_sigint): ... this.
2659         (handle_remote_sigint_twice): Rename the declaration to ...
2660         (async_handle_remote_sigint_twice): ... this.
2661         (async_remote_interrupt, async_remote_interrupt_twice)
2662         (remote_interrupt): Remove the declarations.
2663         (remote_interrupt_twice): Rename the declaration ...
2664         (sync_remote_interrupt_twice): ... this.
2665         (sigint_remote_twice_token): Rename the variable to ...
2666         (async_sigint_remote_twice_token): ... this.
2667         (sigint_remote_token): Rename the variable to ...
2668         (async_sigint_remote_token): ... this.
2669         (initialize_sigint_signal_handler): Rename the function to ...
2670         (async_initialize_sigint_signal_handler): ... this.  Update the name
2671         inside.
2672         (handle_remote_sigint): Rename the function to ...
2673         (async_handle_remote_sigint): ... this.  Update the names inside.
2674         (handle_remote_sigint_twice): Rename the function to ...
2675         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
2676         (cleanup_sigint_signal_handler): Rename the function to ...
2677         (async_cleanup_sigint_signal_handler): ... this.
2678         (remote_interrupt): Rename the function to ...
2679         (sync_remote_interrupt): this.  Update the names inside.
2680         (remote_interrupt_twice): Rename the function to ...
2681         (sync_remote_interrupt_twice): this.  Update the names inside.
2682         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2683         (_initialize_remote): Update the names inside.
2684
2685 2013-08-02  Tom Tromey  <tromey@redhat.com>
2686
2687         PR symtab/15719:
2688         * breakpoint.c (update_watchpoint, watchpoint_check)
2689         (watch_command_1): Update.
2690         * eval.c (fetch_subexp_value): Add "preserve_errors"
2691         parameter.
2692         * ppc-linux-nat.c (check_condition): Update.
2693         * value.h (fetch_subexp_value): Update.
2694
2695 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
2696
2697         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2698         add_file_handler.
2699
2700 2013-08-01  Doug Evans  <dje@google.com>
2701
2702         PR symtab/15691
2703         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2704         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2705         Add assert of sig_entry->dwo_unit == NULL.
2706         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2707         had already been read.
2708         (read_signatured_type): Set per_cu.tu_read.
2709
2710         PR symtab/15695
2711         * valops.c (value_struct_elt): Add missing call to check_typedef.
2712         (value_find_oload_method_list): Ditto.
2713
2714         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2715         effectively, struct symbol_search **.
2716         (make_cleanup_free_search_symbols): Change arg to struct
2717         symbol_search **.  All callers updated.
2718         (compare_search_syms): Compare symtab file name and block as well.
2719         (search_symbols_equal): New function.
2720         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2721         New args new_head, new_tail.  Result is now void.  Remove dups after
2722         sorting the symbols.
2723         (search_symbols): Sort all found symbols once, after all have been
2724         found, and remove duplicates.  Simplify cleanup tracking of result.
2725         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2726
2727         Further workarounds for binutils/15021.
2728         * dwarf2read.c (recursively_compute_inclusions): Change type of result
2729         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
2730         Watch for duplicate symtabs coming from type units.
2731         (compute_symtab_includes): Update call to
2732         recursively_compute_inclusions. Build vector of included symtabs
2733         instead of per_cus.
2734         * symtab.h (symtab_ptr): New typedef.
2735         (DEF_VEC_P (symtab_ptr)): New VEC type.
2736         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
2737         instead.
2738
2739 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
2740
2741         * cli/cli-script.c (script_from_file): Remove use of
2742         error_pre_print.
2743         * main.c (captured_main): Remove use of error_pre_print and
2744         quit_pre_print.
2745         * utils.c (error_pre_print, quit_pre_print): Remove.
2746         * utils.h (error_pre_print, quit_pre_print): Likewise.
2747
2748 2013-08-01  Yao Qi  <yao@codesourcery.com>
2749
2750         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2751         with mi_getopt.
2752         (mi_cmd_stack_list_variables): Likewise.
2753
2754 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2755
2756         * exceptions.c (deprecated_throw_reason): Remove.
2757         * exceptions.h (deprecated_throw_reason): Remove.
2758
2759 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2760
2761         * remote-mips.c (mips_error): Replace use of
2762         deprecated_throw_reason with throw_verror.  Use the error message
2763         passed to mips_error as the error message for throw_verror.
2764
2765 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2766
2767         * monitor.c (monitor_interrupt_query): Replace use of
2768         deprecated_throw_reason with quit.
2769         * nto-procfs.c (interrupt_query): Likewise.
2770         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2771         * remote-mips.c (mips_kill): Likewise.
2772         * remote.c (interrupt_query): Likewise.
2773
2774 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2775
2776         * utils.c (internal_verror): Replace use of deprecated_throw_reason
2777         with call to fatal.
2778
2779 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
2780             Yao Qi  <yao@codesourcery.com>
2781
2782         * tracepoint.c (trace_dump_command): Select the current frame.
2783
2784 2013-07-30  Doug Evans  <dje@google.com>
2785
2786         * dwarf2read.c (process_queue): Add type signature to debug output.
2787
2788 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
2789
2790         * value.c (value_fetch_lazy): Mark optimized out values as such
2791         rather than raising an error.
2792
2793 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
2794
2795         * value.c (value_fetch_lazy): Ensure parent value is not lazy
2796         before checking which bits of the parent, not the child, value are
2797         valid.
2798
2799 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
2800
2801         PR gdb/15715
2802         * top.c: Include "filenames.h".
2803         (set_history_filename): New function.
2804         (init_main): Install it as set hook of the "set history filename"
2805         command.
2806
2807 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
2808
2809         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2810         attribute parameter.
2811         (dwarf2_const_value_data): Constify struct attribute parameter.
2812         (dwarf2_const_value): Constify struct attribute parameter.
2813         (dwarf2_const_value_attr): Constify struct attribute parameter.
2814         (lookup_die_type): Constify struct attribute parameter.
2815         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2816         (follow_die_ref_or_sig): Constify struct attribute parameter.
2817         (follow_die_ref): Constify struct attribute parameter.
2818         (follow_die_sig): Constify struct attribute parameter.
2819         (get_DW_AT_signature_type): Constify struct attribute parameter.
2820         (get_type_unit_group): Constify struct attribute parameter.
2821         (fill_in_loclist_baton): Constify struct attribute parameter.
2822         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2823         (type_unit_group): Constify struct attribute parameter.
2824
2825 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
2826
2827         * dwarf2read.c (attr_form_is_block): Make argument const.
2828         (attr_form_is_section_offset): Make argument const.
2829         (attr_form_is_constant): Make argument const.
2830         (attr_form_is_ref): Make argument const.
2831
2832 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
2833
2834         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2835         All uses updated.
2836         (attr_form_is_ref): Moved below attr_form_is_constant.
2837
2838 2013-07-29  Doug Evans  <dje@google.com>
2839
2840         * main.c (captured_command_loop): Tweak comment.
2841
2842         * target.c (target_async_permitted_1): Fix comment.
2843
2844         * symtab.c (iterate_over_some_symtabs): Add comment.
2845
2846         * symtab.c (iterate_over_some_symtabs): Fix indentation.
2847
2848 2013-07-27  Yao Qi  <yao@codesourcery.com>
2849
2850         * NEWS: Mention that GDBserver now supports hardware
2851         watchpoints on the MIPS GNU/Linux target.
2852
2853 2013-07-27  Yao Qi  <yao@codesourcery.com>
2854
2855         * Makefile.in (HFILES_NO_SRCDIR): Add
2856         common/mips-linux-watch.h.
2857         (mips-linux-watch.o): New rule.
2858         * common/mips-linux-watch.c: New.
2859         * common/mips-linux-watch.h: New.
2860         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2861         * mips-linux-nat.c: Include mips-linux-watch.h.
2862         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2863         to common/mips-linux-watch.h.
2864         (MAX_DEBUG_REGISTER): Likewise.
2865         (enum pt_watch_style): Likewise.
2866         (struct mips32_watch_regs): Likewise.
2867         (struct mips64_watch_regs): Likewise.
2868         (struct pt_watch_regs): Likewise.
2869         (struct mips_watchpoint): Likewise.
2870         (mips_linux_watch_get_irw_mask): Move to
2871         common/mips-linux-watch.c.
2872         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2873         (mips_linux_watch_get_watchlo): Likewise.
2874         (mips_linux_watch_set_watchlo): Likewise.
2875         (mips_linux_watch_get_watchhi): Likewise.
2876         (mips_linux_watch_set_watchhi): Likewise.
2877         (mips_linux_read_watch_registers): Likewise.
2878         (mips_linux_watch_type_to_irw): Likewise.
2879         (mips_linux_stopped_data_address, fill_mask): Likewise.
2880         (mips_linux_watch_try_one_watch): Likewise.
2881         (mips_linux_watch_populate_regs): Likewise.
2882
2883 2013-07-27  Yao Qi  <yao@codesourcery.com>
2884
2885         * mips-linux-nat.c (get_irw_mask): Rename to ...
2886         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
2887         'set' to 'n'.  Update function comment.  All callers changed.
2888         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
2889         function comment.  All callers changed.
2890         (get_num_valid): Rename to ...
2891         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
2892         'set' to 'n'.  Update function comment.  All callers changed.
2893         (get_watchlo): Rename to ...
2894         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
2895         'set' to 'n'.  Update function comment.  All callers changed.
2896         (set_watchlo): Rename to ...
2897         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
2898         'set' to 'n'.  Update function comment.  All callers changed.
2899         (get_watchhi): Rename to ...
2900         (mips_linux_watch_get_watchhi): ... this.  Update function
2901         comment.  All callers changed.
2902         (set_watchhi): Rename to ...
2903         (mips_linux_watch_set_watchhi): ... this.  Update function
2904         comment.  All callers changed.
2905         (mips_linux_read_watch_registers): Update function comment.
2906         Add new parameters 'lwpid', 'watch_readback', and
2907         'watch_readback_valid'.  Update.
2908         (type_to_irw): Rename to ...
2909         (mips_linux_watch_type_to_irw): ... this.  Update function
2910         comment.  All callers changed.
2911         (fill_mask): Update function comment.
2912         (try_one_watch): Rename to ...
2913         (mips_linux_watch_try_one_watch): ... this.  Change the type
2914         of parameter 'irw' from 'unsigned' to 'uint32_t'.
2915         (populate_regs_from_watches): Rename to ...
2916         (mips_linux_watch_populate_regs): ... this.  Add parameter
2917         'current_watches'.  All callers changed.
2918
2919 2013-07-27  Yao Qi  <yao@codesourcery.com>
2920
2921         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2922         the code.
2923         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2924         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2925         (struct pt_watch_regs): Likewise.
2926         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2927         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2928         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2929         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2930         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2931
2932 2013-07-27  Yao Qi  <yao@codesourcery.com>
2933
2934         * breakpoint.h: Include break-common.h.
2935         (enum target_hw_bp_type): Move to ...
2936         * common/break-common.h: ... here.  New.
2937
2938 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
2939
2940         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2941         process group regardless of having tty on stdin.
2942
2943 2013-07-25  Doug Evans  <dje@google.com>
2944
2945         * linux-fork.h (detach_fork): Delete.
2946
2947 2013-07-25  Tom Tromey  <tromey@redhat.com>
2948
2949         PR remote/15256, PR remote/15266:
2950         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2951         * monitor.c (monitor_detach): Use unpush_target.
2952         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2953         * remote-mips.c (mips_detach): Use unpush_target.  Don't
2954         call mips_close.
2955         * remote-sim.c (gdbsim_detach): Use unpush_target.
2956         * target.c (pop_target): Remove.
2957         (pop_all_targets_above): Don't call target_close.
2958         (target_close): Assert that the target is unpushed.
2959         * target.h (pop_target): Don't declare.
2960         * tracepoint.c (tfile_open): Use unpush_target.
2961
2962 2013-07-25  Tom Tromey  <tromey@redhat.com>
2963
2964         * linux-thread-db.c (init_thread_db_ops): Call
2965         complete_target_initialization.
2966         (_initialize_thread_db): Don't call add_target.
2967         * target.c (complete_target_initialization): New function.
2968         (add_target_with_completer): Call it.
2969         * target.h (complete_target_initialization): Declare.
2970
2971 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
2972
2973         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2974         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2975         (HPPANBSD_SIZEOF_GREGS): New define.
2976         (hppaobsd_supply_gregset): Handle additional registers.
2977         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2978         we provide more registers now.
2979         (hppabsd_supply_gregset): Supply additional registers.
2980         (hppabsd_collect_gregset): Collect additional registers.
2981
2982 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
2983
2984         * hppabsd-tdep.c: Include "dwarf2-frame.h".
2985         (hppabsd_dwarf2_frame_init_reg): New function.
2986         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2987
2988 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
2989
2990         * mi/mi-main.c (output_register): Make MI 'r' format use standard
2991         'z' format code.  Remove error for optimized out values, standard
2992         code will handle these fine.
2993
2994 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
2995
2996         * NEWS: Mention new 'z' formatter.
2997         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2998         (_initialize_printcmd): Mention 'z' formatter in help text of the
2999         'x' command.
3000
3001 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
3002
3003         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3004         formatting.
3005
3006 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
3007
3008         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3009         interface can evaluate arguments.  Fallback to the old mode if it
3010         cannot.
3011         (create_exception_master_breakpoint): Likewise.
3012         * elfread.c (elf_can_evaluate_probe_arguments): New function.
3013         (struct sym_probe_fns elf_probe_fns): Export function above to the
3014         probe interface.
3015         * probe.c (can_evaluate_probe_arguments): New function.
3016         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3017         function pointer.
3018         (can_evaluate_probe_arguments): New function prototype.
3019         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3020         probe interface can evaluate arguments.  Fallback to the old mode
3021         if it cannot.
3022         * stap-probe.c (stap_get_probe_argument_count): Check if probe
3023         interface can evaluate arguments.  Warning the user if it cannot.
3024         (stap_can_evaluate_probe_arguments): New function.
3025         (struct probe_ops stap_probe_ops): Export function above to the
3026         probe interface.
3027         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3028         New function pointer.
3029
3030 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
3031
3032         * Makefile.in (SFILES): Add common/target-common.c.
3033         Add common/target-common.h to headers.
3034         (COMMON_OBS): Add target-common.o.
3035         (target-common.o): New target.
3036         * linux-nat.h (resume_kind): Move to common/target-common.h.
3037         * target.c (target_waitstatus_to_string): Move to
3038         common/target-common.c.
3039         * target.h: Include target-common.h.
3040         (target_waitkind): Move to common/target-common.h.
3041         (target_waitstatus): Likewise.
3042         (TARGET_WNOHANG): Likewise.
3043         * common/target-common.c: New file.
3044         * common/target-common.h: New file.
3045
3046 2013-07-24  Doug Evans  <dje@google.com>
3047
3048         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3049         a warning.
3050
3051 2013-07-23  Yao Qi  <yao@codesourcery.com>
3052
3053         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3054         parameter 'gdbarch'.
3055         (i386_stack_tramp_frame_sniffer): Caller update.
3056         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3057         parameter 'gdbarch' and 'target'.
3058         (i386_linux_core_read_description): Caller update.
3059         * amd64-linux-tdep.c (amd64_linux_core_read_description):
3060         Likewise.
3061         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3062         declaration.
3063
3064 2013-07-23  Tom Tromey  <tromey@redhat.com>
3065
3066         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3067         2013-07-22.
3068
3069 2013-07-22  Doug Evans  <dje@google.com>
3070
3071         * exec.h (remove_target_sections): Delete arg abfd.
3072         * exec.c (exec_close): Update call to remove_target_sections.
3073         (remove_target_sections): Delete arg abfd.
3074         * solib.c (update_solib_list): Ditto.
3075         (reload_shared_libraries_1): Ditto.
3076         (clear_solib): Ditto, and unconditionally call remove_target_sections.
3077         * target.h (struct target_section): Rename key to owner.
3078         All uses updated.
3079
3080 2013-07-22  Tom Tromey  <tromey@redhat.com>
3081
3082         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3083
3084 2013-07-22  Tom Tromey  <tromey@redhat.com>
3085
3086         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3087         Simplify cleanup handling.
3088
3089 2013-07-22  Tom Tromey  <tromey@redhat.com>
3090
3091         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3092         on all return paths.
3093
3094 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3095
3096         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3097         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3098         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3099
3100 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
3101
3102         * top.c (print_gdb_version): Add help, apropos description and
3103         url to online documentation.
3104
3105 2013-07-19  Hui Zhu  <hui@codesourcery.com>
3106
3107         PR gdb/15692
3108         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3109
3110 2013-07-19  Yao Qi  <yao@codesourcery.com>
3111
3112         * target.c (update_current_target): Change the default action
3113         of 'to_traceframe_info' from tcomplain to return_zero.
3114         * target.h (struct target_ops) <to_traceframe_info>: Add more
3115         comments.
3116         * valops.c (read_value_memory): Call
3117         traceframe_available_memory unconditionally.
3118
3119 2013-07-18  Yao Qi  <yao@codesourcery.com>
3120
3121         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3122         if the name is prefixed by "__imp_" or "_imp_", look for minimal
3123         symbol without prefix.  If found, set its type to
3124         'mst_solib_trampoline'.
3125
3126 2013-07-17  Doug Evans  <dje@google.com>
3127
3128         * NEWS: Mention "set print raw frame-arguments".
3129         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3130         * stack.c (print_raw_frame_arguments): New static global.
3131         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3132         (_initialize_stack): New command "set/show print raw frame-arguments".
3133         * valprint.c (setprintrawlist, showprintrawlist): New globals.
3134         (set_print_raw, show_print_raw): New functions.
3135         (_initialize_valprint): New prefix command "set/show print raw".
3136         * valprint.h (value_print_options): Improve comments.
3137
3138         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3139         of all *list variables.
3140
3141         * gdbcmd.h (togglelist): Delete.
3142         * cli/cli-cmds.c (togglelist): Delete.
3143         (init_cmd_lists): Update.
3144         * cli/cli-cmds.h (togglelist): Delete.
3145
3146 2013-07-17  Tom Tromey  <tromey@redhat.com>
3147
3148         * dwarf2read.c (dwarf2_per_objfile_free): Clear
3149         dwarf2_per_objfile.
3150
3151 2013-07-16  Doug Evans  <dje@google.com>
3152
3153         * nto-tdep.c (nto_relocate_section_addresses): Update,
3154         target_section.bfd deleted.
3155         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3156         * s390-tdep.c (s390_load): Ditto.
3157         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3158
3159 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
3160
3161         * common/format.c (parse_format_string): Add checks for NULL
3162         character before calling strchr.
3163
3164 2013-07-16  Doug Evans  <dje@google.com>
3165
3166         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3167         temp_pathname argument.
3168         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3169         when opening the file fails.
3170
3171         * target.h (struct target_section): Delete member bfd.
3172         All users updated to use the_bfd_section->owner instead.
3173         * exec.c (add_to_section_table): Assert bfd is expected value.
3174         Remove initialization of target_section.bfd.
3175         (remove_target_sections): Update.
3176         (section_table_available_memory): Update.
3177         (section_table_xfer_memory_partial): Update.
3178         (print_section_info): Update.
3179         (exec_set_section_address): Update.
3180         * record-full.c (record_full_core_xfer_partial): Update.
3181         * solib-svr4.c (svr4_relocate_section_addresses): Update.
3182         * solib-target.c (solib_target_relocate_section_addresses): Update.
3183         * symfile.c (build_section_addr_info_from_section_table): Update.
3184         * target.c (memory_xfer_live_readonly_partial): Update.
3185         (memory_xfer_partial_1): Update.
3186
3187 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3188
3189         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3190         now available for embedded (BookE) and server (BookS) processors,
3191         correct mentions of 'booke' and adjust comments accordingly in order to
3192         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3193         (have_ptrace_booke_interface): Rename function and variable
3194         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3195         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3196         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3197         'hwdebug_point_cmp'. Update all uses.
3198         (booke_find_thread_points_by_tid): Rename function
3199         'booke_find_thread_points_by_tid' to
3200         'hwdebug_find_thread_points_by_tid'. Update all uses.
3201         (booke_insert_point): Rename function 'booke_insert_point' to
3202         'hwdebug_insert_point'. Update all uses.
3203         (booke_remove_point): Rename function 'booke_remove_point' to
3204         'hwdebug_remove_point'. Update all uses.
3205
3206 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
3207
3208         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3209         numbers with enum values.
3210
3211 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
3212
3213         PR threads/13217
3214         * thread.c (thread_apply_all_command): Check for valid threads
3215         and thread count.
3216         (thread_array_cleanup): New struct.
3217         (set_thread_refcount): New function.
3218
3219 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
3220
3221         * infcmd.c (default_print_one_register_info): Reuse function
3222         print_hex_chars.
3223
3224 2013-07-10  Tom Tromey  <tromey@redhat.com>
3225
3226         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3227         (ada-exp.o): New target.
3228
3229 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3230
3231         * mt-tdep.c (mt_registers_info): Call
3232         get_no_prettyformat_print_options instead of
3233         get_raw_print_options (regression by last patch from Doug
3234         Evans).
3235
3236 2013-07-09  Pedro Alves  <palves@redhat.com>
3237
3238         Checked in by Joel Brobecker  <brobecker@adacore.com>.
3239         * ada-lang.c (coerce_unspec_val_to_type): Use
3240         value_optimized_out_const.
3241         * value.c (value_optimized_out_const): New function.
3242         * value.h (value_optimized_out_const): New declaration.
3243
3244 2013-07-09  Doug Evans  <dje@google.com>
3245
3246         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3247         Enum values rename as well.  All uses updated.
3248         * valprint.h (value_print_options): Rename member pretty to
3249         pretty format.  Rename member prettyprint_arrays to
3250         prettyformat_arrays.  Rename member prettyprint_structs to
3251         prettyformat_structs.  All uses updated.
3252         (get_no_prettyformat_print_options): Renamed from
3253         get_raw_print_options.
3254         * valprint.c (get_no_prettyformat_print_options): Renamed from
3255         get_raw_print_options.  All callers updated.
3256         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3257         All callers updated.
3258         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3259         All callers updated.
3260         (_initialize_valprint): Improve help text for "set print pretty" and
3261         "set print arrays".
3262
3263 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
3264
3265         * value.c (value_bits_valid): Revert previous change, and change
3266         by Pedro on 2013-07-04, due to regressions in
3267         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3268
3269 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
3270             Pedro Alves  <palves@redhat.com>
3271
3272         * value.c (value_bits_valid): If the value is not lval_computed
3273         or has no check validity handler then the answer is the
3274         optimized_out flag, otherwise defer to the handler.
3275
3276 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
3277
3278         * top.c (print_gdb_configuration): Explain in output of
3279         --configuration what does "relocatable" mean.
3280
3281         * main.c (print_gdb_help): Regroup options in the --help text.
3282         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3283         the relevant discussions.
3284
3285 2013-07-06  Yao Qi  <yao@codesourcery.com>
3286
3287         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3288         Remove parameter 'lsal'.
3289         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3290         to inner block.  Caller update.
3291         (base_breakpoint_create_breakpoints_sal): Update.
3292         (bkpt_create_breakpoints_sal): Likewise.
3293         (tracepoint_create_breakpoints_sal): Likewise.
3294         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3295         element 0 of vector 'canonical->sals'.
3296
3297 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
3298
3299         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3300         register number instead of the pseudo register one.
3301         (rs6000_dwarf2_reg_to_regnum): Likewise.
3302
3303 2013-07-04  Pedro Alves  <palves@redhat.com>
3304
3305         * findvar.c (value_of_register): Use allocate_optimized_out_value
3306         if the register has been optimized out, instead of
3307         set_value_optimized_out.
3308         * frame-unwind.c (frame_unwind_got_optimized): Use
3309         allocate_optimized_out_value.
3310
3311 2013-07-04  Pedro Alves  <palves@redhat.com>
3312
3313         * value.c (value_bits_valid): If the value is not lval_computed,
3314         or doesn't have a check_validity hook, assume the value is entirely
3315         valid.
3316
3317 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3318
3319         * stack.c (read_frame_arg): No longer fetch lazy values.
3320         * value.c (value_optimized_out): If the value is not already
3321         marked optimized out, and is lazy then fetch it.
3322         (value_primitive_field): Move optimized out check to later in the
3323         function, after we have loaded any lazy values.
3324         (value_fetch_lazy): Use optimized out flag directly rather than
3325         calling optimized_out method.
3326
3327 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3328
3329         * valops.c: Don't include "user-regs.h".
3330         (value_fetch_lazy): Moved to value.c.
3331         * value.c: Include "user-regs.h".
3332         (value_fetch_lazy): Moved from valops.c.
3333
3334 2013-07-04  Yao Qi  <yao@codesourcery.com>
3335
3336         Revert:
3337         2013-06-27  Yao Qi  <yao@codesourcery.com>
3338
3339         * common/create-version.sh: Update comments.  Handle the case
3340         that TARGET_ALIAS is empty.
3341
3342 2013-07-03  Pedro Alves  <palves@redhat.com>
3343
3344         * Makefile.in (config.status): Depend on development.sh.
3345         (aclocal_m4_deps): Add libmcheck.m4.
3346         * acinclude.m4: Include libmcheck.m4.
3347         * configure.ac: Source development.sh instead of setting
3348         'development' here.  --enable-libmcheck/--disable-libmcheck code
3349         factored out to GDB_AC_LIBMCHECK.  Run it.
3350         * development.sh: New file.
3351         * libmcheck.m4: New file.
3352         * configure: Regenerate.
3353
3354 2013-07-02  Tom Tromey  <tromey@redhat.com>
3355
3356         * contrib/ari/update-web-ari.sh: Update for version.in change.
3357
3358 2013-07-02  Tom Tromey  <tromey@redhat.com>
3359
3360         * common/ptid.h: Comment fixes.
3361
3362 2013-07-01  Tom Tromey  <tromey@redhat.com>
3363
3364         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3365         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
3366         (dwarf2_read_index, create_all_comp_units): Update.
3367
3368 2013-07-01  Tom Tromey  <tromey@redhat.com>
3369
3370         * configure.ac (build_warnings): Add -Wold-style-definition.
3371         * configure: Rebuild.
3372         * machoread.c (_initialize_machoread): Use "(void)".
3373         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3374         use "(void)".
3375
3376 2013-07-01  Tom Tromey  <tromey@redhat.com>
3377
3378         * configure.ac (build_warnings): Add -Wold-style-declaration.
3379         * configure: Rebuild.
3380         * dsrec.c (make_srec): Use "static const", not "const static".
3381         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3382         not "const static".
3383         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3384         Use "static const", not "const static".
3385         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3386         not "const static".
3387         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3388         not "const static".
3389         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3390         not "const static".
3391         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3392         not "const static".
3393         (v850_dbtrap_breakpoint_from_pc): Likewise.
3394         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3395         not "const static".
3396
3397 2013-07-01  Tom Tromey  <tromey@redhat.com>
3398
3399         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3400         * configure: Rebuild.
3401
3402 2013-07-01  Pedro Alves  <palves@redhat.com>
3403
3404         * defs.h: Include "pathmax.h".
3405         * utils.c: Don't include sys/param.h.
3406         (gdb_realpath): Remove code that checks for MAXPATHLEN.
3407         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3408         instead of MAXPATHLEN.
3409         * solib-sunos.c: Don't include sys/param.h.
3410         * xcoffread.c: Don't include sys/param.h.
3411         * bsd-kvm.c: Don't include sys/param.h.
3412         * darwin-nat.c: Don't include sys/param.h.
3413         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3414         * darwin-nat-info.c: Don't include sys/param.h.
3415         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3416         MAXPATHLEN.
3417         * i386obsd-nat.c: Don't include sys/param.h.
3418         * inf-child.c: Don't include sys/param.h.
3419         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3420         * linux-fork.c: Don't include sys/param.h.
3421         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3422         * linux-nat.c: Don't include sys/param.h.
3423         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3424         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3425         * m68klinux-nat.c: Don't include sys/param.h.
3426         * nbsd-nat.c: Don't include sys/param.h.
3427         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3428         * ppc-linux-nat.c: Don't include sys/param.h.
3429         * rs6000-nat.c: Don't include sys/param.h.
3430         * spu-linux-nat.c. Don't include sys/param.h.
3431         * windows-nat.c: Don't include sys/param.h.
3432         * xtensa-linux-nat.c: Don't include sys/param.h.
3433         * config/i386/nm-fbsd.h: Don't include sys/param.h.
3434
3435 2013-07-01  Pedro Alves  <palves@redhat.com>
3436
3437         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3438         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3439         * gnulib/aclocal.m4: Regenerate.
3440         * gnulib/config.in: Regenerate.
3441         * gnulib/configure: Regenerate.
3442         * gnulib/import/pathmax.h: New file.
3443         * gnulib/import/Makefile.am: Regenerate.
3444         * gnulib/import/Makefile.in: Regenerate.
3445         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3446         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3447         * gnulib/import/m4/pathmax.m4: New file.
3448
3449 2013-07-01  Pedro Alves  <palves@redhat.com>
3450
3451         * configure.ac (GDBINIT): Define, depending on host.
3452         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3453         * top.c (PATH_MAX): Delete fallback definition.
3454         (GDBINIT_FILENAME): Delete.
3455         (gdbinit): Reimplement as const char array set to the GDBINIT
3456         string constant.
3457         * top.h (gdbinit): Make const.
3458         * configure, config.in: Regenerate.
3459
3460 2013-07-01  Pedro Alves  <palves@redhat.com>
3461
3462         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3463         * cli/cli-cmds.h (source_script): Likewise.
3464         * exceptions.c (catch_command_errors_const): New function.
3465         * exceptions.h (catch_command_errors_const): Declare.
3466         * main.c (get_init_files): Make parameters const, and adjust.
3467         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3468         'local_gdbinit' locals const.  Adjust to use
3469         catch_command_errors_const.
3470         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3471         'local_gdbinit' locals const.
3472
3473 2013-07-01  Pedro Alves  <palves@redhat.com>
3474
3475         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3476         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3477         * tracepoint.c: Don't check HAVE_UNISTD_H before including
3478         <unistd.h>.
3479
3480 2013-07-01  Pedro Alves  <palves@redhat.com>
3481
3482         Import the "unistd" gnulib module.
3483         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3484         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3485         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3486         import/m4/unistd_h.m4.
3487         * gnulib/aclocal.m4: Renenerate.
3488         * gnulib/config.in: Renenerate.
3489         * gnulib/configure: Renenerate.
3490         * gnulib/import/Makefile.am: Renenerate.
3491         * gnulib/import/Makefile.in: Renenerate.
3492         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3493         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3494         * gnulib/import/m4/off_t.m4: New file.
3495         * gnulib/import/m4/ssize_t.m4: New file.
3496         * gnulib/import/m4/sys_types_h.m4: New file.
3497         * gnulib/import/m4/unistd_h.m4: New file.
3498         * gnulib/import/sys_types.in.h: New file.
3499         * gnulib/import/unistd.c: New file.
3500         * gnulib/import/unistd.in.h: New file.
3501
3502 2013-07-01  Pedro Alves  <palves@redhat.com>
3503
3504         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3505         defined instead of checking HAVE_UNISTD_H.
3506
3507 2013-07-01  Pedro Alves  <palves@redhat.com>
3508
3509         Reimport gnulib from scratch.
3510         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3511         import/m4/onceonly.m4.
3512         * gnulib/aclocal.m4: Renegerate.
3513         * gnulib/config.in: Renegerate.
3514         * gnulib/configure: Renegerate.
3515         * gnulib/import/Makefile.in: Renegerate.
3516         * gnulib/import/extra/update-copyright: Renegerate.
3517         * gnulib/import/m4/onceonly.m4: Delete.
3518
3519 2013-07-01  Pedro Alves  <palves@redhat.com>
3520
3521         * tui/tui-regs.c (pagination_enabled): Delete declaration.
3522
3523 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3524
3525         Code cleanup.
3526         * remote.c (async_remote_interrupt_twice): Make it static.
3527         * remote.h (async_remote_interrupt_twice): Remove the declaration.
3528
3529 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3530
3531         * ia64-linux-tdep.c: Include <ctype.h>.
3532         (ia64_linux_stap_is_single_operand): New function.
3533         (ia64_linux_init_abi): Initialize SystemTap related attributes.
3534
3535 2013-06-28  Tom Tromey  <tromey@redhat.com>
3536
3537         * Makefile.in (version.c): Use version.in, not
3538         common/version.in.
3539         * common/create-version.sh: Likewise.
3540         * common/version.in: Move...
3541         * version.in: ...here.
3542
3543 2013-06-28  Pedro Alves  <palves@redhat.com>
3544
3545         * infrun.c (set_observer_mode): Don't declare pagination_enabled
3546         here.
3547         * utils.h (pagination_enabled): Declare.
3548
3549 2013-06-28  Pedro Alves  <palves@redhat.com>
3550
3551         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3552         Move higher up in file.
3553
3554 2013-06-28  Tom Tromey  <tromey@redhat.com>
3555
3556         * tracepoint.c (deprecated_readline_begin_hook)
3557         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3558         declare.
3559
3560 2013-06-28  Pedro Alves  <palves@redhat.com>
3561
3562         PR tui/14880
3563         * tui/tui-regs.c (tui_get_register): Fetch value contents before
3564         checking if they're available.
3565         * value.c (value_available_contents_eq): Change comment.
3566         * value.h (value_available_contents_eq): Expand comment.
3567
3568 2013-06-27  Tom Tromey  <tromey@redhat.com>
3569
3570         * target.c (find_run_target): Remove.
3571         * target.h (find_run_target): Remove.
3572
3573 2013-06-27  Tom Tromey  <tromey@redhat.com>
3574
3575         * corelow.c (core_gdbarch): Now static.
3576
3577 2013-06-27  Tom Tromey  <tromey@redhat.com>
3578
3579         * target.c (target_struct_index): Remove.
3580
3581 2013-06-27  Pedro Alves  <palves@redhat.com>
3582
3583         * infrun.c: Remove comment describing the 'stepping over runtime
3584         loader dynamic symbol resolution code' mechanism; moved to
3585         gdbint.texinfo.
3586
3587 2013-06-27  Pedro Alves  <palves@redhat.com>
3588
3589         * exceptions.c (catch_command_errors): Remove spurious space.
3590         * exceptions.h (catch_command_errors): Second parameter is "arg",
3591         not "command".
3592
3593 2013-06-27  Yao Qi  <yao@codesourcery.com>
3594
3595         * common/create-version.sh: Update comments.  Handle the case
3596         that TARGET_ALIAS is empty.
3597
3598 2013-06-26  Pedro Alves  <palves@redhat.com>
3599
3600         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3601         comment.
3602
3603 2013-06-26  Pedro Alves  <palves@redhat.com>
3604
3605         * infrun.c: Update comments on stepping over runtime loader
3606         dynamic symbol resolution code.
3607
3608 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
3609
3610         * ax-gdb.h (union exp_element): Forward declare.
3611         * parser-defs.h: Include expression.h.
3612
3613 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3614
3615         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3616
3617 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
3618
3619         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3620
3621 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
3622
3623         Fix trace-status to output proper start-time and stop-time.
3624         * tracepoint.c (trace_status_command): Fix type of printf arg to
3625         prevent improper type conversion.
3626         (trace_status_mi): Likewise.
3627
3628 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3629
3630         * mips-tdep.c (mips_next_pc): Fix a typo.
3631
3632 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3633
3634         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3635
3636 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3637             Yao Qi  <yao@codesourcery.com>
3638
3639         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3640         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3641         * mi/mi-main.c (print_variable_or_computed): New function.
3642         (mi_cmd_trace_frame_collected): New function.
3643         * tracepoint.c (find_trace_state_variable_by_number): New.
3644         (struct traceframe_info): Move to tracepoint.h
3645         (struct collection_list): Likewise.
3646         (do_collect_symbol): Include locals and arguments in the
3647         collected variables list.
3648         (clear_collection_list): Clear wholly collected variables list
3649         and computed variables list.
3650         (append_exp): New function.
3651         (encode_actions_1): Include variables in the wholly
3652         collected variables list.  Include memory ranges and
3653         full-fledged expressions in the computed expressions list.
3654         (encode_actions): Move some code to ...
3655         Return the cleanup chain.
3656         (encode_actions_rsp): ... here.  New function.
3657         (get_traceframe_location, get_traceframe_info): Remove static.
3658         * tracepoint.h (struct memrange): Moved from tracepoint.c.
3659         (struct collection_list): Moved from tracepoint.c.  Add two
3660         new fields 'wholly_collected' and 'computed'.
3661         (find_trace_state_variable_by_number): Declare.
3662         (encode_actions): Adjust declaration.
3663         (encode_actions_rsp): Declare.
3664         (get_traceframe_info, get_traceframe_location): Declare.
3665
3666         * NEWS: Mention new MI command -trace-frame-collected.
3667
3668 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3669             Yao Qi  <yao@codesourcery.com>
3670
3671         * ctf.c (ctf_traceframe_info): Push trace state variables
3672         present in the trace data into the traceframe info object.
3673         * breakpoint.c (DEF_VEC_I): Remove.
3674         * common/filestuff.c (DEF_VEC_I): Likewise.
3675         * dwarf2loc.c (DEF_VEC_I): Likewise.
3676         * mi/mi-main.c (DEF_VEC_I): Likewise.
3677         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3678         * features/traceframe-info.dtd: Add tvar element and its
3679         attributes.
3680         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3681         (build_traceframe_info): Push trace state variables present in
3682         the trace data into the traceframe info object.
3683         (traceframe_info_start_tvar): New function.
3684         (tvar_attributes): New.
3685         (traceframe_info_children): Add "tvar" element.
3686         * tracepoint.h (struct traceframe_info) <tvars>: New field.
3687
3688         * NEWS: Mention the change in GDB and GDBserver.
3689
3690 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3691             Yao Qi  <yao@codesourcery.com>
3692
3693         * tracepoint.c (trace_dump_command): Move code to ...
3694         (get_traceframe_location): ... here.  New.
3695
3696 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3697             Yao Qi  <yao@codesourcery.com>
3698
3699         * tracepoint.c (trace_dump_command): GDB emits an error
3700          instead of a warning when a traceframe is not selected.
3701
3702 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3703             Yao Qi  <yao@codesourcery.com>
3704
3705         * tracepoint.c (tracepoint_list, stepping_list): Remove.
3706         (clear_collection_list): Free fields 'aexpre_list' and 'list'
3707         in collection_list.
3708         (do_clear_collection_list, init_collection_list): New.
3709         (encode_actions): Add local variables 'tracepoint_list' and
3710         'stepping_list'.  Call init_collection_list and make cleanup
3711         which calls do_clear_collection_list.  Don't call
3712         clear_collection_list.
3713         (_initialize_tracepoint): Delete references to
3714         'tracepoint_list' and 'stepping_list'.
3715
3716 2013-06-25  Tom Tromey  <tromey@redhat.com>
3717
3718         * common/create-version.sh (date): Use "$", not "$$" in sed
3719         expression.
3720
3721 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
3722
3723         * NEWS (New targets): Add entry for TI MSP430.
3724
3725 2013-06-25  Yao Qi  <yao@codesourcery.com>
3726
3727         * remote.c (remote_start_remote): Move code to upload tsv
3728         earlier.
3729
3730 2013-06-25  Yao Qi  <yao@codesourcery.com>
3731             Hui Zhu  <hui@codesourcery.com>
3732             Pedro Alves  <palves@redhat.com>
3733
3734         PR breakpoints/15075
3735         PR breakpoints/15434
3736         * breakpoint.c (bpstat_stop_status): Call
3737         b->ops->after_condition_true.
3738         (update_dprintf_command_list): Don't append "continue" command
3739         to the command list of dprintf breakpoint.
3740         (base_breakpoint_after_condition_true): New function.
3741         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3742         (dprintf_after_condition_true): New function.
3743         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3744         * breakpoint.h (breakpoint_ops): Add after_condition_true.
3745
3746 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
3747
3748         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3749         (ALLDEPFILES): Add msp430-tdep.c.
3750         * configure.tgt (msp430*-*-elf): New target.
3751         * msp430-tdep.c: New file.
3752
3753 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
3754
3755         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3756         microMIPS synthetic symbols.
3757
3758 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
3759
3760         * objfiles.h (pc_in_section): New prototype.
3761         (in_plt_section): Remove name argument, replace prototype with
3762         static inline function.
3763         * mips-tdep.h: Include "objfiles.h".
3764         (in_mips_stubs_section): New function.
3765         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3766         in_solib_call_trampoline member.
3767         (hppa_in_solib_call_trampoline): Remove name argument.
3768         * objfiles.c (pc_in_section): New function.
3769         (in_plt_section): Remove function.
3770         * mips-linux-tdep.c: Include "objfiles.h".
3771         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
3772         name argument.  Return 1 rather than the low 16-bit halfword of
3773         any instruction examined.
3774         (mips_linux_in_dynsym_resolve_code): Update
3775         mips_linux_in_dynsym_stub call accordingly.
3776         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3777         rather than an equivalent hand-coded sequence.
3778         * hppa-hpux-tdep.c (in_opd_section): Remove function.
3779         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3780         (hppa64_hpux_in_solib_call_trampoline): Likewise.
3781         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3782         in_opd_section.
3783         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3784         on call to tdep->in_solib_call_trampoline.
3785         (hppa_in_solib_call_trampoline): Remove name argument, update
3786         according to in_plt_section change.
3787         (hppa_skip_trampoline_code): Update according to in_plt_section
3788         change.
3789         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3790         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3791         Likewise.
3792         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3793         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3794         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3795         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3796         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3797         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3798         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3799         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3800         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3801         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3802         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3803         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3804         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3805
3806 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
3807
3808         * common/create-version.sh: Fix expansion of $host_alias
3809         and $target_alias in generation of HOST_NAME and TARGET_NAME
3810         (resp.).
3811
3812 2013-06-24  Tom Tromey  <tromey@redhat.com>
3813
3814         * common/create-version.sh: New file.
3815         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3816         create-version.sh.
3817         (HFILES_NO_SRCDIR): Use common/version.h.
3818         * version.in: Move to ...
3819         * common/version.in: ... here.  Replace date with "DATE".
3820         * version.h: Move to ...
3821         * common/version.h: ... here.
3822
3823 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
3824
3825         * gdb/gnulib/Makefile.in: Update date in copyright header.
3826         * gdb/gnulib/configure.ac: Ditto.
3827         * gdb/gnulib/update-gnulib.sh: Ditto.
3828
3829 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
3830
3831         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3832         "gdb/gnulib/import".
3833
3834 2013-06-21  Will Newton  <will.newton@linaro.org>
3835
3836         * doublest.c (ldfrexp): Remove function.
3837         (convert_doublest_to_floatformat): Call frexpl instead of
3838         ldfrexp.
3839
3840 2013-06-21  Will Newton  <will.newton@linaro.org>
3841
3842         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3843         * gnulib/aclocal.m4: Regenerate.
3844         * gnulib/config.in: Regenerate.
3845         * gnulib/configure: Regenerate.
3846         * gnulib/import/Makefile.am: Update.
3847         * gnulib/import/Makefile.in: Update.
3848         * gnulib/import/m4/gnulib-cache.m4: Update.
3849         * gnulib/import/m4/gnulib-comp.m4: Update.
3850         * gnulib/import/float+.h: Import.
3851         * gnulib/import/float.c: Import.
3852         * gnulib/import/float.in.h: Import.
3853         * gnulib/import/fpucw.h: Import.
3854         * gnulib/import/frexp.c: Import.
3855         * gnulib/import/frexpl.c: Import.
3856         * gnulib/import/isnan.c: Import.
3857         * gnulib/import/isnand-nolibm.h: Import.
3858         * gnulib/import/isnand.c: Import.
3859         * gnulib/import/isnanl-nolibm.h: Import.
3860         * gnulib/import/isnanl.c: Import.
3861         * gnulib/import/itold.c: Import.
3862         * gnulib/import/m4/exponentd.m4: Import.
3863         * gnulib/import/m4/exponentl.m4: Import.
3864         * gnulib/import/m4/float_h.m4: Import.
3865         * gnulib/import/m4/fpieee.m4: Import.
3866         * gnulib/import/m4/frexp.m4: Import.
3867         * gnulib/import/m4/frexpl.m4: Import.
3868         * gnulib/import/m4/isnand.m4: Import.
3869         * gnulib/import/m4/isnanl.m4: Import.
3870         * gnulib/import/m4/math_h.m4: Import.
3871         * gnulib/import/math.c: Import.
3872         * gnulib/import/math.in.h: Import.
3873
3874 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3875
3876         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3877         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3878         signature_INTEL_edx comparisons.
3879
3880 2013-06-20  Doug Evans  <dje@google.com>
3881
3882         symtab/15652
3883         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3884         All callers updated.
3885         (open_dwp_file): If we can't find the dwp file, search the basename
3886         in debug-file-directory.
3887
3888         * dwarf2read.c (struct dwp_file): Fix comment.
3889         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3890
3891         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3892         better.
3893
3894 2013-06-20  Yao Qi  <yao@codesourcery.com>
3895
3896         * breakpoint.c (create_breakpoint): Fix code indentation.
3897
3898 2013-06-20  Yao Qi  <yao@codesourcery.com>
3899
3900         * breakpoint.c (create_breakpoints_sal_default): Remove
3901         parameter 'lsal'.  Update declaration.
3902         (bkpt_create_breakpoints_sal): Caller update.
3903         (tracepoint_create_breakpoints_sal): Likewise.
3904
3905 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
3906             Yao Qi  <yao@codesourcery.com>
3907
3908         * NEWS: Mention the new option '--skip-unavailable' of command
3909         -data-list-register-values.
3910         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3911         --skip-unavailable option.  Adjust to use output_register.
3912         (output_register): Add new 'skip_unavailable' parameter.
3913         Handle it.
3914
3915 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
3916
3917         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3918         common/i386-gcc-cpuid.h.
3919         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3920         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3921         Copy the latest version from upstream gcc.
3922         * common/linux-btrace.c: Include i386-cpuid.h.
3923         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3924         call to i386_cpuid.
3925         (cpu_supports_btrace): Likewise.
3926         * go32-nat.c: Include i386-cpuid.h.
3927         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3928
3929 2013-06-19  Doug Evans  <dje@google.com>
3930
3931         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3932         (get_section_index): Ditto.
3933
3934 2013-06-19  Tom Tromey  <tromey@redhat.com>
3935
3936         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3937         "dprintf" help.
3938
3939 2013-06-18  Doug Evans  <dje@google.com>
3940
3941         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3942         before using it.
3943         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3944         Move test of cu_index closer to use.  Print complaint if cu_index
3945         is bad.
3946
3947 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
3948
3949         * machoread.c (oso_vector): Delete this global.
3950         (macho_register_oso): Add new parameter "oso_vector_ptr".
3951         Use it instead of the "oso_vector" global.
3952         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3953         (macho_symfile_read): Use a local oso_vector, to be free'ed
3954         at the end of this function, in place of the old "oso_vector"
3955         global.  Update various function calls accordingly.  Use one
3956         single cleanup chain for the entire function.
3957
3958 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
3959
3960         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3961         DWARF2_PER_OBJFILE by uses of DATA instead.
3962
3963 2013-06-18  Tom Tromey  <tromey@redhat.com>
3964
3965         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3966         argument.
3967         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3968         Special case signals other than GDB_SIGNAL_TRAP.
3969         (explains_signal_watchpoint): New function.
3970         (base_breakpoint_explains_signal): Add 'sig' argument.
3971         (initialize_breakpoint_ops): Set 'explains_signal' method for
3972         watchpoints.
3973         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3974         signal argument.
3975         (bpstat_explains_signal): Likewise.
3976         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3977
3978 2013-06-18  Tom Tromey  <tromey@redhat.com>
3979
3980         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3981
3982 2013-06-18  Tom Tromey  <tromey@redhat.com>
3983
3984         * python/python.c (finish_python_initialization): Decref
3985         'pythondir' on failure path as well.
3986
3987 2013-06-18  Tom Tromey  <tromey@redhat.com>
3988
3989         PR symtab/15391:
3990         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3991         after taking bits_to_skip into account.  Sign extend byte_offset.
3992         * utils.h (gdb_sign_extend): Declare.
3993         * utils.c (gdb_sign_extend): New function.
3994
3995 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3996
3997         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3998
3999 2013-06-17  Pierre Muller  <muller@sourceware.org>
4000
4001         * corelow.c (core_open): Print GDB signal name instead of target
4002         signal number.
4003
4004 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
4005
4006         * .gitignore: Add /gcore.
4007
4008 2013-06-13  Doug Evans  <dje@google.com>
4009
4010         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4011         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4012
4013 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
4014
4015         * stack.c (backtrace_command_1): Fix indentation.
4016
4017 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4018
4019         * window-nat.c (thread_rec): Add missing empty line after
4020         local variable declaration.
4021
4022 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4023
4024         * windows-nat.c (thread_rec): Revert format used to print
4025         error code returned by SuspendThread from %d back to %u.
4026
4027 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4028
4029         * windows-nat.c (windows_continue): Add "0x" prefix for thread
4030         ID in debug trace.
4031         (get_windows_debug_event): Likewise, for all debug traces.
4032
4033 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4034
4035         * window-nat.c (thread_rec): Add thread ID in SuspendThread
4036         warning message.
4037
4038 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
4039             Yao Qi  <yao@codesourcery.com>
4040
4041         * mi/mi-main.c (get_register): Remove declaration.
4042         (output_register): Declare.
4043         (mi_cmd_data_list_register_values): Remove local variable
4044         'tuple_cleanup'.  Move some code into output_register.
4045         (get_register): Renamed to ...
4046         (output_register): ... this.  Output the register's
4047         "number" ui_out tuple here.
4048
4049 2013-06-07  Pedro Alves  <palves@redhat.com>
4050
4051         * darwin-nat.c: Fix formating in copyright header.
4052         * darwin-nat.h: Likewise.
4053         * gnu-nat.c: Likewise.
4054         * machoread.c: Likewise.
4055
4056 2013-06-07  Pedro Alves  <palves@redhat.com>
4057
4058         PR server/14823
4059         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
4060         static.  Output a global target description pointer.
4061         (init_registers_${name}): Adjust to initialize a
4062         target description structure.
4063
4064 2013-06-07  Will Newton  <will.newton@linaro.org>
4065
4066         * printcmd.c (build_address_symbolic): Call
4067         gdbarch_addr_bits_remove for text minimal symbols.
4068
4069 2013-06-07  Will Newton  <will.newton@linaro.org>
4070
4071         * MAINTAINERS: Add myself to Write After Approval.
4072
4073 2013-06-07  Yao Qi  <yao@codesourcery.com>
4074
4075         * tracepoint.c (start_tracing): Move code to ...
4076         (trace_reset_local_state): ... here.  New.
4077         (disconnect_tracing): Don't call set_current_traceframe,
4078         set_tracepoint_num, and set_traceframe_context. Call
4079         trace_reset_local_state instead.
4080         (tfile_close): Call trace_reset_local_state.
4081         * ctf.c (ctf_close): Likewise.
4082         * remote.c (remote_close): Likewise.
4083         * tracepoint.h (trace_reset_local_state): Declare.
4084
4085 2013-06-06  Doug Evans  <dje@google.com>
4086
4087         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4088         and fix header docs.
4089
4090 2013-06-05  Doug Evans  <dje@google.com>
4091             Keith Seitz  <keiths@redhat.com>
4092
4093         PR 15519
4094         * cp-namespace.c (find_symbol_in_baseclass): Call
4095         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4096         Check result of call to lookup_symbol_static.
4097         Call lookup_static_symbol_aux unconditionally.
4098         Call check_typedef on base types before accessing them.
4099         (cp_lookup_nested_symbol): Fix comment.
4100
4101 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
4102
4103         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4104         minimal symbols pointing to function descriptors.
4105
4106 2013-06-05  Tom Tromey  <tromey@redhat.com>
4107
4108         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4109
4110 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4111             Pedro Alves  <palves@redhat.com>
4112
4113         * remote.c (remote_wait_as): Restore signal handler before returning
4114         when GDB gets a notification.
4115
4116 2013-06-04  Gary Benson  <gbenson@redhat.com>
4117
4118         PR 2328
4119         * breakpoint.h (handle_solib_event): Moved function declaration
4120         to solib.h.
4121         * breakpoint.c (handle_solib_event): Moved function to solib.c.
4122         (bpstat_stop_status): Pass new argument to handle_solib_event.
4123         * solib.h (update_solib_breakpoints): New function declaration.
4124         (handle_solib_event): Moved function declaration from
4125         breakpoint.h.
4126         * solib.c (update_solib_breakpoints): New function.
4127         (handle_solib_event): Moved function from breakpoint.c.
4128         Updated to call solib_ops->handle_event if not NULL.
4129         * solist.h (target_so_ops): New fields "update_breakpoints" and
4130         "handle_event".
4131         * infrun.c (set_stop_on_solib_events): New function.
4132         (_initialize_infrun): Use the above for "set
4133         stop-on-solib-events".
4134         (handle_inferior_event): Pass new argument to handle_solib_event.
4135         * solib-svr4.c (probe.h): New include.
4136         (svr4_free_library_list): New forward declaration.
4137         (probe_action): New enum.
4138         (probe_info): New struct.
4139         (probe_info): New static variable.
4140         (NUM_PROBES): New definition.
4141         (svr4_info): New fields "using_xfer", "probes_table" and
4142         "solib_list".
4143         (free_probes_table): New function.
4144         (free_solib_list): New function.
4145         (svr4_pspace_data_cleanup): Free probes table and solib list.
4146         (svr4_copy_library_list): New function.
4147         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4148         (svr4_read_so_list): New parameter "prev_lm".
4149         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4150         (svr4_current_sos): New function.
4151         (probe_and_action): New struct.
4152         (hash_probe_and_action): New function.
4153         (equal_probe_and_action): Likewise.
4154         (register_solib_event_probe): Likewise.
4155         (solib_event_probe_at): Likewise.
4156         (solib_event_probe_action): Likewise.
4157         (solist_update_full): Likewise.
4158         (solist_update_incremental): Likewise.
4159         (disable_probes_interface_cleanup): Likewise.
4160         (svr4_handle_solib_event): Likewise.
4161         (svr4_update_solib_event_breakpoint): Likewise.
4162         (svr4_update_solib_event_breakpoints): Likewise.
4163         (svr4_create_solib_event_breakpoints): Likewise.
4164         (enable_break): Free probes table before creating breakpoints.
4165         Use svr4_create_solib_event_breakpoints to create breakpoints.
4166         (svr4_solib_create_inferior_hook): Free the solib list.
4167         (_initialize_svr4_solib): Initialise
4168         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4169
4170 2013-06-04  Gary Benson  <gbenson@redhat.com>
4171
4172         * target.h (target_ops): New field
4173         "to_augmented_libraries_svr4_read".
4174         (target_augmented_libraries_svr4_read): New macro.
4175         * target.c (update_current_target): Handle
4176         to_augmented_libraries_svr4_read.
4177         * remote.c (remote_state): New field
4178         "augmented_libraries_svr4_read".
4179         (remote_augmented_libraries_svr4_read_feature): New function.
4180         (remote_protocol_features): Add entry for
4181         "augmented-libraries-svr4-read".
4182         (remote_augmented_libraries_svr4_read): New function.
4183         (init_remote_ops): Initialize
4184         remote_ops.to_augmented_libraries_svr4_read.
4185
4186 2013-06-04  Gary Benson  <gbenson@redhat.com>
4187
4188         * NEWS: Update.
4189
4190 2013-06-04  Gary Benson  <gbenson@redhat.com>
4191
4192         * objfiles.h (inhibit_section_map_updates): New function
4193         declaration.
4194         (resume_section_map_updates): Likewise.
4195         (resume_section_map_updates_cleanup): Likewise.
4196         * objfiles.c (objfile_pspace_info): Removed field
4197         "objfiles_changed_p".  New fields "new_objfiles_available",
4198         "section_map_dirty" and "inhibit_updates".
4199         (allocate_objfile): Set new_objfiles_available.
4200         (free_objfile): Set section_map_dirty.
4201         (objfile_relocate1): Likewise.
4202         (in_plt_section): Likewise.
4203         (find_pc_section): Update the conditions under which the
4204         section map will be updated.
4205         (inhibit_section_map_updates): New function.
4206         (resume_section_map_updates): Likewise.
4207         (resume_section_map_updates_cleanup): Likewise.
4208
4209 2013-06-04  Gary Benson  <gbenson@redhat.com>
4210
4211         * probe.h (get_probe_argument_count): New declaration.
4212         (evaluate_probe_argument): Likewise.
4213         * probe.c (get_probe_argument_count): New function.
4214         (evaluate_probe_argument): Likewise.
4215         (probe_safe_evaluate_at_pc): Use the above new functions.
4216
4217 2013-06-04  Alan Modra  <amodra@gmail.com>
4218
4219         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4220         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4221         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
4222         target mem reads on optional insns.
4223         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4224         ppc_insns_match_pattern calls.
4225         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4226         Add match for power7 thread safety insns, and new order of
4227         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
4228         invocation in comment, and update rest of comment.
4229         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4230         PPC64_STANDARD_LINKAGE3_LEN): Delete.
4231         (ppc64_standard_linkage2_target): Update insn offsets.
4232         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
4233         stubs first.  Update calls.
4234
4235 2013-06-04  Yao Qi  <yao@codesourcery.com>
4236
4237         * solib.c (solib_find): Don't need dir separator if path has
4238         drive spec.
4239
4240 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
4241
4242         Revert (indirectly causes a SIGSEGV):
4243         * machoread.c (macho_symfile_read): Assign first cleanup to
4244         'back_to'.
4245
4246 2013-06-03  Yao Qi  <yao@codesourcery.com>
4247
4248         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4249         mi-parse.c.  Make them static.
4250         (mi_all_values): Likewise.
4251         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
4252         mi_parse_print_values.  Make it external.
4253         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4254         Remove the declarations.
4255         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4256         * mi/mi-parse.h (mi_parse_print_values): Declare.
4257         * mi/mi-cmd-stack.c: Include mi-parse.h.
4258         (parse_print_values): Remove
4259         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4260         of parse_print_values.
4261         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4262
4263 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
4264             Yao Qi  <yao@codesourcery.com>
4265
4266         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4267         (encode_actions): Move code to ...
4268         (all_tracepoint_actions_and_cleanup): ... here.  New.
4269         (trace_dump_command): Likewise.
4270
4271 2013-05-30  Tom Tromey  <tromey@redhat.com>
4272
4273         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4274
4275 2013-05-30  Tom Tromey  <tromey@redhat.com>
4276
4277         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4278         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
4279         'old_chain' argument.  Add 'parser_result' argument.
4280         (gdb_xml_create_parser_and_cleanup): Remove old version.
4281         (gdb_xml_parse_quick): Update.
4282         (xml_process_xincludes): Update.
4283         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4284         declare.
4285
4286 2013-05-30  Tom Tromey  <tromey@redhat.com>
4287
4288         * probe.c (collect_probes): Check arguments for NULL before
4289         calling compile_rx_or_error.
4290         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4291         Remove NULL return.
4292
4293 2013-05-30  Tom Tromey  <tromey@redhat.com>
4294
4295         * infrun.c (adjust_pc_after_break): Introduce an outer null
4296         cleanup.
4297
4298 2013-05-30  Tom Tromey  <tromey@redhat.com>
4299
4300         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4301
4302 2013-05-30  Tom Tromey  <tromey@redhat.com>
4303
4304         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4305         for 'old_chain'.  Do not check 'head' before processing
4306         cleanups.
4307
4308 2013-05-30  Tom Tromey  <tromey@redhat.com>
4309
4310         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4311         "cleanup_tuple".
4312
4313 2013-05-30  Tom Tromey  <tromey@redhat.com>
4314
4315         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4316         inner scope.  Unconditionally call do_cleanups.
4317
4318 2013-05-30  Tom Tromey  <tromey@redhat.com>
4319
4320         * source.c (find_and_open_source): Call do_cleanups.
4321
4322 2013-05-30  Tom Tromey  <tromey@redhat.com>
4323
4324         * linux-thread-db.c (thread_db_load_search): Unconditionally
4325         call do_cleanups.
4326
4327 2013-05-30  Tom Tromey  <tromey@redhat.com>
4328
4329         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4330         for 'cleanup'; instead use a later one.
4331
4332 2013-05-30  Tom Tromey  <tromey@redhat.com>
4333
4334         * python/py-breakpoint.c (bppy_get_commands): Use
4335         explicit, unconditional return.
4336         * python/py-frame.c (frapy_read_var): Likewise.
4337         * python/python.c (gdbpy_decode_line): Likewise.
4338
4339 2013-05-30  Tom Tromey  <tromey@redhat.com>
4340
4341         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4342         do_cleanups on all return paths.
4343
4344 2013-05-30  Tom Tromey  <tromey@redhat.com>
4345
4346         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4347
4348 2013-05-30  Tom Tromey  <tromey@redhat.com>
4349
4350         * stabsread.c (read_struct_type): Call do_cleanups along
4351         all return paths.
4352
4353 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
4354
4355         * mips-linux-tdep.c: Adjust formatting throughout.
4356
4357 2013-05-30  Tom Tromey  <tromey@redhat.com>
4358
4359         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4360         along all return paths.
4361
4362 2013-05-30  Tom Tromey  <tromey@redhat.com>
4363
4364         * symfile.c (find_separate_debug_file): Call do_cleanups
4365         along all return paths.
4366
4367 2013-05-30  Tom Tromey  <tromey@redhat.com>
4368
4369         * symtab.c (search_symbols): Introduce a null cleanup for
4370         'retval_chain'.
4371
4372 2013-05-30  Tom Tromey  <tromey@redhat.com>
4373
4374         * python/py-value.c (valpy_binop): Call do_cleanups before
4375         exiting loop.
4376
4377 2013-05-30  Tom Tromey  <tromey@redhat.com>
4378
4379         * python/py-prettyprint.c (print_children): Remove extra
4380         do_cleanups call.
4381
4382 2013-05-30  Tom Tromey  <tromey@redhat.com>
4383
4384         * python/py-frame.c (frapy_read_var): Call do_cleanups along
4385         all return paths.
4386
4387 2013-05-30  Tom Tromey  <tromey@redhat.com>
4388
4389         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4390         along all return paths.
4391
4392 2013-05-30  Tom Tromey  <tromey@redhat.com>
4393
4394         * cli/cli-logging.c (set_logging_redirect): Unconditionally
4395         call do_cleanups.
4396
4397 2013-05-30  Tom Tromey  <tromey@redhat.com>
4398
4399         * varobj.c (c_value_of_root): Call do_cleanups along all
4400         return paths.
4401
4402 2013-05-30  Tom Tromey  <tromey@redhat.com>
4403
4404         * tracepoint.c (trace_dump_command): Unconditionally call
4405         do_cleanups.
4406
4407 2013-05-30  Tom Tromey  <tromey@redhat.com>
4408
4409         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4410         do_cleanups earlier.
4411
4412 2013-05-30  Tom Tromey  <tromey@redhat.com>
4413
4414         * machoread.c (macho_symfile_read): Assign first cleanup to
4415         'back_to'.
4416
4417 2013-05-30  Tom Tromey  <tromey@redhat.com>
4418
4419         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4420
4421 2013-05-30  Tom Tromey  <tromey@redhat.com>
4422
4423         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4424
4425 2013-05-30  Tom Tromey  <tromey@redhat.com>
4426
4427         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4428         call discard_cleanups.
4429         (inf_ptrace_attach): Likewise.
4430
4431 2013-05-30  Tom Tromey  <tromey@redhat.com>
4432
4433         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4434         return paths.
4435         (mips_initialize): Likewise.
4436         (common_open): Call do_cleanups.
4437
4438 2013-05-30  Tom Tromey  <tromey@redhat.com>
4439
4440         * utils.c (internal_vproblem): Call do_cleanups.
4441
4442 2013-05-30  Tom Tromey  <tromey@redhat.com>
4443
4444         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4445
4446 2013-05-30  Tom Tromey  <tromey@redhat.com>
4447
4448         * cli/cli-script.c (setup_user_args): Don't return after error.
4449
4450 2013-05-30  Tom Tromey  <tromey@redhat.com>
4451
4452         * somread.c (som_symtab_read): Call do_cleanups.
4453
4454 2013-05-30  Tom Tromey  <tromey@redhat.com>
4455
4456         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4457
4458 2013-05-30  Tom Tromey  <tromey@redhat.com>
4459
4460         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4461         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4462         * interps.c (interpreter_exec_cmd): Call do_cleanups.
4463         * source.c (show_substitute_path_command): Call do_cleanups.
4464         (unset_substitute_path_command, set_substitute_path_command):
4465         Likewise.
4466         * symfile.c (load_command): Call do_cleanups.
4467
4468 2013-05-30  Tom Tromey  <tromey@redhat.com>
4469
4470         * contrib/cleanup_check.py: New file.
4471         * contrib/gcc-with-excheck: Add option parsing.
4472
4473 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
4474
4475         * windows-nat.c (windows_delete_thread): Add missing space
4476         in cast expression.
4477
4478 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4479
4480         * inferior.c (top level): Include tilde.h.
4481         (add_inferior_command): Call tilde_expand on the value of 'exec'
4482         argument.
4483
4484 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
4485             Yao Qi  <yao@codesourcery.com>
4486
4487         * tracepoint.c (encode_actions_1): Remove parameter 't'.
4488         Caller update.
4489         (encode_actions): Likewise.
4490         * remote.c (remote_download_tracepoint): Caller update.
4491         * tracepoint.h (encode_actions): Update declaration.
4492
4493 2013-05-30  Pedro Alves  <palves@redhat.com>
4494
4495         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4496         pointer.
4497
4498 2013-05-30  Yao Qi  <yao@codesourcery.com>
4499
4500         * remote.c (remote_check_symbols): Remove unused parameter
4501         'objfile'.
4502         Declaration update.
4503         (remote_start_remote, remote_new_objfile): Caller update.
4504
4505 2013-05-30  Yao Qi  <yao@codesourcery.com>
4506
4507         * mi/mi-cmds.c (mi_cmds): Define MI command
4508         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4509         DEF_MI_CMD_CLI.
4510
4511 2013-05-29  Pedro Alves  <palves@redhat.com>
4512
4513         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4514         (remote_insert_watchpoint, remote_remove_watchpoint)
4515         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4516         (remote_verify_memory, compare_sections_command)
4517         (remote_search_memory): Set the general process/thread on the
4518         remote side.
4519
4520 2013-05-29  Pedro Alves  <palves@redhat.com>
4521
4522         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4523         (_initialize_aarch64_tdep): Don't call
4524         initialize_tdesc_aarch64_without_fpu.
4525         * features/Makefile (WHICH): Remove reference to
4526         aarch64-without-fpu.
4527         * features/aarch64-without-fpu.c: Delete file.
4528         * regformats/aarch64-without-fpu.dat: Delete file.
4529
4530 2013-05-28  Yao Qi  <yao@codesourcery.com>
4531
4532         * tracepoint.c (stringify_collection_list): Remove parameter
4533         'string'.
4534         (encode_actions): Caller update.  Remove local variables.
4535
4536 2013-05-24  Yao Qi  <yao@codesourcery.com>
4537
4538         * tracepoint.c (TFILE_PID): Remove.
4539         (tfile_open): Don't add thread and inferior.
4540         (tfile_close): Don't set 'inferior_ptid'.  Don't call
4541         exit_inferior_silent.
4542         (tfile_thread_alive): Remove.
4543         (init_tfile_ops): Don't set field 'to_thread_alive' of
4544         tfile_ops.
4545
4546 2013-05-23  Doug Evans  <dje@google.com>
4547
4548         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4549
4550 2013-05-23  Pedro Alves  <palves@redhat.com>
4551
4552         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4553         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4554         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4555         Only define if HAVE_SOCKETS is defined.
4556         * configure.ac: Check for sys/socket.h.
4557         * config.in, configure: Regenerate.
4558
4559 2013-05-23  Pedro Alves  <palves@redhat.com>
4560
4561         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4562         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4563         printing uint32_t variables.
4564
4565 2013-05-23  Pedro Alves  <palves@redhat.com>
4566
4567         * NEWS: Mention GDBserver range stepping support.
4568
4569 2013-05-23  Yao Qi  <yao@codesourcery.com>
4570             Pedro Alves  <palves@redhat.com>
4571
4572         * gdbthread.h (struct thread_control_state) <may_range_step>: New
4573         field.
4574         * infcmd.c (step_once, until_next_command): Enable range stepping.
4575         * infrun.c (displaced_step_prepare): Disable range stepping.
4576         (resume): Disable range stepping if stepping over a breakpoint or
4577         we have software watchpoints.  If range stepping is enabled,
4578         assert the thread is in the stepping range.
4579         (clear_proceed_status_thread): Clear may_range_step.
4580         (handle_inferior_event): Disable range stepping as soon as we know
4581         the thread that hit the event.  Re-enable it whenever we're going
4582         to step with a step range.
4583         * remote.c (struct vCont_action_support) <r>: New field.
4584         (use_range_stepping): New global.
4585         (remote_vcont_probe): Handle 'r' action.
4586         (append_resumption): Append an 'r' action if the thread may range
4587         step.
4588         (show_range_stepping): New function.
4589         (set_range_stepping): New function.
4590         (_initialize_remote): Call add_setshow_boolean_cmd to register the
4591         'set range-stepping' and 'show range-stepping' commands.
4592         * NEWS: Mention range stepping, the new vCont;r action, and the
4593         new "set/show range-stepping" commands.
4594
4595 2013-05-23  Yao Qi  <yao@codesourcery.com>
4596             Pedro Alves  <palves@redhat.com>
4597
4598         * remote.c (struct vCont_action_support): New struct.
4599         (struct remote_state) <support_vCont_t>: Remove field.
4600         <vCont_actions_support>: New field.
4601         (remote_vcont_probe, remote_stop_ns): Update.
4602
4603 2013-05-23  Yao Qi  <yao@codesourcery.com>
4604             Pedro Alves  <palves@redhat.com>
4605
4606         * gdbthread.h (pc_in_thread_step_range): New declaration.
4607         * thread.c (pc_in_thread_step_range): New function.
4608         * infrun.c (handle_inferior_event): Use it.
4609
4610 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
4611
4612         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4613         of sprintf.
4614
4615 2013-05-22  Keith Seitz  <keiths@redhat.com>
4616
4617         * ada-lang.c (is_known_support_routine): Add explicit free of
4618         'func_name' from find_frame_funname.
4619         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4620         for func_name from find_frame_funname.
4621         * python/py-frame.c (frapy_name): Add explicit free of
4622         'name' from find_frame_funname.
4623         * stack.c (find_frame_funname): Add comment explaining that
4624         funcp must be freed by the caller.
4625         Return copy of symbol names instead of pointers.
4626         (print_frame): Add a cleanup for 'funname' from
4627         find_frame_funname.
4628         * stack.h (find_frame_funname): Remove "const" from
4629         'funname' parameter.
4630
4631 2013-05-22  Tom Tromey  <tromey@redhat.com>
4632
4633         PR c++/15401:
4634         * c-valprint.c (c_value_print): Use value_addr for
4635         references.  Convert back to reference type with value_ref.
4636
4637 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
4638
4639         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4640         unloaded DLL, it will be done by handle_solib_event.  See
4641         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4642         details.
4643
4644 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
4645
4646         * ui-out.c: Create typedef ui_out_level_p and define vector
4647         operations for that type.
4648         (struct ui_out): Use a vector instead of an array.
4649         (current_level): Return level from a vector.
4650         (push_level): Create a level in a vector.
4651         (pop_level): Delete a level in a vector.
4652         (ui_out_new): Create initial level zero level, and store in a
4653         vector.
4654         (ui_out_destroy): Add vector cleanup.
4655
4656 2013-05-22  Pedro Alves  <palves@redhat.com>
4657
4658         * python/python-internal.h (gdb_Py_DECREF): Tag with
4659         "ARI: editCase function".
4660
4661 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
4662
4663         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4664
4665 2013-05-21  Pedro Alves  <palves@redhat.com>
4666
4667         * python/py-prettyprint.c (apply_val_pretty_printer): Check
4668         whether PRINTER is NULL before installing a Py_DECREF cleanup.
4669         * python/py-utils.c (py_decref): Don't check for NULL before
4670         calling Py_DECREF.
4671
4672 2013-05-21  Pedro Alves  <palves@redhat.com>
4673
4674         * python/py-utils.c (py_decref): Remove extra braces.
4675         (gdb_pymodule_addobject): Remove extra braces.
4676         * python-internal.h (gdb_Py_DECREF): New static inline function.
4677         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4678
4679 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4680
4681         * breakpoints.c (detach_breakpoints): Do not
4682         detach breakpoints locations with loc_type bp_loc_other.
4683
4684 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4685
4686         Workaround Python 2.6.
4687         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4688         a block.
4689
4690 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4691
4692         Code cleanup: constification.
4693         * solib.c (solib_ops): Make return type and ops variable type const.
4694         (set_solib_ops): Make the new_ops parameter and ops variable const.
4695         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4696         (solib_add, solib_keep_data_in_core, clear_solib)
4697         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4698         (reload_shared_libraries, solib_global_lookup): Make the ops variable
4699         const.
4700         * solib.h (set_solib_ops): Make the new_ops parameter const.
4701
4702 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
4703
4704         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4705         variable.
4706         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4707         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4708         (SYSTEM_GDBINIT_FILES): New variables.
4709         (all): Add stamp-system-gdbinit.
4710         (stamp-system-gdbinit): New rule.
4711         (clean-system-gdbinit, install-system-gdbinit)
4712         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
4713         (install-only): Add dependency on install-system-gdbinit.
4714         (uninstall): Add dependency on uninstall-system-gdbinit.
4715         (clean): Add dependency on clean-system-gdbinit.
4716         * system-gdbinit/elinos.py: New file.
4717         * system-gdbinit/wrs-linux.py: New file.
4718
4719 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
4720
4721         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4722
4723 2013-05-21  Hui Zhu  <hui@codesourcery.com>
4724
4725         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4726         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4727         * mi/mi-cmd-break.c (ctype.h): New include.
4728         (gdb_obstack.h): New include.
4729         (mi_argv_to_format, mi_cmd_break_insert_1): New.
4730         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4731         (mi_cmd_dprintf_insert): New.
4732         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4733         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4734
4735 2013-05-20  Tom Tromey  <tromey@redhat.com>
4736
4737         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4738
4739 2013-05-20  Tom Tromey  <tromey@redhat.com>
4740
4741         * python/py-value.c (valpy_get_dynamic_type): Simplify
4742         dynamic_type assignment.  Use Py_XINCREF.
4743
4744 2013-05-20  Tom Tromey  <tromey@redhat.com>
4745
4746         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4747
4748 2013-05-20  Tom Tromey  <tromey@redhat.com>
4749
4750         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4751         (gdbpy_selected_frame): Move object-construction code
4752         out of TRY_CATCH.
4753
4754 2013-05-20  Tom Tromey  <tromey@redhat.com>
4755
4756         * python/py-arch.c (gdbpy_initialize_arch): Use
4757         gdb_pymodule_addobject.
4758         * python/py-block.c (gdbpy_initialize_blocks): Use
4759         gdb_pymodule_addobject.
4760         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4761         gdb_pymodule_addobject.
4762         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4763         gdb_pymodule_addobject.
4764         * python/py-event.c (gdbpy_initialize_event_generic): Use
4765         gdb_pymodule_addobject.
4766         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4767         gdb_pymodule_addobject.
4768         * python/py-evts.c (add_new_registry): Use
4769         gdb_pymodule_addobject.
4770         (gdbpy_initialize_py_events): Likewise.
4771         * python/py-finishbreakpoint.c
4772         (gdbpy_initialize_finishbreakpoints): Use
4773         gdb_pymodule_addobject.
4774         * python/py-frame.c (gdbpy_initialize_frames): Use
4775         gdb_pymodule_addobject.
4776         * python/py-function.c (gdbpy_initialize_functions): Use
4777         gdb_pymodule_addobject.
4778         * python/py-inferior.c (gdbpy_initialize_inferior): Use
4779         gdb_pymodule_addobject.
4780         * python/py-infthread.c (gdbpy_initialize_thread): Use
4781         gdb_pymodule_addobject.
4782         * python/py-objfile.c (gdbpy_initialize_objfile): Use
4783         gdb_pymodule_addobject.
4784         * python/py-param.c (gdbpy_initialize_parameters): Use
4785         gdb_pymodule_addobject.
4786         * python/py-progspace.c (gdbpy_initialize_pspace): Use
4787         gdb_pymodule_addobject.
4788         * python/py-symbol.c (gdbpy_initialize_symbols): Use
4789         gdb_pymodule_addobject.
4790         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4791         gdb_pymodule_addobject.
4792         * python/py-type.c (gdbpy_initialize_types): Use
4793         gdb_pymodule_addobject.
4794         * python/py-utils.c (gdb_pymodule_addobject): New function.
4795         * python/py-value.c (gdbpy_initialize_values): Use
4796         gdb_pymodule_addobject.
4797         * python/python-internal.h (gdb_pymodule_addobject): Declare.
4798         * python/python.c (_initialize_python): Use
4799         gdb_pymodule_addobject.
4800
4801 2013-05-20  Tom Tromey  <tromey@redhat.com>
4802
4803         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4804         * python/py-param.c (get_set_value, get_show_value): Use
4805         explicit decrefs.
4806         * python/python.c (start_type_printers, apply_type_printers):
4807         Use explicit decrefs.
4808
4809 2013-05-20  Tom Tromey  <tromey@redhat.com>
4810
4811         * python/py-evts.c (gdbpy_initialize_py_events): Don't
4812         incref the module.
4813
4814 2013-05-20  Tom Tromey  <tromey@redhat.com>
4815
4816         * python/python.c (gdbpy_run_events): Decref the result
4817         of PyObject_CallObject.
4818
4819 2013-05-20  Tom Tromey  <tromey@redhat.com>
4820
4821         * python/py-symtab.c (set_sal): Use
4822         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
4823         (symtab_and_line_to_sal_object): Update.
4824
4825 2013-05-20  Tom Tromey  <tromey@redhat.com>
4826
4827         * python/py-param.c (compute_enum_values): Decref 'item'.
4828
4829 2013-05-20  Tom Tromey  <tromey@redhat.com>
4830
4831         * mi/mi-main.c: Include python-internal.h.
4832         (mi_cmd_list_features): Check gdb_python_initialized.
4833         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4834         (python_inferior_exit, python_new_objfile, add_thread_object)
4835         (delete_thread_object, py_free_inferior): Check
4836         gdb_python_initialized.
4837         * python/py-prettyprint.c (apply_val_pretty_printer): Check
4838         gdb_python_initialized.
4839         * python/py-type.c (save_objfile_types): Check
4840         gdb_python_initialized.
4841         * python/python-internal.h (gdb_python_initialized): Declare.
4842         * python/python.c (ensure_python_env): Throw exception if
4843         Python not initialized.
4844         (before_prompt_hook, source_python_script_for_objfile)
4845         (start_type_printers, apply_type_printers,
4846         free_type_printers): Check gdb_python_initialized.
4847         * varobj.c (varobj_get_display_hint)
4848         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4849         (install_new_value_visualizer, varobj_set_visualizer)
4850         (value_get_print_value): Check gdb_python_initialized.
4851
4852 2013-05-20  Tom Tromey  <tromey@redhat.com>
4853
4854         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4855         Check errors.
4856         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4857         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4858         Check errors.
4859         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4860         Check errors.
4861         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4862         Check errors.
4863         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4864         Check errors.
4865         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4866         init function to return 'int'.
4867         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4868         Return 'int'.  Check errors.
4869         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4870         Check errors.
4871         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4872         Return 'int'.  Check errors.
4873         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4874         Check errors.
4875         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4876         Check errors.
4877         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4878         Check errors.
4879         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4880         Check errors.
4881         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4882         Check errors.
4883         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4884         Check errors.
4885         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4886         Check errors.
4887         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4888         Check errors.
4889         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4890         Check errors.
4891         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4892         Check errors.
4893         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4894         Check errors.
4895         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4896         Check errors.
4897         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4898         Check errors.
4899         * python/python-internal.h (gdbpy_initialize_auto_load,
4900         gdbpy_initialize_values, gdbpy_initialize_frames,
4901         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4902         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4903         gdbpy_initialize_blocks, gdbpy_initialize_types,
4904         gdbpy_initialize_functions, gdbpy_initialize_pspace,
4905         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4906         gdbpy_initialize_finishbreakpoints,
4907         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4908         gdbpy_initialize_thread, gdbpy_initialize_inferior,
4909         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4910         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4911         gdbpy_initialize_signal_event,
4912         gdbpy_initialize_breakpoint_event,
4913         gdbpy_initialize_continue_event,
4914         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4915         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4916         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4917         * python/python.c (gdb_python_initialized): New global.
4918         (gdbpy_initialize_events): Return 'int'.  Check errors.
4919         (_initialize_python): Check errors.  Set
4920         gdb_python_initialized.
4921
4922 2013-05-20  Tom Tromey  <tromey@redhat.com>
4923
4924         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4925         Decref the reslut of PyObject_CallMethod.
4926
4927 2013-05-20  Tom Tromey  <tromey@redhat.com>
4928
4929         * python/py-event.c (gdbpy_initialize_event_generic): Return
4930         early if PyType_Ready fails.
4931
4932 2013-05-20  Tom Tromey  <tromey@redhat.com>
4933
4934         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4935         as 'default' in the switch.
4936
4937 2013-05-20  Tom Tromey  <tromey@redhat.com>
4938
4939         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
4940         get_addr_from_python calls out of TRY_CATCH.
4941         (infpy_write_memory, infpy_search_memory): Likewise.
4942         * python/py-utils.c (get_addr_from_python): Return negative
4943         value on error.  Use TRY_CATCH.
4944         * python/python-internal.h (get_addr_from_python): Use
4945         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4946
4947 2013-05-20  Tom Tromey  <tromey@redhat.com>
4948
4949         * python/py-event.c (evpy_emit_event): Decref the
4950         result of PyObject_CallFunctionObjArgs.
4951
4952 2013-05-20  Tom Tromey  <tromey@redhat.com>
4953
4954         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4955         Correctly decref.
4956
4957 2013-05-20  Tom Tromey  <tromey@redhat.com>
4958
4959         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4960
4961 2013-05-20  Tom Tromey  <tromey@redhat.com>
4962
4963         * python/py-event.h (gdbpy_initialize_event_generic): Use
4964         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4965         * python/py-evts.c (add_new_registry): Use
4966         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4967         * python/python-internal.h
4968         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4969
4970 2013-05-20  Tom Tromey  <tromey@redhat.com>
4971
4972         * python/py-arch.c (archpy_disassemble): Update.
4973         * python/py-type.c (typy_get_composite, typy_lookup_typename)
4974         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4975         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4976         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4977         macro.
4978         (GDB_PY_HANDLE_EXCEPTION): Update.
4979         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
4980
4981 2013-05-20  Tom Tromey  <tromey@redhat.com>
4982
4983         * python/python-internal.h (events_object_type): Remove.
4984
4985 2013-05-20  Tom Tromey  <tromey@redhat.com>
4986
4987         * python/py-event.h (evpy_emit_event): Use
4988         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4989         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4990         New macro.
4991
4992 2013-05-20  Tom Tromey  <tromey@redhat.com>
4993
4994         * py-evtregistry.c (create_event_object): Decref
4995         eventregistry_object if PyList_New fails.
4996
4997 2013-05-20  Tom Tromey  <tromey@redhat.com>
4998
4999         * py-cmd.c (gdbpy_string_to_argv): Check result of
5000         PyList_New.
5001
5002 2013-05-20  Tom Tromey  <tromey@redhat.com>
5003
5004         * python/python.c (before_prompt_hook): Add cleanup to
5005         decref 'hook'.
5006
5007 2013-05-20  Tom Tromey  <tromey@redhat.com>
5008
5009         * python/py-function.c (fnpy_init): Decref result of
5010         PyObject_GetAttrString.
5011
5012 2013-05-20  Tom Tromey  <tromey@redhat.com>
5013
5014         * python/py-threadevent.c (get_event_thread): Use
5015         CPYCHECKER_RETURNS_BORROWED_REF.
5016         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5017         New define.
5018         (pspace_to_pspace_object, objfile_to_objfile_object)
5019         (find_thread_object): Use it.
5020
5021 2013-05-20  Tom Tromey  <tromey@redhat.com>
5022
5023         * python/py-arch.c (arch_object_type): Use
5024         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5025         * python/py-block.c (block_syms_iterator_object_type):
5026         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5027         * python/py-bpevent.c (breakpoint_event_object_type):
5028         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5029         * python/py-cmd.c (cmdpy_object_type): Use
5030         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5031         * python/py-continueevent.c (continue_event_object_type):
5032         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5033         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5034         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5035         * python/py-events.h (thread_event_object_type):
5036         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5037         * python/py-evtregistry.c (eventregistry_object_type): Use
5038         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5039         * python/py-exitedevent.c (exited_event_object_type):
5040         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5041         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5042         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5043         * python/py-function.c (fnpy_object_type): Use
5044         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5045         * python/py-inferior.c (inferior_object_type, membuf_object_type):
5046         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5047         * python/py-infthread.c (thread_object_type): Use
5048         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5049         * python/py-lazy-string.c (lazy_string_object_type):
5050         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5051         * python/py-newobjfileevent.c (new_objfile_event_object_type):
5052         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5053         * python/py-objfile.c (objfile_object_type): Use
5054         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5055         * python/py-param.c (parmpy_object_type):
5056         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5057         * python/py-progspace.c (pspace_object_type):
5058         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5059         * python/py-signalevent.c (signal_event_object_type):
5060         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5061         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5062         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5063         * python/py-type.c (type_object_type, field_object_type)
5064         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5065         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5066         define.
5067         (value_object_type, block_object_type, symbol_object_type)
5068         (event_object_type, stop_event_object_type, breakpoint_object_type)
5069         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5070
5071 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
5072
5073         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5074         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5075
5076 2013-05-20  Doug Evans  <dje@google.com>
5077
5078         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
5079         For Fission.
5080         * dwarf2read.c (struct dwarf2_per_cu_data): New member
5081         reading_dwo_directly.
5082         (struct signatured_type): New member dwo_unit.
5083         (struct die_reader_specs): New member comp_dir.
5084         (create_signatured_type_table_from_index): Use malloc for
5085         all_type_units instead of objfile's obstack.
5086         (create_all_type_units): Ditto.
5087         (fill_in_sig_entry_from_dwo_entry): New function.
5088         (add_type_unit): New function.
5089         (lookup_dwo_signatured_type): New function.
5090         (lookup_dwp_signatured_type): New function.
5091         (lookup_signatured_type): New arg cu.  All callers updated.
5092         (init_cu_die_reader): Initialize comp_dir.
5093         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
5094         Change assert of matching type signatures to call error on mismatch.
5095         (lookup_dwo_unit): Add assert.
5096         (init_tu_and_read_dwo_dies): New function.
5097         (init_cutu_and_read_dies): Call it.
5098         (build_type_unit_groups): Handle case of no type unit groups created.
5099         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5100         (lookup_dwo_cutu): Tweak complaint.
5101         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5102         (dwarf2_per_objfile_free): Free all_type_units.
5103
5104 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5105
5106         * windows-nat.c (handle_unload_dll): Add missing empty line.
5107
5108 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5109
5110         * dwarf2read.c (prototyped_function_p): New function.
5111         (read_subroutine_type): Use it.
5112
5113 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5114
5115         * rs6000-aix-tdep.c: De-indent some example code provided
5116         as a comment.
5117
5118 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5119
5120         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5121         region is ok for a hardware watchpoint using the new ptrace interface
5122         on Power servers.
5123
5124 2013-05-17  Doug Evans  <dje@google.com>
5125
5126         * NEWS: Mention new maintenance commands check-symtabs, and
5127         expand-symtabs, and renamed check-psymtabs.
5128         * psymtab.c (maintenance_check_psymtabs): Renamed from
5129         maintenance_check_symtabs.  Only process already-expanded symbol
5130         tables.
5131         (_initialize_psymtab): Update.
5132         * symmisc.c (maintenance_check_symtabs): New function.
5133         (maintenance_expand_name_matcher): New function
5134         (maintenance_expand_file_matcher): New function
5135         (maintenance_expand_symtabs): New function.
5136         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5137         commands.
5138
5139 2013-05-17  Tom Tromey  <tromey@redhat.com>
5140
5141         * python/py-inferior.c (infpy_read_memory): Don't call
5142         PyErr_SetString if PyObject_New fails.
5143         * python/py-frame.c (frame_info_to_frame_object): Don't call
5144         PyErr_SetString if PyObject_New fails.
5145
5146 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
5147
5148         * acinclude.m4: Add check for dlopen in libdl.
5149         * configure.ac: Ditto.
5150         * configure: Regenerate.
5151
5152 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
5153
5154         * frame.c (frame_stash): Convert to htab.
5155         (frame_addr_hash): New function.
5156         (frame_addr_hash_eq): New function.
5157         (frame_stash_create): Convert function to create
5158         a hash table.
5159         (frame_stash_add): Convert function to add an entry to a hash
5160         table.
5161         (frame_stash_find): Convert function to search the hash table.
5162         (frame_stash_invalidate): Convert function to empty the hash
5163         table.
5164         (get_frame_id): Only add to stash if a frame_id is created.
5165         (_initialize_frame): Call frame_stash_create.
5166
5167 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
5168
5169         * configure.ac: Ensure MIG is available when building for GNU Hurd
5170         hosts.
5171         * configure: Regenerate.
5172
5173 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5174
5175         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5176
5177 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5178
5179         * ada-lang.c (ada_make_symbol_completion_list): Make sure
5180         all cleanups are done before returning from this function.
5181
5182 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5183
5184         * utils.h: #include "exceptions.h".
5185         (enum errors): Remove partial declaration.
5186
5187 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5188
5189         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5190         * gdbarch.h, gdbarch.c: Regenerate.
5191         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5192         handling.
5193
5194         * rs6000-aix-tdep.h: New file.
5195         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5196         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5197         "xml-utils.h".
5198         (struct field_info, struct ld_info_desc): New types.
5199         (ld_info32_desc, ld_info64_desc): New static constants.
5200         (struct ld_info): New type.
5201         (rs6000_aix_extract_ld_info): New function.
5202         (rs6000_aix_shared_library_to_xml): Likewise.
5203         (rs6000_aix_ld_info_to_xml): Likewise.
5204         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5205         (rs6000_aix_init_osabi): Add call to
5206         set_gdbarch_core_xfer_shared_libraries_aix.
5207         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5208         Remove "xml-utils.h" include.
5209         (LdInfo): Delete typedef.
5210         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5211         Delete macros.
5212         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5213         Adjust code accordingly.
5214         (rs6000_core_ldinfo): Delete, folded into
5215         rs6000_aix_core_xfer_shared_libraries_aix.
5216         (rs6000_xfer_shared_library): Delete.
5217         (rs6000_xfer_shared_libraries): Reimplement.
5218
5219 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
5220
5221         * record.c (record_goto_cmdlist): New.
5222         (cmd_record_goto): Split into this ...
5223         (cmd_record_goto_begin): ... this
5224         (cmd_record_goto_end): ... and this.
5225         (_initialize_record): Change "record goto" to prefix command.
5226         Add commands for "record goto begin" and "record goto end".
5227         Add an alias for "record goto start" to "record goto begin".
5228
5229 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5230
5231         * linespec.c (convert_linespec_to_sals): New comment for
5232         SOURCE_FILENAME assignment.
5233
5234 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5235
5236         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5237         internal_warning.
5238
5239 2013-05-14  Tom Tromey  <tromey@redhat.com>
5240
5241         * eval.c (parse_and_eval_long): Make 'exp' const.
5242         * value.h (parse_and_eval_long): Update.
5243
5244 2013-05-14  Tom Tromey  <tromey@redhat.com>
5245
5246         * ui-file.c (gdb_fopen): Make arguments const.
5247         * ui-file.h (gdb_fopen): Make arguments const.
5248
5249 2013-05-14  Tom Tromey  <tromey@redhat.com>
5250
5251         * remote.c (remote_set_trace_notes): Make arguments const.
5252         * target.c (update_current_target): Update cast.
5253         * target.h (to_set_trace_notes): Make arguments const.
5254
5255 2013-05-14  Tom Tromey  <tromey@redhat.com>
5256
5257         * go32-nat.c (go32_terminal_info): Make 'args' const.
5258         * inferior.h (child_terminal_info): Update.
5259         * inflow.c (child_terminal_info): Make 'args' const.
5260         * target.c (default_terminal_info): Make 'args' const.
5261         (debug_to_terminal_save_ours): Likewise.
5262         * target.h (struct target_ops) <to_terminal_info>: Make argument
5263         const.
5264
5265 2013-05-13  Tom Tromey  <tromey@redhat.com>
5266
5267         * gcore.c (create_gcore_bfd): Make 'filename' const.
5268         * gcore.h (create_gcore_bfd): Make 'filename' const.
5269         * record-full.c (record_full_save): Make 'recfilename' const.
5270         * target.c (target_save_record): Make 'filename' const.
5271         * target.h (struct target_ops) <to_save_record>: Make 'filename'
5272         const.
5273         (target_save_record): Likewise.
5274
5275 2013-05-13  Tom Tromey  <tromey@redhat.com>
5276
5277         PR gdb/15338:
5278         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5279         ranges section has been read.
5280
5281 2013-05-13  Tom Tromey  <tromey@redhat.com>
5282
5283         PR exp/15364:
5284         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5285         STRUCTOP_PTR>: Return a not_lval value for
5286         EVAL_AVOID_SIDE_EFFECTS.
5287         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5288         for EVAL_AVOID_SIDE_EFFECTS.
5289
5290 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
5291
5292         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5293         floating point registers to register type before storing
5294         value.
5295         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5296         Likewise.
5297
5298 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5299             Tom Tromey  <tromey@redhat.com>
5300
5301         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5302         New functions.
5303         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5304         Declare.
5305         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5306         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5307         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5308         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5309
5310 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
5311             Tom Tromey  <tromey@redhat.com>
5312
5313         PR build/15414:
5314         * configure: Rebuild.
5315         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5316         with -Wno-format.
5317
5318 2013-05-10  Pedro Alves  <palves@redhat.com>
5319
5320         * remote.c (_initialize_remote): Fix spelling of
5321         qXfer:traceframe-info:read packet in packet config command.
5322
5323 2013-05-10  David Taylor  <dtaylor@emc.com>
5324
5325         PR remote/15455
5326
5327         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5328         "QTro" at start of packet.
5329
5330 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5331
5332         * solib-aix.c (solib_aix_relocate_section_addresses):
5333         For the .bss section action, apply the same offset as
5334         the .data section.
5335
5336 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5337
5338         * solib-aix.c (solib_aix_relocate_section_addresses):
5339         Remove FIXME comment.
5340
5341 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5342
5343         PR tdep/15420:
5344         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5345         New functions, directly copied from sparc-sol-thread.c.
5346         * sparc-sol-thread.c: Delete.
5347         * configure.ac: Remove code handling sparc-solaris-thread.c.
5348         * configure: Regenerate.
5349
5350 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
5351
5352         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5353         filter logic.
5354         (backtrace_command): Add "no-filters" option parsing.
5355         (_initialize_stack): Alter help to reflect "no-filters" option.
5356         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5357         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5358         (py-frame.o): Add target
5359         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5360         filter files.
5361         * python/python.h: Add new frame filter constants, and flag enum.
5362         (apply_frame_filter): Add definition.
5363         * python/python.c (apply_frame_filter): New non-Python
5364         enabled function.
5365         * python/py-utils.c (py_xdecref): New function.
5366         (make_cleanup_py_xdecref): Ditto.
5367         * python/py-objfile.c: Declare frame_filters dictionary.
5368         (objfpy_dealloc): Add frame_filters dealloc.
5369         (objfpy_new): Initialize frame_filters attribute.
5370         (objfile_to_objfile_object): Ditto.
5371         (objfpy_get_frame_filters): New function.
5372         (objfpy_set_frame_filters): New function.
5373         * python/py-progspace.c: Declare frame_filters dictionary.
5374         (pspy_dealloc): Add frame_filters dealloc.
5375         (pspy_new): Initialize frame_filters attribute.
5376         (pspacee_to_pspace_object): Ditto.
5377         (pspy_get_frame_filters): New function.
5378         (pspy_set_frame_filters): New function.
5379         * python/py-framefilter.c: New file.
5380         * python/lib/gdb/command/frame_filters.py: New file.
5381         * python/lib/gdb/frames.py: New file.
5382         * python/lib/gdb/__init__.py: Initialize global frame_filters
5383         dictionary
5384         * python/lib/gdb/FrameDecorator.py: New file.
5385         * python/lib/gdb/FrameIterator.py: New file.
5386         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5387         * mi/mi-cmds.h: Declare.
5388         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5389         --no-frame-filter logic, and Python frame filter logic.
5390         (stack_enable_frame_filters): New function.
5391         (parse_no_frame_option): Ditto.
5392         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5393         filter logic.
5394         (mi_cmd_stack_list_locals): Ditto.
5395         (mi_cmd_stack_list_args): Ditto.
5396         (mi_cmd_stack_list_variables): Ditto.
5397         * NEWS: Add frame filter note.
5398
5399 2013-05-09  Doug Evans  <dje@google.com>
5400
5401         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5402         All callers updated.
5403         (syms_from_objfile): Ditto.  Make static.
5404         (symbol_file_add_with_addrs): Renamed from
5405         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
5406         num_offsets.  All callers updated.
5407         * symfile.h (syms_from_objfile): Delete.
5408
5409         * symfile.c (decrement_reading_symtab): Add assert.
5410         (increment_reading_symtab): Ditto.
5411
5412 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
5413
5414         * source.c (forward_search_command): Replace call to getc
5415         by call to fgetc.
5416         (reverse_search_command): Likewise.
5417
5418 2013-05-08  Doug Evans  <dje@google.com>
5419
5420         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5421         matching test.
5422
5423 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5424
5425         * sol-thread.c (info_cb): Factorize the code a little.
5426
5427 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5428
5429         * sol-thread.c (info_cb): Rework the output of the "maintenance
5430         info sol-threads" command a bit.
5431
5432 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5433
5434         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5435         Replace ti.ti_startfunc by ti.ti_pc.
5436
5437 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5438
5439         * solib-aix.c (solib_aix_free_library_list): New function
5440         for the case where HAVE_LIBEXPAT is not defined.
5441
5442 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5443
5444         PR breakpoints/15413:
5445         * breakpoint.c (condition_completer): Simplify the code to
5446         disconsider multiple locations of breakpoints when completing the
5447         "condition" command.
5448
5449 2013-05-07  Pierre Muller  <muller@sourceware.org>
5450
5451         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5452         instead of <sys/wait.h>.
5453
5454 2013-05-07  Pierre Muller  <muller@sourceware.org>
5455
5456         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5457         trailing new line from warning message.
5458
5459 2013-05-07  Pierre Muller  <muller@sourceware.org>
5460
5461         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5462         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5463
5464 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5465
5466         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5467         error message (ARI fix).
5468
5469 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5470
5471         * features/library-list-aix.dtd: Replace library-list by
5472         library-list-aix.
5473         * rs6000-nat.c: Replace library-list by library-list-aix
5474         throughout.
5475         * solib-aix.c: Likewise.
5476
5477 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5478
5479         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5480         Renames TARGET_OBJECT_AIX_LIBRARIES.
5481         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5482         TARGET_OBJECT_LIBRARIES_AIX throughout.
5483         * solib-aix.c: Likwise.
5484
5485 2013-05-07  Yao Qi  <yao@codesourcery.com>
5486
5487         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5488         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5489
5490 2013-05-07  Yao Qi  <yao@codesourcery.com>
5491
5492         * solib-dsbt.c (enable_break): Declare.
5493         (dsbt_current_sos): Remove call to enable_break2.
5494         (enable_break2): Rename to enable_break.  Set solib breakpoint
5495         on '_dl_debug_state'.
5496         (enable_break): Remove.
5497
5498 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
5499
5500         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5501         debug state prior to replicating existing hardware watchpoints or
5502         breakpoints.
5503
5504 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5505
5506         * gcore.c (gcore_create_callback): Ignore sections with
5507         separate_debug_objfile_backlink != NULL.
5508
5509 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
5510             Andrew Jenner  <andrew@codesourcery.com>
5511             Chung-Lin Tang  <cltang@codesourcery.com>
5512             Julian Brown  <julian@codesourcery.com>
5513
5514         Based on the nios2-elf port from Altera Corporation.
5515
5516         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5517         nios2-linux-tdep.o.
5518         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5519         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5520         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5521         * nios2-tdep.h: New.
5522         * nios2-tdep.c: New.
5523         * nios2-linux-tdep.c: New.
5524         * features/Makefile (WHICH): Add nios2-linux.
5525         (nios2-linux-expedite): Set.
5526         * features/nios2-cpu.xml: New.
5527         * features/nios2.xml: New.
5528         * features/nios2-linux.xml: New.
5529         * features/nios2.c: New (autogenerated).
5530         * features/nios2-linux.c: New (autogenerated).
5531         * regformats/nios2-linux.dat: New (autogenerated).
5532         * NEWS (Changes since GDB 7.6): Add new Nios II targets
5533         and commands.
5534
5535 2013-05-06  Doug Evans  <dje@google.com>
5536
5537         * symfile.c: Whitespace cleanup.
5538
5539         * solist.h (struct target_so_ops): New member clear_so.
5540         * solib-svr4.c (svr4_clear_so): New function.
5541         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5542         * solib.c (clear_so): Renamed from free_so_symbols.
5543         All callers updated.  Call target clear_so if it exists.
5544
5545 2013-05-06  Tom Tromey  <tromey@redhat.com>
5546
5547         * ada-lang.c (ada_value_primitive_packed_val): Don't
5548         call value_incref.
5549         * value.c (set_value_parent): Incref the new parent and decref
5550         the old parent.
5551         (value_copy, value_primitive_field): Use set_value_parent.
5552
5553 2013-05-06  Tom Tromey  <tromey@redhat.com>
5554
5555         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5556         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5557         if needed.
5558         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5559         * dwarf2read.c (write_constant_as_bytes)
5560         (dwarf2_fetch_constant_bytes): New functions.
5561
5562 2013-05-06  Tom Tromey  <tromey@redhat.com>
5563
5564         * dwarf2read.c (dwarf2_const_value_data): Remove unused
5565         parameters.
5566         (dwarf2_const_value_attr): Update.
5567
5568 2013-05-06  Tom Tromey  <tromey@redhat.com>
5569
5570         * somread.c (som_symfile_offsets): Add 'const' to addrs.
5571         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5572         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5573         Remove declaration.
5574
5575 2013-05-06  Tom Tromey  <tromey@redhat.com>
5576
5577         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5578         objfile's obstack.
5579
5580 2013-05-06  Doug Evans  <dje@google.com>
5581
5582         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5583         * stabsread.h (process_one_symbol): Update declaration.
5584         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5585         * elfread.c (elf_symfile_relocate_probe): Ditto.
5586         * psymtab.c (relocate_psymtabs): Ditto.
5587         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5588         (objfile_relocate): Ditto.
5589         * objfiles.h (objfile_relocate): Update declaration.
5590         * symfile.c (relative_addr_info_to_section_offsets): Constify
5591         addrs parameter.
5592         (default_symfile_offsets): Ditto.
5593         (syms_from_objfile_1): Constify offsets parameter.
5594         (syms_from_objfile): Ditto.
5595         (symbol_file_add_with_addrs_or_offsets): Ditto.
5596         (symfile_map_offsets_to_segments): Constify data parameter.
5597         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5598         delta parameters of member relocate.
5599         (struct sym_probe_fns): Constify new_offsets,
5600         delta parameters of member sym_relocate_probe.
5601         (struct sym_fns): Constify section_addr_info parameter of member
5602         sym_offsets.
5603         (relative_addr_info_to_section_offsets): Update declaration.
5604         (default_symfile_offsets): Ditto.
5605         (syms_from_objfile): Ditto.
5606         (symfile_map_offsets_to_segments): Ditto.
5607
5608         * symfile.c (syms_from_objfile_1): Use correct section count when
5609         objfile->sf == NULL.
5610
5611 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
5612
5613         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5614
5615 2013-05-06  Doug Evans  <dje@google.com>
5616
5617         * psympriv.h (struct partial_symtab): Augment comment for member
5618         section_offsets.
5619
5620 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5621
5622         Reimplement shared library support on ppc-aix...
5623         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5624         * features/library-list-aix.dtd: New file.
5625         * solib-aix.h, solib-aix.c: New file.
5626         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5627         (rs6000_find_toc_address_hook): Delete.
5628         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5629         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5630         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
5631         "xml-utils.h".
5632         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5633         (vmap_symtab, fixup_breakpoints): Delete.
5634         (rs6000_xfer_shared_libraries): New function.
5635         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5636         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5637         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5638         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5639         (rs6000_xfer_shared_library): New function.
5640         (find_toc_address): Delete.
5641         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5642         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5643         * xcoffread.c (record_minimal_symbol): Reloate symbol address
5644         before creating minimal symbol.  Adjust function description
5645         accordingly.
5646         (scan_xcoff_symtab): Replace call to
5647         prim_record_minimal_symbol_and_info by call to
5648         record_minimal_symbol.
5649         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5650         around default_symfile_offsets.
5651         * configure.tgt: Add solib-aix.o to gdb_target_obs for
5652         powerpc-aix targets.
5653         * config/rs6000/nm-rs6000.h: Delete.
5654         * config/powerpc/aix.mh (NAT_FILE): Delete.
5655         (NATDEPFILES): Remove xcoffsolib.o.
5656         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5657         (ALL_TARGET_OBS): Add solib-aix.o.
5658         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5659         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
5660         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
5661         * xcoffsolib.h, xcoffsolib.c: Delete.
5662
5663         * solib.c (reload_shared_libraries): Remove reference to
5664         SOLIB_CREATE_INFERIOR_HOOK.
5665         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5666         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5667         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5668         comment.
5669         * corelow.c (deprecated_core_resize_section_table): Delete.
5670         * exec.c: Remove include of xcoffsolib.h".
5671         (map_vmap, vmap): Delete.
5672         (exec_close_1): Remove references to vmap.
5673         (exec_file_attach): Remove vmap handling code, and reference
5674         to DEPRECATED_IBM6000_TARGET.
5675         (bfdsec_to_vmap): Delete.
5676         (exec_files_info): Remove block of code handling VMAP.
5677         * infcmd.c (post_create_inferior): Remove reference to
5678         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5679         * infrun.c (follow_exec): Remove reference to
5680         SOLIB_CREATE_INFERIOR_HOOK.
5681         * stack.c (print_frame): Remove reference to PC_SOLIB.
5682         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5683         (dsbt_relocate_main_executable): Likewise.
5684         * solib-frv.c (frv_current_sos): Likewise.
5685
5686 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5687
5688         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5689         to target_write_memory and target_read_memory.
5690
5691 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5692
5693         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5694         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5695
5696 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5697
5698         * darwin-nat.c: Replace all "%x" instances in format strings
5699         into "0x%x" throughout.
5700
5701 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5702
5703         * darwin-nat.c (darwin_mourn_inferior): Replace call to
5704         gdb_assert by call to MACH_CHECK_ERROR.
5705         (darwin_attach_pid): Raise an error rather than a failed
5706         assertion when various system calls failed.  Report a warning
5707         instead of raising a failed assertion when PREV_NOT is not NULL
5708         after call to mach_port_request_notification.
5709         (darwin_ptrace_me): Raise an error rather than a failed
5710         assertion when read returns nonzero.
5711
5712 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5713
5714         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5715
5716 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5717
5718         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5719
5720 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5721
5722         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5723         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5724         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
5725         a stale cleanup.  Fix double free of NAME.
5726
5727 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
5728
5729         * windows-nat.c (windows_delete_thread): Accept an additional
5730         argument, the thread's exit code, and announce thread death when
5731         print_thread_events is non-zero and we are deleting a thread that
5732         is not the main thread.
5733         (get_windows_debug_event): Pass thread exit code to
5734         windows_delete_thread.
5735
5736 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
5737
5738         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5739         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5740         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5741         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5742         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5743         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5744         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5745         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5746         (gdbarch_tdep): New struct.
5747         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5748         E_NUM_REGS.
5749         (v850e3v5_register_name): New function.
5750         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5751         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
5752         code handling the struct return conventions for the RH850 ABI.
5753         Update all callers.
5754         (v850_eight_byte_align_p): New function.
5755         (v850_push_call_dummy): Push structs by value, not by reference
5756         for the RH850 ABI.  Add support for eight byte alignment.
5757         (v850_dbtrap_breakpoint_from_pc): New function.
5758         (v850_gdbarch_init): Add ABI detection code.  Register
5759         v850e3v5_register_name for the v850e3v5 architecture.  Set the
5760         number of registers for v850e3v5.  Register
5761         v850_dbtrap_breakpoint_from_pc as appropriate.
5762         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5763
5764 2013-05-03  Doug Evans  <dje@google.com>
5765
5766         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5767         of bfd_count_sections.
5768         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5769         * symfile.c (default_symfile_offsets): Ditto.
5770         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
5771         one entry, not bfd_count_sections entries.
5772
5773 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
5774
5775         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5776         `save' and `restore' register groups.  Don't include SPL
5777         or SPH in these groups.
5778         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
5779         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
5780         RL78_ES_REGNUM, and RL78_CS_REGNUM.
5781         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
5782         dwarf2_append_unwinders().
5783
5784 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5785
5786         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5787         ignore SIGINT and SIGTRAP in case these internal signals are
5788         caught explicitely.
5789
5790 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
5791
5792         * darwin-nat.c (darwin_read_write_inferior): Change types
5793         of parameters rdaddr and wraddr to "gdb_byte *". Change type
5794         of copy_count to "mach_msg_type_number_t".
5795         (darwin_read_dyld_info): Change type of parameter
5796         rdaddr to "gdb_byte *".
5797
5798 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
5799
5800         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5801         of &info->load_map from "char *" to "gdb_byte *".
5802
5803 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
5804
5805         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5806         from "char *" to "gdb_byte *".
5807         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5808
5809 2013-04-30  Doug Evans  <dje@google.com>
5810
5811         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5812         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5813         DWO stub.  If DWO isn't found, just use stub.
5814         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5815
5816         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5817         calling init_cutu_and_read_dies.
5818
5819 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
5820
5821         * target-descriptions.c (maint_print_c_tdesc_cmd):
5822         Add case to parse structures as register types and
5823         bitfields.
5824
5825 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
5826
5827         * MAINTAINERS (Write After Approval): Add myself to the list.
5828
5829 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
5830
5831         * sol-thread.c (rw_common): Change type of parameter "buf"
5832         to "gdb_byte *".
5833         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5834         rw_common to "gdb_byte *" instead of "char *".
5835
5836 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
5837
5838         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5839         of local variable msym to const struct bound_minimal_symbol.
5840         Adjust use accordingly.
5841         [ti.ti_state == TD_THR_SLEEP]: Likewise.
5842
5843 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
5844
5845         * i386gnu-nat.c (CREG_OFFSET): New macro.
5846         (creg_offset): New array.
5847         (CREG_ADDR): Use creg_offset instead of reg_offset.
5848
5849 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
5850
5851         * mep-tdep.c (mep_write_pc): Delete.
5852         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5853         Add call to set_gdbarch_pc_regnum.
5854
5855 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
5856
5857         * common/filestuff.c: Replace #include <dirent.h> by
5858         #include "gdb_dirent.h".
5859
5860 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
5861
5862         * common/filestuff.c: Replace #include <sys/stat.h> by
5863         #include "gdb_stat.h".
5864
5865 2013-04-29  Pierre Muller  <muller@sourceware.org>
5866
5867         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5868         editCase function rule.
5869         (get_DW_AT_signature_type): Likewise.
5870
5871 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
5872
5873         * m32r-tdep.c (m32r_write_pc): Delete.
5874         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5875         Add call to set_gdbarch_pc_regnum.
5876
5877 2013-04-29  Pierre Muller  <muller@sourceware.org>
5878
5879         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5880
5881 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
5882
5883         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5884
5885 2013-04-28  Yao Qi  <yao@codesourcery.com>
5886
5887         * solib-dsbt.c (fetch_loadmap): Re-indent.
5888         (displacement_from_map, enable_break2): Likewise.
5889         (dsbt_relocate_section_addresses): Likewise.
5890
5891 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
5892
5893         GDB 7.6 released.
5894
5895 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
5896
5897         PR corefiles/14983:
5898         * dwarf2read.c (process_full_comp_unit): Always create a static
5899         block.
5900
5901 2013-04-25  Hui Zhu  <hui@codesourcery.com>
5902
5903         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5904         to loc->cmd_bytecode.
5905
5906 2013-04-24  Doug Evans  <dje@google.com>
5907
5908         * dwarf2read.c (setup_type_unit_groups): Fix comment.
5909
5910 2013-04-22  Keith Seitz  <keiths@redhat.com>
5911
5912         * tracepoint.c (trace_save):  Call the writer's start method.
5913
5914 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
5915
5916         PR gdb/10462
5917         * cli/cli-decode.c (lookup_command): Show an error if there is no space
5918         before argument.
5919
5920 2013-04-23  Tom Tromey  <tromey@redhat.com>
5921
5922         * common/filestuff.c: Check USE_WIN32API before including
5923         sys/socket.h.
5924         (HAVE_F_GETFD): New define.
5925         (mark_cloexec): Check HAVE_F_GETFD.
5926         (gdb_open_cloexec): Change 'mode' to unsigned long.
5927         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5928         (gdb_pipe_cloexec): Check HAVE_PIPE.
5929         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5930         long.
5931
5932 2013-04-23  Hui Zhu  <hui@codesourcery.com>
5933
5934         PR gdb/15293
5935         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5936
5937 2013-04-23  Hui Zhu  <hui@codesourcery.com>
5938
5939         PR gdb/15165
5940         * breakpoint.c (dprintf_print_recreate): New.
5941         (save_breakpoints): Let it not save dprintf commands.
5942         (initialize_breakpoint_ops): Set dprintf_print_recreate.
5943
5944 2013-04-22  Tom Tromey  <tromey@redhat.com>
5945
5946         PR gdb/7912:
5947         * Makefile.in (SFILES): Add filestuff.c
5948         (COMMON_OBS): Add filestuff.o.
5949         (filestuff.o): New target.
5950         * auto-load.c (auto_load_objfile_script_1): Use
5951         gdb_fopen_cloexec.
5952         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5953         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5954         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5955         * common/agent.c (gdb_connect_sync_socket): Use
5956         gdb_socket_cloexec.
5957         * common/filestuff.c: New file.
5958         * common/filestuff.h: New file.
5959         * common/linux-osdata.c (linux_common_core_of_thread)
5960         (command_from_pid, commandline_from_pid, print_source_lines)
5961         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5962         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5963         gdb_fopen_cloexec.
5964         * common/linux-procfs.c (linux_proc_get_int)
5965         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5966         * config.in, configure: Rebuild.
5967         * configure.ac: Don't check for sys/socket.h.  Check for
5968         fdwalk, pipe2.
5969         * corelow.c (core_open): Use gdb_open_cloexec.
5970         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5971         * fork-child.c (fork_inferior): Call close_most_fds.
5972         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5973         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5974         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5975         Use gdb_fopen_cloexec.
5976         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5977         gdb_open_cloexec.
5978         (linux_async_pipe): Use gdb_pipe_cloexec.
5979         * remote-fileio.c (remote_fileio_func_open): Use
5980         gdb_open_cloexec.
5981         * remote.c (remote_file_put, remote_file_get): Use
5982         gdb_fopen_cloexec.
5983         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5984         close_most_fds.
5985         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5986         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5987         * solib.c (solib_find): Use gdb_open_cloexec.
5988         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5989         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5990         (tfile_open): Use gdb_open_cloexec.
5991         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5992         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5993         * xml-support.c (xml_fetch_content_from_file): Use
5994         gdb_fopen_cloexec.
5995         * main.c (captured_main): Call notice_open_fds.
5996
5997 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5998
5999         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6000         'char *' to 'gdb_byte *'.
6001         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6002         'gdb_byte'.
6003
6004 2013-04-22  Yao Qi  <yao@codesourcery.com>
6005
6006         * infrun.c: Fix typo in comment.
6007
6008 2013-04-22  Andrew Haley  <aph@redhat.com>
6009
6010         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6011         instead of "long".
6012
6013 2013-04-20  Yao Qi  <yao@codesourcery.com>
6014
6015         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6016         'char *' to 'gdb_byte *'.  Cast the return value of
6017         'bt_ctf_get_char_array' to 'gdb_byte *'.
6018
6019 2013-04-19  Pedro Alves  <palves@redhat.com>
6020
6021         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6022         -Wpointer-sign.
6023         * configure: Regenerate.
6024
6025 2013-04-19  Pedro Alves  <palves@redhat.com>
6026
6027         * ser-tcp.c (net_read_prim): Cast second argument to recv to
6028         'void *'.
6029
6030 2013-04-19  Pedro Alves  <palves@redhat.com>
6031
6032         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6033         Change type of 'myaddr' parameter to gdb_byte pointer.
6034         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
6035         to 'long long' pointer instead of to 'unsigned long long'.
6036         (monitor_write_memory_block, monitor_read_memory_single)
6037         (monitor_read_memory): Change type of 'myaddr' parameter to
6038         gdb_byte pointer.
6039
6040 2013-04-19  Pedro Alves  <palves@redhat.com>
6041
6042         * record.c (validate_history_size): Make parameter 'setting'
6043         unsigned.
6044
6045 2013-04-19  Pedro Alves  <palves@redhat.com>
6046
6047         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6048         to 'gdb_byte *'.
6049
6050 2013-04-19  Pedro Alves  <palves@redhat.com>
6051
6052         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6053         local to int.
6054
6055 2013-04-19  Pedro Alves  <palves@redhat.com>
6056
6057         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6058         * ada-tasks.c (read_fat_string_value): Likewise.
6059
6060 2013-04-19  Pedro Alves  <palves@redhat.com>
6061
6062         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6063         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
6064         'offset', and adjust.
6065
6066 2013-04-19  Pedro Alves  <palves@redhat.com>
6067
6068         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6069         (read_index_from_section): Add cast to 'char *'.
6070
6071 2013-04-19  Pedro Alves  <palves@redhat.com>
6072
6073         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6074
6075 2013-04-19  Pedro Alves  <palves@redhat.com>
6076
6077         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6078
6079 2013-04-19  Pedro Alves  <palves@redhat.com>
6080
6081         * record-full.c (record_full_get_bookmark): Change local 'ret'
6082         type to char * and add cast to gdb_byte *.
6083         (record_full_goto_bookmark): Handle 'bookmark' argument as a
6084         string.
6085         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6086
6087 2013-04-19  Pedro Alves  <palves@redhat.com>
6088
6089         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6090         * python/py-prettyprint.c (print_string_repr): Change type of
6091         'output' local to char *.  Add cast to gdb_byte * in
6092         LA_PRINT_STRING call.
6093         (print_children): Change type of 'output' local to char *.
6094         * python/py-value.c (valpy_string): Add cast to const char * in
6095         PyUnicode_Decode call.
6096
6097 2013-04-19  Pedro Alves  <palves@redhat.com>
6098
6099         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6100         and change its type to 'const char *'.  Adjust.
6101         (mips_send_packet): Add cast to 'char *', and remove cast to
6102         'unsigned char *'.
6103         (mips_receive_packet): Remove cast to 'unsigned char *'.
6104         (mips_load_srec): Use bfd_byte.
6105         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6106         (pmon_checkset): Make 'value' parameter unsigned.
6107
6108 2013-04-19  Pedro Alves  <palves@redhat.com>
6109
6110         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6111
6112 2013-04-19  Pedro Alves  <palves@redhat.com>
6113
6114         * remote.c (remote_write_bytes_aux, compare_sections_command)
6115         (remote_read_qxfer)
6116         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6117         (remote_hostio_readlink, remote_bfd_iovec_pread)
6118         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6119         binary buffer, and char when buffer is used as string.
6120         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6121         (trace_save, tfile_open, traceframe_walk_blocks)
6122         (tfile_fetch_registers): Likewise.
6123
6124 2013-04-19  Pedro Alves  <palves@redhat.com>
6125
6126         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6127         buffer and size_t size.  Adjust.
6128         * ser-base.h (ser_base_write): Adjust.
6129         * ser-go32.c (cnts): Change type to size_t.
6130         (dos_write): Change prototype -- take 'void *'
6131         buffer and size_t size.  Adjust.
6132         (dos_info): Print elements of 'cnts' as unsigned long.
6133         * serial.c (serial_write): Likewise.
6134         * serial.h (serial_write): Adjust.
6135         (struct serial_ops) <write>: Change prototype -- take 'void *'
6136         buffer and size_t size.  Adjust.
6137
6138 2013-04-19  Pedro Alves  <palves@redhat.com>
6139
6140         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6141         gdb_byte *.
6142         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6143
6144 2013-04-19  Pedro Alves  <palves@redhat.com>
6145
6146         * alpha-tdep.c (alpha_extract_return_value): Use
6147         regcache_cooked_read_unsigned to read 'v0'.
6148
6149 2013-04-19  Pedro Alves  <palves@redhat.com>
6150
6151         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6152         parameters 'at', 'as' and 'offset' to uint32_t.
6153
6154 2013-04-19  Pedro Alves  <palves@redhat.com>
6155
6156         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6157         'is64' to signed 'int'.
6158
6159 2013-04-19  Pedro Alves  <palves@redhat.com>
6160
6161         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6162         parameter to int *.
6163
6164 2013-04-19  Pedro Alves  <palves@redhat.com>
6165
6166         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6167         'insnbuf' buffer type to unsigned int[].
6168
6169 2013-04-19  Pedro Alves  <palves@redhat.com>
6170
6171         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6172
6173 2013-04-19  Pedro Alves  <palves@redhat.com>
6174
6175         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6176         unsigned long *.
6177
6178 2013-04-19  Pedro Alves  <palves@redhat.com>
6179
6180         * alpha-tdep.c (heuristic_fence_post): Change type to int.
6181         (alpha_heuristic_proc_start): Adjust to check -1 instead of
6182         UINT_MAX.
6183         * mips-tdep.c (heuristic_fence_post): Change type to int.
6184         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6185
6186 2013-04-19  Pedro Alves  <palves@redhat.com>
6187
6188         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6189         (struct gdbarch_tdep) <cris_version>: Make unsigned.
6190         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6191
6192 2013-04-19  Pedro Alves  <palves@redhat.com>
6193
6194         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
6195         it to get a string view of the byte buffer.
6196         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6197         type to gdb_byte *.  Adjust.
6198         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6199         Change local to char *.
6200         * solib-darwin.c (find_program_interpreter): Change return type to
6201         char *.  Adjust.
6202         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6203         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6204         * solib-frv.c (enable_break2): Change local 'buf' to char *.
6205         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6206         * solib-svr4.c (find_program_interpreter): Change return type to
6207         char *.  Adjust.
6208         (enable_break): Change local 'interp_name' to char *.
6209         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6210         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6211         (spu_pseudo_register_write_spu): Use char for string buffer.
6212         Adjust.
6213         (info_spu_event_command, info_spu_signal_command): Add casts to
6214         'char *'.
6215
6216 2013-04-19  Pedro Alves  <palves@redhat.com>
6217
6218         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6219         gdb_byte[].
6220         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6221         * ada-lang.c (ada_value_assign): Use gdb_byte.
6222         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6223         (alphanbsd_sigtramp_offset): Use gdb_byte.
6224         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6225         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6226         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6227         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6228         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6229         * arm-tdep.c (arm_stub_unwind_sniffer)
6230         (arm_displaced_init_closure): Use gdb_byte.
6231         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6232         (arm_default_thumb_le_breakpoint)
6233         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6234         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6235         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6236         * arm-wince-tdep.c (arm_wince_le_breakpoint)
6237         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6238         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6239         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6240         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6241         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6242         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6243         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6244         (cris_store_return_value, cris_extract_return_value): Use
6245         gdb_byte.
6246         (constraint): Change type of parameter to char * from signed
6247         char*.  Use gdb_byte.
6248         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6249         of local buffer to gdb_byte *.
6250         * dwarf2read.c (read_index_from_section): Use gdb_byte.
6251         (create_dwp_hash_table): Change type of locals to gdb_byte *.
6252         (add_address_entry): Change type of local buffer to gdb_byte[].
6253         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6254         (frv_push_dummy_call): Use gdb_byte.
6255         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6256         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6257         (hppa_hpux_supply_save_state): Use gdb_byte.
6258         * hppa-tdep.c (hppa32_push_dummy_call)
6259         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6260         * ia64-tdep.c (extract_bit_field, replace_bit_field)
6261         (slotN_contents, replace_slotN_contents): Change type of parameter
6262         to gdb_byte *.
6263         (fetch_instruction, ia64_pseudo_register_write)
6264         (ia64_register_to_value, ia64_value_to_register)
6265         (ia64_extract_return_value, ia64_store_return_value)
6266         (ia64_push_dummy_call): Use gdb_byte.
6267         * m32c-tdep.c (m32c_return_value): Remove cast.
6268         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6269         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6270         gdb_byte.
6271         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6272         * mn10300-tdep.c (mn10300_store_return_value)
6273         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6274         gdb_byte.
6275         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6276         (moxie_process_record): Remove casts.
6277         * ppc-ravenscar-thread.c (supply_register_at_address)
6278         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6279         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6280         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6281         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6282         * remote.c (compare_sections_command): Use gdb_byte.
6283         * score-tdep.c (score7_free_memblock): Change type of parameter to
6284         gdb_byte *.
6285         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6286         gdb_byte *.  Use gdb_byte.
6287         (sh_push_dummy_call_fpu): Use gdb_byte.
6288         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6289         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6290         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6291         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6292         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6293         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6294         (sh64_store_return_value, sh64_register_convert_to_virtual):
6295         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6296         (sh64_pseudo_register_write): Use gdb_byte.
6297         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6298         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
6299         buffer.
6300         (irix_current_sos): Use gdb_byte.
6301         * solib-som.c (som_current_sos): Use gdb_byte.
6302         * sparc-ravenscar-thread.c (supply_register_at_address)
6303         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6304         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6305         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6306         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6307         'gdb_byte *'.
6308         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6309         'gdb_byte *'.
6310         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6311         * xstormy16-tdep.c (xstormy16_extract_return_value)
6312         (xstormy16_store_return_value): Change parameter type to
6313         'gdb_byte *'.  Adjust.
6314         (xstormy16_push_dummy_call): Use gdb_byte.
6315         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6316         (call0_analyze_prologue, execute_code): Use gdb_byte.
6317
6318 2013-04-19  Vladimir Kargov <kargov@gmail.com>
6319             Pedro Alves  <palves@redhat.com>
6320
6321         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6322         value contents.
6323
6324 2013-04-17  Doug Evans  <dje@google.com>
6325
6326         * dwarf2read.c (struct signatured_type): New member type.
6327         (struct attribute): Replace member signatured_type with signature.
6328         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6329         (read_call_site_scope): Call follow_die_ref instead of
6330         follow_die_ref_or_sig.
6331         (read_structure_type): Rewrite handling of signatured types.
6332         (read_enumeration_type): Ditto.
6333         (read_attribute_value): Update.
6334         (build_error_marker_type): New function.
6335         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
6336         Don't call error for bad types, just build an error marker type.
6337         (dump_die_shallow): Update.
6338         (follow_die_sig_1): Renamed from follow_die_sig.
6339         Don't call error for bad types, instead return NULL.
6340         (follow_die_sig): New function.
6341         (get_signatured_type, get_DW_AT_signature_type): New functions.
6342
6343 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
6344
6345         * aarch64-tdep.c (aarch64_write_pc): Removed.
6346         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6347         function.
6348
6349 2013-04-17  Yao Qi  <yao@codesourcery.com>
6350
6351         * top.c (print_gdb_configuration): Print configure-time
6352         parameter on using libbabeltrace or not.
6353
6354 2013-04-16  Pedro Alves  <palves@redhat.com>
6355
6356         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6357
6358 2013-04-16  Pedro Alves  <palves@redhat.com>
6359
6360         * common/glibc_thread_db.h: Update from upstream glibc
6361         (git 568035b7874a099087b77f7bba3e36a1173787b0).
6362
6363 2013-04-16  Pedro Alves  <palves@redhat.com>
6364
6365         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6366         * common/glibc_thread_db.h: ... this new file ...
6367         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6368
6369 2013-04-16  Will Newton  <will.newton@gmail.com>
6370             Pedro Alves  <palves@redhat.com>
6371
6372         PR build/11881
6373
6374         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6375         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6376         HAVE_THREAD_DB_H.
6377
6378 2013-04-16  Pedro Alves  <palves@redhat.com>
6379             Eli Zaretskii  <eliz@gnu.org>
6380
6381         * NEWS: Mention "set foo unlimited".
6382
6383 2013-04-15  Doug Evans  <dje@google.com>
6384
6385         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6386         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6387         (create_dwo_cu_reader): Renamed from
6388         create_dwo_debug_info_hash_table_reader.
6389         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6390         Remove support for multiple CUs in a DWO file.
6391         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6392
6393         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6394         instead of phex.
6395         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6396         (create_dwo_in_dwp): Ditto.
6397
6398 2013-04-15  Tom Tromey  <tromey@redhat.com>
6399
6400         * NEWS: Move recent entries into "since 7.6" section.
6401
6402 2013-04-15  Tom Tromey  <tromey@redhat.com>
6403
6404         PR c++/13588:
6405         * NEWS: Update.
6406         * break-catch-throw.c (struct exception_catchpoint)
6407         <exception_rx, pattern>: New fields.
6408         (fetch_probe_arguments, dtor_exception_catchpoint)
6409         (check_status_exception_catchpoint)
6410         (print_one_detail_exception_catchpoint): New functions.
6411         (handle_gnu_v3_exceptions): Add "except_rx" argument.
6412         Compile regular expression if needed.
6413         (extract_exception_regexp): New function.
6414         (catch_exception_command_1): Use extract_exception_regexp.
6415         (compute_exception): Use fetch_probe_arguments.
6416         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6417         and check_status fields.
6418         * cp-abi.c (cplus_typename_from_type_info): New function.
6419         * cp-abi.h (cplus_typename_from_type_info): Declare.
6420         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6421         * gdb_regex.h (compile_rx_or_error): Declare.
6422         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6423         comment.
6424         (init_gnuv3_ops): Set get_type_from_type_info field.
6425         * probe.c (compile_rx_or_error): Move...
6426         * utils.c (compile_rx_or_error): ... here.
6427
6428 2013-04-15  Tom Tromey  <tromey@redhat.com>
6429
6430         PR c++/15176:
6431         * NEWS: Update.
6432         * break-catch-throw.c (compute_exception): New function.
6433         (exception_funcs): New global.
6434         (_initialize_break_catch_throw): Create $_exception.
6435         * cp-abi.c (cplus_type_from_type_info): New function.
6436         * cp-abi.h (cplus_type_from_type_info): Declare.
6437         (struct cp_abi_ops) <get_type_from_type_info>: New field.
6438         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6439         (gnuv3_get_type_from_type_info): New functions.
6440         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6441
6442 2013-04-15  Tom Tromey  <tromey@redhat.com>
6443
6444         * break-catch-throw.c (struct exception_names): New.
6445         (exception_functions): Change type.
6446         (re_set_exception_catchpoint): Look for SDT probes.
6447
6448 2013-04-15  Tom Tromey  <tromey@redhat.com>
6449
6450         PR c++/10119:
6451         * break-catch-throw.c (exception_functions): New global.
6452         (gnu_v3_exception_catchpoint_ops): Move earlier.
6453         (struct exception_catchpoint): New.
6454         (classify_exception_breakpoint): Rewrite.
6455         (re_set_exception_catchpoint): New function.
6456         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
6457         Allocate a struct exception_catchpoint.
6458         (catch_exception_command_1): Update.
6459         (initialize_throw_catchpoint_ops): Set 're_set' method.
6460
6461 2013-04-15  Tom Tromey  <tromey@redhat.com>
6462
6463         * Makefile.in (SFILES): Add break-catch-throw.c
6464         (COMMON_OBS): Add break-catch-throw.o.
6465         * break-catch-throw.c: New file.
6466         * breakpoint.c: Move exception-catching code to new file.
6467         (ep_parse_optional_if_clause): No longer static.
6468         * breakpoint.h (ep_parse_optional_if_clause): Declare.
6469
6470 2013-04-15  Tom Tromey  <tromey@redhat.com>
6471
6472         PR c++/9065:
6473         * NEWS: Update.
6474         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6475         * c-exp.y (TYPEID): New token.
6476         (exp): Add new TYPEID productions.
6477         (ident_tokens): Add "typeid".
6478         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6479         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6480         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6481         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6482         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6483         case.
6484         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6485         (build_std_type_info_type, gnuv3_get_typeid_type)
6486         (gnuv3_get_typeid): New functions.
6487         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
6488         new fields on ABI object.
6489         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6490         * std-operator.def (OP_TYPEID): New.
6491
6492 2013-04-15  Tom Tromey  <tromey@redhat.com>
6493
6494         * elfread.c (elf_symtab_read): Install versioned symbol under
6495         unversioned name as well.
6496
6497 2013-04-15  Tom Tromey  <tromey@redhat.com>
6498
6499         PR c++/11990:
6500         * c-lang.c (cplus_language_defn): Use gdb_demangle.
6501         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6502         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6503         (gdb_demangle): New function.
6504         * cp-support.h (gdb_demangle): Declare.
6505         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6506         (dwarf2_name): Use gdb_demangle.
6507         * gdbtypes.c (check_stub_method): Use gdb_demangle.
6508         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6509         suffixes from name.
6510         (gnuv3_print_method_ptr): Use gdb_demangle.
6511         * jv-lang.c (java_demangle): Use gdb_demangle.
6512         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6513         * language.c (unk_lang_demangle): Use gdb_demangle.
6514         * symtab.c (symbol_find_demangled_name)
6515         (demangle_for_lookup): Use gdb_demangle.
6516
6517 2013-04-15  Tom Tromey  <tromey@redhat.com>
6518
6519         PR c++/12824:
6520         * NEWS: Update.
6521         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6522         New constant.
6523         (classify_exception_breakpoint): New function.
6524         (print_it_exception_catchpoint, print_one_exception_catchpoint)
6525         (print_mention_exception_catchpoint)
6526         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6527         (catch_exception_command_1): Handle "rethrow" catchpoint.
6528         (catch_rethrow_command): New function.
6529         (_initialize_breakpoint): Add "catch rethrow" command.
6530
6531 2013-04-15  Pierre Muller  <muller@sourceware.org>
6532
6533         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6534         set_gdbarch_write_pc as deprecated anymore.
6535
6536 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
6537
6538         * spu-tdep.c (spu_write_pc): Add empty line after local variable
6539         declarations.
6540
6541 2013-04-13  Yao Qi  <yao@codesourcery.com>
6542
6543         * ctf.c (_initialize_ctf): Include "completer.h".
6544         Call add_target_with_completer instead of add_target.
6545
6546 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6547
6548         Fix GDB regression related to PR binutils/14813.
6549         * jit.c (mem_bfd_iovec_close): Return 0 for success.
6550         * minidebug.c (lzma_close): Add return value comment.
6551         * remote.c (remote_bfd_iovec_close): Return 0 for success.
6552         * solib-spu.c (spu_bfd_iovec_close): Likewise.
6553         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6554
6555 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6556
6557         * config.in: Regenerate.
6558
6559 2013-04-12  Tom Tromey  <tromey@redhat.com>
6560
6561         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6562         const.
6563         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6564         (struct die_reader_specs) <buffer>: Likewise.
6565         (die_reader_func_ftype): Make 'info_ptr' const.
6566         (struct line_header) <include_dirs, statement_program_start,
6567         statement_program_end>: Now const.
6568         (struct file_entry) <name>: Likewise.
6569         (struct partial_die_info) <sibling>: Likewise.
6570         (struct dwarf_block) <data>: Likewise.
6571         (dwarf2_read_section): Remove cast.
6572         (dwarf2_get_section_info): Make 'bufp' const.
6573         (read_index_from_section): Constify.
6574         (dw2_get_file_names_reader): Make 'info_ptr' const.
6575         (dw2_get_primary_filename_reader): Likewise.
6576         (read_comp_unit_head): Make 'info_ptr' and return type const.
6577         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6578         Likewise.
6579         (read_abbrev_offset): Constify.
6580         (dwarf2_create_include_psymtab): Make 'name' const.
6581         (create_debug_types_hash_table): Update.
6582         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6583         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6584         Constify.
6585         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6586         (load_partial_comp_unit_reader): Make 'info_ptr' const.
6587         (read_comp_units_from_section): Constify.
6588         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6589         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6590         const.
6591         (dwarf2_compute_name, setup_type_unit_groups): Constify.
6592         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6593         (create_dwp_hash_table, dwarf2_ranges_read)
6594         (dwarf2_record_block_ranges): Constify.
6595         (read_die_and_children, read_die_and_siblings_1)
6596         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6597         const.
6598         (read_full_die_1, read_full_die): Make 'info_ptr' const.
6599         (abbrev_table_read_table): Constify.
6600         (load_partial_dies): Make 'info_ptr' const.
6601         (read_partial_die, read_attribute_value, read_attribute): Make
6602         'info_ptr' and return type const.
6603         (read_address, read_initial_length)
6604         (read_checked_initial_length_and_offset, read_offset)
6605         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6606         const.
6607         (read_direct_string): Make 'buf' and return type const.
6608         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6609         (read_indirect_string): Make return type const.
6610         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6611         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6612         'info_ptr' const.
6613         (read_str_index): Make return type const.
6614         (add_include_dir): Make 'include_dir' const.
6615         (add_file_name): Make 'name' const.
6616         (dwarf_decode_line_header): Constify.
6617         (psymtab_include_file_name): Make return type const.
6618         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6619         (dwarf2_start_subfile): Make 'filename' const.
6620         (dwarf2_const_value_attr): Make 'bytes' const.
6621         (read_signatured_type_reader): Make 'info_ptr' const.
6622         (decode_locdesc): Constify.
6623         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6624         const.
6625         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6626         'mac_end', and return type const.
6627         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6628         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6629         type const.
6630         (per_cu_header_read_in): Constify.
6631         * symfile.h (dwarf2_get_section_info): Update.
6632
6633 2013-04-12  Tom Tromey  <tromey@redhat.com>
6634
6635         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6636
6637 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
6638
6639         * NEWS: Mention "show configuration", --configuration.
6640         * top.c (print_gdb_configuration): New function, displays the
6641         details about GDB configure-time parameters.
6642         (print_gdb_version): Mention "show configuration".
6643         * cli/cli-cmds.c (show_configuration): New function.
6644         (_initialize_cli_cmds): Add the "show configuration" command.
6645         * main.c (captured_main) <print_configuration>: New static var.
6646         <long_options>: Use it.
6647         If --configuration was given, call print_gdb_configuration.
6648
6649 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6650             Pedro Alves  <palves@redhat.com>
6651
6652         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6653         (generated_files): Add gcore.
6654         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6655         HAVE_NATIVE_GCORE_HOST.
6656         (gcore): New.
6657         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6658         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6659         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6660         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6661         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6662         Add HAVE_NATIVE_GCORE_HOST.
6663         * configure: Regenerate.
6664         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6665         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
6666         AC_CONFIG_FILES for gcore.
6667         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
6668         gdb_have_gcore.
6669         * gdb_gcore.sh: Rename to ...
6670         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
6671         and GCORE_TRANSFORM_NAME substitutions.
6672
6673         Fix parsing tabs in ${gdb_target_obs}.
6674         * configure.tgt (gdb_have_gcore): Replace case with for and if.
6675
6676 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6677
6678         * remote.c (unpush_and_perror): Add output message final dot.
6679
6680 2013-04-11  Yao Qi  <yao@codesourcery.com>
6681
6682         * tracepoint.c (tfile_interp_line): Fit parameters line and
6683         utpp in one line.
6684
6685 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
6686
6687         * solib.c (solib_map_sections): Remove code overwriting
6688         SO->SO_NAME with the bfd's filename.
6689
6690 2013-04-10  Pedro Alves  <palves@redhat.com>
6691
6692         * cli/cli-decode.c (integer_unlimited_completer): New function.
6693         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6694         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6695         completer.
6696         * cli/cli-setshow.c: Include "cli/cli-utils.h".
6697         (is_unlimited_literal): New function.
6698         (do_set_command): Handle literal "unlimited" arguments.
6699         * frame.c (_initialize_frame) <set backtrace limit>: Document
6700         "unlimited".
6701         * printcmd.c (_initialize_printcmd) <set print
6702         max-symbolic-offset>: Add help text.
6703         * record-full.c (_initialize_record_full) <set record full
6704         insn-number-max>: Likewise.
6705         * record.c (_initialize_record) <set record
6706         instruction-history-size, set record function-call-history-size>:
6707         Add help text.
6708         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6709         help text.
6710         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6711         Likewise.
6712         * source.c (_initialize_source) <set listsize>: Add help text.
6713         * utils.c (initialize_utils) <set height, set width>: Likewise.
6714         <set pagination>: Mention "set height unlimited".
6715         * valprint.c (_initialize_valprint) <set print elements, set print
6716         repeats>: Document "unlimited".
6717
6718 2013-04-10  Pedro Alves  <palves@redhat.com>
6719
6720         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6721         instead of disconnect_tracing.
6722         * infcmd.c (detach_command, disconnect_command): Call
6723         query_if_trace_running.  Adjust.
6724         * top.c: Include "tracepoint.h".
6725         (quit_target): Delete.  Contents moved ...
6726         (quit_force): ... here.  Wrap each stage of teardown in
6727         TRY_CATCH.  Call disconnect_tracing before detaching.
6728
6729 2013-04-10  Hui Zhu  <hui@codesourcery.com>
6730             Yao Qi  <yao@codesourcery.com>
6731
6732         * configure.ac: Check libbabeltrace is installed.
6733         * config.in: Regenerate.
6734         * configure: Regenerate.
6735         * Makefile.in (LIBBABELTRACE): New.
6736         (CLIBS): Add LIBBABELTRACE.
6737         * ctf.c: Include "exec.h".
6738         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6739         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6740         (ctf_save_metadata_header): Define new type aliases in
6741         metadata.
6742         (ctf_write_header): Define event type "tsv_def" and "tp_def"
6743         in metadata.  Start a new faked packet for trace status.
6744         (ctf_write_status): Write trace status to CTF.
6745         (ctf_write_uploaded_tsv): Write TSV to CTF.
6746         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6747         (ctf_write_definition_end): End the faked packet.
6748
6749         (ctx, ctf_iter, trace_dirname): New.
6750         (start_pos): New variable.
6751         (ctf_destroy, ctf_open_dir, ctf_open): New.
6752         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6753         macros.
6754         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6755         (ctf_fetch_registers, ctf_xfer_partial): New.
6756         (ctf_get_trace_state_variable_value): New.
6757         (ctf_get_tpnum_from_frame_event): New.
6758         (ctf_get_traceframe_address): New.
6759         (ctf_trace_find, ctf_has_stack): New.
6760         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6761         (ctf_get_trace_status, ctf_read_status): New.
6762         (_initialize_ctf): New.
6763         * tracepoint.c (get_tracepoint_number): New
6764         (get_uploaded_tsv): Remove 'static'.
6765         (struct traceframe_info, trace_regblock_size): Move it to ...
6766         * tracepoint.h: ... here.
6767         (get_tracepoint_number): Declare it.
6768         (get_uploaded_tsv): Declare it.
6769
6770         * NEWS: Mention new configure option.
6771
6772 2013-04-10  Pedro Alves  <palves@redhat.com>
6773             Hui Zhu  <hui@codesourcery.com>
6774
6775         * breakpoint.c (dprintf_re_set): New.
6776         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6777         to dprintf_re_set.
6778
6779 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
6780
6781         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6782         Remove solib-svr4.o from the list.
6783
6784 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
6785
6786         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6787         Use gdb_assert_not_reached instead of invalid boolean expression.
6788
6789 2013-04-09  Pedro Alves  <palves@redhat.com>
6790
6791         * remote.c (unpush_and_perror): New function.
6792         (readchar, remote_serial_write): Use it.
6793
6794 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
6795
6796         * NEWS: Mention new btrace RSP packets.
6797
6798 2013-04-08  Tom Tromey  <tromey@redhat.com>
6799
6800         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6801         long.
6802
6803 2013-04-08  Tom Tromey  <tromey@redhat.com>
6804
6805         * maint.c (print_bfd_section_info): Print the section index.
6806         * symmisc.c (dump_msymbols): Print the section index.
6807
6808 2013-04-08  Tom Tromey  <tromey@redhat.com>
6809
6810         PR symtab/8424:
6811         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6812         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6813         * breakpoint.c (resolve_sal_pc): Update.
6814         * elfread.c (elf_gnu_ifunc_record_cache): Update.
6815         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6816         (minsym_lookup_iterator_cb): Use it.
6817         (default_read_var_value): Update.
6818         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6819         Update.
6820         * infcmd.c (jump_command): Update.
6821         * linespec.c (minsym_found): Update.
6822         * maint.c (maintenance_translate_address): Update.
6823         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6824         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6825         * parse.c (write_exp_msymbol): Update.
6826         * printcmd.c (address_info): Update.
6827         * psymtab.c (find_pc_sect_psymbol): Update.
6828         (fixup_psymbol_section): Check SYMBOL_SECTION, not
6829         SYMBOL_OBJ_SECTION.
6830         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6831         Don't initialize SYMBOL_OBJ_SECTION.
6832         * spu-tdep.c (spu_catch_start): Update.
6833         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6834         * symmisc.c (dump_msymbols, print_symbol): Update.
6835         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
6836         how fallback section is computed.
6837         (fixup_symbol_section): Update.
6838         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6839         Update.
6840         (allocate_symbol, initialize_symbol, allocate_template_symbol):
6841         Initialize SYMBOL_SECTION.
6842         * symtab.h (struct general_symbol_info) <section>: Update comment.
6843         <obj_section>: Remove.
6844         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
6845         (SYMBOL_OBJFILE): New macro.
6846
6847 2013-04-08  Tom Tromey  <tromey@redhat.com>
6848
6849         * coffread.c (record_minimal_symbol): Update.
6850         * dbxread.c (record_minimal_symbol): Update.
6851         * elfread.c (record_minimal_symbol): Update.
6852         * machoread.c (macho_symtab_add_minsym): Update.
6853         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6854         Update.
6855         * minsyms.c (prim_record_minimal_symbol): Update.
6856         (prim_record_minimal_symbol_full): Remove 'bfd_section'
6857         argument.
6858         (prim_record_minimal_symbol_and_info): Likewise.
6859         * minsyms.h (prim_record_minimal_symbol_full)
6860         (prim_record_minimal_symbol_and_info): Update.
6861         * symtab.c (allocate_symbol, initialize_symbol)
6862         (allocate_template_symbol): Initialize SYMBOL_SECTION.
6863         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6864         Update.
6865
6866 2013-04-08  Tom Tromey  <tromey@redhat.com>
6867
6868         PR symtab/8423:
6869         * solib-som.c (som_solib_section_offsets): Use BFD section
6870         indices.  Set offsets for all sections.
6871         * somread.c (som_symtab_read): Compute BFD section for
6872         symbol.  Use prim_record_minimal_symbol_and_info.
6873         (som_symfile_read): Fix comment.
6874         (struct find_section_offset_arg): New.
6875         (find_section_offset, set_section_index): New functions.
6876         (som_symfile_offsets): Use set_section_index to compute
6877         section indices.
6878
6879 2013-04-08  Tom Tromey  <tromey@redhat.com>
6880
6881         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6882         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6883         gdb_bfd_section_index.
6884         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6885         New functions.
6886         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6887         Declare.
6888         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6889         Update.
6890         * objfiles.c (add_to_objfile_sections_full): New function.
6891         (add_to_objfile_sections): Use it.
6892         (build_section_table): Rewrite.
6893         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
6894         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6895         (struct objfile) <sections>: Update comment.
6896         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6897         is NULL.
6898         (ALL_OBJSECTIONS): Use it.
6899         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6900         * solib-frv.c (frv_relocate_main_executable): Update.
6901         * solib-target.c (solib_target_relocate_section_addresses):
6902         Use gdb_bfd_section_index.
6903         * symfile.c (build_section_addr_info_from_section_table):
6904         Use gdb_bfd_section_index.
6905         (build_section_addr_info_from_bfd, place_section): Likewise.
6906         * symtab.c (fixup_section): Update.
6907         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6908
6909 2013-04-08  Tom Tromey  <tromey@redhat.com>
6910
6911         * minsyms.h (struct bound_minimal_symbol): New.
6912         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6913         Remove objfile argument.
6914         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6915         Return bound_minimal_symbol.
6916         * minsyms.c (lookup_minimal_symbol_by_pc_1)
6917         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6918         Return bound_minimal_symbol.
6919         (in_gnu_ifunc_stub): Update.
6920         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6921         Remove 'objfile_p' argument.
6922         (lookup_solib_trampoline_symbol_by_pc): Update.
6923         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6924         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6925         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6926         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6927         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6928         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6929         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6930         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6931         stack.c, symtab.c, tui/tui-disasm.c: Update.
6932
6933 2013-04-08  Tom Tromey  <tromey@redhat.com>
6934
6935         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6936         Use symbol's obstack, not an objfile.
6937         * coffread.c (process_coff_symbol): Update.
6938         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6939         * jv-lang.c (add_class_symbol): Update.
6940         * mdebugread.c (new_symbol): Update.
6941         * minsyms.c (prim_record_minimal_symbol_full)
6942         (terminate_minimal_symbol_table): Update.
6943         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
6944         * stabsread.c (define_symbol, read_enum_type): Update.
6945         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6946         Handle Ada specially.
6947         (symbol_set_language): Add 'obstack' argument.
6948         (symbol_set_names): Update.
6949         (symbol_natural_name, symbol_demangled_name): Always use
6950         ada_decode_symbol.
6951         * symtab.h (struct general_symbol_info)
6952         <language_specific::obstack>: New field.
6953         <ada_mangled>: New field.
6954         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6955         (symbol_set_language): Update.
6956
6957 2013-04-08  Tom Tromey  <tromey@redhat.com>
6958
6959         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6960         Take an obstack, not an objfile.
6961         (symbol_set_names): Update.
6962         * symtab.h (symbol_set_demangled_name): Update.
6963
6964 2013-04-08  Tom Tromey  <tromey@redhat.com>
6965
6966         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6967         allocate_symbol.
6968         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6969         (read_func_scope): Call allocate_template_symbol.
6970         (new_symbol_full): Call allocate_symbol.
6971         * jit.c (finalize_symtab): Call allocate_symbol.
6972         * jv-lang.c (add_class_symbol): Call allocate_symbol.
6973         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6974         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6975         (common_block_end): Call allocate_symbol.
6976         * symtab.c (allocate_symbol, initialize_symbol)
6977         (allocate_template_symbol): New functions.
6978         * symtab.c (allocate_symbol, initialize_symbol)
6979         (allocate_template_symbol): Declare.
6980         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6981
6982 2013-04-08  Pedro Alves  <palves@redhat.com>
6983             Keith Seitz  <keiths@redhat.com>
6984
6985         * breakpoint.c (create_breakpoint): Rename
6986         "parse_condition_and_thread" parameter to "parse_arg".  Update
6987         describing comment.  If !PARSE_ARG, then error out if ARG is not
6988         the empty string after extracting the location.
6989         * breakpoint.h (create_breakpoint): Rename
6990         "parse_condition_and_thread" parameter to "parse_arg".
6991
6992 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
6993
6994         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6995
6996 2013-04-07  Yao Qi  <yao@codesourcery.com>
6997
6998         * remote.c (remote_trace_find): Change type of parameters 'addr1'
6999         and 'addr2' to CORE_ADDR.
7000         * target.c (update_current_target): Update.
7001         * target.h (struct target_ops) <to_trace_find>: Change parameter
7002         type to CORE_ADDR.
7003         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7004         'addr2' to CORE_ADDR.
7005         (tfile_trace_find): Likewise.
7006         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7007         Change local variable 'addr' to type CORE_ADDR.
7008         * tracepoint.h (tfind_1): Update declaration.
7009
7010 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
7011
7012         * windows-nat.c (windows_get_absolute_argv0): Move from here...
7013         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7014         Include main.h.
7015
7016         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7017         here...
7018         * main.h (windows_get_absolute_argv0): ...to here.
7019
7020 2013-04-05  Doug Evans  <dje@google.com>
7021
7022         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7023         (read_cutu_die_from_dwo): Add comments.
7024         (read_structure_type): Update comment.
7025         (read_enumeration_type, read_namespace_type): Update comment.
7026         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7027
7028 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7029
7030         Convert man pages to texinfo, new gdbinit.5 texinfo page.
7031         * Makefile.in (gdb.z): Remove.
7032         (install-only): Remove $(man1dir) and gdb.1 installation.
7033         * gdb.1: Remove.
7034
7035 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7036
7037         Fix compatibility with Linux kernel 3.8.3.
7038         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7039         to more inner block.  Remove parsing of NUMBER from outer block.
7040         Parse NUMBER only if KEYWORD has been identified.
7041
7042 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7043
7044         Fix variable name shadowing.
7045         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7046         filename to mapsfilename and update its uses.
7047
7048 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
7049
7050         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7051         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7052         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7053         details of the problem.
7054
7055 2013-04-04  Pedro Alves  <palves@redhat.com>
7056             Hui Zhu  <hui@codesourcery.com>
7057
7058         * breakpoint.c (validate_commands_for_breakpoint): If validating a
7059         tracepoint, reset its STEP_COUNT and call validate_actionline.
7060
7061 2013-04-03  Doug Evans  <dje@google.com>
7062
7063         * dwarf2read.c (read_die_and_siblings_1): Renamed from
7064         read_die_and_siblings.
7065         (read_die_and_siblings): New function.
7066         (read_cutu_die_from_dwo): Dump die if requested.
7067         (read_die_and_children): Call read_full_die_1 and
7068         read_die_and_siblings_1.
7069         (read_full_die): Dump die if requested.
7070
7071         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7072
7073         * dwarf2read.c (struct dwo_file): New member comp_dir.
7074         Rename member name to dwo_name.  All uses updated.
7075         (hash_dwo_file): Include comp_dir in computation.
7076         (eq_dwo_file): Ditto.
7077         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
7078         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7079
7080         * psymtab.c (read_psymtabs_with_fullname): Don't call
7081         psymtab_to_fullname if the basenames are different.
7082
7083 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7084
7085         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7086         New entry about "fullname" presence.
7087
7088 2013-04-03  Pedro Alves  <palves@redhat.com>
7089
7090         * NEWS: Mention x86_64/Cygwin as new native configuration.
7091
7092 2013-04-02  Doug Evans  <dje@google.com>
7093
7094         * dwarf2read.c (read_structure_type): Fix typo in comment.
7095
7096 2013-04-02  Pedro Alves  <palves@redhat.com>
7097
7098         * NEWS: Mention "set/show debug aarch64", "set/show debug
7099         coff-pe-read" and "set/show debug mach-o".
7100
7101 2013-04-02  Pedro Alves  <palves@redhat.com>
7102
7103         * NEWS: Mention "set/show remote trace-buffer-size-packet".
7104
7105 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
7106
7107         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7108         gdb_string.h is now in common/.
7109
7110 2013-04-02  Pedro Alves  <palves@redhat.com>
7111
7112         * NEWS: Move "set debug notification" and "set trace-buffer-size"
7113         under "New options".
7114
7115 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7116
7117         Revert this patch:
7118         PR gdb/15275
7119         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7120
7121 2013-04-02  Pedro Alves  <palves@redhat.com>
7122
7123         PR gdb/15275
7124
7125         * remote.c (send_interrupt_sequence): Use remote_serial_write.
7126         (remote_serial_write): New function.
7127         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7128
7129 2013-04-01  Jiong Wang  <jiwang@tilera.com>
7130
7131         * NEWS: Mention TILE-Gx in "New native configurations" and
7132         "New targets" sections.
7133
7134 2013-04-01  Doug Evans  <dje@google.com>
7135
7136         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7137         (process_enumeration_scope): Simplify.
7138
7139         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7140         type_unit_group ...
7141         (struct signatured_type): ... to here.
7142         (sig_type_ptr): New typedef.
7143         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
7144         out of union 't'.  All uses updated.
7145         (dw2_get_file_names_reader): Assert not called for a type unit.
7146         (dw2_get_file_names): Assert not called for a type unit or type
7147         unit group.
7148         (build_type_psymtabs_reader): Assert called for a type unit.
7149         (build_type_psymtab_dependencies): Assert called for a type unit group.
7150
7151         * dwarf2read.c (free_dwo_file): Add comment.
7152         (dwarf2_per_objfile_free): Unref dwp bfd.
7153
7154 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7155
7156         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7157         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7158         (read_pe_exported_syms): Remove unused 'exportix'.
7159         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7160         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7161         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7162
7163 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7164
7165         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7166         (print_it_watchpoint): Remove unused 'bl'.
7167         (say_where): Remove unused 'uiout'.
7168         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7169         (bkpt_breakpoint_hit): Remove unused 'b'.
7170         (internal_bkpt_print_it): Remove unused 'uiout'.
7171         * buildsym.c (augment_type_symtab): Remove unused 'i'.
7172
7173 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7174
7175         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7176         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7177
7178 2013-03-29  Doug Evans  <dje@google.com>
7179
7180         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7181         Delete arg is_dwp.  All callers updated.
7182         (open_dwp_file): New function.
7183         (open_and_init_dwp_file): Call it.
7184         (get_dwp_file): New function.
7185         (lookup_dwo_cutu): Call it.
7186
7187         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7188         unnecessary, cleanup.
7189
7190         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7191
7192         * dwarf2read.c (read_cutu_die_from_dwo): New function.
7193         (lookup_dwo_unit): New function.
7194         (init_cutu_and_read_dies): Move DWO handling to new functions.
7195
7196         * dwarf2read.c (struct signatured_type): Tweak comment.
7197         (struct dwo_unit): Tweak comment.
7198         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
7199         (create_dwo_debug_info_hash_table): Tweak comment.
7200         (dwarf2_per_cu_offset_and_type): Tweak comment.
7201
7202         * dwarf2read.c (lookup_signatured_type): Remove complaint about
7203         missing .debug_types section.
7204
7205 2013-03-29  Yao Qi  <yao@codesourcery.com>
7206
7207         * corelow.c: Include "completer.h".
7208         (_initialize_corelow): Call add_target_with_completer with
7209         argument 'filename_completer'.
7210         * tracepoint.c: Likewise.
7211         * exec.c (_initialize_exec): Likewise.
7212         * target.c (add_target): Rename to ...
7213         (add_target_with_completer): ... this.  Call set_cmd_completer
7214         if parameter completer is not NULL.
7215         (add_target): New.
7216         * target.h: Include "command.h".
7217         (add_target_with_completer): Declare it.
7218
7219 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
7220
7221         * coffread.c (is_import_fixup_symbol): New function.
7222         (record_minimal_symbol): Use is_import_fixup_symbol to
7223         detect import fixup symbols, and discard them.
7224
7225 2013-03-28  Doug Evans  <dje@google.com>
7226
7227         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7228         types hash table until we know we need it.
7229
7230         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7231         index numbers.
7232
7233         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7234         All callers updated.
7235         (dw2_print_stats): Print #read CUs too.
7236         (dump_die_shallow): Print signatured types better.
7237
7238         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7239         info_or_types_section to section.  All uses updated.
7240         (struct dwo_unit): Ditto.
7241
7242 2013-03-28  Pedro Alves  <palves@redhat.com>
7243
7244         * NEWS (New options): New section.
7245         (New options): Mention set/show remote trace-status-packet.
7246         * remote.c (PACKET_qTStatus): New enumeration value.
7247         (remote_get_trace_status): Skip sending qTStatus if the packet is
7248         disabled.  Use packet_ok.
7249         (_initialize_remote): Register a configuration command for
7250         qTStatus packet.
7251
7252 2013-03-28  Doug Evans  <dje@google.com>
7253
7254         * symfile.c (find_separate_debug_file): Add comment.
7255         (terminate_after_last_dir_separator): Tweak comment.
7256
7257         * dwarf2read.c (create_partial_symtab): Add forward decl.
7258         (create_partial_symtab): Move to be closer to other psymtab functions.
7259         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7260
7261         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7262         (compute_symtab_includes): Remove unnecessary forward declaration.
7263         (die_needs_namespace): Add comment marking group of functions for
7264         dwarf2 name computation.
7265
7266         * typeprint.c (_initialize_typeprint): Improve type help text.
7267
7268         * python/python.c (finish_python_initialization): Provide suggestion
7269         for how to tell gdb to find its python files.
7270
7271 2013-03-28  Pedro Alves  <palves@redhat.com>
7272
7273         PR gdb/15294
7274
7275         * source.c (_initialize_source): Change back "set listsize" to an
7276         integer command.
7277
7278 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
7279
7280         PR gdb/15275
7281         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7282
7283 2013-03-27  Pedro Alves  <palves@redhat.com>
7284
7285         * top.c (history_size): Rename to ...
7286         (history_size_setshow_var): ... this.  Add comment.
7287         (show_commands): Use readline's 'history_length' instead of
7288         computing the history length by calling history_get in a loop.
7289         (set_history_size_command): Error out for sizes over INT_MAX.
7290         Restore previous history size on invalid size.
7291         (init_history): If HISTSIZE is negative, leave the history size as
7292         zero.  Add comments.
7293         (init_main): Adjust.
7294
7295 2013-03-27  Pedro Alves  <palves@redhat.com>
7296
7297         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7298         coff_pe_read" command to "set debug coff-pe-read".
7299
7300 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
7301
7302         * record.c (command_size_to_target_size): Fix size comparison.
7303         Change parameter type from pointer to integer to integer.
7304         Update all users.
7305
7306 2013-03-27  Pierre Muller  <muller@sourceware.org>
7307
7308         * windows-nat.c (handle_output_debug_string): Avoid typecast
7309         from integer of different size warning.
7310
7311 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
7312
7313         * windows-nat.c (handle_output_debug_string): Add empty line
7314         after local block variable definition.
7315
7316 2013-03-26  Pedro Alves  <palves@redhat.com>
7317
7318         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7319         (net_open): Make 'polls' local unsigned.
7320
7321 2013-03-26  Pedro Alves  <palves@redhat.com>
7322
7323         * remote.c (_initialize_remote): Make "set remoteaddresssize"
7324         a zuinteger command instead of uinteger.
7325
7326 2013-03-26  Pedro Alves  <palves@redhat.com>
7327
7328         * record-full.c (record_full_insn_num): Make it unsigned.
7329         (record_full_check_insn_num, record_full_message)
7330         (record_full_registers_change, record_full_xfer_partial): Remove
7331         record_full_insn_max_num check (it's always != 0).
7332         (record_full_info, record_full_restore): Use %u as format string.
7333         (): Use %u as format string.
7334         (set_record_full_insn_max_num): Remove record_full_insn_max_num
7335         check (it's always != 0).
7336
7337 2013-03-26  Pedro Alves  <palves@redhat.com>
7338
7339         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7340         and "set dcache size" commands zuinteger instead of uinteger.
7341
7342 2013-03-26  Pedro Alves  <palves@redhat.com>
7343
7344         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7345         command zuinteger instead of uinteger.
7346
7347 2013-03-26  Pedro Alves  <palves@redhat.com>
7348
7349         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7350         zuinteger instead of uinteger.
7351
7352 2013-03-26  Pedro Alves  <palves@redhat.com>
7353
7354         * record.c (record_insn_history_size_setshow_var)
7355         (record_call_history_size_setshow_var): New globals.
7356         (command_size_to_target_size): New function.
7357         (cmd_record_insn_history, cmd_record_call_history): Use
7358         command_size_to_target_size instead of cast.
7359         (validate_history_size, set_record_insn_history_size)
7360         (set_record_call_history_size): New functions.
7361         (_initialize_record): Install set_record_insn_history_size and
7362         set_record_call_history_size as "set" hooks of "set record
7363         instruction-history-size" and "set record
7364         function-call-history-size".
7365
7366 2013-03-26  Pedro Alves  <palves@redhat.com>
7367
7368         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7369         use with history_max_entries use.  Remove FIXME note.
7370
7371 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
7372
7373         * record-btrace.c (record_btrace_close): Call
7374         record_btrace_auto_disable.
7375
7376 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
7377
7378         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7379
7380 2013-03-25  Doug Evans  <dje@google.com>
7381
7382         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7383
7384 2013-03-25  Tom Tromey  <tromey@redhat.com>
7385
7386         PR symtab/11462:
7387         * c-exp.y (exp): Add new productions for destructors after '.' and
7388         '->'.
7389         (write_destructor_name): New function.
7390
7391 2013-03-25  Tom Tromey  <tromey@redhat.com>
7392
7393         PR c++/9197:
7394         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7395         value_struct_elt, not lookup_struct_elt_type.
7396         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7397         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7398         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7399
7400 2013-03-25  Yao Qi  <yao@codesourcery.com>
7401
7402         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7403         instead of '_mkdir'.
7404
7405 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
7406
7407         * windows-nat.c (windows_get_absolute_argv0): New function.
7408         * windows-nat.h: Add its prototype.
7409
7410         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7411         Use IS_DIR_SEPARATOR instead of looking for a character inside
7412         SLASH_STRING.  Include filenames.h.
7413         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7414         relocate_gdb_directory works when passed gdb_program_name.
7415         Include windows-nat.h.
7416
7417 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7418
7419         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7420         * remote.c (trace_error): Remove the special handling of '2'.
7421         (readchar) <SERIAL_EOF>
7422         (readchar) <SERIAL_ERROR>
7423         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7424         (remote_get_trace_status): Call throw_exception if EX is
7425         TARGET_CLOSE_ERROR.
7426         * utils.c (perror_with_name): Rename to ...
7427         (throw_perror_with_name): ... here.  New parameter errcode, describe it
7428         in the function comment.
7429         (perror_with_name): New function wrapper.
7430         * utils.h (enum errors): New stub declaration.
7431         (throw_perror_with_name): New declaration.
7432
7433 2013-03-22  Pedro Alves  <palves@redhat.com>
7434             Yao Qi  <yao@codesourcery.com>
7435             Mark Kettenis  <kettenis@gnu.org>
7436
7437         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7438         Don't let the user set the value to UINT_MAX directly.
7439         <var_integer>: Don't let the user set the value to INT_MAX
7440         directly.
7441
7442 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7443
7444         * remote.c (remote_unpush_target): New function.
7445         (remote_open_1): Remove two pop_target calls, update one comment, add
7446         comment to target_preopen call.  Replace pop_target call by
7447         remote_unpush_target call.
7448         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7449         pop_target calls by remote_unpush_target calls.
7450
7451 2013-03-22  Pedro Alves  <palves@redhat.com>
7452
7453         * linux-nat.c (linux_child_follow_fork): Don't call
7454         linux_enable_event_reporting.
7455         (linux_handle_extended_wait): Don't call
7456         linux_enable_event_reporting.
7457
7458 2013-03-22  Pedro Alves  <palves@redhat.com>
7459
7460         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7461         use it to rewrite the trampoline buffers with type gdb_byte[], and
7462         undefine the macro.  Remove char* cast.
7463
7464 2013-03-21  Doug Evans  <dje@google.com>
7465
7466         New commands "mt set per-command {space,time,symtab} {on,off}".
7467         * NEWS: Add entry.
7468         * event-top.c: #include "maint.h".
7469         * main.c: #include "maint.h".
7470         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7471         timeval-utils.h, maint.h, cli/cli-setshow.h.
7472         (per_command_time, per_command_space): New static globals.
7473         (per_command_symtab): New static global.
7474         (per_command_setlist, per_command_showlist): New static globals.
7475         (struct cmd_stats): Move here from utils.c.
7476         (set_per_command_time): Renamed from set_display_time in utils.c
7477         and moved here.  All callers updated.
7478         (set_per_command_space): Renamed from set_display_space in utils.c
7479         and moved here.  All callers updated.
7480         (count_symtabs_and_blocks): New function.
7481         (report_command_stats): Moved here from utils.c.  Add support for
7482         printing symtab stats.  Only print data if enabled before command
7483         executed.
7484         (make_command_stats_cleanup): Ditto.
7485         (sert_per_command_cmd, show_per_command_cmd): New functions.
7486         (_initialize_maint_cmds): Add new commands
7487         mt set per-command {space,time,symtab} {on,off}.
7488         * maint.h: New file.
7489         * top.c: #include "maint.h".
7490         * utils.c (reset_prompt_for_continue_wait_time): New function.
7491         (get_prompt_for_continue_wait_time): New function.
7492         * utils.h (reset_prompt_for_continue_wait_time): Declare
7493         (get_prompt_for_continue_wait_time): Declare.
7494         (make_command_stats_cleanup): Moved to maint.h.
7495         (set_display_time, set_display_space): Moved to maint.h and renamed
7496         to set_per_command_time, set_per_command_space.
7497         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7498         parse_binary_operation and made non-static.  Don't call error,
7499         just return an error marker.  All callers updated.
7500         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7501
7502 2013-03-21  Tom Tromey  <tromey@redhat.com>
7503
7504         * symfile.c (alloc_section_addr_info): Update header.  Don't set
7505         'num_sections' field.
7506         (build_section_addr_info_from_section_table): Set 'num_sections'.
7507         (build_section_addr_info_from_bfd): Likewise.
7508         (build_section_addr_info_from_objfile): Remove dead loop
7509         condition.
7510         (free_section_addr_info): Unconditionally call xfree.
7511         (relative_addr_info_to_section_offsets, addrs_section_sort)
7512         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7513         condition.
7514         (syms_from_objfile_1): Remove dead 'if' condition.  Check
7515         'num_sections'.
7516         (add_symbol_file_command): Set 'num_sections'.
7517         * symfile-mem.c (symbol_file_add_from_memory): Set
7518         'num_sections'.
7519         * somread.c (som_symfile_offsets): Remove dead loop condition.
7520         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7521         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7522
7523 2013-03-21  Tom Tromey  <tromey@redhat.com>
7524
7525         * tracepoint.h (decode_agent_options): Add 'trace_string'
7526         argument.
7527         * tracepoint.c (decode_agent_options): Add 'trace_string'
7528         argument.
7529         (validate_actionline): Update.
7530         (collect_symbol): Add 'trace_string' argument.
7531         (struct add_local_symbols_data) <trace_string>: New field.
7532         (do_collect_symbol): Update.
7533         (add_local_symbols): Add 'trace_string' argument.
7534         (encode_actions_1): Update.
7535         (trace_dump_actions): Update.
7536         * dwarf2loc.c (access_memory): Update.
7537         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7538         * ax-general.c (new_agent_expr): Update.
7539         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7540         (gen_trace_for_return_address): Add argument.
7541         (trace_kludge, trace_string_kludge): Remove.
7542         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7543         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7544         (gen_trace_for_var): Add 'trace_string' argument.
7545         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7546         (gen_printf, agent_eval_command_one): Update.
7547
7548 2013-03-21  Tom Tromey  <tromey@redhat.com>
7549
7550         PR exp/15109:
7551         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7552         Handle FILENAME token.
7553
7554 2013-03-21  Tom Tromey  <tromey@redhat.com>
7555
7556         * c-exp.y (YYPRINT): Define.
7557         (c_print_token): New function.
7558
7559 2013-03-21  Tom Tromey  <tromey@redhat.com>
7560
7561         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7562
7563 2013-03-21  Yao Qi  <yao@codesourcery.com>
7564
7565         * ctf.c: Include "gdb_stat.h".
7566         [USE_WIN32API]: New macro 'mkdir'.
7567         (ctf_start): Use permission bits macros if they are defined.
7568
7569 2013-03-20  Keith Seitz  <keiths@redhat.com>
7570
7571         * breakpoint.h (struct breakpoint): Add comment to
7572         extra_string indicating that this member is mallod'd.
7573         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7574
7575 2013-03-20  Pedro Alves  <palves@redhat.com>
7576
7577         PR gdb/15289
7578
7579         * cli/cli-setshow.c (do_set_command)
7580         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7581         the result of parsing the command argument.  Throw error if the
7582         value is greater than UINT_MAX.  Print the invalid value with
7583         plongest.
7584         <var_integer, var_zinteger>: Use LONGEST for variable holding the
7585         result of parsing the command argument.  Throw error if the value
7586         is greater than INT_MAX, not greater or equal.  Also throw error
7587         if the value is less than INT_MIN.  Print the invalid value with
7588         plongest.
7589         <var_zuinteger_unlimited>: Throw error if the value is greater
7590         than INT_MAX, not greater or equal.
7591         (do_show_command) <var_integer, var_zinteger,
7592         var_zuinteger_unlimited>: Use %d for printing int, not %u.
7593
7594 2013-03-20  Tom Tromey  <tromey@redhat.com>
7595
7596         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7597         if possible.
7598         * dwarf2read.c (read_func_scope): Remove old FIXME.
7599         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7600         not LOC_COMPUTED.
7601         * findvar.c (symbol_read_needs_frame, default_read_var_value):
7602         Unconditionally call via computed ops, if possible.
7603         * printcmd.c (address_info): Unconditionally call via computed ops,
7604         if possible.
7605         * stack.c (read_frame_arg): Unconditionally call via computed ops,
7606         if possible.
7607         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7608         * tracepoint.c (scope_info): Unconditionally call via computed ops,
7609         if possible.
7610
7611 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7612             Tom Tromey  <tromey@redhat.com>
7613
7614         PR symtab/8421:
7615         * coffread.c (coff_register_index): New global.
7616         (process_coff_symbol, coff_read_enum_type): Set
7617         SYMBOL_ACLASS_INDEX.
7618         (_initialize_coffread): Initialize new global.
7619         * dwarf2loc.c (locexpr_find_frame_base_location)
7620         (dwarf2_block_frame_base_locexpr_funcs)
7621         (loclist_find_frame_base_location)
7622         (dwarf2_block_frame_base_loclist_funcs): New.
7623         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7624         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7625         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7626         (dwarf2_block_frame_base_loclist_funcs): New.
7627         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7628         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7629         globals.
7630         (read_func_scope): Update.
7631         (fixup_go_packaging, mark_common_block_symbol_computed)
7632         (var_decode_location, new_symbol_full, dwarf2_const_value):
7633         Set SYMBOL_ACLASS_INDEX.
7634         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
7635         (_initialize_dwarf2_read): Initialize new globals.
7636         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7637         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7638         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7639         globals.
7640         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7641         (_initialize_mdebugread): Initialize new globals.
7642         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7643         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7644         (stab_register_index, stab_regparm_index): New globals.
7645         (define_symbol, read_enum_type, common_block_end): Set
7646         SYMBOL_ACLASS_INDEX.
7647         (_initialize_stabsread): Initialize new globals.
7648         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7649         globals.
7650         (MAX_SYMBOL_IMPLS): New define.
7651         (register_symbol_computed_impl, register_symbol_block_impl)
7652         (register_symbol_register_impl)
7653         (initialize_ordinary_address_classes): New functions.
7654         (_initialize_symtab): Call initialize_ordinary_address_classes.
7655         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7656         (struct symbol_impl): New.
7657         (SYMBOL_ACLASS_BITS): New define.
7658         (struct symbol) <aclass, ops>: Remove fields.
7659         <aclass_index>: New field.
7660         (symbol_impls): Declare.
7661         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7662         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7663         (register_symbol_computed_impl, register_symbol_block_impl)
7664         (register_symbol_register_impl): Declare.
7665         (struct symbol_computed_ops): Add location_has_loclist.
7666         (struct symbol_block_ops): New.
7667         (SYMBOL_BLOCK_OPS): New.
7668         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7669
7670 2013-03-20  Tom Tromey  <tromey@redhat.com>
7671
7672         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7673         (print_partial_symbols, recursively_search_psymtabs): Use
7674         PSYMBOL_CLASS.
7675
7676 2013-03-20  Pierre Muller  <muller@sourceware.org>
7677
7678         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7679         addtion, subtraction, multiplication and division binary operator.
7680
7681 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7682
7683         Code cleanup.
7684         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7685         * bsd-kvm.c (bsd_kvm_close): Likewise.
7686         * bsd-uthread.c (bsd_uthread_close): Likewise.
7687         * corelow.c (core_close): Likewise.
7688         (core_close_cleanup): Remove parameter quitting from a caller.
7689         * event-top.c (async_disconnect): Likewise.
7690         * exec.c (exec_close_1): Remove parameter quitting.
7691         * go32-nat.c (go32_close): Likewise.
7692         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
7693         parameter quitting from a caller.
7694         * mips-linux-nat.c (super_close): Remove parameter quitting from the
7695         variable.
7696         (mips_linux_close): Remove parameter quitting.  Remove parameter
7697         quitting from a caller.
7698         * monitor.c (monitor_close): Remove parameter quitting.
7699         * monitor.h (monitor_close): Likewise.
7700         * record-btrace.c (record_btrace_close): Likewise.
7701         * record-full.c (record_full_close): Likewise.
7702         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7703         it also from fprintf_unfiltered.
7704         * remote-mips.c (mips_close): Remove parameter quitting.
7705         (mips_detach): Remove parameter quitting from a caller.
7706         * remote-sim.c (gdbsim_close): Remove parameter quitting.
7707         (gdbsim_close): Remove duplicate function comment.  Remove parameter
7708         quitting and remove it also from printf_filtered.
7709         * remote.c (remote_close): Remove parameter quitting.
7710         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7711         * target.c (update_current_target): Remove parameter int from to_close
7712         de_fault.
7713         (push_target, unpush_target, pop_target): Remove parameter quitting from
7714         a caller.
7715         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7716         Remove parameter quitting from a caller.
7717         (target_preopen): Remove parameter quitting from a caller.
7718         (target_close): Remove parameter quitting.  Remove parameter quitting
7719         from a caller two times.  Remove parameter quitting also from
7720         fprintf_unfiltered.
7721         * target.h (struct target_ops): Remove parameter quitting and as int
7722         from fields to_xclose and to_close.
7723         (extern struct target_ops current_target):
7724         (target_close, pop_all_targets): Remove parameter quitting.  Update the
7725         comment.
7726         (pop_all_targets_above): Remove parameter quitting.
7727         * top.c (quit_target): Remove parameter quitting from a caller.
7728         * tracepoint.c (tfile_close): Remove parameter quitting.
7729         * windows-nat.c (windows_close): Remove parameter quitting.
7730
7731 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
7732
7733         * windows-nat.c (handle_output_debug_string): Replace call
7734         to string_to_core_addr with call to strtoull.
7735
7736 2013-03-20  Yao Qi  <yao@codesourcery.com>
7737
7738         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7739         and write it to CTF metadata.
7740
7741 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
7742
7743         * windows-nat.c (handle_output_debug_string): Change type of n to
7744         SIZE_T to avoid crash on 64 bit systems.
7745
7746 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
7747
7748         * python/python-internal.h (HAVE_SNPRINTF)
7749         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7750         about redefinition of snprintf by pyerrors.h.
7751
7752 2013-03-15  Steve Ellcey  <sellcey@mips.com>
7753
7754         * remote-sim.c (sim_command_completer): Make char arguments const.
7755
7756 2013-03-15  Tom Tromey  <tromey@redhat.com>
7757
7758         PR c++/15116:
7759         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7760
7761 2013-03-14  Tom Tromey  <tromey@redhat.com>
7762
7763         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7764         New fields.
7765         (get_file_crc): Move from symfile.c.
7766         (gdb_bfd_crc): New function.
7767         * gdb_bfd.h (gdb_bfd_crc): Declare.
7768         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7769         * symfile.c (get_file_crc): Move to gdb_bfd.c.
7770         (separate_debug_file_exists): Use gdb_bfd_crc.
7771
7772 2013-03-14  Tom Tromey  <tromey@redhat.com>
7773
7774         * symfile.c (get_debug_link_info): Remove.
7775         (find_separate_debug_file_by_debuglink): Use
7776         bfd_get_debug_link_info.
7777
7778 2013-03-14  Tom Tromey  <tromey@redhat.com>
7779
7780         * symtab.c (error_in_psymtab_expansion): New function.
7781         (lookup_symbol_aux_quick)
7782         (basic_lookup_transparent_type_quick): Remove "last resort"
7783         code.  Use error_in_psymtab_expansion.
7784
7785 2013-03-14  Doug Evans  <dje@google.com>
7786             Jan Kratochvil  <jan.kratochvil@redhat.com>
7787
7788         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7789         any successful compare_filenames_for_search or FILENAME_CMP.
7790         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7791         * symtab.c (iterate_over_some_symtabs): Likewise.
7792
7793 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7794
7795         * source.c (print_source_lines_base): Make a local copy of
7796         symtab_to_fullname.
7797
7798 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
7799             Jan Kratochvil  <jan.kratochvil@redhat.com>
7800
7801         * source.c (print_source_lines_base): Suppress "file" for TUI.
7802
7803 2013-03-14  Keith Seitz  <keiths@redhat.com>
7804             Alan Matsuoka  <alanm@redhat.com>
7805
7806         PR c++/15203
7807         PR c++/15210
7808         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7809         TYPE_CODE_METHOD.
7810         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7811         symbols.
7812
7813 2013-03-14  Yao Qi  <yao@codesourcery.com>
7814
7815         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7816         status to tfile if trace is stopped by command 'tstop'.
7817
7818 2013-03-14  Yao Qi  <yao@codesourcery.com>
7819
7820         * tracepoint.c (tfile_write_status): Write trace notes and user
7821         name into tfile if they are not NULL.
7822
7823 2013-03-14  Hui Zhu  <hui@codesourcery.com>
7824             Yao Qi  <yao@codesourcery.com>
7825
7826         * Makefile.in (REMOTE_OBS): Add ctf.o.
7827         (SFILES): Add ctf.c.
7828         (HFILES_NO_SRCDIR): Add ctf.h.
7829         * ctf.c, ctf.h: New files.
7830         * tracepoint.c: Include 'ctf.h'.
7831         (collect_pseudocommand): Remove static.
7832         (trace_save_command): Parse option "-ctf".
7833         Produce different trace file writers per option.
7834         Adjust output message.
7835         (trace_save_tfile, trace_save_ctf): New.
7836         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7837         * mi/mi-main.c: Include 'ctf.h'.
7838         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
7839         trace_save_tfile or trace_save_ctf.
7840         * NEWS: Mention these changes.
7841
7842 2013-03-14  Yao Qi  <yao@codesourcery.com>
7843
7844         * tracepoint.c (trace_file_writer_xfree): New.
7845         (struct tfile_writer_data): New.
7846         (tfile_dtor, tfile_can_target_save, tfile_start): New.
7847         (tfile_write_header, tfile_write_regblock_type): New.
7848         (tfile_write_status, tfile_write_uploaded_tsv): New.
7849         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7850         (tfile_write_raw_data, (tfile_end): New.
7851         (tfile_write_ops): New global variable.
7852         (TRACE_WRITE_R_BLOCK): New macro.
7853         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7854         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7855         (TRACE_WRITE_V_BLOCK): New macro.
7856         (trace_save): Add extra one parameter WRITER.  Make it static.
7857         Use WRITER to writer trace.
7858         (tfile_trace_file_writer_new): New.
7859         (trace_save_command): Caller update.
7860         (trace_save_tfile): Write trace data in TFILE format.
7861         * tracepoint.h (struct trace_frame_write_ops): New.
7862         (struct trace_file_write_ops): New.
7863         (struct trace_file_writer): New.
7864         (trace_save): Remove its declaration.
7865         (trace_save_tfile): Declare it.
7866         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7867         instead of trace_save.
7868
7869 2013-03-13  Pedro Alves  <palves@redhat.com>
7870
7871         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7872
7873 2013-03-13  Pedro Alves  <palves@redhat.com>
7874
7875         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7876         commented out code.
7877         * demangle.c (current_demangling_style_string): Make it const.
7878         (set_demangling_command): Assert the demangling style is known.
7879         Remove all handling of unknown styles.  Set
7880         'current_demangling_style_string' to an element of the
7881         demangling_style_names array.
7882         (set_demangling_style): Delete.
7883         (_initialize_demangler): Set current_demangling_style_string to the
7884         element of the demangling_style_names array that corresponds to
7885         the default demangling style.  Remove FIXME note.  Don't call
7886         set_demangling_style.
7887         * gdb-demangle.h (set_demangling_style): Remove declaration.
7888
7889 2013-03-13  Pedro Alves  <palves@redhat.com>
7890
7891         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7892         fields const.
7893         (ada_make_symbol_completion_list): Make "text0" parameter const.
7894         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7895         * breakpoint.c (condition_completer): Make "text" and "word"
7896         parameters const.  Adjust.
7897         (check_tracepoint_command): Adjust to validate_actionline
7898         prototype change.
7899         (catch_syscall_completer): Make "text" and "word" parameters
7900         const.
7901         * cli/cli-cmds.c (show_user): Make "comname" local const.
7902         (valid_command_p): Make "command" parameter const.
7903         (alias_command): Make "alias_prefix" and "command_prefix" locals
7904         const.
7905         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7906         (add_alias_cmd): Make "name" and "oldname" parameters const.
7907         Adjust.  No longer make copy of OLDNAME.
7908         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7909         (add_setshow_cmd_full, add_setshow_enum_cmd)
7910         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7911         (add_setshow_filename_cmd, add_setshow_string_cmd)
7912         (add_setshow_string_noescape_cmd)
7913         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7914         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7915         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7916         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7917         Make "name" parameter const.
7918         (help_cmd): Rename "command" parameter to "arg".  New const local
7919         "command".
7920         (find_cmd): Make "command" parameter const.
7921         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
7922         deprecated_cmd_warning prototype change.
7923         (undef_cmd_error): Make "cmdtype" parameter const.
7924         (lookup_cmd): Make "line" parameter const.
7925         (deprecated_cmd_warning): Change type of "text" parameter to
7926         pointer to const char, from pointer to pointer to char.  Adjust.
7927         (lookup_cmd_composition): Make "text" parameter const.
7928         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7929         parameters const.
7930         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7931         const.
7932         * cli/cli-script.c (validate_comname): Make "tem" local const.
7933         (define_command): New const local "tem_c".  Use it in calls to
7934         lookup_cmd.
7935         (document_command): Make "tem" and "comfull" locals const.
7936         (show_user_1): Make "prefix" and "name" parameters const.
7937         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7938         const.
7939         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7940         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7941         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7942         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7943         (complete_on_enum, add_setshow_enum_cmd)
7944         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7945         (add_setshow_filename_cmd, add_setshow_string_cmd)
7946         (add_setshow_string_noescape_cmd)
7947         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7948         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7949         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7950         Change prototypes, constifying strings.
7951         * completer.c (noop_completer, filename_completer): Make "text"
7952         and "prefix" parameters const.
7953         (location_completer, expression_completer)
7954         (complete_line_internal): Make "text" and "prefix" parameters
7955         const and adjust.
7956         (command_completer, signal_completer): Make "text" and "prefix"
7957         parameters const.
7958         * completer.h (noop_completer, filename_completer)
7959         (expression_completer, location_completer, command_completer)
7960         (signal_completer): Change prototypes.
7961         * corefile.c (complete_set_gnutarget): Make "text" and "word"
7962         parameters const.
7963         * cp-abi.c (cp_abi_completer): Likewise.
7964         * expression.h (parse_expression_for_completion): Change
7965         prototype.
7966         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7967         parameters const.
7968         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7969         * infrun.c (handle_completer): Make "text" and "word" parameters
7970         const.
7971         * interps.c (interpreter_completer): Make "text" and "word"
7972         parameters const.
7973         * language.h (struct language_defn)
7974         <la_make_symbol_completion_list>: Make "text" and "word"
7975         parameters const.
7976         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7977         (parse_exp_in_context): Rename to ...
7978         (parse_exp_in_context_1): ... this.
7979         (parse_exp_in_context): Reimplement, with const hack from
7980         parse_exp_1.
7981         (parse_expression_for_completion): Make "string" parameter const.
7982         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7983         to pointer to const char.  Adjust.
7984         (print_command_1): Make "exp" parameter const.
7985         (output_command): Rename to ...
7986         (output_command_const): ... this.  Make "exp" parameter const.
7987         (output_command): Reimplement.
7988         (x_command): Adjust.
7989         (display_command): Rename "exp" parameter to "arg".  New "exp"
7990         local, const version of "arg".
7991         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7992         "cmd_name" local const.
7993         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7994         call.
7995         (cmdpy_completer): Make "text" and "word" parameters const.
7996         (gdbpy_parse_command_name): Make "prefix_text2" local const.
7997         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7998         const.
7999         * remote.c (_initialize_remote): Make "cmd_name" local const.
8000         * symtab.c (language_search_unquoted_string): Make "text" and "p"
8001         parameters const.  Adjust.
8002         (completion_list_add_fields): Make "sym_text", "text" and "word"
8003         parameters const.
8004         (struct add_name_data) <sym_text, text, word>: Make fields const.
8005         (default_make_symbol_completion_list_break_on): Make "text" and
8006         "word" parameters const.  Adjust locals.
8007         (default_make_symbol_completion_list)
8008         (make_symbol_completion_list, make_symbol_completion_type)
8009         (make_symbol_completion_list_fn): Make "text" and "word"
8010         parameters const.
8011         (make_file_symbol_completion_list): Make "text", "word" and
8012         "srcfile" parameters const.  Adjust locals.
8013         (add_filename_to_list): Make "text" and "word" parameters const.
8014         (struct add_partial_filename_data) <text, word>: Make fields
8015         const.
8016         (make_source_files_completion_list): Make "text" and "word"
8017         parameters const.
8018         * symtab.h (default_make_symbol_completion_list_break_on)
8019         (default_make_symbol_completion_list, make_symbol_completion_list)
8020         (make_symbol_completion_type enum type_code)
8021         (make_symbol_completion_list_fn make_file_symbol_completion_list)
8022         (make_source_files_completion_list): Change prototype.
8023         * top.c (execute_command): Adjust to pass pointer to pointer to
8024         const char to lookup_cmd, and to deprecated_cmd_warning prototype
8025         change.
8026         (set_verbose): Make "cmdname" local const.
8027         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8028         and adjust.
8029         (validate_actionline): Make "line" parameter a pointer to const
8030         char, and adjust.
8031         (encode_actions_1): Make "action_exp" local const, and adjust.
8032         (encode_actions): Adjust.
8033         (replace_comma): Delete.
8034         (trace_dump_actions): Make "action_exp" and "next_comma" locals
8035         const, and adjust.  Don't frob the action string while splitting
8036         it at commas.  Instead, make a copy of each split substring in
8037         turn.
8038         (trace_dump_command): Adjust to validate_actionline prototype
8039         change.
8040         * tracepoint.h (decode_agent_options, decode_agent_options)
8041         (encode_actions, validate_actionline): Change prototypes.
8042         * valprint.h (output_command): Delete declaration.
8043         (output_command_const): Declare.
8044         * value.c (function_destroyer): Cast const away in xfree call.
8045
8046 2013-03-13  Pedro Alves  <palves@redhat.com>
8047
8048         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8049         rather than casting 'const char * const *' to 'const char **'.
8050         * ada-lex.l (processInt): Make "trailer" local const.  Remove
8051         'const char **' cast.
8052         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8053         locals, and use those as strtol output pointer, instead than doing
8054         invalid casts to from 'const char **' to 'char **'.
8055         (_initialize_demangle): Remove cast.
8056         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8057         locals, and use those as strtol output pointer, instead than doing
8058         invalid casts to from 'const char **' to 'char **'.
8059         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8060         casts.
8061         * stap-probe.c (stap_parse_register_operand)
8062         (stap_parse_single_operand): Likewise.
8063
8064 2013-03-13  Yao Qi  <yao@codesourcery.com>
8065
8066         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8067         the last matched 'V' blcok in trace frame.
8068
8069 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8070
8071         * NEWS: Create a new section for the next release branch.
8072         Rename the section of the current branch, now that it has
8073         been cut.
8074
8075 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8076
8077         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8078         * version.in: Bump version to 7.6.50.20130312-cvs.
8079
8080 2013-03-12  Keith Seitz  <keiths@redhat.com>
8081
8082         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8083         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8084         Remove temporary copy of input string.
8085         (mi_execute_command_wrapper): Make "cmd" const.
8086         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8087         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8088         Use const strings.
8089         (mi_parse): Make "cmd" const.
8090         Use const strings.
8091         * mi/mi-parse.h (mi_parse): Make "cmd" const.
8092
8093 2013-03-12  Keith Seitz  <keiths@redhat.com>
8094
8095         * ada-lang.c (ada_read_renaming_var_value): Pass const
8096         pointer to expression string to parse_exp_1.
8097         (create_excep_cond_exprs): Likewise.
8098         * ax-gdb.c (agent_eval_command_one): Likewise.
8099         (maint_agent_printf_command): Likewise.
8100         Constify much of the string handling/parsing.
8101         * breakpoint.c (set_breakpoint_condition): Pass const
8102         pointer to expression string to parse_exp_1.
8103         (update_watchpoint): Likewise.
8104         (parse_cmd_to_aexpr): Constify string handling.
8105         Pass const pointer to parse_exp_1.
8106         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8107         (find_condition_and_thread): Likewise.
8108         Make TOK const.
8109         (watch_command_1): Make "arg" const.
8110         Constify string handling.
8111         Copy the expression string instead of changing the input
8112         string.
8113         (update_breakpoint_location): Pass const pointer to
8114         parse_exp_1.
8115         * eval.c (parse_and_eval_address): Make "exp" const.
8116         (parse_to_comma_and_eval): Make "expp" const.
8117         (parse_and_eval): Make "exp" const.
8118         * expression.h (parse_expression): Make argument const.
8119         (parse_exp_1): Make first argument const.
8120         * findcmd.c (parse_find_args): Treat "args" as const.
8121         * linespec.c (parse_linespec): Pass const pointer to
8122         linespec_expression_to_pc.
8123         (linespec_expression_to_pc): Make "exp_ptr" const.
8124         * parse.c (parse_exp_1): Make "stringptr" const.
8125         Make a copy of the expression to pass to parse_exp_in_context until
8126         this whole interface can be constified.
8127         (parse_expression): Make "string" const.
8128         * printcmd.c (ui_printf): Treat "arg" as const.
8129         Handle const strings.
8130         * tracepoint.c (validate_actionline): Pass const pointer to
8131         all calls to parse_exp_1.
8132         (encode_actions_1): Likewise.
8133         * value.h (parse_to_comma_and_eval): Make argument const.
8134         (parse_and_eval_address): Likewise.
8135         (parse_and_eval): Likewise.
8136         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8137         (varobj_set_value): Likewise.
8138         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8139         constify string handling.
8140         Pass const pointers to parse_and_eval_address and
8141         parse_to_comman_and_eval.
8142         * cli/cli-utils.c (skip_to_space): Rename to ...
8143         (skip_to_space_const): ... this. Handle const strings.
8144         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8145         skip_to_space_const.
8146         (skip_to_space_const): Declare.
8147         * common/format.c (parse_format_string): Make "arg" const.
8148         Handle const strings.
8149         * common/format.h (parse_format_string): Make "arg" const.
8150         * gdbserver/ax.c (ax_printf): Make "format" const.
8151         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8152         of the expression string.
8153
8154 2013-03-12  Hui Zhu  <hui@codesourcery.com>
8155
8156         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8157
8158 2013-03-12  Yao Qi  <yao@codesourcery.com>
8159             Hui Zhu  <hui@codesourcery.com>
8160
8161         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8162         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8163         DW_OP_deref_size.
8164
8165 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
8166
8167         * ada-lex.l (rules): Only recognize 'thread' as a
8168         delimiter when followed by numerals, as for c-exp.y.
8169         Use new rewind_to_char function to rewind the input for
8170         expression-delimiting tokens.
8171         (rewind_to_char): New function.
8172
8173 2013-03-11  Pedro Alves  <palves@redhat.com>
8174             Jan Kratochvil  <jan.kratochvil@redhat.com>
8175
8176         * configure: Regenerate.
8177         * configure.ac (check dynamic export flag): Link python test with
8178         $PYTHON_LIBS.
8179
8180 2013-03-11  Doug Evans  <dje@google.com>
8181             Keith Seitz  <keiths@redhat.com>
8182
8183         * linespec.c (find_linespec_symbols): Call find_function_symbols
8184         first, and then call lookup_prefix_sym/find_method.
8185
8186 2013-03-11  Pedro Alves  <palves@redhat.com>
8187
8188         * charset.c (convert_between_encodings): Don't cast between
8189         different pointer to pointer types.  Instead, make the 'inp' local
8190         be of the type iconv expects.
8191         (wchar_iterate): Don't cast between different pointer to pointer
8192         types.  Instead, use new pointer local of the type iconv expects.
8193         * target.c (target_read_stralloc, target_fileio_read_stralloc):
8194         Add new local of type char pointer, and use it to get a
8195         char/string view of the byte buffer, instead of casting between
8196         pointer to pointer types.
8197
8198 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
8199
8200         * remote.c (remote_set_trace_buffer_size): Move != operator
8201         to the start of next line to fix an ARI warning.
8202
8203 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8204
8205         * NEWS: Add record changes.
8206
8207 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8208
8209         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8210         the instruction history disassembly.
8211         * disasm.c (dump_insns): Omit the pc prefix, if requested.
8212         * disasm.h (DISASSEMBLY_OMIT_PC): New.
8213
8214 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8215
8216         * Makefile.in (SFILES): Add record-btrace.c
8217         (COMMON_OBS): Add record-btrace.o
8218         * record-btrace.c: New.
8219         * objfiles.c: Include btrace.h.
8220         (free_objfile): call btrace_free_objfile.
8221
8222 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8223
8224         * target.c (target_call_history, target_call_history_from,
8225         target_call_history_range): New.
8226         * target.h (target_ops) <to_call_history, to_call_history_from,
8227         to_call_history_range>: New fields.
8228         (target_call_history, target_call_history_from,
8229         target_call_history_range): New declaration.
8230         * record.c (get_call_history_modifiers, cmd_record_call_history,
8231         record_call_history_size): New.
8232         (_initialize_record): Add the "record function-call-history" command.
8233         Add "set/show record function-call-history-size" commands.
8234         * record.h (record_print_flag): New.
8235
8236 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8237
8238         * target.h (target_ops) <to_insn_history, to_insn_history_from,
8239         to_insn_history_range>: New fields.
8240         (target_insn_history): New.
8241         (target_insn_history_from): New.
8242         (target_insn_history_range): New.
8243         * target.c (target_insn_history): New.
8244         (target_insn_history_from): New.
8245         (target_insn_history_range): New.
8246         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8247         (record_insn_history_size): New.
8248         (get_insn_number): New.
8249         (get_context_size): New.
8250         (no_chunk): New.
8251         (get_insn_history_modifiers): New.
8252         (cmd_record_insn_history): New.
8253         (_initialize_record): Add "set/show record instruction-history-size"
8254         command. Add "record instruction-history" command.
8255
8256 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8257
8258         * record.h (record_disconnect): New.
8259         (record_detach): New.
8260         (record_mourn_inferior): New.
8261         (record_kill): New.
8262         * record-full.c (record_disconnect, record_detach,
8263         record_mourn_inferior, record_kill): Move to...
8264         * record.c: ...here.
8265         (DEBUG): New.
8266         (record_stop): New.
8267         (record_unpush): New.
8268         (cmd_record_stop): Call record_stop. Replace unpush_target
8269         call with record_unpush call.
8270         (record_disconnect, record_detach): Assert that the target
8271         is of record stratum. Call record_unpush, record_stop, and
8272         DEBUG.
8273         (record_mourn_inferior, record_kill): Assert that the target
8274         is of record stratum. Call record_unpush and DEBUG.
8275
8276 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8277
8278         * record-full.h, record-full.c (record_memory_query): Rename
8279         to ...
8280         (record_full_memory_query): ...this. Update all users.
8281         (record_arch_list_add_reg): Rename to ...
8282         (record_full_arch_list_add_reg): ...this. Update all users.
8283         (record_arch_list_add_mem): Rename to ...
8284         (record_full_arch_list_add_mem): ...this. Update all users.
8285         (record_arch_list_add_end): Rename to ...
8286         (record_full_arch_list_add_end): ...this. Update all users.
8287         (record_gdb_operation_disable_set): Rename to ...
8288         (record_full_gdb_operation_disable_set): ...this.
8289         Update all users.
8290
8291 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8292
8293         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8294         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8295         (RECORD_IS_REPLAY): Renamed to ...
8296         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8297         (RECORD_FILE_MAGIC): Renamed to ...
8298         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8299         (record_mem_entry): Renamed to ...
8300         (record_full_mem_entry): ... this. Updated all users.
8301         (record_reg_entry): Renamed to ...
8302         (record_full_reg_entry): ... this. Updated all users.
8303         (record_end_entry): Renamed to ...
8304         (record_full_end_entry): ... this. Updated all users.
8305         (record_type) <record_end, record_reg, record_mem>: Renamed
8306         to ...
8307         (record_full_type) <record_full_end, record_full_reg,
8308         record_full_mem>: ... this. Updated all users.
8309         (record_entry): Renamed to ...
8310         (record_full_entry): ... this. Updated all users.
8311         (record_core_buf_entry): Renamed to ...
8312         (record_full_core_buf_entry): ... this. Updated all users.
8313         (record_core_regbuf): Renamed to ...
8314         (record_full_core_regbuf): ... this. Updated all users.
8315         (record_core_start): Renamed to ...
8316         (record_full_core_start): ... this. Updated all users.
8317         (record_core_end): Renamed to ...
8318         (record_full_core_end): ... this. Updated all users.
8319         (record_core_buf_list): Renamed to ...
8320         (record_full_core_buf_list): ... this. Updated all users.
8321         (record_first): Renamed to ...
8322         (record_full_first): ... this. Updated all users.
8323         (record_list): Renamed to ...
8324         (record_full_list): ... this. Updated all users.
8325         (record_arch_list_head): Renamed to ...
8326         (record_full_arch_list_head): ... this. Updated all users.
8327         (record_arch_list_tail): Renamed to ...
8328         (record_full_arch_list_tail): ... this. Updated all users.
8329         (record_stop_at_limit): Renamed to ...
8330         (record_full_stop_at_limit): ... this. Updated all users.
8331         (record_insn_max_num): Renamed to ...
8332         (record_full_insn_max_num): ... this. Updated all users.
8333         (record_insn_num): Renamed to ...
8334         (record_full_insn_num): ... this. Updated all users.
8335         (record_insn_count): Renamed to ...
8336         (record_full_insn_count): ... this. Updated all users.
8337         (record_ops): Renamed to ...
8338         (record_full_ops): ... this. Updated all users.
8339         (record_core_ops): Renamed to ...
8340         (record_full_core_ops): ... this. Updated all users.
8341         (set_record_cmdlist): Renamed to ...
8342         (set_record_full_cmdlist): ... this. Updated all users.
8343         (show_record_cmdlist): Renamed to ...
8344         (show_record_full_cmdlist): ... this. Updated all users.
8345         (record_cmdlist): Renamed to ...
8346         (record_full_cmdlist): ... this. Updated all users.
8347         (record_beneath_to_resume_ops): Renamed to ...
8348         (record_full_beneath_to_resume_ops): ... this. Updated all users.
8349         (record_beneath_to_resume): Renamed to ...
8350         (record_full_beneath_to_resume): ... this. Updated all users.
8351         (record_beneath_to_wait_ops): Renamed to ...
8352         (record_full_beneath_to_wait_ops): ... this. Updated all users.
8353         (record_beneath_to_wait): Renamed to ...
8354         (record_full_beneath_to_wait): ... this. Updated all users.
8355         (record_beneath_to_store_registers_ops): Renamed to ...
8356         (record_full_beneath_to_store_registers_ops): ... this.
8357         Updated all users.
8358         (record_beneath_to_store_registers): Renamed to ...
8359         (record_full_beneath_to_store_registers): ... this.
8360         Updated all users.
8361         (record_beneath_to_xfer_partial_ops): Renamed to ...
8362         (record_full_beneath_to_xfer_partial_ops): ... this.
8363         Updated all users.
8364         (record_beneath_to_xfer_partial): Renamed to ...
8365         (record_full_beneath_to_xfer_partial): ... this.
8366         Updated all users.
8367         (record_beneath_to_insert_breakpoint): Renamed to ...
8368         (record_full_beneath_to_insert_breakpoint): ... this.
8369         Updated all users.
8370         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8371         (record_full_beneath_to_stopped_by_watchpoint): ... this.
8372         Updated all users.
8373         (record_beneath_to_stopped_data_address): Renamed to ...
8374         (record_full_beneath_to_stopped_data_address): ... this.
8375         Updated all users.
8376         (record_beneath_to_async): Renamed to ...
8377         (record_full_beneath_to_async): ... this. Updated all users.
8378         (record_goto_insn): Renamed to ...
8379         (record_full_goto_insn): ... this. Updated all users.
8380         (record_save): Renamed to ...
8381         (record_full_save): ... this. Updated all users.
8382         (record_reg_alloc): Renamed to ...
8383         (record_full_reg_alloc): ... this. Updated all users.
8384         (record_reg_release): Renamed to ...
8385         (record_full_reg_release): ... this. Updated all users.
8386         (record_mem_alloc): Renamed to ...
8387         (record_full_mem_alloc): ... this. Updated all users.
8388         (record_mem_release): Renamed to ...
8389         (record_full_mem_release): ... this. Updated all users.
8390         (record_end_alloc): Renamed to ...
8391         (record_full_end_alloc): ... this. Updated all users.
8392         (record_end_release): Renamed to ...
8393         (record_full_end_release): ... this. Updated all users.
8394         (record_entry_release): Renamed to ...
8395         (record_full_entry_release): ... this. Updated all users.
8396         (record_list_release): Renamed to ...
8397         (record_full_list_release): ... this. Updated all users.
8398         (record_list_release_following): Renamed to ...
8399         (record_full_list_release_following): ... this.
8400         Updated all users.
8401         (record_list_release_first): Renamed to ...
8402         (record_full_list_release_first): ... this. Updated all users.
8403         (record_arch_list_add): Renamed to ...
8404         (record_full_arch_list_add): ... this. Updated all users.
8405         (record_get_loc): Renamed to ...
8406         (record_full_get_loc): ... this. Updated all users.
8407         (record_check_insn_num): Renamed to ...
8408         (record_full_check_insn_num): ... this. Updated all users.
8409         (record_arch_list_cleanups): Renamed to ...
8410         (record_full_arch_list_cleanups): ... this. Updated all users.
8411         (record_message): Renamed to ...
8412         (record_full_message): ... this. Updated all users.
8413         (record_message_wrapper): Renamed to ...
8414         (record_full_message_wrapper): ... this. Updated all users.
8415         (record_message_wrapper_safe): Renamed to ...
8416         (record_full_message_wrapper_safe): ... this. Updated all users.
8417         (record_gdb_operation_disable): Renamed to ...
8418         (record_full_gdb_operation_disable): ... this. Updated all users.
8419         (record_hw_watchpoint): Renamed to ...
8420         (record_full_hw_watchpoint): ... this. Updated all users.
8421         (record_exec_insn): Renamed to ...
8422         (record_full_exec_insn): ... this. Updated all users.
8423         (record_restore): Renamed to ...
8424         (record_full_restore): ... this. Updated all users.
8425         (record_async_inferior_event_token): Renamed to ...
8426         (record_full_async_inferior_event_token): ... this.
8427         Updated all users.
8428         (record_async_inferior_event_handler): Renamed to ...
8429         (record_full_async_inferior_event_handler): ... this.
8430         Updated all users.
8431         (record_core_open_1): Renamed to ...
8432         (record_full_core_open_1): ... this. Updated all users.
8433         (record_open_1): Renamed to ...
8434         (record_full_open_1): ... this. Updated all users.
8435         (record_open): Renamed to ...
8436         (record_full_open): ... this. Updated all users.
8437         (record_close): Renamed to ...
8438         (record_full_close): ... this. Updated all users.
8439         (record_resume_step): Renamed to ...
8440         (record_full_resume_step): ... this. Updated all users.
8441         (record_resumed): Renamed to ...
8442         (record_full_resumed): ... this. Updated all users.
8443         (record_execution_dir): Renamed to ...
8444         (record_full_execution_dir): ... this. Updated all users.
8445         (record_resume): Renamed to ...
8446         (record_full_resume): ... this. Updated all users.
8447         (record_get_sig): Renamed to ...
8448         (record_full_get_sig): ... this. Updated all users.
8449         (record_sig_handler): Renamed to ...
8450         (record_full_sig_handler): ... this. Updated all users.
8451         (record_wait_cleanups): Renamed to ...
8452         (record_full_wait_cleanups): ... this. Updated all users.
8453         (record_wait_1): Renamed to ...
8454         (record_full_wait_1): ... this. Updated all users.
8455         (record_wait): Renamed to ...
8456         (record_full_wait): ... this. Updated all users.
8457         (record_stopped_by_watchpoint): Renamed to ...
8458         (record_full_stopped_by_watchpoint): ... this. Updated all users.
8459         (record_disconnect): Renamed to ...
8460         (record_full_disconnect): ... this. Updated all users.
8461         (record_detach): Renamed to ...
8462         (record_full_detach): ... this. Updated all users.
8463         (record_mourn_inferior): Renamed to ...
8464         (record_full_mourn_inferior): ... this. Updated all users.
8465         (record_kill): Renamed to ...
8466         (record_full_kill): ... this. Updated all users.
8467         (record_stopped_data_address): Renamed to ...
8468         (record_full_stopped_data_address): ... this. Updated all users.
8469         (record_registers_change): Renamed to ...
8470         (record_full_registers_change): ... this. Updated all users.
8471         (record_store_registers): Renamed to ...
8472         (record_full_store_registers): ... this. Updated all users.
8473         (record_xfer_partial): Renamed to ...
8474         (record_full_xfer_partial): ... this. Updated all users.
8475         (record_breakpoint): Renamed to ...
8476         (record_full_breakpoint): ... this. Updated all users.
8477         (record_breakpoint_p): Renamed to ...
8478         (record_full_breakpoint_p): ... this. Updated all users.
8479         (record_breakpoints): Renamed to ...
8480         (record_full_breakpoints): ... this. Updated all users.
8481         (record_sync_record_breakpoints): Renamed to ...
8482         (record_full_sync_record_breakpoints): ... this.
8483         Updated all users.
8484         (record_init_record_breakpoints): Renamed to ...
8485         (record_full_init_record_breakpoints): ... this.
8486         Updated all users.
8487         (record_insert_breakpoint): Renamed to ...
8488         (record_full_insert_breakpoint): ... this. Updated all users.
8489         (record_remove_breakpoint): Renamed to ...
8490         (record_full_remove_breakpoint): ... this. Updated all users.
8491         (record_can_execute_reverse): Renamed to ...
8492         (record_full_can_execute_reverse): ... this. Updated all users.
8493         (record_get_bookmark): Renamed to ...
8494         (record_full_get_bookmark): ... this. Updated all users.
8495         (record_goto_bookmark): Renamed to ...
8496         (record_full_goto_bookmark): ... this. Updated all users.
8497         (record_async): Renamed to ...
8498         (record_full_async): ... this. Updated all users.
8499         (record_can_async_p): Renamed to ...
8500         (record_full_can_async_p): ... this. Updated all users.
8501         (record_is_async_p): Renamed to ...
8502         (record_full_is_async_p): ... this. Updated all users.
8503         (record_execution_direction): Renamed to ...
8504         (record_full_execution_direction): ... this. Updated all users.
8505         (record_info): Renamed to ...
8506         (record_full_info): ... this. Updated all users.
8507         (record_delete): Renamed to ...
8508         (record_full_delete): ... this. Updated all users.
8509         (record_is_replaying): Renamed to ...
8510         (record_full_is_replaying): ... this. Updated all users.
8511         (record_goto_entry): Renamed to ...
8512         (record_full_goto_entry): ... this. Updated all users.
8513         (record_goto_begin): Renamed to ...
8514         (record_full_goto_begin): ... this. Updated all users.
8515         (record_goto_end): Renamed to ...
8516         (record_full_goto_end): ... this. Updated all users.
8517         (record_goto): Renamed to ...
8518         (record_full_goto): ... this. Updated all users.
8519         (init_record_ops): Renamed to ...
8520         (init_record_full_ops): ... this. Updated all users.
8521         (record_core_resume): Renamed to ...
8522         (record_full_core_resume): ... this. Updated all users.
8523         (record_core_kill): Renamed to ...
8524         (record_full_core_kill): ... this. Updated all users.
8525         (record_core_fetch_registers): Renamed to ...
8526         (record_full_core_fetch_registers): ... this. Updated all users.
8527         (record_core_prepare_to_store): Renamed to ...
8528         (record_full_core_prepare_to_store): ... this. Updated all users.
8529         (record_core_store_registers): Renamed to ...
8530         (record_full_core_store_registers): ... this. Updated all users.
8531         (record_core_xfer_partial): Renamed to ...
8532         (record_full_core_xfer_partial): ... this. Updated all users.
8533         (record_core_insert_breakpoint): Renamed to ...
8534         (record_full_core_insert_breakpoint): ... this. Updated all users.
8535         (record_core_remove_breakpoint): Renamed to ...
8536         (record_full_core_remove_breakpoint): ... this. Updated all users.
8537         (record_core_has_execution): Renamed to ...
8538         (record_full_core_has_execution): ... this. Updated all users.
8539         (init_record_core_ops): Renamed to ...
8540         (init_record_full_core_ops): ... this. Updated all users.
8541         (cmd_record_restore): Renamed to ...
8542         (cmd_record_full_restore): ... this. Updated all users.
8543         (record_save_cleanups): Renamed to ...
8544         (record_full_save_cleanups): ... this. Updated all users.
8545         (cmd_record_start): Renamed to ...
8546         (cmd_record_full_start): ... this. Updated all users.
8547         (set_record_insn_max_num): Renamed to ...
8548         (set_record_full_insn_max_num): ... this. Updated all users.
8549         (set_record_command): Renamed to ...
8550         (set_record_full_command): ... this. Updated all users.
8551         (show_record_command): Renamed to ...
8552         (show_record_full_command): ... this. Updated all users.
8553         (_initialize_record): Renamed to ...
8554         (_initialize_record_full): ... this. Updated all users.
8555
8556 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8557
8558         * record.h: Split into this and ...
8559         * record-full.h: ... this.
8560         * record.c: Split into this and ...
8561         * record-full.c: ... this.
8562         * target.h (target_ops): Add new fields to_info_record,
8563         to_save_record, to_delete_record, to_record_is_replaying,
8564         to_goto_record_begin, to_goto_record_end, to_goto_record.
8565         (target_info_record): New.
8566         (target_save_record): New.
8567         (target_supports_delete_record): New.
8568         (target_delete_record): New.
8569         (target_record_is_replaying): New.
8570         (target_goto_record_begin): New.
8571         (target_goto_record_end): New.
8572         (target_goto_record): New.
8573         * target.c (target_info_record): New.
8574         (target_save_record): New.
8575         (target_supports_delete_record): New.
8576         (target_delete_record): New.
8577         (target_record_is_replaying): New.
8578         (target_goto_record_begin): New.
8579         (target_goto_record_end): New.
8580         (target_goto_record): New.
8581         * record.h: Declare struct cmd_list_element.
8582         (record_cmdlist): New declaration.
8583         (set_record_cmdlist): New declaration.
8584         (show_record_cmdlist): New declaration.
8585         (info_record_cmdlist): New declaration.
8586         (cmd_record_goto): New declaration.
8587         * record.c: Remove unnecessary includes.
8588         Include inferior.h.
8589         (cmd_record_goto): Remove declaration.
8590         (record_cmdlist): Now extern. Initialize.
8591         (set_record_cmdlist): Now extern. Initialize.
8592         (show_record_cmdlist): Now extern. Initialize.
8593         (info_record_cmdlist): Now extern. Initialize.
8594         (find_record_target): New.
8595         (require_record_target): New.
8596         (cmd_record_start): Update.
8597         (cmd_record_delete): Remove target-specific code.
8598         Call target_delete_record.
8599         (cmd_record_stop): Unpush any record target.
8600         (set_record_insn_max_num): Move to record-full.c
8601         (set_record_command): Add comment.
8602         (show_record_command): Add comment.
8603         (info_record_command): Update comment.
8604         Remove target-specific code.
8605         Call the record target's to_info_record.
8606         (cmd_record_start): New.
8607         (cmd_record_goto): Now extern.
8608         Remove target-specific code.
8609         Call target_goto_begin,  target_goto_end, or target_goto.
8610         (_initialize_record): Move record target ops initialization to
8611         record-full.c.
8612         Change "record" command help text.
8613         Move "record restore", "record set", and "record show" commands to
8614         record-full.c.
8615         * Makefile.in (SFILES): Add record-full.c.
8616         (HFILES_NO_SRCDIR): Add record-full.h.
8617         (COMMON_OBS): Add record-full.o.
8618         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8619         * arm-tdep.c: Include record-full.h.
8620         * i386-linux-tdep.c: Include record-full.h instead of record.h.
8621         * i386-tdep.c: Include record-full.h.
8622         * infrun.c: Include record-full.h.
8623         * linux-record.c: Include record-full.h.
8624         * moxie-tdep.c: Include record-full.h.
8625         * record-full.c: Include record-full.h.
8626         Change module comment.
8627         (set_record_full_cmdlist): New.
8628         (show_record_full_cmdlist): New.
8629         (record_full_cmdlist): New.
8630         (record_goto_insn): New declaration.
8631         (record_save): New declaration.
8632         (record_check_insn_num): Change query string.
8633         (record_info): New.
8634         (record_delete): New.
8635         (record_is_replaying): New.
8636         (record_goto_entry): New.
8637         (record_goto_begin): New.
8638         (record_goto_end): New.
8639         (record_goto): New.
8640         (init_record_ops): Update.
8641         (init_record_core_ops): Update.
8642         (cmd_record_save): Rename to record_save. Remove target and arg checks.
8643         (cmd_record_start): New.
8644         (set_record_insn_max_num): Moved from record.c
8645         (set_record_full_command): New.
8646         (show_record_full_command): New.
8647         (_initialize_record_full): New.
8648
8649 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8650
8651         * target.h (add_deprecated_target_alias): New.
8652         * target.c (add_deprecated_target_alias): New.
8653
8654 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8655
8656         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8657         and signal.h.
8658         (linux_supports_btrace): Add kernel and
8659         cpuid check.
8660         (kernel_supports_btrace): New function.
8661         (cpu_supports_btrace): New function.
8662         (intel_supports_btrace): New function.
8663
8664 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8665
8666         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8667         * remote.c: Include btrace.h.
8668         (struct btrace_target_info): New struct.
8669         (remote_supports_btrace): New function.
8670         (send_Qbtrace): New function.
8671         (remote_enable_btrace): New function.
8672         (remote_disable_btrace): New function.
8673         (remote_teardown_btrace): New function.
8674         (remote_read_btrace): New function.
8675         (init_remote_ops): Add btrace ops.
8676         (enum <unnamed>): Add btrace packets.
8677         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8678         (_initialize_remote): Add packet configuration for branch tracing.
8679
8680 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8681
8682         * features/btrace.dtd: New file.
8683         * Makefile.in (XMLFILES): Add btrace.dtd.
8684         * btrace.h (parse_xml_btrace): New declaration.
8685         * btrace.c: Include xml-support.h.
8686         (parse_xml_btrace): New function.
8687         (parse_xml_btrace_block): New function.
8688         (block_attributes): New struct.
8689         (btrace_attributes): New struct.
8690         (btrace_children): New struct.
8691         (btrace_elements): New struct.
8692
8693 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8694
8695         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8696         (amd64_linux_enable_btrace): New.
8697         (amd64_linux_disable_btrace): New.
8698         (amd64_linux_teardown_btrace): New.
8699         (_initialize_amd64_linux_nat): Initialize btrace ops.
8700         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8701         (i386_linux_enable_btrace): New.
8702         (i386_linux_disable_btrace): New.
8703         (i386_linux_teardown_btrace): New.
8704         (_initialize_i386_linux_nat): Initialize btrace ops.
8705         * config/i386/linux.mh: Add linux-btrace.o.
8706         * config/i386/linux64.mh: Add linux-btrace.o.
8707
8708 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8709
8710         * common/linux_btrace.h: New file.
8711         * common/linux_btrace.c: New file.
8712         * Makefile.in (SFILES): Add btrace.c.
8713         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8714         (COMMON_OBS): Add btrace.o.
8715         (linux-btrace.o): New rule.
8716
8717 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8718
8719         * target.h: Include btrace.h.
8720         (struct target_ops) <to_supports_btrace, to_enable_btrace,
8721         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8722         * target.c (target_supports_btrace): New function.
8723         (target_enable_btrace): New function.
8724         (target_disable_btrace): New function.
8725         (target_teardown_btrace): New function.
8726         (target_read_btrace): New function.
8727         * btrace.h: New file.
8728         * btrace.c: New file.
8729         * Makefile.in: Add btrace.c.
8730         * gdbthread.h: Include btrace.h.
8731         (struct thread_info): Add btrace field.
8732         * thread.c: Include btrace.h.
8733         (clear_thread_inferior_resources): Call target_teardown_btrace.
8734         * common/btrace-common.h: New file.
8735
8736 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8737
8738         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8739         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8740         kill_status to outer block.
8741
8742 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8743
8744         Fix entry-values if the callee called a noreturn function.
8745         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8746         get_frame_address_in_block.  Add new comment.
8747
8748 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8749
8750         Fix entry-values in C++ across CUs.
8751         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8752         lookup_minimal_symbol.  Add a comment.
8753         * dwarf2read.c
8754         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8755         DW_AT_linkage_name.
8756
8757 2013-03-08  Yao Qi  <yao@codesourcery.com>
8758
8759         * tracepoint.c (_initialize_tracepoint): Indent the code.
8760
8761 2013-03-08  Pedro Alves  <palves@redhat.com>
8762
8763         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8764         (parse_find_args, find_command): Change type of pattern buffer
8765         locals to 'gdb_byte *'.
8766
8767 2013-03-08  Stan Shebs  <stan@codesourcery.com>
8768             Hafiz Abid Qadeer  <abidh@codesourcery.com>
8769
8770         * NEWS: Mention set and show trace-buffer-size commands.
8771         Mention new packet.
8772         * target.h (struct target_ops): New method
8773         to_set_trace_buffer_size.
8774         (target_set_trace_buffer_size): New macro.
8775         * target.c (update_current_target): Set up new method.
8776         * tracepoint.c (trace_buffer_size): New global.
8777         (start_tracing): Send it to the target.
8778         (set_trace_buffer_size): New function.
8779         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8780         * remote.c (remote_set_trace_buffer_size): New function.
8781         (_initialize_remote): Use it.
8782         (QTBuffer:size) New remote command.
8783         (PACKET_QTBuffer_size): New enum.
8784         (remote_protocol_features): Add an entry for
8785         PACKET_QTBuffer_size.
8786
8787 2013-03-08  Tom Tromey  <tromey@redhat.com>
8788
8789         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8790         variable.
8791
8792 2013-03-07  Pedro Alves  <palves@redhat.com>
8793
8794         * target.c (target_read_stralloc, target_fileio_read_alloc):
8795         *Cast pointer to 'gdb_byte *' in target call.
8796
8797 2013-03-07  Pedro Alves  <palves@redhat.com>
8798
8799         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8800         call.
8801
8802 2013-03-07  Keith Seitz  <keiths@redhat.com>
8803
8804         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8805         (trace_pass_command): Likewise.
8806         * cli/cli-cmds.c: Include cli/cli-utils.h.
8807         (source_command): Use skip-spaces.
8808         (disassemble_command): Likewise.
8809         * findcmd.c: Include cli/cli-utils.h.
8810         (parse_find_args): Use skip_spaces.
8811         * go32-nat.c: Include cli/cli-utils.h.
8812         (go32_sldt): Use skip_spaces.
8813         (go32_sgdt): Likewise.
8814         (go32_sidt): Likewise.
8815         (go32_pde): Likewise.
8816         (go32_pte): Likewise.
8817         (go32_pte_for_address): Likewise.
8818         * infcmd.c: Include cli/cli-utils.h.
8819         (registers_info): Use skip_spaces.
8820         * linux-tdep.c (read_mapping): Use skip_spaces_const.
8821         (linux_info_proc): Likewise.
8822         * linux-thread-db.c: Include cli/cli-utils.h.
8823         (info_auto_load_libthread_db): Use skip_spaces_const.
8824         * m32r-rom.c: Include cli/cli-utils.h.
8825         (m32r_upload_command): Use skip_spaces.
8826         * maint.c: Include cli/cli-utils.h.
8827         (maintenance_translate_address): Use skip_spaces.
8828         * mi/mi-parse.c: Include cli/cli-utils.h.
8829         (mi_parse_argv): Use skip_spaces.
8830         (mi_parse): Likewise.
8831         * minsyms.c: Include cli/cli-utils.h.
8832         (msymbol_hash_iw): Use skip_spaces_const.
8833         * objc-lang.c: Include cli/cli-utils.h.
8834         (parse_selector): Use skip_spaces.
8835         (parse_method): Likewise.
8836         * python/python.c: Include cli/cli-utils.h.
8837         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8838         (python_command)[HAVE_PYTHON]: Likewise.
8839         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8840         * remote-m32r-sdi.c: Include cli/cli-utils.h.
8841         (m32r_load): Use skip_spaces.
8842         * serial.c: Include cli/cli-utils.h.
8843         (serial_open): Use skip_spaces_const.
8844         * stack.c: Include cli/cli-utils.h.
8845         (parse_frame_specification_1): Use skip_spaces_const.
8846         * symfile.c: Include cli/cli-utils.h.
8847         (set_ext_lang_command): Use skip_spaces.
8848         * symtab.c: Include cli/cli-utils.h.
8849         (rbreak_command): Use skip_spaces.
8850         * thread.c (thread_name_command): Use skip_spaces.
8851         * tracepoint.c (validate_actionline): Use skip_spaces.
8852         (encode_actions_1): Likewise.
8853         (trace_find_range_command): Likewise.
8854         (trace_find_outside_command): Likewise.
8855         (trace_dump_actions): Likewise.
8856
8857 2013-03-07  Pedro Alves  <palves@redhat.com>
8858
8859         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8860         * expprint.c (print_subexp_standard): Likewise.
8861         * utils.c (host_char_to_target): Likewise.
8862         * valprint.c (generic_emit_char, generic_printstr): Likewise.
8863         * varobj.c (value_get_print_value): Change type of local to char*.
8864         Cast it gdb_byte * in call to language printer.
8865
8866 2013-03-07  Pedro Alves  <palves@redhat.com>
8867
8868         * charset.c (struct wchar_iterator) <input>: Change type to 'const
8869         gdb_byte *'.
8870         (make_wchar_iterator): Remove cast to char*.
8871         (wchar_iterate): Change type of local.
8872
8873 2013-03-07  Pedro Alves  <palves@redhat.com>
8874
8875         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8876         for 'regcache->register_status'.
8877
8878 2013-03-07  Pedro Alves  <palves@redhat.com>
8879
8880         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8881         int.
8882
8883 2013-03-07  Pedro Alves  <palves@redhat.com>
8884
8885         * stap-probe.c (handle_stap_probe): Add cast to char*.
8886
8887 2013-03-07  Pedro Alves  <palves@redhat.com>
8888
8889         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8890         RECORD_MSGRCV>: Pass a signed variable to
8891         regcache_raw_read_signed, instead of an unsigned one.
8892
8893 2013-03-07  Pedro Alves  <palves@redhat.com>
8894
8895         * remote-notif.c (notif_debug): Change type to int.
8896         * remote-notif.h (notif_debug): Likewise.
8897
8898 2013-03-07  Pedro Alves  <palves@redhat.com>
8899
8900         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8901
8902 2013-03-07  Pedro Alves  <palves@redhat.com>
8903
8904         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8905         * remote.h (hex2bin, bin2hex): ... here.
8906         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8907
8908 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
8909
8910         * utils.c (initialize_utils): Improve doc strings of "set/show
8911         width", "set/show height", and "set/show pagination".
8912
8913 2013-03-06  Keith Seitz  <keiths@redhat.com>
8914
8915         * ax-gdb.c (gen_printf): Make FORMAT const.
8916         * ax-gdb.h (gen_printf): Likewise.
8917         * ax-general.c (ax_string): Make STR const.
8918         * ax.h (ax_string): Likewise.
8919
8920 2013-03-06  Doug Evans  <dje@google.com>
8921
8922         * elfread.c (elf_symfile_read): Move debugging printf to more
8923         logical location.
8924
8925 2013-03-06  Pedro Alves  <palves@redhat.com>
8926
8927         * python/py-utils.c (target_string_to_unicode): Delete function.
8928         * python/python-internal.h (target_string_to_unicode): Delete
8929         declaration.
8930
8931 2013-03-06  Pierre Muller  <muller@sourceware.org>
8932
8933         * linespec.c (get_current_search_block): ARI fix, use (void)
8934         for empty parameter list.
8935
8936 2013-03-05  Doug Evans  <dje@google.com>
8937
8938         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8939         of old ada_lookup_symbol_list.  In !full_search case, don't
8940         search superblocks.
8941         (ada_lookup_symbol_list): Delete arg full_search, all callers
8942         updated.  Call ada_lookup_symbol_list_worker.
8943         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8944         * ada-lang.h (ada_lookup_symbol_list): Update.
8945         * language.h (language_defn): Update comment for
8946         la_iterate_over_symbols.
8947         * linespec.c (iterate_over_file_blocks): New function.
8948         (iterate_over_all_matching_symtabs): Call it.
8949         (lookup_prefix_sym): Ditto.
8950         (get_current_search_block): New function.
8951         (get_search_block): Delete.
8952         (find_label_symbols): Call get_current_search_block.
8953         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8954         * symtab.c (iterate_over_symbols): Don't search superblocks.
8955
8956 2013-03-05  Yao Qi  <yao@codesourcery.com>
8957
8958         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8959         parameter VAR's type from "unsigned int" to "int".
8960         * command.h (var_zuinteger_unlimited): Update its comments.
8961         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8962
8963 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
8964
8965         * NEWS: Mention new target x86_64-*-cygwin*.
8966
8967 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
8968
8969         * configure.host: Add x86_64-*-cygwin* as host.
8970         * configure.tgt: Add x86_64-*-cygwin* as target.
8971         * config/i386/cygwin64.mh: New file.
8972
8973 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8974
8975         * linespec.c (decode_line_2): Fix duplicate request off by two message.
8976
8977 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8978
8979         * linespec.c (struct linespec_canonical_name): New.
8980         (struct linespec_state): Change canonical_names type to it.
8981         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
8982         xrealloc element size.  Initialize the different CANONICAL fields.
8983         (canonical_to_fullform): New.
8984         (filter_results): Use it.  Add variables canonical, fullform and
8985         cleanup.
8986         (struct decode_line_2_item, decode_line_2_compare_items): New.
8987         (decode_line_2): Remove variables iter and item_names, add variables
8988         items and items_count.  Modify the code for these new variables.
8989
8990 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
8991
8992         * coff-pe-read.c (read_pe_exported_syms): Don't return without
8993         calling do_cleanup.
8994
8995 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
8996
8997         * tracepoint.c (build_traceframe_info): Add code for byte order.
8998
8999 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
9000
9001         * v850-tdep.c: (v850e2_register_name): Revise system register
9002         names to match current V850E2M architecture specifications.
9003         Update register number enum comments too.
9004
9005 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9006             Pedro Alves  <palves@redhat.com>
9007
9008         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9009         to END_ADDR.
9010         (tilegx_skip_prologue): Limit prologue analysis to section end.
9011
9012 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9013
9014         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9015         use it.
9016
9017 2013-03-01  Pedro Alves  <palves@redhat.com>
9018
9019         Use gdb_byte for bytes from the program being debugged.
9020
9021         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9022         Change type of local 'buf' to gdb_byte.
9023         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9024         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9025         * cris-tdep.c (cris_sigcontext_addr)
9026         (cris_sigtramp_frame_unwind_cache): Likewise.
9027         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9028         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9029         Likewise.
9030         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9031         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9032         (hppa32_hpux_search_dummy_call_sequence)
9033         (hppa_hpux_supply_save_state): Likewise.
9034         * hppa-linux-tdep.c (insns_match_pattern)
9035         (hppa_linux_find_global_pointer): Likewise.
9036         * hppa-tdep.c (hppa_in_function_epilogue_p)
9037         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9038         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9039         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9040         (i386fbsd_collect_uthread): Likewise.
9041         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9042         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9043         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9044         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9045         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9046         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9047         (ia64_libunwind_frame_prev_register)
9048         (ia64_libunwind_sigtramp_frame_this_id)
9049         (ia64_find_global_pointer_from_dynamic_section)
9050         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9051         (ia64_unwind_pc): Likewise.
9052         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9053         * m68hc11-tdep.c (m68hc11_push_dummy_call)
9054         (m68hc11_extract_return_value): Likewise.
9055         * m68klinux-nat.c (fetch_register, store_register): Likewise.
9056         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9057         (mep_get_insn, mep_push_dummy_call): Likewise.
9058         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9059         (mips_linux_in_dynsym_stub): Likewise.
9060         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9061         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9062         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9063         to gdb_byte.
9064         * remote-mips.c (mips_set_register): Likewise.
9065         * remote-sim.c (gdbsim_fetch_register): Likewise.
9066         * score-tdep.c (score7_fetch_inst): Change type of parameter
9067         'memblock' and local 'buf' to gdb_byte.
9068         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9069         Change type of local 'buf' to gdb_byte.  Adjust.
9070         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9071         to gdb_byte**.
9072         (score7_analyze_prologue): Change type of 'memblock' and
9073         'memblock_ptr' locals to gdb_byte*.
9074         * sh64-tdep.c (sh64_extract_return_value)
9075         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9076         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9077         * solib-pa64.c (pa64_solib_create_inferior_hook)
9078         (pa64_open_symbol_file_object): Remove local 'buf'.
9079         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9080         (som_open_symbol_file_object): Likewise.
9081         * solib-spu.c (spu_current_sos): Likewise.
9082         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9083         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9084         (spu_store_registers): Likewise.
9085         * target.c (debug_print_register): Likewise.
9086         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9087         * xstormy16-tdep.c (xstormy16_store_return_value)
9088         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9089         (xstormy16_find_jmp_table_entry): Likewise.
9090
9091 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9092
9093         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9094         (tilegx_gdbarch_init): Install it.
9095
9096 2013-02-28  Tom Tromey  <tromey@redhat.com>
9097
9098         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9099         PyLong_Check.
9100
9101 2013-02-28  Doug Evans  <dje@google.com>
9102
9103         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9104         * python/python.c (gdbpy_find_pc_line): Ditto.
9105
9106 2013-02-28  Tom Tromey  <tromey@redhat.com>
9107
9108         * contrib/excheck.py: New file.
9109         * contrib/exsummary.py: New file.
9110         * contrib/gcc-with-excheck: New file.
9111
9112 2013-02-28  Tom Tromey  <tromey@redhat.com>
9113
9114         * python/python.c (gdbpy_print_stack): Call begin_line and
9115         fprintf_filtered inside TRY_CATCH.
9116
9117 2013-02-28  Tom Tromey  <tromey@redhat.com>
9118
9119         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9120         inside TRY_CATCH.
9121
9122 2013-02-28  Tom Tromey  <tromey@redhat.com>
9123
9124         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9125         frame_object_to_frame_info inside TRY_CATCH.
9126
9127 2013-02-28  Tom Tromey  <tromey@redhat.com>
9128
9129         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9130         TRY_CATCH.
9131
9132 2013-02-28  Tom Tromey  <tromey@redhat.com>
9133
9134         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9135
9136 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
9137
9138         * windows-nat.c: Throughout, fix format strings and casts of
9139         printf-like functions to avoid type related warnings on all
9140         platforms.
9141         (handle_output_debug_string): Fetch context information address
9142         from debug string using string_to_core_addr.
9143
9144 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9145
9146         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9147         * regformats/reg-tilegx32.dat: New.
9148
9149 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9150
9151         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9152
9153 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9154
9155         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9156
9157 2013-02-27  Yao Qi  <yao@codesourcery.com>
9158             Pedro Alves  <palves@redhat.com>
9159
9160         * tracepoint.c (tfile_trace_find): For tfind
9161         pc/tp/range/outside, look for the next trace frame instead of
9162         always starting from frame 0.
9163
9164 2013-02-26  Anthony Green  <green@moxielogic.com>
9165
9166         * configure.tgt: Add support for moxie-*-rtems* target.
9167
9168 2013-02-25  Pedro Alves  <palves@redhat.com>
9169
9170         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9171         warning text.
9172
9173 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9174
9175         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9176         if $fp is used as the virtual frame pointer.
9177
9178 2013-02-23  Alan Modra  <amodra@gmail.com>
9179
9180         * elfread.c (elf_symtab_read): Do not use udata.p here to find
9181         symbol size.
9182         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9183         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9184         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9185         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9186
9187 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9188
9189         Code cleanup.
9190         * elfread.c (build_id_bfd_get): Make the return type const.
9191         (build_id_verify): Make the check parameter const.
9192         (build_id_to_debug_filename): Make the build_id parameter and variable
9193         data const.
9194         (find_separate_debug_file_by_buildid): Make the variable build_id const.
9195
9196 2013-02-21  Alan Modra  <amodra@gmail.com>
9197
9198         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9199
9200 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
9201
9202         Add a new method 'disassemble' to gdb.Architecture class.
9203         * python/py-arch.c (archpy_disassmble): Implementation of the
9204         new method gdb.Architecture.disassemble.
9205         (arch_object_methods): Add entry for the new method.
9206
9207 2013-02-20  Jiong Wang  <jiwang@tilera.com>
9208
9209         * MAINTAINERS (Write After Approval): Add myself to the list.
9210
9211 2013-02-19  Pedro Alves  <palves@redhat.com>
9212
9213         Garbage collect 'struct monitor_ops'::load_routine.
9214
9215         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9216         * monitor.c (monitor_load): No longer call
9217         current_monitor->load_routine.
9218         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9219         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9220         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9221
9222 2013-02-19  Pedro Alves  <palves@redhat.com>
9223
9224         PR gdb/15161
9225
9226         Harmonize with generic_load.
9227
9228         * monitor.c: Include "readline/readline.h".
9229         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
9230         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
9231         long/strtol for the 'load_offset' local.  Error out if no argument
9232         is given or if too many arguments are given.  Tilde expand the
9233         passed in file name.
9234
9235 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9236
9237         PR gdb/15161
9238         * symfile.c (load_section_data): Change type of load_offset
9239         to CORE_ADDR.
9240         (generic_load): User strtoulst instead of strtoul for conversion
9241         of load_offset.
9242
9243 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9244
9245         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9246          for return address, "lr" register, saved on stack.
9247         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9248         after we invoke tilegx_analyze_prologue.
9249
9250 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9251
9252         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9253
9254 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9255
9256         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9257
9258 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9259
9260         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9261         (tilegx_write_pc): New function.
9262         (tilegx_cannot_reference_register): Return zero if REGNO
9263         is TILEGX_FAULTNUM_REGNUM.
9264         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9265         (tilegx_register_name): Add handling of "faultnum" register.
9266         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9267         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9268         handling of TILEGX_FAULTNUM_REGNUM.
9269         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9270
9271 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9272
9273         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9274         should be aligned to 64bit.
9275
9276 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9277
9278         * windows-nat.c (windows_xfer_memory): Fix debug-output
9279         for LLP64.
9280
9281 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
9282
9283         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9284         Don't check DSP register number if HAVE_DSP is not set.
9285
9286 2013-02-19  Alan Modra  <amodra@gmail.com>
9287
9288         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
9289         throughout file instead.
9290         (build_id_bfd_get): Update to use new elf_tdata build_id field.
9291         Don't xmalloc return value.
9292         (build_id_verify): Similarly.  Don't xfree.
9293         (build_id_to_debug_filename): Update.
9294         (find_separate_debug_file_by_buildid): Update, don't xfree.
9295
9296 2013-02-18  Tom Tromey  <tromey@redhat.com>
9297
9298         PR gdb/15102:
9299         * dwarf2read.c (read_subrange_type): Use result of
9300         'check_typedef'.
9301
9302 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9303
9304         * frame.c: Remove one extra white space after #include
9305         directive.
9306
9307 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9308
9309         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9310
9311 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9312
9313         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9314         and dir commands into an if block.
9315
9316 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
9317
9318         * python/py-breakpoint (struct pybp_code):  Use int instead of
9319         enum type_code.
9320
9321 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
9322             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9323
9324         * NEWS: Mention new field "trace-file".
9325         * tracepoint.c (trace_status_mi): Output "trace-file" field.
9326         (tfile_open): Record the trace file's filename in the trace
9327         status.
9328         (tfile_files_info): Mention the name of the trace file.
9329         Check the "filename" field explicitely.
9330         (trace_status_command): Explicitely check "filename" field.
9331         (trace_find_command): Ditto.
9332         (trace_find_pc_command): Ditto.
9333         (trace_find_tracepoint_command): Ditto.
9334         (trace_find_line_command): Ditto.
9335         (trace_find_range_command): Ditto.
9336         (trace_find_outside_command): Ditto.
9337         * tracepoint.h (struct trace_status) <from_file>: Rename it
9338         to "filename" and make it hold the trace file's filename
9339         instead of a boolean.
9340         * remote.c (remote_get_trace_status): Initialize "filename"
9341         field with NULL instead of 0.
9342
9343 2013-02-15  Yao Qi  <yao@codesourcery.com>
9344
9345         * remote.c: Fix a typo.
9346
9347 2013-02-14  Pierre Muller  <muller@sourceware.org>
9348
9349         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9350
9351 2013-02-14  Pedro Alves  <palves@redhat.com>
9352
9353         * utils.c (savestring): Don't #undef it.  Move function to
9354         common/common-utils.c.
9355         * common/common-utils.c: Include gdb_string.h.
9356         (savestring): Move here from utils.c.
9357         * common/common-utils.h (savestring): Declare.
9358
9359 2013-02-14  Pedro Alves  <palves@redhat.com>
9360
9361         * utils.c (savestring): Rename parameter 'size' to 'len'.
9362
9363 2013-02-14  Pedro Alves  <palves@redhat.com>
9364             Yufeng Zhang  <yufeng.zhang@arm.com>
9365
9366         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9367         (aarch64_inferior_data, struct aarch64_inferior_data):
9368         Delete.
9369         (struct aarch64_process_info): New.
9370         (aarch64_process_list): New global.
9371         (aarch64_find_process_pid, aarch64_add_process)
9372         (aarch64_process_info_get): New functions.
9373         (aarch64_inferior_data_get): Delete.
9374         (aarch64_process_info_get): New function.
9375         (aarch64_forget_process): New function.
9376         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
9377         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9378         aarch64_get_debug_reg_state.
9379         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9380         instead of linux_nat_iterate_watchpoint_lwps.
9381         (aarch64_linux_new_fork): New function.
9382         (aarch64_linux_child_post_startup_inferior): Use
9383         aarch64_forget_process instead of aarch64_init_debug_reg_state.
9384         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9385         (aarch64_linux_remove_hw_breakpoint)
9386         (aarch64_handle_aligned_watchpoint)
9387         (aarch64_handle_unaligned_watchpoint)
9388         (aarch64_linux_insert_watchpoint)
9389         (aarch64_linux_remove_watchpoint)
9390         (aarch64_linux_stopped_data_address): Adjust to pass the current
9391         process id to aarch64_debug_reg_state.
9392         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9393         linux_nat_new_fork hook, and aarch64_forget_process as
9394         linux_nat_forget_process hook; remove the call to
9395         register_inferior_data_with_cleanup.
9396
9397 2013-02-14  Pedro Alves  <palves@redhat.com>
9398
9399         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9400         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9401         lval_memory.
9402
9403 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
9404             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9405
9406         * tracepoint.h (validate_trace_state_variable_name): Declare.
9407         * tracepoint.c (validate_trace_state_variable_name): New.
9408         (trace_variable_command): Parse the trace state variable's name
9409         without using parse_expression.  Do several validations.
9410         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9411         trace state variable's name with parse_expression.  Validate it.
9412
9413 2013-02-14  Yao Qi  <yao@codesourcery.com>
9414
9415         * infcmd.c (breakpoint_proceeded): Remove it.
9416
9417 2013-02-14  Yao Qi  <yao@codesourcery.com>
9418
9419         * tracepoint.c (end_actions_pseudocommand): Make it static.
9420         (while_stepping_pseudocommand): Likewise.
9421         * tracepoint.h (end_actions_pseudocommand): Remove the
9422         declaration.
9423         (while_stepping_pseudocommand): Likewise.
9424
9425 2013-02-14  Yao Qi  <yao@codesourcery.com>
9426
9427         * cli/cli-decode.c (help_cmd): Remove the declaration of
9428         "cmdlist".
9429         (help_all): Likewise.
9430
9431 2013-02-13  Pedro Alves  <palves@redhat.com>
9432
9433         * amd64-linux-nat.c (update_debug_registers_callback):
9434         Update comment.
9435         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9436         iterate_over_lwps.
9437         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9438         i386_debug_reg_state.
9439         (amd64_linux_new_fork): New function.
9440         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9441         linux_nat_new_fork hook, and i386_forget_process as
9442         linux_nat_forget_process hook.
9443         * i386-linux-nat.c (update_debug_registers_callback):
9444         Update comment.
9445         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9446         iterate_over_lwps.
9447         (i386_linux_prepare_to_resume): Pass the lwp's pid to
9448         i386_debug_reg_state.
9449         (i386_linux_new_fork): New function.
9450         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9451         linux_nat_new_fork hook, and i386_forget_process as
9452         linux_nat_forget_process hook.
9453         * i386-nat.c (i386_init_dregs): Delete.
9454         (i386_inferior_data, struct i386_inferior_data):
9455         Delete.
9456         (struct i386_process_info): New.
9457         (i386_process_list): New global.
9458         (i386_find_process_pid, i386_add_process, i386_process_info_get):
9459         New functions.
9460         (i386_inferior_data_get): Delete.
9461         (i386_process_info_get): New function.
9462         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
9463         (i386_forget_process): New function.
9464         (i386_cleanup_dregs): Rewrite.
9465         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9466         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9467         (i386_stopped_data_address, i386_insert_hw_breakpoint)
9468         (i386_remove_hw_breakpoint): Adjust to pass the current process id
9469         to i386_debug_reg_state.
9470         (i386_use_watchpoints): Don't register inferior data.
9471         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9472         adjust comment.
9473         (i386_forget_process): Declare.
9474         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9475         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9476         New static globals.
9477         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9478         (add_initial_lwp): New, factored out from ...
9479         (add_lwp): ... this.  Don't check the number of lwps before
9480         calling linux_nat_new_thread.
9481         (linux_nat_iterate_watchpoint_lwps): Delete.
9482         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9483         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9484         forks and vforks.
9485         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9486         initial lwp.
9487         (linux_nat_kill, linux_nat_mourn_inferior): Call
9488         linux_nat_forget_process.
9489         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9490         (linux_nat_forget_process): New functions.
9491         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9492         type.
9493         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9494         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9495         types.
9496         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9497         (linux_nat_forget_process): New declarations.
9498
9499         * amd64fbsd-nat.c (super_mourn_inferior): New global.
9500         (amd64fbsd_mourn_inferior): New function.
9501         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9502         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9503
9504 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9505
9506         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9507         Adding _().
9508
9509 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9510
9511         * aarch64-linux-nat.c (debug_reg_change_callback)
9512         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9513         %s and phex().
9514
9515 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9516
9517         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9518         with LONGEST.
9519
9520 2013-02-13  Pedro Alves  <palves@redhat.com>
9521             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9522
9523         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9524
9525 2013-02-12  Tom Tromey  <tromey@redhat.com>
9526
9527         PR symtab/11464:
9528         * c-exp.y (lex_one_token): Initialize other fields of yylval on
9529         NAME return.
9530         (classify_inner_name): Remove 'first_name' argument, add
9531         'context'.  Remove unused variable.
9532         (yylex): Explicitly maintain the context type.  Exit loop earlier
9533         if NAME result is seen.
9534
9535 2013-02-12  Pedro Alves  <palves@redhat.com>
9536
9537         * amd64-darwin-tdep.c: Add (C) after Copyright.
9538         * cli/cli-cmds.h: Ditto.
9539         * cli/cli-decode.c: Ditto.
9540         * cli/cli-decode.h: Ditto.
9541         * cli/cli-dump.c: Ditto.
9542         * cli/cli-dump.h: Ditto.
9543         * cli/cli-interp.c: Ditto.
9544         * cli/cli-logging.c: Ditto.
9545         * cli/cli-script.c: Ditto.
9546         * cli/cli-script.h: Ditto.
9547         * cli/cli-setshow.c: Ditto.
9548         * cli/cli-setshow.h: Ditto.
9549         * cli/cli-utils.c: Ditto.
9550         * cli/cli-utils.h: Ditto.
9551         * config/alpha/nm-osf3.h: Ditto.
9552         * config/djgpp/djconfig.sh: Ditto.
9553         * config/i386/nm-fbsd.h: Ditto.
9554         * config/i386/nm-i386gnu.h: Ditto.
9555         * config/nm-linux.h: Ditto.
9556         * config/nm-nto.h: Ditto.
9557         * config/rs6000/nm-rs6000.h: Ditto.
9558         * config/sparc/nm-sol2.h: Ditto.
9559         * darwin-nat-info.c: Ditto.
9560         * dfp.c: Ditto.
9561         * dfp.h: Ditto.
9562         * gdb-demangle.h: Ditto.
9563         * i386-darwin-nat.c: Ditto.
9564         * i386-darwin-tdep.c: Ditto.
9565         * linux-fork.h: Ditto.
9566         * m32c-tdep.c: Ditto.
9567         * microblaze-linux-tdep.c: Ditto.
9568         * microblaze-rom.c: Ditto.
9569         * microblaze-tdep.c: Ditto.
9570         * microblaze-tdep.h: Ditto.
9571         * mips-linux-tdep.h: Ditto.
9572         * ppc-ravenscar-thread.c: Ditto.
9573         * ppc-ravenscar-thread.h: Ditto.
9574         * prologue-value.c: Ditto.
9575         * prologue-value.h: Ditto.
9576         * ravenscar-thread.c: Ditto.
9577         * ravenscar-thread.h: Ditto.
9578         * sparc-ravenscar-thread.c: Ditto.
9579         * sparc-ravenscar-thread.h: Ditto.
9580         * tilegx-linux-tdep.c: Ditto.
9581         * unwind_stop_reasons.def: Ditto.
9582         * windows-nat.h: Ditto.
9583         * xtensa-linux-tdep.c: Ditto.
9584         * xtensa-xtregs.c: Ditto.
9585         * regformats/regdat.sh: Ditto.
9586         * regformats/regdef.h: Ditto.
9587
9588 2013-02-12  Pedro Alves  <palves@redhat.com>
9589
9590         * break-catch-sig.c: Update copyright years.
9591
9592 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
9593
9594         Add support for a destructor for ui_out data and use it to
9595         provide a ui_out destructor.
9596         * ui-out.h: Declare the new ui_out destructor.
9597         (ui_out_impl): Add a field for data destructor in ui_out_impl.
9598         * ui-out.c (default_data_destroy): Add a default data destructor
9599         which does nothing.
9600         (default_ui_out_impl): Set the new data_destroy field to
9601         default_data_destroy
9602         (uo_data_destroy): Local function which invokes the data
9603         destructor if present.
9604         (clear_table): Local function which clears the table data of a
9605         ui_out object.
9606         (ui_out_destroy): Public function which frees a ui_out object.
9607         (ui_out_table_end): Use the new clear_table function.
9608         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9609         NULL.
9610         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9611         to NULL.
9612
9613 2013-02-11  Doug Evans  <dje@google.com>
9614
9615         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9616         (printf_decfloat): New function.  Broken out from ui_printf.
9617         Remove unnecessary code to shift the entire format string down.
9618         (printf_pointer): New function.
9619         (ui_printf): Code to print C strings, wide C strings, decfloats,
9620         and pointers moved to separate functions.
9621
9622 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9623
9624         * valops.c (value_assign): Handling bitfield offset in
9625         `lval_internalvar_component' case.
9626
9627 2013-02-08  Doug Evans  <dje@google.com>
9628
9629         * common/format.c (parse_format_string): Fix whitespace.
9630
9631 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
9632
9633         * stack.c (return_command): Work around uninitialized variable
9634         warning.
9635
9636 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
9637
9638         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9639         number of the registers from 36 to 34.
9640
9641 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9642
9643         * NEWS: Mention new AArch64 native and target support.
9644
9645 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9646
9647         * MAINTAINERS (Write After Approval): Add myself.
9648
9649 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
9650             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9651             Nigel Stephens  <nigel.stephens@arm.com>
9652             Yufeng Zhang  <yufeng.zhang@arm.com>
9653
9654         * aarch64-linux-nat.c: New file.
9655         * config/aarch64/linux.mh: New file.
9656         * configure.host: Add AArch64.
9657         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9658
9659 2013-02-07  Doug Evans  <dje@google.com>
9660
9661         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9662         disassemble command.
9663
9664 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9665
9666         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9667         set_gdbarch_fetch_tls_load_module_address.
9668
9669 2013-02-06  David S. Miller  <davem@davemloft.net>
9670
9671         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9672         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9673         * value.c (struct_return_convention): New function.
9674         (using_struct_return): Implement in terms of struct_return_convention.
9675         * value.h (struct_return_convention): Declare.
9676         * stack.c (return_command): Allow successful overriding of the return
9677         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9678
9679 2013-02-06  Tom Tromey  <tromey@redhat.com>
9680
9681         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9682         outside of TRY_CATCH.
9683
9684 2013-02-06  Yao Qi  <yao@codesourcery.com>
9685
9686         * mi/mi-interp.c: Include "tracepoint.h".
9687         (mi_tsv_modified): Declare.
9688         (mi_tsv_created, mi_tsv_deleted): Update declaration.
9689         (mi_interpreter_init): Call observer_attach_tsv_modified.
9690         (mi_tsv_modified): New.
9691         (mi_tsv_created, mi_tsv_deleted): Update.
9692         * tracepoint.c (trace_variable_command): Call
9693         observer_notify_tsv_modified if the initial value of tsv is
9694         changed.
9695         (delete_trace_state_variable): Call
9696         observer_notify_tsv_deleted earlier.
9697         (trace_variable_command): Caller update.
9698         (create_tsv_from_upload): Likewise.
9699         * observer.sh: Declare "struct trace_state_variable".
9700
9701         * NEWS: Mention the new MI notification "=tsv-modified".
9702
9703 2013-02-05  Doug Evans  <dje@google.com>
9704
9705         * completer.c (location_completer): Fix typo in comment.
9706
9707 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9708
9709         * breakpoint.c (add_location_to_breakpoint): Insert the location with
9710         ADDRESS sorted.
9711
9712 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9713
9714         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9715         Refactor if statement to avoid trailing || operator.
9716
9717 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
9718
9719         * NEWS: Add PowerPC FreeBSD as a new native configuration.
9720
9721 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
9722
9723         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9724         * configure.host: Add powerpc*-*-freebsd* target.
9725         * configure.tgt: Add target info for powerpc*-*-freebsd*.
9726         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9727         * config/powerpc/fbsd.mh: New file.
9728
9729 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
9730             Denys Vlasenko  <dvlasenk@redhat.com>
9731             Pedro Alves  <palves@redhat.com>
9732
9733         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9734         (struct elf_internal_linux_prpsinfo): Forward declare.
9735         * gdbarch.h, gdbarch.c: Regenerate.
9736         * linux-tdep.c: Include `cli/cli-utils.h'.
9737         (linux_fill_prpsinfo): New function.
9738         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
9739         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9740         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9741         depending on gdbarch pointer bitness.
9742         * ppc-linux-tdep.c: Include elf-bfd.h.
9743         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9744         on 32-bit.
9745
9746 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9747             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9748             Nigel Stephens  <nigel.stephens@arm.com>
9749             Yufeng Zhang  <yufeng.zhang@arm.com>
9750
9751         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9752
9753 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9754             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9755             Nigel Stephens  <nigel.stephens@arm.com>
9756             Yufeng Zhang  <yufeng.zhang@arm.com>
9757
9758         * aarch64-newlib-tdep.c: New file.
9759         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9760         aarch64*-*-elf.
9761         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9762         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9763         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9764         * osabi.c (gdb_osabi_names): Add "Newlib".
9765
9766 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9767             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9768             Nigel Stephens  <nigel.stephens@arm.com>
9769             Yufeng Zhang  <yufeng.zhang@arm.com>
9770
9771         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9772         (ALLDEPFILES): Add aarch64-linux-tdep.c.
9773         * aarch64-linux-tdep.c: New file.
9774         * aarch64-linux-tdep.h: New file.
9775         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9776         * configure.tgt: Add aarch64-none-linux-gnu.
9777
9778 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9779             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9780             Nigel Stephens  <nigel.stephens@arm.com>
9781             Yufeng Zhang  <yufeng.zhang@arm.com>
9782
9783         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9784         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9785         (ALLDEPFILES): Add aarch64-tdep.c.
9786         * aarch64-tdep.c: New file.
9787         * aarch64-tdep.h: New file.
9788         * configure.tgt: Add AArch64.
9789         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9790         (aarch64-expedite): New definition.
9791         * features/aarch64-core.xml: New file.
9792         * features/aarch64-fpu.xml: New file.
9793         * features/aarch64-without-fpu.c: New file (generated).
9794         * features/aarch64-without-fpu.xml: New file.
9795         * features/aarch64.c: New file (generated).
9796         * features/aarch64.xml: New file.
9797         * regformats/aarch64-without-fpu.dat: New file (generated).
9798         * regformats/aarch64.dat: New file (generated).
9799
9800 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9801
9802         * contrib/expect-read1.c: New file.
9803         * contrib/expect-read1.sh: New file.
9804
9805 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9806
9807         * dwarf2read.c (file_file_name): New function with code from
9808         file_full_name.
9809         (file_full_name): Move most of the code to file_file_name.
9810         (macro_start_file): Rename variable full_name to file_name and use
9811         file_file_name for it.  Add comp_dir parameter to new_macro_table.
9812         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
9813         macro_source_file->filename access by macro_source_fullname call.
9814         * macroscope.c (_initialize_macroscope): Update the new_macro_table
9815         caller.
9816         * macrotab.c (struct macro_table): New field comp_dir.
9817         (macro_include): New variables link_fullname and source_fullname.
9818         Replace any macro_source_file->filename access by macro_source_fullname
9819         call.
9820         (macro_lookup_inclusion): Remove the partial filenames checking code.
9821         (check_for_redefinition): New variables source_fullname and
9822         found_key_fullname.  Replace any macro_source_file->filename access by
9823         macro_source_fullname call.
9824         (macro_undef): New variables source_fullname and key_fullname.  Replace
9825         any macro_source_file->filename access by macro_source_fullname call.
9826         (macro_lookup_definition): New variables retval and source_fullname.
9827         Replace any macro_source_file->filename access by macro_source_fullname
9828         call.
9829         (foreach_macro): New variable key_fullname.  Replace any
9830         macro_source_file->filename access by macro_source_fullname call.
9831         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
9832         macro_source_file->filename access by macro_source_fullname call.
9833         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
9834         (macro_source_fullname): New function.
9835         * macrotab.h (struct macro_source_file): Extent the filename field
9836         comment.
9837         (new_macro_table): New parameter comp_dir, add a comment for it.
9838         (macro_source_fullname): new declaration.
9839
9840 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9841
9842         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9843         this_real_name to outer block.  Use it also for
9844         compare_filenames_for_search.
9845         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
9846         with dw2_get_real_path for file_matcher, considering also
9847         BASENAMES_MAY_DIFFER.
9848         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9849
9850 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9851
9852         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9853         to the file_matcher parameter.  Pass 0 to it.
9854         (dwarf2_create_include_psymtab): Copy also DIRNAME.
9855         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9856         NULL psymtab_to_fullname result.
9857         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
9858         an expected filename instead.
9859         (expand_symtabs_matching_via_partial): Add basenames parameter to the
9860         file_matcher parameter.  Call also psymtab_to_fullname, after newly
9861         considering BASENAMES_MAY_DIFFER.
9862         * source.c (rewrite_source_path): Remove static.
9863         * source.h (rewrite_source_path): New declaration.
9864         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9865         the expand_symtabs_matching field.  Comment it.
9866         * symtab.c (file_matches): New function comment.  Add parameter
9867         basenames, implement it.
9868         (search_symbols_file_matches): Add basenames parameter.  Update the
9869         file_matches caller.
9870         (search_symbols): Match FILES also against symtab_to_fullname.
9871         Optimize it for BASENAMES_MAY_DIFFER.
9872
9873 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9874
9875         * source.c (print_source_lines_base): Print for TUI also "fullname".
9876         * tui/tui-data.c (init_content_element): Change tui_locator_element
9877         field to full_name.
9878         * tui/tui-data.h (struct tui_locator_element): Likewise.
9879         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9880         tui_update_locator_filename calls to tui_update_locator_fullname.
9881         Replace symtab->filename refererence by symtab_to_fullname call.
9882         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9883         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9884         field to full_name.  Replace symtab->filename refererence by
9885         symtab_to_fullname call.
9886         (tui_show_symtab_source): Rename parameter to fullname.  Change
9887         tui_locator_element field to full_name.
9888         * tui/tui-stack.c: Include source.h.
9889         (tui_set_locator_filename): Rename the declaration to ...
9890         (tui_set_locator_fullname): ... here.  Rename its parameter to
9891         fullname, updates its comment.
9892         (tui_set_locator_info): Rename its parameter to fullname.
9893         (tui_set_locator_filename): Rename the definition to ...
9894         (tui_set_locator_fullname): ... here.  Rename its parameter to
9895         fullname, updates its comment.  Change tui_locator_element field to
9896         full_name.
9897         (tui_set_locator_info): Rename its parameter to fullname.
9898         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9899         (tui_update_locator_filename): Rename to ...
9900         (tui_update_locator_fullname): ... here. Rename callee to
9901         tui_set_locator_fullname.
9902         (tui_show_frame_info): Replace symtab->filename refererence by
9903         symtab_to_fullname call.
9904         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9905         (tui_update_locator_fullname): ... here.
9906         * tui/tui-winsource.c (tui_display_main): Rename the callee to
9907         tui_update_locator_fullname.  Replace symtab->filename refererence by
9908         symtab_to_fullname call.
9909         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9910         Rename the callee to tui_update_locator_fullname.
9911         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9912
9913 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9914
9915         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9916         by symtab_to_filename_for_display calls.
9917         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9918         (clear_command): New variable sal_fullname, initialize it.  Replace
9919         compare_filenames_for_search by filename_cmp with sal_fullname.
9920         (say_where, update_static_tracepoint): Replace symtab->filename
9921         refererences by symtab_to_filename_for_display calls.
9922         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9923         Likewise.
9924         * dwarf2read.c: Include source.h.
9925         (fixup_go_packaging): Replace symtab->filename refererences by
9926         symtab_to_filename_for_display calls.
9927         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9928         Replace symtab->filename refererences by symtab_to_filename_for_display
9929         calls.
9930         (create_sals_line_offset, convert_linespec_to_sals): New variable
9931         fullname, initialize it, replace symtab->filename reference by the
9932         variable.
9933         * linux-fork.c: Include source.h.
9934         (info_checkpoints_command): Replace symtab->filename refererences by
9935         symtab_to_filename_for_display calls.
9936         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9937         by symtab_to_filename_for_display calls.
9938         * mdebugread.c: Include source.h.
9939         (psymtab_to_symtab_1): Replace symtab->filename refererences by
9940         symtab_to_filename_for_display calls.
9941         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9942         (mi_cmd_file_list_exec_source_files): Likewise.
9943         * printcmd.c: Include source.h.
9944         (build_address_symbolic): Replace symtab->filename refererences by
9945         symtab_to_filename_for_display calls.
9946         * psymtab.c (partial_map_symtabs_matching_filename)
9947         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9948         with psymtab_to_fullname.
9949         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9950         by symtab_to_filename_for_display calls.
9951         (stpy_get_filename): New variable filename, initialize it, use instead
9952         of symtab->filename refererences.
9953         (salpy_str): Make variable filename const char *.  Replace
9954         symtab->filename refererences by symtab_to_filename_for_display calls.
9955         * skip.c: Include source.h and filenames.h.
9956         (skip_file_command): Remove const from the symtab variable.  Replace
9957         symtab->filename refererences by symtab_to_fullname call.
9958         (function_name_is_marked_for_skip): New variables searched_for_fullname
9959         and fullname.  Use them to search also with symtab's fullname.
9960         * source.c (find_source_lines): Replace symtab->filename refererences
9961         by symtab_to_filename_for_display calls.
9962         (print_source_lines_base): New variable filename, use it instead of
9963         symtab->filename.  Replace symtab->filename refererences by
9964         symtab_to_filename_for_display calls.
9965         (line_info, forward_search_command): Replace symtab->filename
9966         refererences by symtab_to_filename_for_display calls.
9967         (reverse_search_command): Replace symtab->filename refererences by
9968         symtab_to_filename_for_display calls.  New variable filename for it.
9969         * stack.c (frame_info): Likewise.
9970         * symmisc.c: Include source.h.
9971         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9972         (maintenance_info_symtabs): Replace symtab->filename refererences by
9973         symtab_to_filename_for_display calls.
9974         * symtab.c (iterate_over_some_symtabs): Call
9975         compare_filenames_for_search also with symtab_to_fullname.
9976         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9977         symtab->filename refererences by symtab_to_filename_for_display calls.
9978         (find_line_symtab): Replace symtab->filename refererences by
9979         symtab_to_filename_for_display calls.
9980         (file_matches): Replace filename_cmp by compare_filenames_for_search.
9981         (print_symbol_info): Make the last parameter const char *.  New
9982         variable s_filename.  Use it in the function.
9983         (symtab_symbol_info): Make the last_filename variable const char *.
9984         Replace symtab->filename refererences by symtab_to_filename_for_display
9985         calls.
9986         (rbreak_command): New variable fullname.  Use it.  Replace
9987         symtab->filename refererence by symtab_to_filename_for_display call.
9988         * tracepoint.c (set_traceframe_context, trace_find_line_command)
9989         (print_one_static_tracepoint_marker): Replace symtab->filename
9990         refererences by symtab_to_filename_for_display calls.
9991         * tui/tui-source.c (tui_set_source_content): New variables filename and
9992         s_filename.  Replace symtab->filename refererences by this variable.
9993         Replace other symtab->filename refererences by
9994         symtab_to_filename_for_display calls.
9995
9996 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9997             Jan Kratochvil  <jan.kratochvil@redhat.com>
9998
9999         Add a new variable that controls a way in which filenames are
10000         displayed.
10001         * NEWS (set filename-display): New entry.
10002         * source.c (filename_display_basename, filename_display_relative)
10003         (filename_display_absolute, filename_display_kind_names)
10004         (filename_display_string, show_filename_display_string)
10005         (symtab_to_filename_for_display): New.
10006         (_initialize_source): Added initialization of 'filename-display'
10007         variable.
10008         * source.h (symtab_to_filename_for_display): Added declaration.
10009         * stack.c (print_frame): Added new variable and calling of a new
10010         function and condition with this variable. Changed third argument of
10011         calling of a function.
10012
10013 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10014
10015         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10016         Rename field reference filename to fullname.
10017         * tui/tui-data.h (struct tui_source_info): Rename field filename to
10018         fullname.  New comment for it.
10019         * tui/tui-source.c (tui_set_source_content): Rename field reference
10020         filename to fullname.  Initialize field by symtab_to_fullname now.
10021         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10022         reference filename to fullname.  Use symtab_to_fullname during
10023         comparison.
10024
10025 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10026
10027         Code cleanup.
10028         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10029         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
10030         filename to fullname.  Rename variable this_name to this_fullname.
10031         Lowercase FILENAME_CMP call.
10032         (dw2_find_symbol_file): New comment for the returned string.
10033         (dwarf2_gdb_index_functions): Rename the function to
10034         dw2_expand_symtabs_with_fullname.
10035         * psymtab.c (read_psymtabs_with_filename): Rename to ...
10036         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
10037         fullname.
10038         (psym_functions): Rename the function to read_psymtabs_with_fullname.
10039         * symfile.h (struct quick_symbol_functions): Rename field
10040         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10041         parameter filename to fullname.  Document returned string meaning for
10042         find_symbol_file.
10043         * symtab.c (find_line_symtab): Rename the called function to
10044         expand_symtabs_with_fullname.
10045
10046 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10047
10048         Code cleanup.
10049         * breakpoint.c (clear_command): Remove variable is_abs, unify the
10050         call of filename_cmp with compare_filenames_for_search.
10051         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10052         is_abs, unify the call of FILENAME_CMP with
10053         compare_filenames_for_search.  New gdb_asserts for real_path and name.
10054         Unify the call of compare_filenames_for_search with FILENAME_CMP.
10055         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10056         * symfile.h (struct quick_symbol_functions): Extend the comment for
10057         map_symtabs_matching_filename.
10058         * symtab.c (compare_filenames_for_search): Remove the function comment
10059         relative path requirement.  Handle absolute filenames, with a comment.
10060         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10061         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
10062         real_path and name.  Unify the call of compare_filenames_for_search
10063         with FILENAME_CMP.
10064         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10065
10066 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10067
10068         Code cleanup.
10069         * breakpoint.c (print_breakpoint_location): Replace bp_location field
10070         source_file references by symtab field references.  Remove variables
10071         sal and fullname.
10072         (momentary_breakpoint_from_master, add_location_to_breakpoint):
10073         (clear_command, say_where): Replace bp_location field source_file
10074         references by symtab field references.
10075         (bp_location_dtor): Remove the source_file reference.
10076         (update_static_tracepoint): Replace bp_location field source_file
10077         references by symtab field references.
10078         (breakpoint_free_objfile): New function.
10079         * breakpoint.h (struct bp_location): Extend the comment for line_number.
10080         Replace the field source_file by field symtab, extend its comment.
10081         (breakpoint_free_objfile): New declaration.
10082         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10083         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10084         field source_file references by symtab field references.
10085
10086 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10087
10088         Replace xfullpath calls by gdb_realpath calls.
10089         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10090         function comment.
10091         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10092         Remove it from the iterate_over_some_symtabs call.
10093         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10094         Remove it from the dw2_map_expand_apply calls, remove a block handling
10095         it.
10096         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10097         Remove it from the iterate_over_some_symtabs call.
10098         (partial_map_symtabs_matching_filename): Remove parameter full_path.
10099         Remove it from the partial_map_expand_apply calls, remove a block
10100         handling it.  Drop gdb_realpath call and cleanups from the real_path
10101         handling.
10102         * source.c (openp): Drop the comment part about xfullpath.  Replace
10103         xfullpath calls by gdb_realpath calls.
10104         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10105         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10106         from method map_symtabs_matching_filename and its comment.
10107         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10108         gdb_realpath call.
10109         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10110         remove it also from the function comment, remove a block handling it.
10111         Drop gdb_realpath call and cleanups from the real_path handling.
10112         (iterate_over_symtabs): Drop variable full_path and its use.
10113         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10114         * utils.c (xfullpath): Remove.
10115         * utils.h (xfullpath): Remove.
10116
10117 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
10118
10119         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10120         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10121         (ALLDEPFILES): Add ppc64-tdep.c.
10122         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10123         ppc64-tdep.o to gdb_target_obs.
10124         * ppc64-tdep.h: New file.
10125         * ppc64-tdep.c: New file.
10126         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10127         ppc-linux-tdep.c to here.
10128         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10129         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10130         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10131         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10132         from ppc-linux-tdep.c to here.
10133         (ppc64_convert_from_func_ptr_addr): Rename from
10134         ppc64_linux_convert_from_func_ptr_addr to
10135         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10136         here.
10137         * rs6000-tdep.c:
10138         (read_insn): Move from ppc-linux-tdep.c to here.
10139         (insns_match_pattern, insn_d_field, insn_ds_field): Move
10140         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10141         * ppc-linux-tdep.c: Include ppc64-tdep.h.
10142         Removed above functions.
10143         (ppc_linux_init_abi): Adjust.
10144
10145 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10146
10147         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10148
10149 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10150
10151         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10152
10153 2013-02-01  Pedro Alves  <palves@redhat.com>
10154
10155         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10156         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10157
10158 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10159
10160         * elfread.c (elf_symfile_read): Limit separate debug info additions to
10161         files with no separate debug info.
10162         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10163         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10164         only for files with no separate debug info.
10165
10166 2013-01-31  Tom Tromey  <tromey@redhat.com>
10167
10168         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10169         change type.
10170         (struct jit_program_space_data): Rename from jit_inferior_data.
10171         Update comments.
10172         (get_jit_program_space_data): Rename from get_jit_inferior_data.
10173         Change return type.  Attach data to program space.
10174         (jit_program_space_data_cleanup): Rename from
10175         jit_inferior_data_cleanup; change argument type.
10176         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10177         change type.
10178         (jit_register_code): Update.
10179         (jit_update_inferior_cache): Remove.
10180         (jit_breakpoint_deleted): Get jit data from the location's program
10181         space.
10182         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10183         'ps_data', change type.
10184         (jit_inferior_init, jit_breakpoint_re_set_internal)
10185         (jit_event_handler): Update.
10186         (free_objfile_data): Get data from objfile's program space.
10187         (_initialize_jit): Update.
10188
10189 2013-01-31  Tom Tromey  <tromey@redhat.com>
10190
10191         PR gdb/13987:
10192         * jit.c (struct jit_inferior_data) <cached_code_address,
10193         jit_breakpoint>: New fields.
10194         (jit_breakpoint_re_set_internal): Fix logging.  Only create
10195         breakpoint if cached address has changed.
10196         (jit_update_inferior_cache, jit_breakpoint_deleted): New
10197         functions.
10198         (_initialize_jit): Register breakpoint deleted observer.
10199
10200 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10201
10202         * infrun.c (handle_syscall_event): Remove unused gdbarch.
10203         (save_infcall_suspend_state): Ifdef out unused inf.
10204         (restore_infcall_suspend_state): Ifdef out unused inf.
10205         * jit.c (jit_register_code): Remove unused i, b, inf_data.
10206         (jit_frame_sniffer): Remove unused inf_data.
10207
10208 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10209
10210         * c-exp.y (classify_inner_name): Remove unused type.
10211         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10212         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10213         need_escape.
10214         (c_get_string): Remove unused kind.
10215         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10216
10217 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10218
10219         * charset.c (intermediate_encoding): Remove unused i.
10220         * completer.c (signal_completer): Remove unused i.
10221         * continuations.c (discard_my_continuations_1): Remove unused
10222         continuation_ptr.
10223         * corelow.c (core_close): Remove unuseD name.
10224         (get_core_siginfo): Remove unused pid.
10225         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10226         i, cps.
10227         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10228         (loclist_describe_location): Remove unused first.
10229         * event-top.c (command_line_handler): Remove unused got_eof.
10230         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10231         (resize_section_table): Remove unused old_value.
10232         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10233         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10234         * i386-tdep.c (i386_process_record): Remove unused rex.
10235         * infcmd.c (get_return_value): Remove unused uiout.
10236         * jv-lang.c (type_from_class): Remove unused is_array.
10237         * jv-valprint.c (java_val_print): Remove unused i.
10238         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10239         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10240         * m2-typeprint.c (m2_print_type): Remove unused code.
10241         * macroexp.c (get_character_constant): Remove unused body_start.
10242         (macro_stringify): Remove unused result.
10243         * objc-lang.c (find_methods): Remove unused gdbarch.
10244         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10245         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10246         * stack.c (print_frame_args): Remove unused summary.
10247         * thread.c (thread_apply_command): Remove unused p.
10248         * valarith.c (value_x_unop): Remove unused mangle_ptr.
10249         * valops.c (search_struct_method): Remove unused skip.
10250         * valprint.c (generic_val_print): Remove unused byte_order.
10251         * varobj.c (varobj_update): Remove unused changed.
10252         * cli/cli-cmds.c (complete_command): Remove unused next_item.
10253         (alias_command): Remove unused c.
10254         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10255         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10256         format.
10257         (mi_cmd_data_write_memory): Remove unused word_format.
10258         (mi_cmd_data_write_memory_bytes): Remove unused r.
10259         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10260         p_start, p_end.
10261         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10262         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10263         line_width.
10264
10265 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10266
10267         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10268         * symtab.c (iterate_over_symtabs): Remove unused s.
10269         (find_pc_sect_symtab): Remove unused pspAce.
10270         (find_pc_sect_line): Remove unused alt_symtab.
10271         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10272         (completion_list_add_name): Remove unused newsize.
10273
10274 2013-01-31  Tom Tromey  <tromey@redhat.com>
10275
10276         PR c++/14998:
10277         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10278         TYPE_CODE_FUNC.
10279
10280 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10281
10282         * target.c (target_read_string): Remove unused origlen.
10283
10284 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10285
10286         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10287         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10288         * ax-general.c (ax_print): Remove unused is_float.
10289         * blockframe.c (block_innermost_frame): Remove unused start, end.
10290         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10291
10292 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10293
10294         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10295         (svr4_read_so_list): Remove unused lmo.
10296         * solib-target.c (solib_target_relocate_section_addresses): Remove
10297         unused flags.
10298
10299 2013-01-30  Tom Tromey  <tromey@redhat.com>
10300
10301         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10302
10303 2013-01-30  Tom Tromey  <tromey@redhat.com>
10304
10305         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10306         * utils.c (gnu_debuglink_crc32): Remove.
10307         * utils.h (gnu_debuglink_crc32): Don't declare.
10308
10309 2013-01-30  Tom Tromey  <tromey@redhat.com>
10310
10311         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10312         (read_structure_type, read_enumeration_type): Remove cast.
10313
10314 2013-01-30  Tom Tromey  <tromey@redhat.com>
10315
10316         * dwarf2read.c (read_namespace_type): Remove cast.
10317         (read_typedef): Likewise.
10318
10319 2013-01-29  Tom Tromey  <tromey@redhat.com>
10320
10321         * dwarf2read.c (free_dwo_file): Remove assert.
10322
10323 2013-01-29  Tom Tromey  <tromey@redhat.com>
10324
10325         * value.c (deprecated_set_value_modifiable): Remove.
10326         * value.h (deprecated_set_value_modifiable): Remove.
10327
10328 2013-01-28  Doug Evans  <dje@google.com>
10329
10330         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10331         to addresses from dwo files.
10332
10333 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
10334
10335         * valops.c (find_overload_match): Remove unused argument 'lax'.
10336         * value.h: Remove unused argument 'lax' from the declaration of
10337         find_overload_match.
10338         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10339         to find_overload_match.
10340         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10341         argument to find_overload_match.
10342
10343 2013-01-25  Tom Tromey  <tromey@redhat.com>
10344
10345         * dwarf2read.c (processing_has_namespace_info): Remove.
10346         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10347         (process_die, read_func_scope, dwarf2_start_symtab)
10348         (new_symbol_full): Update.
10349
10350 2013-01-25  Tom Tromey  <tromey@redhat.com>
10351
10352         * cp-namespace.c (cp_set_block_scope): Remove.
10353         * cp-support.h (cp_set_block_scope): Remove.
10354         * dbxread.c: Include block.h.
10355         (cp_set_block_scope): New function.
10356         (process_one_symbol): Update.
10357         * dwarf2read.c (read_func_scope): Use block_set_scope.
10358
10359 2013-01-25  Pedro Alves  <palves@redhat.com>
10360
10361         * remote.c (add_current_inferior_and_thread): Tweak comment.
10362
10363 2013-01-25  Tom Tromey  <tromey@redhat.com>
10364
10365         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10366         (cp_add_using_directive): Add 'copy_names' argument.
10367         * cp-support.h (cp_add_using_directive): Update.
10368         (struct using_direct) <import_src, import_dest, alias,
10369         declaration>: Now const.
10370         * dwarf2read.c (read_import_statement): Use obconcat.
10371         Don't copy names passed to cp_add_using_directive.
10372
10373 2013-01-25  Tom Tromey  <tromey@redhat.com>
10374
10375         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10376
10377 2013-01-25  Pedro Alves  <palves@redhat.com>
10378
10379         * remote.c (stop_reply_extract_thread): New.
10380         (add_current_inferior_and_thread): New parameter 'wait_status'.
10381         Handle it.
10382         (remote_start_remote): Pass wait status to
10383         add_current_inferior_and_thread.
10384         (extended_remote_run): Update comment.
10385         (extended_remote_create_inferior_1): Pass wait status to
10386         add_current_inferior_and_thread.
10387
10388 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
10389             Ulrich Weigand  <uweigand@de.ibm.com>
10390
10391         * valarith.c (value_vector_widen): New function for replicating a
10392         scalar into a vector.
10393         (value_binop): Use value_vector_widen to widen scalar to vector
10394         rather than casting, this better matches gcc C behaviour.
10395         * valops.c (value_casst): Update logic for casting between vector
10396         types, and for casting from scalar to vector, try to match gcc C
10397         behaviour.
10398         * value.h (value_vector_widen): Declare.
10399         * opencl-lang.c (opencl_value_cast): New opencl specific casting
10400         function, handle special case for casting scalar to vector.
10401         (opencl_relop): Use opencl_value_cast.
10402         (evaluate_subexp_opencl): Use opencl_value_cast instead of
10403         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10404         in order to use opencl_value_cast.
10405
10406 2013-01-25  Yao Qi  <yao@codesourcery.com>
10407
10408         * event-loop.c: Include "queue.h".
10409         (gdb_event_p): New typedef.
10410         (DECLARE_QUEUE_P): Use.
10411         (DEFINE_QUEUE_P): Use.
10412         (async_queue_event): Remove.
10413         (gdb_event_xfree): New.
10414         (initialize_event_loop): New.
10415         (process_event): Use QUEUE macros.
10416         (event_queue): Remove.
10417         (gdb_wait_for_event): Caller update.
10418         (check_async_event_handlers): Likewise.
10419         (poll_timers): Likewise.
10420         * event-loop.h (initialize_event_loop): Declare.
10421         * event-loop.c (gdb_event_xfree): New.
10422         * top.c (gdb_init): Call initialize_event_loop.
10423
10424 2013-01-25  Yao Qi  <yao@codesourcery.com>
10425
10426         * event-loop.c (async_queue_event): Remove one parameter
10427         'position'.  Remove code handling 'position' == TAIL.
10428         (gdb_wait_for_event): Caller update.
10429         (check_async_event_handlers): Caller update.
10430         (poll_timers): Caller update.
10431         * event-loop.h (enum queue_position): Remove.
10432
10433 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
10434
10435         * MAINTAINERS: Update my email.
10436
10437 2013-01-25  Yao Qi  <yao@codesourcery.com>
10438
10439         * main.c (print_gdb_help): Remove "--epoch" from the help
10440         message.
10441
10442 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
10443
10444         * symtab.c (skip_prologue_using_sal): Consider a file
10445         change the same as an increased line number
10446
10447 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10448
10449         * MAINTAINERS (Write After Approval): Add myself to the list.
10450
10451 2013-01-24  Tom Tromey  <tromey@redhat.com>
10452
10453         * ada-lang.h (ada_decode_symbol): Make return type const.
10454         * ada-lang.c (ada_decode_symbol): Likewise.
10455
10456 2013-01-23  Doug Evans  <dje@google.com>
10457
10458         * linespec.c (find_linespec_symbols): Make static.
10459
10460 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10461
10462         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10463         type on float conversion for complex type.
10464
10465 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
10466
10467         Add a new class gdb.Architecture which exposes GDB's
10468         internal representation of architecture via GDB Python API.
10469         * Makefile.in: Add entries corresponding to the new file
10470         python/py-arch.c.
10471         * NEWS (Python Scripting): Add entries for the new class
10472         gdb.Architecture and the new method gdb.Frame.architecture.
10473         * python/py-arch.c: Implement gdb.Architecture class.
10474         * python/py-frame.c (frapy_arch): Implement the method
10475         gdb.Frame.architecture().
10476         (frame_object_methods): Add 'architecture' to the method table.
10477         * python/python-internal.h: Add declarations of new utility
10478         functions.
10479         * python/python.c (_initialize_python): Initialize
10480         gdb.Architecture class.
10481
10482 2013-01-23  Doug Evans  <dje@google.com>
10483
10484         Work around binutils/15021.
10485         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10486         type_unit_group out of union s.  All uses updated.
10487         (read_index_from_section): Watch for index version 8.
10488         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10489         an imported symtab.
10490         (write_psymtabs_to_index): Increment version number to 8.
10491
10492 2013-01-22  Pedro Alves  <palves@redhat.com>
10493
10494         * annotate.c (breakpoint_changed): Skip if breakpoint is not
10495         user-visible.
10496
10497 2013-01-22  Pedro Alves  <palves@redhat.com>
10498
10499         * annotate.c (annotate_breakpoints_changed): Rename to ...
10500         (annotate_breakpoints_invalid): ... this.  Make static.
10501         (breakpoint_changed): Adjust.
10502         (_initialize_annotate): Always install the observers.  Install a
10503         "breakpoint_created" observer.
10504         * annotate.h (annotate_breakpoints_changed): Delete declaration.
10505         * breakpoint.c (set_breakpoint_condition)
10506         (breakpoint_set_commands, do_map_commands_command)
10507         (init_raw_breakpoint, clear_command, set_ignore_count)
10508         (enable_breakpoint_disp): No longer call
10509         annotate_breakpoints_changed.
10510
10511 2013-01-22  Pedro Alves  <palves@redhat.com>
10512
10513         * annotate.c: Include "inferior.h".
10514         (frames_invalid_emitted)
10515         (breakpoints_invalid_emitted): New globals.
10516         (async_background_execution_p): New function.
10517         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10518         emitting the annotation if it has already been emitted.
10519         (annotate_display_prompt): New function.
10520         * annotate.h (annotate_display_prompt): New declaration.
10521         * event-top.c: Include annotate.h.
10522         (display_gdb_prompt): Call annotate_display_prompt.
10523
10524 2013-01-22  Pedro Alves  <palves@redhat.com>
10525
10526         * annotate.c (ignore_count_changed): Delete.
10527         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10528         (annotate_ignore_count_change): Delete.
10529         (annotate_stopped): Don't emit a delayed breakpoints-changed
10530         annotation.
10531         * annotate.h (annotate_ignore_count_change): Delete.
10532         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10533         annotate_ignore_count_change.
10534
10535 2013-01-22  Tom Tromey  <tromey@redhat.com>
10536
10537         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10538         require_rvalue for a register location.
10539
10540 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
10541
10542         * breakpoint.c (print_one_breakpoint_location): Add MI
10543         field 'thread-groups' when printing a breakpoint.
10544         (output_thread_groups): New function.
10545
10546 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
10547
10548         * python/lib/gdb/commands/explore.py
10549         (CompoundExplorer.explore_expr): Correct the name of a method
10550         being invoked.
10551         (ExploreTypeCommand.invoke): Add a missing 'return'.
10552
10553 2013-01-21  Tom Tromey  <tromey@redhat.com>
10554
10555         * gdb_obstack.h (obconcat): Move declaration here, from...
10556         * symfile.h (obconcat): ... here.
10557         * gdb_obstack.c: New file.
10558         (obconcat): Move from...
10559         * symfile.c (obconcat): ... here.
10560         * Makefile.in (SFILES): Add gdb_obstack.c.
10561         (COMMON_OBS): Add gdb_obstack.o.
10562
10563 2013-01-21  Tom Tromey  <tromey@redhat.com>
10564
10565         * symfile.h (obsavestring): Don't declare.
10566         * symfile.c (obsavestring): Remove.
10567         * ada-exp.y: Use obstack_copy0, not obsavestring.
10568         * ada-lang.c: Use obstack_copy0, not obsavestring.
10569         * coffread.c: Use obstack_copy0, not obsavestring.
10570         * cp-namespace.c: Use obstack_copy0, not obsavestring.
10571         * dbxread.c: Use obstack_copy0, not obsavestring.
10572         * dwarf2read.c: Use obstack_copy0, not obsavestring.
10573         * jit.c: Use obstack_copy0, not obsavestring.
10574         * mdebugread.c: Use obstack_copy0, not obsavestring.
10575         * psymtab.c: Use obstack_copy0, not obsavestring.
10576         * stabsread.c: Use obstack_copy0, not obsavestring.
10577         * xcoffread.c: Use obstack_copy0, not obsavestring.
10578
10579 2013-01-21  Tom Tromey  <tromey@redhat.com>
10580
10581         * dwarf2read.c (fixup_go_packaging): Save package name
10582         on objfile obstack.
10583         * gdbtypes.c (init_type): Don't copy name.
10584
10585 2013-01-21  Tom Tromey  <tromey@redhat.com>
10586
10587         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10588         const.
10589         (struct attribute) <u.str>: Now const.
10590         (struct fnfieldlist) <name>: Now const.
10591         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10592         (partial_die_parent_scope): Make return type const.
10593         (partial_die_full_name, add_partial_symbol): Update.
10594         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10595         'name' const.
10596         (find_file_and_directory): Make 'name' and 'comp_dir' const.
10597         (read_file_scope, read_func_scope, dwarf2_add_field)
10598         (dwarf2_add_member_fn, read_structure_type)
10599         (process_enumeration_scope, read_array_type, read_module_type)
10600         (read_base_type, read_subrange_type): Update.
10601         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10602         (new_symbol_full, guess_full_die_structure_name): Update.
10603         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
10604         (dwarf2_name): Return const type.
10605         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10606         const.
10607
10608 2013-01-21  Tom Tromey  <tromey@redhat.com>
10609
10610         * gdbtypes.c (init_type): Make 'name' const.
10611         * gdbtypes.h (init_type): Update.
10612
10613 2013-01-21  Tom Tromey  <tromey@redhat.com>
10614
10615         * buildsym.c (patch_subfile_names): Use set_last_source_file.
10616         (start_symtab): Make 'name' and 'dirname' const.  Use
10617         set_last_source_file.
10618         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10619         (last_source_file): Define.  Now static.
10620         (set_last_source_file, get_last_source_file): New functions.
10621         * buildsym.h (last_source_file): Don't declare.
10622         (start_symtab): Update.
10623         (set_last_source_file, get_last_source_file): Declare.
10624         * coffread.c (complete_symtab): Use set_last_source_file.
10625         (coff_end_symtab): Likewise.
10626         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10627         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10628         set_last_source_file.
10629         (process_one_symbol): Use get_last_source_file.
10630         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10631         (psymtab_to_symtab_1): Use get_last_source_file.
10632         * xcoffread.c (process_linenos): Use get_last_source_file.
10633         (complete_symtab): Use set_last_source_file.
10634         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10635         (scan_xcoff_symtab): Use set_last_source_file.
10636
10637 2013-01-21  Tom Tromey  <tromey@redhat.com>
10638
10639         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10640         (symbol_set_names): Remove casts.  Handle field const-ness.
10641
10642 2013-01-21  Tom Tromey  <tromey@redhat.com>
10643
10644         * dwarf2read.c (new_symbol_full): Remove cast.
10645         * symtab.c (symbol_set_demangled_name): Make 'name' const.
10646         * symtab.h (symbol_set_demangled_name): Update.
10647
10648 2013-01-21  Tom Tromey  <tromey@redhat.com>
10649
10650         * main.c (captured_main): Call bfd_init.
10651
10652 2013-01-21  Tom Tromey  <tromey@redhat.com>
10653
10654         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10655         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10656         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10657         * NEWS: Update.
10658
10659 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10660
10661         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10662
10663 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10664
10665         Fix gdb.fortran/common-block.exp crash in PIE mode.
10666         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10667         LOC_COMMON_BLOCK.
10668         * f-valprint.c (info_common_command_for_block): Expect
10669         LOC_COMMON_BLOCK in gdb_assert.
10670         * symtab.h (struct general_symbol_info): Update comment for the
10671         common_block member.
10672         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10673         (enum address_class): New member LOC_COMMON_BLOCK.
10674
10675 2013-01-18  David Blaikie  <dblaikie@gmail.com>
10676
10677         * MAINTAINERS (Write After Approval): Add "David Blaikie".
10678
10679 2013-01-18  Tom Tromey  <tromey@redhat.com>
10680
10681         PR c++/14999:
10682         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10683         Call require_rvalue.
10684
10685 2013-01-18  Yao Qi  <yao@codesourcery.com>
10686
10687         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10688         (dbx_read_symtab): New declaration.
10689         (dbx_psymtab_to_symtab): Delete.
10690         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10691         Rename parameter PST to SELF.  Exchanged two parameters.
10692         (start_psymtab): Caller update.
10693         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10694         (dwarf2_read_symtab): New declaration.
10695         (dwarf2_psymtab_to_symtab): Delete.
10696         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10697         Rename parameter PST to SELF.  Exchanged two parameters.
10698         (create_partial_symtab): Caller update.
10699         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10700         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10701         Rename parameter PST to SELF.  Exchanged two parameters.
10702         (parse_partial_symbols, new_psymtab): Caller update.
10703         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10704         two parameters.
10705         * psymtab.c (psymtab_to_symtab): Caller update.
10706         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10707         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10708         Rename parameter PST to SELF.  Exchanged two parameters.
10709         (xcoff_start_psymtab): Caller update.
10710
10711 2013-01-18  Yao Qi  <yao@codesourcery.com>
10712
10713         * infrun.c (proceed): Rename local variable 'oneproc' to
10714         'force_step'.
10715
10716 2013-01-17  Doug Evans  <dje@google.com>
10717
10718         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10719         (dw2_build_type_unit_groups): Delete.  All uses updated.
10720
10721         * symtab.h (struct symbol_search): Add comment.
10722
10723 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10724
10725         * symtab.c (compare_filenames_for_search): New comment for
10726         HAS_DRIVE_SPEC.
10727
10728 2013-01-17  Tom Tromey  <tromey@redhat.com>
10729
10730         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10731
10732 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10733
10734         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10735         initialize it by existing make_cleanup.  Call new do_cleanups.
10736
10737 2013-01-17  Tom Tromey  <tromey@redhat.com>
10738
10739         * cp-abi.c (cp_abi_completer): New function.
10740         (_initialize_cp_abi): Set completer for "set cp-abi".
10741
10742 2013-01-17  Tom Tromey  <tromey@redhat.com>
10743
10744         * mem-break.c: Remove obsolete comment.
10745         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10746
10747 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
10748
10749         * jit.c (jit_reader_load_command): Interpret the jit reader name
10750         as an absolute path if it begins with a forward slash.
10751
10752 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
10753
10754         PR gdb/14550
10755
10756         * jit.c (finalize_symtab): Ensure that only the global block has a
10757         NULL superblock.
10758
10759 2013-01-17  Pedro Alves  <palves@redhat.com>
10760
10761         * acinclude.m4: Include ../config/plugins.m4,
10762         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
10763         * Makefile.in (aclocal_m4_deps): Update.
10764         * aclocal.m4: Renegerate.
10765
10766 2013-01-16  Doug Evans  <dje@google.com>
10767
10768         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10769
10770 2013-01-16  Pedro Alves  <palves@redhat.com>
10771             Tom Tromey  <tromey@redhat.com>
10772
10773         PR cli/7221:
10774         * NEWS: Add "catch signal".
10775         * breakpoint.c (base_breakpoint_ops): No longer static.
10776         (bpstat_explains_signal): New function.
10777         (init_catchpoint): No longer static.
10778         (base_breakpoint_explains_signal): New function.
10779         (base_breakpoint_ops): Initialize new field.
10780         * breakpoint.h (enum bpstat_signal_value): New.
10781         (struct breakpoint_ops) <explains_signal>: New field.
10782         (bpstat_explains_signal): Remove macro, declare as function.
10783         (base_breakpoint_ops, init_catchpoint): Declare.
10784         * break-catch-sig.c: New file.
10785         * inferior.h (signal_catch_update): Declare.
10786         * infrun.c (signal_catch): New global.
10787         (handle_syscall_event): Update for change to
10788         bpstat_explains_signal.
10789         (handle_inferior_event): Likewise.  Always handle random signals
10790         via bpstats.
10791         (signal_cache_update): Check signal_catch.
10792         (signal_catch_update): New function.
10793         (_initialize_infrun): Initialize signal_catch.
10794         * Makefile.in (SFILES): Add break-catch-sig.c.
10795         (COMMON_OBS): Add break-catch-sig.o.
10796
10797 2013-01-16  Tom Tromey  <tromey@redhat.com>
10798
10799         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10800         (print_one_catch_solib, print_one_catch_syscall)
10801         (print_one_catch_exec, print_one_exception_catchpoint): Emit
10802         "catch-type".
10803
10804 2013-01-16  Yao Qi  <yao@codesourcery.com>
10805
10806         * printcmd.c (current_display_number): Make it static.
10807
10808 2013-01-16  Yao Qi  <yao@codesourcery.com>
10809
10810         * infcmd.c (step_once): Don't check '!single_inst' as it was
10811         checked before.
10812
10813 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10814
10815         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10816
10817 2013-01-14  Tom Tromey  <tromey@redhat.com>
10818
10819         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10820         set command.
10821         * command.h (add_setshow_string_noescape_cmd): Update.
10822         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10823         (complete_set_gnutarget): New function.
10824         (_initialize_core): Set the "set gnutarget" completer.
10825
10826 2013-01-14  Tom Tromey  <tromey@redhat.com>
10827
10828         PR symtab/14442:
10829         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10830         (c_type_print_modifier): Likewise.
10831         * dwarf2read.c (read_tag_restrict_type): New function.
10832         (read_type_die_1): Handle DW_TAG_restrict_type.
10833         * gdbtypes.c (make_restrict_type): New function.
10834         (recursive_dump_type): Handle TYPE_RESTRICT.
10835         * gdbtypes.h (enum type_flag_values): Renumber.
10836         (enum type_instance_flag_value): Add
10837         TYPE_INSTANCE_FLAG_RESTRICT.
10838         (TYPE_RESTRICT): New macro.
10839         (make_restrict_type): Declare.
10840
10841 2013-01-14  Tom Tromey  <tromey@redhat.com>
10842
10843         PR symtab/14931:
10844         * psymtab.c (struct psymtab_state): New.
10845         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10846         functions.
10847         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10848         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10849
10850 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
10851             Pedro Alves  <palves@redhat.com>
10852
10853         PR remote/14786
10854
10855         * remote.c (remote_threads_info): Make a copy of the reply from
10856         qfThreadInfo and use that instead of rs->buf.
10857
10858 2013-01-14  Yao Qi  <yao@codesourcery.com>
10859
10860         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10861         (dbx_psymtab_to_symtab): Likewise.
10862         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10863         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10864         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10865
10866 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10867
10868         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
10869         make_cleanup_restore_current_language.  Call set_language.  Move
10870         OLD_CHAIN and INNER_CHAIN cleanups.
10871         * utils.c (do_restore_current_language)
10872         (make_cleanup_restore_current_language): New functions.
10873         * utils.h (make_cleanup_restore_current_language): New declaration.
10874
10875 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10876
10877         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10878         non-existing files.
10879
10880         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10881         non-existing files if FILENAME is already absolute.
10882
10883 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10884
10885         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10886         fputs_filtered.  Append trailing newline.
10887
10888 2013-01-11  Yao Qi  <yao@codesourcery.com>
10889             Stan Shebs  <stan@codesourcery.com>
10890
10891         * psymtab.c (init_psymbol_list): Clarify the comment.
10892
10893 2013-01-11  Yao Qi  <yao@codesourcery.com>
10894
10895         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10896         (update_dprintf_command_list): Assert that 'printf_line' is
10897         non-null.  Remove condition check.
10898
10899 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10900
10901         Code cleanup.
10902         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10903         type const char *.
10904         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10905         const char *.
10906         * tui/tui-source.h (tui_source_is_displayed): Likewise.
10907
10908 2013-01-09  Anthony Green  <green@moxielogic.com>
10909
10910         * cp-abi.c (cplus_print_vtable): Don't return value from void
10911         function.
10912         * ada-lang.c (re_set_catch_assert): Ditto.
10913
10914 2013-01-09  Doug Evans  <dje@google.com>
10915
10916         * symfile.h (quick_symbol_functions): Delete member
10917         pre_expand_symtabs_matching.  All uses removed.
10918         * dwarf2read.c (dw2_lookup_symbol): Implement.
10919         (dw2_do_expand_symtabs_matching): Delete.
10920         (dw2_pre_expand_symtabs_matching): Delete.
10921         (struct dw2_symtab_iterator): New type.
10922         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10923         (dw2_expand_symtabs_for_function): Rewrite.
10924         (dwarf2_gdb_index_functions): Update.
10925         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10926         (psym_functions): Update.
10927
10928 2013-01-09  Tom Tromey  <tromey@redhat.com>
10929
10930         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10931         * configure: Rebuild.
10932         * configure.ac: Add somread.o to the build if BFD has SOM
10933         support.
10934         * somread.c: Include som/aout.h, not syms.h.
10935         (som_symtab_read): Use som_external_symbol_dictionary_record.
10936         Unpack records manually.
10937         (_initialize_somread): Declare.
10938
10939 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
10940
10941         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10942         Cast return_address to 64bits.
10943
10944 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
10945
10946         * printcmd.c: Remove define of function output_command.
10947         * tracepoint.c: Remove extern of function output_command.
10948         * valprint.h: (output_command): New extern.
10949
10950 2013-01-07  Tom Tromey  <tromey@redhat.com>
10951
10952         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10953         Remove.
10954         (objc_language_defn): Use c_printchar, c_printstr,
10955         c_emit_char.
10956
10957 2013-01-07  Tom Tromey  <tromey@redhat.com>
10958
10959         PR cli/7719:
10960         * NEWS: Update.
10961         * ada-valprint.c (printstr, print_field_values): Remove
10962         "inspect_it" code.
10963         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10964         code.
10965         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10966         code.
10967         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10968         * main.c (captured_main): Remove "epoch" argument.
10969         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10970         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10971         * p-valprint.c (pascal_object_print_value_fields): Remove
10972         "inspect_it" code.
10973         * printcmd.c (print_command_1): Remove 'inspect' argument.
10974         (print_command, call_command): Update.
10975         (inspect_command): Remove.
10976         (_initialize_printcmd): Make "inspect" an alias for "print".
10977         * top.c (epoch_interface): Remove.
10978         * top.h (epoch_interface): Remove.
10979         * valprint.c (user_print_options): Update.
10980         (print_converted_chars_to_obstack): Remove "inspect_it" code.
10981         * valprint.h (struct value_print_options) <inspect_it>: Remove
10982         field.
10983
10984 2013-01-04  Tom Tromey  <tromey@redhat.com>
10985
10986         * valprint.h (read_string): Add 'extern'.
10987
10988 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
10989
10990         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10991         used to decide whether to define darwin_read_dyld_info or not.
10992
10993 2013-01-03  Pierre Muller  <muller@sourceware.org>
10994
10995         * main.c (relocate_gdb_directory): Avoid calling stat function
10996         if DIR is empty.
10997
10998 2013-01-03  Yao Qi  <yao@codesourcery.com>
10999
11000         * psymtab.c (fixup_psymbol_section): Update declaration.
11001         (fixup_psymbol_section): Remove code returning value.
11002
11003 2013-01-03  Yao Qi  <yao@codesourcery.com>
11004
11005         * symtab.h: Remove some out of date comments.
11006          (enum exception_event_kind): Move it ...
11007         * breakpoint.c: ... here.
11008
11009 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
11010
11011         PR gdb/14405
11012         * darwin-nat.c (darwin_read_dyld_info): Only build if
11013         TASK_DYLD_INFO_COUNT is defined.
11014         (darwin_xfer_partial): Call darwin_read_dyld_info only if
11015         TASK_DYLD_INFO_COUNT is defined.
11016
11017 2013-01-02  Tom Tromey  <tromey@redhat.com>
11018
11019         * symfile.h (struct ecoff_debug_hack): Remove.
11020         * objfiles.c: Don't include mdebugread.h.
11021
11022 2013-01-02  Tom Tromey  <tromey@redhat.com>
11023
11024         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11025         * configure.ac: Check for Mach-O support in BFD.  Update
11026         CONFIG_OBS.
11027         * configure: Rebuild.
11028
11029 2013-01-02  Tom Tromey  <tromey@redhat.com>
11030
11031         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11032         * configure.ac: Use GDB_AC_CHECK_BFD.
11033         * configure: Rebuild.
11034
11035 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11036
11037         * MAINTAINERS: Update my email.
11038
11039 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11040
11041         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11042
11043 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11044
11045         * rs6000-nat.c (bss_data_overlap): New function.
11046         (vmap_symtab): Use it to adjust the .bss section's offset.
11047
11048 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11049
11050         Update year range in copyright notice of all files.
11051
11052 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
11053
11054         * top.c (print_gdb_version): Update copyright year.
11055
11056 For older changes see ChangeLog-2012.
11057 \f
11058 Local Variables:
11059 mode: change-log
11060 left-margin: 8
11061 fill-column: 74
11062 version-control: never
11063 coding: utf-8
11064 End: