infrun.c:handle_inferior_event: Put all ecs->random_signal tests together.
[external/binutils.git] / gdb / ChangeLog
1 2013-10-28  Pedro Alves  <palves@redhat.com>
2
3         * infrun.c (switch_back_to_stepped_thread): New function, factored
4         out from handle_inferior_event.
5         (handle_inferior_event): Adjust to call
6         switch_back_to_stepped_thread.  Call it also at the tail of the
7         random signal handling, and return, instead of also handling
8         random signals just before the stepping tests.
9
10 2013-10-28  Pedro Alves  <palves@redhat.com>
11
12         * infrun.c (clear_stop_func): Delete.
13         (handle_inferior_event): Don't call clear_stop_func and don't
14         clear 'ecs->random_signal'.
15
16 2013-10-27  Yao Qi  <yao@codesourcery.com>
17
18         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
19         (varobj_create, varobj_get_path_expr): Update.
20         (varobj_value_has_mutated, varobj_update): Likewise.
21         (create_child_with_value, new_root_variable): Likewise.
22         (number_of_children, name_of_variable): Likewise.
23         (value_of_child, my_value_of_variable): Likewise.
24         (varobj_value_is_changeable_p): Likewise.
25
26 2013-10-25  Yao Qi  <yao@codesourcery.com>
27
28         * language.h (struct lang_varobj_ops): Declare.
29         (struct language_defn) <la_varobj_ops>: New field.
30         * ada-lang.c: Include "varobj.h"
31         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
32         ada_varobj_ops.
33         * c-lang.c: Include "varobj.h"
34         (c_language_defn): Initialize field 'la_varobj_ops' with
35         c_varobj_ops.
36         (cplus_language_defn): Initialize field 'la_varobj_ops' with
37         cplus_varobj_ops.
38         (asm_language_defn): Initialize field 'la_varobj_ops' with
39         default_varobj_ops.
40         (minimal_language_defn): Likewise.
41         * d-lang.c (d_language_defn): Likewise.
42         * f-lang.c (f_language_defn): Likewise.
43         * go-lang.c (go_language_defn): Likewise.
44         * m2-lang.c (m2_language_defn): Likewise.
45         * objc-lang.c (objc_language_defn): Likewise.
46         * opencl-lang.c (opencl_language_defn): Likewise.
47         * p-lang.c (pascal_language_defn): Likewise.
48         * language.c (unknown_language_defn): Likewise.
49         (auto_language_defn): Likewise.
50         (local_language_defn): Likewise.
51         * jv-lang.c (java_language_defn): Initialize field
52         'la_varobj_ops' with java_varobj_ops.
53         * varobj.c (varobj_create): Update.
54         * varobj.h (default_varobj_ops): Define macro.
55
56 2013-10-25  Pedro Alves  <palves@redhat.com>
57
58         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
59         static field value.
60         (cp_print_static_field): If the value is entirely optimized out,
61         print <optimized out> here.
62         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
63         static field value.
64         * p-valprint.c (pascal_object_print_static_field): If the value is
65         entirely optimized out, print <optimized out> here.
66         * valops.c (do_search_struct_field)
67         (value_struct_elt_for_reference): No longer handle a NULL static
68         field value.
69         * value.c (value_static_field): Return an optimized out value
70         instead of NULL.
71
72 2013-10-25  Yao Qi  <yao@codesourcery.com>
73
74         * remote.c (remote_traceframe_info): Return early if
75         traceframe is not selected.
76
77 2013-10-25  Yao Qi  <yao@codesourcery.com>
78
79         * tracepoint.c (traceframe_fun): Remove.
80         (traceframe_sal): Remove.
81         (set_traceframe_context): Add local variables.
82
83 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
84
85         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
86         and parameter name.
87
88 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
89
90         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
91         failure from register information collection.
92
93 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
94
95         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
96         member.
97         (linux_corefile_thread_callback): Update accordingly.
98         (linux_make_corefile_notes): Likewise.
99
100 2013-10-24  Pedro Alves   <palves@redhat.com>
101
102         * NEWS (New options): Mention set/show startup-with-shell.
103         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
104         instead of 3.
105         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
106         startup-with-shell'.
107         (show_startup_with_shell): New function.
108         (_initialize_fork_child): Register the set/show startup-with-shell
109         commands.
110         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
111         * inf-ttrace.c (inf_ttrace_him): Remove comment.
112         * procfs.c (procfs_init_inferior): Remove comment.
113         * infcmd.c (startup_with_shell): New global.
114         * inferior.h (startup_with_shell): Declare global.
115         (STARTUP_WITH_SHELL): Delete.
116         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
117
118 2013-10-23  Pedro Alves  <palves@redhat.com>
119
120         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
121         * common/signals.c: Include "gdb_assert.h".
122         (signals): New field 'symbol'.
123         (SET): Use the 'symbol' parameter.
124         (gdb_signal_to_symbol_string): New function.
125         * infrun.c (handle_inferior_event) <random signal>: In debug
126         output, print the random signal enum as string in addition to its
127         number.
128         * target/waitstatus.c (target_waitstatus_to_string): Print the
129         signal's enum value as string instead of the (POSIX) signal name.
130
131 2013-10-23  Gary Benson  <gbenson@redhat.com>
132
133         PR 16013
134         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
135         from 32 to 18.  Adjusted fscanf format string accordingly.
136         (Avoids leaving cmd unterminated.)
137         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
138         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
139         that local_address and remote_address will not overflow.
140         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
141         leaving dependencies unterminated.  Parse size as "%u" to match
142         definition.
143
144 2013-10-22  Pedro Alves  <palves@redhat.com>
145
146         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
147         set ecs->random signal.
148
149 2013-10-22  Pedro Alves  <palves@redhat.com>
150
151         * infrun.c (keep_going): Update comments.
152
153 2013-10-22  Pedro Alves  <palves@redhat.com>
154
155         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
156         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
157
158 2013-10-22  Pedro Alves  <palves@redhat.com>
159
160         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
161         GDB_EXC_BAD_ACCESS.
162         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
163         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
164         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
165         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
166         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
167         (GDB_SIGNAL_LAST): Change description string.
168         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
169         Adjust to signal renaming.
170         * darwin-nat.c (darwin_decode_message): Likewise.
171
172 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
173
174         * MAINTAINERS (Write After Approval): Add myself to the list.
175
176 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
177
178         * breakpoint.c (update_watchpoint): If hardware watchpoints are
179         forced off, downgrade them to software watchpoints if possible,
180         and error out if not possible.
181         (watch_command_1): Move watchpoint type selection closer to
182         watchpoint creation, and extend the comments.
183
184 2013-10-18  Pedro Alves  <palves@redhat.com>
185
186         PR gdb/16062
187         * infrun.c (handle_inferior_event): Keep going if we got a random
188         signal we should not stop for, instead of falling through to the
189         step tests.
190
191 2013-10-18  Yao Qi  <yao@codesourcery.com>
192
193         * c-varobj.c (cplus_number_of_children): Fix indentation.
194
195 2013-10-17  Tom Tromey  <tromey@redhat.com>
196
197         PR gdb/15995:
198         * printcmd.c (printcmd): Call gdb_flush.
199
200 2013-10-17  Tom Tromey  <tromey@redhat.com>
201
202         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
203         (elf_locate_sections): Update.
204
205 2013-10-17  Yao Qi  <yao@codesourcery.com>
206
207         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
208         * ada-varobj.c: Remove the include of ada-varobj.h.
209         (ada_varobj_get_number_of_children): Declare.
210         (ada_varobj_get_name_of_child): Make it static.
211         (ada_varobj_get_path_expr_of_child): Likewise.
212         (ada_varobj_get_value_of_child): Likewise.
213         (ada_varobj_get_type_of_child): Likewise.
214         (ada_varobj_get_value_of_array_variable): Likewise.
215         * ada-varobj.h: Remove.
216
217 2013-10-17  Yao Qi  <yao@codesourcery.com>
218
219         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
220         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
221         * ada-varobj.c: Include "varobj.h".
222         (ada_number_of_children): New.  Moved from varobj.c.
223         (ada_name_of_variable, ada_name_of_child): Likewise.
224         (ada_path_expr_of_child, ada_value_of_child): Likewise.
225         (ada_type_of_child, ada_value_of_variable): Likewise.
226         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
227         (ada_varobj_ops): New.
228         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
229         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
230         * gdbtypes.h (get_target_type): Declare.
231         * varobj.c: Remove the inclusion of "ada-varobj.h" and
232         "ada-lang.h".
233         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
234         (ANONYMOUS_UNION_NAME): Likewise.
235         (get_type, get_value_type, get_target_type): Remove declarations.
236         (value_get_print_value, varobj_value_get_print_value): Likewise.
237         (c_number_of_children, c_name_of_variable): Likewise.
238         (c_name_of_child, c_path_expr_of_child): Likewise.
239         (c_value_of_child, c_type_of_child): Likewise.
240         (c_value_of_variable, cplus_number_of_children): Likewise.
241         (cplus_class_num_children, cplus_name_of_variable): Likewise.
242         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
243         (cplus_value_of_child, cplus_type_of_child): Likewise.
244         (cplus_value_of_variable, java_number_of_children): Likewise.
245         (java_name_of_variable, java_name_of_child): Likewise.
246         (java_path_expr_of_child, java_value_of_child): Likewise.
247         (java_type_of_child, java_value_of_variable): Likewise.
248         (ada_number_of_children, ada_name_of_variable): Likewise.
249         (ada_name_of_child, ada_path_expr_of_child): Likewise.
250         (ada_value_of_child, ada_type_of_child): Likewise.
251         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
252         (ada_value_has_mutated): Likewise.
253         (struct language_specific): Move it to varobj.h.
254         (CPLUS_FAKE_CHILD): Move it to varobj.h.
255         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
256         Callers update.
257         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
258         Make it extern.
259         (is_anonymous_child): Move it to c-varobj.c and rename to
260         varobj_is_anonymous_child.  Caller update.
261         (get_type): Move it to c-varobj.c.
262         (get_value_type): Rename it varobj_get_value_type.  Make it
263         extern.
264         (get_target_type): Move it gdbtypes.c.
265         (varobj_formatted_print_options): New function.
266         (value_get_print_value): Rename it to
267         varobj_value_get_print_value and make it extern.
268         (varobj_value_is_changeable_p): Make it extern.
269         (adjust_value_for_child_access): Move it to c-varobj.c.
270         (default_value_is_changeable_p): Rename it to
271         varobj_default_value_is_changeable_p.  Make it extern.
272         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
273         (c_name_of_child, c_path_expr_of_child): Likewise.
274         (c_value_of_child, c_type_of_child): Likewise.
275         (c_value_of_variable, cplus_number_of_children): Likewise.
276         (cplus_class_num_children, cplus_name_of_variable): Likewise.
277         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
278         (cplus_value_of_child, cplus_type_of_child): Likewise.
279         (cplus_value_of_variable): Likewise.
280         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
281         (java_name_of_child, java_path_expr_of_child): Likewise.
282         (java_value_of_child, java_type_of_child): Likewise.
283         (java_value_of_variable): Likewise.
284         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
285         (ada_name_of_child, ada_path_expr_of_child): Likewise.
286         (ada_value_of_child, ada_type_of_child): Likewise.
287         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
288         (ada_value_has_mutated): Likewise.
289         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
290         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
291         (c_varobj_ops, cplus_varobj_ops): Declare.
292         (java_varobj_ops, ada_varobj_ops): Declare.
293         (varobj_default_value_is_changeable_p): Declare.
294         (varobj_value_is_changeable_p): Declare.
295         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
296         (varobj_get_path_expr_parent): Declare.
297         (varobj_value_get_print_value): Declare.
298         (varobj_formatted_print_options): Declare.
299         (varobj_restrict_range): Declare.
300
301 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
302
303         * target/waitstatus.h (target_waitkind): Remove spurious
304         character from the comments.
305
306 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
307
308         * gdbarch.sh (get_longjmp_target): Add method documentation.
309         * gdbarch.h: Regenerate.
310
311 2013-10-16  Tom Tromey  <tromey@redhat.com>
312
313         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
314         label.
315
316 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
317
318         * gcore.in: Call GDB using the full path to the gcore script.
319         Error out if the GDB binary is not found.
320
321 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
322
323         PR gdb/16014
324         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
325         sizeof.
326
327 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
328
329         PR gdb/16042
330         * target.c (target_disable_btrace): Fix invalid return value for
331         void function.
332         (target_teardown_btrace): Likewise.
333
334 2013-10-14  Yao Qi  <yao@codesourcery.com>
335
336         * varobj.c (struct varobj): Move most of the fields to
337         varobj.h.
338         (struct varobj_dynamic): New struct.
339         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
340         (varobj_has_more): Likewise.
341         (dynamic_varobj_has_child_method): Likewise.
342         (update_dynamic_varobj_children): Likewise.
343         (varobj_get_num_children): Likewise.
344         (varobj_list_children, varobj_pretty_printed_p): Likewise.
345         (install_new_value_visualizer): Likewise.
346         (install_new_value_visualizer, install_new_value): Likewise.
347         (varobj_update, new_variable, free_variable): Likewise.
348         (my_value_of_variable, value_get_print_value): Likewise.
349         (install_visualizer): Change the type of parameter 'var' to
350         'struct varobjd_dynamic *'.  Callers update.
351         * varobj.h (struct varobj): Moved from varobj.c.
352         (struct varobj) <dynamic>: New field.
353
354 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
355
356         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
357         as the preferred name of r30.
358         * nios2-linux-tdep.c (reg_offsets): Likewise.
359         * features/nios2-cpu.xml: Likewise.
360         * features/nios2-linux.c: Regenerated.
361         * features/nios2.c: Regenerated.
362         * regformats/nios2-linux.dat: Regenerated.
363
364 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
365
366         Canonicalize directories for EXEC_FILENAME.
367         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
368         exec_filename.
369         * utils.c (gdb_realpath_keepfile): New function.
370         * utils.h (gdb_realpath_keepfile): New declaration.
371
372 2013-10-11  Doug Evans  <dje@google.com>
373
374         * Makefile.in (GDBFLAGS): New variable.
375         (run): New rule.
376
377 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
378
379         * NEWS: Add entry documenting the new "-catch-assert" and
380         "-catch-exception" GDB/MI commands.
381
382 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
383
384         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
385         "enabled".
386         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
387         "enabled".  Set B->ENABLE_STATE accordingly.
388         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
389         ada-lang.c.
390         (create_ada_exception_catchpoint): Add declaration.
391         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
392         (create_ada_exception_catchpoint): Make non-static. Add new
393         parameter "disabled". Use it in call to
394         init_ada_exception_breakpoint.
395         (catch_ada_exception_command): Add parameter "enabled" in call
396         to create_ada_exception_catchpoint.
397         (catch_assert_command): Likewise.
398
399         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
400         Add declarations.
401         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
402         "catch-exception" commands.
403         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
404         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
405
406 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
407
408         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
409         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
410         of all its enumerates with "ada_".  Update the rest of this
411         file throughout.
412
413 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
414
415         * ada-lang.c (ada_decode_exception_location): Delete.
416         (create_ada_exception_catchpoint): Remove arguments "sal",
417         "addr_string" and "ops".  Add argument "ex_kind" instead.
418         Adjust implementation accordingly, calling ada_exception_sal
419         to get the entities it no longer gets passed as arguments.
420         Document the function's arguments.
421         (catch_ada_exception_command): Use catch_ada_exception_command_split
422         instead of ada_decode_exception_location, and update call to
423         create_ada_exception_catchpoint.
424         (catch_ada_assert_command_split): Renames
425         ada_decode_assert_location.  Remove parameters "addr_string" and
426         "ops", and now returns void.  Adjust implementation accordingly.
427         Update the function documentation.
428         (catch_assert_command): Use catch_ada_assert_command_split
429         instead of ada_decode_assert_location.  Update call to
430         create_ada_exception_catchpoint.
431
432 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
433
434         * utils.h (perror_warning_with_name): Add declaration.
435         * utils.c (perror_warning_with_name): New function.
436         * cli/cli-cmds.c (source_script_with_search): Add call to
437         perror_warning_with_name if from_tty is nul.
438
439 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
440
441         * utils.c (perror_string): New function, extracted out of
442         throw_perror_with_name.
443         (throw_perror_with_name): Rework to use perror_string.
444
445 2013-10-11  Yao Qi  <yao@codesourcery.com>
446
447         * remote.c (discard_pending_stop_replies_in_queue): Update
448         declaration.
449         (struct stop_reply) <rs>: New field.
450         (remove_stop_reply_of_remote_state): New function.
451         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
452         Callers update.  Pass remove_stop_reply_of_remote_state to
453         QUEUE_iterate.
454         (remote_parse_stop_reply): Initialize field 'rs'.
455
456 2013-10-10  Will Newton  <will.newton@linaro.org>
457
458         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
459         linux_init_abi.
460
461 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
462
463         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
464         serial_baud_show_cmd.
465         (_initialize_cli_cmds): Delete the code creating the
466         "set/show remotebaud" commands.
467         * serial.c (baud_rate): Move here from top.c.
468         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
469         (_initialize_serial): Create "set/show serial baud" commands.
470         Add "set/show remotebaud" command aliases.
471         * top.c (baud_rate): Moved to serial.c.
472         * NEWS: Document the new "set/show serial baud" commands,
473         replacing "set/show remotebaud".
474
475 2013-10-09  Pedro Alves  <palves@redhat.com>
476
477         * breakpoint.c (insert_bp_location): Use memory_error_message to
478         build the memory error string.
479         * c-lang.c: Include "gdbcore.h".
480         (c_get_string): Use memory_error to throw error.
481         (target_xfer_memory_error): Delete.
482         (memory_error_message): New, factored out from
483         target_xfer_memory_error.
484         (memory_error): Change parameter type to target_xfer_error.
485         Rewrite.
486         (read_memory): Use memory_error instead of
487         target_xfer_memory_error.
488         * gdbcore.h: Include "target.h".
489         (memory_error): Change parameter type to target_xfer_error.
490         (memory_error_message): Declare function.
491         * target.c (target_read_memory, target_read_stack)
492         (target_write_memory, target_write_raw_memory): Return
493         TARGET_XFER_E_IO on error.  Adjust comments.
494         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
495         instead of EIO.
496         * target.h (target_read, target_insert_breakpoint)
497         (target_remove_breakpoint): Adjust comments.
498         * valprint.c (partial_memory_read): Rename parameter, and adjust
499         comment.
500         (val_print_string): Use memory_error_message to build the memory
501         error string.
502
503 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
504
505         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
506         result variable.  Rename variable fopen_e_ever_failed to
507         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
508
509 2013-10-09  Pedro Alves  <palves@redhat.com>
510
511         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
512         (monitor_write_memory_longlongs, monitor_write_memory_block):
513         Constify 'myaddr' parameter.
514         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
515         helper.
516         (monitor_xfer_partial): New function.
517         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
518         hook.  Install a to_xfer_partial hook.
519
520 2013-10-09  Tom Tromey  <tromey@redhat.com>
521
522         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
523         bfd_get_alt_debug_link_info.
524
525 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
526
527         New flag OBJF_NOT_FILENAME.
528         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
529         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
530         allocate_objfile.
531         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
532         symbol_file_add_from_bfd.
533         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
534         allocate_objfile.
535         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
536         NULL.
537         * objfiles.h (OBJF_NOT_FILENAME): New.
538
539 2013-10-08  Tom Tromey  <tromey@redhat.com>
540
541         * Makefile.in (SFILES): Add build-id.c.
542         (HFILES_NO_SRCDIR): Add build-id.h.
543         * build-id.c: New file, largely from elfread.c.  Modified
544         most functions.
545         * build-id.h: New file.
546         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
547         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
548         Search for dwz file using build-id.
549         * elfread.c (build_id_bfd_get, build_id_verify)
550         (build_id_to_debug_filename, find_separate_debug_file): Remove.
551
552 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
553
554         * ada-lang.c (compare_names_with_case): Renamed from
555         compare_names, adding a new parameter "casing" and its handling.
556         New function documentation.
557         (compare_names): New function, implemented using
558         compare_names_with_case.
559
560 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
561
562         * ada-lang.c (ada_exception_sal): Remove advance declaration.
563
564 2013-10-07  Tom Tromey  <tromey@redhat.com>
565
566         * objfiles.c (free_objfile_per_bfd_storage): Delete the
567         demangled_names_hash.
568         (free_objfile): Don't delete the demangled_names_hash.
569         * objfiles.h (struct objfile_per_bfd_storage)
570         <demangled_names_hash>: New field.
571         (struct objfile) <demangled_names_hash>: Move to
572         objfile_per_bfd_storage.
573         * symfile.c (reread_symbols): Don't delete the
574         demangled_names_hash.
575         * symtab.c (create_demangled_names_hash): Update.
576         (symbol_set_names): Update.
577
578 2013-10-07  Tom Tromey  <tromey@redhat.com>
579
580         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
581         needs_relocations>: New fields.
582         (gdb_bfd_requires_relocations): New function.
583         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
584         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
585         the BFD needs relocations applied.
586
587 2013-10-07  Pedro Alves  <palves@redhat.com>
588
589         PR breakpoints/11568
590         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
591         the thread list" instead of "gone".
592
593 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
594
595         * NEWS: Mention new convenience variable $_exitsignal.
596         * corelow.c (core_open): Reset exit convenience variables.  Set
597         $_exitsignal to the uncaught signal which generated the corefile.
598         * infrun.c (handle_inferior_event): Reset exit convenience
599         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
600         (clear_exit_convenience_vars): New function.
601         * inferior.h (clear_exit_convenience_vars): New prototype.
602
603 2013-10-06  Yao Qi  <yao@codesourcery.com>
604
605         * varobj.h: Add comments to enum varobj_languages.
606
607 2013-10-04  Doug Evans  <dje@google.com>
608
609         Add support for DWP file format version 2.
610         * NEWS: Mention support for DWP file format version 2.
611         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
612         union of asection, containing_section.  New fields virtual_offset
613         and is_virtual.  Change type of readin filed from int to char.
614         (dwo_sections, dwo_file): Tweak comments.
615         (dwp_v2_section_ids): New enum.
616         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
617         str_offsets, types.
618         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
619         All uses updated.
620         (virtual_v2_dwo_sections): New struct.
621         (dwp_hash_table): New fields version, nr_columns.  Change type of
622         section_pool field to a union.
623         (dwp_file): New field version.
624         (dwarf2_has_info): Check for virtual sections.
625         (get_containing_section): New function.
626         (get_section_bfd_owner, get_section_bfd_section): Call it.
627         (dwarf2_locate_sections): Update.
628         (dwarf2_section_empty_p): Update.
629         (dwarf2_read_section): Handle virtual sections.
630         (locate_dwz_sections): Update.
631         (create_dwp_hash_table): Document and handle V2 format.
632         (locate_v1_virtual_dwo_sections): Renamed from
633         locate_virtual_dwo_sections and update.  All callers updated.
634         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
635         Delete arg htab.  Rename arg section_index to unit_index.
636         All callers updated.
637         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
638         All uses updated.
639         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
640         (lookup_dwo_unit_in_dwp): Add V2 support.
641         (dwarf2_locate_dwo_sections): Update.
642         (dwarf2_locate_common_dwp_sections): Renamed from
643         dwarf2_locate_dwp_sections and update.  All callers updated.
644         (dwarf2_locate_v2_dwp_sections): New function.
645         (open_and_init_dwp_file): Add V2 support.
646         (read_str_index): New locals str_section, str_offsets_section.
647
648 2013-10-04  Pedro Alves  <palves@redhat.com>
649
650         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
651         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
652         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
653         describing comments with references to ptid.h.
654         * common/ptid.h: Remove intro description of constructors,
655         accessors and predicates.
656         (struct ptid): Reformat.
657         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
658         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
659         describing comments.
660
661 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
662
663         * aix-thread.c (sync_threadlists): Add missing ')' in call
664         to ptid_build.
665
666 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
667
668         * procfs.c (procfs_init_inferior): Fix typo causing the build
669         to fail.
670
671 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
672
673         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
674
675 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
676
677         * mi/mi-main.c (run_one_inferior): Add function description.
678         Make ARG a pointer to an integer whose value determines whether
679         we should "run" or "start" the program.
680         (mi_cmd_exec_run): Add handling of the "--start" option.
681         Reject all other command-line options.
682         * NEWS: Add entry for "-exec-run"'s new "--start" option.
683
684 2013-10-04  Yao Qi  <yao@codesourcery.com>
685
686         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
687         (struct notif_client) <pending_event>: Moved
688         to struct remote_notif_state.
689         <id>: New field.
690         (struct remote_notif_state) <pending_event>: New field.
691         (notif_event_xfree): Declare.
692         * remote-notif.c (handle_notification): Adjust.
693         (notif_event_xfree): New function.
694         (do_notif_event_xfree): Call notif_event_xfree.
695         (remote_notif_state_xfree): Call notif_event_xfree to free
696         each element in field pending_event.
697         * remote.c (discard_pending_stop_replies): Remove declaration.
698         (discard_pending_stop_replies_in_queue): Declare.
699         (remote_close): Call discard_pending_stop_replies_in_queue
700         instead of discard_pending_stop_replies.
701         (remote_start_remote): Adjust.
702         (stop_reply_xfree): Call notif_event_xfree.
703         (notif_client_stop): Adjust initialization.
704         (remote_notif_remove_all): Rename it to ...
705         (remove_stop_reply_for_inferior): ... this.  Update comments.
706         Don't check INF is NULL.
707         (discard_pending_stop_replies): Return early if notif_state is
708         NULL.  Adjust.  Don't check INF is NULL.
709         (remote_notif_get_pending_events): Adjust.
710         (discard_pending_stop_replies_in_queue): New function.
711         (remote_wait_ns): Likewise.
712
713 2013-10-04  Yao Qi  <yao@codesourcery.com>
714
715         * remote-notif.c (DECLARE_QUEUE_P): Remove.
716         (notif_queue): Remove.
717         (remote_notif_process): Add one parameter 'notif_queue'.
718         Update comments.  Callers update.
719         (remote_async_get_pending_events_token): Remove.
720         (remote_notif_register_async_event_handler): Remove.
721         (remote_notif_unregister_async_event_handler): Remove.
722         (handle_notification): Add parameter 'notif_queue'.  Update
723         comments.  Callers update.
724         (notif_xfree): Remove.
725         (remote_notif_state_allocate): New function.
726         (remote_notif_state_xfree): New function.
727         (_initialize_notif): Remove code to allocate queue.
728         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
729         (struct remote_notif_state): New.
730         (handle_notification): Update declaration.
731         (remote_notif_process): Likewise.
732         (remote_notif_register_async_event_handler): Remove.
733         (remote_notif_unregister_async_event_handler): Remove.
734         (remote_notif_state_allocate): Declare.
735         (remote_notif_state_xfree): Declare.
736         * remote.c (struct remote_state) <notif_state>: New field.
737         (remote_close): Don't call
738         remote_notif_unregister_async_event_handler.  Call
739         remote_notif_state_xfree.
740         (remote_open_1): Don't call
741         remote_notif_register_async_event_handler.  Call
742         remote_notif_state_allocate.
743
744 2013-10-04  Yao Qi  <yao@codesourcery.com>
745
746         * varobj.c (create_child_with_value): Remove 'const' from the
747         type of parameter 'name'.
748         (varobj_add_child): Likewise.
749         (install_dynamic_child): Remove 'const' from the type of
750         parameter 'name'.
751         (varobj_add_child): Likewise.
752         (create_child_with_value): Likewise.  Update comments.  Don't
753         duplicate 'name'.
754         (update_dynamic_varobj_children): Duplicate 'name'
755         and pass it to install_dynamic_child.
756
757 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
758
759         * python/py-value.c (convert_value_from_python): Move PyInt_Check
760         conversion logic to occur after PyLong_Check.  Comment on order
761         change significance.
762         * python/py-arch.c (archpy_disassemble): Comment on order of
763         conversion for integers and longs.
764
765 2013-10-03  Pedro Alves  <palves@redhat.com>
766
767         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
768         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
769         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
770         PTRACE_O_TRACEFORK is not supported.
771         (linux_test_for_tracesysgood): New function.
772         (linux_test_for_tracefork): New function, factored out from
773         linux_check_ptrace_features, and also don't kill child_pid here.
774
775 2013-10-03  Tristan Gingold  <gingold@adacore.com>
776
777         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
778         Remove verbose error reporting.  Use detected state to
779         thread_set_state call.
780         (i386_darwin_dr_get): Fix return type.  Remove verbose error
781         report.
782         Remove trailing spaces.
783
784 2013-10-02  Pedro Alves  <palves@redhat.com>
785
786         * cp-valprint.c (cp_print_value_fields): Adjust calls to
787         val_print_optimized_out.
788         * jv-valprint.c (java_print_value_fields): Likewise.
789         * p-valprint.c (pascal_object_print_value_fields): Likewise.
790         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
791         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
792         new optimized out value.
793         * findvar.c (address_from_register): Likewise.
794         * frame.c (put_frame_register): Tweak error string to say the
795         register was not saved, rather than optimized out.
796         * infcmd.c (default_print_one_register_info): Adjust call to
797         val_print_optimized_out.  Use value_of_register instead of
798         get_frame_register_value.
799         * mi/mi-main.c (output_register): Use value_of_register instead of
800         get_frame_register_value.
801         * valprint.c (valprint_check_validity): Likewise.
802         (val_print_optimized_out): New value parameter.  If the value is
803         lval_register, print <not saved> instead.
804         (value_check_printable, val_print_scalar_formatted): Adjust calls
805         to val_print_optimized_out.
806         * valprint.h (val_print_optimized_out): New value parameter.
807         * value.c (struct value) <optimized_out>: Extend comment.
808         (error_value_optimized_out): New function.
809         (require_not_optimized_out): Use it.  Use a different string for
810         lval_register values.
811         * value.h (error_value_optimized_out): New declaration.
812         * NEWS: Mention <not saved>.
813
814 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
815
816         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
817         strcmp to compare two symtab filenames.
818
819 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
820
821         * symtab.c (search_symbols_equal): Delete.
822         (sort_search_symbols_remove_dups): Replace call to
823         search_symbols_equal by call to compare_search_syms,
824         adjusting as necessary.
825
826 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
827
828         PR python/15579
829
830         * python/python.c: Document gdb.execute command in Python help.
831
832 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
833
834         * python/py-frame.c (frame_info_to_frame_object): Use
835         gdbpy_convert_exception. Clean up Python object on failure.
836
837 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
838
839         * python/lib/gdb/command/frame_filters.py
840         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
841         (ShowFrameFilterPriority.invoke): Ditto.
842
843 2013-10-01  Keith Seitz  <keiths@redhat.com>
844
845         * linespec.c (struct ls_parser): Make 'saved_arg' const.
846         (parse_linespec): Make 'argptr' const.
847         Remove temporary cast of 'argptr' to const char **.
848         (decode_line_full): Pass const pointer to parse_linespec.
849         (decode_line_1): Likewise.
850         (decode_objc): Make local variable 'new_argptr' const.
851         (find_function_symbols): Remove temporary cast to char *
852         to find_imps.
853         * objc-lang.c (find_imps): Make argument 'method' const.
854         Return const.
855         * objc-lang.h (find_imps): Likewise.
856
857 2013-10-01  Keith Seitz  <keiths@redhat.com>
858
859         * completer.c (skip_quoted_chars): Make all arguments const.
860         Return const.
861         (skip_quoted): Likewise.
862         * completer.h (skip_quoted_chars): Likewise.
863         (skip_quoted): Likewise.
864         * defs.h (skip_quoted): Remove duplicate declaration.
865         * jv-exp.y: Include completer.h.
866         (yylex): Remove unneccessary cast to char * fro skip_quoted.
867         * p-exp.y: Include completer.h.
868
869 2013-10-01  Keith Seitz  <keiths@redhat.com>
870
871         * c-exp.y (parse_number): Make first argument const.
872         Make a copy of the input to manipulate.
873         (c_parse_escape): Make first argument const.
874         Make local variable 'tokptr' const.
875         (parse_string_or_char): Make first two arguments const.
876         (macro_original_text): Make const.
877         (lex_one_token): Make local variable 'tokstart' const.
878         Likewise for local variables named 'p'.
879         Cast away const for struct stoken (temporary).
880         * c-lang.h (c_parse_escpae): Make first argument const.
881         * cli/cli-cmds.c (echo_command): Make local variable 'p'
882         const.
883         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
884         var_string case.
885         * f-exp.y (parse_number): Make first argument const.
886         (match_string_literal): Make local variable 'tokstart'
887         const.
888         (yylex): Make local variable 'p' const.
889         Cast away const for struct stoken (temporary).
890         * go-exp.y (parse_number): Make first argument const.
891         (parse_string_or_char): Likewise.
892         Make local variable 'tokstart' const.
893         (lex_one_token): Likewise for numerous locals called 'p'.
894         Cast away const for struct stoken (temporary).
895         * jv-exp.y (parse_number): Make first argument const.
896         Make local variables 'tokstart' and 'tokptr' const.
897         Cast away const for call to skip_quoted (temporary).
898         (yylex): Make local variable 'p' const.
899         Cast away const for struct stoken (temporary).
900         * m2-exp.y (parse_number): Make local variable 'p' const.
901         (yylex): Likewise for 'tokstart'.
902         Cast away const for struct stoken (temporary).
903         Make local variable 'p' const.
904         * macroexp.c (get_character_constant): Pass a const string
905         to c_parse_escape.
906         (get_string_literal): Likewise.
907         (macro_expand_next): Make first argument const.
908         Cast away const for init_shared_buffer.
909         * macroexp.h (macro_expand_next): Make first argument const.
910         * p-exp.y (yylex): Make a local copy of 'lexptr'.
911         Pass a const string to c_parse_escape.
912         Make local variables 'p' and 'namestart' const.
913         * parse.c (lexptr): Make const.
914         (prev_lexptr): Likewise.
915         (find_template_name_end): Return const.
916         Make argument const, too.
917         (parse_exp_in_context): Make first argument const.
918         Remove the entire const_hack.
919         (parse_exp_in_context_1): Make first argument const.
920         * parser-defs.h (find_template_name_end): Return const.
921         Make argument const, too.
922         (lexptr): Make const.
923         (prev_lexptr): Likewise.
924         * utils.c (parse_escape): Make second argument const.
925         * utils.h (parse_escape): Likewise.
926
927 2013-10-01  Keith Seitz  <keiths@redhat.com>
928
929         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
930         is now const.
931         (block_lookup): Make 'raw_name' and 'name' const.
932         * ada-lex.l (processString): Update for struct stoken.ptr.
933         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
934         (operator_stoken): Likewise.
935         (lex_one_token): Remove temporary cast to char * for
936         'yylval.sval.ptr'.
937         * f-exp.y (yylex): Likewise.
938         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
939         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
940         * go-exp.y (lex_one_token): Remove temporary cast to char * for
941         'yylval.sval.ptr'.
942         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
943         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
944         * linespec.c (struct ls_parser): Make 'stream' const.
945         (find_parameter_list_end): Make argument 'input' and local
946         variable 'p' const.
947         (linespec_lexer_lex_string): Make local variables 'start' and
948         'p' const.
949         Use skip_spaces_const instead of skip_spaces.
950         (linespec_lexer_peek_token): Make local variable 'saved_stream'
951         const.
952         (parse_linespec): Temporarily cast 'argptr' to const for
953         'parser->lexer.stream'.
954         * m2-exp.y (yylex): Remove temporary cast to char * for
955         'yylval.sval.ptr'.
956         * objc-lang.c (add_msglist): Make local variable 'p' const.
957         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
958         (exp : STRING): Make 'sp' const.
959         (parse_number): Make argument 'p' const.
960         * parser-defs.h (struct stoken): Make 'ptr' const.
961
962 2013-10-01  Doug Evans  <dje@google.com>
963
964         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
965
966 2013-10-01  Yao Qi  <yao@codesourcery.com>
967
968         * varobj.c (c_value_of_root): Remove declaration.
969         (cplus_value_of_root, java_value_of_root): Likewise.
970         (ada_value_of_root): Likewise.
971         (struct language_specific) <value_of_root>: Remove.
972         (languages): Update initialization.
973         (check_scope): Move earlier.
974         (c_value_of_root): Move earlier and rename to ...
975         (value_of_root_1): ... this.
976         (value_of_root): Caller update.
977         (cplus_value_of_root, java_value_of_root): Remove.
978         (ada_value_of_root): Remove.
979
980 2013-10-01  Yao Qi  <yao@codesourcery.com>
981
982         * varobj.c (varobj_format_string): Remove "unknown".
983         (languages): Remove the first element.
984         * varobj.h (enum varobj_languages): Remove vlang_c.
985
986 2013-10-01  Yao Qi  <yao@codesourcery.com>
987
988         * varobj.c (struct language_specific) <language>: Remove.
989         (languages): Update the initialization.
990
991 2013-10-01  Yao Qi  <yao@codesourcery.com>
992
993         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
994         "solib-target.h".  Include "windows-tdep.h".
995         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
996         set_solib_ops and set_gdbarch_has_dos_based_file_system.
997         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
998         windows-tdep.o to gdb_target_obs.
999
1000 2013-10-01  Yao Qi  <yao@codesourcery.com>
1001
1002         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1003         "solib-target.h".
1004         (amd64_windows_init_abi): Don't call set_solib_ops and
1005         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1006         windows_init_abi instead.
1007         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1008         "solib-target.h".
1009         (i386_cygwin_init_abi): Don't call set_solib_ops,
1010         set_gdbarch_has_dos_based_file_system and
1011         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1012         windows_init_abi instead.
1013         * windows-tdep.c: Include "solib.h" and "solib-target.h".
1014         (windows_init_abi): New function.
1015         (windows_iterate_over_objfiles_in_search_order): Make it
1016         static.
1017         * windows-tdep.h (windows_init_abi): Declare.
1018         (windows_iterate_over_objfiles_in_search_order): Remove
1019         declaration.
1020
1021 2013-10-01  Jerome Guitton  <guitton@adacore.com>
1022
1023         Checked in by Joel Brobecker  <brobecker@adacore.com>
1024         * system-gdbinit/elinos.py (get_elinos_environment): Return an
1025         incomplete dictionnary instead of None in case of missing
1026         environment variables.
1027         (elinos_init): in case of an incomplete environment, best
1028         effort to load system libraries instead of abort.
1029
1030 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
1031
1032         * ada-lang.c (ada_has_this_exception_support): Ignore
1033         mst_solib_trampoline minimal symbols.
1034
1035 2013-09-30  Tristan Gingold  <gingold@adacore.com>
1036
1037         * i386-darwin-nat.c (darwin_complete_target): Install methods for
1038         hardware watchpoint.
1039         (i386_darwin_dr_set): Support 32 and 64 bit states.
1040         (i386_darwin_dr_get): Likewise.
1041         (i386_darwin_dr_set_control): Make static.
1042         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1043         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1044
1045 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
1046
1047         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1048         Replace TIDGET with ptid_get_lwp.
1049         Replace GET_LWP with ptid_get_lwp.
1050         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1051         Replace BUILD_THREAD with ptid_build.
1052         Replace BUILD_LWP with ptid_build.
1053         Replace PIDGET with ptid_get_pid.
1054         Replace TIDGET with ptid_get_lwp.
1055         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1056         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1057         Replace TIDGET with ptid_get_lwp.
1058         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1059         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1060         Replace TIDGET with ptid_get_lwp.
1061         Replace GET_LWP with ptid_get_lwp.
1062         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1063         * auxv.c: Likewise.
1064         * breakpoint.c: Likewise.
1065         * common/ptid.c (ptid_is_pid): Condense check for
1066         null_ptid and minus_one_ptid.
1067         (ptid_lwp_p): New function.
1068         (ptid_tid_p): New function.
1069         * common/ptid.h: Update comments for accessors.
1070         (ptid_lwp_p): New prototype.
1071         (ptid_tid_p): New prototype.
1072         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1073         * gcore.c: Replace PIDGET with ptid_get_pid.
1074         * gdbthread.h: Likewise.
1075         * gnu-nat.c: Likewise.
1076         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1077         Replace TIDGET with ptid_get_lwp.
1078         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1079         * hppanbsd-nat.c: Likewise.
1080         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1081         Replace TIDGET with ptid_get_lwp.
1082         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1083         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1084         * infcmd.c: Likewise.
1085         * inferior.h: Likewise.
1086         * inflow.c: Likewise.
1087         * infrun.c: Likewise.
1088         * linux-fork.c: Likewise.
1089         * linux-nat.c: Replace PIDGET with ptid_get_pid.
1090         Replace GET_PID with ptid_get_pid.
1091         Replace is_lwp with ptid_lwp_p.
1092         Replace GET_LWP with ptid_get_lwp.
1093         Replace BUILD_LWP with ptid_build.
1094
1095 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1096
1097         * common/linux-btrace.c: Move sys/syscall.h out of the
1098         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1099         Also check for SYS_perf_event_open before attempting to buid.
1100
1101 2013-09-27  Doug Evans  <dje@google.com>
1102
1103         * dwarf2read.c (dwarf2_section_info): Add comment.
1104         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1105         All uses updated.
1106         (dwarf2_section_empty_p): Rename arg from "info" to "section".
1107         (dwarf2_read_section): Delete unused local "header".  Add section
1108         name to error message.
1109         (create_dwo_in_dwp): Tweak comment.
1110         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1111
1112         * dwarf2read.c (die_reader_specs): Tweak comment.
1113         (get_section_bfd_owner, get_section_bfd_section): New functions.
1114         (get_section_name, get_section_file_name): New functions.
1115         (get_section_id, get_section_flags): New functions.
1116         (*): Use new functions to access section fields.
1117
1118         * dwarf2read.c (struct dwo_file): Add/tweak comments.
1119         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
1120         arg "htab".  All callers updated.
1121         (create_debug_types_hash_table): Remove redundant copy of
1122         abbrev_section.
1123         (create_dwo_in_dwp): Tweak comments.
1124         (read_str_index): Tweak comment.  Record dwarf form name in static
1125         local.
1126
1127 2013-09-27  Pedro Alves  <palves@redhat.com>
1128
1129         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1130         (remote_filename_p): Add comment.
1131         * remote.c (remote_filename_p): Adjust to use
1132         REMOTE_SYSROOT_PREFIX.
1133         * solib.c (solib_find): When deciding whether we need to add a
1134         directory separator, check whether the sysroot is "remote:"
1135         instead of checking whether the patch has a drive spec.  Add
1136         comments.
1137
1138 2013-09-27  Pedro Alves  <palves@redhat.com>
1139
1140         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1141         Delete fields.
1142         (remote_parse_stop_reply): Adjust, setting event->ws.kind
1143         directly.
1144
1145 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1146
1147         Fix set debug frame output.
1148         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
1149         SENTINEL_FRAME entry lower to match enum frame_type order.
1150
1151 2013-09-26  Pierre Muller  <muller@sourceware.org>
1152
1153         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1154         AMD64_R15_REGNUM when a register index is expected.
1155         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1156         Substitute in array.
1157         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1158         (amd64_push_arguments): Substitute in integer_regnum array.
1159
1160 2013-09-25  Doug Evans  <dje@google.com>
1161
1162         * objfiles.c (allocate_objfile): Move comment to better place.
1163
1164         New option "set debug symfile on".
1165         * NEWS: Mention "set debug symfile".
1166         * Makefile.in (SFILES): Add symfile-debug.c.
1167         (COMMON_OBS): Add symfile-debug.o.
1168         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1169         objfile's symbol functions.
1170         * objfiles.h (objfile_set_sym_fns): Declare.
1171         * symfile-debug.c: New file.
1172         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1173         objfile's symbol functions.
1174         (reread_symbols): Ditto.
1175
1176         * symfile.h (struct sym_fns): Delete member "sym_flavour".
1177         All uses updated.
1178         (add_symtab_fns): Update prototype.
1179         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
1180         (registered_sym_fns): ... this.
1181         (symtab_fns): Update.
1182         (add_symtab_fns): New arg "flavour".  All callers updated.
1183         (find_sym_fns): Rewrite to use new sym_fns registry.
1184
1185         * symfile.h (struct sym_fns): Add "objfile" argument to
1186         sym_read_linetable.  All uses updated.
1187
1188         * symtab.c (domain_name, search_domain_name): New functions.
1189         * symtab.h (domain_name, search_domain_name): Declare.
1190
1191         * symfile.h (struct quick_symbol_functions): Reorg arg list of
1192         map_matching_symbols so objfile is first.  All uses updated.
1193         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1194         * psymtab.c (map_matching_symbols_psymtab): Update signature.
1195
1196 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1197
1198         PR shlibs/8882
1199         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1200         link map entries.
1201
1202 2013-09-24  Doug Evans  <dje@google.com>
1203
1204         * objfiles.c (free_objfile): Move comment.
1205
1206 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1207
1208         * ada-exp.y (string_to_operator): Delete.
1209         (dummy_string_to_ada_operator): Delete.
1210
1211 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1212
1213         Revert:
1214         * i386-tdep.h (enum amd64_reg_class): New, moved here from
1215         amd64-tdep.c.
1216         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1217         call_dummy_integer_regs, and classify.
1218         * amd64-tdep.h (amd64_classify): Add declaration.
1219         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1220         (amd64_reg_class): Delete, moved to i386-tdep.h.
1221         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
1222         Replace call to amd64_classify by call to tdep->classify.
1223         (amd64_push_arguments): Get the list of registers to use for
1224         passing integer parameters from the gdbarch tdep structure,
1225         rather than using a hardcoded one.  Replace calls to amd64_classify
1226         by calls to tdep->classify.
1227         (amd64_push_dummy_call): Get the register number used for
1228         the "hidden" argument from tdep->call_dummy_integer_regs.
1229         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1230         and tdep->call_dummy_integer_regs.  Set tdep->classify.
1231
1232 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1233
1234         Revert:
1235         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1236         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1237         where tdep->memory_args_by_pointer is non-zero.
1238
1239 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1240
1241         Revert:
1242         * i386-tdep.h (struct gdbarch_tdep): Add new field
1243         integer_param_regs_saved_in_caller_frame.
1244         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1245         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1246
1247 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
1248
1249         * amd64-windows-tdep.c: #include "value.h"
1250         (amd64_windows_classify): Delete.
1251         (amd64_windows_passed_by_integer_register)
1252         (amd64_windows_passed_by_xmm_register)
1253         (amd64_windows_passed_by_pointer)
1254         (amd64_windows_adjust_args_passed_by_pointer)
1255         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1256         (amd64_windows_push_dummy_call): New functions.
1257         (amd64_windows_init_abi): Remove setting of
1258         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1259         tdep->classify, tdep->memory_args_by_pointer and
1260         tdep->integer_param_regs_saved_in_caller_frame.
1261         Add call to set_gdbarch_push_dummy_call.
1262
1263 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1264
1265         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1266         objfile->original_name.
1267
1268 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1269
1270         Pass down original filename for objfile.
1271         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1272         * elfread.c (elf_symfile_read): Likewise.
1273         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1274         longer set ORIGINAL_NAME.
1275         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1276         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1277         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
1278         symbol_file_add_from_bfd call.
1279         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1280         (macho_check_dsym): Add parameter filenamep.  Change function comment.
1281         Set *filenamep.
1282         (macho_symfile_read): New variable dsym_filename.  Update
1283         macho_check_dsym call.  Use it for symbol_file_add_separate.
1284         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
1285         it.  Use it for objfile->original_name.
1286         (objfile_name): Return OBFD's filename, if available.
1287         * objfiles.h (allocate_objfile): Add new parameter name.
1288         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1289         * symfile-mem.c (symbol_file_add_from_memory): Update
1290         symbol_file_add_from_bfd call.
1291         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1292         comment for it.
1293         (symbol_file_add_with_addrs): New parameter name, add function comment
1294         for it.  Remove variable name.  Update allocate_objfile call.
1295         (symbol_file_add_separate): New parameter name, add function comment
1296         for it.  Update symbol_file_add_with_addrs call.
1297         (symbol_file_add_from_bfd): New parameter name.  Update
1298         symbol_file_add_with_addrs call.
1299         (symbol_file_add): Update symbol_file_add_from_bfd call.
1300         (reread_symbols): New variable original_name.  Save
1301         objfile->original_name by it.
1302         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1303         second parameter.
1304
1305 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1306
1307         Code cleanup: Add objfile_name accessor function.
1308         * ada-lang.c (is_known_support_routine): Use objfile_name.
1309         * auto-load.c (source_gdb_script_for_objfile)
1310         (auto_load_objfile_script): Likewise.
1311         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1312         * dbxread.c (dbx_symfile_read): Likewise.
1313         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1314         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1315         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1316         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1317         (lookup_dwp_signatured_type, lookup_dwo_unit)
1318         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1319         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1320         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1321         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1322         (dwarf2_record_block_ranges, read_common_block, read_typedef)
1323         (read_subrange_type, load_partial_dies, read_partial_die)
1324         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1325         (die_containing_type, build_error_marker_type, lookup_die_type)
1326         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1327         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1328         (get_DW_AT_signature_type, write_psymtabs_to_index)
1329         (save_gdb_index_command): Likewise.
1330         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1331         Likewise.
1332         * expprint.c (dump_subexp_body_standard): Likewise.
1333         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1334         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1335         original_name.
1336         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1337         obj_name, use objfile_name for it, use the variable.
1338         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1339         Use objfile_name.
1340         * machoread.c (macho_symtab_read, macho_check_dsym)
1341         (macho_symfile_relocate): Likewise.
1342         * maint.c (maintenance_translate_address): Likewise.
1343         * minidebug.c (find_separate_debug_file_in_section): Likewise.
1344         * minsyms.c (install_minimal_symbols): Likewise.
1345         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1346         original_name.
1347         (filter_overlapping_sections): Use objfile_name.
1348         (objfile_name): New function.
1349         * objfiles.h (struct objfile): Rename field name to original_name.
1350         (objfile_name): New prototype.
1351         * printcmd.c (sym_info, address_info): Use objfile_name.
1352         * probe.c (parse_probes, collect_probes, compare_probes)
1353         (info_probes_for_ops): Likewise.
1354         * progspace.c (clone_program_space): Likewise.
1355         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1356         (maintenance_info_psymtabs): Likewise.
1357         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1358         (source_section_scripts): Likewise.
1359         * python/py-objfile.c (objfpy_get_filename): Likewise.
1360         * python/py-progspace.c (pspy_get_filename): Likewise.
1361         * solib-aix.c (solib_aix_get_toc_value): Likewise.
1362         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1363         * solib.c (solib_read_symbols): Likewise.
1364         * stabsread.c (scan_file_globals): Likewise.
1365         * stap-probe.c (handle_stap_probe): Likewise.
1366         * symfile.c (symbol_file_clear, separate_debug_file_exists)
1367         (find_separate_debug_file_by_debuglink): Likewise.
1368         (reread_symbols): Likewise.  Use the objfile field name renamed to
1369         original_name.
1370         (allocate_symtab): Use objfile_name.
1371         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1372         (dump_objfile, dump_msymbols, dump_symtab_1)
1373         (maintenance_print_msymbols, maintenance_print_objfiles)
1374         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1375         * target.c (target_translate_tls_address, target_info): Likewise.
1376         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
1377         objfile_name.
1378
1379 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1380
1381         Code cleanup.
1382         * probe.c (parse_probes): Rename variable objfile_name to
1383         objfile_namestr.
1384
1385 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1386
1387         Remove solib-sunos.c.
1388         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1389         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1390         * objfiles.c (rt_common_objfile): Remove.
1391         (free_objfile): Remove rt_common_objfile comparison.
1392         * objfiles.h (rt_common_objfile): Remove.
1393         * solib-sunos.c: Remove.
1394         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1395
1396 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1397
1398         Remove a.out NetBSD and OpenBSD hosts.
1399         * NEWS (Removed native configurations): New.
1400         * config/arm/nbsdaout.mh: Remove.
1401         * config/i386/nbsdaout.mh: Remove.
1402         * config/i386/obsdaout.mh: Remove.
1403         * config/m68k/nbsdaout.mh: Remove.
1404         * config/sparc/nbsdaout.mh: Remove.
1405         * config/vax/nbsdaout.mh: Remove.
1406         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1407         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1408         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1409         error.
1410         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1411         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1412         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1413
1414 2013-09-23  Tom Tromey  <tromey@redhat.com>
1415
1416         * linespec.c (struct minsym_and_objfile): Remove.
1417         (minsym_and_objfile_d): Remove.
1418         (struct linespec, struct collect_info, linespec_parse_basic)
1419         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1420         (compare_msymbols, find_method, find_function_symbols)
1421         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1422         (add_minsym, search_minsyms_for_name): Update.
1423
1424 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1425
1426         * regcache.c: Add include of valprint.h.
1427         (dump_endian_bytes): Delete.
1428         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1429
1430 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
1431
1432         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1433
1434 2013-09-19  Pedro Alves  <palves@redhat.com>
1435
1436         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1437         breakpoints.
1438
1439 2013-09-19  Pedro Alves  <palves@redhat.com>
1440             Thomas Schwinge  <thomas@codesourcery.com>
1441             Yue Lu  <hacklu.newborn@gmail.com>
1442
1443         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1444         Take a gdb_byte pointer instead of a char pointer.
1445
1446         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1447         gnu_xfer_partial helper.
1448         (gnu_xfer_partial): New function.
1449         (gnu_target): Don't install a deprecated_xfer_memory hook.
1450         Install a to_xfer_partial hook.
1451
1452 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1453
1454         Constification.
1455         * main.c (captured_main): Replace catch_command_errors by
1456         catch_command_errors_const.  Twice.
1457         * symfile.c (symbol_file_add_main_1): Make args parameter const.
1458         (symbol_file_add): Make name parameter const.
1459         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1460         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
1461         variable name.  Change their usage accordingly.
1462         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1463         const.
1464         (symbol_file_add_main): Make args parameter const.
1465
1466 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
1467             Ulrich Weigand  <uweigand@de.ibm.com>
1468
1469         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1470         of c_value member.
1471         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1472
1473 2013-09-18  Pedro Alves  <palves@redhat.com>
1474             Yue Lu  <hacklu.newborn@gmail.com>
1475
1476         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1477         (gnu_create_inferior)
1478         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1479         (set_sig_thread_cmd): Use the lwpid field of ptids to
1480         store/extract thread ids instead of the tid field.
1481         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1482
1483 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1484
1485         * infcmd.c (default_print_one_register_info): Add detection of
1486         optimized out values.
1487         (default_print_registers_info): Switch to using
1488         get_frame_register_value.
1489
1490 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
1491
1492         * infrun.c (handle_inferior_event): Check if we know the
1493         function start address before setting a resume breakpoint.
1494
1495 2013-09-18  Pedro Alves  <palves@redhat.com>
1496
1497         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1498         minus_one_ptid instead of looking at the ptid's tid field and
1499         comparing that to -1.
1500
1501 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1502
1503         * main.h (get_gdb_program_name): Remove extra whitespace.
1504
1505 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
1506
1507         * main.h (get_gdb_program_name): Add declaration.
1508         * main.c (get_gdb_program_name): Add definition.
1509
1510 2013-09-17  Doug Evans  <dje@google.com>
1511
1512         * dwarf2read.c: Move definitions of complaint functions to after
1513         forward declarations of local functions.
1514
1515 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
1516             Pedro Alves  <palves@redhat.com>
1517
1518         PR gdb/11568
1519         * breakpoint.c (remove_threaded_breakpoints): New function.
1520         (_initialize_breakpoint): Attach remove_threaded_breakpoints
1521         as thread_exit observer.
1522
1523 2013-09-17  Pedro Alves  <palves@redhat.com>
1524
1525         PR gdb/15911
1526         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1527         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1528         * corelow.c (core_open):
1529         * frame.h (print_stack_frame, print_frame_info): New
1530         'set_current_sal' parameter.
1531         * infcmd.c (finish_command, kill_command): Adjust call to
1532         print_stack_frame.
1533         * inferior.c (inferior_command): Likewise.
1534         * infrun.c (normal_stop): Likewise.
1535         * linux-fork.c (linux_fork_context): Likewise.
1536         * record-full.c (record_full_goto_entry, record_full_restore):
1537         Likewise.
1538         * remote-mips.c (common_open): Likewise.
1539         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1540         Use it.
1541         (print_frame_info): New 'set_current_sal' parameter.  Set the last
1542         displayed sal depending on the new paremeter instead of looking at
1543         print_what.
1544         (backtrace_command_1, select_and_print_frame, frame_command)
1545         (current_frame_command, up_command, down_command): Adjust call to
1546         print_stack_frame.
1547         * thread.c (print_thread_info, restore_selected_frame)
1548         (do_captured_thread_select): Adjust call to print_stack_frame.
1549         * tracepoint.c (tfind_1): Likewise.
1550         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1551         (mi_cmd_stack_info_frame): Likewise.
1552         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1553         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1554
1555 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1556
1557         * value.c (isvoid_internal_fn): Replace "parameter" with
1558         "argument".
1559
1560 2013-09-16  Stan Shebs  <stan@codesourcery.com>
1561
1562         * README: Update references to writing code for GDB.
1563         * configure.ac (build_warnings): Remove obsolete comment.
1564         * configure: Regenerate.
1565         * gdbarch.sh: Remove references to gdbint.texinfo.
1566         * gdbarch.h: Regenerate.
1567         * gdbtypes.c (objfile_type): Remove comments referencing internals
1568         manual and D10V.
1569
1570 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1571
1572         * NEWS: Mention new convenience function $_isvoid.
1573         * value.c (isvoid_internal_fn): New function.
1574         (_initialize_values): Add new convenience function $_isvoid.
1575
1576 2013-09-16  Pierre Muller  <muller@sourceware.org>
1577
1578         * arm-linux-tdep.c: Add "elf/common.h" header.
1579         Remove AT_HWCAP macro definintion as it is provided in
1580         added include file.
1581         * s390-tdep.c: Remove system header <elf.h>
1582         Add "elf/common.h" header for AT_HWCAP definition.
1583         (s390_core_read_description): Use correct CORE_ADDR
1584         for hwcap local variable used as third parameter
1585         of function target_auxv_search.
1586
1587 2013-09-14  Pierre Muller  <muller@sourceware.org>
1588             Tom Tromey  <tromey@redhat.com>
1589             Pedro Alves  <palves@redhat.com>
1590
1591         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1592         mode if operating system doesn't know O_CLOEXEC.
1593
1594 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1595
1596         Code cleanup.
1597         * symfile.c (reread_symbols): Move variable obfd_filename to a more
1598         inner block.
1599
1600 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1601
1602         * NEWS: Mention TDB support.
1603         * features/s390-tdb.xml: New file.
1604         * features/s390-te-linux64.xml: New file.
1605         * features/s390x-te-linux64.xml: New file.
1606         * features/Makefile (WHICH): Add new tdescs above.
1607         (s390-te-linux64-expedite): Set.
1608         (s390x-te-linux64-expedite): Set.
1609         * features/s390-te-linux64.c: New file (generated).
1610         * features/s390x-te-linux64.c: New file (generated).
1611         * regformats/s390-te-linux64.dat: New file (generated).
1612         * regformats/s390x-te-linux64.dat: New file (generated).
1613         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1614         (HWCAP_S390_TE): Likewise.
1615         (S390_TDB_DWORD0_REGNUM): Likewise.
1616         (S390_TDB_DWORD0_REGNUM): Likewise.
1617         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1618         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1619         (S390_TDB_ATIA_REGNUM): Likewise.
1620         (S390_TDB_R0_REGNUM): Likewise.
1621         (S390_TDB_R1_REGNUM): Likewise.
1622         (S390_TDB_R2_REGNUM): Likewise.
1623         (S390_TDB_R3_REGNUM): Likewise.
1624         (S390_TDB_R4_REGNUM): Likewise.
1625         (S390_TDB_R5_REGNUM): Likewise.
1626         (S390_TDB_R6_REGNUM): Likewise.
1627         (S390_TDB_R7_REGNUM): Likewise.
1628         (S390_TDB_R8_REGNUM): Likewise.
1629         (S390_TDB_R9_REGNUM): Likewise.
1630         (S390_TDB_R10_REGNUM): Likewise.
1631         (S390_TDB_R11_REGNUM): Likewise.
1632         (S390_TDB_R12_REGNUM): Likewise.
1633         (S390_TDB_R13_REGNUM): Likewise.
1634         (S390_TDB_R14_REGNUM): Likewise.
1635         (S390_TDB_R15_REGNUM): Likewise.
1636         (S390_NUM_REGS): Increase.
1637         (S390_IS_TDBREGSET_REGNUM): New macro.
1638         (s390_regmap_tdb): Declare.
1639         (s390_sizeof_tdbregset): Define.
1640         (tdesc_s390_te_linux64): Declare.
1641         (tdesc_s390x_te_linux64): Likewise.
1642         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1643         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1644         (s390_regmap_tdb): New regmap.
1645         (s390_supply_tdb_regset): New function.
1646         (s390_tdb_regset): New regset.
1647         (s390_linux64v2_regset_sections): Add TDB regset to list.
1648         (s390x_linux64v2_regset_sections): Likewise.
1649         (s390_regset_from_core_section): Recognize TDB core note section.
1650         (s390_core_read_description): If HWCAP indicates TE support,
1651         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1652         (s390_gdbarch_init): Handle TDB regset.
1653         (_initialize_s390_tdep): Initialize new tdescs.
1654         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1655         (have_regset_tdb): New variable.
1656         (s390_native_supply): Support register invalidation.
1657         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1658         (check_regset): Treat ENODATA as "regset exists".
1659         (s390_linux_fetch_inferior_registers): Add TDB.
1660         (s390_read_description): Check for TDB existence and select
1661         appropriate tdesc.
1662         * gdbserver/Makefile.in (clean): Add removal of new makefile
1663         targets.
1664         (s390-te-linux64.c): New makefile target.
1665         (s390x-te-linux64.c): Likewise.
1666         * gdbserver/configure.srv (srv_regobj): Append new objects
1667         s390-te-linux64.o and s390x-te-linux64.o.
1668         (srv_xmlfiles): Append new files s390-te-linux64.xml,
1669         s390x-te-linux64.xml, and s390-tdb.xml.
1670         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1671         declaration.
1672         (tdesc_s390_te_linux64): Likewise.
1673         (init_registers_s390x_te_linux64): Likewise.
1674         (tdesc_s390x_te_linux64): Likewise.
1675         (s390_check_regset): Treat ENODATA as "regset exists".
1676         (s390_arch_setup): Add TDB regset support.
1677         (initialize_low_arch): Initialize registers for new tdescs.
1678
1679 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1680
1681         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1682         (S390_IS_FPREGSET_REGNUM): New macro.
1683         * s390-tdep.c (s390_dwarf_regmap): Make const.
1684         (regnum_is_gpr_full): New function for replacing repeated code.
1685         (s390_pseudo_register_name): Use it.
1686         (s390_pseudo_register_type): Likewise.
1687         (s390_pseudo_register_read): Likewise.
1688         (s390_pseudo_register_write): Likewise.
1689         (s390_unwind_pseudo_register): Likewise.
1690         (s390_regmap_gregset): New format for regmap.
1691         (s390x_regmap_gregset): Likewise.
1692         (s390_regmap_fpregset): Likewise.
1693         (s390_regmap_upper): Likewise.
1694         (s390_regmap_last_break): Likewise.
1695         (s390_regmap_system_call): Likewise.
1696         (s390_supply_regset): Adjust to new regmap format.
1697         (s390_collect_regset): Likewise.
1698         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1699         (s390_native_collect): Likewise.
1700         (supply_gregset): Likewise.
1701         (fill_gregset): Likewise.
1702         (supply_fpregset): Likewise.
1703         (fill_fpregset): Likewise.
1704         (fetch_regset): Likewise.
1705         (store_regset): Likewise.
1706         (s390_linux_fetch_inferior_registers): Likewise.
1707         (s390_linux_fetch_inferior_registers): Likewise.
1708
1709 2013-09-12  Andrew Pinski  <apinski@cavium.com>
1710
1711         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1712
1713 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1714
1715         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1716
1717 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
1718
1719         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1720
1721 2013-09-06  Pedro Alves <palves@redhat.com>
1722
1723         * remote-sim.c (dump_mem, gdbsim_fetch_register)
1724         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1725         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1726         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1727         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1728         gdb_stdlog.
1729
1730 2013-09-06  Pedro Alves  <palves@redhat.com>
1731
1732         * remote-sim.c (dump_mem): Constify buf parameter.
1733         gdbsim_xfer_inferior_memory): Rename to ...
1734         (gdbsim_xfer_memory): ... this.  Adjust interface as
1735         target_xfer_partial helper.
1736         (gdbsim_xfer_partial): New function.
1737         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1738         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
1739
1740 2013-09-06  Pedro Alves  <palves@redhat.com>
1741
1742         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1743         host_address_to_string, and send debug output to gdb_stdlog.
1744
1745 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1746
1747         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1748         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1749         gdb_target_obs for cris target.
1750         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1751         (cris_gdbarch_init): Move calls to
1752         set_gdbarch_fetch_tls_load_module_address and
1753         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1754         Add call to gdbarch_init_osabi.
1755         * cris-linux-tdep.c: New file.
1756         * cris-tdep.h: New file.
1757
1758 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1759
1760         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1761         to deprecated_init_ui_hook.
1762
1763 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
1764
1765         * cli/cli-interp.c (_initialize_cli_interp): Add a
1766         command_loop_proc to interp_procs.
1767         * event-top.c (cli_command_loop): Change signature to match
1768         interp_command_loop_ftype.
1769         * event-top.h (cli_command_loop): Same.
1770         * interps.c (interp_new): Require every interpreter to have a
1771         command_loop_proc.
1772         (current_interp_command_loop): Just call the command_loop_proc on
1773         the current interpreter.
1774         * tui/tui-interp.c (_initialize_tui_interp): Add a
1775         command_loop_proc to interp_procs.
1776
1777 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1778
1779         * cris-tdep.c (cris_gdbarch_init): Add call to
1780         get_gdbarch_fetch_tls_load_module_address.
1781
1782 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1783
1784         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1785         (cris_elf_gregset_t): Rename from elf_gregset_t.
1786         (crisv32_elf_gregset_t): Adjust.
1787         (cris_supply_gregset, fetch_core_registers): Adjust.
1788
1789 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
1790
1791         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1792
1793 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
1794
1795         * defs.h (deprecated_command_loop_hook): Remove, including
1796         references in comments.
1797         * interps.c (current_interp_command_loop): No longer use
1798         deprecated_command_loop_hook.
1799         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1800         setup.
1801         * top.c (deprecated_command_loop_hook): Remove.
1802
1803 2013-09-05  Pedro Alves  <palves@redhat.com>
1804
1805         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1806         local is now int instead of ULONGEST.  Print it with %d
1807         instead of paddress.
1808
1809 2013-09-05  Tristan Gingold  <gingold@adacore.com>
1810
1811         * MAINTAINERS: Remove avr maintainership.
1812
1813 2013-09-05  Pedro Alves  <palves@redhat.com>
1814
1815         * findvar.c (value_of_register): Rework in terms of
1816         value_of_register_lazy.
1817
1818 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
1819
1820         * symfile.c (add_symbol_file_command): Remove trailing
1821          whitespaces and blank line after comment.
1822
1823 2013-09-05  Pedro Alves  <palves@redhat.com>
1824
1825         * tui/tui-regs.c (tui_register_format): Don't look at the
1826         register's name here.  Return string representing register
1827         value instead of storing it in the data element.
1828         (tui_get_register): Compare register string representations
1829         instead of register value states and contents.
1830
1831 2013-09-05  Pedro Alves  <palves@redhat.com>
1832
1833         PR tui/15933
1834         * tui/tui-regs.c (tui_show_registers): Show registers of the
1835         selected frame, not the current frame.
1836
1837 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
1838
1839         * MAINTAINERS (Write After Approval): Add myself to the list.
1840
1841 2013-09-04  Doug Evans  <dje@google.com>
1842
1843         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1844         (queue_and_load_dwo_tu): New function.
1845         (lookup_dwo_signatured_type): Set per_cu.tu_read.
1846         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1847         Make dependent_cu optional.
1848         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1849         and an older .gdb_index is in use, queue and load all its TUs too.
1850
1851 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1852
1853         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1854         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1855         variable search_flags.
1856         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1857         (OPF_RETURN_REALPATH): ... here.
1858         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1859         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1860         call.  Twice.
1861         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1862         openp call.
1863         * solib.c (solib_find): Likewise.  Four times.
1864         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1865         in the function comment and for the realpath_fptr variable.
1866         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1867         (find_and_open_source): Likewise.  Twice.
1868         * symfile.c (symfile_bfd_open): Likewise, also twice.
1869
1870 2013-09-04  Doug Evans  <dje@google.com>
1871
1872         * progspace.c (save_current_space_and_thread): Remove unnecessary
1873         call to save_current_inferior.
1874
1875 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
1876
1877         * sh64-tdep.c (sh64_do_register): Return after printing message
1878         about unavailable register contents.
1879
1880 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
1881             Pedro Alves  <palves@redhat.com>
1882
1883         * symfile.c (add_symbol_file_command): Error out on unknown
1884         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1885         options and collapse into single conditional branch.
1886
1887 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
1888
1889         * inf-child.c (inf_child_follow_fork): New parameter
1890         detach_fork.
1891         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1892         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1893         * inferior.h (detach_fork): Remove.
1894         * infrun.c (detach_fork): Adjust comment and make it
1895         static.
1896         (follow_fork): Pass detach_fork parameter to
1897         target_follow_fork.
1898         * linux-nat.c (linux_child_follow_fork): New parameter
1899         detach_fork.
1900         * target.c (target_follow_fork): New parameter detach_fork.
1901         Pass detach_fork as parameter and print its value.
1902         * target.h (struct target_ops) <to_follow_fork>: New int
1903         parameter.
1904         (target_follow_fork): New parameter detach_fork.
1905
1906 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
1907
1908         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1909         Replace sec->bfd by sec->the_bfd_section->owner.
1910
1911 2013-09-03  Yao Qi  <yao@codesourcery.com>
1912
1913         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
1914         from linux_has_shared_address_space.
1915         (linux_has_shared_address_space): Call linux_is_uclinux.
1916         * linux-tdep.h (linux_is_uclinux): Declare.
1917         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1918         linux_is_uclinux.
1919
1920 2013-09-03  Yao Qi  <yao@codesourcery.com>
1921
1922         * config/djgpp/fnchange.lst: Remove entry of
1923         i386-interix-nat.c and i386-interix-tdep.c.
1924         * configure.ac: Remove '*-*-interix*'.
1925         * configure: Re-generated.
1926         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1927         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1928         obsolete comments.
1929         * osabi.c (gdb_osabi_names): Remove "Interix".
1930
1931 2013-09-03  Yao Qi  <yao@codesourcery.com>
1932
1933         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1934
1935 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
1936
1937         * record.h (record_print_flag) <record_print_src_line,
1938         record_print_insn_range>: Rename into ...
1939         (record_print_flag) <record_print_src_line,
1940         record_print_insn_range>: ... this.  Update all users.
1941
1942 2013-09-02  Pierre Muller  <muller@sourceware.org>
1943
1944         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1945         error code.
1946
1947 2013-09-02  Pierre Muller  <muller@sourceware.org>
1948
1949         * windows-nat.c (windows_xfer_memory): Fix compilation failure
1950         by use of plongest function.
1951
1952 2013-09-02  Tristan Gingold  <gingold@adacore.com>
1953
1954         * NEWS: Add entry mentioning support for native Windows x64
1955         SEH data.
1956
1957         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1958         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1959         (struct amd64_windows_frame_cache): New struct.
1960         (amd64_windows_w2gdb_regnum): New global.
1961         (pc_in_range, amd64_windows_frame_decode_epilogue)
1962         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1963         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1964         (amd64_windows_frame_this_id): New functions.
1965         (amd64_windows_frame_unwind): New static global.
1966         (amd64_windows_skip_prologue): New function.
1967         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1968         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1969         with amd64_windows_skip_prologue.
1970
1971 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
1972
1973         GDB 7.6.1 released.
1974
1975 2013-08-30  Pedro Alves  <palves@redhat.com>
1976
1977         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1978         SRC_AND_LOC.
1979
1980 2013-08-30  Pedro Alves  <palves@redhat.com>
1981
1982         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1983         warning text.
1984
1985 2013-08-30  Pedro Alves  <palves@redhat.com>
1986
1987         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1988         Adjust arguments to print_stack_frame.
1989
1990 2013-08-30  Pedro Alves  <palves@redhat.com>
1991
1992         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1993
1994 2013-08-30  Pedro Alves  <palves@redhat.com>
1995
1996         * frame.h (show_and_print_stack_frame): Delete declaration.
1997
1998 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
1999
2000         PR python/15461
2001
2002         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2003         (archpy_name): Check for valid architecture.
2004         (archpy_disassemble): Ditto.
2005
2006 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
2007
2008         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2009         instead of "long long" in call to ptrace64.
2010
2011 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
2012
2013         * mi/mi-interp.c (mi_command_loop): Change signature to match
2014         interp_command_loop_ftype.
2015         (mi1_command_loop): Remove.
2016         (mi2_command_loop): Remove.
2017         (mi3_command_loop): Remove.
2018         (mi_interpreter_resume): Remove setting of
2019         deprecated_command_loop_hook.
2020         (_initialize_mi_interp): Set mi_command_loop as the command loop
2021         callback.
2022
2023 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2024
2025         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2026         value_type.
2027
2028 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2029
2030         * value.c (allocate_value_contents): Make static.
2031         * value.h (allocate_value_contents): Remove prototype.
2032
2033 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2034
2035         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2036         of assembling value via allocate_value_lazy and attribute setter.
2037         * findvar.c (default_read_var_value): Use value_at_lazy instead of
2038         assembling value via allocate_value_lazy and attribute setter.
2039         * valops.c (do_search_struct_field): Use value_at_lazy instead of
2040         assembling value via allocate_value_lazy and attribute setter.
2041
2042 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
2043
2044         * value.c (value_from_contents_and_address): Replace allocate_value and
2045         memcpy with value_from_contents.
2046
2047 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2048
2049         * python/py-framefilter.c (py_print_frame): Remove usage of
2050         PyString_AsString.  Use python_string_to_host_string instead.
2051         Refactor function to work with a string as a new allocation
2052         instead of a pointer.
2053         (py_print_frame): Ditto.
2054         * python/lib/gdb/frames.py (return_list): Cain iterators together
2055         instead of adding them as a list.
2056         (_sort_list): Call return_list, and remove duplicate code.
2057         (execute_frame_filters): Convert iterator to a list with list().
2058         * python/lib/gdb/command/frame_filters.py
2059         (SetFrameFilterPriority._set_filter_priority): Convert priority
2060         attribute to an integer.
2061         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2062         wrapper function __next__.
2063         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2064         define as "str".
2065
2066 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2067
2068         PR python/15752
2069         * python/py-framefilter.c (apply_frame_filter): Check
2070         gdb_python_initialized.  Exit if the Python frame-filter code
2071         cannot be initialized.
2072
2073 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
2074
2075         PR cli/15842
2076         * top.c (print_gdb_version): Remove erroneous newline after help
2077         text.
2078
2079 2013-08-29  Yao Qi  <yao@codesourcery.com>
2080
2081         * varobj.c (install_dynamic_child): Remove trailing space.
2082         Add one blank line after variable declaration.
2083
2084 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2085
2086         PR gdb/15415
2087         * corefile.c (get_exec_file): Use exec_filename.
2088         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
2089         * exec.c (exec_close): Free EXEC_FILENAME.
2090         (exec_file_attach): New variable canonical_pathname.  Use
2091         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
2092         EXEC_FILENAME.
2093         * exec.h (exec_filename): New.
2094         * inferior.c (print_inferior, inferior_command): Use
2095         PSPACE_EXEC_FILENAME.
2096         * mi/mi-main.c (print_one_inferior): Likewise.
2097         * progspace.c (clone_program_space, print_program_space): Likewise.
2098         * progspace.h (struct program_space): New field pspace_exec_filename.
2099         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
2100         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2101
2102 2013-08-28  Will Newton  <will.newton@linaro.org>
2103
2104         * common/linux-ptrace.c: Include stdint.h unconditionally.
2105
2106 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2107
2108         Code cleanup.
2109         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2110
2111 2013-08-28  Yao Qi  <yao@codesourcery.com>
2112             Pedro Alves  <palves@redhat.com>
2113
2114         * event-top.c (gdb_setup_readline): Call stderr_fileopen
2115         instead of stdio_fileopen.
2116         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2117         .Call stderr_fileopen instead of stdio_fileopen.
2118         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2119         [__MINGW32__] (stderr_file_fputs): New function.
2120         (stderr_fileopen): New function.
2121         * ui-file.h (stderr_fileopen): Declare.
2122
2123 2013-08-27  Doug Evans  <dje@google.com>
2124
2125         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2126         (struct dwarf2_per_cu_data): Ditto.
2127         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
2128         (process_imported_unit_die): Ditto.
2129         (follow_die_sig_1): Simplify assert.
2130
2131 2013-08-27  Pedro Alves  <palves@redhat.com>
2132
2133         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2134         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
2135         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2136         windows_xfer_memory directly.
2137         (init_windows_ops): Don't install a deprecated_xfer_memory method.
2138
2139 2013-08-27  Pedro Alves  <palves@redhat.com>
2140
2141         * darwin-nat.c (darwin_xfer_memory): Delete.
2142         (_initialize_darwin_inferior): Don't install a
2143         deprecated_xfer_memory method.
2144
2145 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
2146             Yao Qi  <yao@codesourcery.com>
2147
2148         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2149         (parse_no_frames_option): Remove.
2150         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2151         (mi_cmd_stack_list_args): Adjust.
2152         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2153         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
2154         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2155         Caller update.
2156         (list_args_or_locals): New parameter 'skip_unavailable'.
2157         Handle it.
2158         * valprint.c (scalar_type_p): Rename to ...
2159         (val_print_scalar_type_p): ... this.  Make extern.
2160         (val_print, value_check_printable): Adjust.
2161         * valprint.h (val_print_scalar_type_p): Declare.
2162         * value.c (value_entirely_unavailable): New function.
2163         * value.h (value_entirely_unavailable): Declare.
2164
2165         * NEWS: Mention the new option "--skip-unavailable" to MI
2166         commands '-stack-list-locals', '-stack-list-arguments' and
2167         '-stack-list-variables'.
2168
2169 2013-08-27  Yao Qi  <yao@codesourcery.com>
2170
2171         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2172         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2173         options.
2174         * mi/mi-getopt.c (mi_getopt): Remove.
2175         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
2176         'error_on_unknown'.
2177         (mi_getopt): Call mi_getopt_1.
2178         (mi_getopt_silent): New.
2179         * mi/mi-getopt.h (mi_getopt_silent): Declare.
2180
2181 2013-08-26  Doug Evans  <dje@google.com>
2182
2183         PR symtab/15885
2184         * dwarf2read.c (dw2_dump): Print some minimal information indicating
2185         .gdb_index is in use.
2186         * symfile.c (reread_symbols): Reset objfile->sf.
2187
2188         * NEWS: Document "mt print objfiles" now takes optional regexp.
2189         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2190         regexp of objfiles to print.
2191         (_initialize_symmisc): Update doc string for "mt print objfiles".
2192
2193         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2194         missing debug info checks.
2195
2196 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
2197             Ulrich Weigand  <uweigand@de.ibm.com>
2198
2199         * xcoffread.c (arrange_linetable): Add fix to correctly handle
2200         line tables generated by XLC compiled binaries.
2201
2202 2013-08-23  Doug Evans  <dje@google.com>
2203
2204         * symmisc.c (dump_symtab): Delete prototype.
2205         (dump_msymbols, dump_objfile): Ditto.
2206         (maintenance_info_symtabs): Mark as dont_repeat.
2207         (_initialize_symmisc): Improve doc string for "mt info symtabs".
2208
2209         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2210         debugging printf to better location.
2211
2212 2013-08-23  Pedro Alves  <palves@redhat.com>
2213
2214         * target.c (target_read_live_memory): Change type of 'ret' local
2215         to LONGEST.
2216
2217 2013-08-23  Pedro Alves  <palves@redhat.com>
2218
2219         * remote.c (remote_write_bytes_aux, remote_write_bytes)
2220         (remote_read_bytes): Change return type to LONGEST, and adjust to
2221         return a target_xfer_error on error.
2222         (remote_xfer_memory): Delete.
2223         (remote_flash_write): Change type of 'ret' local to LONGEST.
2224         (remote_xfer_partial, remote_xfer_partial): Adjust.
2225         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2226
2227 2013-08-23  Pierre Muller  <muller@sourceware.org>
2228
2229         ARI fix: Push # directives to start of line.
2230         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2231
2232 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
2233
2234         PR gdb/15501
2235         * breakpoint.c (enable_command, disable_command): Iterate over
2236         all specified breakpoint locations.
2237
2238 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2239
2240         * common/linux-ptrace.c (linux_fork_to_function): Push #
2241         directives to the start of the line.
2242         (linux_check_ptrace_features): Fix warning message to use
2243         the "_" markup.
2244
2245 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
2246
2247         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2248         nat/linux-waitpid.h.
2249         (linux-waitpid.o): New object file rule.
2250         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2251         (current_ptrace_options): Moved from linux-nat.c.
2252         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2253         parameters.
2254         (linux_fork_to_function): New function.
2255         (linux_grandchild_function): Likewise.
2256         (linux_child_function): Likewise.
2257         (linux_check_ptrace_features): New function, heavily
2258         based on linux-nat.c:linux_test_for_tracefork.
2259         (linux_enable_event_reporting): New function.
2260         (ptrace_supports_feature): Likewise.
2261         (linux_supports_tracefork): Likewise.
2262         (linux_supports_traceclone): Likewise.
2263         (linux_supports_tracevforkdone): Likewise.
2264         (linux_supports_tracesysgood): Likewise.
2265         * common/linux-ptrace.h (HAS_NOMMU): Moved from
2266         gdbserver/linux-low.c.
2267         (linux_enable_event_reporting): New declaration.
2268         (linux_supports_tracefork): Likewise.
2269         (linux_supports_traceclone): Likewise.
2270         (linux_supports_tracevforkdone): Likewise.
2271         (linux_supports_tracesysgood): Likewise.
2272         * config.in (PTRACE_TYPE_ARG4): Regenerate.
2273         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2274         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2275         * config/arm/linux.mh (NATDEPFILES): Likewise.
2276         * config/i386/linux.mh (NATDEPFILES): Likewise.
2277         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2278         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2279         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2280         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2281         * config/mips/linux.mh (NATDEPFILES): Likewise.
2282         * config/pa/linux.mh (NATDEPFILES): Likewise..
2283         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2284         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2285         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2286         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2287         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2288         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2289         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2290         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2291         ptrace's 4th argument's types.
2292         Check the type of PTRACE_TYPE_ARG4.
2293         * configure: Regenerate.
2294         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2295         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2296         (linux_supports_tracefork_flag): Remove.
2297         (linux_supports_tracesysgood_flag): Likewise.
2298         (linux_supports_tracevforkdone_flag): Likewise.
2299         (current_ptrace_options): Moved to
2300         common/linux-ptrace.c.
2301         (linux_tracefork_child): Remove.
2302         (my_waitpid): Remove.
2303         (linux_test_for_tracefork): Renamed to
2304         linux_check_ptrace_features and moved to common/linux-ptrace.c.
2305         (linux_test_for_tracesysgood): Remove.
2306         (linux_supports_tracesysgood): Remove.
2307         (linux_supports_tracefork): Remove.
2308         (linux_supports_tracevforkdone): Remove.
2309         (linux_enable_tracesysgood): Remove.
2310         (linux_enable_event_reporting): Remove.
2311         (linux_init_ptrace): New function.
2312         (linux_child_post_attach): Call linux_init_ptrace.
2313         (linux_child_post_startup_inferior): Call linux_init_ptrace.
2314         (linux_child_follow_fork): Call linux_supports_tracefork
2315         and linux_supports_tracevforkdone.
2316         (linux_child_insert_fork_catchpoint): Call
2317         linux_supports_tracefork.
2318         (linux_child_insert_vfork_catchpoint): Likewise.
2319         (linux_child_set_syscall_catchpoint): Call
2320         linux_supports_tracesysgood.
2321         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2322         * nat/linux-nat.h: New file.
2323         * nat/linux-waitpid.c: New file.
2324         * nat/linux-waitpid.h: New file.
2325
2326 2013-08-22  Samuel Bronson  <naesten@gmail.com>
2327
2328         ARM Linux support for `catch syscall'.
2329         * syscalls/arm-linux.py: New file.
2330         * syscalls/arm-linux.xml: Likewise.
2331         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2332         (arm_linux_init_abi): Register the new function and syscall xml file.
2333         * data-directory/Makefile.in: Install the new syscall xml file.
2334         * NEWS: Brag about this.
2335
2336 2013-08-22  Pedro Alves  <palves@redhat.com>
2337
2338         PR gdb/15871
2339         * corefile.c (target_xfer_memory_error): New function.
2340         (memory_error): Defer EIO to target_memory_error.
2341         (read_memory): Use target_xfer_partial, and handle finer-grained
2342         target xfer errors.
2343         * target.c (target_xfer_error_to_string): New function.
2344         (memory_xfer_partial_1): If memory is known to be
2345         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2346         (target_xfer_partial): Make extern.
2347         * target.h (enum target_xfer_error): New enum.
2348         (target_xfer_error_to_string): Declare function.
2349         (target_xfer_partial): Declare function.
2350         (struct target_ops) <xfer_partial>: Adjust describing comment.
2351
2352 2013-08-22  Alan Modra  <amodra@gmail.com>
2353
2354         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2355         * configure.tgt: Likewise as targets.
2356
2357 2013-08-20  Doug Evans  <dje@google.com>
2358
2359         * buildsym.c (subfile_stack): Move here from buildsym.h.
2360         (pending_macros): Ditto.
2361         (get_macro_table): New function.
2362         (buildsym_init): Initialize subfile_stack.
2363         * coffread.c (type_vector,type_vector_length): Moved here from
2364         buildsym.h.
2365         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2366         (coff_symtab_read): Use it.
2367         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2368         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2369         with call to get_macro_table.
2370         * stabsread.c (type_vector,type_vector_length): Moved here from
2371         buildsym.h.
2372         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2373         * buildsym.h (get_macro_table): Declare.
2374
2375 2013-08-20  Tom Tromey  <tromey@redhat.com>
2376
2377         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2378         Update.
2379         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
2380
2381 2013-08-20  Doug Evans  <dje@google.com>
2382
2383         * blockframe.c: Remove #include "psymtab.h".
2384         * cp-support.c: Ditto.
2385         * source.c: Ditto.
2386         * stack.c: Ditto.
2387
2388 2013-08-20  Tom Tromey  <tromey@redhat.com>
2389
2390         PR python/15816:
2391         * exceptions.h (return_mask): Now an enum.
2392         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2393         enum constants.
2394
2395 2013-08-20  Tom Tromey  <tromey@redhat.com>
2396
2397         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2398         get_objfile_arch.
2399         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2400         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2401         * jit.c (jit_object_close_impl): Update.
2402         * jv-lang.c (get_dynamics_objfile): Update.
2403         * linespec.c (add_minsym): Use get_dynamics_objfile.
2404         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2405         (allocate_objfile): Don't initialize 'gdbarch' field.
2406         (get_objfile_arch): Update.
2407         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2408         moved from...
2409         (struct objfile) <gdbarch>: ... here.  Remove.
2410         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2411         get_objfile_arch.
2412         * symfile.c (init_entry_point_info): Use get_objfile_arch.
2413
2414 2013-08-20  Alan Modra  <amodra@gmail.com>
2415
2416         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2417         for IBM long double nan and inf.
2418         (floatformat_is_negative, floatformat_classify,
2419         floatformat_mantissa): Similarly.
2420         (floatformat_ieee_single, floatformat_ieee_double,
2421         floatformat_ieee_quad, floatformat_arm_ext,
2422         floatformat_ia64_spill): Delete unused vars.
2423         (_initialize_doublest): Delete unused function.
2424         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2425         little-endian variants of floatformat_ibm_long_double.
2426
2427 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
2428
2429         * Makefile.in (SFILES): Remove common/target-common.c and
2430         add target/waitstatus.c.
2431         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2432         target/resume.h, target/wait.h and target/waitstatus.h.
2433         (COMMON_OBS): Remove target-common.o and add
2434         waitstatus.o.
2435         (target-common.o): Remove.
2436         (waitstatus.o): New target object file.
2437         * common/target-common.c: Move contents to
2438         target/waitstatus.c and remove.
2439         * common/target-common.h: Move contents to other files and
2440         remove.
2441         (enum resume_kind: Move to target/resume.h.
2442         (TARGET_WNOHANG): Move to target/wait.h.
2443         (enum target_waitkind): Move to target/waitstatus.h.
2444         (struct target_waitstatus): Likewise.
2445         * target.h: Do not include target-common.h and
2446         include target/resume.h, target/wait.h and
2447         target/waitstatus.h.
2448         * target/resume.h: New file.
2449         * target/wait.h: New file.
2450         * target/waitstatus.h: New file.
2451         * target/waitstatus.c: New file.
2452
2453 2013-08-19  Pedro Alves  <palves@redhat.com>
2454
2455         * linux-nat.c (linux_test_for_tracefork)
2456         (linux_test_for_tracesysgood, linux_child_follow_fork)
2457         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2458         (linux_nat_wait_1): Extend comment.
2459         (linux_async_pipe): Add comment.
2460
2461 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
2462
2463         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2464         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2465         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2466         Update to account for fact that PC is now a pseudo-register.
2467         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
2468         cases for RL78_PC_REGNUM.
2469
2470 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
2471
2472         PR cli/15841
2473         * top.c (quit_force): Skip writing history file
2474         if input is not from terminal.
2475
2476 2013-08-14  Tom Tromey  <tromey@redhat.com>
2477
2478         * remote.c (struct remote_state) <echo_nextthread, nextthread,
2479         resultthreadlist>: New fields.
2480         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2481         (remote_get_threadlist, remote_threadlist_iterator): Use
2482         new fields.  Remove static variables.
2483
2484 2013-08-14  Tom Tromey  <tromey@redhat.com>
2485
2486         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2487         remote_watch_data_address>: New fields.
2488         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2489         (process_stop_reply, remote_wait_as)
2490         (remote_check_watch_resources, remote_stopped_data_address): Update.
2491
2492 2013-08-14  Tom Tromey  <tromey@redhat.com>
2493
2494         * remote.c (struct remote_state) <async_client_callback,
2495         async_client_context>: New fields.
2496         (async_client_callback, async_client_context): Remove.
2497         (remote_async_serial_handler, remote_async): Update.
2498
2499 2013-08-14  Tom Tromey  <tromey@redhat.com>
2500
2501         * remote.c (sizeof_pkt): Remove.
2502         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2503
2504 2013-08-14  Tom Tromey  <tromey@redhat.com>
2505
2506         * remote.c (struct remote_state) <use_threadinfo_query,
2507         use_threadextra_query>: New fields.
2508         (remote_threads_info, remote_threads_extra_info)
2509         (remote_open_1): Update.
2510
2511 2013-08-14  Tom Tromey  <tromey@redhat.com>
2512
2513         * remote.c (struct remote_state) <finished_object,
2514         finished_annex, finished_offset>: New fields.
2515         (remote_read_qxfer): Use remote_state fields; remove static
2516         variables.
2517
2518 2013-08-14  Tom Tromey  <tromey@redhat.com>
2519
2520         * remote.c (struct remote_state) <last_sent_step>:
2521         New field.
2522         (last_sent_step): Remove.
2523         (remote_resume, remote_wait_as): Update.
2524
2525 2013-08-14  Tom Tromey  <tromey@redhat.com>
2526
2527         * remote.c (struct remote_state) <last_sent_signal>:
2528         New field.
2529         (last_sent_signal): Remove.
2530         (new_remote_state, remote_resume, remote_wait_as): Update.
2531
2532 2013-08-14  Tom Tromey  <tromey@redhat.com>
2533
2534         * remote.c (struct remote_state) <last_program_signals_packet>:
2535         New field.
2536         (last_program_signals_packet): Remove.
2537         (remote_program_signals, remote_open_1): Update.
2538
2539 2013-08-14  Tom Tromey  <tromey@redhat.com>
2540
2541         * remote.c (struct remote_state) <last_pass_packet>:
2542         New field.
2543         (last_pass_packet): Remove.
2544         (remote_pass_signals, remote_open_1): Update.
2545
2546 2013-08-14  Tom Tromey  <tromey@redhat.com>
2547
2548         * remote.c (struct remote_state) <remote_traceframe_number>:
2549         New field.
2550         (remote_traceframe_number): Remove.
2551         (new_remote_state, remote_open_1, set_remote_traceframe)
2552         (remote_trace_find): Update.
2553
2554 2013-08-14  Tom Tromey  <tromey@redhat.com>
2555
2556         * remote.c (struct remote_state) <general_thread, continue_thread>:
2557         New fields.
2558         (general_thread, continue_thread): Remove.
2559         (record_currthread, set_thread, set_general_process)
2560         (remote_open_1, extended_remote_attach_1, remote_wait_as)
2561         (extended_remote_mourn_1): Update.
2562
2563 2013-08-14  Tom Tromey  <tromey@redhat.com>
2564
2565         * remote.c (struct remote_state) <remote_desc>: New field.
2566         (remote_desc): Remove.
2567         (remote_threads_info, remote_threads_extra_info, remote_close)
2568         (send_interrupt_sequence, remote_start_remote, remote_open_1)
2569         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2570         (remote_hostio_send_command, remote_file_put, remote_file_get)
2571         (remote_file_delete, remote_can_async_p, remote_is_async_p)
2572         (remote_async, remote_new_objfile, set_range_stepping): Update.
2573
2574 2013-08-14  Tom Tromey  <tromey@redhat.com>
2575
2576         * remote.c (remote_state): Now a pointer.
2577         (get_remote_state_raw): Update.
2578         (new_remote_state): New function.
2579         (_initialize_remote): Use new_remote_state.
2580
2581 2013-08-14  Tom Tromey  <tromey@redhat.com>
2582
2583         * remote.c (remote_protocol_features): Now const.
2584
2585 2013-08-14  Tom Tromey  <tromey@redhat.com>
2586
2587         * remote.c (crc32_table, crc32): Remove.
2588         (remote_verify_memory): Use xcrc32.
2589
2590 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
2591
2592         * value.h (create_internalvar_type_lazy): Adjust prototype
2593         declaration.
2594
2595 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
2596
2597         * common/format.c (parse_format_string): Don't allow '#' flag for
2598         pointer arguments in format string.
2599
2600 2013-08-13  Pierre Muller  <muller@sourceware.org>
2601
2602         * utils.c (init_page_info): Only call tgetnum function
2603         if rl_get_screen_size did not return useful values.
2604
2605 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
2606
2607         PR breakpoints/15117
2608         * linespec.c (linespec_parse_basic): Check for convenience
2609         variable or history value while parsing.
2610
2611 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2612
2613         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2614         AVR.
2615         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
2616         different signals between the generic Linux kernel implementation
2617         and AVR's.
2618         (avr_linux_gdb_signal_from_target): Delete.
2619         (avr_linux_gdb_signal_to_target): Delete.
2620         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2621
2622 2013-08-09  Doug Evans  <dje@google.com>
2623
2624         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2625         entries.
2626
2627 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2628
2629         * linux-tdep.c: Define enum with generic signal numbers.
2630         (linux_gdb_signal_from_target): New function.
2631         (linux_gdb_signal_to_target): Likewise.
2632         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2633         methods to the functions above.
2634         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2635         (linux_gdb_signal_to_target): Likewise.
2636         * alpha-linux-tdep.c: Define new enum with signals different
2637         from generic Linux kernel.
2638         (alpha_linux_gdb_signal_from_target): New function.
2639         (alpha_linux_gdb_signal_to_target): Likewise.
2640         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2641         with the functions mentioned above.
2642         * avr-tdep.c: Define enum with differences between Linux kernel
2643         and AVR signals.
2644         (avr_linux_gdb_signal_from_target): New function.
2645         (avr_linux_gdb_signal_to_target): Likewise.
2646         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2647         the functions mentioned above.
2648         * sparc-linux-tdep.c: Define enum with differences between SPARC
2649         and generic Linux kernel signal numbers.
2650         (sparc32_linux_gdb_signal_from_target): New function.
2651         (sparc32_linux_gdb_signal_to_target): Likewise.
2652         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2653         to the functions defined above.
2654         * xtensa-linux-tdep.c: Define enum with differences between
2655         Xtensa and Linux kernel generic signals.
2656         (xtensa_linux_gdb_signal_from_target): New function.
2657         (xtensa_linux_gdb_signal_to_target): Likewise.
2658         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2659         to the functions defined above.
2660         * mips-linux-tdep.c: Define enum with differences between
2661         signals in MIPS and Linux kernel generic ones.
2662         (mips_gdb_signal_to_target): New function.
2663         (mips_gdb_signal_from_target): Redefine to use new enum, handle
2664         only different signals from the Linux kernel generic.
2665         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2666         the functions defined above.
2667         * mips-linux-tdep.h (enum mips_signals): Remove.
2668
2669 2013-08-09  Pedro Alves  <palves@redhat.com>
2670
2671         * avr-tdep.c (XMALLOC): Delete macro.
2672         * cli/cli-dump.c (XMALLOC): Delete macro.
2673
2674 2013-08-09  Pedro Alves  <palves@redhat.com>
2675
2676         * cli/cli-dump.c: Don't include cli/cli-dump.h.
2677         (scan_expression_with_cleanup, scan_filename_with_cleanup)
2678         (fopen_with_cleanup, add_dump_command): Make static.
2679         * cli/cli-dump.h: Delete file.
2680         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2681         cli/cli-dump.h.
2682
2683 2013-08-09  Pedro Alves  <palves@redhat.com>
2684
2685         * tracepoint.c (tfile_start): Show tilde-expanded filename in
2686         error message.
2687
2688 2013-08-09  Pedro Alves  <palves@redhat.com>
2689
2690         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2691         error message.
2692
2693 2013-08-09  Pedro Alves  <palves@redhat.com>
2694
2695         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2696         (gcore_command): Use tilde_expand here, and when showing the
2697         filename to the user, show the expanded version.
2698
2699 2013-08-09  Yao Qi  <yao@codesourcery.com>
2700
2701         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2702         'entryval' is set.
2703
2704 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
2705
2706         * gcore.c (create_gcore_bfd): Use tilde_expand.
2707
2708 2013-08-08  Yao Qi  <yao@codesourcery.com>
2709
2710         * frame.h (read_frame_local): Declare.
2711         * mi/mi-cmd-stack.c (list_args_or_locals): Call
2712         read_frame_local.
2713         * stack.c (read_frame_local): New.
2714
2715 2013-08-08  Yao Qi  <yao@codesourcery.com>
2716
2717         * mi/mi-cmd-stack.c: Update comments to function
2718         list_args_or_locals.
2719
2720 2013-08-07  Tom Tromey  <tromey@redhat.com>
2721
2722         PR symtab/15028:
2723         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2724         (process_psymtab_comp_unit_reader): Use it.
2725         (process_psymtab_comp_unit): Update.  Add "pretend_language"
2726         argument.
2727         (dwarf2_build_psymtabs_hard): Update.
2728         (scan_partial_symbols): Pass CU's language to
2729         process_psymtab_comp_unit.
2730
2731 2013-08-07  Tom Tromey  <tromey@redhat.com>
2732
2733         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2734         (dwarf2_gdb_index_functions): Update.
2735         * psymtab.c (find_symbol_file_from_partial): Remove.
2736         (psym_functions): Update.
2737         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2738         Remove.
2739
2740 2013-08-07  Tom Tromey  <tromey@redhat.com>
2741
2742         * symfile.c (set_initial_language): Look up "main" symbol
2743         and use its language.
2744         * symtab.c (find_main_filename): Remove.
2745         * symtab.h (find_main_filename): Remove.
2746
2747 2013-08-07  Tom Tromey  <tromey@redhat.com>
2748
2749         * dwarf2read.c (recursively_compute_inclusions): Add
2750         "immediate_parent" argument.  Set symtab's "user" field
2751         if not set.
2752         (compute_symtab_includes): Update.
2753
2754 2013-08-07  Tom Tromey  <tromey@redhat.com>
2755
2756         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2757         when adding label symbols.
2758
2759 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2760             Ulrich Weigand  <uweigand@de.ibm.com>
2761
2762         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2763         * configure.host (powerpc64-*-aix*): Likewise.
2764
2765 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2766             Ulrich Weigand  <uweigand@de.ibm.com>
2767
2768         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2769         is defined.
2770         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2771         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2772         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2773         * configure.ac: Check for ptrace64.
2774         * configure, config.in: Regenerate.
2775
2776 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
2777             Ulrich Weigand  <uweigand@de.ibm.com>
2778
2779         * aixthread.c: Call ptrace64 instead of ptracex if defined.
2780         Call ptrace64 instead of ptrace if defined.
2781         Add macro addr_ptr to take care of ptrace address argument.
2782         (pdc_read_regs): Likewise.
2783         (pdc_write_regs): Likewise.
2784         (aix_thread_resume): Likewise.
2785         (fetch_regs_kernel_thread): Likewise.
2786         (store_regs_kernel_thread): Likewise.
2787
2788 2013-08-07  Anton Blanchard  <anton@samba.org>
2789
2790         * MAINTAINERS: Add myself to Write After Approval.
2791
2792 2013-08-05  Tom Tromey  <tromey@redhat.com>
2793
2794         * aix-thread.c (_initialize_aix_thread): Use
2795         complete_target_initialization.
2796         * bsd-uthread.c (_initialize_bsd_uthread): Use
2797         complete_target_initialization.
2798         * dec-thread.c (_initialize_dec_thread): Use
2799         complete_target_initialization.
2800         * ravenscar-thread.c (_initialize_ravenscar): Use
2801         complete_target_initialization.
2802         * sol-thread.c (_initialize_sol_thread): Use
2803         complete_target_initialization.
2804         * spu-multiarch.c (_initialize_spu_multiarch): Use
2805         complete_target_initialization.
2806
2807 2013-08-05  Tom Tromey  <tromey@redhat.com>
2808
2809         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2810         * ada-lang.c (ada_lookup_simple_minsym): Return
2811         bound_minimal_symbol.
2812         * ada-lang.h (ada_lookup_simple_minsym): Update.
2813         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2814         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2815         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2816         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2817         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2818         * minsyms.c (msymbol_objfile): Remove.
2819         (lookup_minimal_symbol_internal): New function, from
2820         lookup_minimal_symbol.
2821         (lookup_minimal_symbol): Rewrite using
2822         lookup_minimal_symbol_internal.
2823         (lookup_bound_minimal_symbol): New function.
2824         * minsyms.h (msymbol_objfile): Remove.
2825         (lookup_bound_minimal_symbol): Declare.
2826         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2827         * parse.c (write_exp_msymbol): Change parameter to a
2828         bound_minimal_symbol.
2829         (write_dollar_variable): Use lookup_bound_minimal_symbol.
2830         * parser-defs.h (write_exp_msymbol): Update.
2831         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2832         * symfile.c (simple_read_overlay_table): Use
2833         lookup_bound_minimal_symbol.
2834         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2835         (search_symbols): Likewise.
2836         (print_msymbol_info): Take a bound_minimal_symbol argument.
2837         (symtab_symbol_info, rbreak_command): Update.
2838         * symtab.h (struct symbol_search) <msymbol>: Change type
2839         to bound_minimal_symbol.
2840         * valops.c (find_function_in_inferior): Use
2841         lookup_bound_minimal_symbol.
2842         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2843
2844 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2845
2846         Code cleanup.
2847         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2848         to ...
2849         (async_cleanup_sigint_signal_handler): ... this.
2850         (initialize_sigint_signal_handler): Remove declaration.
2851         (handle_remote_sigint): Rename the declaration to ...
2852         (async_handle_remote_sigint): ... this.
2853         (handle_remote_sigint_twice): Rename the declaration to ...
2854         (async_handle_remote_sigint_twice): ... this.
2855         (async_remote_interrupt, async_remote_interrupt_twice)
2856         (remote_interrupt): Remove the declarations.
2857         (remote_interrupt_twice): Rename the declaration ...
2858         (sync_remote_interrupt_twice): ... this.
2859         (sigint_remote_twice_token): Rename the variable to ...
2860         (async_sigint_remote_twice_token): ... this.
2861         (sigint_remote_token): Rename the variable to ...
2862         (async_sigint_remote_token): ... this.
2863         (initialize_sigint_signal_handler): Rename the function to ...
2864         (async_initialize_sigint_signal_handler): ... this.  Update the name
2865         inside.
2866         (handle_remote_sigint): Rename the function to ...
2867         (async_handle_remote_sigint): ... this.  Update the names inside.
2868         (handle_remote_sigint_twice): Rename the function to ...
2869         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
2870         (cleanup_sigint_signal_handler): Rename the function to ...
2871         (async_cleanup_sigint_signal_handler): ... this.
2872         (remote_interrupt): Rename the function to ...
2873         (sync_remote_interrupt): this.  Update the names inside.
2874         (remote_interrupt_twice): Rename the function to ...
2875         (sync_remote_interrupt_twice): this.  Update the names inside.
2876         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2877         (_initialize_remote): Update the names inside.
2878
2879 2013-08-02  Tom Tromey  <tromey@redhat.com>
2880
2881         PR symtab/15719:
2882         * breakpoint.c (update_watchpoint, watchpoint_check)
2883         (watch_command_1): Update.
2884         * eval.c (fetch_subexp_value): Add "preserve_errors"
2885         parameter.
2886         * ppc-linux-nat.c (check_condition): Update.
2887         * value.h (fetch_subexp_value): Update.
2888
2889 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
2890
2891         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2892         add_file_handler.
2893
2894 2013-08-01  Doug Evans  <dje@google.com>
2895
2896         PR symtab/15691
2897         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2898         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2899         Add assert of sig_entry->dwo_unit == NULL.
2900         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2901         had already been read.
2902         (read_signatured_type): Set per_cu.tu_read.
2903
2904         PR symtab/15695
2905         * valops.c (value_struct_elt): Add missing call to check_typedef.
2906         (value_find_oload_method_list): Ditto.
2907
2908         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2909         effectively, struct symbol_search **.
2910         (make_cleanup_free_search_symbols): Change arg to struct
2911         symbol_search **.  All callers updated.
2912         (compare_search_syms): Compare symtab file name and block as well.
2913         (search_symbols_equal): New function.
2914         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2915         New args new_head, new_tail.  Result is now void.  Remove dups after
2916         sorting the symbols.
2917         (search_symbols): Sort all found symbols once, after all have been
2918         found, and remove duplicates.  Simplify cleanup tracking of result.
2919         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2920
2921         Further workarounds for binutils/15021.
2922         * dwarf2read.c (recursively_compute_inclusions): Change type of result
2923         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
2924         Watch for duplicate symtabs coming from type units.
2925         (compute_symtab_includes): Update call to
2926         recursively_compute_inclusions. Build vector of included symtabs
2927         instead of per_cus.
2928         * symtab.h (symtab_ptr): New typedef.
2929         (DEF_VEC_P (symtab_ptr)): New VEC type.
2930         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
2931         instead.
2932
2933 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
2934
2935         * cli/cli-script.c (script_from_file): Remove use of
2936         error_pre_print.
2937         * main.c (captured_main): Remove use of error_pre_print and
2938         quit_pre_print.
2939         * utils.c (error_pre_print, quit_pre_print): Remove.
2940         * utils.h (error_pre_print, quit_pre_print): Likewise.
2941
2942 2013-08-01  Yao Qi  <yao@codesourcery.com>
2943
2944         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2945         with mi_getopt.
2946         (mi_cmd_stack_list_variables): Likewise.
2947
2948 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2949
2950         * exceptions.c (deprecated_throw_reason): Remove.
2951         * exceptions.h (deprecated_throw_reason): Remove.
2952
2953 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2954
2955         * remote-mips.c (mips_error): Replace use of
2956         deprecated_throw_reason with throw_verror.  Use the error message
2957         passed to mips_error as the error message for throw_verror.
2958
2959 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2960
2961         * monitor.c (monitor_interrupt_query): Replace use of
2962         deprecated_throw_reason with quit.
2963         * nto-procfs.c (interrupt_query): Likewise.
2964         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2965         * remote-mips.c (mips_kill): Likewise.
2966         * remote.c (interrupt_query): Likewise.
2967
2968 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
2969
2970         * utils.c (internal_verror): Replace use of deprecated_throw_reason
2971         with call to fatal.
2972
2973 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
2974             Yao Qi  <yao@codesourcery.com>
2975
2976         * tracepoint.c (trace_dump_command): Select the current frame.
2977
2978 2013-07-30  Doug Evans  <dje@google.com>
2979
2980         * dwarf2read.c (process_queue): Add type signature to debug output.
2981
2982 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
2983
2984         * value.c (value_fetch_lazy): Mark optimized out values as such
2985         rather than raising an error.
2986
2987 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
2988
2989         * value.c (value_fetch_lazy): Ensure parent value is not lazy
2990         before checking which bits of the parent, not the child, value are
2991         valid.
2992
2993 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
2994
2995         PR gdb/15715
2996         * top.c: Include "filenames.h".
2997         (set_history_filename): New function.
2998         (init_main): Install it as set hook of the "set history filename"
2999         command.
3000
3001 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3002
3003         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3004         attribute parameter.
3005         (dwarf2_const_value_data): Constify struct attribute parameter.
3006         (dwarf2_const_value): Constify struct attribute parameter.
3007         (dwarf2_const_value_attr): Constify struct attribute parameter.
3008         (lookup_die_type): Constify struct attribute parameter.
3009         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3010         (follow_die_ref_or_sig): Constify struct attribute parameter.
3011         (follow_die_ref): Constify struct attribute parameter.
3012         (follow_die_sig): Constify struct attribute parameter.
3013         (get_DW_AT_signature_type): Constify struct attribute parameter.
3014         (get_type_unit_group): Constify struct attribute parameter.
3015         (fill_in_loclist_baton): Constify struct attribute parameter.
3016         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3017         (type_unit_group): Constify struct attribute parameter.
3018
3019 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3020
3021         * dwarf2read.c (attr_form_is_block): Make argument const.
3022         (attr_form_is_section_offset): Make argument const.
3023         (attr_form_is_constant): Make argument const.
3024         (attr_form_is_ref): Make argument const.
3025
3026 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
3027
3028         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3029         All uses updated.
3030         (attr_form_is_ref): Moved below attr_form_is_constant.
3031
3032 2013-07-29  Doug Evans  <dje@google.com>
3033
3034         * main.c (captured_command_loop): Tweak comment.
3035
3036         * target.c (target_async_permitted_1): Fix comment.
3037
3038         * symtab.c (iterate_over_some_symtabs): Add comment.
3039
3040         * symtab.c (iterate_over_some_symtabs): Fix indentation.
3041
3042 2013-07-27  Yao Qi  <yao@codesourcery.com>
3043
3044         * NEWS: Mention that GDBserver now supports hardware
3045         watchpoints on the MIPS GNU/Linux target.
3046
3047 2013-07-27  Yao Qi  <yao@codesourcery.com>
3048
3049         * Makefile.in (HFILES_NO_SRCDIR): Add
3050         common/mips-linux-watch.h.
3051         (mips-linux-watch.o): New rule.
3052         * common/mips-linux-watch.c: New.
3053         * common/mips-linux-watch.h: New.
3054         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3055         * mips-linux-nat.c: Include mips-linux-watch.h.
3056         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3057         to common/mips-linux-watch.h.
3058         (MAX_DEBUG_REGISTER): Likewise.
3059         (enum pt_watch_style): Likewise.
3060         (struct mips32_watch_regs): Likewise.
3061         (struct mips64_watch_regs): Likewise.
3062         (struct pt_watch_regs): Likewise.
3063         (struct mips_watchpoint): Likewise.
3064         (mips_linux_watch_get_irw_mask): Move to
3065         common/mips-linux-watch.c.
3066         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3067         (mips_linux_watch_get_watchlo): Likewise.
3068         (mips_linux_watch_set_watchlo): Likewise.
3069         (mips_linux_watch_get_watchhi): Likewise.
3070         (mips_linux_watch_set_watchhi): Likewise.
3071         (mips_linux_read_watch_registers): Likewise.
3072         (mips_linux_watch_type_to_irw): Likewise.
3073         (mips_linux_stopped_data_address, fill_mask): Likewise.
3074         (mips_linux_watch_try_one_watch): Likewise.
3075         (mips_linux_watch_populate_regs): Likewise.
3076
3077 2013-07-27  Yao Qi  <yao@codesourcery.com>
3078
3079         * mips-linux-nat.c (get_irw_mask): Rename to ...
3080         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
3081         'set' to 'n'.  Update function comment.  All callers changed.
3082         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
3083         function comment.  All callers changed.
3084         (get_num_valid): Rename to ...
3085         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
3086         'set' to 'n'.  Update function comment.  All callers changed.
3087         (get_watchlo): Rename to ...
3088         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
3089         'set' to 'n'.  Update function comment.  All callers changed.
3090         (set_watchlo): Rename to ...
3091         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
3092         'set' to 'n'.  Update function comment.  All callers changed.
3093         (get_watchhi): Rename to ...
3094         (mips_linux_watch_get_watchhi): ... this.  Update function
3095         comment.  All callers changed.
3096         (set_watchhi): Rename to ...
3097         (mips_linux_watch_set_watchhi): ... this.  Update function
3098         comment.  All callers changed.
3099         (mips_linux_read_watch_registers): Update function comment.
3100         Add new parameters 'lwpid', 'watch_readback', and
3101         'watch_readback_valid'.  Update.
3102         (type_to_irw): Rename to ...
3103         (mips_linux_watch_type_to_irw): ... this.  Update function
3104         comment.  All callers changed.
3105         (fill_mask): Update function comment.
3106         (try_one_watch): Rename to ...
3107         (mips_linux_watch_try_one_watch): ... this.  Change the type
3108         of parameter 'irw' from 'unsigned' to 'uint32_t'.
3109         (populate_regs_from_watches): Rename to ...
3110         (mips_linux_watch_populate_regs): ... this.  Add parameter
3111         'current_watches'.  All callers changed.
3112
3113 2013-07-27  Yao Qi  <yao@codesourcery.com>
3114
3115         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3116         the code.
3117         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3118         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3119         (struct pt_watch_regs): Likewise.
3120         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3121         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3122         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3123         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3124         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3125
3126 2013-07-27  Yao Qi  <yao@codesourcery.com>
3127
3128         * breakpoint.h: Include break-common.h.
3129         (enum target_hw_bp_type): Move to ...
3130         * common/break-common.h: ... here.  New.
3131
3132 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
3133
3134         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3135         process group regardless of having tty on stdin.
3136
3137 2013-07-25  Doug Evans  <dje@google.com>
3138
3139         * linux-fork.h (detach_fork): Delete.
3140
3141 2013-07-25  Tom Tromey  <tromey@redhat.com>
3142
3143         PR remote/15256, PR remote/15266:
3144         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3145         * monitor.c (monitor_detach): Use unpush_target.
3146         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3147         * remote-mips.c (mips_detach): Use unpush_target.  Don't
3148         call mips_close.
3149         * remote-sim.c (gdbsim_detach): Use unpush_target.
3150         * target.c (pop_target): Remove.
3151         (pop_all_targets_above): Don't call target_close.
3152         (target_close): Assert that the target is unpushed.
3153         * target.h (pop_target): Don't declare.
3154         * tracepoint.c (tfile_open): Use unpush_target.
3155
3156 2013-07-25  Tom Tromey  <tromey@redhat.com>
3157
3158         * linux-thread-db.c (init_thread_db_ops): Call
3159         complete_target_initialization.
3160         (_initialize_thread_db): Don't call add_target.
3161         * target.c (complete_target_initialization): New function.
3162         (add_target_with_completer): Call it.
3163         * target.h (complete_target_initialization): Declare.
3164
3165 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3166
3167         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3168         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3169         (HPPANBSD_SIZEOF_GREGS): New define.
3170         (hppaobsd_supply_gregset): Handle additional registers.
3171         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3172         we provide more registers now.
3173         (hppabsd_supply_gregset): Supply additional registers.
3174         (hppabsd_collect_gregset): Collect additional registers.
3175
3176 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
3177
3178         * hppabsd-tdep.c: Include "dwarf2-frame.h".
3179         (hppabsd_dwarf2_frame_init_reg): New function.
3180         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3181
3182 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3183
3184         * mi/mi-main.c (output_register): Make MI 'r' format use standard
3185         'z' format code.  Remove error for optimized out values, standard
3186         code will handle these fine.
3187
3188 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
3189
3190         * NEWS: Mention new 'z' formatter.
3191         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3192         (_initialize_printcmd): Mention 'z' formatter in help text of the
3193         'x' command.
3194
3195 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
3196
3197         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3198         formatting.
3199
3200 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
3201
3202         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3203         interface can evaluate arguments.  Fallback to the old mode if it
3204         cannot.
3205         (create_exception_master_breakpoint): Likewise.
3206         * elfread.c (elf_can_evaluate_probe_arguments): New function.
3207         (struct sym_probe_fns elf_probe_fns): Export function above to the
3208         probe interface.
3209         * probe.c (can_evaluate_probe_arguments): New function.
3210         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3211         function pointer.
3212         (can_evaluate_probe_arguments): New function prototype.
3213         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3214         probe interface can evaluate arguments.  Fallback to the old mode
3215         if it cannot.
3216         * stap-probe.c (stap_get_probe_argument_count): Check if probe
3217         interface can evaluate arguments.  Warning the user if it cannot.
3218         (stap_can_evaluate_probe_arguments): New function.
3219         (struct probe_ops stap_probe_ops): Export function above to the
3220         probe interface.
3221         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3222         New function pointer.
3223
3224 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
3225
3226         * Makefile.in (SFILES): Add common/target-common.c.
3227         Add common/target-common.h to headers.
3228         (COMMON_OBS): Add target-common.o.
3229         (target-common.o): New target.
3230         * linux-nat.h (resume_kind): Move to common/target-common.h.
3231         * target.c (target_waitstatus_to_string): Move to
3232         common/target-common.c.
3233         * target.h: Include target-common.h.
3234         (target_waitkind): Move to common/target-common.h.
3235         (target_waitstatus): Likewise.
3236         (TARGET_WNOHANG): Likewise.
3237         * common/target-common.c: New file.
3238         * common/target-common.h: New file.
3239
3240 2013-07-24  Doug Evans  <dje@google.com>
3241
3242         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3243         a warning.
3244
3245 2013-07-23  Yao Qi  <yao@codesourcery.com>
3246
3247         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3248         parameter 'gdbarch'.
3249         (i386_stack_tramp_frame_sniffer): Caller update.
3250         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3251         parameter 'gdbarch' and 'target'.
3252         (i386_linux_core_read_description): Caller update.
3253         * amd64-linux-tdep.c (amd64_linux_core_read_description):
3254         Likewise.
3255         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3256         declaration.
3257
3258 2013-07-23  Tom Tromey  <tromey@redhat.com>
3259
3260         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3261         2013-07-22.
3262
3263 2013-07-22  Doug Evans  <dje@google.com>
3264
3265         * exec.h (remove_target_sections): Delete arg abfd.
3266         * exec.c (exec_close): Update call to remove_target_sections.
3267         (remove_target_sections): Delete arg abfd.
3268         * solib.c (update_solib_list): Ditto.
3269         (reload_shared_libraries_1): Ditto.
3270         (clear_solib): Ditto, and unconditionally call remove_target_sections.
3271         * target.h (struct target_section): Rename key to owner.
3272         All uses updated.
3273
3274 2013-07-22  Tom Tromey  <tromey@redhat.com>
3275
3276         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3277
3278 2013-07-22  Tom Tromey  <tromey@redhat.com>
3279
3280         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3281         Simplify cleanup handling.
3282
3283 2013-07-22  Tom Tromey  <tromey@redhat.com>
3284
3285         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3286         on all return paths.
3287
3288 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3289
3290         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3291         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3292         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3293
3294 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
3295
3296         * top.c (print_gdb_version): Add help, apropos description and
3297         url to online documentation.
3298
3299 2013-07-19  Hui Zhu  <hui@codesourcery.com>
3300
3301         PR gdb/15692
3302         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3303
3304 2013-07-19  Yao Qi  <yao@codesourcery.com>
3305
3306         * target.c (update_current_target): Change the default action
3307         of 'to_traceframe_info' from tcomplain to return_zero.
3308         * target.h (struct target_ops) <to_traceframe_info>: Add more
3309         comments.
3310         * valops.c (read_value_memory): Call
3311         traceframe_available_memory unconditionally.
3312
3313 2013-07-18  Yao Qi  <yao@codesourcery.com>
3314
3315         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3316         if the name is prefixed by "__imp_" or "_imp_", look for minimal
3317         symbol without prefix.  If found, set its type to
3318         'mst_solib_trampoline'.
3319
3320 2013-07-17  Doug Evans  <dje@google.com>
3321
3322         * NEWS: Mention "set print raw frame-arguments".
3323         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3324         * stack.c (print_raw_frame_arguments): New static global.
3325         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3326         (_initialize_stack): New command "set/show print raw frame-arguments".
3327         * valprint.c (setprintrawlist, showprintrawlist): New globals.
3328         (set_print_raw, show_print_raw): New functions.
3329         (_initialize_valprint): New prefix command "set/show print raw".
3330         * valprint.h (value_print_options): Improve comments.
3331
3332         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3333         of all *list variables.
3334
3335         * gdbcmd.h (togglelist): Delete.
3336         * cli/cli-cmds.c (togglelist): Delete.
3337         (init_cmd_lists): Update.
3338         * cli/cli-cmds.h (togglelist): Delete.
3339
3340 2013-07-17  Tom Tromey  <tromey@redhat.com>
3341
3342         * dwarf2read.c (dwarf2_per_objfile_free): Clear
3343         dwarf2_per_objfile.
3344
3345 2013-07-16  Doug Evans  <dje@google.com>
3346
3347         * nto-tdep.c (nto_relocate_section_addresses): Update,
3348         target_section.bfd deleted.
3349         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3350         * s390-tdep.c (s390_load): Ditto.
3351         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3352
3353 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
3354
3355         * common/format.c (parse_format_string): Add checks for NULL
3356         character before calling strchr.
3357
3358 2013-07-16  Doug Evans  <dje@google.com>
3359
3360         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3361         temp_pathname argument.
3362         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3363         when opening the file fails.
3364
3365         * target.h (struct target_section): Delete member bfd.
3366         All users updated to use the_bfd_section->owner instead.
3367         * exec.c (add_to_section_table): Assert bfd is expected value.
3368         Remove initialization of target_section.bfd.
3369         (remove_target_sections): Update.
3370         (section_table_available_memory): Update.
3371         (section_table_xfer_memory_partial): Update.
3372         (print_section_info): Update.
3373         (exec_set_section_address): Update.
3374         * record-full.c (record_full_core_xfer_partial): Update.
3375         * solib-svr4.c (svr4_relocate_section_addresses): Update.
3376         * solib-target.c (solib_target_relocate_section_addresses): Update.
3377         * symfile.c (build_section_addr_info_from_section_table): Update.
3378         * target.c (memory_xfer_live_readonly_partial): Update.
3379         (memory_xfer_partial_1): Update.
3380
3381 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3382
3383         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3384         now available for embedded (BookE) and server (BookS) processors,
3385         correct mentions of 'booke' and adjust comments accordingly in order to
3386         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3387         (have_ptrace_booke_interface): Rename function and variable
3388         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3389         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3390         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3391         'hwdebug_point_cmp'. Update all uses.
3392         (booke_find_thread_points_by_tid): Rename function
3393         'booke_find_thread_points_by_tid' to
3394         'hwdebug_find_thread_points_by_tid'. Update all uses.
3395         (booke_insert_point): Rename function 'booke_insert_point' to
3396         'hwdebug_insert_point'. Update all uses.
3397         (booke_remove_point): Rename function 'booke_remove_point' to
3398         'hwdebug_remove_point'. Update all uses.
3399
3400 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
3401
3402         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3403         numbers with enum values.
3404
3405 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
3406
3407         PR threads/13217
3408         * thread.c (thread_apply_all_command): Check for valid threads
3409         and thread count.
3410         (thread_array_cleanup): New struct.
3411         (set_thread_refcount): New function.
3412
3413 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
3414
3415         * infcmd.c (default_print_one_register_info): Reuse function
3416         print_hex_chars.
3417
3418 2013-07-10  Tom Tromey  <tromey@redhat.com>
3419
3420         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3421         (ada-exp.o): New target.
3422
3423 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3424
3425         * mt-tdep.c (mt_registers_info): Call
3426         get_no_prettyformat_print_options instead of
3427         get_raw_print_options (regression by last patch from Doug
3428         Evans).
3429
3430 2013-07-09  Pedro Alves  <palves@redhat.com>
3431
3432         Checked in by Joel Brobecker  <brobecker@adacore.com>.
3433         * ada-lang.c (coerce_unspec_val_to_type): Use
3434         value_optimized_out_const.
3435         * value.c (value_optimized_out_const): New function.
3436         * value.h (value_optimized_out_const): New declaration.
3437
3438 2013-07-09  Doug Evans  <dje@google.com>
3439
3440         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3441         Enum values rename as well.  All uses updated.
3442         * valprint.h (value_print_options): Rename member pretty to
3443         pretty format.  Rename member prettyprint_arrays to
3444         prettyformat_arrays.  Rename member prettyprint_structs to
3445         prettyformat_structs.  All uses updated.
3446         (get_no_prettyformat_print_options): Renamed from
3447         get_raw_print_options.
3448         * valprint.c (get_no_prettyformat_print_options): Renamed from
3449         get_raw_print_options.  All callers updated.
3450         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3451         All callers updated.
3452         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3453         All callers updated.
3454         (_initialize_valprint): Improve help text for "set print pretty" and
3455         "set print arrays".
3456
3457 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
3458
3459         * value.c (value_bits_valid): Revert previous change, and change
3460         by Pedro on 2013-07-04, due to regressions in
3461         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3462
3463 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
3464             Pedro Alves  <palves@redhat.com>
3465
3466         * value.c (value_bits_valid): If the value is not lval_computed
3467         or has no check validity handler then the answer is the
3468         optimized_out flag, otherwise defer to the handler.
3469
3470 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
3471
3472         * top.c (print_gdb_configuration): Explain in output of
3473         --configuration what does "relocatable" mean.
3474
3475         * main.c (print_gdb_help): Regroup options in the --help text.
3476         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3477         the relevant discussions.
3478
3479 2013-07-06  Yao Qi  <yao@codesourcery.com>
3480
3481         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3482         Remove parameter 'lsal'.
3483         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3484         to inner block.  Caller update.
3485         (base_breakpoint_create_breakpoints_sal): Update.
3486         (bkpt_create_breakpoints_sal): Likewise.
3487         (tracepoint_create_breakpoints_sal): Likewise.
3488         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3489         element 0 of vector 'canonical->sals'.
3490
3491 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
3492
3493         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3494         register number instead of the pseudo register one.
3495         (rs6000_dwarf2_reg_to_regnum): Likewise.
3496
3497 2013-07-04  Pedro Alves  <palves@redhat.com>
3498
3499         * findvar.c (value_of_register): Use allocate_optimized_out_value
3500         if the register has been optimized out, instead of
3501         set_value_optimized_out.
3502         * frame-unwind.c (frame_unwind_got_optimized): Use
3503         allocate_optimized_out_value.
3504
3505 2013-07-04  Pedro Alves  <palves@redhat.com>
3506
3507         * value.c (value_bits_valid): If the value is not lval_computed,
3508         or doesn't have a check_validity hook, assume the value is entirely
3509         valid.
3510
3511 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3512
3513         * stack.c (read_frame_arg): No longer fetch lazy values.
3514         * value.c (value_optimized_out): If the value is not already
3515         marked optimized out, and is lazy then fetch it.
3516         (value_primitive_field): Move optimized out check to later in the
3517         function, after we have loaded any lazy values.
3518         (value_fetch_lazy): Use optimized out flag directly rather than
3519         calling optimized_out method.
3520
3521 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
3522
3523         * valops.c: Don't include "user-regs.h".
3524         (value_fetch_lazy): Moved to value.c.
3525         * value.c: Include "user-regs.h".
3526         (value_fetch_lazy): Moved from valops.c.
3527
3528 2013-07-04  Yao Qi  <yao@codesourcery.com>
3529
3530         Revert:
3531         2013-06-27  Yao Qi  <yao@codesourcery.com>
3532
3533         * common/create-version.sh: Update comments.  Handle the case
3534         that TARGET_ALIAS is empty.
3535
3536 2013-07-03  Pedro Alves  <palves@redhat.com>
3537
3538         * Makefile.in (config.status): Depend on development.sh.
3539         (aclocal_m4_deps): Add libmcheck.m4.
3540         * acinclude.m4: Include libmcheck.m4.
3541         * configure.ac: Source development.sh instead of setting
3542         'development' here.  --enable-libmcheck/--disable-libmcheck code
3543         factored out to GDB_AC_LIBMCHECK.  Run it.
3544         * development.sh: New file.
3545         * libmcheck.m4: New file.
3546         * configure: Regenerate.
3547
3548 2013-07-02  Tom Tromey  <tromey@redhat.com>
3549
3550         * contrib/ari/update-web-ari.sh: Update for version.in change.
3551
3552 2013-07-02  Tom Tromey  <tromey@redhat.com>
3553
3554         * common/ptid.h: Comment fixes.
3555
3556 2013-07-01  Tom Tromey  <tromey@redhat.com>
3557
3558         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3559         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
3560         (dwarf2_read_index, create_all_comp_units): Update.
3561
3562 2013-07-01  Tom Tromey  <tromey@redhat.com>
3563
3564         * configure.ac (build_warnings): Add -Wold-style-definition.
3565         * configure: Rebuild.
3566         * machoread.c (_initialize_machoread): Use "(void)".
3567         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3568         use "(void)".
3569
3570 2013-07-01  Tom Tromey  <tromey@redhat.com>
3571
3572         * configure.ac (build_warnings): Add -Wold-style-declaration.
3573         * configure: Rebuild.
3574         * dsrec.c (make_srec): Use "static const", not "const static".
3575         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3576         not "const static".
3577         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3578         Use "static const", not "const static".
3579         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3580         not "const static".
3581         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3582         not "const static".
3583         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3584         not "const static".
3585         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3586         not "const static".
3587         (v850_dbtrap_breakpoint_from_pc): Likewise.
3588         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3589         not "const static".
3590
3591 2013-07-01  Tom Tromey  <tromey@redhat.com>
3592
3593         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3594         * configure: Rebuild.
3595
3596 2013-07-01  Pedro Alves  <palves@redhat.com>
3597
3598         * defs.h: Include "pathmax.h".
3599         * utils.c: Don't include sys/param.h.
3600         (gdb_realpath): Remove code that checks for MAXPATHLEN.
3601         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3602         instead of MAXPATHLEN.
3603         * solib-sunos.c: Don't include sys/param.h.
3604         * xcoffread.c: Don't include sys/param.h.
3605         * bsd-kvm.c: Don't include sys/param.h.
3606         * darwin-nat.c: Don't include sys/param.h.
3607         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3608         * darwin-nat-info.c: Don't include sys/param.h.
3609         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3610         MAXPATHLEN.
3611         * i386obsd-nat.c: Don't include sys/param.h.
3612         * inf-child.c: Don't include sys/param.h.
3613         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3614         * linux-fork.c: Don't include sys/param.h.
3615         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3616         * linux-nat.c: Don't include sys/param.h.
3617         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3618         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3619         * m68klinux-nat.c: Don't include sys/param.h.
3620         * nbsd-nat.c: Don't include sys/param.h.
3621         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3622         * ppc-linux-nat.c: Don't include sys/param.h.
3623         * rs6000-nat.c: Don't include sys/param.h.
3624         * spu-linux-nat.c. Don't include sys/param.h.
3625         * windows-nat.c: Don't include sys/param.h.
3626         * xtensa-linux-nat.c: Don't include sys/param.h.
3627         * config/i386/nm-fbsd.h: Don't include sys/param.h.
3628
3629 2013-07-01  Pedro Alves  <palves@redhat.com>
3630
3631         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3632         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3633         * gnulib/aclocal.m4: Regenerate.
3634         * gnulib/config.in: Regenerate.
3635         * gnulib/configure: Regenerate.
3636         * gnulib/import/pathmax.h: New file.
3637         * gnulib/import/Makefile.am: Regenerate.
3638         * gnulib/import/Makefile.in: Regenerate.
3639         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3640         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3641         * gnulib/import/m4/pathmax.m4: New file.
3642
3643 2013-07-01  Pedro Alves  <palves@redhat.com>
3644
3645         * configure.ac (GDBINIT): Define, depending on host.
3646         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3647         * top.c (PATH_MAX): Delete fallback definition.
3648         (GDBINIT_FILENAME): Delete.
3649         (gdbinit): Reimplement as const char array set to the GDBINIT
3650         string constant.
3651         * top.h (gdbinit): Make const.
3652         * configure, config.in: Regenerate.
3653
3654 2013-07-01  Pedro Alves  <palves@redhat.com>
3655
3656         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3657         * cli/cli-cmds.h (source_script): Likewise.
3658         * exceptions.c (catch_command_errors_const): New function.
3659         * exceptions.h (catch_command_errors_const): Declare.
3660         * main.c (get_init_files): Make parameters const, and adjust.
3661         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3662         'local_gdbinit' locals const.  Adjust to use
3663         catch_command_errors_const.
3664         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3665         'local_gdbinit' locals const.
3666
3667 2013-07-01  Pedro Alves  <palves@redhat.com>
3668
3669         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3670         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3671         * tracepoint.c: Don't check HAVE_UNISTD_H before including
3672         <unistd.h>.
3673
3674 2013-07-01  Pedro Alves  <palves@redhat.com>
3675
3676         Import the "unistd" gnulib module.
3677         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3678         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3679         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3680         import/m4/unistd_h.m4.
3681         * gnulib/aclocal.m4: Renenerate.
3682         * gnulib/config.in: Renenerate.
3683         * gnulib/configure: Renenerate.
3684         * gnulib/import/Makefile.am: Renenerate.
3685         * gnulib/import/Makefile.in: Renenerate.
3686         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3687         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3688         * gnulib/import/m4/off_t.m4: New file.
3689         * gnulib/import/m4/ssize_t.m4: New file.
3690         * gnulib/import/m4/sys_types_h.m4: New file.
3691         * gnulib/import/m4/unistd_h.m4: New file.
3692         * gnulib/import/sys_types.in.h: New file.
3693         * gnulib/import/unistd.c: New file.
3694         * gnulib/import/unistd.in.h: New file.
3695
3696 2013-07-01  Pedro Alves  <palves@redhat.com>
3697
3698         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3699         defined instead of checking HAVE_UNISTD_H.
3700
3701 2013-07-01  Pedro Alves  <palves@redhat.com>
3702
3703         Reimport gnulib from scratch.
3704         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3705         import/m4/onceonly.m4.
3706         * gnulib/aclocal.m4: Renegerate.
3707         * gnulib/config.in: Renegerate.
3708         * gnulib/configure: Renegerate.
3709         * gnulib/import/Makefile.in: Renegerate.
3710         * gnulib/import/extra/update-copyright: Renegerate.
3711         * gnulib/import/m4/onceonly.m4: Delete.
3712
3713 2013-07-01  Pedro Alves  <palves@redhat.com>
3714
3715         * tui/tui-regs.c (pagination_enabled): Delete declaration.
3716
3717 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3718
3719         Code cleanup.
3720         * remote.c (async_remote_interrupt_twice): Make it static.
3721         * remote.h (async_remote_interrupt_twice): Remove the declaration.
3722
3723 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3724
3725         * ia64-linux-tdep.c: Include <ctype.h>.
3726         (ia64_linux_stap_is_single_operand): New function.
3727         (ia64_linux_init_abi): Initialize SystemTap related attributes.
3728
3729 2013-06-28  Tom Tromey  <tromey@redhat.com>
3730
3731         * Makefile.in (version.c): Use version.in, not
3732         common/version.in.
3733         * common/create-version.sh: Likewise.
3734         * common/version.in: Move...
3735         * version.in: ...here.
3736
3737 2013-06-28  Pedro Alves  <palves@redhat.com>
3738
3739         * infrun.c (set_observer_mode): Don't declare pagination_enabled
3740         here.
3741         * utils.h (pagination_enabled): Declare.
3742
3743 2013-06-28  Pedro Alves  <palves@redhat.com>
3744
3745         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3746         Move higher up in file.
3747
3748 2013-06-28  Tom Tromey  <tromey@redhat.com>
3749
3750         * tracepoint.c (deprecated_readline_begin_hook)
3751         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3752         declare.
3753
3754 2013-06-28  Pedro Alves  <palves@redhat.com>
3755
3756         PR tui/14880
3757         * tui/tui-regs.c (tui_get_register): Fetch value contents before
3758         checking if they're available.
3759         * value.c (value_available_contents_eq): Change comment.
3760         * value.h (value_available_contents_eq): Expand comment.
3761
3762 2013-06-27  Tom Tromey  <tromey@redhat.com>
3763
3764         * target.c (find_run_target): Remove.
3765         * target.h (find_run_target): Remove.
3766
3767 2013-06-27  Tom Tromey  <tromey@redhat.com>
3768
3769         * corelow.c (core_gdbarch): Now static.
3770
3771 2013-06-27  Tom Tromey  <tromey@redhat.com>
3772
3773         * target.c (target_struct_index): Remove.
3774
3775 2013-06-27  Pedro Alves  <palves@redhat.com>
3776
3777         * infrun.c: Remove comment describing the 'stepping over runtime
3778         loader dynamic symbol resolution code' mechanism; moved to
3779         gdbint.texinfo.
3780
3781 2013-06-27  Pedro Alves  <palves@redhat.com>
3782
3783         * exceptions.c (catch_command_errors): Remove spurious space.
3784         * exceptions.h (catch_command_errors): Second parameter is "arg",
3785         not "command".
3786
3787 2013-06-27  Yao Qi  <yao@codesourcery.com>
3788
3789         * common/create-version.sh: Update comments.  Handle the case
3790         that TARGET_ALIAS is empty.
3791
3792 2013-06-26  Pedro Alves  <palves@redhat.com>
3793
3794         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3795         comment.
3796
3797 2013-06-26  Pedro Alves  <palves@redhat.com>
3798
3799         * infrun.c: Update comments on stepping over runtime loader
3800         dynamic symbol resolution code.
3801
3802 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
3803
3804         * ax-gdb.h (union exp_element): Forward declare.
3805         * parser-defs.h: Include expression.h.
3806
3807 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3808
3809         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3810
3811 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
3812
3813         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3814
3815 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
3816
3817         Fix trace-status to output proper start-time and stop-time.
3818         * tracepoint.c (trace_status_command): Fix type of printf arg to
3819         prevent improper type conversion.
3820         (trace_status_mi): Likewise.
3821
3822 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3823
3824         * mips-tdep.c (mips_next_pc): Fix a typo.
3825
3826 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3827
3828         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3829
3830 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3831             Yao Qi  <yao@codesourcery.com>
3832
3833         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3834         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3835         * mi/mi-main.c (print_variable_or_computed): New function.
3836         (mi_cmd_trace_frame_collected): New function.
3837         * tracepoint.c (find_trace_state_variable_by_number): New.
3838         (struct traceframe_info): Move to tracepoint.h
3839         (struct collection_list): Likewise.
3840         (do_collect_symbol): Include locals and arguments in the
3841         collected variables list.
3842         (clear_collection_list): Clear wholly collected variables list
3843         and computed variables list.
3844         (append_exp): New function.
3845         (encode_actions_1): Include variables in the wholly
3846         collected variables list.  Include memory ranges and
3847         full-fledged expressions in the computed expressions list.
3848         (encode_actions): Move some code to ...
3849         Return the cleanup chain.
3850         (encode_actions_rsp): ... here.  New function.
3851         (get_traceframe_location, get_traceframe_info): Remove static.
3852         * tracepoint.h (struct memrange): Moved from tracepoint.c.
3853         (struct collection_list): Moved from tracepoint.c.  Add two
3854         new fields 'wholly_collected' and 'computed'.
3855         (find_trace_state_variable_by_number): Declare.
3856         (encode_actions): Adjust declaration.
3857         (encode_actions_rsp): Declare.
3858         (get_traceframe_info, get_traceframe_location): Declare.
3859
3860         * NEWS: Mention new MI command -trace-frame-collected.
3861
3862 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3863             Yao Qi  <yao@codesourcery.com>
3864
3865         * ctf.c (ctf_traceframe_info): Push trace state variables
3866         present in the trace data into the traceframe info object.
3867         * breakpoint.c (DEF_VEC_I): Remove.
3868         * common/filestuff.c (DEF_VEC_I): Likewise.
3869         * dwarf2loc.c (DEF_VEC_I): Likewise.
3870         * mi/mi-main.c (DEF_VEC_I): Likewise.
3871         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3872         * features/traceframe-info.dtd: Add tvar element and its
3873         attributes.
3874         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3875         (build_traceframe_info): Push trace state variables present in
3876         the trace data into the traceframe info object.
3877         (traceframe_info_start_tvar): New function.
3878         (tvar_attributes): New.
3879         (traceframe_info_children): Add "tvar" element.
3880         * tracepoint.h (struct traceframe_info) <tvars>: New field.
3881
3882         * NEWS: Mention the change in GDB and GDBserver.
3883
3884 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3885             Yao Qi  <yao@codesourcery.com>
3886
3887         * tracepoint.c (trace_dump_command): Move code to ...
3888         (get_traceframe_location): ... here.  New.
3889
3890 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3891             Yao Qi  <yao@codesourcery.com>
3892
3893         * tracepoint.c (trace_dump_command): GDB emits an error
3894          instead of a warning when a traceframe is not selected.
3895
3896 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
3897             Yao Qi  <yao@codesourcery.com>
3898
3899         * tracepoint.c (tracepoint_list, stepping_list): Remove.
3900         (clear_collection_list): Free fields 'aexpre_list' and 'list'
3901         in collection_list.
3902         (do_clear_collection_list, init_collection_list): New.
3903         (encode_actions): Add local variables 'tracepoint_list' and
3904         'stepping_list'.  Call init_collection_list and make cleanup
3905         which calls do_clear_collection_list.  Don't call
3906         clear_collection_list.
3907         (_initialize_tracepoint): Delete references to
3908         'tracepoint_list' and 'stepping_list'.
3909
3910 2013-06-25  Tom Tromey  <tromey@redhat.com>
3911
3912         * common/create-version.sh (date): Use "$", not "$$" in sed
3913         expression.
3914
3915 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
3916
3917         * NEWS (New targets): Add entry for TI MSP430.
3918
3919 2013-06-25  Yao Qi  <yao@codesourcery.com>
3920
3921         * remote.c (remote_start_remote): Move code to upload tsv
3922         earlier.
3923
3924 2013-06-25  Yao Qi  <yao@codesourcery.com>
3925             Hui Zhu  <hui@codesourcery.com>
3926             Pedro Alves  <palves@redhat.com>
3927
3928         PR breakpoints/15075
3929         PR breakpoints/15434
3930         * breakpoint.c (bpstat_stop_status): Call
3931         b->ops->after_condition_true.
3932         (update_dprintf_command_list): Don't append "continue" command
3933         to the command list of dprintf breakpoint.
3934         (base_breakpoint_after_condition_true): New function.
3935         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3936         (dprintf_after_condition_true): New function.
3937         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3938         * breakpoint.h (breakpoint_ops): Add after_condition_true.
3939
3940 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
3941
3942         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3943         (ALLDEPFILES): Add msp430-tdep.c.
3944         * configure.tgt (msp430*-*-elf): New target.
3945         * msp430-tdep.c: New file.
3946
3947 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
3948
3949         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3950         microMIPS synthetic symbols.
3951
3952 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
3953
3954         * objfiles.h (pc_in_section): New prototype.
3955         (in_plt_section): Remove name argument, replace prototype with
3956         static inline function.
3957         * mips-tdep.h: Include "objfiles.h".
3958         (in_mips_stubs_section): New function.
3959         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3960         in_solib_call_trampoline member.
3961         (hppa_in_solib_call_trampoline): Remove name argument.
3962         * objfiles.c (pc_in_section): New function.
3963         (in_plt_section): Remove function.
3964         * mips-linux-tdep.c: Include "objfiles.h".
3965         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
3966         name argument.  Return 1 rather than the low 16-bit halfword of
3967         any instruction examined.
3968         (mips_linux_in_dynsym_resolve_code): Update
3969         mips_linux_in_dynsym_stub call accordingly.
3970         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3971         rather than an equivalent hand-coded sequence.
3972         * hppa-hpux-tdep.c (in_opd_section): Remove function.
3973         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3974         (hppa64_hpux_in_solib_call_trampoline): Likewise.
3975         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3976         in_opd_section.
3977         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3978         on call to tdep->in_solib_call_trampoline.
3979         (hppa_in_solib_call_trampoline): Remove name argument, update
3980         according to in_plt_section change.
3981         (hppa_skip_trampoline_code): Update according to in_plt_section
3982         change.
3983         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3984         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3985         Likewise.
3986         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3987         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3988         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3989         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3990         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3991         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3992         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3993         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3994         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3995         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3996         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3997         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3998         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3999
4000 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
4001
4002         * common/create-version.sh: Fix expansion of $host_alias
4003         and $target_alias in generation of HOST_NAME and TARGET_NAME
4004         (resp.).
4005
4006 2013-06-24  Tom Tromey  <tromey@redhat.com>
4007
4008         * common/create-version.sh: New file.
4009         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4010         create-version.sh.
4011         (HFILES_NO_SRCDIR): Use common/version.h.
4012         * version.in: Move to ...
4013         * common/version.in: ... here.  Replace date with "DATE".
4014         * version.h: Move to ...
4015         * common/version.h: ... here.
4016
4017 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4018
4019         * gdb/gnulib/Makefile.in: Update date in copyright header.
4020         * gdb/gnulib/configure.ac: Ditto.
4021         * gdb/gnulib/update-gnulib.sh: Ditto.
4022
4023 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
4024
4025         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4026         "gdb/gnulib/import".
4027
4028 2013-06-21  Will Newton  <will.newton@linaro.org>
4029
4030         * doublest.c (ldfrexp): Remove function.
4031         (convert_doublest_to_floatformat): Call frexpl instead of
4032         ldfrexp.
4033
4034 2013-06-21  Will Newton  <will.newton@linaro.org>
4035
4036         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4037         * gnulib/aclocal.m4: Regenerate.
4038         * gnulib/config.in: Regenerate.
4039         * gnulib/configure: Regenerate.
4040         * gnulib/import/Makefile.am: Update.
4041         * gnulib/import/Makefile.in: Update.
4042         * gnulib/import/m4/gnulib-cache.m4: Update.
4043         * gnulib/import/m4/gnulib-comp.m4: Update.
4044         * gnulib/import/float+.h: Import.
4045         * gnulib/import/float.c: Import.
4046         * gnulib/import/float.in.h: Import.
4047         * gnulib/import/fpucw.h: Import.
4048         * gnulib/import/frexp.c: Import.
4049         * gnulib/import/frexpl.c: Import.
4050         * gnulib/import/isnan.c: Import.
4051         * gnulib/import/isnand-nolibm.h: Import.
4052         * gnulib/import/isnand.c: Import.
4053         * gnulib/import/isnanl-nolibm.h: Import.
4054         * gnulib/import/isnanl.c: Import.
4055         * gnulib/import/itold.c: Import.
4056         * gnulib/import/m4/exponentd.m4: Import.
4057         * gnulib/import/m4/exponentl.m4: Import.
4058         * gnulib/import/m4/float_h.m4: Import.
4059         * gnulib/import/m4/fpieee.m4: Import.
4060         * gnulib/import/m4/frexp.m4: Import.
4061         * gnulib/import/m4/frexpl.m4: Import.
4062         * gnulib/import/m4/isnand.m4: Import.
4063         * gnulib/import/m4/isnanl.m4: Import.
4064         * gnulib/import/m4/math_h.m4: Import.
4065         * gnulib/import/math.c: Import.
4066         * gnulib/import/math.in.h: Import.
4067
4068 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4069
4070         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4071         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4072         signature_INTEL_edx comparisons.
4073
4074 2013-06-20  Doug Evans  <dje@google.com>
4075
4076         symtab/15652
4077         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4078         All callers updated.
4079         (open_dwp_file): If we can't find the dwp file, search the basename
4080         in debug-file-directory.
4081
4082         * dwarf2read.c (struct dwp_file): Fix comment.
4083         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4084
4085         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4086         better.
4087
4088 2013-06-20  Yao Qi  <yao@codesourcery.com>
4089
4090         * breakpoint.c (create_breakpoint): Fix code indentation.
4091
4092 2013-06-20  Yao Qi  <yao@codesourcery.com>
4093
4094         * breakpoint.c (create_breakpoints_sal_default): Remove
4095         parameter 'lsal'.  Update declaration.
4096         (bkpt_create_breakpoints_sal): Caller update.
4097         (tracepoint_create_breakpoints_sal): Likewise.
4098
4099 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
4100             Yao Qi  <yao@codesourcery.com>
4101
4102         * NEWS: Mention the new option '--skip-unavailable' of command
4103         -data-list-register-values.
4104         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4105         --skip-unavailable option.  Adjust to use output_register.
4106         (output_register): Add new 'skip_unavailable' parameter.
4107         Handle it.
4108
4109 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
4110
4111         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4112         common/i386-gcc-cpuid.h.
4113         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4114         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4115         Copy the latest version from upstream gcc.
4116         * common/linux-btrace.c: Include i386-cpuid.h.
4117         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4118         call to i386_cpuid.
4119         (cpu_supports_btrace): Likewise.
4120         * go32-nat.c: Include i386-cpuid.h.
4121         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4122
4123 2013-06-19  Doug Evans  <dje@google.com>
4124
4125         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4126         (get_section_index): Ditto.
4127
4128 2013-06-19  Tom Tromey  <tromey@redhat.com>
4129
4130         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4131         "dprintf" help.
4132
4133 2013-06-18  Doug Evans  <dje@google.com>
4134
4135         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4136         before using it.
4137         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4138         Move test of cu_index closer to use.  Print complaint if cu_index
4139         is bad.
4140
4141 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4142
4143         * machoread.c (oso_vector): Delete this global.
4144         (macho_register_oso): Add new parameter "oso_vector_ptr".
4145         Use it instead of the "oso_vector" global.
4146         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4147         (macho_symfile_read): Use a local oso_vector, to be free'ed
4148         at the end of this function, in place of the old "oso_vector"
4149         global.  Update various function calls accordingly.  Use one
4150         single cleanup chain for the entire function.
4151
4152 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
4153
4154         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4155         DWARF2_PER_OBJFILE by uses of DATA instead.
4156
4157 2013-06-18  Tom Tromey  <tromey@redhat.com>
4158
4159         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4160         argument.
4161         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4162         Special case signals other than GDB_SIGNAL_TRAP.
4163         (explains_signal_watchpoint): New function.
4164         (base_breakpoint_explains_signal): Add 'sig' argument.
4165         (initialize_breakpoint_ops): Set 'explains_signal' method for
4166         watchpoints.
4167         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4168         signal argument.
4169         (bpstat_explains_signal): Likewise.
4170         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4171
4172 2013-06-18  Tom Tromey  <tromey@redhat.com>
4173
4174         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4175
4176 2013-06-18  Tom Tromey  <tromey@redhat.com>
4177
4178         * python/python.c (finish_python_initialization): Decref
4179         'pythondir' on failure path as well.
4180
4181 2013-06-18  Tom Tromey  <tromey@redhat.com>
4182
4183         PR symtab/15391:
4184         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4185         after taking bits_to_skip into account.  Sign extend byte_offset.
4186         * utils.h (gdb_sign_extend): Declare.
4187         * utils.c (gdb_sign_extend): New function.
4188
4189 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4190
4191         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4192
4193 2013-06-17  Pierre Muller  <muller@sourceware.org>
4194
4195         * corelow.c (core_open): Print GDB signal name instead of target
4196         signal number.
4197
4198 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
4199
4200         * .gitignore: Add /gcore.
4201
4202 2013-06-13  Doug Evans  <dje@google.com>
4203
4204         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4205         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4206
4207 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
4208
4209         * stack.c (backtrace_command_1): Fix indentation.
4210
4211 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4212
4213         * window-nat.c (thread_rec): Add missing empty line after
4214         local variable declaration.
4215
4216 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4217
4218         * windows-nat.c (thread_rec): Revert format used to print
4219         error code returned by SuspendThread from %d back to %u.
4220
4221 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4222
4223         * windows-nat.c (windows_continue): Add "0x" prefix for thread
4224         ID in debug trace.
4225         (get_windows_debug_event): Likewise, for all debug traces.
4226
4227 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
4228
4229         * window-nat.c (thread_rec): Add thread ID in SuspendThread
4230         warning message.
4231
4232 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
4233             Yao Qi  <yao@codesourcery.com>
4234
4235         * mi/mi-main.c (get_register): Remove declaration.
4236         (output_register): Declare.
4237         (mi_cmd_data_list_register_values): Remove local variable
4238         'tuple_cleanup'.  Move some code into output_register.
4239         (get_register): Renamed to ...
4240         (output_register): ... this.  Output the register's
4241         "number" ui_out tuple here.
4242
4243 2013-06-07  Pedro Alves  <palves@redhat.com>
4244
4245         * darwin-nat.c: Fix formating in copyright header.
4246         * darwin-nat.h: Likewise.
4247         * gnu-nat.c: Likewise.
4248         * machoread.c: Likewise.
4249
4250 2013-06-07  Pedro Alves  <palves@redhat.com>
4251
4252         PR server/14823
4253         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
4254         static.  Output a global target description pointer.
4255         (init_registers_${name}): Adjust to initialize a
4256         target description structure.
4257
4258 2013-06-07  Will Newton  <will.newton@linaro.org>
4259
4260         * printcmd.c (build_address_symbolic): Call
4261         gdbarch_addr_bits_remove for text minimal symbols.
4262
4263 2013-06-07  Will Newton  <will.newton@linaro.org>
4264
4265         * MAINTAINERS: Add myself to Write After Approval.
4266
4267 2013-06-07  Yao Qi  <yao@codesourcery.com>
4268
4269         * tracepoint.c (start_tracing): Move code to ...
4270         (trace_reset_local_state): ... here.  New.
4271         (disconnect_tracing): Don't call set_current_traceframe,
4272         set_tracepoint_num, and set_traceframe_context. Call
4273         trace_reset_local_state instead.
4274         (tfile_close): Call trace_reset_local_state.
4275         * ctf.c (ctf_close): Likewise.
4276         * remote.c (remote_close): Likewise.
4277         * tracepoint.h (trace_reset_local_state): Declare.
4278
4279 2013-06-06  Doug Evans  <dje@google.com>
4280
4281         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4282         and fix header docs.
4283
4284 2013-06-05  Doug Evans  <dje@google.com>
4285             Keith Seitz  <keiths@redhat.com>
4286
4287         PR 15519
4288         * cp-namespace.c (find_symbol_in_baseclass): Call
4289         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4290         Check result of call to lookup_symbol_static.
4291         Call lookup_static_symbol_aux unconditionally.
4292         Call check_typedef on base types before accessing them.
4293         (cp_lookup_nested_symbol): Fix comment.
4294
4295 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
4296
4297         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4298         minimal symbols pointing to function descriptors.
4299
4300 2013-06-05  Tom Tromey  <tromey@redhat.com>
4301
4302         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4303
4304 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4305             Pedro Alves  <palves@redhat.com>
4306
4307         * remote.c (remote_wait_as): Restore signal handler before returning
4308         when GDB gets a notification.
4309
4310 2013-06-04  Gary Benson  <gbenson@redhat.com>
4311
4312         PR 2328
4313         * breakpoint.h (handle_solib_event): Moved function declaration
4314         to solib.h.
4315         * breakpoint.c (handle_solib_event): Moved function to solib.c.
4316         (bpstat_stop_status): Pass new argument to handle_solib_event.
4317         * solib.h (update_solib_breakpoints): New function declaration.
4318         (handle_solib_event): Moved function declaration from
4319         breakpoint.h.
4320         * solib.c (update_solib_breakpoints): New function.
4321         (handle_solib_event): Moved function from breakpoint.c.
4322         Updated to call solib_ops->handle_event if not NULL.
4323         * solist.h (target_so_ops): New fields "update_breakpoints" and
4324         "handle_event".
4325         * infrun.c (set_stop_on_solib_events): New function.
4326         (_initialize_infrun): Use the above for "set
4327         stop-on-solib-events".
4328         (handle_inferior_event): Pass new argument to handle_solib_event.
4329         * solib-svr4.c (probe.h): New include.
4330         (svr4_free_library_list): New forward declaration.
4331         (probe_action): New enum.
4332         (probe_info): New struct.
4333         (probe_info): New static variable.
4334         (NUM_PROBES): New definition.
4335         (svr4_info): New fields "using_xfer", "probes_table" and
4336         "solib_list".
4337         (free_probes_table): New function.
4338         (free_solib_list): New function.
4339         (svr4_pspace_data_cleanup): Free probes table and solib list.
4340         (svr4_copy_library_list): New function.
4341         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4342         (svr4_read_so_list): New parameter "prev_lm".
4343         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4344         (svr4_current_sos): New function.
4345         (probe_and_action): New struct.
4346         (hash_probe_and_action): New function.
4347         (equal_probe_and_action): Likewise.
4348         (register_solib_event_probe): Likewise.
4349         (solib_event_probe_at): Likewise.
4350         (solib_event_probe_action): Likewise.
4351         (solist_update_full): Likewise.
4352         (solist_update_incremental): Likewise.
4353         (disable_probes_interface_cleanup): Likewise.
4354         (svr4_handle_solib_event): Likewise.
4355         (svr4_update_solib_event_breakpoint): Likewise.
4356         (svr4_update_solib_event_breakpoints): Likewise.
4357         (svr4_create_solib_event_breakpoints): Likewise.
4358         (enable_break): Free probes table before creating breakpoints.
4359         Use svr4_create_solib_event_breakpoints to create breakpoints.
4360         (svr4_solib_create_inferior_hook): Free the solib list.
4361         (_initialize_svr4_solib): Initialise
4362         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4363
4364 2013-06-04  Gary Benson  <gbenson@redhat.com>
4365
4366         * target.h (target_ops): New field
4367         "to_augmented_libraries_svr4_read".
4368         (target_augmented_libraries_svr4_read): New macro.
4369         * target.c (update_current_target): Handle
4370         to_augmented_libraries_svr4_read.
4371         * remote.c (remote_state): New field
4372         "augmented_libraries_svr4_read".
4373         (remote_augmented_libraries_svr4_read_feature): New function.
4374         (remote_protocol_features): Add entry for
4375         "augmented-libraries-svr4-read".
4376         (remote_augmented_libraries_svr4_read): New function.
4377         (init_remote_ops): Initialize
4378         remote_ops.to_augmented_libraries_svr4_read.
4379
4380 2013-06-04  Gary Benson  <gbenson@redhat.com>
4381
4382         * NEWS: Update.
4383
4384 2013-06-04  Gary Benson  <gbenson@redhat.com>
4385
4386         * objfiles.h (inhibit_section_map_updates): New function
4387         declaration.
4388         (resume_section_map_updates): Likewise.
4389         (resume_section_map_updates_cleanup): Likewise.
4390         * objfiles.c (objfile_pspace_info): Removed field
4391         "objfiles_changed_p".  New fields "new_objfiles_available",
4392         "section_map_dirty" and "inhibit_updates".
4393         (allocate_objfile): Set new_objfiles_available.
4394         (free_objfile): Set section_map_dirty.
4395         (objfile_relocate1): Likewise.
4396         (in_plt_section): Likewise.
4397         (find_pc_section): Update the conditions under which the
4398         section map will be updated.
4399         (inhibit_section_map_updates): New function.
4400         (resume_section_map_updates): Likewise.
4401         (resume_section_map_updates_cleanup): Likewise.
4402
4403 2013-06-04  Gary Benson  <gbenson@redhat.com>
4404
4405         * probe.h (get_probe_argument_count): New declaration.
4406         (evaluate_probe_argument): Likewise.
4407         * probe.c (get_probe_argument_count): New function.
4408         (evaluate_probe_argument): Likewise.
4409         (probe_safe_evaluate_at_pc): Use the above new functions.
4410
4411 2013-06-04  Alan Modra  <amodra@gmail.com>
4412
4413         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4414         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4415         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
4416         target mem reads on optional insns.
4417         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4418         ppc_insns_match_pattern calls.
4419         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4420         Add match for power7 thread safety insns, and new order of
4421         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
4422         invocation in comment, and update rest of comment.
4423         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4424         PPC64_STANDARD_LINKAGE3_LEN): Delete.
4425         (ppc64_standard_linkage2_target): Update insn offsets.
4426         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
4427         stubs first.  Update calls.
4428
4429 2013-06-04  Yao Qi  <yao@codesourcery.com>
4430
4431         * solib.c (solib_find): Don't need dir separator if path has
4432         drive spec.
4433
4434 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
4435
4436         Revert (indirectly causes a SIGSEGV):
4437         * machoread.c (macho_symfile_read): Assign first cleanup to
4438         'back_to'.
4439
4440 2013-06-03  Yao Qi  <yao@codesourcery.com>
4441
4442         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4443         mi-parse.c.  Make them static.
4444         (mi_all_values): Likewise.
4445         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
4446         mi_parse_print_values.  Make it external.
4447         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4448         Remove the declarations.
4449         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4450         * mi/mi-parse.h (mi_parse_print_values): Declare.
4451         * mi/mi-cmd-stack.c: Include mi-parse.h.
4452         (parse_print_values): Remove
4453         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4454         of parse_print_values.
4455         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4456
4457 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
4458             Yao Qi  <yao@codesourcery.com>
4459
4460         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4461         (encode_actions): Move code to ...
4462         (all_tracepoint_actions_and_cleanup): ... here.  New.
4463         (trace_dump_command): Likewise.
4464
4465 2013-05-30  Tom Tromey  <tromey@redhat.com>
4466
4467         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4468
4469 2013-05-30  Tom Tromey  <tromey@redhat.com>
4470
4471         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4472         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
4473         'old_chain' argument.  Add 'parser_result' argument.
4474         (gdb_xml_create_parser_and_cleanup): Remove old version.
4475         (gdb_xml_parse_quick): Update.
4476         (xml_process_xincludes): Update.
4477         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4478         declare.
4479
4480 2013-05-30  Tom Tromey  <tromey@redhat.com>
4481
4482         * probe.c (collect_probes): Check arguments for NULL before
4483         calling compile_rx_or_error.
4484         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4485         Remove NULL return.
4486
4487 2013-05-30  Tom Tromey  <tromey@redhat.com>
4488
4489         * infrun.c (adjust_pc_after_break): Introduce an outer null
4490         cleanup.
4491
4492 2013-05-30  Tom Tromey  <tromey@redhat.com>
4493
4494         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4495
4496 2013-05-30  Tom Tromey  <tromey@redhat.com>
4497
4498         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4499         for 'old_chain'.  Do not check 'head' before processing
4500         cleanups.
4501
4502 2013-05-30  Tom Tromey  <tromey@redhat.com>
4503
4504         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4505         "cleanup_tuple".
4506
4507 2013-05-30  Tom Tromey  <tromey@redhat.com>
4508
4509         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4510         inner scope.  Unconditionally call do_cleanups.
4511
4512 2013-05-30  Tom Tromey  <tromey@redhat.com>
4513
4514         * source.c (find_and_open_source): Call do_cleanups.
4515
4516 2013-05-30  Tom Tromey  <tromey@redhat.com>
4517
4518         * linux-thread-db.c (thread_db_load_search): Unconditionally
4519         call do_cleanups.
4520
4521 2013-05-30  Tom Tromey  <tromey@redhat.com>
4522
4523         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4524         for 'cleanup'; instead use a later one.
4525
4526 2013-05-30  Tom Tromey  <tromey@redhat.com>
4527
4528         * python/py-breakpoint.c (bppy_get_commands): Use
4529         explicit, unconditional return.
4530         * python/py-frame.c (frapy_read_var): Likewise.
4531         * python/python.c (gdbpy_decode_line): Likewise.
4532
4533 2013-05-30  Tom Tromey  <tromey@redhat.com>
4534
4535         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4536         do_cleanups on all return paths.
4537
4538 2013-05-30  Tom Tromey  <tromey@redhat.com>
4539
4540         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4541
4542 2013-05-30  Tom Tromey  <tromey@redhat.com>
4543
4544         * stabsread.c (read_struct_type): Call do_cleanups along
4545         all return paths.
4546
4547 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
4548
4549         * mips-linux-tdep.c: Adjust formatting throughout.
4550
4551 2013-05-30  Tom Tromey  <tromey@redhat.com>
4552
4553         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4554         along all return paths.
4555
4556 2013-05-30  Tom Tromey  <tromey@redhat.com>
4557
4558         * symfile.c (find_separate_debug_file): Call do_cleanups
4559         along all return paths.
4560
4561 2013-05-30  Tom Tromey  <tromey@redhat.com>
4562
4563         * symtab.c (search_symbols): Introduce a null cleanup for
4564         'retval_chain'.
4565
4566 2013-05-30  Tom Tromey  <tromey@redhat.com>
4567
4568         * python/py-value.c (valpy_binop): Call do_cleanups before
4569         exiting loop.
4570
4571 2013-05-30  Tom Tromey  <tromey@redhat.com>
4572
4573         * python/py-prettyprint.c (print_children): Remove extra
4574         do_cleanups call.
4575
4576 2013-05-30  Tom Tromey  <tromey@redhat.com>
4577
4578         * python/py-frame.c (frapy_read_var): Call do_cleanups along
4579         all return paths.
4580
4581 2013-05-30  Tom Tromey  <tromey@redhat.com>
4582
4583         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4584         along all return paths.
4585
4586 2013-05-30  Tom Tromey  <tromey@redhat.com>
4587
4588         * cli/cli-logging.c (set_logging_redirect): Unconditionally
4589         call do_cleanups.
4590
4591 2013-05-30  Tom Tromey  <tromey@redhat.com>
4592
4593         * varobj.c (c_value_of_root): Call do_cleanups along all
4594         return paths.
4595
4596 2013-05-30  Tom Tromey  <tromey@redhat.com>
4597
4598         * tracepoint.c (trace_dump_command): Unconditionally call
4599         do_cleanups.
4600
4601 2013-05-30  Tom Tromey  <tromey@redhat.com>
4602
4603         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4604         do_cleanups earlier.
4605
4606 2013-05-30  Tom Tromey  <tromey@redhat.com>
4607
4608         * machoread.c (macho_symfile_read): Assign first cleanup to
4609         'back_to'.
4610
4611 2013-05-30  Tom Tromey  <tromey@redhat.com>
4612
4613         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4614
4615 2013-05-30  Tom Tromey  <tromey@redhat.com>
4616
4617         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4618
4619 2013-05-30  Tom Tromey  <tromey@redhat.com>
4620
4621         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4622         call discard_cleanups.
4623         (inf_ptrace_attach): Likewise.
4624
4625 2013-05-30  Tom Tromey  <tromey@redhat.com>
4626
4627         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4628         return paths.
4629         (mips_initialize): Likewise.
4630         (common_open): Call do_cleanups.
4631
4632 2013-05-30  Tom Tromey  <tromey@redhat.com>
4633
4634         * utils.c (internal_vproblem): Call do_cleanups.
4635
4636 2013-05-30  Tom Tromey  <tromey@redhat.com>
4637
4638         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4639
4640 2013-05-30  Tom Tromey  <tromey@redhat.com>
4641
4642         * cli/cli-script.c (setup_user_args): Don't return after error.
4643
4644 2013-05-30  Tom Tromey  <tromey@redhat.com>
4645
4646         * somread.c (som_symtab_read): Call do_cleanups.
4647
4648 2013-05-30  Tom Tromey  <tromey@redhat.com>
4649
4650         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4651
4652 2013-05-30  Tom Tromey  <tromey@redhat.com>
4653
4654         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4655         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4656         * interps.c (interpreter_exec_cmd): Call do_cleanups.
4657         * source.c (show_substitute_path_command): Call do_cleanups.
4658         (unset_substitute_path_command, set_substitute_path_command):
4659         Likewise.
4660         * symfile.c (load_command): Call do_cleanups.
4661
4662 2013-05-30  Tom Tromey  <tromey@redhat.com>
4663
4664         * contrib/cleanup_check.py: New file.
4665         * contrib/gcc-with-excheck: Add option parsing.
4666
4667 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
4668
4669         * windows-nat.c (windows_delete_thread): Add missing space
4670         in cast expression.
4671
4672 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4673
4674         * inferior.c (top level): Include tilde.h.
4675         (add_inferior_command): Call tilde_expand on the value of 'exec'
4676         argument.
4677
4678 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
4679             Yao Qi  <yao@codesourcery.com>
4680
4681         * tracepoint.c (encode_actions_1): Remove parameter 't'.
4682         Caller update.
4683         (encode_actions): Likewise.
4684         * remote.c (remote_download_tracepoint): Caller update.
4685         * tracepoint.h (encode_actions): Update declaration.
4686
4687 2013-05-30  Pedro Alves  <palves@redhat.com>
4688
4689         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4690         pointer.
4691
4692 2013-05-30  Yao Qi  <yao@codesourcery.com>
4693
4694         * remote.c (remote_check_symbols): Remove unused parameter
4695         'objfile'.
4696         Declaration update.
4697         (remote_start_remote, remote_new_objfile): Caller update.
4698
4699 2013-05-30  Yao Qi  <yao@codesourcery.com>
4700
4701         * mi/mi-cmds.c (mi_cmds): Define MI command
4702         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4703         DEF_MI_CMD_CLI.
4704
4705 2013-05-29  Pedro Alves  <palves@redhat.com>
4706
4707         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4708         (remote_insert_watchpoint, remote_remove_watchpoint)
4709         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4710         (remote_verify_memory, compare_sections_command)
4711         (remote_search_memory): Set the general process/thread on the
4712         remote side.
4713
4714 2013-05-29  Pedro Alves  <palves@redhat.com>
4715
4716         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4717         (_initialize_aarch64_tdep): Don't call
4718         initialize_tdesc_aarch64_without_fpu.
4719         * features/Makefile (WHICH): Remove reference to
4720         aarch64-without-fpu.
4721         * features/aarch64-without-fpu.c: Delete file.
4722         * regformats/aarch64-without-fpu.dat: Delete file.
4723
4724 2013-05-28  Yao Qi  <yao@codesourcery.com>
4725
4726         * tracepoint.c (stringify_collection_list): Remove parameter
4727         'string'.
4728         (encode_actions): Caller update.  Remove local variables.
4729
4730 2013-05-24  Yao Qi  <yao@codesourcery.com>
4731
4732         * tracepoint.c (TFILE_PID): Remove.
4733         (tfile_open): Don't add thread and inferior.
4734         (tfile_close): Don't set 'inferior_ptid'.  Don't call
4735         exit_inferior_silent.
4736         (tfile_thread_alive): Remove.
4737         (init_tfile_ops): Don't set field 'to_thread_alive' of
4738         tfile_ops.
4739
4740 2013-05-23  Doug Evans  <dje@google.com>
4741
4742         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4743
4744 2013-05-23  Pedro Alves  <palves@redhat.com>
4745
4746         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4747         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4748         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4749         Only define if HAVE_SOCKETS is defined.
4750         * configure.ac: Check for sys/socket.h.
4751         * config.in, configure: Regenerate.
4752
4753 2013-05-23  Pedro Alves  <palves@redhat.com>
4754
4755         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4756         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4757         printing uint32_t variables.
4758
4759 2013-05-23  Pedro Alves  <palves@redhat.com>
4760
4761         * NEWS: Mention GDBserver range stepping support.
4762
4763 2013-05-23  Yao Qi  <yao@codesourcery.com>
4764             Pedro Alves  <palves@redhat.com>
4765
4766         * gdbthread.h (struct thread_control_state) <may_range_step>: New
4767         field.
4768         * infcmd.c (step_once, until_next_command): Enable range stepping.
4769         * infrun.c (displaced_step_prepare): Disable range stepping.
4770         (resume): Disable range stepping if stepping over a breakpoint or
4771         we have software watchpoints.  If range stepping is enabled,
4772         assert the thread is in the stepping range.
4773         (clear_proceed_status_thread): Clear may_range_step.
4774         (handle_inferior_event): Disable range stepping as soon as we know
4775         the thread that hit the event.  Re-enable it whenever we're going
4776         to step with a step range.
4777         * remote.c (struct vCont_action_support) <r>: New field.
4778         (use_range_stepping): New global.
4779         (remote_vcont_probe): Handle 'r' action.
4780         (append_resumption): Append an 'r' action if the thread may range
4781         step.
4782         (show_range_stepping): New function.
4783         (set_range_stepping): New function.
4784         (_initialize_remote): Call add_setshow_boolean_cmd to register the
4785         'set range-stepping' and 'show range-stepping' commands.
4786         * NEWS: Mention range stepping, the new vCont;r action, and the
4787         new "set/show range-stepping" commands.
4788
4789 2013-05-23  Yao Qi  <yao@codesourcery.com>
4790             Pedro Alves  <palves@redhat.com>
4791
4792         * remote.c (struct vCont_action_support): New struct.
4793         (struct remote_state) <support_vCont_t>: Remove field.
4794         <vCont_actions_support>: New field.
4795         (remote_vcont_probe, remote_stop_ns): Update.
4796
4797 2013-05-23  Yao Qi  <yao@codesourcery.com>
4798             Pedro Alves  <palves@redhat.com>
4799
4800         * gdbthread.h (pc_in_thread_step_range): New declaration.
4801         * thread.c (pc_in_thread_step_range): New function.
4802         * infrun.c (handle_inferior_event): Use it.
4803
4804 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
4805
4806         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4807         of sprintf.
4808
4809 2013-05-22  Keith Seitz  <keiths@redhat.com>
4810
4811         * ada-lang.c (is_known_support_routine): Add explicit free of
4812         'func_name' from find_frame_funname.
4813         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4814         for func_name from find_frame_funname.
4815         * python/py-frame.c (frapy_name): Add explicit free of
4816         'name' from find_frame_funname.
4817         * stack.c (find_frame_funname): Add comment explaining that
4818         funcp must be freed by the caller.
4819         Return copy of symbol names instead of pointers.
4820         (print_frame): Add a cleanup for 'funname' from
4821         find_frame_funname.
4822         * stack.h (find_frame_funname): Remove "const" from
4823         'funname' parameter.
4824
4825 2013-05-22  Tom Tromey  <tromey@redhat.com>
4826
4827         PR c++/15401:
4828         * c-valprint.c (c_value_print): Use value_addr for
4829         references.  Convert back to reference type with value_ref.
4830
4831 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
4832
4833         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4834         unloaded DLL, it will be done by handle_solib_event.  See
4835         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4836         details.
4837
4838 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
4839
4840         * ui-out.c: Create typedef ui_out_level_p and define vector
4841         operations for that type.
4842         (struct ui_out): Use a vector instead of an array.
4843         (current_level): Return level from a vector.
4844         (push_level): Create a level in a vector.
4845         (pop_level): Delete a level in a vector.
4846         (ui_out_new): Create initial level zero level, and store in a
4847         vector.
4848         (ui_out_destroy): Add vector cleanup.
4849
4850 2013-05-22  Pedro Alves  <palves@redhat.com>
4851
4852         * python/python-internal.h (gdb_Py_DECREF): Tag with
4853         "ARI: editCase function".
4854
4855 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
4856
4857         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4858
4859 2013-05-21  Pedro Alves  <palves@redhat.com>
4860
4861         * python/py-prettyprint.c (apply_val_pretty_printer): Check
4862         whether PRINTER is NULL before installing a Py_DECREF cleanup.
4863         * python/py-utils.c (py_decref): Don't check for NULL before
4864         calling Py_DECREF.
4865
4866 2013-05-21  Pedro Alves  <palves@redhat.com>
4867
4868         * python/py-utils.c (py_decref): Remove extra braces.
4869         (gdb_pymodule_addobject): Remove extra braces.
4870         * python-internal.h (gdb_Py_DECREF): New static inline function.
4871         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4872
4873 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4874
4875         * breakpoints.c (detach_breakpoints): Do not
4876         detach breakpoints locations with loc_type bp_loc_other.
4877
4878 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4879
4880         Workaround Python 2.6.
4881         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4882         a block.
4883
4884 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4885
4886         Code cleanup: constification.
4887         * solib.c (solib_ops): Make return type and ops variable type const.
4888         (set_solib_ops): Make the new_ops parameter and ops variable const.
4889         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4890         (solib_add, solib_keep_data_in_core, clear_solib)
4891         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4892         (reload_shared_libraries, solib_global_lookup): Make the ops variable
4893         const.
4894         * solib.h (set_solib_ops): Make the new_ops parameter const.
4895
4896 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
4897
4898         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4899         variable.
4900         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4901         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4902         (SYSTEM_GDBINIT_FILES): New variables.
4903         (all): Add stamp-system-gdbinit.
4904         (stamp-system-gdbinit): New rule.
4905         (clean-system-gdbinit, install-system-gdbinit)
4906         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
4907         (install-only): Add dependency on install-system-gdbinit.
4908         (uninstall): Add dependency on uninstall-system-gdbinit.
4909         (clean): Add dependency on clean-system-gdbinit.
4910         * system-gdbinit/elinos.py: New file.
4911         * system-gdbinit/wrs-linux.py: New file.
4912
4913 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
4914
4915         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4916
4917 2013-05-21  Hui Zhu  <hui@codesourcery.com>
4918
4919         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4920         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4921         * mi/mi-cmd-break.c (ctype.h): New include.
4922         (gdb_obstack.h): New include.
4923         (mi_argv_to_format, mi_cmd_break_insert_1): New.
4924         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4925         (mi_cmd_dprintf_insert): New.
4926         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4927         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4928
4929 2013-05-20  Tom Tromey  <tromey@redhat.com>
4930
4931         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4932
4933 2013-05-20  Tom Tromey  <tromey@redhat.com>
4934
4935         * python/py-value.c (valpy_get_dynamic_type): Simplify
4936         dynamic_type assignment.  Use Py_XINCREF.
4937
4938 2013-05-20  Tom Tromey  <tromey@redhat.com>
4939
4940         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4941
4942 2013-05-20  Tom Tromey  <tromey@redhat.com>
4943
4944         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4945         (gdbpy_selected_frame): Move object-construction code
4946         out of TRY_CATCH.
4947
4948 2013-05-20  Tom Tromey  <tromey@redhat.com>
4949
4950         * python/py-arch.c (gdbpy_initialize_arch): Use
4951         gdb_pymodule_addobject.
4952         * python/py-block.c (gdbpy_initialize_blocks): Use
4953         gdb_pymodule_addobject.
4954         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4955         gdb_pymodule_addobject.
4956         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4957         gdb_pymodule_addobject.
4958         * python/py-event.c (gdbpy_initialize_event_generic): Use
4959         gdb_pymodule_addobject.
4960         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4961         gdb_pymodule_addobject.
4962         * python/py-evts.c (add_new_registry): Use
4963         gdb_pymodule_addobject.
4964         (gdbpy_initialize_py_events): Likewise.
4965         * python/py-finishbreakpoint.c
4966         (gdbpy_initialize_finishbreakpoints): Use
4967         gdb_pymodule_addobject.
4968         * python/py-frame.c (gdbpy_initialize_frames): Use
4969         gdb_pymodule_addobject.
4970         * python/py-function.c (gdbpy_initialize_functions): Use
4971         gdb_pymodule_addobject.
4972         * python/py-inferior.c (gdbpy_initialize_inferior): Use
4973         gdb_pymodule_addobject.
4974         * python/py-infthread.c (gdbpy_initialize_thread): Use
4975         gdb_pymodule_addobject.
4976         * python/py-objfile.c (gdbpy_initialize_objfile): Use
4977         gdb_pymodule_addobject.
4978         * python/py-param.c (gdbpy_initialize_parameters): Use
4979         gdb_pymodule_addobject.
4980         * python/py-progspace.c (gdbpy_initialize_pspace): Use
4981         gdb_pymodule_addobject.
4982         * python/py-symbol.c (gdbpy_initialize_symbols): Use
4983         gdb_pymodule_addobject.
4984         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4985         gdb_pymodule_addobject.
4986         * python/py-type.c (gdbpy_initialize_types): Use
4987         gdb_pymodule_addobject.
4988         * python/py-utils.c (gdb_pymodule_addobject): New function.
4989         * python/py-value.c (gdbpy_initialize_values): Use
4990         gdb_pymodule_addobject.
4991         * python/python-internal.h (gdb_pymodule_addobject): Declare.
4992         * python/python.c (_initialize_python): Use
4993         gdb_pymodule_addobject.
4994
4995 2013-05-20  Tom Tromey  <tromey@redhat.com>
4996
4997         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4998         * python/py-param.c (get_set_value, get_show_value): Use
4999         explicit decrefs.
5000         * python/python.c (start_type_printers, apply_type_printers):
5001         Use explicit decrefs.
5002
5003 2013-05-20  Tom Tromey  <tromey@redhat.com>
5004
5005         * python/py-evts.c (gdbpy_initialize_py_events): Don't
5006         incref the module.
5007
5008 2013-05-20  Tom Tromey  <tromey@redhat.com>
5009
5010         * python/python.c (gdbpy_run_events): Decref the result
5011         of PyObject_CallObject.
5012
5013 2013-05-20  Tom Tromey  <tromey@redhat.com>
5014
5015         * python/py-symtab.c (set_sal): Use
5016         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
5017         (symtab_and_line_to_sal_object): Update.
5018
5019 2013-05-20  Tom Tromey  <tromey@redhat.com>
5020
5021         * python/py-param.c (compute_enum_values): Decref 'item'.
5022
5023 2013-05-20  Tom Tromey  <tromey@redhat.com>
5024
5025         * mi/mi-main.c: Include python-internal.h.
5026         (mi_cmd_list_features): Check gdb_python_initialized.
5027         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5028         (python_inferior_exit, python_new_objfile, add_thread_object)
5029         (delete_thread_object, py_free_inferior): Check
5030         gdb_python_initialized.
5031         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5032         gdb_python_initialized.
5033         * python/py-type.c (save_objfile_types): Check
5034         gdb_python_initialized.
5035         * python/python-internal.h (gdb_python_initialized): Declare.
5036         * python/python.c (ensure_python_env): Throw exception if
5037         Python not initialized.
5038         (before_prompt_hook, source_python_script_for_objfile)
5039         (start_type_printers, apply_type_printers,
5040         free_type_printers): Check gdb_python_initialized.
5041         * varobj.c (varobj_get_display_hint)
5042         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5043         (install_new_value_visualizer, varobj_set_visualizer)
5044         (value_get_print_value): Check gdb_python_initialized.
5045
5046 2013-05-20  Tom Tromey  <tromey@redhat.com>
5047
5048         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5049         Check errors.
5050         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5051         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5052         Check errors.
5053         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5054         Check errors.
5055         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5056         Check errors.
5057         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5058         Check errors.
5059         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5060         init function to return 'int'.
5061         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5062         Return 'int'.  Check errors.
5063         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5064         Check errors.
5065         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5066         Return 'int'.  Check errors.
5067         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5068         Check errors.
5069         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5070         Check errors.
5071         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5072         Check errors.
5073         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5074         Check errors.
5075         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5076         Check errors.
5077         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5078         Check errors.
5079         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5080         Check errors.
5081         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5082         Check errors.
5083         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5084         Check errors.
5085         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5086         Check errors.
5087         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5088         Check errors.
5089         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5090         Check errors.
5091         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5092         Check errors.
5093         * python/python-internal.h (gdbpy_initialize_auto_load,
5094         gdbpy_initialize_values, gdbpy_initialize_frames,
5095         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5096         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5097         gdbpy_initialize_blocks, gdbpy_initialize_types,
5098         gdbpy_initialize_functions, gdbpy_initialize_pspace,
5099         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5100         gdbpy_initialize_finishbreakpoints,
5101         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5102         gdbpy_initialize_thread, gdbpy_initialize_inferior,
5103         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5104         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5105         gdbpy_initialize_signal_event,
5106         gdbpy_initialize_breakpoint_event,
5107         gdbpy_initialize_continue_event,
5108         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5109         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5110         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5111         * python/python.c (gdb_python_initialized): New global.
5112         (gdbpy_initialize_events): Return 'int'.  Check errors.
5113         (_initialize_python): Check errors.  Set
5114         gdb_python_initialized.
5115
5116 2013-05-20  Tom Tromey  <tromey@redhat.com>
5117
5118         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5119         Decref the reslut of PyObject_CallMethod.
5120
5121 2013-05-20  Tom Tromey  <tromey@redhat.com>
5122
5123         * python/py-event.c (gdbpy_initialize_event_generic): Return
5124         early if PyType_Ready fails.
5125
5126 2013-05-20  Tom Tromey  <tromey@redhat.com>
5127
5128         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5129         as 'default' in the switch.
5130
5131 2013-05-20  Tom Tromey  <tromey@redhat.com>
5132
5133         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
5134         get_addr_from_python calls out of TRY_CATCH.
5135         (infpy_write_memory, infpy_search_memory): Likewise.
5136         * python/py-utils.c (get_addr_from_python): Return negative
5137         value on error.  Use TRY_CATCH.
5138         * python/python-internal.h (get_addr_from_python): Use
5139         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5140
5141 2013-05-20  Tom Tromey  <tromey@redhat.com>
5142
5143         * python/py-event.c (evpy_emit_event): Decref the
5144         result of PyObject_CallFunctionObjArgs.
5145
5146 2013-05-20  Tom Tromey  <tromey@redhat.com>
5147
5148         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5149         Correctly decref.
5150
5151 2013-05-20  Tom Tromey  <tromey@redhat.com>
5152
5153         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5154
5155 2013-05-20  Tom Tromey  <tromey@redhat.com>
5156
5157         * python/py-event.h (gdbpy_initialize_event_generic): Use
5158         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5159         * python/py-evts.c (add_new_registry): Use
5160         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5161         * python/python-internal.h
5162         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5163
5164 2013-05-20  Tom Tromey  <tromey@redhat.com>
5165
5166         * python/py-arch.c (archpy_disassemble): Update.
5167         * python/py-type.c (typy_get_composite, typy_lookup_typename)
5168         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5169         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5170         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5171         macro.
5172         (GDB_PY_HANDLE_EXCEPTION): Update.
5173         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
5174
5175 2013-05-20  Tom Tromey  <tromey@redhat.com>
5176
5177         * python/python-internal.h (events_object_type): Remove.
5178
5179 2013-05-20  Tom Tromey  <tromey@redhat.com>
5180
5181         * python/py-event.h (evpy_emit_event): Use
5182         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5183         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5184         New macro.
5185
5186 2013-05-20  Tom Tromey  <tromey@redhat.com>
5187
5188         * py-evtregistry.c (create_event_object): Decref
5189         eventregistry_object if PyList_New fails.
5190
5191 2013-05-20  Tom Tromey  <tromey@redhat.com>
5192
5193         * py-cmd.c (gdbpy_string_to_argv): Check result of
5194         PyList_New.
5195
5196 2013-05-20  Tom Tromey  <tromey@redhat.com>
5197
5198         * python/python.c (before_prompt_hook): Add cleanup to
5199         decref 'hook'.
5200
5201 2013-05-20  Tom Tromey  <tromey@redhat.com>
5202
5203         * python/py-function.c (fnpy_init): Decref result of
5204         PyObject_GetAttrString.
5205
5206 2013-05-20  Tom Tromey  <tromey@redhat.com>
5207
5208         * python/py-threadevent.c (get_event_thread): Use
5209         CPYCHECKER_RETURNS_BORROWED_REF.
5210         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5211         New define.
5212         (pspace_to_pspace_object, objfile_to_objfile_object)
5213         (find_thread_object): Use it.
5214
5215 2013-05-20  Tom Tromey  <tromey@redhat.com>
5216
5217         * python/py-arch.c (arch_object_type): Use
5218         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5219         * python/py-block.c (block_syms_iterator_object_type):
5220         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5221         * python/py-bpevent.c (breakpoint_event_object_type):
5222         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5223         * python/py-cmd.c (cmdpy_object_type): Use
5224         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5225         * python/py-continueevent.c (continue_event_object_type):
5226         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5227         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5228         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5229         * python/py-events.h (thread_event_object_type):
5230         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5231         * python/py-evtregistry.c (eventregistry_object_type): Use
5232         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5233         * python/py-exitedevent.c (exited_event_object_type):
5234         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5235         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5236         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5237         * python/py-function.c (fnpy_object_type): Use
5238         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5239         * python/py-inferior.c (inferior_object_type, membuf_object_type):
5240         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5241         * python/py-infthread.c (thread_object_type): Use
5242         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5243         * python/py-lazy-string.c (lazy_string_object_type):
5244         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5245         * python/py-newobjfileevent.c (new_objfile_event_object_type):
5246         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5247         * python/py-objfile.c (objfile_object_type): Use
5248         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5249         * python/py-param.c (parmpy_object_type):
5250         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5251         * python/py-progspace.c (pspace_object_type):
5252         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5253         * python/py-signalevent.c (signal_event_object_type):
5254         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5255         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5256         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5257         * python/py-type.c (type_object_type, field_object_type)
5258         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5259         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5260         define.
5261         (value_object_type, block_object_type, symbol_object_type)
5262         (event_object_type, stop_event_object_type, breakpoint_object_type)
5263         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5264
5265 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
5266
5267         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5268         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5269
5270 2013-05-20  Doug Evans  <dje@google.com>
5271
5272         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
5273         For Fission.
5274         * dwarf2read.c (struct dwarf2_per_cu_data): New member
5275         reading_dwo_directly.
5276         (struct signatured_type): New member dwo_unit.
5277         (struct die_reader_specs): New member comp_dir.
5278         (create_signatured_type_table_from_index): Use malloc for
5279         all_type_units instead of objfile's obstack.
5280         (create_all_type_units): Ditto.
5281         (fill_in_sig_entry_from_dwo_entry): New function.
5282         (add_type_unit): New function.
5283         (lookup_dwo_signatured_type): New function.
5284         (lookup_dwp_signatured_type): New function.
5285         (lookup_signatured_type): New arg cu.  All callers updated.
5286         (init_cu_die_reader): Initialize comp_dir.
5287         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
5288         Change assert of matching type signatures to call error on mismatch.
5289         (lookup_dwo_unit): Add assert.
5290         (init_tu_and_read_dwo_dies): New function.
5291         (init_cutu_and_read_dies): Call it.
5292         (build_type_unit_groups): Handle case of no type unit groups created.
5293         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5294         (lookup_dwo_cutu): Tweak complaint.
5295         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5296         (dwarf2_per_objfile_free): Free all_type_units.
5297
5298 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5299
5300         * windows-nat.c (handle_unload_dll): Add missing empty line.
5301
5302 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5303
5304         * dwarf2read.c (prototyped_function_p): New function.
5305         (read_subroutine_type): Use it.
5306
5307 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
5308
5309         * rs6000-aix-tdep.c: De-indent some example code provided
5310         as a comment.
5311
5312 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5313
5314         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5315         region is ok for a hardware watchpoint using the new ptrace interface
5316         on Power servers.
5317
5318 2013-05-17  Doug Evans  <dje@google.com>
5319
5320         * NEWS: Mention new maintenance commands check-symtabs, and
5321         expand-symtabs, and renamed check-psymtabs.
5322         * psymtab.c (maintenance_check_psymtabs): Renamed from
5323         maintenance_check_symtabs.  Only process already-expanded symbol
5324         tables.
5325         (_initialize_psymtab): Update.
5326         * symmisc.c (maintenance_check_symtabs): New function.
5327         (maintenance_expand_name_matcher): New function
5328         (maintenance_expand_file_matcher): New function
5329         (maintenance_expand_symtabs): New function.
5330         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5331         commands.
5332
5333 2013-05-17  Tom Tromey  <tromey@redhat.com>
5334
5335         * python/py-inferior.c (infpy_read_memory): Don't call
5336         PyErr_SetString if PyObject_New fails.
5337         * python/py-frame.c (frame_info_to_frame_object): Don't call
5338         PyErr_SetString if PyObject_New fails.
5339
5340 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
5341
5342         * acinclude.m4: Add check for dlopen in libdl.
5343         * configure.ac: Ditto.
5344         * configure: Regenerate.
5345
5346 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
5347
5348         * frame.c (frame_stash): Convert to htab.
5349         (frame_addr_hash): New function.
5350         (frame_addr_hash_eq): New function.
5351         (frame_stash_create): Convert function to create
5352         a hash table.
5353         (frame_stash_add): Convert function to add an entry to a hash
5354         table.
5355         (frame_stash_find): Convert function to search the hash table.
5356         (frame_stash_invalidate): Convert function to empty the hash
5357         table.
5358         (get_frame_id): Only add to stash if a frame_id is created.
5359         (_initialize_frame): Call frame_stash_create.
5360
5361 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
5362
5363         * configure.ac: Ensure MIG is available when building for GNU Hurd
5364         hosts.
5365         * configure: Regenerate.
5366
5367 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5368
5369         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5370
5371 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
5372
5373         * ada-lang.c (ada_make_symbol_completion_list): Make sure
5374         all cleanups are done before returning from this function.
5375
5376 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5377
5378         * utils.h: #include "exceptions.h".
5379         (enum errors): Remove partial declaration.
5380
5381 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
5382
5383         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5384         * gdbarch.h, gdbarch.c: Regenerate.
5385         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5386         handling.
5387
5388         * rs6000-aix-tdep.h: New file.
5389         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5390         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5391         "xml-utils.h".
5392         (struct field_info, struct ld_info_desc): New types.
5393         (ld_info32_desc, ld_info64_desc): New static constants.
5394         (struct ld_info): New type.
5395         (rs6000_aix_extract_ld_info): New function.
5396         (rs6000_aix_shared_library_to_xml): Likewise.
5397         (rs6000_aix_ld_info_to_xml): Likewise.
5398         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5399         (rs6000_aix_init_osabi): Add call to
5400         set_gdbarch_core_xfer_shared_libraries_aix.
5401         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5402         Remove "xml-utils.h" include.
5403         (LdInfo): Delete typedef.
5404         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5405         Delete macros.
5406         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5407         Adjust code accordingly.
5408         (rs6000_core_ldinfo): Delete, folded into
5409         rs6000_aix_core_xfer_shared_libraries_aix.
5410         (rs6000_xfer_shared_library): Delete.
5411         (rs6000_xfer_shared_libraries): Reimplement.
5412
5413 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
5414
5415         * record.c (record_goto_cmdlist): New.
5416         (cmd_record_goto): Split into this ...
5417         (cmd_record_goto_begin): ... this
5418         (cmd_record_goto_end): ... and this.
5419         (_initialize_record): Change "record goto" to prefix command.
5420         Add commands for "record goto begin" and "record goto end".
5421         Add an alias for "record goto start" to "record goto begin".
5422
5423 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5424
5425         * linespec.c (convert_linespec_to_sals): New comment for
5426         SOURCE_FILENAME assignment.
5427
5428 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5429
5430         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5431         internal_warning.
5432
5433 2013-05-14  Tom Tromey  <tromey@redhat.com>
5434
5435         * eval.c (parse_and_eval_long): Make 'exp' const.
5436         * value.h (parse_and_eval_long): Update.
5437
5438 2013-05-14  Tom Tromey  <tromey@redhat.com>
5439
5440         * ui-file.c (gdb_fopen): Make arguments const.
5441         * ui-file.h (gdb_fopen): Make arguments const.
5442
5443 2013-05-14  Tom Tromey  <tromey@redhat.com>
5444
5445         * remote.c (remote_set_trace_notes): Make arguments const.
5446         * target.c (update_current_target): Update cast.
5447         * target.h (to_set_trace_notes): Make arguments const.
5448
5449 2013-05-14  Tom Tromey  <tromey@redhat.com>
5450
5451         * go32-nat.c (go32_terminal_info): Make 'args' const.
5452         * inferior.h (child_terminal_info): Update.
5453         * inflow.c (child_terminal_info): Make 'args' const.
5454         * target.c (default_terminal_info): Make 'args' const.
5455         (debug_to_terminal_save_ours): Likewise.
5456         * target.h (struct target_ops) <to_terminal_info>: Make argument
5457         const.
5458
5459 2013-05-13  Tom Tromey  <tromey@redhat.com>
5460
5461         * gcore.c (create_gcore_bfd): Make 'filename' const.
5462         * gcore.h (create_gcore_bfd): Make 'filename' const.
5463         * record-full.c (record_full_save): Make 'recfilename' const.
5464         * target.c (target_save_record): Make 'filename' const.
5465         * target.h (struct target_ops) <to_save_record>: Make 'filename'
5466         const.
5467         (target_save_record): Likewise.
5468
5469 2013-05-13  Tom Tromey  <tromey@redhat.com>
5470
5471         PR gdb/15338:
5472         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5473         ranges section has been read.
5474
5475 2013-05-13  Tom Tromey  <tromey@redhat.com>
5476
5477         PR exp/15364:
5478         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5479         STRUCTOP_PTR>: Return a not_lval value for
5480         EVAL_AVOID_SIDE_EFFECTS.
5481         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5482         for EVAL_AVOID_SIDE_EFFECTS.
5483
5484 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
5485
5486         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5487         floating point registers to register type before storing
5488         value.
5489         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5490         Likewise.
5491
5492 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5493             Tom Tromey  <tromey@redhat.com>
5494
5495         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5496         New functions.
5497         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5498         Declare.
5499         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5500         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5501         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5502         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5503
5504 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
5505             Tom Tromey  <tromey@redhat.com>
5506
5507         PR build/15414:
5508         * configure: Rebuild.
5509         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5510         with -Wno-format.
5511
5512 2013-05-10  Pedro Alves  <palves@redhat.com>
5513
5514         * remote.c (_initialize_remote): Fix spelling of
5515         qXfer:traceframe-info:read packet in packet config command.
5516
5517 2013-05-10  David Taylor  <dtaylor@emc.com>
5518
5519         PR remote/15455
5520
5521         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5522         "QTro" at start of packet.
5523
5524 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5525
5526         * solib-aix.c (solib_aix_relocate_section_addresses):
5527         For the .bss section action, apply the same offset as
5528         the .data section.
5529
5530 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5531
5532         * solib-aix.c (solib_aix_relocate_section_addresses):
5533         Remove FIXME comment.
5534
5535 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
5536
5537         PR tdep/15420:
5538         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5539         New functions, directly copied from sparc-sol-thread.c.
5540         * sparc-sol-thread.c: Delete.
5541         * configure.ac: Remove code handling sparc-solaris-thread.c.
5542         * configure: Regenerate.
5543
5544 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
5545
5546         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5547         filter logic.
5548         (backtrace_command): Add "no-filters" option parsing.
5549         (_initialize_stack): Alter help to reflect "no-filters" option.
5550         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5551         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5552         (py-frame.o): Add target
5553         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5554         filter files.
5555         * python/python.h: Add new frame filter constants, and flag enum.
5556         (apply_frame_filter): Add definition.
5557         * python/python.c (apply_frame_filter): New non-Python
5558         enabled function.
5559         * python/py-utils.c (py_xdecref): New function.
5560         (make_cleanup_py_xdecref): Ditto.
5561         * python/py-objfile.c: Declare frame_filters dictionary.
5562         (objfpy_dealloc): Add frame_filters dealloc.
5563         (objfpy_new): Initialize frame_filters attribute.
5564         (objfile_to_objfile_object): Ditto.
5565         (objfpy_get_frame_filters): New function.
5566         (objfpy_set_frame_filters): New function.
5567         * python/py-progspace.c: Declare frame_filters dictionary.
5568         (pspy_dealloc): Add frame_filters dealloc.
5569         (pspy_new): Initialize frame_filters attribute.
5570         (pspacee_to_pspace_object): Ditto.
5571         (pspy_get_frame_filters): New function.
5572         (pspy_set_frame_filters): New function.
5573         * python/py-framefilter.c: New file.
5574         * python/lib/gdb/command/frame_filters.py: New file.
5575         * python/lib/gdb/frames.py: New file.
5576         * python/lib/gdb/__init__.py: Initialize global frame_filters
5577         dictionary
5578         * python/lib/gdb/FrameDecorator.py: New file.
5579         * python/lib/gdb/FrameIterator.py: New file.
5580         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5581         * mi/mi-cmds.h: Declare.
5582         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5583         --no-frame-filter logic, and Python frame filter logic.
5584         (stack_enable_frame_filters): New function.
5585         (parse_no_frame_option): Ditto.
5586         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5587         filter logic.
5588         (mi_cmd_stack_list_locals): Ditto.
5589         (mi_cmd_stack_list_args): Ditto.
5590         (mi_cmd_stack_list_variables): Ditto.
5591         * NEWS: Add frame filter note.
5592
5593 2013-05-09  Doug Evans  <dje@google.com>
5594
5595         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5596         All callers updated.
5597         (syms_from_objfile): Ditto.  Make static.
5598         (symbol_file_add_with_addrs): Renamed from
5599         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
5600         num_offsets.  All callers updated.
5601         * symfile.h (syms_from_objfile): Delete.
5602
5603         * symfile.c (decrement_reading_symtab): Add assert.
5604         (increment_reading_symtab): Ditto.
5605
5606 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
5607
5608         * source.c (forward_search_command): Replace call to getc
5609         by call to fgetc.
5610         (reverse_search_command): Likewise.
5611
5612 2013-05-08  Doug Evans  <dje@google.com>
5613
5614         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5615         matching test.
5616
5617 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5618
5619         * sol-thread.c (info_cb): Factorize the code a little.
5620
5621 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5622
5623         * sol-thread.c (info_cb): Rework the output of the "maintenance
5624         info sol-threads" command a bit.
5625
5626 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5627
5628         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5629         Replace ti.ti_startfunc by ti.ti_pc.
5630
5631 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
5632
5633         * solib-aix.c (solib_aix_free_library_list): New function
5634         for the case where HAVE_LIBEXPAT is not defined.
5635
5636 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5637
5638         PR breakpoints/15413:
5639         * breakpoint.c (condition_completer): Simplify the code to
5640         disconsider multiple locations of breakpoints when completing the
5641         "condition" command.
5642
5643 2013-05-07  Pierre Muller  <muller@sourceware.org>
5644
5645         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5646         instead of <sys/wait.h>.
5647
5648 2013-05-07  Pierre Muller  <muller@sourceware.org>
5649
5650         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5651         trailing new line from warning message.
5652
5653 2013-05-07  Pierre Muller  <muller@sourceware.org>
5654
5655         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5656         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5657
5658 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5659
5660         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5661         error message (ARI fix).
5662
5663 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5664
5665         * features/library-list-aix.dtd: Replace library-list by
5666         library-list-aix.
5667         * rs6000-nat.c: Replace library-list by library-list-aix
5668         throughout.
5669         * solib-aix.c: Likewise.
5670
5671 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
5672
5673         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5674         Renames TARGET_OBJECT_AIX_LIBRARIES.
5675         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5676         TARGET_OBJECT_LIBRARIES_AIX throughout.
5677         * solib-aix.c: Likwise.
5678
5679 2013-05-07  Yao Qi  <yao@codesourcery.com>
5680
5681         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5682         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5683
5684 2013-05-07  Yao Qi  <yao@codesourcery.com>
5685
5686         * solib-dsbt.c (enable_break): Declare.
5687         (dsbt_current_sos): Remove call to enable_break2.
5688         (enable_break2): Rename to enable_break.  Set solib breakpoint
5689         on '_dl_debug_state'.
5690         (enable_break): Remove.
5691
5692 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
5693
5694         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5695         debug state prior to replicating existing hardware watchpoints or
5696         breakpoints.
5697
5698 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5699
5700         * gcore.c (gcore_create_callback): Ignore sections with
5701         separate_debug_objfile_backlink != NULL.
5702
5703 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
5704             Andrew Jenner  <andrew@codesourcery.com>
5705             Chung-Lin Tang  <cltang@codesourcery.com>
5706             Julian Brown  <julian@codesourcery.com>
5707
5708         Based on the nios2-elf port from Altera Corporation.
5709
5710         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5711         nios2-linux-tdep.o.
5712         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5713         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5714         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5715         * nios2-tdep.h: New.
5716         * nios2-tdep.c: New.
5717         * nios2-linux-tdep.c: New.
5718         * features/Makefile (WHICH): Add nios2-linux.
5719         (nios2-linux-expedite): Set.
5720         * features/nios2-cpu.xml: New.
5721         * features/nios2.xml: New.
5722         * features/nios2-linux.xml: New.
5723         * features/nios2.c: New (autogenerated).
5724         * features/nios2-linux.c: New (autogenerated).
5725         * regformats/nios2-linux.dat: New (autogenerated).
5726         * NEWS (Changes since GDB 7.6): Add new Nios II targets
5727         and commands.
5728
5729 2013-05-06  Doug Evans  <dje@google.com>
5730
5731         * symfile.c: Whitespace cleanup.
5732
5733         * solist.h (struct target_so_ops): New member clear_so.
5734         * solib-svr4.c (svr4_clear_so): New function.
5735         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5736         * solib.c (clear_so): Renamed from free_so_symbols.
5737         All callers updated.  Call target clear_so if it exists.
5738
5739 2013-05-06  Tom Tromey  <tromey@redhat.com>
5740
5741         * ada-lang.c (ada_value_primitive_packed_val): Don't
5742         call value_incref.
5743         * value.c (set_value_parent): Incref the new parent and decref
5744         the old parent.
5745         (value_copy, value_primitive_field): Use set_value_parent.
5746
5747 2013-05-06  Tom Tromey  <tromey@redhat.com>
5748
5749         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5750         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5751         if needed.
5752         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5753         * dwarf2read.c (write_constant_as_bytes)
5754         (dwarf2_fetch_constant_bytes): New functions.
5755
5756 2013-05-06  Tom Tromey  <tromey@redhat.com>
5757
5758         * dwarf2read.c (dwarf2_const_value_data): Remove unused
5759         parameters.
5760         (dwarf2_const_value_attr): Update.
5761
5762 2013-05-06  Tom Tromey  <tromey@redhat.com>
5763
5764         * somread.c (som_symfile_offsets): Add 'const' to addrs.
5765         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5766         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5767         Remove declaration.
5768
5769 2013-05-06  Tom Tromey  <tromey@redhat.com>
5770
5771         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5772         objfile's obstack.
5773
5774 2013-05-06  Doug Evans  <dje@google.com>
5775
5776         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5777         * stabsread.h (process_one_symbol): Update declaration.
5778         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5779         * elfread.c (elf_symfile_relocate_probe): Ditto.
5780         * psymtab.c (relocate_psymtabs): Ditto.
5781         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5782         (objfile_relocate): Ditto.
5783         * objfiles.h (objfile_relocate): Update declaration.
5784         * symfile.c (relative_addr_info_to_section_offsets): Constify
5785         addrs parameter.
5786         (default_symfile_offsets): Ditto.
5787         (syms_from_objfile_1): Constify offsets parameter.
5788         (syms_from_objfile): Ditto.
5789         (symbol_file_add_with_addrs_or_offsets): Ditto.
5790         (symfile_map_offsets_to_segments): Constify data parameter.
5791         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5792         delta parameters of member relocate.
5793         (struct sym_probe_fns): Constify new_offsets,
5794         delta parameters of member sym_relocate_probe.
5795         (struct sym_fns): Constify section_addr_info parameter of member
5796         sym_offsets.
5797         (relative_addr_info_to_section_offsets): Update declaration.
5798         (default_symfile_offsets): Ditto.
5799         (syms_from_objfile): Ditto.
5800         (symfile_map_offsets_to_segments): Ditto.
5801
5802         * symfile.c (syms_from_objfile_1): Use correct section count when
5803         objfile->sf == NULL.
5804
5805 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
5806
5807         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5808
5809 2013-05-06  Doug Evans  <dje@google.com>
5810
5811         * psympriv.h (struct partial_symtab): Augment comment for member
5812         section_offsets.
5813
5814 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5815
5816         Reimplement shared library support on ppc-aix...
5817         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5818         * features/library-list-aix.dtd: New file.
5819         * solib-aix.h, solib-aix.c: New file.
5820         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5821         (rs6000_find_toc_address_hook): Delete.
5822         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5823         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5824         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
5825         "xml-utils.h".
5826         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5827         (vmap_symtab, fixup_breakpoints): Delete.
5828         (rs6000_xfer_shared_libraries): New function.
5829         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5830         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5831         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5832         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5833         (rs6000_xfer_shared_library): New function.
5834         (find_toc_address): Delete.
5835         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5836         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5837         * xcoffread.c (record_minimal_symbol): Reloate symbol address
5838         before creating minimal symbol.  Adjust function description
5839         accordingly.
5840         (scan_xcoff_symtab): Replace call to
5841         prim_record_minimal_symbol_and_info by call to
5842         record_minimal_symbol.
5843         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5844         around default_symfile_offsets.
5845         * configure.tgt: Add solib-aix.o to gdb_target_obs for
5846         powerpc-aix targets.
5847         * config/rs6000/nm-rs6000.h: Delete.
5848         * config/powerpc/aix.mh (NAT_FILE): Delete.
5849         (NATDEPFILES): Remove xcoffsolib.o.
5850         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5851         (ALL_TARGET_OBS): Add solib-aix.o.
5852         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5853         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
5854         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
5855         * xcoffsolib.h, xcoffsolib.c: Delete.
5856
5857         * solib.c (reload_shared_libraries): Remove reference to
5858         SOLIB_CREATE_INFERIOR_HOOK.
5859         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5860         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5861         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5862         comment.
5863         * corelow.c (deprecated_core_resize_section_table): Delete.
5864         * exec.c: Remove include of xcoffsolib.h".
5865         (map_vmap, vmap): Delete.
5866         (exec_close_1): Remove references to vmap.
5867         (exec_file_attach): Remove vmap handling code, and reference
5868         to DEPRECATED_IBM6000_TARGET.
5869         (bfdsec_to_vmap): Delete.
5870         (exec_files_info): Remove block of code handling VMAP.
5871         * infcmd.c (post_create_inferior): Remove reference to
5872         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5873         * infrun.c (follow_exec): Remove reference to
5874         SOLIB_CREATE_INFERIOR_HOOK.
5875         * stack.c (print_frame): Remove reference to PC_SOLIB.
5876         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5877         (dsbt_relocate_main_executable): Likewise.
5878         * solib-frv.c (frv_current_sos): Likewise.
5879
5880 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5881
5882         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5883         to target_write_memory and target_read_memory.
5884
5885 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5886
5887         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5888         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5889
5890 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5891
5892         * darwin-nat.c: Replace all "%x" instances in format strings
5893         into "0x%x" throughout.
5894
5895 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5896
5897         * darwin-nat.c (darwin_mourn_inferior): Replace call to
5898         gdb_assert by call to MACH_CHECK_ERROR.
5899         (darwin_attach_pid): Raise an error rather than a failed
5900         assertion when various system calls failed.  Report a warning
5901         instead of raising a failed assertion when PREV_NOT is not NULL
5902         after call to mach_port_request_notification.
5903         (darwin_ptrace_me): Raise an error rather than a failed
5904         assertion when read returns nonzero.
5905
5906 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
5907
5908         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5909
5910 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5911
5912         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5913
5914 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5915
5916         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5917         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5918         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
5919         a stale cleanup.  Fix double free of NAME.
5920
5921 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
5922
5923         * windows-nat.c (windows_delete_thread): Accept an additional
5924         argument, the thread's exit code, and announce thread death when
5925         print_thread_events is non-zero and we are deleting a thread that
5926         is not the main thread.
5927         (get_windows_debug_event): Pass thread exit code to
5928         windows_delete_thread.
5929
5930 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
5931
5932         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5933         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5934         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5935         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5936         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5937         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5938         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5939         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5940         (gdbarch_tdep): New struct.
5941         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5942         E_NUM_REGS.
5943         (v850e3v5_register_name): New function.
5944         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5945         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
5946         code handling the struct return conventions for the RH850 ABI.
5947         Update all callers.
5948         (v850_eight_byte_align_p): New function.
5949         (v850_push_call_dummy): Push structs by value, not by reference
5950         for the RH850 ABI.  Add support for eight byte alignment.
5951         (v850_dbtrap_breakpoint_from_pc): New function.
5952         (v850_gdbarch_init): Add ABI detection code.  Register
5953         v850e3v5_register_name for the v850e3v5 architecture.  Set the
5954         number of registers for v850e3v5.  Register
5955         v850_dbtrap_breakpoint_from_pc as appropriate.
5956         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5957
5958 2013-05-03  Doug Evans  <dje@google.com>
5959
5960         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5961         of bfd_count_sections.
5962         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5963         * symfile.c (default_symfile_offsets): Ditto.
5964         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
5965         one entry, not bfd_count_sections entries.
5966
5967 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
5968
5969         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5970         `save' and `restore' register groups.  Don't include SPL
5971         or SPH in these groups.
5972         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
5973         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
5974         RL78_ES_REGNUM, and RL78_CS_REGNUM.
5975         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
5976         dwarf2_append_unwinders().
5977
5978 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5979
5980         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5981         ignore SIGINT and SIGTRAP in case these internal signals are
5982         caught explicitely.
5983
5984 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
5985
5986         * darwin-nat.c (darwin_read_write_inferior): Change types
5987         of parameters rdaddr and wraddr to "gdb_byte *". Change type
5988         of copy_count to "mach_msg_type_number_t".
5989         (darwin_read_dyld_info): Change type of parameter
5990         rdaddr to "gdb_byte *".
5991
5992 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
5993
5994         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5995         of &info->load_map from "char *" to "gdb_byte *".
5996
5997 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
5998
5999         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6000         from "char *" to "gdb_byte *".
6001         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6002
6003 2013-04-30  Doug Evans  <dje@google.com>
6004
6005         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6006         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6007         DWO stub.  If DWO isn't found, just use stub.
6008         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6009
6010         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6011         calling init_cutu_and_read_dies.
6012
6013 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6014
6015         * target-descriptions.c (maint_print_c_tdesc_cmd):
6016         Add case to parse structures as register types and
6017         bitfields.
6018
6019 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
6020
6021         * MAINTAINERS (Write After Approval): Add myself to the list.
6022
6023 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6024
6025         * sol-thread.c (rw_common): Change type of parameter "buf"
6026         to "gdb_byte *".
6027         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6028         rw_common to "gdb_byte *" instead of "char *".
6029
6030 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6031
6032         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6033         of local variable msym to const struct bound_minimal_symbol.
6034         Adjust use accordingly.
6035         [ti.ti_state == TD_THR_SLEEP]: Likewise.
6036
6037 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
6038
6039         * i386gnu-nat.c (CREG_OFFSET): New macro.
6040         (creg_offset): New array.
6041         (CREG_ADDR): Use creg_offset instead of reg_offset.
6042
6043 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6044
6045         * mep-tdep.c (mep_write_pc): Delete.
6046         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6047         Add call to set_gdbarch_pc_regnum.
6048
6049 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6050
6051         * common/filestuff.c: Replace #include <dirent.h> by
6052         #include "gdb_dirent.h".
6053
6054 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
6055
6056         * common/filestuff.c: Replace #include <sys/stat.h> by
6057         #include "gdb_stat.h".
6058
6059 2013-04-29  Pierre Muller  <muller@sourceware.org>
6060
6061         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6062         editCase function rule.
6063         (get_DW_AT_signature_type): Likewise.
6064
6065 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6066
6067         * m32r-tdep.c (m32r_write_pc): Delete.
6068         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6069         Add call to set_gdbarch_pc_regnum.
6070
6071 2013-04-29  Pierre Muller  <muller@sourceware.org>
6072
6073         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6074
6075 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
6076
6077         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6078
6079 2013-04-28  Yao Qi  <yao@codesourcery.com>
6080
6081         * solib-dsbt.c (fetch_loadmap): Re-indent.
6082         (displacement_from_map, enable_break2): Likewise.
6083         (dsbt_relocate_section_addresses): Likewise.
6084
6085 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
6086
6087         GDB 7.6 released.
6088
6089 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
6090
6091         PR corefiles/14983:
6092         * dwarf2read.c (process_full_comp_unit): Always create a static
6093         block.
6094
6095 2013-04-25  Hui Zhu  <hui@codesourcery.com>
6096
6097         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6098         to loc->cmd_bytecode.
6099
6100 2013-04-24  Doug Evans  <dje@google.com>
6101
6102         * dwarf2read.c (setup_type_unit_groups): Fix comment.
6103
6104 2013-04-22  Keith Seitz  <keiths@redhat.com>
6105
6106         * tracepoint.c (trace_save):  Call the writer's start method.
6107
6108 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
6109
6110         PR gdb/10462
6111         * cli/cli-decode.c (lookup_command): Show an error if there is no space
6112         before argument.
6113
6114 2013-04-23  Tom Tromey  <tromey@redhat.com>
6115
6116         * common/filestuff.c: Check USE_WIN32API before including
6117         sys/socket.h.
6118         (HAVE_F_GETFD): New define.
6119         (mark_cloexec): Check HAVE_F_GETFD.
6120         (gdb_open_cloexec): Change 'mode' to unsigned long.
6121         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6122         (gdb_pipe_cloexec): Check HAVE_PIPE.
6123         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6124         long.
6125
6126 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6127
6128         PR gdb/15293
6129         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6130
6131 2013-04-23  Hui Zhu  <hui@codesourcery.com>
6132
6133         PR gdb/15165
6134         * breakpoint.c (dprintf_print_recreate): New.
6135         (save_breakpoints): Let it not save dprintf commands.
6136         (initialize_breakpoint_ops): Set dprintf_print_recreate.
6137
6138 2013-04-22  Tom Tromey  <tromey@redhat.com>
6139
6140         PR gdb/7912:
6141         * Makefile.in (SFILES): Add filestuff.c
6142         (COMMON_OBS): Add filestuff.o.
6143         (filestuff.o): New target.
6144         * auto-load.c (auto_load_objfile_script_1): Use
6145         gdb_fopen_cloexec.
6146         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6147         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6148         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6149         * common/agent.c (gdb_connect_sync_socket): Use
6150         gdb_socket_cloexec.
6151         * common/filestuff.c: New file.
6152         * common/filestuff.h: New file.
6153         * common/linux-osdata.c (linux_common_core_of_thread)
6154         (command_from_pid, commandline_from_pid, print_source_lines)
6155         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6156         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6157         gdb_fopen_cloexec.
6158         * common/linux-procfs.c (linux_proc_get_int)
6159         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6160         * config.in, configure: Rebuild.
6161         * configure.ac: Don't check for sys/socket.h.  Check for
6162         fdwalk, pipe2.
6163         * corelow.c (core_open): Use gdb_open_cloexec.
6164         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6165         * fork-child.c (fork_inferior): Call close_most_fds.
6166         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6167         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6168         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6169         Use gdb_fopen_cloexec.
6170         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6171         gdb_open_cloexec.
6172         (linux_async_pipe): Use gdb_pipe_cloexec.
6173         * remote-fileio.c (remote_fileio_func_open): Use
6174         gdb_open_cloexec.
6175         * remote.c (remote_file_put, remote_file_get): Use
6176         gdb_fopen_cloexec.
6177         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6178         close_most_fds.
6179         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6180         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6181         * solib.c (solib_find): Use gdb_open_cloexec.
6182         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6183         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6184         (tfile_open): Use gdb_open_cloexec.
6185         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6186         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6187         * xml-support.c (xml_fetch_content_from_file): Use
6188         gdb_fopen_cloexec.
6189         * main.c (captured_main): Call notice_open_fds.
6190
6191 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6192
6193         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6194         'char *' to 'gdb_byte *'.
6195         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6196         'gdb_byte'.
6197
6198 2013-04-22  Yao Qi  <yao@codesourcery.com>
6199
6200         * infrun.c: Fix typo in comment.
6201
6202 2013-04-22  Andrew Haley  <aph@redhat.com>
6203
6204         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6205         instead of "long".
6206
6207 2013-04-20  Yao Qi  <yao@codesourcery.com>
6208
6209         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6210         'char *' to 'gdb_byte *'.  Cast the return value of
6211         'bt_ctf_get_char_array' to 'gdb_byte *'.
6212
6213 2013-04-19  Pedro Alves  <palves@redhat.com>
6214
6215         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6216         -Wpointer-sign.
6217         * configure: Regenerate.
6218
6219 2013-04-19  Pedro Alves  <palves@redhat.com>
6220
6221         * ser-tcp.c (net_read_prim): Cast second argument to recv to
6222         'void *'.
6223
6224 2013-04-19  Pedro Alves  <palves@redhat.com>
6225
6226         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6227         Change type of 'myaddr' parameter to gdb_byte pointer.
6228         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
6229         to 'long long' pointer instead of to 'unsigned long long'.
6230         (monitor_write_memory_block, monitor_read_memory_single)
6231         (monitor_read_memory): Change type of 'myaddr' parameter to
6232         gdb_byte pointer.
6233
6234 2013-04-19  Pedro Alves  <palves@redhat.com>
6235
6236         * record.c (validate_history_size): Make parameter 'setting'
6237         unsigned.
6238
6239 2013-04-19  Pedro Alves  <palves@redhat.com>
6240
6241         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6242         to 'gdb_byte *'.
6243
6244 2013-04-19  Pedro Alves  <palves@redhat.com>
6245
6246         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6247         local to int.
6248
6249 2013-04-19  Pedro Alves  <palves@redhat.com>
6250
6251         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6252         * ada-tasks.c (read_fat_string_value): Likewise.
6253
6254 2013-04-19  Pedro Alves  <palves@redhat.com>
6255
6256         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6257         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
6258         'offset', and adjust.
6259
6260 2013-04-19  Pedro Alves  <palves@redhat.com>
6261
6262         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6263         (read_index_from_section): Add cast to 'char *'.
6264
6265 2013-04-19  Pedro Alves  <palves@redhat.com>
6266
6267         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6268
6269 2013-04-19  Pedro Alves  <palves@redhat.com>
6270
6271         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6272
6273 2013-04-19  Pedro Alves  <palves@redhat.com>
6274
6275         * record-full.c (record_full_get_bookmark): Change local 'ret'
6276         type to char * and add cast to gdb_byte *.
6277         (record_full_goto_bookmark): Handle 'bookmark' argument as a
6278         string.
6279         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6280
6281 2013-04-19  Pedro Alves  <palves@redhat.com>
6282
6283         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6284         * python/py-prettyprint.c (print_string_repr): Change type of
6285         'output' local to char *.  Add cast to gdb_byte * in
6286         LA_PRINT_STRING call.
6287         (print_children): Change type of 'output' local to char *.
6288         * python/py-value.c (valpy_string): Add cast to const char * in
6289         PyUnicode_Decode call.
6290
6291 2013-04-19  Pedro Alves  <palves@redhat.com>
6292
6293         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6294         and change its type to 'const char *'.  Adjust.
6295         (mips_send_packet): Add cast to 'char *', and remove cast to
6296         'unsigned char *'.
6297         (mips_receive_packet): Remove cast to 'unsigned char *'.
6298         (mips_load_srec): Use bfd_byte.
6299         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6300         (pmon_checkset): Make 'value' parameter unsigned.
6301
6302 2013-04-19  Pedro Alves  <palves@redhat.com>
6303
6304         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6305
6306 2013-04-19  Pedro Alves  <palves@redhat.com>
6307
6308         * remote.c (remote_write_bytes_aux, compare_sections_command)
6309         (remote_read_qxfer)
6310         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6311         (remote_hostio_readlink, remote_bfd_iovec_pread)
6312         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6313         binary buffer, and char when buffer is used as string.
6314         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6315         (trace_save, tfile_open, traceframe_walk_blocks)
6316         (tfile_fetch_registers): Likewise.
6317
6318 2013-04-19  Pedro Alves  <palves@redhat.com>
6319
6320         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6321         buffer and size_t size.  Adjust.
6322         * ser-base.h (ser_base_write): Adjust.
6323         * ser-go32.c (cnts): Change type to size_t.
6324         (dos_write): Change prototype -- take 'void *'
6325         buffer and size_t size.  Adjust.
6326         (dos_info): Print elements of 'cnts' as unsigned long.
6327         * serial.c (serial_write): Likewise.
6328         * serial.h (serial_write): Adjust.
6329         (struct serial_ops) <write>: Change prototype -- take 'void *'
6330         buffer and size_t size.  Adjust.
6331
6332 2013-04-19  Pedro Alves  <palves@redhat.com>
6333
6334         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6335         gdb_byte *.
6336         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6337
6338 2013-04-19  Pedro Alves  <palves@redhat.com>
6339
6340         * alpha-tdep.c (alpha_extract_return_value): Use
6341         regcache_cooked_read_unsigned to read 'v0'.
6342
6343 2013-04-19  Pedro Alves  <palves@redhat.com>
6344
6345         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6346         parameters 'at', 'as' and 'offset' to uint32_t.
6347
6348 2013-04-19  Pedro Alves  <palves@redhat.com>
6349
6350         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6351         'is64' to signed 'int'.
6352
6353 2013-04-19  Pedro Alves  <palves@redhat.com>
6354
6355         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6356         parameter to int *.
6357
6358 2013-04-19  Pedro Alves  <palves@redhat.com>
6359
6360         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6361         'insnbuf' buffer type to unsigned int[].
6362
6363 2013-04-19  Pedro Alves  <palves@redhat.com>
6364
6365         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6366
6367 2013-04-19  Pedro Alves  <palves@redhat.com>
6368
6369         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6370         unsigned long *.
6371
6372 2013-04-19  Pedro Alves  <palves@redhat.com>
6373
6374         * alpha-tdep.c (heuristic_fence_post): Change type to int.
6375         (alpha_heuristic_proc_start): Adjust to check -1 instead of
6376         UINT_MAX.
6377         * mips-tdep.c (heuristic_fence_post): Change type to int.
6378         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6379
6380 2013-04-19  Pedro Alves  <palves@redhat.com>
6381
6382         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6383         (struct gdbarch_tdep) <cris_version>: Make unsigned.
6384         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6385
6386 2013-04-19  Pedro Alves  <palves@redhat.com>
6387
6388         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
6389         it to get a string view of the byte buffer.
6390         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6391         type to gdb_byte *.  Adjust.
6392         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6393         Change local to char *.
6394         * solib-darwin.c (find_program_interpreter): Change return type to
6395         char *.  Adjust.
6396         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6397         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6398         * solib-frv.c (enable_break2): Change local 'buf' to char *.
6399         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6400         * solib-svr4.c (find_program_interpreter): Change return type to
6401         char *.  Adjust.
6402         (enable_break): Change local 'interp_name' to char *.
6403         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6404         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6405         (spu_pseudo_register_write_spu): Use char for string buffer.
6406         Adjust.
6407         (info_spu_event_command, info_spu_signal_command): Add casts to
6408         'char *'.
6409
6410 2013-04-19  Pedro Alves  <palves@redhat.com>
6411
6412         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6413         gdb_byte[].
6414         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6415         * ada-lang.c (ada_value_assign): Use gdb_byte.
6416         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6417         (alphanbsd_sigtramp_offset): Use gdb_byte.
6418         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6419         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6420         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6421         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6422         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6423         * arm-tdep.c (arm_stub_unwind_sniffer)
6424         (arm_displaced_init_closure): Use gdb_byte.
6425         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6426         (arm_default_thumb_le_breakpoint)
6427         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6428         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6429         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6430         * arm-wince-tdep.c (arm_wince_le_breakpoint)
6431         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6432         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6433         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6434         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6435         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6436         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6437         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6438         (cris_store_return_value, cris_extract_return_value): Use
6439         gdb_byte.
6440         (constraint): Change type of parameter to char * from signed
6441         char*.  Use gdb_byte.
6442         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6443         of local buffer to gdb_byte *.
6444         * dwarf2read.c (read_index_from_section): Use gdb_byte.
6445         (create_dwp_hash_table): Change type of locals to gdb_byte *.
6446         (add_address_entry): Change type of local buffer to gdb_byte[].
6447         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6448         (frv_push_dummy_call): Use gdb_byte.
6449         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6450         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6451         (hppa_hpux_supply_save_state): Use gdb_byte.
6452         * hppa-tdep.c (hppa32_push_dummy_call)
6453         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6454         * ia64-tdep.c (extract_bit_field, replace_bit_field)
6455         (slotN_contents, replace_slotN_contents): Change type of parameter
6456         to gdb_byte *.
6457         (fetch_instruction, ia64_pseudo_register_write)
6458         (ia64_register_to_value, ia64_value_to_register)
6459         (ia64_extract_return_value, ia64_store_return_value)
6460         (ia64_push_dummy_call): Use gdb_byte.
6461         * m32c-tdep.c (m32c_return_value): Remove cast.
6462         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6463         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6464         gdb_byte.
6465         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6466         * mn10300-tdep.c (mn10300_store_return_value)
6467         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6468         gdb_byte.
6469         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6470         (moxie_process_record): Remove casts.
6471         * ppc-ravenscar-thread.c (supply_register_at_address)
6472         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6473         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6474         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6475         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6476         * remote.c (compare_sections_command): Use gdb_byte.
6477         * score-tdep.c (score7_free_memblock): Change type of parameter to
6478         gdb_byte *.
6479         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6480         gdb_byte *.  Use gdb_byte.
6481         (sh_push_dummy_call_fpu): Use gdb_byte.
6482         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6483         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6484         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6485         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6486         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6487         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6488         (sh64_store_return_value, sh64_register_convert_to_virtual):
6489         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6490         (sh64_pseudo_register_write): Use gdb_byte.
6491         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6492         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
6493         buffer.
6494         (irix_current_sos): Use gdb_byte.
6495         * solib-som.c (som_current_sos): Use gdb_byte.
6496         * sparc-ravenscar-thread.c (supply_register_at_address)
6497         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6498         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6499         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6500         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6501         'gdb_byte *'.
6502         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6503         'gdb_byte *'.
6504         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6505         * xstormy16-tdep.c (xstormy16_extract_return_value)
6506         (xstormy16_store_return_value): Change parameter type to
6507         'gdb_byte *'.  Adjust.
6508         (xstormy16_push_dummy_call): Use gdb_byte.
6509         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6510         (call0_analyze_prologue, execute_code): Use gdb_byte.
6511
6512 2013-04-19  Vladimir Kargov <kargov@gmail.com>
6513             Pedro Alves  <palves@redhat.com>
6514
6515         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6516         value contents.
6517
6518 2013-04-17  Doug Evans  <dje@google.com>
6519
6520         * dwarf2read.c (struct signatured_type): New member type.
6521         (struct attribute): Replace member signatured_type with signature.
6522         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6523         (read_call_site_scope): Call follow_die_ref instead of
6524         follow_die_ref_or_sig.
6525         (read_structure_type): Rewrite handling of signatured types.
6526         (read_enumeration_type): Ditto.
6527         (read_attribute_value): Update.
6528         (build_error_marker_type): New function.
6529         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
6530         Don't call error for bad types, just build an error marker type.
6531         (dump_die_shallow): Update.
6532         (follow_die_sig_1): Renamed from follow_die_sig.
6533         Don't call error for bad types, instead return NULL.
6534         (follow_die_sig): New function.
6535         (get_signatured_type, get_DW_AT_signature_type): New functions.
6536
6537 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
6538
6539         * aarch64-tdep.c (aarch64_write_pc): Removed.
6540         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6541         function.
6542
6543 2013-04-17  Yao Qi  <yao@codesourcery.com>
6544
6545         * top.c (print_gdb_configuration): Print configure-time
6546         parameter on using libbabeltrace or not.
6547
6548 2013-04-16  Pedro Alves  <palves@redhat.com>
6549
6550         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6551
6552 2013-04-16  Pedro Alves  <palves@redhat.com>
6553
6554         * common/glibc_thread_db.h: Update from upstream glibc
6555         (git 568035b7874a099087b77f7bba3e36a1173787b0).
6556
6557 2013-04-16  Pedro Alves  <palves@redhat.com>
6558
6559         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6560         * common/glibc_thread_db.h: ... this new file ...
6561         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6562
6563 2013-04-16  Will Newton  <will.newton@gmail.com>
6564             Pedro Alves  <palves@redhat.com>
6565
6566         PR build/11881
6567
6568         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6569         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6570         HAVE_THREAD_DB_H.
6571
6572 2013-04-16  Pedro Alves  <palves@redhat.com>
6573             Eli Zaretskii  <eliz@gnu.org>
6574
6575         * NEWS: Mention "set foo unlimited".
6576
6577 2013-04-15  Doug Evans  <dje@google.com>
6578
6579         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6580         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6581         (create_dwo_cu_reader): Renamed from
6582         create_dwo_debug_info_hash_table_reader.
6583         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6584         Remove support for multiple CUs in a DWO file.
6585         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6586
6587         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6588         instead of phex.
6589         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6590         (create_dwo_in_dwp): Ditto.
6591
6592 2013-04-15  Tom Tromey  <tromey@redhat.com>
6593
6594         * NEWS: Move recent entries into "since 7.6" section.
6595
6596 2013-04-15  Tom Tromey  <tromey@redhat.com>
6597
6598         PR c++/13588:
6599         * NEWS: Update.
6600         * break-catch-throw.c (struct exception_catchpoint)
6601         <exception_rx, pattern>: New fields.
6602         (fetch_probe_arguments, dtor_exception_catchpoint)
6603         (check_status_exception_catchpoint)
6604         (print_one_detail_exception_catchpoint): New functions.
6605         (handle_gnu_v3_exceptions): Add "except_rx" argument.
6606         Compile regular expression if needed.
6607         (extract_exception_regexp): New function.
6608         (catch_exception_command_1): Use extract_exception_regexp.
6609         (compute_exception): Use fetch_probe_arguments.
6610         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6611         and check_status fields.
6612         * cp-abi.c (cplus_typename_from_type_info): New function.
6613         * cp-abi.h (cplus_typename_from_type_info): Declare.
6614         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6615         * gdb_regex.h (compile_rx_or_error): Declare.
6616         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6617         comment.
6618         (init_gnuv3_ops): Set get_type_from_type_info field.
6619         * probe.c (compile_rx_or_error): Move...
6620         * utils.c (compile_rx_or_error): ... here.
6621
6622 2013-04-15  Tom Tromey  <tromey@redhat.com>
6623
6624         PR c++/15176:
6625         * NEWS: Update.
6626         * break-catch-throw.c (compute_exception): New function.
6627         (exception_funcs): New global.
6628         (_initialize_break_catch_throw): Create $_exception.
6629         * cp-abi.c (cplus_type_from_type_info): New function.
6630         * cp-abi.h (cplus_type_from_type_info): Declare.
6631         (struct cp_abi_ops) <get_type_from_type_info>: New field.
6632         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6633         (gnuv3_get_type_from_type_info): New functions.
6634         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6635
6636 2013-04-15  Tom Tromey  <tromey@redhat.com>
6637
6638         * break-catch-throw.c (struct exception_names): New.
6639         (exception_functions): Change type.
6640         (re_set_exception_catchpoint): Look for SDT probes.
6641
6642 2013-04-15  Tom Tromey  <tromey@redhat.com>
6643
6644         PR c++/10119:
6645         * break-catch-throw.c (exception_functions): New global.
6646         (gnu_v3_exception_catchpoint_ops): Move earlier.
6647         (struct exception_catchpoint): New.
6648         (classify_exception_breakpoint): Rewrite.
6649         (re_set_exception_catchpoint): New function.
6650         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
6651         Allocate a struct exception_catchpoint.
6652         (catch_exception_command_1): Update.
6653         (initialize_throw_catchpoint_ops): Set 're_set' method.
6654
6655 2013-04-15  Tom Tromey  <tromey@redhat.com>
6656
6657         * Makefile.in (SFILES): Add break-catch-throw.c
6658         (COMMON_OBS): Add break-catch-throw.o.
6659         * break-catch-throw.c: New file.
6660         * breakpoint.c: Move exception-catching code to new file.
6661         (ep_parse_optional_if_clause): No longer static.
6662         * breakpoint.h (ep_parse_optional_if_clause): Declare.
6663
6664 2013-04-15  Tom Tromey  <tromey@redhat.com>
6665
6666         PR c++/9065:
6667         * NEWS: Update.
6668         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6669         * c-exp.y (TYPEID): New token.
6670         (exp): Add new TYPEID productions.
6671         (ident_tokens): Add "typeid".
6672         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6673         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6674         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6675         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6676         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6677         case.
6678         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6679         (build_std_type_info_type, gnuv3_get_typeid_type)
6680         (gnuv3_get_typeid): New functions.
6681         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
6682         new fields on ABI object.
6683         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6684         * std-operator.def (OP_TYPEID): New.
6685
6686 2013-04-15  Tom Tromey  <tromey@redhat.com>
6687
6688         * elfread.c (elf_symtab_read): Install versioned symbol under
6689         unversioned name as well.
6690
6691 2013-04-15  Tom Tromey  <tromey@redhat.com>
6692
6693         PR c++/11990:
6694         * c-lang.c (cplus_language_defn): Use gdb_demangle.
6695         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6696         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6697         (gdb_demangle): New function.
6698         * cp-support.h (gdb_demangle): Declare.
6699         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6700         (dwarf2_name): Use gdb_demangle.
6701         * gdbtypes.c (check_stub_method): Use gdb_demangle.
6702         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6703         suffixes from name.
6704         (gnuv3_print_method_ptr): Use gdb_demangle.
6705         * jv-lang.c (java_demangle): Use gdb_demangle.
6706         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6707         * language.c (unk_lang_demangle): Use gdb_demangle.
6708         * symtab.c (symbol_find_demangled_name)
6709         (demangle_for_lookup): Use gdb_demangle.
6710
6711 2013-04-15  Tom Tromey  <tromey@redhat.com>
6712
6713         PR c++/12824:
6714         * NEWS: Update.
6715         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6716         New constant.
6717         (classify_exception_breakpoint): New function.
6718         (print_it_exception_catchpoint, print_one_exception_catchpoint)
6719         (print_mention_exception_catchpoint)
6720         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6721         (catch_exception_command_1): Handle "rethrow" catchpoint.
6722         (catch_rethrow_command): New function.
6723         (_initialize_breakpoint): Add "catch rethrow" command.
6724
6725 2013-04-15  Pierre Muller  <muller@sourceware.org>
6726
6727         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6728         set_gdbarch_write_pc as deprecated anymore.
6729
6730 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
6731
6732         * spu-tdep.c (spu_write_pc): Add empty line after local variable
6733         declarations.
6734
6735 2013-04-13  Yao Qi  <yao@codesourcery.com>
6736
6737         * ctf.c (_initialize_ctf): Include "completer.h".
6738         Call add_target_with_completer instead of add_target.
6739
6740 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6741
6742         Fix GDB regression related to PR binutils/14813.
6743         * jit.c (mem_bfd_iovec_close): Return 0 for success.
6744         * minidebug.c (lzma_close): Add return value comment.
6745         * remote.c (remote_bfd_iovec_close): Return 0 for success.
6746         * solib-spu.c (spu_bfd_iovec_close): Likewise.
6747         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6748
6749 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6750
6751         * config.in: Regenerate.
6752
6753 2013-04-12  Tom Tromey  <tromey@redhat.com>
6754
6755         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6756         const.
6757         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6758         (struct die_reader_specs) <buffer>: Likewise.
6759         (die_reader_func_ftype): Make 'info_ptr' const.
6760         (struct line_header) <include_dirs, statement_program_start,
6761         statement_program_end>: Now const.
6762         (struct file_entry) <name>: Likewise.
6763         (struct partial_die_info) <sibling>: Likewise.
6764         (struct dwarf_block) <data>: Likewise.
6765         (dwarf2_read_section): Remove cast.
6766         (dwarf2_get_section_info): Make 'bufp' const.
6767         (read_index_from_section): Constify.
6768         (dw2_get_file_names_reader): Make 'info_ptr' const.
6769         (dw2_get_primary_filename_reader): Likewise.
6770         (read_comp_unit_head): Make 'info_ptr' and return type const.
6771         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6772         Likewise.
6773         (read_abbrev_offset): Constify.
6774         (dwarf2_create_include_psymtab): Make 'name' const.
6775         (create_debug_types_hash_table): Update.
6776         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6777         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6778         Constify.
6779         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6780         (load_partial_comp_unit_reader): Make 'info_ptr' const.
6781         (read_comp_units_from_section): Constify.
6782         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6783         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6784         const.
6785         (dwarf2_compute_name, setup_type_unit_groups): Constify.
6786         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6787         (create_dwp_hash_table, dwarf2_ranges_read)
6788         (dwarf2_record_block_ranges): Constify.
6789         (read_die_and_children, read_die_and_siblings_1)
6790         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6791         const.
6792         (read_full_die_1, read_full_die): Make 'info_ptr' const.
6793         (abbrev_table_read_table): Constify.
6794         (load_partial_dies): Make 'info_ptr' const.
6795         (read_partial_die, read_attribute_value, read_attribute): Make
6796         'info_ptr' and return type const.
6797         (read_address, read_initial_length)
6798         (read_checked_initial_length_and_offset, read_offset)
6799         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6800         const.
6801         (read_direct_string): Make 'buf' and return type const.
6802         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6803         (read_indirect_string): Make return type const.
6804         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6805         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6806         'info_ptr' const.
6807         (read_str_index): Make return type const.
6808         (add_include_dir): Make 'include_dir' const.
6809         (add_file_name): Make 'name' const.
6810         (dwarf_decode_line_header): Constify.
6811         (psymtab_include_file_name): Make return type const.
6812         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6813         (dwarf2_start_subfile): Make 'filename' const.
6814         (dwarf2_const_value_attr): Make 'bytes' const.
6815         (read_signatured_type_reader): Make 'info_ptr' const.
6816         (decode_locdesc): Constify.
6817         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6818         const.
6819         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6820         'mac_end', and return type const.
6821         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6822         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6823         type const.
6824         (per_cu_header_read_in): Constify.
6825         * symfile.h (dwarf2_get_section_info): Update.
6826
6827 2013-04-12  Tom Tromey  <tromey@redhat.com>
6828
6829         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6830
6831 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
6832
6833         * NEWS: Mention "show configuration", --configuration.
6834         * top.c (print_gdb_configuration): New function, displays the
6835         details about GDB configure-time parameters.
6836         (print_gdb_version): Mention "show configuration".
6837         * cli/cli-cmds.c (show_configuration): New function.
6838         (_initialize_cli_cmds): Add the "show configuration" command.
6839         * main.c (captured_main) <print_configuration>: New static var.
6840         <long_options>: Use it.
6841         If --configuration was given, call print_gdb_configuration.
6842
6843 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6844             Pedro Alves  <palves@redhat.com>
6845
6846         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6847         (generated_files): Add gcore.
6848         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6849         HAVE_NATIVE_GCORE_HOST.
6850         (gcore): New.
6851         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6852         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6853         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6854         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6855         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6856         Add HAVE_NATIVE_GCORE_HOST.
6857         * configure: Regenerate.
6858         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6859         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
6860         AC_CONFIG_FILES for gcore.
6861         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
6862         gdb_have_gcore.
6863         * gdb_gcore.sh: Rename to ...
6864         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
6865         and GCORE_TRANSFORM_NAME substitutions.
6866
6867         Fix parsing tabs in ${gdb_target_obs}.
6868         * configure.tgt (gdb_have_gcore): Replace case with for and if.
6869
6870 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6871
6872         * remote.c (unpush_and_perror): Add output message final dot.
6873
6874 2013-04-11  Yao Qi  <yao@codesourcery.com>
6875
6876         * tracepoint.c (tfile_interp_line): Fit parameters line and
6877         utpp in one line.
6878
6879 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
6880
6881         * solib.c (solib_map_sections): Remove code overwriting
6882         SO->SO_NAME with the bfd's filename.
6883
6884 2013-04-10  Pedro Alves  <palves@redhat.com>
6885
6886         * cli/cli-decode.c (integer_unlimited_completer): New function.
6887         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6888         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6889         completer.
6890         * cli/cli-setshow.c: Include "cli/cli-utils.h".
6891         (is_unlimited_literal): New function.
6892         (do_set_command): Handle literal "unlimited" arguments.
6893         * frame.c (_initialize_frame) <set backtrace limit>: Document
6894         "unlimited".
6895         * printcmd.c (_initialize_printcmd) <set print
6896         max-symbolic-offset>: Add help text.
6897         * record-full.c (_initialize_record_full) <set record full
6898         insn-number-max>: Likewise.
6899         * record.c (_initialize_record) <set record
6900         instruction-history-size, set record function-call-history-size>:
6901         Add help text.
6902         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6903         help text.
6904         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6905         Likewise.
6906         * source.c (_initialize_source) <set listsize>: Add help text.
6907         * utils.c (initialize_utils) <set height, set width>: Likewise.
6908         <set pagination>: Mention "set height unlimited".
6909         * valprint.c (_initialize_valprint) <set print elements, set print
6910         repeats>: Document "unlimited".
6911
6912 2013-04-10  Pedro Alves  <palves@redhat.com>
6913
6914         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6915         instead of disconnect_tracing.
6916         * infcmd.c (detach_command, disconnect_command): Call
6917         query_if_trace_running.  Adjust.
6918         * top.c: Include "tracepoint.h".
6919         (quit_target): Delete.  Contents moved ...
6920         (quit_force): ... here.  Wrap each stage of teardown in
6921         TRY_CATCH.  Call disconnect_tracing before detaching.
6922
6923 2013-04-10  Hui Zhu  <hui@codesourcery.com>
6924             Yao Qi  <yao@codesourcery.com>
6925
6926         * configure.ac: Check libbabeltrace is installed.
6927         * config.in: Regenerate.
6928         * configure: Regenerate.
6929         * Makefile.in (LIBBABELTRACE): New.
6930         (CLIBS): Add LIBBABELTRACE.
6931         * ctf.c: Include "exec.h".
6932         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6933         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6934         (ctf_save_metadata_header): Define new type aliases in
6935         metadata.
6936         (ctf_write_header): Define event type "tsv_def" and "tp_def"
6937         in metadata.  Start a new faked packet for trace status.
6938         (ctf_write_status): Write trace status to CTF.
6939         (ctf_write_uploaded_tsv): Write TSV to CTF.
6940         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6941         (ctf_write_definition_end): End the faked packet.
6942
6943         (ctx, ctf_iter, trace_dirname): New.
6944         (start_pos): New variable.
6945         (ctf_destroy, ctf_open_dir, ctf_open): New.
6946         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6947         macros.
6948         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6949         (ctf_fetch_registers, ctf_xfer_partial): New.
6950         (ctf_get_trace_state_variable_value): New.
6951         (ctf_get_tpnum_from_frame_event): New.
6952         (ctf_get_traceframe_address): New.
6953         (ctf_trace_find, ctf_has_stack): New.
6954         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6955         (ctf_get_trace_status, ctf_read_status): New.
6956         (_initialize_ctf): New.
6957         * tracepoint.c (get_tracepoint_number): New
6958         (get_uploaded_tsv): Remove 'static'.
6959         (struct traceframe_info, trace_regblock_size): Move it to ...
6960         * tracepoint.h: ... here.
6961         (get_tracepoint_number): Declare it.
6962         (get_uploaded_tsv): Declare it.
6963
6964         * NEWS: Mention new configure option.
6965
6966 2013-04-10  Pedro Alves  <palves@redhat.com>
6967             Hui Zhu  <hui@codesourcery.com>
6968
6969         * breakpoint.c (dprintf_re_set): New.
6970         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6971         to dprintf_re_set.
6972
6973 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
6974
6975         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6976         Remove solib-svr4.o from the list.
6977
6978 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
6979
6980         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6981         Use gdb_assert_not_reached instead of invalid boolean expression.
6982
6983 2013-04-09  Pedro Alves  <palves@redhat.com>
6984
6985         * remote.c (unpush_and_perror): New function.
6986         (readchar, remote_serial_write): Use it.
6987
6988 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
6989
6990         * NEWS: Mention new btrace RSP packets.
6991
6992 2013-04-08  Tom Tromey  <tromey@redhat.com>
6993
6994         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6995         long.
6996
6997 2013-04-08  Tom Tromey  <tromey@redhat.com>
6998
6999         * maint.c (print_bfd_section_info): Print the section index.
7000         * symmisc.c (dump_msymbols): Print the section index.
7001
7002 2013-04-08  Tom Tromey  <tromey@redhat.com>
7003
7004         PR symtab/8424:
7005         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7006         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7007         * breakpoint.c (resolve_sal_pc): Update.
7008         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7009         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7010         (minsym_lookup_iterator_cb): Use it.
7011         (default_read_var_value): Update.
7012         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7013         Update.
7014         * infcmd.c (jump_command): Update.
7015         * linespec.c (minsym_found): Update.
7016         * maint.c (maintenance_translate_address): Update.
7017         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7018         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7019         * parse.c (write_exp_msymbol): Update.
7020         * printcmd.c (address_info): Update.
7021         * psymtab.c (find_pc_sect_psymbol): Update.
7022         (fixup_psymbol_section): Check SYMBOL_SECTION, not
7023         SYMBOL_OBJ_SECTION.
7024         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7025         Don't initialize SYMBOL_OBJ_SECTION.
7026         * spu-tdep.c (spu_catch_start): Update.
7027         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7028         * symmisc.c (dump_msymbols, print_symbol): Update.
7029         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
7030         how fallback section is computed.
7031         (fixup_symbol_section): Update.
7032         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7033         Update.
7034         (allocate_symbol, initialize_symbol, allocate_template_symbol):
7035         Initialize SYMBOL_SECTION.
7036         * symtab.h (struct general_symbol_info) <section>: Update comment.
7037         <obj_section>: Remove.
7038         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
7039         (SYMBOL_OBJFILE): New macro.
7040
7041 2013-04-08  Tom Tromey  <tromey@redhat.com>
7042
7043         * coffread.c (record_minimal_symbol): Update.
7044         * dbxread.c (record_minimal_symbol): Update.
7045         * elfread.c (record_minimal_symbol): Update.
7046         * machoread.c (macho_symtab_add_minsym): Update.
7047         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7048         Update.
7049         * minsyms.c (prim_record_minimal_symbol): Update.
7050         (prim_record_minimal_symbol_full): Remove 'bfd_section'
7051         argument.
7052         (prim_record_minimal_symbol_and_info): Likewise.
7053         * minsyms.h (prim_record_minimal_symbol_full)
7054         (prim_record_minimal_symbol_and_info): Update.
7055         * symtab.c (allocate_symbol, initialize_symbol)
7056         (allocate_template_symbol): Initialize SYMBOL_SECTION.
7057         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7058         Update.
7059
7060 2013-04-08  Tom Tromey  <tromey@redhat.com>
7061
7062         PR symtab/8423:
7063         * solib-som.c (som_solib_section_offsets): Use BFD section
7064         indices.  Set offsets for all sections.
7065         * somread.c (som_symtab_read): Compute BFD section for
7066         symbol.  Use prim_record_minimal_symbol_and_info.
7067         (som_symfile_read): Fix comment.
7068         (struct find_section_offset_arg): New.
7069         (find_section_offset, set_section_index): New functions.
7070         (som_symfile_offsets): Use set_section_index to compute
7071         section indices.
7072
7073 2013-04-08  Tom Tromey  <tromey@redhat.com>
7074
7075         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7076         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7077         gdb_bfd_section_index.
7078         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7079         New functions.
7080         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7081         Declare.
7082         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7083         Update.
7084         * objfiles.c (add_to_objfile_sections_full): New function.
7085         (add_to_objfile_sections): Use it.
7086         (build_section_table): Rewrite.
7087         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
7088         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7089         (struct objfile) <sections>: Update comment.
7090         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7091         is NULL.
7092         (ALL_OBJSECTIONS): Use it.
7093         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7094         * solib-frv.c (frv_relocate_main_executable): Update.
7095         * solib-target.c (solib_target_relocate_section_addresses):
7096         Use gdb_bfd_section_index.
7097         * symfile.c (build_section_addr_info_from_section_table):
7098         Use gdb_bfd_section_index.
7099         (build_section_addr_info_from_bfd, place_section): Likewise.
7100         * symtab.c (fixup_section): Update.
7101         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7102
7103 2013-04-08  Tom Tromey  <tromey@redhat.com>
7104
7105         * minsyms.h (struct bound_minimal_symbol): New.
7106         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7107         Remove objfile argument.
7108         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7109         Return bound_minimal_symbol.
7110         * minsyms.c (lookup_minimal_symbol_by_pc_1)
7111         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7112         Return bound_minimal_symbol.
7113         (in_gnu_ifunc_stub): Update.
7114         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7115         Remove 'objfile_p' argument.
7116         (lookup_solib_trampoline_symbol_by_pc): Update.
7117         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7118         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7119         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7120         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7121         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7122         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7123         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7124         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7125         stack.c, symtab.c, tui/tui-disasm.c: Update.
7126
7127 2013-04-08  Tom Tromey  <tromey@redhat.com>
7128
7129         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7130         Use symbol's obstack, not an objfile.
7131         * coffread.c (process_coff_symbol): Update.
7132         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7133         * jv-lang.c (add_class_symbol): Update.
7134         * mdebugread.c (new_symbol): Update.
7135         * minsyms.c (prim_record_minimal_symbol_full)
7136         (terminate_minimal_symbol_table): Update.
7137         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
7138         * stabsread.c (define_symbol, read_enum_type): Update.
7139         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7140         Handle Ada specially.
7141         (symbol_set_language): Add 'obstack' argument.
7142         (symbol_set_names): Update.
7143         (symbol_natural_name, symbol_demangled_name): Always use
7144         ada_decode_symbol.
7145         * symtab.h (struct general_symbol_info)
7146         <language_specific::obstack>: New field.
7147         <ada_mangled>: New field.
7148         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7149         (symbol_set_language): Update.
7150
7151 2013-04-08  Tom Tromey  <tromey@redhat.com>
7152
7153         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7154         Take an obstack, not an objfile.
7155         (symbol_set_names): Update.
7156         * symtab.h (symbol_set_demangled_name): Update.
7157
7158 2013-04-08  Tom Tromey  <tromey@redhat.com>
7159
7160         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7161         allocate_symbol.
7162         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7163         (read_func_scope): Call allocate_template_symbol.
7164         (new_symbol_full): Call allocate_symbol.
7165         * jit.c (finalize_symtab): Call allocate_symbol.
7166         * jv-lang.c (add_class_symbol): Call allocate_symbol.
7167         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7168         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7169         (common_block_end): Call allocate_symbol.
7170         * symtab.c (allocate_symbol, initialize_symbol)
7171         (allocate_template_symbol): New functions.
7172         * symtab.c (allocate_symbol, initialize_symbol)
7173         (allocate_template_symbol): Declare.
7174         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7175
7176 2013-04-08  Pedro Alves  <palves@redhat.com>
7177             Keith Seitz  <keiths@redhat.com>
7178
7179         * breakpoint.c (create_breakpoint): Rename
7180         "parse_condition_and_thread" parameter to "parse_arg".  Update
7181         describing comment.  If !PARSE_ARG, then error out if ARG is not
7182         the empty string after extracting the location.
7183         * breakpoint.h (create_breakpoint): Rename
7184         "parse_condition_and_thread" parameter to "parse_arg".
7185
7186 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
7187
7188         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7189
7190 2013-04-07  Yao Qi  <yao@codesourcery.com>
7191
7192         * remote.c (remote_trace_find): Change type of parameters 'addr1'
7193         and 'addr2' to CORE_ADDR.
7194         * target.c (update_current_target): Update.
7195         * target.h (struct target_ops) <to_trace_find>: Change parameter
7196         type to CORE_ADDR.
7197         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7198         'addr2' to CORE_ADDR.
7199         (tfile_trace_find): Likewise.
7200         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7201         Change local variable 'addr' to type CORE_ADDR.
7202         * tracepoint.h (tfind_1): Update declaration.
7203
7204 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
7205
7206         * windows-nat.c (windows_get_absolute_argv0): Move from here...
7207         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7208         Include main.h.
7209
7210         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7211         here...
7212         * main.h (windows_get_absolute_argv0): ...to here.
7213
7214 2013-04-05  Doug Evans  <dje@google.com>
7215
7216         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7217         (read_cutu_die_from_dwo): Add comments.
7218         (read_structure_type): Update comment.
7219         (read_enumeration_type, read_namespace_type): Update comment.
7220         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7221
7222 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7223
7224         Convert man pages to texinfo, new gdbinit.5 texinfo page.
7225         * Makefile.in (gdb.z): Remove.
7226         (install-only): Remove $(man1dir) and gdb.1 installation.
7227         * gdb.1: Remove.
7228
7229 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7230
7231         Fix compatibility with Linux kernel 3.8.3.
7232         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7233         to more inner block.  Remove parsing of NUMBER from outer block.
7234         Parse NUMBER only if KEYWORD has been identified.
7235
7236 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7237
7238         Fix variable name shadowing.
7239         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7240         filename to mapsfilename and update its uses.
7241
7242 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
7243
7244         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7245         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7246         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7247         details of the problem.
7248
7249 2013-04-04  Pedro Alves  <palves@redhat.com>
7250             Hui Zhu  <hui@codesourcery.com>
7251
7252         * breakpoint.c (validate_commands_for_breakpoint): If validating a
7253         tracepoint, reset its STEP_COUNT and call validate_actionline.
7254
7255 2013-04-03  Doug Evans  <dje@google.com>
7256
7257         * dwarf2read.c (read_die_and_siblings_1): Renamed from
7258         read_die_and_siblings.
7259         (read_die_and_siblings): New function.
7260         (read_cutu_die_from_dwo): Dump die if requested.
7261         (read_die_and_children): Call read_full_die_1 and
7262         read_die_and_siblings_1.
7263         (read_full_die): Dump die if requested.
7264
7265         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7266
7267         * dwarf2read.c (struct dwo_file): New member comp_dir.
7268         Rename member name to dwo_name.  All uses updated.
7269         (hash_dwo_file): Include comp_dir in computation.
7270         (eq_dwo_file): Ditto.
7271         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
7272         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7273
7274         * psymtab.c (read_psymtabs_with_fullname): Don't call
7275         psymtab_to_fullname if the basenames are different.
7276
7277 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7278
7279         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7280         New entry about "fullname" presence.
7281
7282 2013-04-03  Pedro Alves  <palves@redhat.com>
7283
7284         * NEWS: Mention x86_64/Cygwin as new native configuration.
7285
7286 2013-04-02  Doug Evans  <dje@google.com>
7287
7288         * dwarf2read.c (read_structure_type): Fix typo in comment.
7289
7290 2013-04-02  Pedro Alves  <palves@redhat.com>
7291
7292         * NEWS: Mention "set/show debug aarch64", "set/show debug
7293         coff-pe-read" and "set/show debug mach-o".
7294
7295 2013-04-02  Pedro Alves  <palves@redhat.com>
7296
7297         * NEWS: Mention "set/show remote trace-buffer-size-packet".
7298
7299 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
7300
7301         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7302         gdb_string.h is now in common/.
7303
7304 2013-04-02  Pedro Alves  <palves@redhat.com>
7305
7306         * NEWS: Move "set debug notification" and "set trace-buffer-size"
7307         under "New options".
7308
7309 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7310
7311         Revert this patch:
7312         PR gdb/15275
7313         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7314
7315 2013-04-02  Pedro Alves  <palves@redhat.com>
7316
7317         PR gdb/15275
7318
7319         * remote.c (send_interrupt_sequence): Use remote_serial_write.
7320         (remote_serial_write): New function.
7321         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7322
7323 2013-04-01  Jiong Wang  <jiwang@tilera.com>
7324
7325         * NEWS: Mention TILE-Gx in "New native configurations" and
7326         "New targets" sections.
7327
7328 2013-04-01  Doug Evans  <dje@google.com>
7329
7330         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7331         (process_enumeration_scope): Simplify.
7332
7333         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7334         type_unit_group ...
7335         (struct signatured_type): ... to here.
7336         (sig_type_ptr): New typedef.
7337         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
7338         out of union 't'.  All uses updated.
7339         (dw2_get_file_names_reader): Assert not called for a type unit.
7340         (dw2_get_file_names): Assert not called for a type unit or type
7341         unit group.
7342         (build_type_psymtabs_reader): Assert called for a type unit.
7343         (build_type_psymtab_dependencies): Assert called for a type unit group.
7344
7345         * dwarf2read.c (free_dwo_file): Add comment.
7346         (dwarf2_per_objfile_free): Unref dwp bfd.
7347
7348 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7349
7350         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7351         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7352         (read_pe_exported_syms): Remove unused 'exportix'.
7353         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7354         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7355         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7356
7357 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7358
7359         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7360         (print_it_watchpoint): Remove unused 'bl'.
7361         (say_where): Remove unused 'uiout'.
7362         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7363         (bkpt_breakpoint_hit): Remove unused 'b'.
7364         (internal_bkpt_print_it): Remove unused 'uiout'.
7365         * buildsym.c (augment_type_symtab): Remove unused 'i'.
7366
7367 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7368
7369         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7370         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7371
7372 2013-03-29  Doug Evans  <dje@google.com>
7373
7374         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7375         Delete arg is_dwp.  All callers updated.
7376         (open_dwp_file): New function.
7377         (open_and_init_dwp_file): Call it.
7378         (get_dwp_file): New function.
7379         (lookup_dwo_cutu): Call it.
7380
7381         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7382         unnecessary, cleanup.
7383
7384         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7385
7386         * dwarf2read.c (read_cutu_die_from_dwo): New function.
7387         (lookup_dwo_unit): New function.
7388         (init_cutu_and_read_dies): Move DWO handling to new functions.
7389
7390         * dwarf2read.c (struct signatured_type): Tweak comment.
7391         (struct dwo_unit): Tweak comment.
7392         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
7393         (create_dwo_debug_info_hash_table): Tweak comment.
7394         (dwarf2_per_cu_offset_and_type): Tweak comment.
7395
7396         * dwarf2read.c (lookup_signatured_type): Remove complaint about
7397         missing .debug_types section.
7398
7399 2013-03-29  Yao Qi  <yao@codesourcery.com>
7400
7401         * corelow.c: Include "completer.h".
7402         (_initialize_corelow): Call add_target_with_completer with
7403         argument 'filename_completer'.
7404         * tracepoint.c: Likewise.
7405         * exec.c (_initialize_exec): Likewise.
7406         * target.c (add_target): Rename to ...
7407         (add_target_with_completer): ... this.  Call set_cmd_completer
7408         if parameter completer is not NULL.
7409         (add_target): New.
7410         * target.h: Include "command.h".
7411         (add_target_with_completer): Declare it.
7412
7413 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
7414
7415         * coffread.c (is_import_fixup_symbol): New function.
7416         (record_minimal_symbol): Use is_import_fixup_symbol to
7417         detect import fixup symbols, and discard them.
7418
7419 2013-03-28  Doug Evans  <dje@google.com>
7420
7421         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7422         types hash table until we know we need it.
7423
7424         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7425         index numbers.
7426
7427         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7428         All callers updated.
7429         (dw2_print_stats): Print #read CUs too.
7430         (dump_die_shallow): Print signatured types better.
7431
7432         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7433         info_or_types_section to section.  All uses updated.
7434         (struct dwo_unit): Ditto.
7435
7436 2013-03-28  Pedro Alves  <palves@redhat.com>
7437
7438         * NEWS (New options): New section.
7439         (New options): Mention set/show remote trace-status-packet.
7440         * remote.c (PACKET_qTStatus): New enumeration value.
7441         (remote_get_trace_status): Skip sending qTStatus if the packet is
7442         disabled.  Use packet_ok.
7443         (_initialize_remote): Register a configuration command for
7444         qTStatus packet.
7445
7446 2013-03-28  Doug Evans  <dje@google.com>
7447
7448         * symfile.c (find_separate_debug_file): Add comment.
7449         (terminate_after_last_dir_separator): Tweak comment.
7450
7451         * dwarf2read.c (create_partial_symtab): Add forward decl.
7452         (create_partial_symtab): Move to be closer to other psymtab functions.
7453         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7454
7455         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7456         (compute_symtab_includes): Remove unnecessary forward declaration.
7457         (die_needs_namespace): Add comment marking group of functions for
7458         dwarf2 name computation.
7459
7460         * typeprint.c (_initialize_typeprint): Improve type help text.
7461
7462         * python/python.c (finish_python_initialization): Provide suggestion
7463         for how to tell gdb to find its python files.
7464
7465 2013-03-28  Pedro Alves  <palves@redhat.com>
7466
7467         PR gdb/15294
7468
7469         * source.c (_initialize_source): Change back "set listsize" to an
7470         integer command.
7471
7472 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
7473
7474         PR gdb/15275
7475         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7476
7477 2013-03-27  Pedro Alves  <palves@redhat.com>
7478
7479         * top.c (history_size): Rename to ...
7480         (history_size_setshow_var): ... this.  Add comment.
7481         (show_commands): Use readline's 'history_length' instead of
7482         computing the history length by calling history_get in a loop.
7483         (set_history_size_command): Error out for sizes over INT_MAX.
7484         Restore previous history size on invalid size.
7485         (init_history): If HISTSIZE is negative, leave the history size as
7486         zero.  Add comments.
7487         (init_main): Adjust.
7488
7489 2013-03-27  Pedro Alves  <palves@redhat.com>
7490
7491         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7492         coff_pe_read" command to "set debug coff-pe-read".
7493
7494 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
7495
7496         * record.c (command_size_to_target_size): Fix size comparison.
7497         Change parameter type from pointer to integer to integer.
7498         Update all users.
7499
7500 2013-03-27  Pierre Muller  <muller@sourceware.org>
7501
7502         * windows-nat.c (handle_output_debug_string): Avoid typecast
7503         from integer of different size warning.
7504
7505 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
7506
7507         * windows-nat.c (handle_output_debug_string): Add empty line
7508         after local block variable definition.
7509
7510 2013-03-26  Pedro Alves  <palves@redhat.com>
7511
7512         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7513         (net_open): Make 'polls' local unsigned.
7514
7515 2013-03-26  Pedro Alves  <palves@redhat.com>
7516
7517         * remote.c (_initialize_remote): Make "set remoteaddresssize"
7518         a zuinteger command instead of uinteger.
7519
7520 2013-03-26  Pedro Alves  <palves@redhat.com>
7521
7522         * record-full.c (record_full_insn_num): Make it unsigned.
7523         (record_full_check_insn_num, record_full_message)
7524         (record_full_registers_change, record_full_xfer_partial): Remove
7525         record_full_insn_max_num check (it's always != 0).
7526         (record_full_info, record_full_restore): Use %u as format string.
7527         (): Use %u as format string.
7528         (set_record_full_insn_max_num): Remove record_full_insn_max_num
7529         check (it's always != 0).
7530
7531 2013-03-26  Pedro Alves  <palves@redhat.com>
7532
7533         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7534         and "set dcache size" commands zuinteger instead of uinteger.
7535
7536 2013-03-26  Pedro Alves  <palves@redhat.com>
7537
7538         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7539         command zuinteger instead of uinteger.
7540
7541 2013-03-26  Pedro Alves  <palves@redhat.com>
7542
7543         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7544         zuinteger instead of uinteger.
7545
7546 2013-03-26  Pedro Alves  <palves@redhat.com>
7547
7548         * record.c (record_insn_history_size_setshow_var)
7549         (record_call_history_size_setshow_var): New globals.
7550         (command_size_to_target_size): New function.
7551         (cmd_record_insn_history, cmd_record_call_history): Use
7552         command_size_to_target_size instead of cast.
7553         (validate_history_size, set_record_insn_history_size)
7554         (set_record_call_history_size): New functions.
7555         (_initialize_record): Install set_record_insn_history_size and
7556         set_record_call_history_size as "set" hooks of "set record
7557         instruction-history-size" and "set record
7558         function-call-history-size".
7559
7560 2013-03-26  Pedro Alves  <palves@redhat.com>
7561
7562         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7563         use with history_max_entries use.  Remove FIXME note.
7564
7565 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
7566
7567         * record-btrace.c (record_btrace_close): Call
7568         record_btrace_auto_disable.
7569
7570 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
7571
7572         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7573
7574 2013-03-25  Doug Evans  <dje@google.com>
7575
7576         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7577
7578 2013-03-25  Tom Tromey  <tromey@redhat.com>
7579
7580         PR symtab/11462:
7581         * c-exp.y (exp): Add new productions for destructors after '.' and
7582         '->'.
7583         (write_destructor_name): New function.
7584
7585 2013-03-25  Tom Tromey  <tromey@redhat.com>
7586
7587         PR c++/9197:
7588         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7589         value_struct_elt, not lookup_struct_elt_type.
7590         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7591         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7592         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7593
7594 2013-03-25  Yao Qi  <yao@codesourcery.com>
7595
7596         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7597         instead of '_mkdir'.
7598
7599 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
7600
7601         * windows-nat.c (windows_get_absolute_argv0): New function.
7602         * windows-nat.h: Add its prototype.
7603
7604         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7605         Use IS_DIR_SEPARATOR instead of looking for a character inside
7606         SLASH_STRING.  Include filenames.h.
7607         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7608         relocate_gdb_directory works when passed gdb_program_name.
7609         Include windows-nat.h.
7610
7611 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7612
7613         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7614         * remote.c (trace_error): Remove the special handling of '2'.
7615         (readchar) <SERIAL_EOF>
7616         (readchar) <SERIAL_ERROR>
7617         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7618         (remote_get_trace_status): Call throw_exception if EX is
7619         TARGET_CLOSE_ERROR.
7620         * utils.c (perror_with_name): Rename to ...
7621         (throw_perror_with_name): ... here.  New parameter errcode, describe it
7622         in the function comment.
7623         (perror_with_name): New function wrapper.
7624         * utils.h (enum errors): New stub declaration.
7625         (throw_perror_with_name): New declaration.
7626
7627 2013-03-22  Pedro Alves  <palves@redhat.com>
7628             Yao Qi  <yao@codesourcery.com>
7629             Mark Kettenis  <kettenis@gnu.org>
7630
7631         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7632         Don't let the user set the value to UINT_MAX directly.
7633         <var_integer>: Don't let the user set the value to INT_MAX
7634         directly.
7635
7636 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7637
7638         * remote.c (remote_unpush_target): New function.
7639         (remote_open_1): Remove two pop_target calls, update one comment, add
7640         comment to target_preopen call.  Replace pop_target call by
7641         remote_unpush_target call.
7642         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7643         pop_target calls by remote_unpush_target calls.
7644
7645 2013-03-22  Pedro Alves  <palves@redhat.com>
7646
7647         * linux-nat.c (linux_child_follow_fork): Don't call
7648         linux_enable_event_reporting.
7649         (linux_handle_extended_wait): Don't call
7650         linux_enable_event_reporting.
7651
7652 2013-03-22  Pedro Alves  <palves@redhat.com>
7653
7654         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7655         use it to rewrite the trampoline buffers with type gdb_byte[], and
7656         undefine the macro.  Remove char* cast.
7657
7658 2013-03-21  Doug Evans  <dje@google.com>
7659
7660         New commands "mt set per-command {space,time,symtab} {on,off}".
7661         * NEWS: Add entry.
7662         * event-top.c: #include "maint.h".
7663         * main.c: #include "maint.h".
7664         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7665         timeval-utils.h, maint.h, cli/cli-setshow.h.
7666         (per_command_time, per_command_space): New static globals.
7667         (per_command_symtab): New static global.
7668         (per_command_setlist, per_command_showlist): New static globals.
7669         (struct cmd_stats): Move here from utils.c.
7670         (set_per_command_time): Renamed from set_display_time in utils.c
7671         and moved here.  All callers updated.
7672         (set_per_command_space): Renamed from set_display_space in utils.c
7673         and moved here.  All callers updated.
7674         (count_symtabs_and_blocks): New function.
7675         (report_command_stats): Moved here from utils.c.  Add support for
7676         printing symtab stats.  Only print data if enabled before command
7677         executed.
7678         (make_command_stats_cleanup): Ditto.
7679         (sert_per_command_cmd, show_per_command_cmd): New functions.
7680         (_initialize_maint_cmds): Add new commands
7681         mt set per-command {space,time,symtab} {on,off}.
7682         * maint.h: New file.
7683         * top.c: #include "maint.h".
7684         * utils.c (reset_prompt_for_continue_wait_time): New function.
7685         (get_prompt_for_continue_wait_time): New function.
7686         * utils.h (reset_prompt_for_continue_wait_time): Declare
7687         (get_prompt_for_continue_wait_time): Declare.
7688         (make_command_stats_cleanup): Moved to maint.h.
7689         (set_display_time, set_display_space): Moved to maint.h and renamed
7690         to set_per_command_time, set_per_command_space.
7691         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7692         parse_binary_operation and made non-static.  Don't call error,
7693         just return an error marker.  All callers updated.
7694         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7695
7696 2013-03-21  Tom Tromey  <tromey@redhat.com>
7697
7698         * symfile.c (alloc_section_addr_info): Update header.  Don't set
7699         'num_sections' field.
7700         (build_section_addr_info_from_section_table): Set 'num_sections'.
7701         (build_section_addr_info_from_bfd): Likewise.
7702         (build_section_addr_info_from_objfile): Remove dead loop
7703         condition.
7704         (free_section_addr_info): Unconditionally call xfree.
7705         (relative_addr_info_to_section_offsets, addrs_section_sort)
7706         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7707         condition.
7708         (syms_from_objfile_1): Remove dead 'if' condition.  Check
7709         'num_sections'.
7710         (add_symbol_file_command): Set 'num_sections'.
7711         * symfile-mem.c (symbol_file_add_from_memory): Set
7712         'num_sections'.
7713         * somread.c (som_symfile_offsets): Remove dead loop condition.
7714         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7715         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7716
7717 2013-03-21  Tom Tromey  <tromey@redhat.com>
7718
7719         * tracepoint.h (decode_agent_options): Add 'trace_string'
7720         argument.
7721         * tracepoint.c (decode_agent_options): Add 'trace_string'
7722         argument.
7723         (validate_actionline): Update.
7724         (collect_symbol): Add 'trace_string' argument.
7725         (struct add_local_symbols_data) <trace_string>: New field.
7726         (do_collect_symbol): Update.
7727         (add_local_symbols): Add 'trace_string' argument.
7728         (encode_actions_1): Update.
7729         (trace_dump_actions): Update.
7730         * dwarf2loc.c (access_memory): Update.
7731         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7732         * ax-general.c (new_agent_expr): Update.
7733         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7734         (gen_trace_for_return_address): Add argument.
7735         (trace_kludge, trace_string_kludge): Remove.
7736         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7737         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7738         (gen_trace_for_var): Add 'trace_string' argument.
7739         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7740         (gen_printf, agent_eval_command_one): Update.
7741
7742 2013-03-21  Tom Tromey  <tromey@redhat.com>
7743
7744         PR exp/15109:
7745         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7746         Handle FILENAME token.
7747
7748 2013-03-21  Tom Tromey  <tromey@redhat.com>
7749
7750         * c-exp.y (YYPRINT): Define.
7751         (c_print_token): New function.
7752
7753 2013-03-21  Tom Tromey  <tromey@redhat.com>
7754
7755         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7756
7757 2013-03-21  Yao Qi  <yao@codesourcery.com>
7758
7759         * ctf.c: Include "gdb_stat.h".
7760         [USE_WIN32API]: New macro 'mkdir'.
7761         (ctf_start): Use permission bits macros if they are defined.
7762
7763 2013-03-20  Keith Seitz  <keiths@redhat.com>
7764
7765         * breakpoint.h (struct breakpoint): Add comment to
7766         extra_string indicating that this member is mallod'd.
7767         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7768
7769 2013-03-20  Pedro Alves  <palves@redhat.com>
7770
7771         PR gdb/15289
7772
7773         * cli/cli-setshow.c (do_set_command)
7774         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7775         the result of parsing the command argument.  Throw error if the
7776         value is greater than UINT_MAX.  Print the invalid value with
7777         plongest.
7778         <var_integer, var_zinteger>: Use LONGEST for variable holding the
7779         result of parsing the command argument.  Throw error if the value
7780         is greater than INT_MAX, not greater or equal.  Also throw error
7781         if the value is less than INT_MIN.  Print the invalid value with
7782         plongest.
7783         <var_zuinteger_unlimited>: Throw error if the value is greater
7784         than INT_MAX, not greater or equal.
7785         (do_show_command) <var_integer, var_zinteger,
7786         var_zuinteger_unlimited>: Use %d for printing int, not %u.
7787
7788 2013-03-20  Tom Tromey  <tromey@redhat.com>
7789
7790         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7791         if possible.
7792         * dwarf2read.c (read_func_scope): Remove old FIXME.
7793         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7794         not LOC_COMPUTED.
7795         * findvar.c (symbol_read_needs_frame, default_read_var_value):
7796         Unconditionally call via computed ops, if possible.
7797         * printcmd.c (address_info): Unconditionally call via computed ops,
7798         if possible.
7799         * stack.c (read_frame_arg): Unconditionally call via computed ops,
7800         if possible.
7801         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7802         * tracepoint.c (scope_info): Unconditionally call via computed ops,
7803         if possible.
7804
7805 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7806             Tom Tromey  <tromey@redhat.com>
7807
7808         PR symtab/8421:
7809         * coffread.c (coff_register_index): New global.
7810         (process_coff_symbol, coff_read_enum_type): Set
7811         SYMBOL_ACLASS_INDEX.
7812         (_initialize_coffread): Initialize new global.
7813         * dwarf2loc.c (locexpr_find_frame_base_location)
7814         (dwarf2_block_frame_base_locexpr_funcs)
7815         (loclist_find_frame_base_location)
7816         (dwarf2_block_frame_base_loclist_funcs): New.
7817         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7818         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7819         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7820         (dwarf2_block_frame_base_loclist_funcs): New.
7821         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7822         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7823         globals.
7824         (read_func_scope): Update.
7825         (fixup_go_packaging, mark_common_block_symbol_computed)
7826         (var_decode_location, new_symbol_full, dwarf2_const_value):
7827         Set SYMBOL_ACLASS_INDEX.
7828         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
7829         (_initialize_dwarf2_read): Initialize new globals.
7830         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7831         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7832         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7833         globals.
7834         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7835         (_initialize_mdebugread): Initialize new globals.
7836         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7837         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7838         (stab_register_index, stab_regparm_index): New globals.
7839         (define_symbol, read_enum_type, common_block_end): Set
7840         SYMBOL_ACLASS_INDEX.
7841         (_initialize_stabsread): Initialize new globals.
7842         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7843         globals.
7844         (MAX_SYMBOL_IMPLS): New define.
7845         (register_symbol_computed_impl, register_symbol_block_impl)
7846         (register_symbol_register_impl)
7847         (initialize_ordinary_address_classes): New functions.
7848         (_initialize_symtab): Call initialize_ordinary_address_classes.
7849         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7850         (struct symbol_impl): New.
7851         (SYMBOL_ACLASS_BITS): New define.
7852         (struct symbol) <aclass, ops>: Remove fields.
7853         <aclass_index>: New field.
7854         (symbol_impls): Declare.
7855         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7856         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7857         (register_symbol_computed_impl, register_symbol_block_impl)
7858         (register_symbol_register_impl): Declare.
7859         (struct symbol_computed_ops): Add location_has_loclist.
7860         (struct symbol_block_ops): New.
7861         (SYMBOL_BLOCK_OPS): New.
7862         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7863
7864 2013-03-20  Tom Tromey  <tromey@redhat.com>
7865
7866         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7867         (print_partial_symbols, recursively_search_psymtabs): Use
7868         PSYMBOL_CLASS.
7869
7870 2013-03-20  Pierre Muller  <muller@sourceware.org>
7871
7872         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7873         addtion, subtraction, multiplication and division binary operator.
7874
7875 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7876
7877         Code cleanup.
7878         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7879         * bsd-kvm.c (bsd_kvm_close): Likewise.
7880         * bsd-uthread.c (bsd_uthread_close): Likewise.
7881         * corelow.c (core_close): Likewise.
7882         (core_close_cleanup): Remove parameter quitting from a caller.
7883         * event-top.c (async_disconnect): Likewise.
7884         * exec.c (exec_close_1): Remove parameter quitting.
7885         * go32-nat.c (go32_close): Likewise.
7886         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
7887         parameter quitting from a caller.
7888         * mips-linux-nat.c (super_close): Remove parameter quitting from the
7889         variable.
7890         (mips_linux_close): Remove parameter quitting.  Remove parameter
7891         quitting from a caller.
7892         * monitor.c (monitor_close): Remove parameter quitting.
7893         * monitor.h (monitor_close): Likewise.
7894         * record-btrace.c (record_btrace_close): Likewise.
7895         * record-full.c (record_full_close): Likewise.
7896         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7897         it also from fprintf_unfiltered.
7898         * remote-mips.c (mips_close): Remove parameter quitting.
7899         (mips_detach): Remove parameter quitting from a caller.
7900         * remote-sim.c (gdbsim_close): Remove parameter quitting.
7901         (gdbsim_close): Remove duplicate function comment.  Remove parameter
7902         quitting and remove it also from printf_filtered.
7903         * remote.c (remote_close): Remove parameter quitting.
7904         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7905         * target.c (update_current_target): Remove parameter int from to_close
7906         de_fault.
7907         (push_target, unpush_target, pop_target): Remove parameter quitting from
7908         a caller.
7909         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7910         Remove parameter quitting from a caller.
7911         (target_preopen): Remove parameter quitting from a caller.
7912         (target_close): Remove parameter quitting.  Remove parameter quitting
7913         from a caller two times.  Remove parameter quitting also from
7914         fprintf_unfiltered.
7915         * target.h (struct target_ops): Remove parameter quitting and as int
7916         from fields to_xclose and to_close.
7917         (extern struct target_ops current_target):
7918         (target_close, pop_all_targets): Remove parameter quitting.  Update the
7919         comment.
7920         (pop_all_targets_above): Remove parameter quitting.
7921         * top.c (quit_target): Remove parameter quitting from a caller.
7922         * tracepoint.c (tfile_close): Remove parameter quitting.
7923         * windows-nat.c (windows_close): Remove parameter quitting.
7924
7925 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
7926
7927         * windows-nat.c (handle_output_debug_string): Replace call
7928         to string_to_core_addr with call to strtoull.
7929
7930 2013-03-20  Yao Qi  <yao@codesourcery.com>
7931
7932         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7933         and write it to CTF metadata.
7934
7935 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
7936
7937         * windows-nat.c (handle_output_debug_string): Change type of n to
7938         SIZE_T to avoid crash on 64 bit systems.
7939
7940 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
7941
7942         * python/python-internal.h (HAVE_SNPRINTF)
7943         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7944         about redefinition of snprintf by pyerrors.h.
7945
7946 2013-03-15  Steve Ellcey  <sellcey@mips.com>
7947
7948         * remote-sim.c (sim_command_completer): Make char arguments const.
7949
7950 2013-03-15  Tom Tromey  <tromey@redhat.com>
7951
7952         PR c++/15116:
7953         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7954
7955 2013-03-14  Tom Tromey  <tromey@redhat.com>
7956
7957         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7958         New fields.
7959         (get_file_crc): Move from symfile.c.
7960         (gdb_bfd_crc): New function.
7961         * gdb_bfd.h (gdb_bfd_crc): Declare.
7962         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7963         * symfile.c (get_file_crc): Move to gdb_bfd.c.
7964         (separate_debug_file_exists): Use gdb_bfd_crc.
7965
7966 2013-03-14  Tom Tromey  <tromey@redhat.com>
7967
7968         * symfile.c (get_debug_link_info): Remove.
7969         (find_separate_debug_file_by_debuglink): Use
7970         bfd_get_debug_link_info.
7971
7972 2013-03-14  Tom Tromey  <tromey@redhat.com>
7973
7974         * symtab.c (error_in_psymtab_expansion): New function.
7975         (lookup_symbol_aux_quick)
7976         (basic_lookup_transparent_type_quick): Remove "last resort"
7977         code.  Use error_in_psymtab_expansion.
7978
7979 2013-03-14  Doug Evans  <dje@google.com>
7980             Jan Kratochvil  <jan.kratochvil@redhat.com>
7981
7982         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7983         any successful compare_filenames_for_search or FILENAME_CMP.
7984         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7985         * symtab.c (iterate_over_some_symtabs): Likewise.
7986
7987 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7988
7989         * source.c (print_source_lines_base): Make a local copy of
7990         symtab_to_fullname.
7991
7992 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
7993             Jan Kratochvil  <jan.kratochvil@redhat.com>
7994
7995         * source.c (print_source_lines_base): Suppress "file" for TUI.
7996
7997 2013-03-14  Keith Seitz  <keiths@redhat.com>
7998             Alan Matsuoka  <alanm@redhat.com>
7999
8000         PR c++/15203
8001         PR c++/15210
8002         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8003         TYPE_CODE_METHOD.
8004         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8005         symbols.
8006
8007 2013-03-14  Yao Qi  <yao@codesourcery.com>
8008
8009         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8010         status to tfile if trace is stopped by command 'tstop'.
8011
8012 2013-03-14  Yao Qi  <yao@codesourcery.com>
8013
8014         * tracepoint.c (tfile_write_status): Write trace notes and user
8015         name into tfile if they are not NULL.
8016
8017 2013-03-14  Hui Zhu  <hui@codesourcery.com>
8018             Yao Qi  <yao@codesourcery.com>
8019
8020         * Makefile.in (REMOTE_OBS): Add ctf.o.
8021         (SFILES): Add ctf.c.
8022         (HFILES_NO_SRCDIR): Add ctf.h.
8023         * ctf.c, ctf.h: New files.
8024         * tracepoint.c: Include 'ctf.h'.
8025         (collect_pseudocommand): Remove static.
8026         (trace_save_command): Parse option "-ctf".
8027         Produce different trace file writers per option.
8028         Adjust output message.
8029         (trace_save_tfile, trace_save_ctf): New.
8030         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8031         * mi/mi-main.c: Include 'ctf.h'.
8032         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
8033         trace_save_tfile or trace_save_ctf.
8034         * NEWS: Mention these changes.
8035
8036 2013-03-14  Yao Qi  <yao@codesourcery.com>
8037
8038         * tracepoint.c (trace_file_writer_xfree): New.
8039         (struct tfile_writer_data): New.
8040         (tfile_dtor, tfile_can_target_save, tfile_start): New.
8041         (tfile_write_header, tfile_write_regblock_type): New.
8042         (tfile_write_status, tfile_write_uploaded_tsv): New.
8043         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8044         (tfile_write_raw_data, (tfile_end): New.
8045         (tfile_write_ops): New global variable.
8046         (TRACE_WRITE_R_BLOCK): New macro.
8047         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8048         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8049         (TRACE_WRITE_V_BLOCK): New macro.
8050         (trace_save): Add extra one parameter WRITER.  Make it static.
8051         Use WRITER to writer trace.
8052         (tfile_trace_file_writer_new): New.
8053         (trace_save_command): Caller update.
8054         (trace_save_tfile): Write trace data in TFILE format.
8055         * tracepoint.h (struct trace_frame_write_ops): New.
8056         (struct trace_file_write_ops): New.
8057         (struct trace_file_writer): New.
8058         (trace_save): Remove its declaration.
8059         (trace_save_tfile): Declare it.
8060         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8061         instead of trace_save.
8062
8063 2013-03-13  Pedro Alves  <palves@redhat.com>
8064
8065         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8066
8067 2013-03-13  Pedro Alves  <palves@redhat.com>
8068
8069         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8070         commented out code.
8071         * demangle.c (current_demangling_style_string): Make it const.
8072         (set_demangling_command): Assert the demangling style is known.
8073         Remove all handling of unknown styles.  Set
8074         'current_demangling_style_string' to an element of the
8075         demangling_style_names array.
8076         (set_demangling_style): Delete.
8077         (_initialize_demangler): Set current_demangling_style_string to the
8078         element of the demangling_style_names array that corresponds to
8079         the default demangling style.  Remove FIXME note.  Don't call
8080         set_demangling_style.
8081         * gdb-demangle.h (set_demangling_style): Remove declaration.
8082
8083 2013-03-13  Pedro Alves  <palves@redhat.com>
8084
8085         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8086         fields const.
8087         (ada_make_symbol_completion_list): Make "text0" parameter const.
8088         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8089         * breakpoint.c (condition_completer): Make "text" and "word"
8090         parameters const.  Adjust.
8091         (check_tracepoint_command): Adjust to validate_actionline
8092         prototype change.
8093         (catch_syscall_completer): Make "text" and "word" parameters
8094         const.
8095         * cli/cli-cmds.c (show_user): Make "comname" local const.
8096         (valid_command_p): Make "command" parameter const.
8097         (alias_command): Make "alias_prefix" and "command_prefix" locals
8098         const.
8099         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8100         (add_alias_cmd): Make "name" and "oldname" parameters const.
8101         Adjust.  No longer make copy of OLDNAME.
8102         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8103         (add_setshow_cmd_full, add_setshow_enum_cmd)
8104         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8105         (add_setshow_filename_cmd, add_setshow_string_cmd)
8106         (add_setshow_string_noescape_cmd)
8107         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8108         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8109         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8110         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8111         Make "name" parameter const.
8112         (help_cmd): Rename "command" parameter to "arg".  New const local
8113         "command".
8114         (find_cmd): Make "command" parameter const.
8115         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
8116         deprecated_cmd_warning prototype change.
8117         (undef_cmd_error): Make "cmdtype" parameter const.
8118         (lookup_cmd): Make "line" parameter const.
8119         (deprecated_cmd_warning): Change type of "text" parameter to
8120         pointer to const char, from pointer to pointer to char.  Adjust.
8121         (lookup_cmd_composition): Make "text" parameter const.
8122         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8123         parameters const.
8124         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8125         const.
8126         * cli/cli-script.c (validate_comname): Make "tem" local const.
8127         (define_command): New const local "tem_c".  Use it in calls to
8128         lookup_cmd.
8129         (document_command): Make "tem" and "comfull" locals const.
8130         (show_user_1): Make "prefix" and "name" parameters const.
8131         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8132         const.
8133         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8134         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8135         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8136         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8137         (complete_on_enum, add_setshow_enum_cmd)
8138         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8139         (add_setshow_filename_cmd, add_setshow_string_cmd)
8140         (add_setshow_string_noescape_cmd)
8141         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8142         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8143         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8144         Change prototypes, constifying strings.
8145         * completer.c (noop_completer, filename_completer): Make "text"
8146         and "prefix" parameters const.
8147         (location_completer, expression_completer)
8148         (complete_line_internal): Make "text" and "prefix" parameters
8149         const and adjust.
8150         (command_completer, signal_completer): Make "text" and "prefix"
8151         parameters const.
8152         * completer.h (noop_completer, filename_completer)
8153         (expression_completer, location_completer, command_completer)
8154         (signal_completer): Change prototypes.
8155         * corefile.c (complete_set_gnutarget): Make "text" and "word"
8156         parameters const.
8157         * cp-abi.c (cp_abi_completer): Likewise.
8158         * expression.h (parse_expression_for_completion): Change
8159         prototype.
8160         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8161         parameters const.
8162         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8163         * infrun.c (handle_completer): Make "text" and "word" parameters
8164         const.
8165         * interps.c (interpreter_completer): Make "text" and "word"
8166         parameters const.
8167         * language.h (struct language_defn)
8168         <la_make_symbol_completion_list>: Make "text" and "word"
8169         parameters const.
8170         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8171         (parse_exp_in_context): Rename to ...
8172         (parse_exp_in_context_1): ... this.
8173         (parse_exp_in_context): Reimplement, with const hack from
8174         parse_exp_1.
8175         (parse_expression_for_completion): Make "string" parameter const.
8176         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8177         to pointer to const char.  Adjust.
8178         (print_command_1): Make "exp" parameter const.
8179         (output_command): Rename to ...
8180         (output_command_const): ... this.  Make "exp" parameter const.
8181         (output_command): Reimplement.
8182         (x_command): Adjust.
8183         (display_command): Rename "exp" parameter to "arg".  New "exp"
8184         local, const version of "arg".
8185         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8186         "cmd_name" local const.
8187         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8188         call.
8189         (cmdpy_completer): Make "text" and "word" parameters const.
8190         (gdbpy_parse_command_name): Make "prefix_text2" local const.
8191         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8192         const.
8193         * remote.c (_initialize_remote): Make "cmd_name" local const.
8194         * symtab.c (language_search_unquoted_string): Make "text" and "p"
8195         parameters const.  Adjust.
8196         (completion_list_add_fields): Make "sym_text", "text" and "word"
8197         parameters const.
8198         (struct add_name_data) <sym_text, text, word>: Make fields const.
8199         (default_make_symbol_completion_list_break_on): Make "text" and
8200         "word" parameters const.  Adjust locals.
8201         (default_make_symbol_completion_list)
8202         (make_symbol_completion_list, make_symbol_completion_type)
8203         (make_symbol_completion_list_fn): Make "text" and "word"
8204         parameters const.
8205         (make_file_symbol_completion_list): Make "text", "word" and
8206         "srcfile" parameters const.  Adjust locals.
8207         (add_filename_to_list): Make "text" and "word" parameters const.
8208         (struct add_partial_filename_data) <text, word>: Make fields
8209         const.
8210         (make_source_files_completion_list): Make "text" and "word"
8211         parameters const.
8212         * symtab.h (default_make_symbol_completion_list_break_on)
8213         (default_make_symbol_completion_list, make_symbol_completion_list)
8214         (make_symbol_completion_type enum type_code)
8215         (make_symbol_completion_list_fn make_file_symbol_completion_list)
8216         (make_source_files_completion_list): Change prototype.
8217         * top.c (execute_command): Adjust to pass pointer to pointer to
8218         const char to lookup_cmd, and to deprecated_cmd_warning prototype
8219         change.
8220         (set_verbose): Make "cmdname" local const.
8221         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8222         and adjust.
8223         (validate_actionline): Make "line" parameter a pointer to const
8224         char, and adjust.
8225         (encode_actions_1): Make "action_exp" local const, and adjust.
8226         (encode_actions): Adjust.
8227         (replace_comma): Delete.
8228         (trace_dump_actions): Make "action_exp" and "next_comma" locals
8229         const, and adjust.  Don't frob the action string while splitting
8230         it at commas.  Instead, make a copy of each split substring in
8231         turn.
8232         (trace_dump_command): Adjust to validate_actionline prototype
8233         change.
8234         * tracepoint.h (decode_agent_options, decode_agent_options)
8235         (encode_actions, validate_actionline): Change prototypes.
8236         * valprint.h (output_command): Delete declaration.
8237         (output_command_const): Declare.
8238         * value.c (function_destroyer): Cast const away in xfree call.
8239
8240 2013-03-13  Pedro Alves  <palves@redhat.com>
8241
8242         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8243         rather than casting 'const char * const *' to 'const char **'.
8244         * ada-lex.l (processInt): Make "trailer" local const.  Remove
8245         'const char **' cast.
8246         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8247         locals, and use those as strtol output pointer, instead than doing
8248         invalid casts to from 'const char **' to 'char **'.
8249         (_initialize_demangle): Remove cast.
8250         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8251         locals, and use those as strtol output pointer, instead than doing
8252         invalid casts to from 'const char **' to 'char **'.
8253         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8254         casts.
8255         * stap-probe.c (stap_parse_register_operand)
8256         (stap_parse_single_operand): Likewise.
8257
8258 2013-03-13  Yao Qi  <yao@codesourcery.com>
8259
8260         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8261         the last matched 'V' blcok in trace frame.
8262
8263 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8264
8265         * NEWS: Create a new section for the next release branch.
8266         Rename the section of the current branch, now that it has
8267         been cut.
8268
8269 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
8270
8271         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8272         * version.in: Bump version to 7.6.50.20130312-cvs.
8273
8274 2013-03-12  Keith Seitz  <keiths@redhat.com>
8275
8276         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8277         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8278         Remove temporary copy of input string.
8279         (mi_execute_command_wrapper): Make "cmd" const.
8280         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8281         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8282         Use const strings.
8283         (mi_parse): Make "cmd" const.
8284         Use const strings.
8285         * mi/mi-parse.h (mi_parse): Make "cmd" const.
8286
8287 2013-03-12  Keith Seitz  <keiths@redhat.com>
8288
8289         * ada-lang.c (ada_read_renaming_var_value): Pass const
8290         pointer to expression string to parse_exp_1.
8291         (create_excep_cond_exprs): Likewise.
8292         * ax-gdb.c (agent_eval_command_one): Likewise.
8293         (maint_agent_printf_command): Likewise.
8294         Constify much of the string handling/parsing.
8295         * breakpoint.c (set_breakpoint_condition): Pass const
8296         pointer to expression string to parse_exp_1.
8297         (update_watchpoint): Likewise.
8298         (parse_cmd_to_aexpr): Constify string handling.
8299         Pass const pointer to parse_exp_1.
8300         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8301         (find_condition_and_thread): Likewise.
8302         Make TOK const.
8303         (watch_command_1): Make "arg" const.
8304         Constify string handling.
8305         Copy the expression string instead of changing the input
8306         string.
8307         (update_breakpoint_location): Pass const pointer to
8308         parse_exp_1.
8309         * eval.c (parse_and_eval_address): Make "exp" const.
8310         (parse_to_comma_and_eval): Make "expp" const.
8311         (parse_and_eval): Make "exp" const.
8312         * expression.h (parse_expression): Make argument const.
8313         (parse_exp_1): Make first argument const.
8314         * findcmd.c (parse_find_args): Treat "args" as const.
8315         * linespec.c (parse_linespec): Pass const pointer to
8316         linespec_expression_to_pc.
8317         (linespec_expression_to_pc): Make "exp_ptr" const.
8318         * parse.c (parse_exp_1): Make "stringptr" const.
8319         Make a copy of the expression to pass to parse_exp_in_context until
8320         this whole interface can be constified.
8321         (parse_expression): Make "string" const.
8322         * printcmd.c (ui_printf): Treat "arg" as const.
8323         Handle const strings.
8324         * tracepoint.c (validate_actionline): Pass const pointer to
8325         all calls to parse_exp_1.
8326         (encode_actions_1): Likewise.
8327         * value.h (parse_to_comma_and_eval): Make argument const.
8328         (parse_and_eval_address): Likewise.
8329         (parse_and_eval): Likewise.
8330         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8331         (varobj_set_value): Likewise.
8332         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8333         constify string handling.
8334         Pass const pointers to parse_and_eval_address and
8335         parse_to_comman_and_eval.
8336         * cli/cli-utils.c (skip_to_space): Rename to ...
8337         (skip_to_space_const): ... this. Handle const strings.
8338         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8339         skip_to_space_const.
8340         (skip_to_space_const): Declare.
8341         * common/format.c (parse_format_string): Make "arg" const.
8342         Handle const strings.
8343         * common/format.h (parse_format_string): Make "arg" const.
8344         * gdbserver/ax.c (ax_printf): Make "format" const.
8345         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8346         of the expression string.
8347
8348 2013-03-12  Hui Zhu  <hui@codesourcery.com>
8349
8350         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8351
8352 2013-03-12  Yao Qi  <yao@codesourcery.com>
8353             Hui Zhu  <hui@codesourcery.com>
8354
8355         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8356         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8357         DW_OP_deref_size.
8358
8359 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
8360
8361         * ada-lex.l (rules): Only recognize 'thread' as a
8362         delimiter when followed by numerals, as for c-exp.y.
8363         Use new rewind_to_char function to rewind the input for
8364         expression-delimiting tokens.
8365         (rewind_to_char): New function.
8366
8367 2013-03-11  Pedro Alves  <palves@redhat.com>
8368             Jan Kratochvil  <jan.kratochvil@redhat.com>
8369
8370         * configure: Regenerate.
8371         * configure.ac (check dynamic export flag): Link python test with
8372         $PYTHON_LIBS.
8373
8374 2013-03-11  Doug Evans  <dje@google.com>
8375             Keith Seitz  <keiths@redhat.com>
8376
8377         * linespec.c (find_linespec_symbols): Call find_function_symbols
8378         first, and then call lookup_prefix_sym/find_method.
8379
8380 2013-03-11  Pedro Alves  <palves@redhat.com>
8381
8382         * charset.c (convert_between_encodings): Don't cast between
8383         different pointer to pointer types.  Instead, make the 'inp' local
8384         be of the type iconv expects.
8385         (wchar_iterate): Don't cast between different pointer to pointer
8386         types.  Instead, use new pointer local of the type iconv expects.
8387         * target.c (target_read_stralloc, target_fileio_read_stralloc):
8388         Add new local of type char pointer, and use it to get a
8389         char/string view of the byte buffer, instead of casting between
8390         pointer to pointer types.
8391
8392 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
8393
8394         * remote.c (remote_set_trace_buffer_size): Move != operator
8395         to the start of next line to fix an ARI warning.
8396
8397 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8398
8399         * NEWS: Add record changes.
8400
8401 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8402
8403         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8404         the instruction history disassembly.
8405         * disasm.c (dump_insns): Omit the pc prefix, if requested.
8406         * disasm.h (DISASSEMBLY_OMIT_PC): New.
8407
8408 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8409
8410         * Makefile.in (SFILES): Add record-btrace.c
8411         (COMMON_OBS): Add record-btrace.o
8412         * record-btrace.c: New.
8413         * objfiles.c: Include btrace.h.
8414         (free_objfile): call btrace_free_objfile.
8415
8416 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8417
8418         * target.c (target_call_history, target_call_history_from,
8419         target_call_history_range): New.
8420         * target.h (target_ops) <to_call_history, to_call_history_from,
8421         to_call_history_range>: New fields.
8422         (target_call_history, target_call_history_from,
8423         target_call_history_range): New declaration.
8424         * record.c (get_call_history_modifiers, cmd_record_call_history,
8425         record_call_history_size): New.
8426         (_initialize_record): Add the "record function-call-history" command.
8427         Add "set/show record function-call-history-size" commands.
8428         * record.h (record_print_flag): New.
8429
8430 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8431
8432         * target.h (target_ops) <to_insn_history, to_insn_history_from,
8433         to_insn_history_range>: New fields.
8434         (target_insn_history): New.
8435         (target_insn_history_from): New.
8436         (target_insn_history_range): New.
8437         * target.c (target_insn_history): New.
8438         (target_insn_history_from): New.
8439         (target_insn_history_range): New.
8440         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8441         (record_insn_history_size): New.
8442         (get_insn_number): New.
8443         (get_context_size): New.
8444         (no_chunk): New.
8445         (get_insn_history_modifiers): New.
8446         (cmd_record_insn_history): New.
8447         (_initialize_record): Add "set/show record instruction-history-size"
8448         command. Add "record instruction-history" command.
8449
8450 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8451
8452         * record.h (record_disconnect): New.
8453         (record_detach): New.
8454         (record_mourn_inferior): New.
8455         (record_kill): New.
8456         * record-full.c (record_disconnect, record_detach,
8457         record_mourn_inferior, record_kill): Move to...
8458         * record.c: ...here.
8459         (DEBUG): New.
8460         (record_stop): New.
8461         (record_unpush): New.
8462         (cmd_record_stop): Call record_stop. Replace unpush_target
8463         call with record_unpush call.
8464         (record_disconnect, record_detach): Assert that the target
8465         is of record stratum. Call record_unpush, record_stop, and
8466         DEBUG.
8467         (record_mourn_inferior, record_kill): Assert that the target
8468         is of record stratum. Call record_unpush and DEBUG.
8469
8470 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8471
8472         * record-full.h, record-full.c (record_memory_query): Rename
8473         to ...
8474         (record_full_memory_query): ...this. Update all users.
8475         (record_arch_list_add_reg): Rename to ...
8476         (record_full_arch_list_add_reg): ...this. Update all users.
8477         (record_arch_list_add_mem): Rename to ...
8478         (record_full_arch_list_add_mem): ...this. Update all users.
8479         (record_arch_list_add_end): Rename to ...
8480         (record_full_arch_list_add_end): ...this. Update all users.
8481         (record_gdb_operation_disable_set): Rename to ...
8482         (record_full_gdb_operation_disable_set): ...this.
8483         Update all users.
8484
8485 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8486
8487         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8488         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8489         (RECORD_IS_REPLAY): Renamed to ...
8490         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8491         (RECORD_FILE_MAGIC): Renamed to ...
8492         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8493         (record_mem_entry): Renamed to ...
8494         (record_full_mem_entry): ... this. Updated all users.
8495         (record_reg_entry): Renamed to ...
8496         (record_full_reg_entry): ... this. Updated all users.
8497         (record_end_entry): Renamed to ...
8498         (record_full_end_entry): ... this. Updated all users.
8499         (record_type) <record_end, record_reg, record_mem>: Renamed
8500         to ...
8501         (record_full_type) <record_full_end, record_full_reg,
8502         record_full_mem>: ... this. Updated all users.
8503         (record_entry): Renamed to ...
8504         (record_full_entry): ... this. Updated all users.
8505         (record_core_buf_entry): Renamed to ...
8506         (record_full_core_buf_entry): ... this. Updated all users.
8507         (record_core_regbuf): Renamed to ...
8508         (record_full_core_regbuf): ... this. Updated all users.
8509         (record_core_start): Renamed to ...
8510         (record_full_core_start): ... this. Updated all users.
8511         (record_core_end): Renamed to ...
8512         (record_full_core_end): ... this. Updated all users.
8513         (record_core_buf_list): Renamed to ...
8514         (record_full_core_buf_list): ... this. Updated all users.
8515         (record_first): Renamed to ...
8516         (record_full_first): ... this. Updated all users.
8517         (record_list): Renamed to ...
8518         (record_full_list): ... this. Updated all users.
8519         (record_arch_list_head): Renamed to ...
8520         (record_full_arch_list_head): ... this. Updated all users.
8521         (record_arch_list_tail): Renamed to ...
8522         (record_full_arch_list_tail): ... this. Updated all users.
8523         (record_stop_at_limit): Renamed to ...
8524         (record_full_stop_at_limit): ... this. Updated all users.
8525         (record_insn_max_num): Renamed to ...
8526         (record_full_insn_max_num): ... this. Updated all users.
8527         (record_insn_num): Renamed to ...
8528         (record_full_insn_num): ... this. Updated all users.
8529         (record_insn_count): Renamed to ...
8530         (record_full_insn_count): ... this. Updated all users.
8531         (record_ops): Renamed to ...
8532         (record_full_ops): ... this. Updated all users.
8533         (record_core_ops): Renamed to ...
8534         (record_full_core_ops): ... this. Updated all users.
8535         (set_record_cmdlist): Renamed to ...
8536         (set_record_full_cmdlist): ... this. Updated all users.
8537         (show_record_cmdlist): Renamed to ...
8538         (show_record_full_cmdlist): ... this. Updated all users.
8539         (record_cmdlist): Renamed to ...
8540         (record_full_cmdlist): ... this. Updated all users.
8541         (record_beneath_to_resume_ops): Renamed to ...
8542         (record_full_beneath_to_resume_ops): ... this. Updated all users.
8543         (record_beneath_to_resume): Renamed to ...
8544         (record_full_beneath_to_resume): ... this. Updated all users.
8545         (record_beneath_to_wait_ops): Renamed to ...
8546         (record_full_beneath_to_wait_ops): ... this. Updated all users.
8547         (record_beneath_to_wait): Renamed to ...
8548         (record_full_beneath_to_wait): ... this. Updated all users.
8549         (record_beneath_to_store_registers_ops): Renamed to ...
8550         (record_full_beneath_to_store_registers_ops): ... this.
8551         Updated all users.
8552         (record_beneath_to_store_registers): Renamed to ...
8553         (record_full_beneath_to_store_registers): ... this.
8554         Updated all users.
8555         (record_beneath_to_xfer_partial_ops): Renamed to ...
8556         (record_full_beneath_to_xfer_partial_ops): ... this.
8557         Updated all users.
8558         (record_beneath_to_xfer_partial): Renamed to ...
8559         (record_full_beneath_to_xfer_partial): ... this.
8560         Updated all users.
8561         (record_beneath_to_insert_breakpoint): Renamed to ...
8562         (record_full_beneath_to_insert_breakpoint): ... this.
8563         Updated all users.
8564         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8565         (record_full_beneath_to_stopped_by_watchpoint): ... this.
8566         Updated all users.
8567         (record_beneath_to_stopped_data_address): Renamed to ...
8568         (record_full_beneath_to_stopped_data_address): ... this.
8569         Updated all users.
8570         (record_beneath_to_async): Renamed to ...
8571         (record_full_beneath_to_async): ... this. Updated all users.
8572         (record_goto_insn): Renamed to ...
8573         (record_full_goto_insn): ... this. Updated all users.
8574         (record_save): Renamed to ...
8575         (record_full_save): ... this. Updated all users.
8576         (record_reg_alloc): Renamed to ...
8577         (record_full_reg_alloc): ... this. Updated all users.
8578         (record_reg_release): Renamed to ...
8579         (record_full_reg_release): ... this. Updated all users.
8580         (record_mem_alloc): Renamed to ...
8581         (record_full_mem_alloc): ... this. Updated all users.
8582         (record_mem_release): Renamed to ...
8583         (record_full_mem_release): ... this. Updated all users.
8584         (record_end_alloc): Renamed to ...
8585         (record_full_end_alloc): ... this. Updated all users.
8586         (record_end_release): Renamed to ...
8587         (record_full_end_release): ... this. Updated all users.
8588         (record_entry_release): Renamed to ...
8589         (record_full_entry_release): ... this. Updated all users.
8590         (record_list_release): Renamed to ...
8591         (record_full_list_release): ... this. Updated all users.
8592         (record_list_release_following): Renamed to ...
8593         (record_full_list_release_following): ... this.
8594         Updated all users.
8595         (record_list_release_first): Renamed to ...
8596         (record_full_list_release_first): ... this. Updated all users.
8597         (record_arch_list_add): Renamed to ...
8598         (record_full_arch_list_add): ... this. Updated all users.
8599         (record_get_loc): Renamed to ...
8600         (record_full_get_loc): ... this. Updated all users.
8601         (record_check_insn_num): Renamed to ...
8602         (record_full_check_insn_num): ... this. Updated all users.
8603         (record_arch_list_cleanups): Renamed to ...
8604         (record_full_arch_list_cleanups): ... this. Updated all users.
8605         (record_message): Renamed to ...
8606         (record_full_message): ... this. Updated all users.
8607         (record_message_wrapper): Renamed to ...
8608         (record_full_message_wrapper): ... this. Updated all users.
8609         (record_message_wrapper_safe): Renamed to ...
8610         (record_full_message_wrapper_safe): ... this. Updated all users.
8611         (record_gdb_operation_disable): Renamed to ...
8612         (record_full_gdb_operation_disable): ... this. Updated all users.
8613         (record_hw_watchpoint): Renamed to ...
8614         (record_full_hw_watchpoint): ... this. Updated all users.
8615         (record_exec_insn): Renamed to ...
8616         (record_full_exec_insn): ... this. Updated all users.
8617         (record_restore): Renamed to ...
8618         (record_full_restore): ... this. Updated all users.
8619         (record_async_inferior_event_token): Renamed to ...
8620         (record_full_async_inferior_event_token): ... this.
8621         Updated all users.
8622         (record_async_inferior_event_handler): Renamed to ...
8623         (record_full_async_inferior_event_handler): ... this.
8624         Updated all users.
8625         (record_core_open_1): Renamed to ...
8626         (record_full_core_open_1): ... this. Updated all users.
8627         (record_open_1): Renamed to ...
8628         (record_full_open_1): ... this. Updated all users.
8629         (record_open): Renamed to ...
8630         (record_full_open): ... this. Updated all users.
8631         (record_close): Renamed to ...
8632         (record_full_close): ... this. Updated all users.
8633         (record_resume_step): Renamed to ...
8634         (record_full_resume_step): ... this. Updated all users.
8635         (record_resumed): Renamed to ...
8636         (record_full_resumed): ... this. Updated all users.
8637         (record_execution_dir): Renamed to ...
8638         (record_full_execution_dir): ... this. Updated all users.
8639         (record_resume): Renamed to ...
8640         (record_full_resume): ... this. Updated all users.
8641         (record_get_sig): Renamed to ...
8642         (record_full_get_sig): ... this. Updated all users.
8643         (record_sig_handler): Renamed to ...
8644         (record_full_sig_handler): ... this. Updated all users.
8645         (record_wait_cleanups): Renamed to ...
8646         (record_full_wait_cleanups): ... this. Updated all users.
8647         (record_wait_1): Renamed to ...
8648         (record_full_wait_1): ... this. Updated all users.
8649         (record_wait): Renamed to ...
8650         (record_full_wait): ... this. Updated all users.
8651         (record_stopped_by_watchpoint): Renamed to ...
8652         (record_full_stopped_by_watchpoint): ... this. Updated all users.
8653         (record_disconnect): Renamed to ...
8654         (record_full_disconnect): ... this. Updated all users.
8655         (record_detach): Renamed to ...
8656         (record_full_detach): ... this. Updated all users.
8657         (record_mourn_inferior): Renamed to ...
8658         (record_full_mourn_inferior): ... this. Updated all users.
8659         (record_kill): Renamed to ...
8660         (record_full_kill): ... this. Updated all users.
8661         (record_stopped_data_address): Renamed to ...
8662         (record_full_stopped_data_address): ... this. Updated all users.
8663         (record_registers_change): Renamed to ...
8664         (record_full_registers_change): ... this. Updated all users.
8665         (record_store_registers): Renamed to ...
8666         (record_full_store_registers): ... this. Updated all users.
8667         (record_xfer_partial): Renamed to ...
8668         (record_full_xfer_partial): ... this. Updated all users.
8669         (record_breakpoint): Renamed to ...
8670         (record_full_breakpoint): ... this. Updated all users.
8671         (record_breakpoint_p): Renamed to ...
8672         (record_full_breakpoint_p): ... this. Updated all users.
8673         (record_breakpoints): Renamed to ...
8674         (record_full_breakpoints): ... this. Updated all users.
8675         (record_sync_record_breakpoints): Renamed to ...
8676         (record_full_sync_record_breakpoints): ... this.
8677         Updated all users.
8678         (record_init_record_breakpoints): Renamed to ...
8679         (record_full_init_record_breakpoints): ... this.
8680         Updated all users.
8681         (record_insert_breakpoint): Renamed to ...
8682         (record_full_insert_breakpoint): ... this. Updated all users.
8683         (record_remove_breakpoint): Renamed to ...
8684         (record_full_remove_breakpoint): ... this. Updated all users.
8685         (record_can_execute_reverse): Renamed to ...
8686         (record_full_can_execute_reverse): ... this. Updated all users.
8687         (record_get_bookmark): Renamed to ...
8688         (record_full_get_bookmark): ... this. Updated all users.
8689         (record_goto_bookmark): Renamed to ...
8690         (record_full_goto_bookmark): ... this. Updated all users.
8691         (record_async): Renamed to ...
8692         (record_full_async): ... this. Updated all users.
8693         (record_can_async_p): Renamed to ...
8694         (record_full_can_async_p): ... this. Updated all users.
8695         (record_is_async_p): Renamed to ...
8696         (record_full_is_async_p): ... this. Updated all users.
8697         (record_execution_direction): Renamed to ...
8698         (record_full_execution_direction): ... this. Updated all users.
8699         (record_info): Renamed to ...
8700         (record_full_info): ... this. Updated all users.
8701         (record_delete): Renamed to ...
8702         (record_full_delete): ... this. Updated all users.
8703         (record_is_replaying): Renamed to ...
8704         (record_full_is_replaying): ... this. Updated all users.
8705         (record_goto_entry): Renamed to ...
8706         (record_full_goto_entry): ... this. Updated all users.
8707         (record_goto_begin): Renamed to ...
8708         (record_full_goto_begin): ... this. Updated all users.
8709         (record_goto_end): Renamed to ...
8710         (record_full_goto_end): ... this. Updated all users.
8711         (record_goto): Renamed to ...
8712         (record_full_goto): ... this. Updated all users.
8713         (init_record_ops): Renamed to ...
8714         (init_record_full_ops): ... this. Updated all users.
8715         (record_core_resume): Renamed to ...
8716         (record_full_core_resume): ... this. Updated all users.
8717         (record_core_kill): Renamed to ...
8718         (record_full_core_kill): ... this. Updated all users.
8719         (record_core_fetch_registers): Renamed to ...
8720         (record_full_core_fetch_registers): ... this. Updated all users.
8721         (record_core_prepare_to_store): Renamed to ...
8722         (record_full_core_prepare_to_store): ... this. Updated all users.
8723         (record_core_store_registers): Renamed to ...
8724         (record_full_core_store_registers): ... this. Updated all users.
8725         (record_core_xfer_partial): Renamed to ...
8726         (record_full_core_xfer_partial): ... this. Updated all users.
8727         (record_core_insert_breakpoint): Renamed to ...
8728         (record_full_core_insert_breakpoint): ... this. Updated all users.
8729         (record_core_remove_breakpoint): Renamed to ...
8730         (record_full_core_remove_breakpoint): ... this. Updated all users.
8731         (record_core_has_execution): Renamed to ...
8732         (record_full_core_has_execution): ... this. Updated all users.
8733         (init_record_core_ops): Renamed to ...
8734         (init_record_full_core_ops): ... this. Updated all users.
8735         (cmd_record_restore): Renamed to ...
8736         (cmd_record_full_restore): ... this. Updated all users.
8737         (record_save_cleanups): Renamed to ...
8738         (record_full_save_cleanups): ... this. Updated all users.
8739         (cmd_record_start): Renamed to ...
8740         (cmd_record_full_start): ... this. Updated all users.
8741         (set_record_insn_max_num): Renamed to ...
8742         (set_record_full_insn_max_num): ... this. Updated all users.
8743         (set_record_command): Renamed to ...
8744         (set_record_full_command): ... this. Updated all users.
8745         (show_record_command): Renamed to ...
8746         (show_record_full_command): ... this. Updated all users.
8747         (_initialize_record): Renamed to ...
8748         (_initialize_record_full): ... this. Updated all users.
8749
8750 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8751
8752         * record.h: Split into this and ...
8753         * record-full.h: ... this.
8754         * record.c: Split into this and ...
8755         * record-full.c: ... this.
8756         * target.h (target_ops): Add new fields to_info_record,
8757         to_save_record, to_delete_record, to_record_is_replaying,
8758         to_goto_record_begin, to_goto_record_end, to_goto_record.
8759         (target_info_record): New.
8760         (target_save_record): New.
8761         (target_supports_delete_record): New.
8762         (target_delete_record): New.
8763         (target_record_is_replaying): New.
8764         (target_goto_record_begin): New.
8765         (target_goto_record_end): New.
8766         (target_goto_record): New.
8767         * target.c (target_info_record): New.
8768         (target_save_record): New.
8769         (target_supports_delete_record): New.
8770         (target_delete_record): New.
8771         (target_record_is_replaying): New.
8772         (target_goto_record_begin): New.
8773         (target_goto_record_end): New.
8774         (target_goto_record): New.
8775         * record.h: Declare struct cmd_list_element.
8776         (record_cmdlist): New declaration.
8777         (set_record_cmdlist): New declaration.
8778         (show_record_cmdlist): New declaration.
8779         (info_record_cmdlist): New declaration.
8780         (cmd_record_goto): New declaration.
8781         * record.c: Remove unnecessary includes.
8782         Include inferior.h.
8783         (cmd_record_goto): Remove declaration.
8784         (record_cmdlist): Now extern. Initialize.
8785         (set_record_cmdlist): Now extern. Initialize.
8786         (show_record_cmdlist): Now extern. Initialize.
8787         (info_record_cmdlist): Now extern. Initialize.
8788         (find_record_target): New.
8789         (require_record_target): New.
8790         (cmd_record_start): Update.
8791         (cmd_record_delete): Remove target-specific code.
8792         Call target_delete_record.
8793         (cmd_record_stop): Unpush any record target.
8794         (set_record_insn_max_num): Move to record-full.c
8795         (set_record_command): Add comment.
8796         (show_record_command): Add comment.
8797         (info_record_command): Update comment.
8798         Remove target-specific code.
8799         Call the record target's to_info_record.
8800         (cmd_record_start): New.
8801         (cmd_record_goto): Now extern.
8802         Remove target-specific code.
8803         Call target_goto_begin,  target_goto_end, or target_goto.
8804         (_initialize_record): Move record target ops initialization to
8805         record-full.c.
8806         Change "record" command help text.
8807         Move "record restore", "record set", and "record show" commands to
8808         record-full.c.
8809         * Makefile.in (SFILES): Add record-full.c.
8810         (HFILES_NO_SRCDIR): Add record-full.h.
8811         (COMMON_OBS): Add record-full.o.
8812         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8813         * arm-tdep.c: Include record-full.h.
8814         * i386-linux-tdep.c: Include record-full.h instead of record.h.
8815         * i386-tdep.c: Include record-full.h.
8816         * infrun.c: Include record-full.h.
8817         * linux-record.c: Include record-full.h.
8818         * moxie-tdep.c: Include record-full.h.
8819         * record-full.c: Include record-full.h.
8820         Change module comment.
8821         (set_record_full_cmdlist): New.
8822         (show_record_full_cmdlist): New.
8823         (record_full_cmdlist): New.
8824         (record_goto_insn): New declaration.
8825         (record_save): New declaration.
8826         (record_check_insn_num): Change query string.
8827         (record_info): New.
8828         (record_delete): New.
8829         (record_is_replaying): New.
8830         (record_goto_entry): New.
8831         (record_goto_begin): New.
8832         (record_goto_end): New.
8833         (record_goto): New.
8834         (init_record_ops): Update.
8835         (init_record_core_ops): Update.
8836         (cmd_record_save): Rename to record_save. Remove target and arg checks.
8837         (cmd_record_start): New.
8838         (set_record_insn_max_num): Moved from record.c
8839         (set_record_full_command): New.
8840         (show_record_full_command): New.
8841         (_initialize_record_full): New.
8842
8843 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8844
8845         * target.h (add_deprecated_target_alias): New.
8846         * target.c (add_deprecated_target_alias): New.
8847
8848 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8849
8850         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8851         and signal.h.
8852         (linux_supports_btrace): Add kernel and
8853         cpuid check.
8854         (kernel_supports_btrace): New function.
8855         (cpu_supports_btrace): New function.
8856         (intel_supports_btrace): New function.
8857
8858 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8859
8860         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8861         * remote.c: Include btrace.h.
8862         (struct btrace_target_info): New struct.
8863         (remote_supports_btrace): New function.
8864         (send_Qbtrace): New function.
8865         (remote_enable_btrace): New function.
8866         (remote_disable_btrace): New function.
8867         (remote_teardown_btrace): New function.
8868         (remote_read_btrace): New function.
8869         (init_remote_ops): Add btrace ops.
8870         (enum <unnamed>): Add btrace packets.
8871         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8872         (_initialize_remote): Add packet configuration for branch tracing.
8873
8874 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8875
8876         * features/btrace.dtd: New file.
8877         * Makefile.in (XMLFILES): Add btrace.dtd.
8878         * btrace.h (parse_xml_btrace): New declaration.
8879         * btrace.c: Include xml-support.h.
8880         (parse_xml_btrace): New function.
8881         (parse_xml_btrace_block): New function.
8882         (block_attributes): New struct.
8883         (btrace_attributes): New struct.
8884         (btrace_children): New struct.
8885         (btrace_elements): New struct.
8886
8887 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8888
8889         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8890         (amd64_linux_enable_btrace): New.
8891         (amd64_linux_disable_btrace): New.
8892         (amd64_linux_teardown_btrace): New.
8893         (_initialize_amd64_linux_nat): Initialize btrace ops.
8894         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8895         (i386_linux_enable_btrace): New.
8896         (i386_linux_disable_btrace): New.
8897         (i386_linux_teardown_btrace): New.
8898         (_initialize_i386_linux_nat): Initialize btrace ops.
8899         * config/i386/linux.mh: Add linux-btrace.o.
8900         * config/i386/linux64.mh: Add linux-btrace.o.
8901
8902 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8903
8904         * common/linux_btrace.h: New file.
8905         * common/linux_btrace.c: New file.
8906         * Makefile.in (SFILES): Add btrace.c.
8907         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8908         (COMMON_OBS): Add btrace.o.
8909         (linux-btrace.o): New rule.
8910
8911 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
8912
8913         * target.h: Include btrace.h.
8914         (struct target_ops) <to_supports_btrace, to_enable_btrace,
8915         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8916         * target.c (target_supports_btrace): New function.
8917         (target_enable_btrace): New function.
8918         (target_disable_btrace): New function.
8919         (target_teardown_btrace): New function.
8920         (target_read_btrace): New function.
8921         * btrace.h: New file.
8922         * btrace.c: New file.
8923         * Makefile.in: Add btrace.c.
8924         * gdbthread.h: Include btrace.h.
8925         (struct thread_info): Add btrace field.
8926         * thread.c: Include btrace.h.
8927         (clear_thread_inferior_resources): Call target_teardown_btrace.
8928         * common/btrace-common.h: New file.
8929
8930 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8931
8932         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8933         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8934         kill_status to outer block.
8935
8936 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8937
8938         Fix entry-values if the callee called a noreturn function.
8939         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8940         get_frame_address_in_block.  Add new comment.
8941
8942 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8943
8944         Fix entry-values in C++ across CUs.
8945         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8946         lookup_minimal_symbol.  Add a comment.
8947         * dwarf2read.c
8948         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8949         DW_AT_linkage_name.
8950
8951 2013-03-08  Yao Qi  <yao@codesourcery.com>
8952
8953         * tracepoint.c (_initialize_tracepoint): Indent the code.
8954
8955 2013-03-08  Pedro Alves  <palves@redhat.com>
8956
8957         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8958         (parse_find_args, find_command): Change type of pattern buffer
8959         locals to 'gdb_byte *'.
8960
8961 2013-03-08  Stan Shebs  <stan@codesourcery.com>
8962             Hafiz Abid Qadeer  <abidh@codesourcery.com>
8963
8964         * NEWS: Mention set and show trace-buffer-size commands.
8965         Mention new packet.
8966         * target.h (struct target_ops): New method
8967         to_set_trace_buffer_size.
8968         (target_set_trace_buffer_size): New macro.
8969         * target.c (update_current_target): Set up new method.
8970         * tracepoint.c (trace_buffer_size): New global.
8971         (start_tracing): Send it to the target.
8972         (set_trace_buffer_size): New function.
8973         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8974         * remote.c (remote_set_trace_buffer_size): New function.
8975         (_initialize_remote): Use it.
8976         (QTBuffer:size) New remote command.
8977         (PACKET_QTBuffer_size): New enum.
8978         (remote_protocol_features): Add an entry for
8979         PACKET_QTBuffer_size.
8980
8981 2013-03-08  Tom Tromey  <tromey@redhat.com>
8982
8983         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8984         variable.
8985
8986 2013-03-07  Pedro Alves  <palves@redhat.com>
8987
8988         * target.c (target_read_stralloc, target_fileio_read_alloc):
8989         *Cast pointer to 'gdb_byte *' in target call.
8990
8991 2013-03-07  Pedro Alves  <palves@redhat.com>
8992
8993         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8994         call.
8995
8996 2013-03-07  Keith Seitz  <keiths@redhat.com>
8997
8998         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8999         (trace_pass_command): Likewise.
9000         * cli/cli-cmds.c: Include cli/cli-utils.h.
9001         (source_command): Use skip-spaces.
9002         (disassemble_command): Likewise.
9003         * findcmd.c: Include cli/cli-utils.h.
9004         (parse_find_args): Use skip_spaces.
9005         * go32-nat.c: Include cli/cli-utils.h.
9006         (go32_sldt): Use skip_spaces.
9007         (go32_sgdt): Likewise.
9008         (go32_sidt): Likewise.
9009         (go32_pde): Likewise.
9010         (go32_pte): Likewise.
9011         (go32_pte_for_address): Likewise.
9012         * infcmd.c: Include cli/cli-utils.h.
9013         (registers_info): Use skip_spaces.
9014         * linux-tdep.c (read_mapping): Use skip_spaces_const.
9015         (linux_info_proc): Likewise.
9016         * linux-thread-db.c: Include cli/cli-utils.h.
9017         (info_auto_load_libthread_db): Use skip_spaces_const.
9018         * m32r-rom.c: Include cli/cli-utils.h.
9019         (m32r_upload_command): Use skip_spaces.
9020         * maint.c: Include cli/cli-utils.h.
9021         (maintenance_translate_address): Use skip_spaces.
9022         * mi/mi-parse.c: Include cli/cli-utils.h.
9023         (mi_parse_argv): Use skip_spaces.
9024         (mi_parse): Likewise.
9025         * minsyms.c: Include cli/cli-utils.h.
9026         (msymbol_hash_iw): Use skip_spaces_const.
9027         * objc-lang.c: Include cli/cli-utils.h.
9028         (parse_selector): Use skip_spaces.
9029         (parse_method): Likewise.
9030         * python/python.c: Include cli/cli-utils.h.
9031         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9032         (python_command)[HAVE_PYTHON]: Likewise.
9033         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9034         * remote-m32r-sdi.c: Include cli/cli-utils.h.
9035         (m32r_load): Use skip_spaces.
9036         * serial.c: Include cli/cli-utils.h.
9037         (serial_open): Use skip_spaces_const.
9038         * stack.c: Include cli/cli-utils.h.
9039         (parse_frame_specification_1): Use skip_spaces_const.
9040         * symfile.c: Include cli/cli-utils.h.
9041         (set_ext_lang_command): Use skip_spaces.
9042         * symtab.c: Include cli/cli-utils.h.
9043         (rbreak_command): Use skip_spaces.
9044         * thread.c (thread_name_command): Use skip_spaces.
9045         * tracepoint.c (validate_actionline): Use skip_spaces.
9046         (encode_actions_1): Likewise.
9047         (trace_find_range_command): Likewise.
9048         (trace_find_outside_command): Likewise.
9049         (trace_dump_actions): Likewise.
9050
9051 2013-03-07  Pedro Alves  <palves@redhat.com>
9052
9053         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9054         * expprint.c (print_subexp_standard): Likewise.
9055         * utils.c (host_char_to_target): Likewise.
9056         * valprint.c (generic_emit_char, generic_printstr): Likewise.
9057         * varobj.c (value_get_print_value): Change type of local to char*.
9058         Cast it gdb_byte * in call to language printer.
9059
9060 2013-03-07  Pedro Alves  <palves@redhat.com>
9061
9062         * charset.c (struct wchar_iterator) <input>: Change type to 'const
9063         gdb_byte *'.
9064         (make_wchar_iterator): Remove cast to char*.
9065         (wchar_iterate): Change type of local.
9066
9067 2013-03-07  Pedro Alves  <palves@redhat.com>
9068
9069         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9070         for 'regcache->register_status'.
9071
9072 2013-03-07  Pedro Alves  <palves@redhat.com>
9073
9074         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9075         int.
9076
9077 2013-03-07  Pedro Alves  <palves@redhat.com>
9078
9079         * stap-probe.c (handle_stap_probe): Add cast to char*.
9080
9081 2013-03-07  Pedro Alves  <palves@redhat.com>
9082
9083         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9084         RECORD_MSGRCV>: Pass a signed variable to
9085         regcache_raw_read_signed, instead of an unsigned one.
9086
9087 2013-03-07  Pedro Alves  <palves@redhat.com>
9088
9089         * remote-notif.c (notif_debug): Change type to int.
9090         * remote-notif.h (notif_debug): Likewise.
9091
9092 2013-03-07  Pedro Alves  <palves@redhat.com>
9093
9094         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9095
9096 2013-03-07  Pedro Alves  <palves@redhat.com>
9097
9098         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9099         * remote.h (hex2bin, bin2hex): ... here.
9100         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9101
9102 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
9103
9104         * utils.c (initialize_utils): Improve doc strings of "set/show
9105         width", "set/show height", and "set/show pagination".
9106
9107 2013-03-06  Keith Seitz  <keiths@redhat.com>
9108
9109         * ax-gdb.c (gen_printf): Make FORMAT const.
9110         * ax-gdb.h (gen_printf): Likewise.
9111         * ax-general.c (ax_string): Make STR const.
9112         * ax.h (ax_string): Likewise.
9113
9114 2013-03-06  Doug Evans  <dje@google.com>
9115
9116         * elfread.c (elf_symfile_read): Move debugging printf to more
9117         logical location.
9118
9119 2013-03-06  Pedro Alves  <palves@redhat.com>
9120
9121         * python/py-utils.c (target_string_to_unicode): Delete function.
9122         * python/python-internal.h (target_string_to_unicode): Delete
9123         declaration.
9124
9125 2013-03-06  Pierre Muller  <muller@sourceware.org>
9126
9127         * linespec.c (get_current_search_block): ARI fix, use (void)
9128         for empty parameter list.
9129
9130 2013-03-05  Doug Evans  <dje@google.com>
9131
9132         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9133         of old ada_lookup_symbol_list.  In !full_search case, don't
9134         search superblocks.
9135         (ada_lookup_symbol_list): Delete arg full_search, all callers
9136         updated.  Call ada_lookup_symbol_list_worker.
9137         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9138         * ada-lang.h (ada_lookup_symbol_list): Update.
9139         * language.h (language_defn): Update comment for
9140         la_iterate_over_symbols.
9141         * linespec.c (iterate_over_file_blocks): New function.
9142         (iterate_over_all_matching_symtabs): Call it.
9143         (lookup_prefix_sym): Ditto.
9144         (get_current_search_block): New function.
9145         (get_search_block): Delete.
9146         (find_label_symbols): Call get_current_search_block.
9147         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9148         * symtab.c (iterate_over_symbols): Don't search superblocks.
9149
9150 2013-03-05  Yao Qi  <yao@codesourcery.com>
9151
9152         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9153         parameter VAR's type from "unsigned int" to "int".
9154         * command.h (var_zuinteger_unlimited): Update its comments.
9155         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9156
9157 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9158
9159         * NEWS: Mention new target x86_64-*-cygwin*.
9160
9161 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
9162
9163         * configure.host: Add x86_64-*-cygwin* as host.
9164         * configure.tgt: Add x86_64-*-cygwin* as target.
9165         * config/i386/cygwin64.mh: New file.
9166
9167 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9168
9169         * linespec.c (decode_line_2): Fix duplicate request off by two message.
9170
9171 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9172
9173         * linespec.c (struct linespec_canonical_name): New.
9174         (struct linespec_state): Change canonical_names type to it.
9175         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
9176         xrealloc element size.  Initialize the different CANONICAL fields.
9177         (canonical_to_fullform): New.
9178         (filter_results): Use it.  Add variables canonical, fullform and
9179         cleanup.
9180         (struct decode_line_2_item, decode_line_2_compare_items): New.
9181         (decode_line_2): Remove variables iter and item_names, add variables
9182         items and items_count.  Modify the code for these new variables.
9183
9184 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
9185
9186         * coff-pe-read.c (read_pe_exported_syms): Don't return without
9187         calling do_cleanup.
9188
9189 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
9190
9191         * tracepoint.c (build_traceframe_info): Add code for byte order.
9192
9193 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
9194
9195         * v850-tdep.c: (v850e2_register_name): Revise system register
9196         names to match current V850E2M architecture specifications.
9197         Update register number enum comments too.
9198
9199 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9200             Pedro Alves  <palves@redhat.com>
9201
9202         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9203         to END_ADDR.
9204         (tilegx_skip_prologue): Limit prologue analysis to section end.
9205
9206 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9207
9208         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9209         use it.
9210
9211 2013-03-01  Pedro Alves  <palves@redhat.com>
9212
9213         Use gdb_byte for bytes from the program being debugged.
9214
9215         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9216         Change type of local 'buf' to gdb_byte.
9217         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9218         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9219         * cris-tdep.c (cris_sigcontext_addr)
9220         (cris_sigtramp_frame_unwind_cache): Likewise.
9221         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9222         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9223         Likewise.
9224         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9225         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9226         (hppa32_hpux_search_dummy_call_sequence)
9227         (hppa_hpux_supply_save_state): Likewise.
9228         * hppa-linux-tdep.c (insns_match_pattern)
9229         (hppa_linux_find_global_pointer): Likewise.
9230         * hppa-tdep.c (hppa_in_function_epilogue_p)
9231         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9232         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9233         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9234         (i386fbsd_collect_uthread): Likewise.
9235         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9236         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9237         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9238         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9239         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9240         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9241         (ia64_libunwind_frame_prev_register)
9242         (ia64_libunwind_sigtramp_frame_this_id)
9243         (ia64_find_global_pointer_from_dynamic_section)
9244         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9245         (ia64_unwind_pc): Likewise.
9246         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9247         * m68hc11-tdep.c (m68hc11_push_dummy_call)
9248         (m68hc11_extract_return_value): Likewise.
9249         * m68klinux-nat.c (fetch_register, store_register): Likewise.
9250         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9251         (mep_get_insn, mep_push_dummy_call): Likewise.
9252         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9253         (mips_linux_in_dynsym_stub): Likewise.
9254         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9255         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9256         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9257         to gdb_byte.
9258         * remote-mips.c (mips_set_register): Likewise.
9259         * remote-sim.c (gdbsim_fetch_register): Likewise.
9260         * score-tdep.c (score7_fetch_inst): Change type of parameter
9261         'memblock' and local 'buf' to gdb_byte.
9262         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9263         Change type of local 'buf' to gdb_byte.  Adjust.
9264         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9265         to gdb_byte**.
9266         (score7_analyze_prologue): Change type of 'memblock' and
9267         'memblock_ptr' locals to gdb_byte*.
9268         * sh64-tdep.c (sh64_extract_return_value)
9269         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9270         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9271         * solib-pa64.c (pa64_solib_create_inferior_hook)
9272         (pa64_open_symbol_file_object): Remove local 'buf'.
9273         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9274         (som_open_symbol_file_object): Likewise.
9275         * solib-spu.c (spu_current_sos): Likewise.
9276         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9277         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9278         (spu_store_registers): Likewise.
9279         * target.c (debug_print_register): Likewise.
9280         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9281         * xstormy16-tdep.c (xstormy16_store_return_value)
9282         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9283         (xstormy16_find_jmp_table_entry): Likewise.
9284
9285 2013-03-01  Jiong Wang  <jiwang@tilera.com>
9286
9287         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9288         (tilegx_gdbarch_init): Install it.
9289
9290 2013-02-28  Tom Tromey  <tromey@redhat.com>
9291
9292         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9293         PyLong_Check.
9294
9295 2013-02-28  Doug Evans  <dje@google.com>
9296
9297         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9298         * python/python.c (gdbpy_find_pc_line): Ditto.
9299
9300 2013-02-28  Tom Tromey  <tromey@redhat.com>
9301
9302         * contrib/excheck.py: New file.
9303         * contrib/exsummary.py: New file.
9304         * contrib/gcc-with-excheck: New file.
9305
9306 2013-02-28  Tom Tromey  <tromey@redhat.com>
9307
9308         * python/python.c (gdbpy_print_stack): Call begin_line and
9309         fprintf_filtered inside TRY_CATCH.
9310
9311 2013-02-28  Tom Tromey  <tromey@redhat.com>
9312
9313         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9314         inside TRY_CATCH.
9315
9316 2013-02-28  Tom Tromey  <tromey@redhat.com>
9317
9318         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9319         frame_object_to_frame_info inside TRY_CATCH.
9320
9321 2013-02-28  Tom Tromey  <tromey@redhat.com>
9322
9323         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9324         TRY_CATCH.
9325
9326 2013-02-28  Tom Tromey  <tromey@redhat.com>
9327
9328         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9329
9330 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
9331
9332         * windows-nat.c: Throughout, fix format strings and casts of
9333         printf-like functions to avoid type related warnings on all
9334         platforms.
9335         (handle_output_debug_string): Fetch context information address
9336         from debug string using string_to_core_addr.
9337
9338 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9339
9340         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9341         * regformats/reg-tilegx32.dat: New.
9342
9343 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9344
9345         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9346
9347 2013-02-27  Jiong Wang  <jiwang@tilera.com>
9348
9349         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9350
9351 2013-02-27  Yao Qi  <yao@codesourcery.com>
9352             Pedro Alves  <palves@redhat.com>
9353
9354         * tracepoint.c (tfile_trace_find): For tfind
9355         pc/tp/range/outside, look for the next trace frame instead of
9356         always starting from frame 0.
9357
9358 2013-02-26  Anthony Green  <green@moxielogic.com>
9359
9360         * configure.tgt: Add support for moxie-*-rtems* target.
9361
9362 2013-02-25  Pedro Alves  <palves@redhat.com>
9363
9364         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9365         warning text.
9366
9367 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9368
9369         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9370         if $fp is used as the virtual frame pointer.
9371
9372 2013-02-23  Alan Modra  <amodra@gmail.com>
9373
9374         * elfread.c (elf_symtab_read): Do not use udata.p here to find
9375         symbol size.
9376         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9377         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9378         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9379         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9380
9381 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9382
9383         Code cleanup.
9384         * elfread.c (build_id_bfd_get): Make the return type const.
9385         (build_id_verify): Make the check parameter const.
9386         (build_id_to_debug_filename): Make the build_id parameter and variable
9387         data const.
9388         (find_separate_debug_file_by_buildid): Make the variable build_id const.
9389
9390 2013-02-21  Alan Modra  <amodra@gmail.com>
9391
9392         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9393
9394 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
9395
9396         Add a new method 'disassemble' to gdb.Architecture class.
9397         * python/py-arch.c (archpy_disassmble): Implementation of the
9398         new method gdb.Architecture.disassemble.
9399         (arch_object_methods): Add entry for the new method.
9400
9401 2013-02-20  Jiong Wang  <jiwang@tilera.com>
9402
9403         * MAINTAINERS (Write After Approval): Add myself to the list.
9404
9405 2013-02-19  Pedro Alves  <palves@redhat.com>
9406
9407         Garbage collect 'struct monitor_ops'::load_routine.
9408
9409         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9410         * monitor.c (monitor_load): No longer call
9411         current_monitor->load_routine.
9412         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9413         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9414         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9415
9416 2013-02-19  Pedro Alves  <palves@redhat.com>
9417
9418         PR gdb/15161
9419
9420         Harmonize with generic_load.
9421
9422         * monitor.c: Include "readline/readline.h".
9423         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
9424         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
9425         long/strtol for the 'load_offset' local.  Error out if no argument
9426         is given or if too many arguments are given.  Tilde expand the
9427         passed in file name.
9428
9429 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9430
9431         PR gdb/15161
9432         * symfile.c (load_section_data): Change type of load_offset
9433         to CORE_ADDR.
9434         (generic_load): User strtoulst instead of strtoul for conversion
9435         of load_offset.
9436
9437 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9438
9439         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9440          for return address, "lr" register, saved on stack.
9441         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9442         after we invoke tilegx_analyze_prologue.
9443
9444 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9445
9446         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9447
9448 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9449
9450         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9451
9452 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9453
9454         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9455         (tilegx_write_pc): New function.
9456         (tilegx_cannot_reference_register): Return zero if REGNO
9457         is TILEGX_FAULTNUM_REGNUM.
9458         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9459         (tilegx_register_name): Add handling of "faultnum" register.
9460         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9461         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9462         handling of TILEGX_FAULTNUM_REGNUM.
9463         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9464
9465 2013-02-19  Jiong Wang  <jiwang@tilera.com>
9466
9467         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9468         should be aligned to 64bit.
9469
9470 2013-02-19  Kai Tietz  <ktietz@redhat.com>
9471
9472         * windows-nat.c (windows_xfer_memory): Fix debug-output
9473         for LLP64.
9474
9475 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
9476
9477         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9478         Don't check DSP register number if HAVE_DSP is not set.
9479
9480 2013-02-19  Alan Modra  <amodra@gmail.com>
9481
9482         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
9483         throughout file instead.
9484         (build_id_bfd_get): Update to use new elf_tdata build_id field.
9485         Don't xmalloc return value.
9486         (build_id_verify): Similarly.  Don't xfree.
9487         (build_id_to_debug_filename): Update.
9488         (find_separate_debug_file_by_buildid): Update, don't xfree.
9489
9490 2013-02-18  Tom Tromey  <tromey@redhat.com>
9491
9492         PR gdb/15102:
9493         * dwarf2read.c (read_subrange_type): Use result of
9494         'check_typedef'.
9495
9496 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9497
9498         * frame.c: Remove one extra white space after #include
9499         directive.
9500
9501 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9502
9503         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9504
9505 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9506
9507         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9508         and dir commands into an if block.
9509
9510 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
9511
9512         * python/py-breakpoint (struct pybp_code):  Use int instead of
9513         enum type_code.
9514
9515 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
9516             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9517
9518         * NEWS: Mention new field "trace-file".
9519         * tracepoint.c (trace_status_mi): Output "trace-file" field.
9520         (tfile_open): Record the trace file's filename in the trace
9521         status.
9522         (tfile_files_info): Mention the name of the trace file.
9523         Check the "filename" field explicitely.
9524         (trace_status_command): Explicitely check "filename" field.
9525         (trace_find_command): Ditto.
9526         (trace_find_pc_command): Ditto.
9527         (trace_find_tracepoint_command): Ditto.
9528         (trace_find_line_command): Ditto.
9529         (trace_find_range_command): Ditto.
9530         (trace_find_outside_command): Ditto.
9531         * tracepoint.h (struct trace_status) <from_file>: Rename it
9532         to "filename" and make it hold the trace file's filename
9533         instead of a boolean.
9534         * remote.c (remote_get_trace_status): Initialize "filename"
9535         field with NULL instead of 0.
9536
9537 2013-02-15  Yao Qi  <yao@codesourcery.com>
9538
9539         * remote.c: Fix a typo.
9540
9541 2013-02-14  Pierre Muller  <muller@sourceware.org>
9542
9543         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9544
9545 2013-02-14  Pedro Alves  <palves@redhat.com>
9546
9547         * utils.c (savestring): Don't #undef it.  Move function to
9548         common/common-utils.c.
9549         * common/common-utils.c: Include gdb_string.h.
9550         (savestring): Move here from utils.c.
9551         * common/common-utils.h (savestring): Declare.
9552
9553 2013-02-14  Pedro Alves  <palves@redhat.com>
9554
9555         * utils.c (savestring): Rename parameter 'size' to 'len'.
9556
9557 2013-02-14  Pedro Alves  <palves@redhat.com>
9558             Yufeng Zhang  <yufeng.zhang@arm.com>
9559
9560         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9561         (aarch64_inferior_data, struct aarch64_inferior_data):
9562         Delete.
9563         (struct aarch64_process_info): New.
9564         (aarch64_process_list): New global.
9565         (aarch64_find_process_pid, aarch64_add_process)
9566         (aarch64_process_info_get): New functions.
9567         (aarch64_inferior_data_get): Delete.
9568         (aarch64_process_info_get): New function.
9569         (aarch64_forget_process): New function.
9570         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
9571         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9572         aarch64_get_debug_reg_state.
9573         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9574         instead of linux_nat_iterate_watchpoint_lwps.
9575         (aarch64_linux_new_fork): New function.
9576         (aarch64_linux_child_post_startup_inferior): Use
9577         aarch64_forget_process instead of aarch64_init_debug_reg_state.
9578         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9579         (aarch64_linux_remove_hw_breakpoint)
9580         (aarch64_handle_aligned_watchpoint)
9581         (aarch64_handle_unaligned_watchpoint)
9582         (aarch64_linux_insert_watchpoint)
9583         (aarch64_linux_remove_watchpoint)
9584         (aarch64_linux_stopped_data_address): Adjust to pass the current
9585         process id to aarch64_debug_reg_state.
9586         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9587         linux_nat_new_fork hook, and aarch64_forget_process as
9588         linux_nat_forget_process hook; remove the call to
9589         register_inferior_data_with_cleanup.
9590
9591 2013-02-14  Pedro Alves  <palves@redhat.com>
9592
9593         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9594         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9595         lval_memory.
9596
9597 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
9598             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9599
9600         * tracepoint.h (validate_trace_state_variable_name): Declare.
9601         * tracepoint.c (validate_trace_state_variable_name): New.
9602         (trace_variable_command): Parse the trace state variable's name
9603         without using parse_expression.  Do several validations.
9604         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9605         trace state variable's name with parse_expression.  Validate it.
9606
9607 2013-02-14  Yao Qi  <yao@codesourcery.com>
9608
9609         * infcmd.c (breakpoint_proceeded): Remove it.
9610
9611 2013-02-14  Yao Qi  <yao@codesourcery.com>
9612
9613         * tracepoint.c (end_actions_pseudocommand): Make it static.
9614         (while_stepping_pseudocommand): Likewise.
9615         * tracepoint.h (end_actions_pseudocommand): Remove the
9616         declaration.
9617         (while_stepping_pseudocommand): Likewise.
9618
9619 2013-02-14  Yao Qi  <yao@codesourcery.com>
9620
9621         * cli/cli-decode.c (help_cmd): Remove the declaration of
9622         "cmdlist".
9623         (help_all): Likewise.
9624
9625 2013-02-13  Pedro Alves  <palves@redhat.com>
9626
9627         * amd64-linux-nat.c (update_debug_registers_callback):
9628         Update comment.
9629         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9630         iterate_over_lwps.
9631         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9632         i386_debug_reg_state.
9633         (amd64_linux_new_fork): New function.
9634         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9635         linux_nat_new_fork hook, and i386_forget_process as
9636         linux_nat_forget_process hook.
9637         * i386-linux-nat.c (update_debug_registers_callback):
9638         Update comment.
9639         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9640         iterate_over_lwps.
9641         (i386_linux_prepare_to_resume): Pass the lwp's pid to
9642         i386_debug_reg_state.
9643         (i386_linux_new_fork): New function.
9644         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9645         linux_nat_new_fork hook, and i386_forget_process as
9646         linux_nat_forget_process hook.
9647         * i386-nat.c (i386_init_dregs): Delete.
9648         (i386_inferior_data, struct i386_inferior_data):
9649         Delete.
9650         (struct i386_process_info): New.
9651         (i386_process_list): New global.
9652         (i386_find_process_pid, i386_add_process, i386_process_info_get):
9653         New functions.
9654         (i386_inferior_data_get): Delete.
9655         (i386_process_info_get): New function.
9656         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
9657         (i386_forget_process): New function.
9658         (i386_cleanup_dregs): Rewrite.
9659         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9660         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9661         (i386_stopped_data_address, i386_insert_hw_breakpoint)
9662         (i386_remove_hw_breakpoint): Adjust to pass the current process id
9663         to i386_debug_reg_state.
9664         (i386_use_watchpoints): Don't register inferior data.
9665         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9666         adjust comment.
9667         (i386_forget_process): Declare.
9668         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9669         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9670         New static globals.
9671         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9672         (add_initial_lwp): New, factored out from ...
9673         (add_lwp): ... this.  Don't check the number of lwps before
9674         calling linux_nat_new_thread.
9675         (linux_nat_iterate_watchpoint_lwps): Delete.
9676         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9677         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9678         forks and vforks.
9679         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9680         initial lwp.
9681         (linux_nat_kill, linux_nat_mourn_inferior): Call
9682         linux_nat_forget_process.
9683         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9684         (linux_nat_forget_process): New functions.
9685         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9686         type.
9687         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9688         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9689         types.
9690         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9691         (linux_nat_forget_process): New declarations.
9692
9693         * amd64fbsd-nat.c (super_mourn_inferior): New global.
9694         (amd64fbsd_mourn_inferior): New function.
9695         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9696         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9697
9698 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9699
9700         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9701         Adding _().
9702
9703 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9704
9705         * aarch64-linux-nat.c (debug_reg_change_callback)
9706         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9707         %s and phex().
9708
9709 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9710
9711         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9712         with LONGEST.
9713
9714 2013-02-13  Pedro Alves  <palves@redhat.com>
9715             Hafiz Abid Qadeer  <abidh@codesourcery.com>
9716
9717         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9718
9719 2013-02-12  Tom Tromey  <tromey@redhat.com>
9720
9721         PR symtab/11464:
9722         * c-exp.y (lex_one_token): Initialize other fields of yylval on
9723         NAME return.
9724         (classify_inner_name): Remove 'first_name' argument, add
9725         'context'.  Remove unused variable.
9726         (yylex): Explicitly maintain the context type.  Exit loop earlier
9727         if NAME result is seen.
9728
9729 2013-02-12  Pedro Alves  <palves@redhat.com>
9730
9731         * amd64-darwin-tdep.c: Add (C) after Copyright.
9732         * cli/cli-cmds.h: Ditto.
9733         * cli/cli-decode.c: Ditto.
9734         * cli/cli-decode.h: Ditto.
9735         * cli/cli-dump.c: Ditto.
9736         * cli/cli-dump.h: Ditto.
9737         * cli/cli-interp.c: Ditto.
9738         * cli/cli-logging.c: Ditto.
9739         * cli/cli-script.c: Ditto.
9740         * cli/cli-script.h: Ditto.
9741         * cli/cli-setshow.c: Ditto.
9742         * cli/cli-setshow.h: Ditto.
9743         * cli/cli-utils.c: Ditto.
9744         * cli/cli-utils.h: Ditto.
9745         * config/alpha/nm-osf3.h: Ditto.
9746         * config/djgpp/djconfig.sh: Ditto.
9747         * config/i386/nm-fbsd.h: Ditto.
9748         * config/i386/nm-i386gnu.h: Ditto.
9749         * config/nm-linux.h: Ditto.
9750         * config/nm-nto.h: Ditto.
9751         * config/rs6000/nm-rs6000.h: Ditto.
9752         * config/sparc/nm-sol2.h: Ditto.
9753         * darwin-nat-info.c: Ditto.
9754         * dfp.c: Ditto.
9755         * dfp.h: Ditto.
9756         * gdb-demangle.h: Ditto.
9757         * i386-darwin-nat.c: Ditto.
9758         * i386-darwin-tdep.c: Ditto.
9759         * linux-fork.h: Ditto.
9760         * m32c-tdep.c: Ditto.
9761         * microblaze-linux-tdep.c: Ditto.
9762         * microblaze-rom.c: Ditto.
9763         * microblaze-tdep.c: Ditto.
9764         * microblaze-tdep.h: Ditto.
9765         * mips-linux-tdep.h: Ditto.
9766         * ppc-ravenscar-thread.c: Ditto.
9767         * ppc-ravenscar-thread.h: Ditto.
9768         * prologue-value.c: Ditto.
9769         * prologue-value.h: Ditto.
9770         * ravenscar-thread.c: Ditto.
9771         * ravenscar-thread.h: Ditto.
9772         * sparc-ravenscar-thread.c: Ditto.
9773         * sparc-ravenscar-thread.h: Ditto.
9774         * tilegx-linux-tdep.c: Ditto.
9775         * unwind_stop_reasons.def: Ditto.
9776         * windows-nat.h: Ditto.
9777         * xtensa-linux-tdep.c: Ditto.
9778         * xtensa-xtregs.c: Ditto.
9779         * regformats/regdat.sh: Ditto.
9780         * regformats/regdef.h: Ditto.
9781
9782 2013-02-12  Pedro Alves  <palves@redhat.com>
9783
9784         * break-catch-sig.c: Update copyright years.
9785
9786 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
9787
9788         Add support for a destructor for ui_out data and use it to
9789         provide a ui_out destructor.
9790         * ui-out.h: Declare the new ui_out destructor.
9791         (ui_out_impl): Add a field for data destructor in ui_out_impl.
9792         * ui-out.c (default_data_destroy): Add a default data destructor
9793         which does nothing.
9794         (default_ui_out_impl): Set the new data_destroy field to
9795         default_data_destroy
9796         (uo_data_destroy): Local function which invokes the data
9797         destructor if present.
9798         (clear_table): Local function which clears the table data of a
9799         ui_out object.
9800         (ui_out_destroy): Public function which frees a ui_out object.
9801         (ui_out_table_end): Use the new clear_table function.
9802         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9803         NULL.
9804         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9805         to NULL.
9806
9807 2013-02-11  Doug Evans  <dje@google.com>
9808
9809         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9810         (printf_decfloat): New function.  Broken out from ui_printf.
9811         Remove unnecessary code to shift the entire format string down.
9812         (printf_pointer): New function.
9813         (ui_printf): Code to print C strings, wide C strings, decfloats,
9814         and pointers moved to separate functions.
9815
9816 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
9817
9818         * valops.c (value_assign): Handling bitfield offset in
9819         `lval_internalvar_component' case.
9820
9821 2013-02-08  Doug Evans  <dje@google.com>
9822
9823         * common/format.c (parse_format_string): Fix whitespace.
9824
9825 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
9826
9827         * stack.c (return_command): Work around uninitialized variable
9828         warning.
9829
9830 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
9831
9832         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9833         number of the registers from 36 to 34.
9834
9835 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9836
9837         * NEWS: Mention new AArch64 native and target support.
9838
9839 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9840
9841         * MAINTAINERS (Write After Approval): Add myself.
9842
9843 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
9844             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9845             Nigel Stephens  <nigel.stephens@arm.com>
9846             Yufeng Zhang  <yufeng.zhang@arm.com>
9847
9848         * aarch64-linux-nat.c: New file.
9849         * config/aarch64/linux.mh: New file.
9850         * configure.host: Add AArch64.
9851         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9852
9853 2013-02-07  Doug Evans  <dje@google.com>
9854
9855         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9856         disassemble command.
9857
9858 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9859
9860         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9861         set_gdbarch_fetch_tls_load_module_address.
9862
9863 2013-02-06  David S. Miller  <davem@davemloft.net>
9864
9865         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9866         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9867         * value.c (struct_return_convention): New function.
9868         (using_struct_return): Implement in terms of struct_return_convention.
9869         * value.h (struct_return_convention): Declare.
9870         * stack.c (return_command): Allow successful overriding of the return
9871         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9872
9873 2013-02-06  Tom Tromey  <tromey@redhat.com>
9874
9875         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9876         outside of TRY_CATCH.
9877
9878 2013-02-06  Yao Qi  <yao@codesourcery.com>
9879
9880         * mi/mi-interp.c: Include "tracepoint.h".
9881         (mi_tsv_modified): Declare.
9882         (mi_tsv_created, mi_tsv_deleted): Update declaration.
9883         (mi_interpreter_init): Call observer_attach_tsv_modified.
9884         (mi_tsv_modified): New.
9885         (mi_tsv_created, mi_tsv_deleted): Update.
9886         * tracepoint.c (trace_variable_command): Call
9887         observer_notify_tsv_modified if the initial value of tsv is
9888         changed.
9889         (delete_trace_state_variable): Call
9890         observer_notify_tsv_deleted earlier.
9891         (trace_variable_command): Caller update.
9892         (create_tsv_from_upload): Likewise.
9893         * observer.sh: Declare "struct trace_state_variable".
9894
9895         * NEWS: Mention the new MI notification "=tsv-modified".
9896
9897 2013-02-05  Doug Evans  <dje@google.com>
9898
9899         * completer.c (location_completer): Fix typo in comment.
9900
9901 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9902
9903         * breakpoint.c (add_location_to_breakpoint): Insert the location with
9904         ADDRESS sorted.
9905
9906 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9907
9908         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9909         Refactor if statement to avoid trailing || operator.
9910
9911 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
9912
9913         * NEWS: Add PowerPC FreeBSD as a new native configuration.
9914
9915 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
9916
9917         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9918         * configure.host: Add powerpc*-*-freebsd* target.
9919         * configure.tgt: Add target info for powerpc*-*-freebsd*.
9920         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9921         * config/powerpc/fbsd.mh: New file.
9922
9923 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
9924             Denys Vlasenko  <dvlasenk@redhat.com>
9925             Pedro Alves  <palves@redhat.com>
9926
9927         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9928         (struct elf_internal_linux_prpsinfo): Forward declare.
9929         * gdbarch.h, gdbarch.c: Regenerate.
9930         * linux-tdep.c: Include `cli/cli-utils.h'.
9931         (linux_fill_prpsinfo): New function.
9932         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
9933         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9934         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9935         depending on gdbarch pointer bitness.
9936         * ppc-linux-tdep.c: Include elf-bfd.h.
9937         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9938         on 32-bit.
9939
9940 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9941             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9942             Nigel Stephens  <nigel.stephens@arm.com>
9943             Yufeng Zhang  <yufeng.zhang@arm.com>
9944
9945         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9946
9947 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9948             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9949             Nigel Stephens  <nigel.stephens@arm.com>
9950             Yufeng Zhang  <yufeng.zhang@arm.com>
9951
9952         * aarch64-newlib-tdep.c: New file.
9953         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9954         aarch64*-*-elf.
9955         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9956         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9957         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9958         * osabi.c (gdb_osabi_names): Add "Newlib".
9959
9960 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9961             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9962             Nigel Stephens  <nigel.stephens@arm.com>
9963             Yufeng Zhang  <yufeng.zhang@arm.com>
9964
9965         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9966         (ALLDEPFILES): Add aarch64-linux-tdep.c.
9967         * aarch64-linux-tdep.c: New file.
9968         * aarch64-linux-tdep.h: New file.
9969         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9970         * configure.tgt: Add aarch64-none-linux-gnu.
9971
9972 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
9973             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9974             Nigel Stephens  <nigel.stephens@arm.com>
9975             Yufeng Zhang  <yufeng.zhang@arm.com>
9976
9977         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9978         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9979         (ALLDEPFILES): Add aarch64-tdep.c.
9980         * aarch64-tdep.c: New file.
9981         * aarch64-tdep.h: New file.
9982         * configure.tgt: Add AArch64.
9983         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9984         (aarch64-expedite): New definition.
9985         * features/aarch64-core.xml: New file.
9986         * features/aarch64-fpu.xml: New file.
9987         * features/aarch64-without-fpu.c: New file (generated).
9988         * features/aarch64-without-fpu.xml: New file.
9989         * features/aarch64.c: New file (generated).
9990         * features/aarch64.xml: New file.
9991         * regformats/aarch64-without-fpu.dat: New file (generated).
9992         * regformats/aarch64.dat: New file (generated).
9993
9994 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9995
9996         * contrib/expect-read1.c: New file.
9997         * contrib/expect-read1.sh: New file.
9998
9999 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10000
10001         * dwarf2read.c (file_file_name): New function with code from
10002         file_full_name.
10003         (file_full_name): Move most of the code to file_file_name.
10004         (macro_start_file): Rename variable full_name to file_name and use
10005         file_file_name for it.  Add comp_dir parameter to new_macro_table.
10006         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
10007         macro_source_file->filename access by macro_source_fullname call.
10008         * macroscope.c (_initialize_macroscope): Update the new_macro_table
10009         caller.
10010         * macrotab.c (struct macro_table): New field comp_dir.
10011         (macro_include): New variables link_fullname and source_fullname.
10012         Replace any macro_source_file->filename access by macro_source_fullname
10013         call.
10014         (macro_lookup_inclusion): Remove the partial filenames checking code.
10015         (check_for_redefinition): New variables source_fullname and
10016         found_key_fullname.  Replace any macro_source_file->filename access by
10017         macro_source_fullname call.
10018         (macro_undef): New variables source_fullname and key_fullname.  Replace
10019         any macro_source_file->filename access by macro_source_fullname call.
10020         (macro_lookup_definition): New variables retval and source_fullname.
10021         Replace any macro_source_file->filename access by macro_source_fullname
10022         call.
10023         (foreach_macro): New variable key_fullname.  Replace any
10024         macro_source_file->filename access by macro_source_fullname call.
10025         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
10026         macro_source_file->filename access by macro_source_fullname call.
10027         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
10028         (macro_source_fullname): New function.
10029         * macrotab.h (struct macro_source_file): Extent the filename field
10030         comment.
10031         (new_macro_table): New parameter comp_dir, add a comment for it.
10032         (macro_source_fullname): new declaration.
10033
10034 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10035
10036         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10037         this_real_name to outer block.  Use it also for
10038         compare_filenames_for_search.
10039         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
10040         with dw2_get_real_path for file_matcher, considering also
10041         BASENAMES_MAY_DIFFER.
10042         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10043
10044 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10045
10046         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10047         to the file_matcher parameter.  Pass 0 to it.
10048         (dwarf2_create_include_psymtab): Copy also DIRNAME.
10049         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10050         NULL psymtab_to_fullname result.
10051         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
10052         an expected filename instead.
10053         (expand_symtabs_matching_via_partial): Add basenames parameter to the
10054         file_matcher parameter.  Call also psymtab_to_fullname, after newly
10055         considering BASENAMES_MAY_DIFFER.
10056         * source.c (rewrite_source_path): Remove static.
10057         * source.h (rewrite_source_path): New declaration.
10058         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10059         the expand_symtabs_matching field.  Comment it.
10060         * symtab.c (file_matches): New function comment.  Add parameter
10061         basenames, implement it.
10062         (search_symbols_file_matches): Add basenames parameter.  Update the
10063         file_matches caller.
10064         (search_symbols): Match FILES also against symtab_to_fullname.
10065         Optimize it for BASENAMES_MAY_DIFFER.
10066
10067 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10068
10069         * source.c (print_source_lines_base): Print for TUI also "fullname".
10070         * tui/tui-data.c (init_content_element): Change tui_locator_element
10071         field to full_name.
10072         * tui/tui-data.h (struct tui_locator_element): Likewise.
10073         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10074         tui_update_locator_filename calls to tui_update_locator_fullname.
10075         Replace symtab->filename refererence by symtab_to_fullname call.
10076         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10077         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10078         field to full_name.  Replace symtab->filename refererence by
10079         symtab_to_fullname call.
10080         (tui_show_symtab_source): Rename parameter to fullname.  Change
10081         tui_locator_element field to full_name.
10082         * tui/tui-stack.c: Include source.h.
10083         (tui_set_locator_filename): Rename the declaration to ...
10084         (tui_set_locator_fullname): ... here.  Rename its parameter to
10085         fullname, updates its comment.
10086         (tui_set_locator_info): Rename its parameter to fullname.
10087         (tui_set_locator_filename): Rename the definition to ...
10088         (tui_set_locator_fullname): ... here.  Rename its parameter to
10089         fullname, updates its comment.  Change tui_locator_element field to
10090         full_name.
10091         (tui_set_locator_info): Rename its parameter to fullname.
10092         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10093         (tui_update_locator_filename): Rename to ...
10094         (tui_update_locator_fullname): ... here. Rename callee to
10095         tui_set_locator_fullname.
10096         (tui_show_frame_info): Replace symtab->filename refererence by
10097         symtab_to_fullname call.
10098         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10099         (tui_update_locator_fullname): ... here.
10100         * tui/tui-winsource.c (tui_display_main): Rename the callee to
10101         tui_update_locator_fullname.  Replace symtab->filename refererence by
10102         symtab_to_fullname call.
10103         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10104         Rename the callee to tui_update_locator_fullname.
10105         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10106
10107 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10108
10109         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10110         by symtab_to_filename_for_display calls.
10111         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10112         (clear_command): New variable sal_fullname, initialize it.  Replace
10113         compare_filenames_for_search by filename_cmp with sal_fullname.
10114         (say_where, update_static_tracepoint): Replace symtab->filename
10115         refererences by symtab_to_filename_for_display calls.
10116         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10117         Likewise.
10118         * dwarf2read.c: Include source.h.
10119         (fixup_go_packaging): Replace symtab->filename refererences by
10120         symtab_to_filename_for_display calls.
10121         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10122         Replace symtab->filename refererences by symtab_to_filename_for_display
10123         calls.
10124         (create_sals_line_offset, convert_linespec_to_sals): New variable
10125         fullname, initialize it, replace symtab->filename reference by the
10126         variable.
10127         * linux-fork.c: Include source.h.
10128         (info_checkpoints_command): Replace symtab->filename refererences by
10129         symtab_to_filename_for_display calls.
10130         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10131         by symtab_to_filename_for_display calls.
10132         * mdebugread.c: Include source.h.
10133         (psymtab_to_symtab_1): Replace symtab->filename refererences by
10134         symtab_to_filename_for_display calls.
10135         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10136         (mi_cmd_file_list_exec_source_files): Likewise.
10137         * printcmd.c: Include source.h.
10138         (build_address_symbolic): Replace symtab->filename refererences by
10139         symtab_to_filename_for_display calls.
10140         * psymtab.c (partial_map_symtabs_matching_filename)
10141         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10142         with psymtab_to_fullname.
10143         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10144         by symtab_to_filename_for_display calls.
10145         (stpy_get_filename): New variable filename, initialize it, use instead
10146         of symtab->filename refererences.
10147         (salpy_str): Make variable filename const char *.  Replace
10148         symtab->filename refererences by symtab_to_filename_for_display calls.
10149         * skip.c: Include source.h and filenames.h.
10150         (skip_file_command): Remove const from the symtab variable.  Replace
10151         symtab->filename refererences by symtab_to_fullname call.
10152         (function_name_is_marked_for_skip): New variables searched_for_fullname
10153         and fullname.  Use them to search also with symtab's fullname.
10154         * source.c (find_source_lines): Replace symtab->filename refererences
10155         by symtab_to_filename_for_display calls.
10156         (print_source_lines_base): New variable filename, use it instead of
10157         symtab->filename.  Replace symtab->filename refererences by
10158         symtab_to_filename_for_display calls.
10159         (line_info, forward_search_command): Replace symtab->filename
10160         refererences by symtab_to_filename_for_display calls.
10161         (reverse_search_command): Replace symtab->filename refererences by
10162         symtab_to_filename_for_display calls.  New variable filename for it.
10163         * stack.c (frame_info): Likewise.
10164         * symmisc.c: Include source.h.
10165         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10166         (maintenance_info_symtabs): Replace symtab->filename refererences by
10167         symtab_to_filename_for_display calls.
10168         * symtab.c (iterate_over_some_symtabs): Call
10169         compare_filenames_for_search also with symtab_to_fullname.
10170         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10171         symtab->filename refererences by symtab_to_filename_for_display calls.
10172         (find_line_symtab): Replace symtab->filename refererences by
10173         symtab_to_filename_for_display calls.
10174         (file_matches): Replace filename_cmp by compare_filenames_for_search.
10175         (print_symbol_info): Make the last parameter const char *.  New
10176         variable s_filename.  Use it in the function.
10177         (symtab_symbol_info): Make the last_filename variable const char *.
10178         Replace symtab->filename refererences by symtab_to_filename_for_display
10179         calls.
10180         (rbreak_command): New variable fullname.  Use it.  Replace
10181         symtab->filename refererence by symtab_to_filename_for_display call.
10182         * tracepoint.c (set_traceframe_context, trace_find_line_command)
10183         (print_one_static_tracepoint_marker): Replace symtab->filename
10184         refererences by symtab_to_filename_for_display calls.
10185         * tui/tui-source.c (tui_set_source_content): New variables filename and
10186         s_filename.  Replace symtab->filename refererences by this variable.
10187         Replace other symtab->filename refererences by
10188         symtab_to_filename_for_display calls.
10189
10190 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10191             Jan Kratochvil  <jan.kratochvil@redhat.com>
10192
10193         Add a new variable that controls a way in which filenames are
10194         displayed.
10195         * NEWS (set filename-display): New entry.
10196         * source.c (filename_display_basename, filename_display_relative)
10197         (filename_display_absolute, filename_display_kind_names)
10198         (filename_display_string, show_filename_display_string)
10199         (symtab_to_filename_for_display): New.
10200         (_initialize_source): Added initialization of 'filename-display'
10201         variable.
10202         * source.h (symtab_to_filename_for_display): Added declaration.
10203         * stack.c (print_frame): Added new variable and calling of a new
10204         function and condition with this variable. Changed third argument of
10205         calling of a function.
10206
10207 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10208
10209         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10210         Rename field reference filename to fullname.
10211         * tui/tui-data.h (struct tui_source_info): Rename field filename to
10212         fullname.  New comment for it.
10213         * tui/tui-source.c (tui_set_source_content): Rename field reference
10214         filename to fullname.  Initialize field by symtab_to_fullname now.
10215         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10216         reference filename to fullname.  Use symtab_to_fullname during
10217         comparison.
10218
10219 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10220
10221         Code cleanup.
10222         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10223         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
10224         filename to fullname.  Rename variable this_name to this_fullname.
10225         Lowercase FILENAME_CMP call.
10226         (dw2_find_symbol_file): New comment for the returned string.
10227         (dwarf2_gdb_index_functions): Rename the function to
10228         dw2_expand_symtabs_with_fullname.
10229         * psymtab.c (read_psymtabs_with_filename): Rename to ...
10230         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
10231         fullname.
10232         (psym_functions): Rename the function to read_psymtabs_with_fullname.
10233         * symfile.h (struct quick_symbol_functions): Rename field
10234         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10235         parameter filename to fullname.  Document returned string meaning for
10236         find_symbol_file.
10237         * symtab.c (find_line_symtab): Rename the called function to
10238         expand_symtabs_with_fullname.
10239
10240 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10241
10242         Code cleanup.
10243         * breakpoint.c (clear_command): Remove variable is_abs, unify the
10244         call of filename_cmp with compare_filenames_for_search.
10245         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10246         is_abs, unify the call of FILENAME_CMP with
10247         compare_filenames_for_search.  New gdb_asserts for real_path and name.
10248         Unify the call of compare_filenames_for_search with FILENAME_CMP.
10249         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10250         * symfile.h (struct quick_symbol_functions): Extend the comment for
10251         map_symtabs_matching_filename.
10252         * symtab.c (compare_filenames_for_search): Remove the function comment
10253         relative path requirement.  Handle absolute filenames, with a comment.
10254         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10255         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
10256         real_path and name.  Unify the call of compare_filenames_for_search
10257         with FILENAME_CMP.
10258         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10259
10260 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10261
10262         Code cleanup.
10263         * breakpoint.c (print_breakpoint_location): Replace bp_location field
10264         source_file references by symtab field references.  Remove variables
10265         sal and fullname.
10266         (momentary_breakpoint_from_master, add_location_to_breakpoint):
10267         (clear_command, say_where): Replace bp_location field source_file
10268         references by symtab field references.
10269         (bp_location_dtor): Remove the source_file reference.
10270         (update_static_tracepoint): Replace bp_location field source_file
10271         references by symtab field references.
10272         (breakpoint_free_objfile): New function.
10273         * breakpoint.h (struct bp_location): Extend the comment for line_number.
10274         Replace the field source_file by field symtab, extend its comment.
10275         (breakpoint_free_objfile): New declaration.
10276         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10277         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10278         field source_file references by symtab field references.
10279
10280 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10281
10282         Replace xfullpath calls by gdb_realpath calls.
10283         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10284         function comment.
10285         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10286         Remove it from the iterate_over_some_symtabs call.
10287         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10288         Remove it from the dw2_map_expand_apply calls, remove a block handling
10289         it.
10290         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10291         Remove it from the iterate_over_some_symtabs call.
10292         (partial_map_symtabs_matching_filename): Remove parameter full_path.
10293         Remove it from the partial_map_expand_apply calls, remove a block
10294         handling it.  Drop gdb_realpath call and cleanups from the real_path
10295         handling.
10296         * source.c (openp): Drop the comment part about xfullpath.  Replace
10297         xfullpath calls by gdb_realpath calls.
10298         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10299         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10300         from method map_symtabs_matching_filename and its comment.
10301         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10302         gdb_realpath call.
10303         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10304         remove it also from the function comment, remove a block handling it.
10305         Drop gdb_realpath call and cleanups from the real_path handling.
10306         (iterate_over_symtabs): Drop variable full_path and its use.
10307         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10308         * utils.c (xfullpath): Remove.
10309         * utils.h (xfullpath): Remove.
10310
10311 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
10312
10313         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10314         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10315         (ALLDEPFILES): Add ppc64-tdep.c.
10316         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10317         ppc64-tdep.o to gdb_target_obs.
10318         * ppc64-tdep.h: New file.
10319         * ppc64-tdep.c: New file.
10320         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10321         ppc-linux-tdep.c to here.
10322         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10323         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10324         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10325         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10326         from ppc-linux-tdep.c to here.
10327         (ppc64_convert_from_func_ptr_addr): Rename from
10328         ppc64_linux_convert_from_func_ptr_addr to
10329         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10330         here.
10331         * rs6000-tdep.c:
10332         (read_insn): Move from ppc-linux-tdep.c to here.
10333         (insns_match_pattern, insn_d_field, insn_ds_field): Move
10334         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10335         * ppc-linux-tdep.c: Include ppc64-tdep.h.
10336         Removed above functions.
10337         (ppc_linux_init_abi): Adjust.
10338
10339 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10340
10341         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10342
10343 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
10344
10345         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10346
10347 2013-02-01  Pedro Alves  <palves@redhat.com>
10348
10349         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10350         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10351
10352 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10353
10354         * elfread.c (elf_symfile_read): Limit separate debug info additions to
10355         files with no separate debug info.
10356         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10357         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10358         only for files with no separate debug info.
10359
10360 2013-01-31  Tom Tromey  <tromey@redhat.com>
10361
10362         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10363         change type.
10364         (struct jit_program_space_data): Rename from jit_inferior_data.
10365         Update comments.
10366         (get_jit_program_space_data): Rename from get_jit_inferior_data.
10367         Change return type.  Attach data to program space.
10368         (jit_program_space_data_cleanup): Rename from
10369         jit_inferior_data_cleanup; change argument type.
10370         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10371         change type.
10372         (jit_register_code): Update.
10373         (jit_update_inferior_cache): Remove.
10374         (jit_breakpoint_deleted): Get jit data from the location's program
10375         space.
10376         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10377         'ps_data', change type.
10378         (jit_inferior_init, jit_breakpoint_re_set_internal)
10379         (jit_event_handler): Update.
10380         (free_objfile_data): Get data from objfile's program space.
10381         (_initialize_jit): Update.
10382
10383 2013-01-31  Tom Tromey  <tromey@redhat.com>
10384
10385         PR gdb/13987:
10386         * jit.c (struct jit_inferior_data) <cached_code_address,
10387         jit_breakpoint>: New fields.
10388         (jit_breakpoint_re_set_internal): Fix logging.  Only create
10389         breakpoint if cached address has changed.
10390         (jit_update_inferior_cache, jit_breakpoint_deleted): New
10391         functions.
10392         (_initialize_jit): Register breakpoint deleted observer.
10393
10394 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10395
10396         * infrun.c (handle_syscall_event): Remove unused gdbarch.
10397         (save_infcall_suspend_state): Ifdef out unused inf.
10398         (restore_infcall_suspend_state): Ifdef out unused inf.
10399         * jit.c (jit_register_code): Remove unused i, b, inf_data.
10400         (jit_frame_sniffer): Remove unused inf_data.
10401
10402 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10403
10404         * c-exp.y (classify_inner_name): Remove unused type.
10405         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10406         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10407         need_escape.
10408         (c_get_string): Remove unused kind.
10409         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10410
10411 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10412
10413         * charset.c (intermediate_encoding): Remove unused i.
10414         * completer.c (signal_completer): Remove unused i.
10415         * continuations.c (discard_my_continuations_1): Remove unused
10416         continuation_ptr.
10417         * corelow.c (core_close): Remove unuseD name.
10418         (get_core_siginfo): Remove unused pid.
10419         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10420         i, cps.
10421         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10422         (loclist_describe_location): Remove unused first.
10423         * event-top.c (command_line_handler): Remove unused got_eof.
10424         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10425         (resize_section_table): Remove unused old_value.
10426         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10427         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10428         * i386-tdep.c (i386_process_record): Remove unused rex.
10429         * infcmd.c (get_return_value): Remove unused uiout.
10430         * jv-lang.c (type_from_class): Remove unused is_array.
10431         * jv-valprint.c (java_val_print): Remove unused i.
10432         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10433         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10434         * m2-typeprint.c (m2_print_type): Remove unused code.
10435         * macroexp.c (get_character_constant): Remove unused body_start.
10436         (macro_stringify): Remove unused result.
10437         * objc-lang.c (find_methods): Remove unused gdbarch.
10438         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10439         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10440         * stack.c (print_frame_args): Remove unused summary.
10441         * thread.c (thread_apply_command): Remove unused p.
10442         * valarith.c (value_x_unop): Remove unused mangle_ptr.
10443         * valops.c (search_struct_method): Remove unused skip.
10444         * valprint.c (generic_val_print): Remove unused byte_order.
10445         * varobj.c (varobj_update): Remove unused changed.
10446         * cli/cli-cmds.c (complete_command): Remove unused next_item.
10447         (alias_command): Remove unused c.
10448         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10449         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10450         format.
10451         (mi_cmd_data_write_memory): Remove unused word_format.
10452         (mi_cmd_data_write_memory_bytes): Remove unused r.
10453         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10454         p_start, p_end.
10455         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10456         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10457         line_width.
10458
10459 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10460
10461         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10462         * symtab.c (iterate_over_symtabs): Remove unused s.
10463         (find_pc_sect_symtab): Remove unused pspAce.
10464         (find_pc_sect_line): Remove unused alt_symtab.
10465         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10466         (completion_list_add_name): Remove unused newsize.
10467
10468 2013-01-31  Tom Tromey  <tromey@redhat.com>
10469
10470         PR c++/14998:
10471         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10472         TYPE_CODE_FUNC.
10473
10474 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10475
10476         * target.c (target_read_string): Remove unused origlen.
10477
10478 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10479
10480         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10481         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10482         * ax-general.c (ax_print): Remove unused is_float.
10483         * blockframe.c (block_innermost_frame): Remove unused start, end.
10484         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10485
10486 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
10487
10488         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10489         (svr4_read_so_list): Remove unused lmo.
10490         * solib-target.c (solib_target_relocate_section_addresses): Remove
10491         unused flags.
10492
10493 2013-01-30  Tom Tromey  <tromey@redhat.com>
10494
10495         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10496
10497 2013-01-30  Tom Tromey  <tromey@redhat.com>
10498
10499         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10500         * utils.c (gnu_debuglink_crc32): Remove.
10501         * utils.h (gnu_debuglink_crc32): Don't declare.
10502
10503 2013-01-30  Tom Tromey  <tromey@redhat.com>
10504
10505         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10506         (read_structure_type, read_enumeration_type): Remove cast.
10507
10508 2013-01-30  Tom Tromey  <tromey@redhat.com>
10509
10510         * dwarf2read.c (read_namespace_type): Remove cast.
10511         (read_typedef): Likewise.
10512
10513 2013-01-29  Tom Tromey  <tromey@redhat.com>
10514
10515         * dwarf2read.c (free_dwo_file): Remove assert.
10516
10517 2013-01-29  Tom Tromey  <tromey@redhat.com>
10518
10519         * value.c (deprecated_set_value_modifiable): Remove.
10520         * value.h (deprecated_set_value_modifiable): Remove.
10521
10522 2013-01-28  Doug Evans  <dje@google.com>
10523
10524         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10525         to addresses from dwo files.
10526
10527 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
10528
10529         * valops.c (find_overload_match): Remove unused argument 'lax'.
10530         * value.h: Remove unused argument 'lax' from the declaration of
10531         find_overload_match.
10532         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10533         to find_overload_match.
10534         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10535         argument to find_overload_match.
10536
10537 2013-01-25  Tom Tromey  <tromey@redhat.com>
10538
10539         * dwarf2read.c (processing_has_namespace_info): Remove.
10540         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10541         (process_die, read_func_scope, dwarf2_start_symtab)
10542         (new_symbol_full): Update.
10543
10544 2013-01-25  Tom Tromey  <tromey@redhat.com>
10545
10546         * cp-namespace.c (cp_set_block_scope): Remove.
10547         * cp-support.h (cp_set_block_scope): Remove.
10548         * dbxread.c: Include block.h.
10549         (cp_set_block_scope): New function.
10550         (process_one_symbol): Update.
10551         * dwarf2read.c (read_func_scope): Use block_set_scope.
10552
10553 2013-01-25  Pedro Alves  <palves@redhat.com>
10554
10555         * remote.c (add_current_inferior_and_thread): Tweak comment.
10556
10557 2013-01-25  Tom Tromey  <tromey@redhat.com>
10558
10559         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10560         (cp_add_using_directive): Add 'copy_names' argument.
10561         * cp-support.h (cp_add_using_directive): Update.
10562         (struct using_direct) <import_src, import_dest, alias,
10563         declaration>: Now const.
10564         * dwarf2read.c (read_import_statement): Use obconcat.
10565         Don't copy names passed to cp_add_using_directive.
10566
10567 2013-01-25  Tom Tromey  <tromey@redhat.com>
10568
10569         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10570
10571 2013-01-25  Pedro Alves  <palves@redhat.com>
10572
10573         * remote.c (stop_reply_extract_thread): New.
10574         (add_current_inferior_and_thread): New parameter 'wait_status'.
10575         Handle it.
10576         (remote_start_remote): Pass wait status to
10577         add_current_inferior_and_thread.
10578         (extended_remote_run): Update comment.
10579         (extended_remote_create_inferior_1): Pass wait status to
10580         add_current_inferior_and_thread.
10581
10582 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
10583             Ulrich Weigand  <uweigand@de.ibm.com>
10584
10585         * valarith.c (value_vector_widen): New function for replicating a
10586         scalar into a vector.
10587         (value_binop): Use value_vector_widen to widen scalar to vector
10588         rather than casting, this better matches gcc C behaviour.
10589         * valops.c (value_casst): Update logic for casting between vector
10590         types, and for casting from scalar to vector, try to match gcc C
10591         behaviour.
10592         * value.h (value_vector_widen): Declare.
10593         * opencl-lang.c (opencl_value_cast): New opencl specific casting
10594         function, handle special case for casting scalar to vector.
10595         (opencl_relop): Use opencl_value_cast.
10596         (evaluate_subexp_opencl): Use opencl_value_cast instead of
10597         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10598         in order to use opencl_value_cast.
10599
10600 2013-01-25  Yao Qi  <yao@codesourcery.com>
10601
10602         * event-loop.c: Include "queue.h".
10603         (gdb_event_p): New typedef.
10604         (DECLARE_QUEUE_P): Use.
10605         (DEFINE_QUEUE_P): Use.
10606         (async_queue_event): Remove.
10607         (gdb_event_xfree): New.
10608         (initialize_event_loop): New.
10609         (process_event): Use QUEUE macros.
10610         (event_queue): Remove.
10611         (gdb_wait_for_event): Caller update.
10612         (check_async_event_handlers): Likewise.
10613         (poll_timers): Likewise.
10614         * event-loop.h (initialize_event_loop): Declare.
10615         * event-loop.c (gdb_event_xfree): New.
10616         * top.c (gdb_init): Call initialize_event_loop.
10617
10618 2013-01-25  Yao Qi  <yao@codesourcery.com>
10619
10620         * event-loop.c (async_queue_event): Remove one parameter
10621         'position'.  Remove code handling 'position' == TAIL.
10622         (gdb_wait_for_event): Caller update.
10623         (check_async_event_handlers): Caller update.
10624         (poll_timers): Caller update.
10625         * event-loop.h (enum queue_position): Remove.
10626
10627 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
10628
10629         * MAINTAINERS: Update my email.
10630
10631 2013-01-25  Yao Qi  <yao@codesourcery.com>
10632
10633         * main.c (print_gdb_help): Remove "--epoch" from the help
10634         message.
10635
10636 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
10637
10638         * symtab.c (skip_prologue_using_sal): Consider a file
10639         change the same as an increased line number
10640
10641 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10642
10643         * MAINTAINERS (Write After Approval): Add myself to the list.
10644
10645 2013-01-24  Tom Tromey  <tromey@redhat.com>
10646
10647         * ada-lang.h (ada_decode_symbol): Make return type const.
10648         * ada-lang.c (ada_decode_symbol): Likewise.
10649
10650 2013-01-23  Doug Evans  <dje@google.com>
10651
10652         * linespec.c (find_linespec_symbols): Make static.
10653
10654 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10655
10656         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10657         type on float conversion for complex type.
10658
10659 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
10660
10661         Add a new class gdb.Architecture which exposes GDB's
10662         internal representation of architecture via GDB Python API.
10663         * Makefile.in: Add entries corresponding to the new file
10664         python/py-arch.c.
10665         * NEWS (Python Scripting): Add entries for the new class
10666         gdb.Architecture and the new method gdb.Frame.architecture.
10667         * python/py-arch.c: Implement gdb.Architecture class.
10668         * python/py-frame.c (frapy_arch): Implement the method
10669         gdb.Frame.architecture().
10670         (frame_object_methods): Add 'architecture' to the method table.
10671         * python/python-internal.h: Add declarations of new utility
10672         functions.
10673         * python/python.c (_initialize_python): Initialize
10674         gdb.Architecture class.
10675
10676 2013-01-23  Doug Evans  <dje@google.com>
10677
10678         Work around binutils/15021.
10679         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10680         type_unit_group out of union s.  All uses updated.
10681         (read_index_from_section): Watch for index version 8.
10682         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10683         an imported symtab.
10684         (write_psymtabs_to_index): Increment version number to 8.
10685
10686 2013-01-22  Pedro Alves  <palves@redhat.com>
10687
10688         * annotate.c (breakpoint_changed): Skip if breakpoint is not
10689         user-visible.
10690
10691 2013-01-22  Pedro Alves  <palves@redhat.com>
10692
10693         * annotate.c (annotate_breakpoints_changed): Rename to ...
10694         (annotate_breakpoints_invalid): ... this.  Make static.
10695         (breakpoint_changed): Adjust.
10696         (_initialize_annotate): Always install the observers.  Install a
10697         "breakpoint_created" observer.
10698         * annotate.h (annotate_breakpoints_changed): Delete declaration.
10699         * breakpoint.c (set_breakpoint_condition)
10700         (breakpoint_set_commands, do_map_commands_command)
10701         (init_raw_breakpoint, clear_command, set_ignore_count)
10702         (enable_breakpoint_disp): No longer call
10703         annotate_breakpoints_changed.
10704
10705 2013-01-22  Pedro Alves  <palves@redhat.com>
10706
10707         * annotate.c: Include "inferior.h".
10708         (frames_invalid_emitted)
10709         (breakpoints_invalid_emitted): New globals.
10710         (async_background_execution_p): New function.
10711         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10712         emitting the annotation if it has already been emitted.
10713         (annotate_display_prompt): New function.
10714         * annotate.h (annotate_display_prompt): New declaration.
10715         * event-top.c: Include annotate.h.
10716         (display_gdb_prompt): Call annotate_display_prompt.
10717
10718 2013-01-22  Pedro Alves  <palves@redhat.com>
10719
10720         * annotate.c (ignore_count_changed): Delete.
10721         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10722         (annotate_ignore_count_change): Delete.
10723         (annotate_stopped): Don't emit a delayed breakpoints-changed
10724         annotation.
10725         * annotate.h (annotate_ignore_count_change): Delete.
10726         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10727         annotate_ignore_count_change.
10728
10729 2013-01-22  Tom Tromey  <tromey@redhat.com>
10730
10731         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10732         require_rvalue for a register location.
10733
10734 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
10735
10736         * breakpoint.c (print_one_breakpoint_location): Add MI
10737         field 'thread-groups' when printing a breakpoint.
10738         (output_thread_groups): New function.
10739
10740 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
10741
10742         * python/lib/gdb/commands/explore.py
10743         (CompoundExplorer.explore_expr): Correct the name of a method
10744         being invoked.
10745         (ExploreTypeCommand.invoke): Add a missing 'return'.
10746
10747 2013-01-21  Tom Tromey  <tromey@redhat.com>
10748
10749         * gdb_obstack.h (obconcat): Move declaration here, from...
10750         * symfile.h (obconcat): ... here.
10751         * gdb_obstack.c: New file.
10752         (obconcat): Move from...
10753         * symfile.c (obconcat): ... here.
10754         * Makefile.in (SFILES): Add gdb_obstack.c.
10755         (COMMON_OBS): Add gdb_obstack.o.
10756
10757 2013-01-21  Tom Tromey  <tromey@redhat.com>
10758
10759         * symfile.h (obsavestring): Don't declare.
10760         * symfile.c (obsavestring): Remove.
10761         * ada-exp.y: Use obstack_copy0, not obsavestring.
10762         * ada-lang.c: Use obstack_copy0, not obsavestring.
10763         * coffread.c: Use obstack_copy0, not obsavestring.
10764         * cp-namespace.c: Use obstack_copy0, not obsavestring.
10765         * dbxread.c: Use obstack_copy0, not obsavestring.
10766         * dwarf2read.c: Use obstack_copy0, not obsavestring.
10767         * jit.c: Use obstack_copy0, not obsavestring.
10768         * mdebugread.c: Use obstack_copy0, not obsavestring.
10769         * psymtab.c: Use obstack_copy0, not obsavestring.
10770         * stabsread.c: Use obstack_copy0, not obsavestring.
10771         * xcoffread.c: Use obstack_copy0, not obsavestring.
10772
10773 2013-01-21  Tom Tromey  <tromey@redhat.com>
10774
10775         * dwarf2read.c (fixup_go_packaging): Save package name
10776         on objfile obstack.
10777         * gdbtypes.c (init_type): Don't copy name.
10778
10779 2013-01-21  Tom Tromey  <tromey@redhat.com>
10780
10781         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10782         const.
10783         (struct attribute) <u.str>: Now const.
10784         (struct fnfieldlist) <name>: Now const.
10785         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10786         (partial_die_parent_scope): Make return type const.
10787         (partial_die_full_name, add_partial_symbol): Update.
10788         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10789         'name' const.
10790         (find_file_and_directory): Make 'name' and 'comp_dir' const.
10791         (read_file_scope, read_func_scope, dwarf2_add_field)
10792         (dwarf2_add_member_fn, read_structure_type)
10793         (process_enumeration_scope, read_array_type, read_module_type)
10794         (read_base_type, read_subrange_type): Update.
10795         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10796         (new_symbol_full, guess_full_die_structure_name): Update.
10797         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
10798         (dwarf2_name): Return const type.
10799         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10800         const.
10801
10802 2013-01-21  Tom Tromey  <tromey@redhat.com>
10803
10804         * gdbtypes.c (init_type): Make 'name' const.
10805         * gdbtypes.h (init_type): Update.
10806
10807 2013-01-21  Tom Tromey  <tromey@redhat.com>
10808
10809         * buildsym.c (patch_subfile_names): Use set_last_source_file.
10810         (start_symtab): Make 'name' and 'dirname' const.  Use
10811         set_last_source_file.
10812         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10813         (last_source_file): Define.  Now static.
10814         (set_last_source_file, get_last_source_file): New functions.
10815         * buildsym.h (last_source_file): Don't declare.
10816         (start_symtab): Update.
10817         (set_last_source_file, get_last_source_file): Declare.
10818         * coffread.c (complete_symtab): Use set_last_source_file.
10819         (coff_end_symtab): Likewise.
10820         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10821         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10822         set_last_source_file.
10823         (process_one_symbol): Use get_last_source_file.
10824         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10825         (psymtab_to_symtab_1): Use get_last_source_file.
10826         * xcoffread.c (process_linenos): Use get_last_source_file.
10827         (complete_symtab): Use set_last_source_file.
10828         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10829         (scan_xcoff_symtab): Use set_last_source_file.
10830
10831 2013-01-21  Tom Tromey  <tromey@redhat.com>
10832
10833         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10834         (symbol_set_names): Remove casts.  Handle field const-ness.
10835
10836 2013-01-21  Tom Tromey  <tromey@redhat.com>
10837
10838         * dwarf2read.c (new_symbol_full): Remove cast.
10839         * symtab.c (symbol_set_demangled_name): Make 'name' const.
10840         * symtab.h (symbol_set_demangled_name): Update.
10841
10842 2013-01-21  Tom Tromey  <tromey@redhat.com>
10843
10844         * main.c (captured_main): Call bfd_init.
10845
10846 2013-01-21  Tom Tromey  <tromey@redhat.com>
10847
10848         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10849         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10850         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10851         * NEWS: Update.
10852
10853 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10854
10855         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10856
10857 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10858
10859         Fix gdb.fortran/common-block.exp crash in PIE mode.
10860         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10861         LOC_COMMON_BLOCK.
10862         * f-valprint.c (info_common_command_for_block): Expect
10863         LOC_COMMON_BLOCK in gdb_assert.
10864         * symtab.h (struct general_symbol_info): Update comment for the
10865         common_block member.
10866         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10867         (enum address_class): New member LOC_COMMON_BLOCK.
10868
10869 2013-01-18  David Blaikie  <dblaikie@gmail.com>
10870
10871         * MAINTAINERS (Write After Approval): Add "David Blaikie".
10872
10873 2013-01-18  Tom Tromey  <tromey@redhat.com>
10874
10875         PR c++/14999:
10876         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10877         Call require_rvalue.
10878
10879 2013-01-18  Yao Qi  <yao@codesourcery.com>
10880
10881         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10882         (dbx_read_symtab): New declaration.
10883         (dbx_psymtab_to_symtab): Delete.
10884         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10885         Rename parameter PST to SELF.  Exchanged two parameters.
10886         (start_psymtab): Caller update.
10887         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10888         (dwarf2_read_symtab): New declaration.
10889         (dwarf2_psymtab_to_symtab): Delete.
10890         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10891         Rename parameter PST to SELF.  Exchanged two parameters.
10892         (create_partial_symtab): Caller update.
10893         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10894         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10895         Rename parameter PST to SELF.  Exchanged two parameters.
10896         (parse_partial_symbols, new_psymtab): Caller update.
10897         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10898         two parameters.
10899         * psymtab.c (psymtab_to_symtab): Caller update.
10900         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10901         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10902         Rename parameter PST to SELF.  Exchanged two parameters.
10903         (xcoff_start_psymtab): Caller update.
10904
10905 2013-01-18  Yao Qi  <yao@codesourcery.com>
10906
10907         * infrun.c (proceed): Rename local variable 'oneproc' to
10908         'force_step'.
10909
10910 2013-01-17  Doug Evans  <dje@google.com>
10911
10912         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10913         (dw2_build_type_unit_groups): Delete.  All uses updated.
10914
10915         * symtab.h (struct symbol_search): Add comment.
10916
10917 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10918
10919         * symtab.c (compare_filenames_for_search): New comment for
10920         HAS_DRIVE_SPEC.
10921
10922 2013-01-17  Tom Tromey  <tromey@redhat.com>
10923
10924         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10925
10926 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10927
10928         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10929         initialize it by existing make_cleanup.  Call new do_cleanups.
10930
10931 2013-01-17  Tom Tromey  <tromey@redhat.com>
10932
10933         * cp-abi.c (cp_abi_completer): New function.
10934         (_initialize_cp_abi): Set completer for "set cp-abi".
10935
10936 2013-01-17  Tom Tromey  <tromey@redhat.com>
10937
10938         * mem-break.c: Remove obsolete comment.
10939         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10940
10941 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
10942
10943         * jit.c (jit_reader_load_command): Interpret the jit reader name
10944         as an absolute path if it begins with a forward slash.
10945
10946 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
10947
10948         PR gdb/14550
10949
10950         * jit.c (finalize_symtab): Ensure that only the global block has a
10951         NULL superblock.
10952
10953 2013-01-17  Pedro Alves  <palves@redhat.com>
10954
10955         * acinclude.m4: Include ../config/plugins.m4,
10956         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
10957         * Makefile.in (aclocal_m4_deps): Update.
10958         * aclocal.m4: Renegerate.
10959
10960 2013-01-16  Doug Evans  <dje@google.com>
10961
10962         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10963
10964 2013-01-16  Pedro Alves  <palves@redhat.com>
10965             Tom Tromey  <tromey@redhat.com>
10966
10967         PR cli/7221:
10968         * NEWS: Add "catch signal".
10969         * breakpoint.c (base_breakpoint_ops): No longer static.
10970         (bpstat_explains_signal): New function.
10971         (init_catchpoint): No longer static.
10972         (base_breakpoint_explains_signal): New function.
10973         (base_breakpoint_ops): Initialize new field.
10974         * breakpoint.h (enum bpstat_signal_value): New.
10975         (struct breakpoint_ops) <explains_signal>: New field.
10976         (bpstat_explains_signal): Remove macro, declare as function.
10977         (base_breakpoint_ops, init_catchpoint): Declare.
10978         * break-catch-sig.c: New file.
10979         * inferior.h (signal_catch_update): Declare.
10980         * infrun.c (signal_catch): New global.
10981         (handle_syscall_event): Update for change to
10982         bpstat_explains_signal.
10983         (handle_inferior_event): Likewise.  Always handle random signals
10984         via bpstats.
10985         (signal_cache_update): Check signal_catch.
10986         (signal_catch_update): New function.
10987         (_initialize_infrun): Initialize signal_catch.
10988         * Makefile.in (SFILES): Add break-catch-sig.c.
10989         (COMMON_OBS): Add break-catch-sig.o.
10990
10991 2013-01-16  Tom Tromey  <tromey@redhat.com>
10992
10993         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10994         (print_one_catch_solib, print_one_catch_syscall)
10995         (print_one_catch_exec, print_one_exception_catchpoint): Emit
10996         "catch-type".
10997
10998 2013-01-16  Yao Qi  <yao@codesourcery.com>
10999
11000         * printcmd.c (current_display_number): Make it static.
11001
11002 2013-01-16  Yao Qi  <yao@codesourcery.com>
11003
11004         * infcmd.c (step_once): Don't check '!single_inst' as it was
11005         checked before.
11006
11007 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11008
11009         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11010
11011 2013-01-14  Tom Tromey  <tromey@redhat.com>
11012
11013         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11014         set command.
11015         * command.h (add_setshow_string_noescape_cmd): Update.
11016         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11017         (complete_set_gnutarget): New function.
11018         (_initialize_core): Set the "set gnutarget" completer.
11019
11020 2013-01-14  Tom Tromey  <tromey@redhat.com>
11021
11022         PR symtab/14442:
11023         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11024         (c_type_print_modifier): Likewise.
11025         * dwarf2read.c (read_tag_restrict_type): New function.
11026         (read_type_die_1): Handle DW_TAG_restrict_type.
11027         * gdbtypes.c (make_restrict_type): New function.
11028         (recursive_dump_type): Handle TYPE_RESTRICT.
11029         * gdbtypes.h (enum type_flag_values): Renumber.
11030         (enum type_instance_flag_value): Add
11031         TYPE_INSTANCE_FLAG_RESTRICT.
11032         (TYPE_RESTRICT): New macro.
11033         (make_restrict_type): Declare.
11034
11035 2013-01-14  Tom Tromey  <tromey@redhat.com>
11036
11037         PR symtab/14931:
11038         * psymtab.c (struct psymtab_state): New.
11039         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11040         functions.
11041         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11042         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11043
11044 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
11045             Pedro Alves  <palves@redhat.com>
11046
11047         PR remote/14786
11048
11049         * remote.c (remote_threads_info): Make a copy of the reply from
11050         qfThreadInfo and use that instead of rs->buf.
11051
11052 2013-01-14  Yao Qi  <yao@codesourcery.com>
11053
11054         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11055         (dbx_psymtab_to_symtab): Likewise.
11056         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11057         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11058         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11059
11060 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11061
11062         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
11063         make_cleanup_restore_current_language.  Call set_language.  Move
11064         OLD_CHAIN and INNER_CHAIN cleanups.
11065         * utils.c (do_restore_current_language)
11066         (make_cleanup_restore_current_language): New functions.
11067         * utils.h (make_cleanup_restore_current_language): New declaration.
11068
11069 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11070
11071         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11072         non-existing files.
11073
11074         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11075         non-existing files if FILENAME is already absolute.
11076
11077 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11078
11079         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11080         fputs_filtered.  Append trailing newline.
11081
11082 2013-01-11  Yao Qi  <yao@codesourcery.com>
11083             Stan Shebs  <stan@codesourcery.com>
11084
11085         * psymtab.c (init_psymbol_list): Clarify the comment.
11086
11087 2013-01-11  Yao Qi  <yao@codesourcery.com>
11088
11089         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11090         (update_dprintf_command_list): Assert that 'printf_line' is
11091         non-null.  Remove condition check.
11092
11093 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11094
11095         Code cleanup.
11096         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11097         type const char *.
11098         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11099         const char *.
11100         * tui/tui-source.h (tui_source_is_displayed): Likewise.
11101
11102 2013-01-09  Anthony Green  <green@moxielogic.com>
11103
11104         * cp-abi.c (cplus_print_vtable): Don't return value from void
11105         function.
11106         * ada-lang.c (re_set_catch_assert): Ditto.
11107
11108 2013-01-09  Doug Evans  <dje@google.com>
11109
11110         * symfile.h (quick_symbol_functions): Delete member
11111         pre_expand_symtabs_matching.  All uses removed.
11112         * dwarf2read.c (dw2_lookup_symbol): Implement.
11113         (dw2_do_expand_symtabs_matching): Delete.
11114         (dw2_pre_expand_symtabs_matching): Delete.
11115         (struct dw2_symtab_iterator): New type.
11116         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11117         (dw2_expand_symtabs_for_function): Rewrite.
11118         (dwarf2_gdb_index_functions): Update.
11119         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11120         (psym_functions): Update.
11121
11122 2013-01-09  Tom Tromey  <tromey@redhat.com>
11123
11124         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11125         * configure: Rebuild.
11126         * configure.ac: Add somread.o to the build if BFD has SOM
11127         support.
11128         * somread.c: Include som/aout.h, not syms.h.
11129         (som_symtab_read): Use som_external_symbol_dictionary_record.
11130         Unpack records manually.
11131         (_initialize_somread): Declare.
11132
11133 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
11134
11135         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11136         Cast return_address to 64bits.
11137
11138 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
11139
11140         * printcmd.c: Remove define of function output_command.
11141         * tracepoint.c: Remove extern of function output_command.
11142         * valprint.h: (output_command): New extern.
11143
11144 2013-01-07  Tom Tromey  <tromey@redhat.com>
11145
11146         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11147         Remove.
11148         (objc_language_defn): Use c_printchar, c_printstr,
11149         c_emit_char.
11150
11151 2013-01-07  Tom Tromey  <tromey@redhat.com>
11152
11153         PR cli/7719:
11154         * NEWS: Update.
11155         * ada-valprint.c (printstr, print_field_values): Remove
11156         "inspect_it" code.
11157         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11158         code.
11159         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11160         code.
11161         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11162         * main.c (captured_main): Remove "epoch" argument.
11163         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11164         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11165         * p-valprint.c (pascal_object_print_value_fields): Remove
11166         "inspect_it" code.
11167         * printcmd.c (print_command_1): Remove 'inspect' argument.
11168         (print_command, call_command): Update.
11169         (inspect_command): Remove.
11170         (_initialize_printcmd): Make "inspect" an alias for "print".
11171         * top.c (epoch_interface): Remove.
11172         * top.h (epoch_interface): Remove.
11173         * valprint.c (user_print_options): Update.
11174         (print_converted_chars_to_obstack): Remove "inspect_it" code.
11175         * valprint.h (struct value_print_options) <inspect_it>: Remove
11176         field.
11177
11178 2013-01-04  Tom Tromey  <tromey@redhat.com>
11179
11180         * valprint.h (read_string): Add 'extern'.
11181
11182 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
11183
11184         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11185         used to decide whether to define darwin_read_dyld_info or not.
11186
11187 2013-01-03  Pierre Muller  <muller@sourceware.org>
11188
11189         * main.c (relocate_gdb_directory): Avoid calling stat function
11190         if DIR is empty.
11191
11192 2013-01-03  Yao Qi  <yao@codesourcery.com>
11193
11194         * psymtab.c (fixup_psymbol_section): Update declaration.
11195         (fixup_psymbol_section): Remove code returning value.
11196
11197 2013-01-03  Yao Qi  <yao@codesourcery.com>
11198
11199         * symtab.h: Remove some out of date comments.
11200          (enum exception_event_kind): Move it ...
11201         * breakpoint.c: ... here.
11202
11203 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
11204
11205         PR gdb/14405
11206         * darwin-nat.c (darwin_read_dyld_info): Only build if
11207         TASK_DYLD_INFO_COUNT is defined.
11208         (darwin_xfer_partial): Call darwin_read_dyld_info only if
11209         TASK_DYLD_INFO_COUNT is defined.
11210
11211 2013-01-02  Tom Tromey  <tromey@redhat.com>
11212
11213         * symfile.h (struct ecoff_debug_hack): Remove.
11214         * objfiles.c: Don't include mdebugread.h.
11215
11216 2013-01-02  Tom Tromey  <tromey@redhat.com>
11217
11218         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11219         * configure.ac: Check for Mach-O support in BFD.  Update
11220         CONFIG_OBS.
11221         * configure: Rebuild.
11222
11223 2013-01-02  Tom Tromey  <tromey@redhat.com>
11224
11225         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11226         * configure.ac: Use GDB_AC_CHECK_BFD.
11227         * configure: Rebuild.
11228
11229 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
11230
11231         * MAINTAINERS: Update my email.
11232
11233 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11234
11235         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11236
11237 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11238
11239         * rs6000-nat.c (bss_data_overlap): New function.
11240         (vmap_symtab): Use it to adjust the .bss section's offset.
11241
11242 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
11243
11244         Update year range in copyright notice of all files.
11245
11246 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
11247
11248         * top.c (print_gdb_version): Update copyright year.
11249
11250 For older changes see ChangeLog-2012.
11251 \f
11252 Local Variables:
11253 mode: change-log
11254 left-margin: 8
11255 fill-column: 74
11256 version-control: never
11257 coding: utf-8
11258 End: