]> Git Repo - binutils.git/blob - gdb/ChangeLog
New field 'la_natural_name' in struct language_defn
[binutils.git] / gdb / ChangeLog
1 2013-11-07  Yao Qi  <[email protected]>
2
3         * language.h (struct language_defn) <la_natural_name>: New
4         field.
5         * ada-lang.c (ada_language_defn): Initialize field
6         'la_natural_name'.
7         * c-lang.c (c_language_defn): Likewise.
8         (cplus_language_defn, asm_language_defn): Likewise.
9         * d-lang.c (d_language_defn): Likewise.
10         * f-lang.c (f_language_defn): Likewise.
11         * go-lang.c (go_language_defn): Likewise.
12         * jv-lang.c (java_language_defn): Likewise.
13         * language.c (unknown_language_defn ): Likewise.
14         (auto_language_defn): Likewise.
15         * m2-lang.c (m2_language_defn): Likewise.
16         * objc-lang.c (objc_language_defn): Likewise.
17         * opencl-lang.c (opencl_language_defn): Likewise.
18         * p-lang.c (pascal_language_defn): Likewise.
19
20 2013-11-07  Yao Qi  <[email protected]>
21
22         * language.c (language_str): Return const char *.
23         (add_language): Add const to 'language_names'
24         * language.h (struct language_defn) <la_name>: Add const.
25         (language_str: Update declaration.
26
27 2013-11-06  Andreas Arnez  <[email protected]>
28
29         * s390-linux-nat.c (s390_read_description): Consider the TE field
30         in the HWCAP for determining 'have_regset_tdb'.
31
32 2013-11-06  Will Newton  <[email protected]>
33
34         PR gdb/12866
35         * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
36         values.  (read_partial_die): Likewise.
37
38 2013-11-06  Muhammad Bilal  <[email protected]>
39
40         PR cli/16122
41         * top.c (command_line_input): Unify interactivity tests to use
42         input_from_terminal_p.
43         * event-top.c (command_line_handler): Likewise.
44
45 2013-11-06  Yao Qi  <[email protected]>
46
47         * Makefile.in (check-perf): New target.
48
49 2013-11-05  Will Newton  <[email protected]>
50
51         PR gdb/7670
52         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
53         (arm_print_float_info): Likewise.
54
55 2013-11-04  Anton Blanchard  <[email protected]>
56
57         * target.c (memory_xfer_partial): Cap write to 4KB.
58
59 2013-11-01  Tiago Stürmer Daitx  <[email protected]>
60
61         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
62         probe scan even when the arch provides no get_longjmp_target.
63
64 2013-10-31  Pedro Alves  <[email protected]>
65
66         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
67         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
68         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
69         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
70         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
71         <bpstat handling>: If the bpstat chain wants the signal to be
72         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
73         GDB_SIGNAL_TRAP.
74
75 2013-10-31  Andrew Burgess  <[email protected]>
76
77         * breakpoint.c (update_watchpoint): Update error message and add
78         an additional error message.
79
80 2013-10-30  Andreas Arnez  <[email protected]>
81
82         * s390-tdep.h: Rename to...
83         * s390-linux-tdep.h: ...here.
84         * s390-tdep.c: Rename to...
85         * s390-linux-tdep.c: ...here.  Adjust #include.
86         * s390-nat.c: Rename to...
87         * s390-linux-nat.c: ...here.  Adjust #include.
88         * config/s390/s390.mh: Rename to...
89         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
90         s390-linux-nat.o.
91         * configure.host: Reflect host rename "s390" -> "linux".
92         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
93         * Makefile.in (ALL_TARGET_OBS): Likewise.
94         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
95         s390-linux-tdep.h.
96         (ALLDEPFILES): Reflect rename of .c files.
97
98 2013-10-30  Andreas Arnez  <[email protected]>
99
100         * s390-nat.c: Whitespace cleanup.
101         * s390-tdep.c: Likewise.
102         * s390-tdep.h: Remove empty line at end of file.
103
104 2013-10-30  Maciej W. Rozycki  <[email protected]>
105
106         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
107         siginfo_size.
108
109 2013-10-29  Tom Tromey  <[email protected]>
110
111         * utils.c (reg): Move undefinition...
112         * gdb_curses.h: ... here.  Update comment to mention AIX.
113
114 2013-10-29  Nicolas Blanc  <[email protected]>
115
116         * exec.h (add_target_sections_of_objfile): New declaration.
117         * exec.c (add_target_sections_of_objfile): New function.
118         * symfile.c (add_symbol_file_command): Update current target sections.
119         (remove_symbol_file_command): New command.
120         (symfile_free_objfile): New function.
121         (_initialize_symfile): Register observer for free_objfile events.
122         * NEWS: Add description of the remove-symbol-file command.
123         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
124         * objfiles.c (free_objfile): Notify free_objfile.
125         (is_addr_in_objfile): New function.
126         * objfiles.h (is_addr_in_objfile): New declaration.
127         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
128         events instead of solib_unloaded events.
129         (_initialize_printcmd): Register observer for free_objfile instead
130         of solib_unloaded notifications.
131         * solib.c (remove_user_added_objfile): New function.
132         (_initialize_symfile): Add remove-symbol-file.
133
134 2013-10-29  Andrew Burgess  <[email protected]>
135
136         * infcmd.c (default_print_one_register_info): Use val_print to
137         print all values even optimized out or unavailable ones.  Don't
138         try to print a raw form of optimized out or unavailable values.
139
140 2013-10-29  Yao Qi  <[email protected]>
141
142         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
143         parameter 'arg' instead of from program_space_data.
144         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
145         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
146         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
147         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
148         * inflow.c (inflow_inferior_data_cleanup): Get data from
149         parameter 'arg' instead of inferior_data.
150         * registry.h: Add comments.
151
152 2013-10-28  Pedro Alves  <[email protected]>
153
154         * breakpoint.c (watchpoints_triggered)
155         <!target_stopped_data_address>: Hardcode return 1.
156
157 2013-10-28  Pedro Alves  <[email protected]>
158
159         * infrun.c (process_event_stop_test): Remove unnecessary scoping
160         level and reindent.
161
162 2013-10-28  Pedro Alves  <[email protected]>
163
164         * infrun.c (process_event_stop_test): New function, factored out
165         from handle_inferior_event.
166         (handle_inferior_event): 'process_event_stop_test' is now a
167         function instead of a goto label -- adjust.
168
169 2013-10-28  Pedro Alves  <[email protected]>
170
171         * infrun.c (handle_inferior_event): Move process_event_stop_test
172         goto label to the else branch of the ecs->random_signal check,
173         along with FRAME and GDBARCH re-fetching.
174
175 2013-10-28  Pedro Alves  <[email protected]>
176
177         * infrun.c (switch_back_to_stepped_thread): New function, factored
178         out from handle_inferior_event.
179         (handle_inferior_event): Adjust to call
180         switch_back_to_stepped_thread.  Call it also at the tail of the
181         random signal handling, and return, instead of also handling
182         random signals just before the stepping tests.
183
184 2013-10-28  Pedro Alves  <[email protected]>
185
186         * infrun.c (clear_stop_func): Delete.
187         (handle_inferior_event): Don't call clear_stop_func and don't
188         clear 'ecs->random_signal'.
189
190 2013-10-27  Yao Qi  <[email protected]>
191
192         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
193         (varobj_create, varobj_get_path_expr): Update.
194         (varobj_value_has_mutated, varobj_update): Likewise.
195         (create_child_with_value, new_root_variable): Likewise.
196         (number_of_children, name_of_variable): Likewise.
197         (value_of_child, my_value_of_variable): Likewise.
198         (varobj_value_is_changeable_p): Likewise.
199
200 2013-10-25  Yao Qi  <[email protected]>
201
202         * language.h (struct lang_varobj_ops): Declare.
203         (struct language_defn) <la_varobj_ops>: New field.
204         * ada-lang.c: Include "varobj.h"
205         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
206         ada_varobj_ops.
207         * c-lang.c: Include "varobj.h"
208         (c_language_defn): Initialize field 'la_varobj_ops' with
209         c_varobj_ops.
210         (cplus_language_defn): Initialize field 'la_varobj_ops' with
211         cplus_varobj_ops.
212         (asm_language_defn): Initialize field 'la_varobj_ops' with
213         default_varobj_ops.
214         (minimal_language_defn): Likewise.
215         * d-lang.c (d_language_defn): Likewise.
216         * f-lang.c (f_language_defn): Likewise.
217         * go-lang.c (go_language_defn): Likewise.
218         * m2-lang.c (m2_language_defn): Likewise.
219         * objc-lang.c (objc_language_defn): Likewise.
220         * opencl-lang.c (opencl_language_defn): Likewise.
221         * p-lang.c (pascal_language_defn): Likewise.
222         * language.c (unknown_language_defn): Likewise.
223         (auto_language_defn): Likewise.
224         (local_language_defn): Likewise.
225         * jv-lang.c (java_language_defn): Initialize field
226         'la_varobj_ops' with java_varobj_ops.
227         * varobj.c (varobj_create): Update.
228         * varobj.h (default_varobj_ops): Define macro.
229
230 2013-10-25  Pedro Alves  <[email protected]>
231
232         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
233         static field value.
234         (cp_print_static_field): If the value is entirely optimized out,
235         print <optimized out> here.
236         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
237         static field value.
238         * p-valprint.c (pascal_object_print_static_field): If the value is
239         entirely optimized out, print <optimized out> here.
240         * valops.c (do_search_struct_field)
241         (value_struct_elt_for_reference): No longer handle a NULL static
242         field value.
243         * value.c (value_static_field): Return an optimized out value
244         instead of NULL.
245
246 2013-10-25  Yao Qi  <[email protected]>
247
248         * remote.c (remote_traceframe_info): Return early if
249         traceframe is not selected.
250
251 2013-10-25  Yao Qi  <[email protected]>
252
253         * tracepoint.c (traceframe_fun): Remove.
254         (traceframe_sal): Remove.
255         (set_traceframe_context): Add local variables.
256
257 2013-10-25  Joel Brobecker  <[email protected]>
258
259         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
260         and parameter name.
261
262 2013-10-24  Maciej W. Rozycki  <[email protected]>
263
264         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
265         failure from register information collection.
266
267 2013-10-24  Maciej W. Rozycki  <[email protected]>
268
269         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
270         member.
271         (linux_corefile_thread_callback): Update accordingly.
272         (linux_make_corefile_notes): Likewise.
273
274 2013-10-24  Pedro Alves   <[email protected]>
275
276         * NEWS (New options): Mention set/show startup-with-shell.
277         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
278         instead of 3.
279         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
280         startup-with-shell'.
281         (show_startup_with_shell): New function.
282         (_initialize_fork_child): Register the set/show startup-with-shell
283         commands.
284         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
285         * inf-ttrace.c (inf_ttrace_him): Remove comment.
286         * procfs.c (procfs_init_inferior): Remove comment.
287         * infcmd.c (startup_with_shell): New global.
288         * inferior.h (startup_with_shell): Declare global.
289         (STARTUP_WITH_SHELL): Delete.
290         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
291
292 2013-10-23  Pedro Alves  <[email protected]>
293
294         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
295         * common/signals.c: Include "gdb_assert.h".
296         (signals): New field 'symbol'.
297         (SET): Use the 'symbol' parameter.
298         (gdb_signal_to_symbol_string): New function.
299         * infrun.c (handle_inferior_event) <random signal>: In debug
300         output, print the random signal enum as string in addition to its
301         number.
302         * target/waitstatus.c (target_waitstatus_to_string): Print the
303         signal's enum value as string instead of the (POSIX) signal name.
304
305 2013-10-23  Gary Benson  <[email protected]>
306
307         PR 16013
308         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
309         from 32 to 18.  Adjusted fscanf format string accordingly.
310         (Avoids leaving cmd unterminated.)
311         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
312         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
313         that local_address and remote_address will not overflow.
314         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
315         leaving dependencies unterminated.  Parse size as "%u" to match
316         definition.
317
318 2013-10-22  Pedro Alves  <[email protected]>
319
320         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
321         set ecs->random signal.
322
323 2013-10-22  Pedro Alves  <[email protected]>
324
325         * infrun.c (keep_going): Update comments.
326
327 2013-10-22  Pedro Alves  <[email protected]>
328
329         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
330         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
331
332 2013-10-22  Pedro Alves  <[email protected]>
333
334         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
335         GDB_EXC_BAD_ACCESS.
336         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
337         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
338         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
339         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
340         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
341         (GDB_SIGNAL_LAST): Change description string.
342         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
343         Adjust to signal renaming.
344         * darwin-nat.c (darwin_decode_message): Likewise.
345
346 2013-10-22  Jose E. Marchesi  <[email protected]>
347
348         * MAINTAINERS (Write After Approval): Add myself to the list.
349
350 2013-10-18  Andrew Burgess  <[email protected]>
351
352         * breakpoint.c (update_watchpoint): If hardware watchpoints are
353         forced off, downgrade them to software watchpoints if possible,
354         and error out if not possible.
355         (watch_command_1): Move watchpoint type selection closer to
356         watchpoint creation, and extend the comments.
357
358 2013-10-18  Pedro Alves  <[email protected]>
359
360         PR gdb/16062
361         * infrun.c (handle_inferior_event): Keep going if we got a random
362         signal we should not stop for, instead of falling through to the
363         step tests.
364
365 2013-10-18  Yao Qi  <[email protected]>
366
367         * c-varobj.c (cplus_number_of_children): Fix indentation.
368
369 2013-10-17  Tom Tromey  <[email protected]>
370
371         PR gdb/15995:
372         * printcmd.c (printcmd): Call gdb_flush.
373
374 2013-10-17  Tom Tromey  <[email protected]>
375
376         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
377         (elf_locate_sections): Update.
378
379 2013-10-17  Yao Qi  <[email protected]>
380
381         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
382         * ada-varobj.c: Remove the include of ada-varobj.h.
383         (ada_varobj_get_number_of_children): Declare.
384         (ada_varobj_get_name_of_child): Make it static.
385         (ada_varobj_get_path_expr_of_child): Likewise.
386         (ada_varobj_get_value_of_child): Likewise.
387         (ada_varobj_get_type_of_child): Likewise.
388         (ada_varobj_get_value_of_array_variable): Likewise.
389         * ada-varobj.h: Remove.
390
391 2013-10-17  Yao Qi  <[email protected]>
392
393         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
394         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
395         * ada-varobj.c: Include "varobj.h".
396         (ada_number_of_children): New.  Moved from varobj.c.
397         (ada_name_of_variable, ada_name_of_child): Likewise.
398         (ada_path_expr_of_child, ada_value_of_child): Likewise.
399         (ada_type_of_child, ada_value_of_variable): Likewise.
400         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
401         (ada_varobj_ops): New.
402         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
403         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
404         * gdbtypes.h (get_target_type): Declare.
405         * varobj.c: Remove the inclusion of "ada-varobj.h" and
406         "ada-lang.h".
407         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
408         (ANONYMOUS_UNION_NAME): Likewise.
409         (get_type, get_value_type, get_target_type): Remove declarations.
410         (value_get_print_value, varobj_value_get_print_value): Likewise.
411         (c_number_of_children, c_name_of_variable): Likewise.
412         (c_name_of_child, c_path_expr_of_child): Likewise.
413         (c_value_of_child, c_type_of_child): Likewise.
414         (c_value_of_variable, cplus_number_of_children): Likewise.
415         (cplus_class_num_children, cplus_name_of_variable): Likewise.
416         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
417         (cplus_value_of_child, cplus_type_of_child): Likewise.
418         (cplus_value_of_variable, java_number_of_children): Likewise.
419         (java_name_of_variable, java_name_of_child): Likewise.
420         (java_path_expr_of_child, java_value_of_child): Likewise.
421         (java_type_of_child, java_value_of_variable): Likewise.
422         (ada_number_of_children, ada_name_of_variable): Likewise.
423         (ada_name_of_child, ada_path_expr_of_child): Likewise.
424         (ada_value_of_child, ada_type_of_child): Likewise.
425         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
426         (ada_value_has_mutated): Likewise.
427         (struct language_specific): Move it to varobj.h.
428         (CPLUS_FAKE_CHILD): Move it to varobj.h.
429         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
430         Callers update.
431         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
432         Make it extern.
433         (is_anonymous_child): Move it to c-varobj.c and rename to
434         varobj_is_anonymous_child.  Caller update.
435         (get_type): Move it to c-varobj.c.
436         (get_value_type): Rename it varobj_get_value_type.  Make it
437         extern.
438         (get_target_type): Move it gdbtypes.c.
439         (varobj_formatted_print_options): New function.
440         (value_get_print_value): Rename it to
441         varobj_value_get_print_value and make it extern.
442         (varobj_value_is_changeable_p): Make it extern.
443         (adjust_value_for_child_access): Move it to c-varobj.c.
444         (default_value_is_changeable_p): Rename it to
445         varobj_default_value_is_changeable_p.  Make it extern.
446         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
447         (c_name_of_child, c_path_expr_of_child): Likewise.
448         (c_value_of_child, c_type_of_child): Likewise.
449         (c_value_of_variable, cplus_number_of_children): Likewise.
450         (cplus_class_num_children, cplus_name_of_variable): Likewise.
451         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
452         (cplus_value_of_child, cplus_type_of_child): Likewise.
453         (cplus_value_of_variable): Likewise.
454         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
455         (java_name_of_child, java_path_expr_of_child): Likewise.
456         (java_value_of_child, java_type_of_child): Likewise.
457         (java_value_of_variable): Likewise.
458         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
459         (ada_name_of_child, ada_path_expr_of_child): Likewise.
460         (ada_value_of_child, ada_type_of_child): Likewise.
461         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
462         (ada_value_has_mutated): Likewise.
463         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
464         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
465         (c_varobj_ops, cplus_varobj_ops): Declare.
466         (java_varobj_ops, ada_varobj_ops): Declare.
467         (varobj_default_value_is_changeable_p): Declare.
468         (varobj_value_is_changeable_p): Declare.
469         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
470         (varobj_get_path_expr_parent): Declare.
471         (varobj_value_get_print_value): Declare.
472         (varobj_formatted_print_options): Declare.
473         (varobj_restrict_range): Declare.
474
475 2013-10-17  Luis Machado  <[email protected]>
476
477         * target/waitstatus.h (target_waitkind): Remove spurious
478         character from the comments.
479
480 2013-10-17  Joel Brobecker  <[email protected]>
481
482         * gdbarch.sh (get_longjmp_target): Add method documentation.
483         * gdbarch.h: Regenerate.
484
485 2013-10-16  Tom Tromey  <[email protected]>
486
487         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
488         label.
489
490 2013-10-16  Luis Machado  <[email protected]>
491
492         * gcore.in: Call GDB using the full path to the gcore script.
493         Error out if the GDB binary is not found.
494
495 2013-10-16  Sergio Durigan Junior  <[email protected]>
496
497         PR gdb/16014
498         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
499         sizeof.
500
501 2013-10-16  Sergio Durigan Junior  <[email protected]>
502
503         PR gdb/16042
504         * target.c (target_disable_btrace): Fix invalid return value for
505         void function.
506         (target_teardown_btrace): Likewise.
507
508 2013-10-14  Yao Qi  <[email protected]>
509
510         * varobj.c (struct varobj): Move most of the fields to
511         varobj.h.
512         (struct varobj_dynamic): New struct.
513         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
514         (varobj_has_more): Likewise.
515         (dynamic_varobj_has_child_method): Likewise.
516         (update_dynamic_varobj_children): Likewise.
517         (varobj_get_num_children): Likewise.
518         (varobj_list_children, varobj_pretty_printed_p): Likewise.
519         (install_new_value_visualizer): Likewise.
520         (install_new_value_visualizer, install_new_value): Likewise.
521         (varobj_update, new_variable, free_variable): Likewise.
522         (my_value_of_variable, value_get_print_value): Likewise.
523         (install_visualizer): Change the type of parameter 'var' to
524         'struct varobjd_dynamic *'.  Callers update.
525         * varobj.h (struct varobj): Moved from varobj.c.
526         (struct varobj) <dynamic>: New field.
527
528 2013-10-13  Sandra Loosemore  <[email protected]>
529
530         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
531         as the preferred name of r30.
532         * nios2-linux-tdep.c (reg_offsets): Likewise.
533         * features/nios2-cpu.xml: Likewise.
534         * features/nios2-linux.c: Regenerated.
535         * features/nios2.c: Regenerated.
536         * regformats/nios2-linux.dat: Regenerated.
537
538 2013-10-13  Jan Kratochvil  <[email protected]>
539
540         Canonicalize directories for EXEC_FILENAME.
541         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
542         exec_filename.
543         * utils.c (gdb_realpath_keepfile): New function.
544         * utils.h (gdb_realpath_keepfile): New declaration.
545
546 2013-10-11  Doug Evans  <[email protected]>
547
548         * Makefile.in (GDBFLAGS): New variable.
549         (run): New rule.
550
551 2013-10-11  Joel Brobecker  <[email protected]>
552
553         * NEWS: Add entry documenting the new "-catch-assert" and
554         "-catch-exception" GDB/MI commands.
555
556 2013-10-11  Joel Brobecker  <[email protected]>
557
558         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
559         "enabled".
560         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
561         "enabled".  Set B->ENABLE_STATE accordingly.
562         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
563         ada-lang.c.
564         (create_ada_exception_catchpoint): Add declaration.
565         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
566         (create_ada_exception_catchpoint): Make non-static. Add new
567         parameter "disabled". Use it in call to
568         init_ada_exception_breakpoint.
569         (catch_ada_exception_command): Add parameter "enabled" in call
570         to create_ada_exception_catchpoint.
571         (catch_assert_command): Likewise.
572
573         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
574         Add declarations.
575         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
576         "catch-exception" commands.
577         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
578         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
579
580 2013-10-11  Joel Brobecker  <[email protected]>
581
582         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
583         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
584         of all its enumerates with "ada_".  Update the rest of this
585         file throughout.
586
587 2013-10-11  Joel Brobecker  <[email protected]>
588
589         * ada-lang.c (ada_decode_exception_location): Delete.
590         (create_ada_exception_catchpoint): Remove arguments "sal",
591         "addr_string" and "ops".  Add argument "ex_kind" instead.
592         Adjust implementation accordingly, calling ada_exception_sal
593         to get the entities it no longer gets passed as arguments.
594         Document the function's arguments.
595         (catch_ada_exception_command): Use catch_ada_exception_command_split
596         instead of ada_decode_exception_location, and update call to
597         create_ada_exception_catchpoint.
598         (catch_ada_assert_command_split): Renames
599         ada_decode_assert_location.  Remove parameters "addr_string" and
600         "ops", and now returns void.  Adjust implementation accordingly.
601         Update the function documentation.
602         (catch_assert_command): Use catch_ada_assert_command_split
603         instead of ada_decode_assert_location.  Update call to
604         create_ada_exception_catchpoint.
605
606 2013-10-11  Joel Brobecker  <[email protected]>
607
608         * utils.h (perror_warning_with_name): Add declaration.
609         * utils.c (perror_warning_with_name): New function.
610         * cli/cli-cmds.c (source_script_with_search): Add call to
611         perror_warning_with_name if from_tty is nul.
612
613 2013-10-11  Joel Brobecker  <[email protected]>
614
615         * utils.c (perror_string): New function, extracted out of
616         throw_perror_with_name.
617         (throw_perror_with_name): Rework to use perror_string.
618
619 2013-10-11  Yao Qi  <[email protected]>
620
621         * remote.c (discard_pending_stop_replies_in_queue): Update
622         declaration.
623         (struct stop_reply) <rs>: New field.
624         (remove_stop_reply_of_remote_state): New function.
625         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
626         Callers update.  Pass remove_stop_reply_of_remote_state to
627         QUEUE_iterate.
628         (remote_parse_stop_reply): Initialize field 'rs'.
629
630 2013-10-10  Will Newton  <[email protected]>
631
632         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
633         linux_init_abi.
634
635 2013-10-10  Joel Brobecker  <[email protected]>
636
637         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
638         serial_baud_show_cmd.
639         (_initialize_cli_cmds): Delete the code creating the
640         "set/show remotebaud" commands.
641         * serial.c (baud_rate): Move here from top.c.
642         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
643         (_initialize_serial): Create "set/show serial baud" commands.
644         Add "set/show remotebaud" command aliases.
645         * top.c (baud_rate): Moved to serial.c.
646         * NEWS: Document the new "set/show serial baud" commands,
647         replacing "set/show remotebaud".
648
649 2013-10-09  Pedro Alves  <[email protected]>
650
651         * breakpoint.c (insert_bp_location): Use memory_error_message to
652         build the memory error string.
653         * c-lang.c: Include "gdbcore.h".
654         (c_get_string): Use memory_error to throw error.
655         (target_xfer_memory_error): Delete.
656         (memory_error_message): New, factored out from
657         target_xfer_memory_error.
658         (memory_error): Change parameter type to target_xfer_error.
659         Rewrite.
660         (read_memory): Use memory_error instead of
661         target_xfer_memory_error.
662         * gdbcore.h: Include "target.h".
663         (memory_error): Change parameter type to target_xfer_error.
664         (memory_error_message): Declare function.
665         * target.c (target_read_memory, target_read_stack)
666         (target_write_memory, target_write_raw_memory): Return
667         TARGET_XFER_E_IO on error.  Adjust comments.
668         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
669         instead of EIO.
670         * target.h (target_read, target_insert_breakpoint)
671         (target_remove_breakpoint): Adjust comments.
672         * valprint.c (partial_memory_read): Rename parameter, and adjust
673         comment.
674         (val_print_string): Use memory_error_message to build the memory
675         error string.
676
677 2013-10-09  Jan Kratochvil  <[email protected]>
678
679         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
680         result variable.  Rename variable fopen_e_ever_failed to
681         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
682
683 2013-10-09  Pedro Alves  <[email protected]>
684
685         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
686         (monitor_write_memory_longlongs, monitor_write_memory_block):
687         Constify 'myaddr' parameter.
688         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
689         helper.
690         (monitor_xfer_partial): New function.
691         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
692         hook.  Install a to_xfer_partial hook.
693
694 2013-10-09  Tom Tromey  <[email protected]>
695
696         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
697         bfd_get_alt_debug_link_info.
698
699 2013-10-09  Jan Kratochvil  <[email protected]>
700
701         New flag OBJF_NOT_FILENAME.
702         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
703         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
704         allocate_objfile.
705         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
706         symbol_file_add_from_bfd.
707         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
708         allocate_objfile.
709         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
710         NULL.
711         * objfiles.h (OBJF_NOT_FILENAME): New.
712
713 2013-10-08  Tom Tromey  <[email protected]>
714
715         * Makefile.in (SFILES): Add build-id.c.
716         (HFILES_NO_SRCDIR): Add build-id.h.
717         * build-id.c: New file, largely from elfread.c.  Modified
718         most functions.
719         * build-id.h: New file.
720         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
721         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
722         Search for dwz file using build-id.
723         * elfread.c (build_id_bfd_get, build_id_verify)
724         (build_id_to_debug_filename, find_separate_debug_file): Remove.
725
726 2013-10-08  Joel Brobecker  <[email protected]>
727
728         * ada-lang.c (compare_names_with_case): Renamed from
729         compare_names, adding a new parameter "casing" and its handling.
730         New function documentation.
731         (compare_names): New function, implemented using
732         compare_names_with_case.
733
734 2013-10-08  Joel Brobecker  <[email protected]>
735
736         * ada-lang.c (ada_exception_sal): Remove advance declaration.
737
738 2013-10-07  Tom Tromey  <[email protected]>
739
740         * objfiles.c (free_objfile_per_bfd_storage): Delete the
741         demangled_names_hash.
742         (free_objfile): Don't delete the demangled_names_hash.
743         * objfiles.h (struct objfile_per_bfd_storage)
744         <demangled_names_hash>: New field.
745         (struct objfile) <demangled_names_hash>: Move to
746         objfile_per_bfd_storage.
747         * symfile.c (reread_symbols): Don't delete the
748         demangled_names_hash.
749         * symtab.c (create_demangled_names_hash): Update.
750         (symbol_set_names): Update.
751
752 2013-10-07  Tom Tromey  <[email protected]>
753
754         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
755         needs_relocations>: New fields.
756         (gdb_bfd_requires_relocations): New function.
757         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
758         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
759         the BFD needs relocations applied.
760
761 2013-10-07  Pedro Alves  <[email protected]>
762
763         PR breakpoints/11568
764         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
765         the thread list" instead of "gone".
766
767 2013-10-06  Sergio Durigan Junior  <[email protected]>
768
769         * NEWS: Mention new convenience variable $_exitsignal.
770         * corelow.c (core_open): Reset exit convenience variables.  Set
771         $_exitsignal to the uncaught signal which generated the corefile.
772         * infrun.c (handle_inferior_event): Reset exit convenience
773         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
774         (clear_exit_convenience_vars): New function.
775         * inferior.h (clear_exit_convenience_vars): New prototype.
776
777 2013-10-06  Yao Qi  <[email protected]>
778
779         * varobj.h: Add comments to enum varobj_languages.
780
781 2013-10-04  Doug Evans  <[email protected]>
782
783         Add support for DWP file format version 2.
784         * NEWS: Mention support for DWP file format version 2.
785         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
786         union of asection, containing_section.  New fields virtual_offset
787         and is_virtual.  Change type of readin filed from int to char.
788         (dwo_sections, dwo_file): Tweak comments.
789         (dwp_v2_section_ids): New enum.
790         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
791         str_offsets, types.
792         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
793         All uses updated.
794         (virtual_v2_dwo_sections): New struct.
795         (dwp_hash_table): New fields version, nr_columns.  Change type of
796         section_pool field to a union.
797         (dwp_file): New field version.
798         (dwarf2_has_info): Check for virtual sections.
799         (get_containing_section): New function.
800         (get_section_bfd_owner, get_section_bfd_section): Call it.
801         (dwarf2_locate_sections): Update.
802         (dwarf2_section_empty_p): Update.
803         (dwarf2_read_section): Handle virtual sections.
804         (locate_dwz_sections): Update.
805         (create_dwp_hash_table): Document and handle V2 format.
806         (locate_v1_virtual_dwo_sections): Renamed from
807         locate_virtual_dwo_sections and update.  All callers updated.
808         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
809         Delete arg htab.  Rename arg section_index to unit_index.
810         All callers updated.
811         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
812         All uses updated.
813         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
814         (lookup_dwo_unit_in_dwp): Add V2 support.
815         (dwarf2_locate_dwo_sections): Update.
816         (dwarf2_locate_common_dwp_sections): Renamed from
817         dwarf2_locate_dwp_sections and update.  All callers updated.
818         (dwarf2_locate_v2_dwp_sections): New function.
819         (open_and_init_dwp_file): Add V2 support.
820         (read_str_index): New locals str_section, str_offsets_section.
821
822 2013-10-04  Pedro Alves  <[email protected]>
823
824         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
825         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
826         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
827         describing comments with references to ptid.h.
828         * common/ptid.h: Remove intro description of constructors,
829         accessors and predicates.
830         (struct ptid): Reformat.
831         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
832         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
833         describing comments.
834
835 2013-10-04  Joel Brobecker  <[email protected]>
836
837         * aix-thread.c (sync_threadlists): Add missing ')' in call
838         to ptid_build.
839
840 2013-10-04  Joel Brobecker  <[email protected]>
841
842         * procfs.c (procfs_init_inferior): Fix typo causing the build
843         to fail.
844
845 2013-10-04  Joel Brobecker  <[email protected]>
846
847         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
848
849 2013-10-04  Joel Brobecker  <[email protected]>
850
851         * mi/mi-main.c (run_one_inferior): Add function description.
852         Make ARG a pointer to an integer whose value determines whether
853         we should "run" or "start" the program.
854         (mi_cmd_exec_run): Add handling of the "--start" option.
855         Reject all other command-line options.
856         * NEWS: Add entry for "-exec-run"'s new "--start" option.
857
858 2013-10-04  Yao Qi  <[email protected]>
859
860         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
861         (struct notif_client) <pending_event>: Moved
862         to struct remote_notif_state.
863         <id>: New field.
864         (struct remote_notif_state) <pending_event>: New field.
865         (notif_event_xfree): Declare.
866         * remote-notif.c (handle_notification): Adjust.
867         (notif_event_xfree): New function.
868         (do_notif_event_xfree): Call notif_event_xfree.
869         (remote_notif_state_xfree): Call notif_event_xfree to free
870         each element in field pending_event.
871         * remote.c (discard_pending_stop_replies): Remove declaration.
872         (discard_pending_stop_replies_in_queue): Declare.
873         (remote_close): Call discard_pending_stop_replies_in_queue
874         instead of discard_pending_stop_replies.
875         (remote_start_remote): Adjust.
876         (stop_reply_xfree): Call notif_event_xfree.
877         (notif_client_stop): Adjust initialization.
878         (remote_notif_remove_all): Rename it to ...
879         (remove_stop_reply_for_inferior): ... this.  Update comments.
880         Don't check INF is NULL.
881         (discard_pending_stop_replies): Return early if notif_state is
882         NULL.  Adjust.  Don't check INF is NULL.
883         (remote_notif_get_pending_events): Adjust.
884         (discard_pending_stop_replies_in_queue): New function.
885         (remote_wait_ns): Likewise.
886
887 2013-10-04  Yao Qi  <[email protected]>
888
889         * remote-notif.c (DECLARE_QUEUE_P): Remove.
890         (notif_queue): Remove.
891         (remote_notif_process): Add one parameter 'notif_queue'.
892         Update comments.  Callers update.
893         (remote_async_get_pending_events_token): Remove.
894         (remote_notif_register_async_event_handler): Remove.
895         (remote_notif_unregister_async_event_handler): Remove.
896         (handle_notification): Add parameter 'notif_queue'.  Update
897         comments.  Callers update.
898         (notif_xfree): Remove.
899         (remote_notif_state_allocate): New function.
900         (remote_notif_state_xfree): New function.
901         (_initialize_notif): Remove code to allocate queue.
902         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
903         (struct remote_notif_state): New.
904         (handle_notification): Update declaration.
905         (remote_notif_process): Likewise.
906         (remote_notif_register_async_event_handler): Remove.
907         (remote_notif_unregister_async_event_handler): Remove.
908         (remote_notif_state_allocate): Declare.
909         (remote_notif_state_xfree): Declare.
910         * remote.c (struct remote_state) <notif_state>: New field.
911         (remote_close): Don't call
912         remote_notif_unregister_async_event_handler.  Call
913         remote_notif_state_xfree.
914         (remote_open_1): Don't call
915         remote_notif_register_async_event_handler.  Call
916         remote_notif_state_allocate.
917
918 2013-10-04  Yao Qi  <[email protected]>
919
920         * varobj.c (create_child_with_value): Remove 'const' from the
921         type of parameter 'name'.
922         (varobj_add_child): Likewise.
923         (install_dynamic_child): Remove 'const' from the type of
924         parameter 'name'.
925         (varobj_add_child): Likewise.
926         (create_child_with_value): Likewise.  Update comments.  Don't
927         duplicate 'name'.
928         (update_dynamic_varobj_children): Duplicate 'name'
929         and pass it to install_dynamic_child.
930
931 2013-10-03  Phil Muldoon  <[email protected]>
932
933         * python/py-value.c (convert_value_from_python): Move PyInt_Check
934         conversion logic to occur after PyLong_Check.  Comment on order
935         change significance.
936         * python/py-arch.c (archpy_disassemble): Comment on order of
937         conversion for integers and longs.
938
939 2013-10-03  Pedro Alves  <[email protected]>
940
941         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
942         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
943         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
944         PTRACE_O_TRACEFORK is not supported.
945         (linux_test_for_tracesysgood): New function.
946         (linux_test_for_tracefork): New function, factored out from
947         linux_check_ptrace_features, and also don't kill child_pid here.
948
949 2013-10-03  Tristan Gingold  <[email protected]>
950
951         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
952         Remove verbose error reporting.  Use detected state to
953         thread_set_state call.
954         (i386_darwin_dr_get): Fix return type.  Remove verbose error
955         report.
956         Remove trailing spaces.
957
958 2013-10-02  Pedro Alves  <[email protected]>
959
960         * cp-valprint.c (cp_print_value_fields): Adjust calls to
961         val_print_optimized_out.
962         * jv-valprint.c (java_print_value_fields): Likewise.
963         * p-valprint.c (pascal_object_print_value_fields): Likewise.
964         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
965         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
966         new optimized out value.
967         * findvar.c (address_from_register): Likewise.
968         * frame.c (put_frame_register): Tweak error string to say the
969         register was not saved, rather than optimized out.
970         * infcmd.c (default_print_one_register_info): Adjust call to
971         val_print_optimized_out.  Use value_of_register instead of
972         get_frame_register_value.
973         * mi/mi-main.c (output_register): Use value_of_register instead of
974         get_frame_register_value.
975         * valprint.c (valprint_check_validity): Likewise.
976         (val_print_optimized_out): New value parameter.  If the value is
977         lval_register, print <not saved> instead.
978         (value_check_printable, val_print_scalar_formatted): Adjust calls
979         to val_print_optimized_out.
980         * valprint.h (val_print_optimized_out): New value parameter.
981         * value.c (struct value) <optimized_out>: Extend comment.
982         (error_value_optimized_out): New function.
983         (require_not_optimized_out): Use it.  Use a different string for
984         lval_register values.
985         * value.h (error_value_optimized_out): New declaration.
986         * NEWS: Mention <not saved>.
987
988 2013-10-02  Joel Brobecker  <[email protected]>
989
990         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
991         strcmp to compare two symtab filenames.
992
993 2013-10-02  Joel Brobecker  <[email protected]>
994
995         * symtab.c (search_symbols_equal): Delete.
996         (sort_search_symbols_remove_dups): Replace call to
997         search_symbols_equal by call to compare_search_syms,
998         adjusting as necessary.
999
1000 2013-10-02  Phil Muldoon  <[email protected]>
1001
1002         PR python/15579
1003
1004         * python/python.c: Document gdb.execute command in Python help.
1005
1006 2013-10-02  Phil Muldoon  <[email protected]>
1007
1008         * python/py-frame.c (frame_info_to_frame_object): Use
1009         gdbpy_convert_exception. Clean up Python object on failure.
1010
1011 2013-10-02  Phil Muldoon  <[email protected]>
1012
1013         * python/lib/gdb/command/frame_filters.py
1014         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1015         (ShowFrameFilterPriority.invoke): Ditto.
1016
1017 2013-10-01  Keith Seitz  <[email protected]>
1018
1019         * linespec.c (struct ls_parser): Make 'saved_arg' const.
1020         (parse_linespec): Make 'argptr' const.
1021         Remove temporary cast of 'argptr' to const char **.
1022         (decode_line_full): Pass const pointer to parse_linespec.
1023         (decode_line_1): Likewise.
1024         (decode_objc): Make local variable 'new_argptr' const.
1025         (find_function_symbols): Remove temporary cast to char *
1026         to find_imps.
1027         * objc-lang.c (find_imps): Make argument 'method' const.
1028         Return const.
1029         * objc-lang.h (find_imps): Likewise.
1030
1031 2013-10-01  Keith Seitz  <[email protected]>
1032
1033         * completer.c (skip_quoted_chars): Make all arguments const.
1034         Return const.
1035         (skip_quoted): Likewise.
1036         * completer.h (skip_quoted_chars): Likewise.
1037         (skip_quoted): Likewise.
1038         * defs.h (skip_quoted): Remove duplicate declaration.
1039         * jv-exp.y: Include completer.h.
1040         (yylex): Remove unneccessary cast to char * fro skip_quoted.
1041         * p-exp.y: Include completer.h.
1042
1043 2013-10-01  Keith Seitz  <[email protected]>
1044
1045         * c-exp.y (parse_number): Make first argument const.
1046         Make a copy of the input to manipulate.
1047         (c_parse_escape): Make first argument const.
1048         Make local variable 'tokptr' const.
1049         (parse_string_or_char): Make first two arguments const.
1050         (macro_original_text): Make const.
1051         (lex_one_token): Make local variable 'tokstart' const.
1052         Likewise for local variables named 'p'.
1053         Cast away const for struct stoken (temporary).
1054         * c-lang.h (c_parse_escpae): Make first argument const.
1055         * cli/cli-cmds.c (echo_command): Make local variable 'p'
1056         const.
1057         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1058         var_string case.
1059         * f-exp.y (parse_number): Make first argument const.
1060         (match_string_literal): Make local variable 'tokstart'
1061         const.
1062         (yylex): Make local variable 'p' const.
1063         Cast away const for struct stoken (temporary).
1064         * go-exp.y (parse_number): Make first argument const.
1065         (parse_string_or_char): Likewise.
1066         Make local variable 'tokstart' const.
1067         (lex_one_token): Likewise for numerous locals called 'p'.
1068         Cast away const for struct stoken (temporary).
1069         * jv-exp.y (parse_number): Make first argument const.
1070         Make local variables 'tokstart' and 'tokptr' const.
1071         Cast away const for call to skip_quoted (temporary).
1072         (yylex): Make local variable 'p' const.
1073         Cast away const for struct stoken (temporary).
1074         * m2-exp.y (parse_number): Make local variable 'p' const.
1075         (yylex): Likewise for 'tokstart'.
1076         Cast away const for struct stoken (temporary).
1077         Make local variable 'p' const.
1078         * macroexp.c (get_character_constant): Pass a const string
1079         to c_parse_escape.
1080         (get_string_literal): Likewise.
1081         (macro_expand_next): Make first argument const.
1082         Cast away const for init_shared_buffer.
1083         * macroexp.h (macro_expand_next): Make first argument const.
1084         * p-exp.y (yylex): Make a local copy of 'lexptr'.
1085         Pass a const string to c_parse_escape.
1086         Make local variables 'p' and 'namestart' const.
1087         * parse.c (lexptr): Make const.
1088         (prev_lexptr): Likewise.
1089         (find_template_name_end): Return const.
1090         Make argument const, too.
1091         (parse_exp_in_context): Make first argument const.
1092         Remove the entire const_hack.
1093         (parse_exp_in_context_1): Make first argument const.
1094         * parser-defs.h (find_template_name_end): Return const.
1095         Make argument const, too.
1096         (lexptr): Make const.
1097         (prev_lexptr): Likewise.
1098         * utils.c (parse_escape): Make second argument const.
1099         * utils.h (parse_escape): Likewise.
1100
1101 2013-10-01  Keith Seitz  <[email protected]>
1102
1103         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1104         is now const.
1105         (block_lookup): Make 'raw_name' and 'name' const.
1106         * ada-lex.l (processString): Update for struct stoken.ptr.
1107         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1108         (operator_stoken): Likewise.
1109         (lex_one_token): Remove temporary cast to char * for
1110         'yylval.sval.ptr'.
1111         * f-exp.y (yylex): Likewise.
1112         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1113         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1114         * go-exp.y (lex_one_token): Remove temporary cast to char * for
1115         'yylval.sval.ptr'.
1116         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1117         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1118         * linespec.c (struct ls_parser): Make 'stream' const.
1119         (find_parameter_list_end): Make argument 'input' and local
1120         variable 'p' const.
1121         (linespec_lexer_lex_string): Make local variables 'start' and
1122         'p' const.
1123         Use skip_spaces_const instead of skip_spaces.
1124         (linespec_lexer_peek_token): Make local variable 'saved_stream'
1125         const.
1126         (parse_linespec): Temporarily cast 'argptr' to const for
1127         'parser->lexer.stream'.
1128         * m2-exp.y (yylex): Remove temporary cast to char * for
1129         'yylval.sval.ptr'.
1130         * objc-lang.c (add_msglist): Make local variable 'p' const.
1131         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1132         (exp : STRING): Make 'sp' const.
1133         (parse_number): Make argument 'p' const.
1134         * parser-defs.h (struct stoken): Make 'ptr' const.
1135
1136 2013-10-01  Doug Evans  <[email protected]>
1137
1138         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1139
1140 2013-10-01  Yao Qi  <[email protected]>
1141
1142         * varobj.c (c_value_of_root): Remove declaration.
1143         (cplus_value_of_root, java_value_of_root): Likewise.
1144         (ada_value_of_root): Likewise.
1145         (struct language_specific) <value_of_root>: Remove.
1146         (languages): Update initialization.
1147         (check_scope): Move earlier.
1148         (c_value_of_root): Move earlier and rename to ...
1149         (value_of_root_1): ... this.
1150         (value_of_root): Caller update.
1151         (cplus_value_of_root, java_value_of_root): Remove.
1152         (ada_value_of_root): Remove.
1153
1154 2013-10-01  Yao Qi  <[email protected]>
1155
1156         * varobj.c (varobj_format_string): Remove "unknown".
1157         (languages): Remove the first element.
1158         * varobj.h (enum varobj_languages): Remove vlang_c.
1159
1160 2013-10-01  Yao Qi  <[email protected]>
1161
1162         * varobj.c (struct language_specific) <language>: Remove.
1163         (languages): Update the initialization.
1164
1165 2013-10-01  Yao Qi  <[email protected]>
1166
1167         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1168         "solib-target.h".  Include "windows-tdep.h".
1169         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
1170         set_solib_ops and set_gdbarch_has_dos_based_file_system.
1171         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1172         windows-tdep.o to gdb_target_obs.
1173
1174 2013-10-01  Yao Qi  <[email protected]>
1175
1176         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1177         "solib-target.h".
1178         (amd64_windows_init_abi): Don't call set_solib_ops and
1179         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1180         windows_init_abi instead.
1181         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1182         "solib-target.h".
1183         (i386_cygwin_init_abi): Don't call set_solib_ops,
1184         set_gdbarch_has_dos_based_file_system and
1185         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
1186         windows_init_abi instead.
1187         * windows-tdep.c: Include "solib.h" and "solib-target.h".
1188         (windows_init_abi): New function.
1189         (windows_iterate_over_objfiles_in_search_order): Make it
1190         static.
1191         * windows-tdep.h (windows_init_abi): Declare.
1192         (windows_iterate_over_objfiles_in_search_order): Remove
1193         declaration.
1194
1195 2013-10-01  Jerome Guitton  <[email protected]>
1196
1197         Checked in by Joel Brobecker  <[email protected]>
1198         * system-gdbinit/elinos.py (get_elinos_environment): Return an
1199         incomplete dictionnary instead of None in case of missing
1200         environment variables.
1201         (elinos_init): in case of an incomplete environment, best
1202         effort to load system libraries instead of abort.
1203
1204 2013-10-01  Joel Brobecker  <[email protected]>
1205
1206         * ada-lang.c (ada_has_this_exception_support): Ignore
1207         mst_solib_trampoline minimal symbols.
1208
1209 2013-09-30  Tristan Gingold  <[email protected]>
1210
1211         * i386-darwin-nat.c (darwin_complete_target): Install methods for
1212         hardware watchpoint.
1213         (i386_darwin_dr_set): Support 32 and 64 bit states.
1214         (i386_darwin_dr_get): Likewise.
1215         (i386_darwin_dr_set_control): Make static.
1216         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1217         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1218
1219 2013-09-30  Luis Machado  <[email protected]>
1220
1221         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1222         Replace TIDGET with ptid_get_lwp.
1223         Replace GET_LWP with ptid_get_lwp.
1224         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1225         Replace BUILD_THREAD with ptid_build.
1226         Replace BUILD_LWP with ptid_build.
1227         Replace PIDGET with ptid_get_pid.
1228         Replace TIDGET with ptid_get_lwp.
1229         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1230         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1231         Replace TIDGET with ptid_get_lwp.
1232         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1233         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1234         Replace TIDGET with ptid_get_lwp.
1235         Replace GET_LWP with ptid_get_lwp.
1236         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1237         * auxv.c: Likewise.
1238         * breakpoint.c: Likewise.
1239         * common/ptid.c (ptid_is_pid): Condense check for
1240         null_ptid and minus_one_ptid.
1241         (ptid_lwp_p): New function.
1242         (ptid_tid_p): New function.
1243         * common/ptid.h: Update comments for accessors.
1244         (ptid_lwp_p): New prototype.
1245         (ptid_tid_p): New prototype.
1246         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1247         * gcore.c: Replace PIDGET with ptid_get_pid.
1248         * gdbthread.h: Likewise.
1249         * gnu-nat.c: Likewise.
1250         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1251         Replace TIDGET with ptid_get_lwp.
1252         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1253         * hppanbsd-nat.c: Likewise.
1254         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1255         Replace TIDGET with ptid_get_lwp.
1256         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1257         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1258         * infcmd.c: Likewise.
1259         * inferior.h: Likewise.
1260         * inflow.c: Likewise.
1261         * infrun.c: Likewise.
1262         * linux-fork.c: Likewise.
1263         * linux-nat.c: Replace PIDGET with ptid_get_pid.
1264         Replace GET_PID with ptid_get_pid.
1265         Replace is_lwp with ptid_lwp_p.
1266         Replace GET_LWP with ptid_get_lwp.
1267         Replace BUILD_LWP with ptid_build.
1268
1269 2013-09-28  Mike Frysinger  <[email protected]>
1270
1271         * common/linux-btrace.c: Move sys/syscall.h out of the
1272         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1273         Also check for SYS_perf_event_open before attempting to buid.
1274
1275 2013-09-27  Doug Evans  <[email protected]>
1276
1277         * dwarf2read.c (dwarf2_section_info): Add comment.
1278         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1279         All uses updated.
1280         (dwarf2_section_empty_p): Rename arg from "info" to "section".
1281         (dwarf2_read_section): Delete unused local "header".  Add section
1282         name to error message.
1283         (create_dwo_in_dwp): Tweak comment.
1284         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1285
1286         * dwarf2read.c (die_reader_specs): Tweak comment.
1287         (get_section_bfd_owner, get_section_bfd_section): New functions.
1288         (get_section_name, get_section_file_name): New functions.
1289         (get_section_id, get_section_flags): New functions.
1290         (*): Use new functions to access section fields.
1291
1292         * dwarf2read.c (struct dwo_file): Add/tweak comments.
1293         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
1294         arg "htab".  All callers updated.
1295         (create_debug_types_hash_table): Remove redundant copy of
1296         abbrev_section.
1297         (create_dwo_in_dwp): Tweak comments.
1298         (read_str_index): Tweak comment.  Record dwarf form name in static
1299         local.
1300
1301 2013-09-27  Pedro Alves  <[email protected]>
1302
1303         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1304         (remote_filename_p): Add comment.
1305         * remote.c (remote_filename_p): Adjust to use
1306         REMOTE_SYSROOT_PREFIX.
1307         * solib.c (solib_find): When deciding whether we need to add a
1308         directory separator, check whether the sysroot is "remote:"
1309         instead of checking whether the patch has a drive spec.  Add
1310         comments.
1311
1312 2013-09-27  Pedro Alves  <[email protected]>
1313
1314         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1315         Delete fields.
1316         (remote_parse_stop_reply): Adjust, setting event->ws.kind
1317         directly.
1318
1319 2013-09-26  Jan Kratochvil  <[email protected]>
1320
1321         Fix set debug frame output.
1322         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
1323         SENTINEL_FRAME entry lower to match enum frame_type order.
1324
1325 2013-09-26  Pierre Muller  <[email protected]>
1326
1327         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1328         AMD64_R15_REGNUM when a register index is expected.
1329         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1330         Substitute in array.
1331         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1332         (amd64_push_arguments): Substitute in integer_regnum array.
1333
1334 2013-09-25  Doug Evans  <[email protected]>
1335
1336         * objfiles.c (allocate_objfile): Move comment to better place.
1337
1338         New option "set debug symfile on".
1339         * NEWS: Mention "set debug symfile".
1340         * Makefile.in (SFILES): Add symfile-debug.c.
1341         (COMMON_OBS): Add symfile-debug.o.
1342         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1343         objfile's symbol functions.
1344         * objfiles.h (objfile_set_sym_fns): Declare.
1345         * symfile-debug.c: New file.
1346         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1347         objfile's symbol functions.
1348         (reread_symbols): Ditto.
1349
1350         * symfile.h (struct sym_fns): Delete member "sym_flavour".
1351         All uses updated.
1352         (add_symtab_fns): Update prototype.
1353         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
1354         (registered_sym_fns): ... this.
1355         (symtab_fns): Update.
1356         (add_symtab_fns): New arg "flavour".  All callers updated.
1357         (find_sym_fns): Rewrite to use new sym_fns registry.
1358
1359         * symfile.h (struct sym_fns): Add "objfile" argument to
1360         sym_read_linetable.  All uses updated.
1361
1362         * symtab.c (domain_name, search_domain_name): New functions.
1363         * symtab.h (domain_name, search_domain_name): Declare.
1364
1365         * symfile.h (struct quick_symbol_functions): Reorg arg list of
1366         map_matching_symbols so objfile is first.  All uses updated.
1367         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1368         * psymtab.c (map_matching_symbols_psymtab): Update signature.
1369
1370 2013-09-25  Andreas Arnez  <[email protected]>
1371
1372         PR shlibs/8882
1373         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1374         link map entries.
1375
1376 2013-09-24  Doug Evans  <[email protected]>
1377
1378         * objfiles.c (free_objfile): Move comment.
1379
1380 2013-09-24  Joel Brobecker  <[email protected]>
1381
1382         * ada-exp.y (string_to_operator): Delete.
1383         (dummy_string_to_ada_operator): Delete.
1384
1385 2013-09-24  Joel Brobecker  <[email protected]>
1386
1387         Revert:
1388         * i386-tdep.h (enum amd64_reg_class): New, moved here from
1389         amd64-tdep.c.
1390         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1391         call_dummy_integer_regs, and classify.
1392         * amd64-tdep.h (amd64_classify): Add declaration.
1393         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1394         (amd64_reg_class): Delete, moved to i386-tdep.h.
1395         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
1396         Replace call to amd64_classify by call to tdep->classify.
1397         (amd64_push_arguments): Get the list of registers to use for
1398         passing integer parameters from the gdbarch tdep structure,
1399         rather than using a hardcoded one.  Replace calls to amd64_classify
1400         by calls to tdep->classify.
1401         (amd64_push_dummy_call): Get the register number used for
1402         the "hidden" argument from tdep->call_dummy_integer_regs.
1403         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1404         and tdep->call_dummy_integer_regs.  Set tdep->classify.
1405
1406 2013-09-24  Joel Brobecker  <[email protected]>
1407
1408         Revert:
1409         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1410         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1411         where tdep->memory_args_by_pointer is non-zero.
1412
1413 2013-09-24  Joel Brobecker  <[email protected]>
1414
1415         Revert:
1416         * i386-tdep.h (struct gdbarch_tdep): Add new field
1417         integer_param_regs_saved_in_caller_frame.
1418         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1419         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1420
1421 2013-09-24  Joel Brobecker  <[email protected]>
1422
1423         * amd64-windows-tdep.c: #include "value.h"
1424         (amd64_windows_classify): Delete.
1425         (amd64_windows_passed_by_integer_register)
1426         (amd64_windows_passed_by_xmm_register)
1427         (amd64_windows_passed_by_pointer)
1428         (amd64_windows_adjust_args_passed_by_pointer)
1429         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1430         (amd64_windows_push_dummy_call): New functions.
1431         (amd64_windows_init_abi): Remove setting of
1432         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1433         tdep->classify, tdep->memory_args_by_pointer and
1434         tdep->integer_param_regs_saved_in_caller_frame.
1435         Add call to set_gdbarch_push_dummy_call.
1436
1437 2013-09-24  Jan Kratochvil  <[email protected]>
1438
1439         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1440         objfile->original_name.
1441
1442 2013-09-24  Jan Kratochvil  <[email protected]>
1443
1444         Pass down original filename for objfile.
1445         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1446         * elfread.c (elf_symfile_read): Likewise.
1447         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1448         longer set ORIGINAL_NAME.
1449         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1450         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1451         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
1452         symbol_file_add_from_bfd call.
1453         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1454         (macho_check_dsym): Add parameter filenamep.  Change function comment.
1455         Set *filenamep.
1456         (macho_symfile_read): New variable dsym_filename.  Update
1457         macho_check_dsym call.  Use it for symbol_file_add_separate.
1458         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
1459         it.  Use it for objfile->original_name.
1460         (objfile_name): Return OBFD's filename, if available.
1461         * objfiles.h (allocate_objfile): Add new parameter name.
1462         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1463         * symfile-mem.c (symbol_file_add_from_memory): Update
1464         symbol_file_add_from_bfd call.
1465         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1466         comment for it.
1467         (symbol_file_add_with_addrs): New parameter name, add function comment
1468         for it.  Remove variable name.  Update allocate_objfile call.
1469         (symbol_file_add_separate): New parameter name, add function comment
1470         for it.  Update symbol_file_add_with_addrs call.
1471         (symbol_file_add_from_bfd): New parameter name.  Update
1472         symbol_file_add_with_addrs call.
1473         (symbol_file_add): Update symbol_file_add_from_bfd call.
1474         (reread_symbols): New variable original_name.  Save
1475         objfile->original_name by it.
1476         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1477         second parameter.
1478
1479 2013-09-24  Jan Kratochvil  <[email protected]>
1480
1481         Code cleanup: Add objfile_name accessor function.
1482         * ada-lang.c (is_known_support_routine): Use objfile_name.
1483         * auto-load.c (source_gdb_script_for_objfile)
1484         (auto_load_objfile_script): Likewise.
1485         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1486         * dbxread.c (dbx_symfile_read): Likewise.
1487         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1488         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1489         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1490         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1491         (lookup_dwp_signatured_type, lookup_dwo_unit)
1492         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1493         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1494         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1495         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1496         (dwarf2_record_block_ranges, read_common_block, read_typedef)
1497         (read_subrange_type, load_partial_dies, read_partial_die)
1498         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1499         (die_containing_type, build_error_marker_type, lookup_die_type)
1500         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1501         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1502         (get_DW_AT_signature_type, write_psymtabs_to_index)
1503         (save_gdb_index_command): Likewise.
1504         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1505         Likewise.
1506         * expprint.c (dump_subexp_body_standard): Likewise.
1507         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1508         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1509         original_name.
1510         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1511         obj_name, use objfile_name for it, use the variable.
1512         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1513         Use objfile_name.
1514         * machoread.c (macho_symtab_read, macho_check_dsym)
1515         (macho_symfile_relocate): Likewise.
1516         * maint.c (maintenance_translate_address): Likewise.
1517         * minidebug.c (find_separate_debug_file_in_section): Likewise.
1518         * minsyms.c (install_minimal_symbols): Likewise.
1519         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1520         original_name.
1521         (filter_overlapping_sections): Use objfile_name.
1522         (objfile_name): New function.
1523         * objfiles.h (struct objfile): Rename field name to original_name.
1524         (objfile_name): New prototype.
1525         * printcmd.c (sym_info, address_info): Use objfile_name.
1526         * probe.c (parse_probes, collect_probes, compare_probes)
1527         (info_probes_for_ops): Likewise.
1528         * progspace.c (clone_program_space): Likewise.
1529         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1530         (maintenance_info_psymtabs): Likewise.
1531         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1532         (source_section_scripts): Likewise.
1533         * python/py-objfile.c (objfpy_get_filename): Likewise.
1534         * python/py-progspace.c (pspy_get_filename): Likewise.
1535         * solib-aix.c (solib_aix_get_toc_value): Likewise.
1536         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1537         * solib.c (solib_read_symbols): Likewise.
1538         * stabsread.c (scan_file_globals): Likewise.
1539         * stap-probe.c (handle_stap_probe): Likewise.
1540         * symfile.c (symbol_file_clear, separate_debug_file_exists)
1541         (find_separate_debug_file_by_debuglink): Likewise.
1542         (reread_symbols): Likewise.  Use the objfile field name renamed to
1543         original_name.
1544         (allocate_symtab): Use objfile_name.
1545         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1546         (dump_objfile, dump_msymbols, dump_symtab_1)
1547         (maintenance_print_msymbols, maintenance_print_objfiles)
1548         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1549         * target.c (target_translate_tls_address, target_info): Likewise.
1550         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
1551         objfile_name.
1552
1553 2013-09-24  Jan Kratochvil  <[email protected]>
1554
1555         Code cleanup.
1556         * probe.c (parse_probes): Rename variable objfile_name to
1557         objfile_namestr.
1558
1559 2013-09-24  Jan Kratochvil  <[email protected]>
1560
1561         Remove solib-sunos.c.
1562         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1563         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1564         * objfiles.c (rt_common_objfile): Remove.
1565         (free_objfile): Remove rt_common_objfile comparison.
1566         * objfiles.h (rt_common_objfile): Remove.
1567         * solib-sunos.c: Remove.
1568         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1569
1570 2013-09-24  Jan Kratochvil  <[email protected]>
1571
1572         Remove a.out NetBSD and OpenBSD hosts.
1573         * NEWS (Removed native configurations): New.
1574         * config/arm/nbsdaout.mh: Remove.
1575         * config/i386/nbsdaout.mh: Remove.
1576         * config/i386/obsdaout.mh: Remove.
1577         * config/m68k/nbsdaout.mh: Remove.
1578         * config/sparc/nbsdaout.mh: Remove.
1579         * config/vax/nbsdaout.mh: Remove.
1580         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1581         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1582         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1583         error.
1584         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1585         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1586         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1587
1588 2013-09-23  Tom Tromey  <[email protected]>
1589
1590         * linespec.c (struct minsym_and_objfile): Remove.
1591         (minsym_and_objfile_d): Remove.
1592         (struct linespec, struct collect_info, linespec_parse_basic)
1593         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1594         (compare_msymbols, find_method, find_function_symbols)
1595         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1596         (add_minsym, search_minsyms_for_name): Update.
1597
1598 2013-09-23  Andrew Burgess  <[email protected]>
1599
1600         * regcache.c: Add include of valprint.h.
1601         (dump_endian_bytes): Delete.
1602         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1603
1604 2013-09-23  Andrew Burgess  <[email protected]>
1605
1606         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1607
1608 2013-09-19  Pedro Alves  <[email protected]>
1609
1610         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1611         breakpoints.
1612
1613 2013-09-19  Pedro Alves  <[email protected]>
1614             Thomas Schwinge  <[email protected]>
1615             Yue Lu  <[email protected]>
1616
1617         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1618         Take a gdb_byte pointer instead of a char pointer.
1619
1620         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1621         gnu_xfer_partial helper.
1622         (gnu_xfer_partial): New function.
1623         (gnu_target): Don't install a deprecated_xfer_memory hook.
1624         Install a to_xfer_partial hook.
1625
1626 2013-09-19  Jan Kratochvil  <[email protected]>
1627
1628         Constification.
1629         * main.c (captured_main): Replace catch_command_errors by
1630         catch_command_errors_const.  Twice.
1631         * symfile.c (symbol_file_add_main_1): Make args parameter const.
1632         (symbol_file_add): Make name parameter const.
1633         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1634         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
1635         variable name.  Change their usage accordingly.
1636         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1637         const.
1638         (symbol_file_add_main): Make args parameter const.
1639
1640 2013-09-18  Raunaq Bathija  <[email protected]>
1641             Ulrich Weigand  <[email protected]>
1642
1643         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1644         of c_value member.
1645         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1646
1647 2013-09-18  Pedro Alves  <[email protected]>
1648             Yue Lu  <[email protected]>
1649
1650         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1651         (gnu_create_inferior)
1652         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1653         (set_sig_thread_cmd): Use the lwpid field of ptids to
1654         store/extract thread ids instead of the tid field.
1655         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1656
1657 2013-09-18  Andrew Burgess  <[email protected]>
1658
1659         * infcmd.c (default_print_one_register_info): Add detection of
1660         optimized out values.
1661         (default_print_registers_info): Switch to using
1662         get_frame_register_value.
1663
1664 2013-09-18  Markus Metzger  <[email protected]>
1665
1666         * infrun.c (handle_inferior_event): Check if we know the
1667         function start address before setting a resume breakpoint.
1668
1669 2013-09-18  Pedro Alves  <[email protected]>
1670
1671         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1672         minus_one_ptid instead of looking at the ptid's tid field and
1673         comparing that to -1.
1674
1675 2013-09-18  Andrew Burgess  <[email protected]>
1676
1677         * main.h (get_gdb_program_name): Remove extra whitespace.
1678
1679 2013-09-18  Andrew Burgess  <[email protected]>
1680
1681         * main.h (get_gdb_program_name): Add declaration.
1682         * main.c (get_gdb_program_name): Add definition.
1683
1684 2013-09-17  Doug Evans  <[email protected]>
1685
1686         * dwarf2read.c: Move definitions of complaint functions to after
1687         forward declarations of local functions.
1688
1689 2013-09-17  Muhammad Waqas <[email protected]>
1690             Pedro Alves  <[email protected]>
1691
1692         PR gdb/11568
1693         * breakpoint.c (remove_threaded_breakpoints): New function.
1694         (_initialize_breakpoint): Attach remove_threaded_breakpoints
1695         as thread_exit observer.
1696
1697 2013-09-17  Pedro Alves  <[email protected]>
1698
1699         PR gdb/15911
1700         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1701         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1702         * corelow.c (core_open):
1703         * frame.h (print_stack_frame, print_frame_info): New
1704         'set_current_sal' parameter.
1705         * infcmd.c (finish_command, kill_command): Adjust call to
1706         print_stack_frame.
1707         * inferior.c (inferior_command): Likewise.
1708         * infrun.c (normal_stop): Likewise.
1709         * linux-fork.c (linux_fork_context): Likewise.
1710         * record-full.c (record_full_goto_entry, record_full_restore):
1711         Likewise.
1712         * remote-mips.c (common_open): Likewise.
1713         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1714         Use it.
1715         (print_frame_info): New 'set_current_sal' parameter.  Set the last
1716         displayed sal depending on the new paremeter instead of looking at
1717         print_what.
1718         (backtrace_command_1, select_and_print_frame, frame_command)
1719         (current_frame_command, up_command, down_command): Adjust call to
1720         print_stack_frame.
1721         * thread.c (print_thread_info, restore_selected_frame)
1722         (do_captured_thread_select): Adjust call to print_stack_frame.
1723         * tracepoint.c (tfind_1): Likewise.
1724         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1725         (mi_cmd_stack_info_frame): Likewise.
1726         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1727         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1728
1729 2013-09-16  Sergio Durigan Junior  <[email protected]>
1730
1731         * value.c (isvoid_internal_fn): Replace "parameter" with
1732         "argument".
1733
1734 2013-09-16  Stan Shebs  <[email protected]>
1735
1736         * README: Update references to writing code for GDB.
1737         * configure.ac (build_warnings): Remove obsolete comment.
1738         * configure: Regenerate.
1739         * gdbarch.sh: Remove references to gdbint.texinfo.
1740         * gdbarch.h: Regenerate.
1741         * gdbtypes.c (objfile_type): Remove comments referencing internals
1742         manual and D10V.
1743
1744 2013-09-16  Sergio Durigan Junior  <[email protected]>
1745
1746         * NEWS: Mention new convenience function $_isvoid.
1747         * value.c (isvoid_internal_fn): New function.
1748         (_initialize_values): Add new convenience function $_isvoid.
1749
1750 2013-09-16  Pierre Muller  <[email protected]>
1751
1752         * arm-linux-tdep.c: Add "elf/common.h" header.
1753         Remove AT_HWCAP macro definintion as it is provided in
1754         added include file.
1755         * s390-tdep.c: Remove system header <elf.h>
1756         Add "elf/common.h" header for AT_HWCAP definition.
1757         (s390_core_read_description): Use correct CORE_ADDR
1758         for hwcap local variable used as third parameter
1759         of function target_auxv_search.
1760
1761 2013-09-14  Pierre Muller  <[email protected]>
1762             Tom Tromey  <[email protected]>
1763             Pedro Alves  <[email protected]>
1764
1765         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1766         mode if operating system doesn't know O_CLOEXEC.
1767
1768 2013-09-13  Jan Kratochvil  <[email protected]>
1769
1770         Code cleanup.
1771         * symfile.c (reread_symbols): Move variable obfd_filename to a more
1772         inner block.
1773
1774 2013-09-13  Andreas Arnez  <[email protected]>
1775
1776         * NEWS: Mention TDB support.
1777         * features/s390-tdb.xml: New file.
1778         * features/s390-te-linux64.xml: New file.
1779         * features/s390x-te-linux64.xml: New file.
1780         * features/Makefile (WHICH): Add new tdescs above.
1781         (s390-te-linux64-expedite): Set.
1782         (s390x-te-linux64-expedite): Set.
1783         * features/s390-te-linux64.c: New file (generated).
1784         * features/s390x-te-linux64.c: New file (generated).
1785         * regformats/s390-te-linux64.dat: New file (generated).
1786         * regformats/s390x-te-linux64.dat: New file (generated).
1787         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1788         (HWCAP_S390_TE): Likewise.
1789         (S390_TDB_DWORD0_REGNUM): Likewise.
1790         (S390_TDB_DWORD0_REGNUM): Likewise.
1791         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1792         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1793         (S390_TDB_ATIA_REGNUM): Likewise.
1794         (S390_TDB_R0_REGNUM): Likewise.
1795         (S390_TDB_R1_REGNUM): Likewise.
1796         (S390_TDB_R2_REGNUM): Likewise.
1797         (S390_TDB_R3_REGNUM): Likewise.
1798         (S390_TDB_R4_REGNUM): Likewise.
1799         (S390_TDB_R5_REGNUM): Likewise.
1800         (S390_TDB_R6_REGNUM): Likewise.
1801         (S390_TDB_R7_REGNUM): Likewise.
1802         (S390_TDB_R8_REGNUM): Likewise.
1803         (S390_TDB_R9_REGNUM): Likewise.
1804         (S390_TDB_R10_REGNUM): Likewise.
1805         (S390_TDB_R11_REGNUM): Likewise.
1806         (S390_TDB_R12_REGNUM): Likewise.
1807         (S390_TDB_R13_REGNUM): Likewise.
1808         (S390_TDB_R14_REGNUM): Likewise.
1809         (S390_TDB_R15_REGNUM): Likewise.
1810         (S390_NUM_REGS): Increase.
1811         (S390_IS_TDBREGSET_REGNUM): New macro.
1812         (s390_regmap_tdb): Declare.
1813         (s390_sizeof_tdbregset): Define.
1814         (tdesc_s390_te_linux64): Declare.
1815         (tdesc_s390x_te_linux64): Likewise.
1816         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1817         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1818         (s390_regmap_tdb): New regmap.
1819         (s390_supply_tdb_regset): New function.
1820         (s390_tdb_regset): New regset.
1821         (s390_linux64v2_regset_sections): Add TDB regset to list.
1822         (s390x_linux64v2_regset_sections): Likewise.
1823         (s390_regset_from_core_section): Recognize TDB core note section.
1824         (s390_core_read_description): If HWCAP indicates TE support,
1825         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1826         (s390_gdbarch_init): Handle TDB regset.
1827         (_initialize_s390_tdep): Initialize new tdescs.
1828         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1829         (have_regset_tdb): New variable.
1830         (s390_native_supply): Support register invalidation.
1831         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1832         (check_regset): Treat ENODATA as "regset exists".
1833         (s390_linux_fetch_inferior_registers): Add TDB.
1834         (s390_read_description): Check for TDB existence and select
1835         appropriate tdesc.
1836         * gdbserver/Makefile.in (clean): Add removal of new makefile
1837         targets.
1838         (s390-te-linux64.c): New makefile target.
1839         (s390x-te-linux64.c): Likewise.
1840         * gdbserver/configure.srv (srv_regobj): Append new objects
1841         s390-te-linux64.o and s390x-te-linux64.o.
1842         (srv_xmlfiles): Append new files s390-te-linux64.xml,
1843         s390x-te-linux64.xml, and s390-tdb.xml.
1844         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1845         declaration.
1846         (tdesc_s390_te_linux64): Likewise.
1847         (init_registers_s390x_te_linux64): Likewise.
1848         (tdesc_s390x_te_linux64): Likewise.
1849         (s390_check_regset): Treat ENODATA as "regset exists".
1850         (s390_arch_setup): Add TDB regset support.
1851         (initialize_low_arch): Initialize registers for new tdescs.
1852
1853 2013-09-13  Andreas Arnez  <[email protected]>
1854
1855         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1856         (S390_IS_FPREGSET_REGNUM): New macro.
1857         * s390-tdep.c (s390_dwarf_regmap): Make const.
1858         (regnum_is_gpr_full): New function for replacing repeated code.
1859         (s390_pseudo_register_name): Use it.
1860         (s390_pseudo_register_type): Likewise.
1861         (s390_pseudo_register_read): Likewise.
1862         (s390_pseudo_register_write): Likewise.
1863         (s390_unwind_pseudo_register): Likewise.
1864         (s390_regmap_gregset): New format for regmap.
1865         (s390x_regmap_gregset): Likewise.
1866         (s390_regmap_fpregset): Likewise.
1867         (s390_regmap_upper): Likewise.
1868         (s390_regmap_last_break): Likewise.
1869         (s390_regmap_system_call): Likewise.
1870         (s390_supply_regset): Adjust to new regmap format.
1871         (s390_collect_regset): Likewise.
1872         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1873         (s390_native_collect): Likewise.
1874         (supply_gregset): Likewise.
1875         (fill_gregset): Likewise.
1876         (supply_fpregset): Likewise.
1877         (fill_fpregset): Likewise.
1878         (fetch_regset): Likewise.
1879         (store_regset): Likewise.
1880         (s390_linux_fetch_inferior_registers): Likewise.
1881         (s390_linux_fetch_inferior_registers): Likewise.
1882
1883 2013-09-12  Andrew Pinski  <[email protected]>
1884
1885         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1886
1887 2013-09-10  Andreas Arnez  <[email protected]>
1888
1889         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1890
1891 2013-09-09  Andrew Burgess  <[email protected]>
1892
1893         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1894
1895 2013-09-06  Pedro Alves <[email protected]>
1896
1897         * remote-sim.c (dump_mem, gdbsim_fetch_register)
1898         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1899         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1900         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1901         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1902         gdb_stdlog.
1903
1904 2013-09-06  Pedro Alves  <[email protected]>
1905
1906         * remote-sim.c (dump_mem): Constify buf parameter.
1907         gdbsim_xfer_inferior_memory): Rename to ...
1908         (gdbsim_xfer_memory): ... this.  Adjust interface as
1909         target_xfer_partial helper.
1910         (gdbsim_xfer_partial): New function.
1911         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1912         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
1913
1914 2013-09-06  Pedro Alves  <[email protected]>
1915
1916         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1917         host_address_to_string, and send debug output to gdb_stdlog.
1918
1919 2013-09-06  Ricard Wanderlof  <[email protected]>
1920
1921         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1922         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1923         gdb_target_obs for cris target.
1924         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1925         (cris_gdbarch_init): Move calls to
1926         set_gdbarch_fetch_tls_load_module_address and
1927         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1928         Add call to gdbarch_init_osabi.
1929         * cris-linux-tdep.c: New file.
1930         * cris-tdep.h: New file.
1931
1932 2013-09-06  Andrew Burgess  <[email protected]>
1933
1934         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1935         to deprecated_init_ui_hook.
1936
1937 2013-09-06  Andrew Burgess  <[email protected]>
1938
1939         * cli/cli-interp.c (_initialize_cli_interp): Add a
1940         command_loop_proc to interp_procs.
1941         * event-top.c (cli_command_loop): Change signature to match
1942         interp_command_loop_ftype.
1943         * event-top.h (cli_command_loop): Same.
1944         * interps.c (interp_new): Require every interpreter to have a
1945         command_loop_proc.
1946         (current_interp_command_loop): Just call the command_loop_proc on
1947         the current interpreter.
1948         * tui/tui-interp.c (_initialize_tui_interp): Add a
1949         command_loop_proc to interp_procs.
1950
1951 2013-09-06  Ricard Wanderlof  <[email protected]>
1952
1953         * cris-tdep.c (cris_gdbarch_init): Add call to
1954         get_gdbarch_fetch_tls_load_module_address.
1955
1956 2013-09-06  Ricard Wanderlof  <[email protected]>
1957
1958         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1959         (cris_elf_gregset_t): Rename from elf_gregset_t.
1960         (crisv32_elf_gregset_t): Adjust.
1961         (cris_supply_gregset, fetch_core_registers): Adjust.
1962
1963 2013-09-06  Ricard Wanderlof  <[email protected]>
1964
1965         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1966
1967 2013-09-05  Andrew Burgess  <[email protected]>
1968
1969         * defs.h (deprecated_command_loop_hook): Remove, including
1970         references in comments.
1971         * interps.c (current_interp_command_loop): No longer use
1972         deprecated_command_loop_hook.
1973         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1974         setup.
1975         * top.c (deprecated_command_loop_hook): Remove.
1976
1977 2013-09-05  Pedro Alves  <[email protected]>
1978
1979         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1980         local is now int instead of ULONGEST.  Print it with %d
1981         instead of paddress.
1982
1983 2013-09-05  Tristan Gingold  <[email protected]>
1984
1985         * MAINTAINERS: Remove avr maintainership.
1986
1987 2013-09-05  Pedro Alves  <[email protected]>
1988
1989         * findvar.c (value_of_register): Rework in terms of
1990         value_of_register_lazy.
1991
1992 2013-09-05  Muhammad Bilal  <[email protected]>
1993
1994         * symfile.c (add_symbol_file_command): Remove trailing
1995          whitespaces and blank line after comment.
1996
1997 2013-09-05  Pedro Alves  <[email protected]>
1998
1999         * tui/tui-regs.c (tui_register_format): Don't look at the
2000         register's name here.  Return string representing register
2001         value instead of storing it in the data element.
2002         (tui_get_register): Compare register string representations
2003         instead of register value states and contents.
2004
2005 2013-09-05  Pedro Alves  <[email protected]>
2006
2007         PR tui/15933
2008         * tui/tui-regs.c (tui_show_registers): Show registers of the
2009         selected frame, not the current frame.
2010
2011 2013-09-05  Ricard Wanderlof  <[email protected]>
2012
2013         * MAINTAINERS (Write After Approval): Add myself to the list.
2014
2015 2013-09-04  Doug Evans  <[email protected]>
2016
2017         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2018         (queue_and_load_dwo_tu): New function.
2019         (lookup_dwo_signatured_type): Set per_cu.tu_read.
2020         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2021         Make dependent_cu optional.
2022         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2023         and an older .gdb_index is in use, queue and load all its TUs too.
2024
2025 2013-09-04  Jan Kratochvil  <[email protected]>
2026
2027         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2028         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2029         variable search_flags.
2030         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2031         (OPF_RETURN_REALPATH): ... here.
2032         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2033         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2034         call.  Twice.
2035         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2036         openp call.
2037         * solib.c (solib_find): Likewise.  Four times.
2038         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2039         in the function comment and for the realpath_fptr variable.
2040         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2041         (find_and_open_source): Likewise.  Twice.
2042         * symfile.c (symfile_bfd_open): Likewise, also twice.
2043
2044 2013-09-04  Doug Evans  <[email protected]>
2045
2046         * progspace.c (save_current_space_and_thread): Remove unnecessary
2047         call to save_current_inferior.
2048
2049 2013-09-04  Andrew Burgess  <[email protected]>
2050
2051         * sh64-tdep.c (sh64_do_register): Return after printing message
2052         about unavailable register contents.
2053
2054 2013-09-04  Muhammad Bilal  <[email protected]>
2055             Pedro Alves  <[email protected]>
2056
2057         * symfile.c (add_symbol_file_command): Error out on unknown
2058         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2059         options and collapse into single conditional branch.
2060
2061 2013-09-03  Luis Machado  <[email protected]>
2062
2063         * inf-child.c (inf_child_follow_fork): New parameter
2064         detach_fork.
2065         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2066         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2067         * inferior.h (detach_fork): Remove.
2068         * infrun.c (detach_fork): Adjust comment and make it
2069         static.
2070         (follow_fork): Pass detach_fork parameter to
2071         target_follow_fork.
2072         * linux-nat.c (linux_child_follow_fork): New parameter
2073         detach_fork.
2074         * target.c (target_follow_fork): New parameter detach_fork.
2075         Pass detach_fork as parameter and print its value.
2076         * target.h (struct target_ops) <to_follow_fork>: New int
2077         parameter.
2078         (target_follow_fork): New parameter detach_fork.
2079
2080 2013-09-03  Joel Brobecker  <[email protected]>
2081
2082         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2083         Replace sec->bfd by sec->the_bfd_section->owner.
2084
2085 2013-09-03  Yao Qi  <[email protected]>
2086
2087         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
2088         from linux_has_shared_address_space.
2089         (linux_has_shared_address_space): Call linux_is_uclinux.
2090         * linux-tdep.h (linux_is_uclinux): Declare.
2091         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2092         linux_is_uclinux.
2093
2094 2013-09-03  Yao Qi  <[email protected]>
2095
2096         * config/djgpp/fnchange.lst: Remove entry of
2097         i386-interix-nat.c and i386-interix-tdep.c.
2098         * configure.ac: Remove '*-*-interix*'.
2099         * configure: Re-generated.
2100         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2101         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2102         obsolete comments.
2103         * osabi.c (gdb_osabi_names): Remove "Interix".
2104
2105 2013-09-03  Yao Qi  <[email protected]>
2106
2107         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2108
2109 2013-09-02  Markus Metzger  <[email protected]>
2110
2111         * record.h (record_print_flag) <record_print_src_line,
2112         record_print_insn_range>: Rename into ...
2113         (record_print_flag) <record_print_src_line,
2114         record_print_insn_range>: ... this.  Update all users.
2115
2116 2013-09-02  Pierre Muller  <[email protected]>
2117
2118         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2119         error code.
2120
2121 2013-09-02  Pierre Muller  <[email protected]>
2122
2123         * windows-nat.c (windows_xfer_memory): Fix compilation failure
2124         by use of plongest function.
2125
2126 2013-09-02  Tristan Gingold  <[email protected]>
2127
2128         * NEWS: Add entry mentioning support for native Windows x64
2129         SEH data.
2130
2131         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2132         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2133         (struct amd64_windows_frame_cache): New struct.
2134         (amd64_windows_w2gdb_regnum): New global.
2135         (pc_in_range, amd64_windows_frame_decode_epilogue)
2136         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2137         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2138         (amd64_windows_frame_this_id): New functions.
2139         (amd64_windows_frame_unwind): New static global.
2140         (amd64_windows_skip_prologue): New function.
2141         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2142         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2143         with amd64_windows_skip_prologue.
2144
2145 2013-08-30  Joel Brobecker  <[email protected]>
2146
2147         GDB 7.6.1 released.
2148
2149 2013-08-30  Pedro Alves  <[email protected]>
2150
2151         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2152         SRC_AND_LOC.
2153
2154 2013-08-30  Pedro Alves  <[email protected]>
2155
2156         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2157         warning text.
2158
2159 2013-08-30  Pedro Alves  <[email protected]>
2160
2161         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2162         Adjust arguments to print_stack_frame.
2163
2164 2013-08-30  Pedro Alves  <[email protected]>
2165
2166         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2167
2168 2013-08-30  Pedro Alves  <[email protected]>
2169
2170         * frame.h (show_and_print_stack_frame): Delete declaration.
2171
2172 2013-08-30  Phil Muldoon  <[email protected]>
2173
2174         PR python/15461
2175
2176         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2177         (archpy_name): Check for valid architecture.
2178         (archpy_disassemble): Ditto.
2179
2180 2013-08-29  Joel Brobecker  <[email protected]>
2181
2182         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2183         instead of "long long" in call to ptrace64.
2184
2185 2013-08-29  Andrew Burgess  <[email protected]>
2186
2187         * mi/mi-interp.c (mi_command_loop): Change signature to match
2188         interp_command_loop_ftype.
2189         (mi1_command_loop): Remove.
2190         (mi2_command_loop): Remove.
2191         (mi3_command_loop): Remove.
2192         (mi_interpreter_resume): Remove setting of
2193         deprecated_command_loop_hook.
2194         (_initialize_mi_interp): Set mi_command_loop as the command loop
2195         callback.
2196
2197 2013-08-29  Sanimir Agovic  <[email protected]>
2198
2199         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2200         value_type.
2201
2202 2013-08-29  Sanimir Agovic  <[email protected]>
2203
2204         * value.c (allocate_value_contents): Make static.
2205         * value.h (allocate_value_contents): Remove prototype.
2206
2207 2013-08-29  Sanimir Agovic  <[email protected]>
2208
2209         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2210         of assembling value via allocate_value_lazy and attribute setter.
2211         * findvar.c (default_read_var_value): Use value_at_lazy instead of
2212         assembling value via allocate_value_lazy and attribute setter.
2213         * valops.c (do_search_struct_field): Use value_at_lazy instead of
2214         assembling value via allocate_value_lazy and attribute setter.
2215
2216 2013-08-29  Sanimir Agovic  <[email protected]>
2217
2218         * value.c (value_from_contents_and_address): Replace allocate_value and
2219         memcpy with value_from_contents.
2220
2221 2013-08-29  Phil Muldoon  <[email protected]>
2222
2223         * python/py-framefilter.c (py_print_frame): Remove usage of
2224         PyString_AsString.  Use python_string_to_host_string instead.
2225         Refactor function to work with a string as a new allocation
2226         instead of a pointer.
2227         (py_print_frame): Ditto.
2228         * python/lib/gdb/frames.py (return_list): Cain iterators together
2229         instead of adding them as a list.
2230         (_sort_list): Call return_list, and remove duplicate code.
2231         (execute_frame_filters): Convert iterator to a list with list().
2232         * python/lib/gdb/command/frame_filters.py
2233         (SetFrameFilterPriority._set_filter_priority): Convert priority
2234         attribute to an integer.
2235         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2236         wrapper function __next__.
2237         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2238         define as "str".
2239
2240 2013-08-29  Phil Muldoon  <[email protected]>
2241
2242         PR python/15752
2243         * python/py-framefilter.c (apply_frame_filter): Check
2244         gdb_python_initialized.  Exit if the Python frame-filter code
2245         cannot be initialized.
2246
2247 2013-08-29  Phil Muldoon  <[email protected]>
2248
2249         PR cli/15842
2250         * top.c (print_gdb_version): Remove erroneous newline after help
2251         text.
2252
2253 2013-08-29  Yao Qi  <[email protected]>
2254
2255         * varobj.c (install_dynamic_child): Remove trailing space.
2256         Add one blank line after variable declaration.
2257
2258 2013-08-28  Jan Kratochvil  <[email protected]>
2259
2260         PR gdb/15415
2261         * corefile.c (get_exec_file): Use exec_filename.
2262         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
2263         * exec.c (exec_close): Free EXEC_FILENAME.
2264         (exec_file_attach): New variable canonical_pathname.  Use
2265         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
2266         EXEC_FILENAME.
2267         * exec.h (exec_filename): New.
2268         * inferior.c (print_inferior, inferior_command): Use
2269         PSPACE_EXEC_FILENAME.
2270         * mi/mi-main.c (print_one_inferior): Likewise.
2271         * progspace.c (clone_program_space, print_program_space): Likewise.
2272         * progspace.h (struct program_space): New field pspace_exec_filename.
2273         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
2274         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2275
2276 2013-08-28  Will Newton  <[email protected]>
2277
2278         * common/linux-ptrace.c: Include stdint.h unconditionally.
2279
2280 2013-08-28  Jan Kratochvil  <[email protected]>
2281
2282         Code cleanup.
2283         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2284
2285 2013-08-28  Yao Qi  <[email protected]>
2286             Pedro Alves  <[email protected]>
2287
2288         * event-top.c (gdb_setup_readline): Call stderr_fileopen
2289         instead of stdio_fileopen.
2290         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2291         .Call stderr_fileopen instead of stdio_fileopen.
2292         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2293         [__MINGW32__] (stderr_file_fputs): New function.
2294         (stderr_fileopen): New function.
2295         * ui-file.h (stderr_fileopen): Declare.
2296
2297 2013-08-27  Doug Evans  <[email protected]>
2298
2299         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2300         (struct dwarf2_per_cu_data): Ditto.
2301         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
2302         (process_imported_unit_die): Ditto.
2303         (follow_die_sig_1): Simplify assert.
2304
2305 2013-08-27  Pedro Alves  <[email protected]>
2306
2307         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2308         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
2309         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2310         windows_xfer_memory directly.
2311         (init_windows_ops): Don't install a deprecated_xfer_memory method.
2312
2313 2013-08-27  Pedro Alves  <[email protected]>
2314
2315         * darwin-nat.c (darwin_xfer_memory): Delete.
2316         (_initialize_darwin_inferior): Don't install a
2317         deprecated_xfer_memory method.
2318
2319 2013-08-27  Pedro Alves  <[email protected]>
2320             Yao Qi  <[email protected]>
2321
2322         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2323         (parse_no_frames_option): Remove.
2324         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2325         (mi_cmd_stack_list_args): Adjust.
2326         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2327         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
2328         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2329         Caller update.
2330         (list_args_or_locals): New parameter 'skip_unavailable'.
2331         Handle it.
2332         * valprint.c (scalar_type_p): Rename to ...
2333         (val_print_scalar_type_p): ... this.  Make extern.
2334         (val_print, value_check_printable): Adjust.
2335         * valprint.h (val_print_scalar_type_p): Declare.
2336         * value.c (value_entirely_unavailable): New function.
2337         * value.h (value_entirely_unavailable): Declare.
2338
2339         * NEWS: Mention the new option "--skip-unavailable" to MI
2340         commands '-stack-list-locals', '-stack-list-arguments' and
2341         '-stack-list-variables'.
2342
2343 2013-08-27  Yao Qi  <[email protected]>
2344
2345         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2346         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2347         options.
2348         * mi/mi-getopt.c (mi_getopt): Remove.
2349         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
2350         'error_on_unknown'.
2351         (mi_getopt): Call mi_getopt_1.
2352         (mi_getopt_silent): New.
2353         * mi/mi-getopt.h (mi_getopt_silent): Declare.
2354
2355 2013-08-26  Doug Evans  <[email protected]>
2356
2357         PR symtab/15885
2358         * dwarf2read.c (dw2_dump): Print some minimal information indicating
2359         .gdb_index is in use.
2360         * symfile.c (reread_symbols): Reset objfile->sf.
2361
2362         * NEWS: Document "mt print objfiles" now takes optional regexp.
2363         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2364         regexp of objfiles to print.
2365         (_initialize_symmisc): Update doc string for "mt print objfiles".
2366
2367         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2368         missing debug info checks.
2369
2370 2013-08-26  Raunaq Bathija  <[email protected]>
2371             Ulrich Weigand  <[email protected]>
2372
2373         * xcoffread.c (arrange_linetable): Add fix to correctly handle
2374         line tables generated by XLC compiled binaries.
2375
2376 2013-08-23  Doug Evans  <[email protected]>
2377
2378         * symmisc.c (dump_symtab): Delete prototype.
2379         (dump_msymbols, dump_objfile): Ditto.
2380         (maintenance_info_symtabs): Mark as dont_repeat.
2381         (_initialize_symmisc): Improve doc string for "mt info symtabs".
2382
2383         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2384         debugging printf to better location.
2385
2386 2013-08-23  Pedro Alves  <[email protected]>
2387
2388         * target.c (target_read_live_memory): Change type of 'ret' local
2389         to LONGEST.
2390
2391 2013-08-23  Pedro Alves  <[email protected]>
2392
2393         * remote.c (remote_write_bytes_aux, remote_write_bytes)
2394         (remote_read_bytes): Change return type to LONGEST, and adjust to
2395         return a target_xfer_error on error.
2396         (remote_xfer_memory): Delete.
2397         (remote_flash_write): Change type of 'ret' local to LONGEST.
2398         (remote_xfer_partial, remote_xfer_partial): Adjust.
2399         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2400
2401 2013-08-23  Pierre Muller  <[email protected]>
2402
2403         ARI fix: Push # directives to start of line.
2404         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2405
2406 2013-08-12  Muhammad Waqas  <[email protected]>
2407
2408         PR gdb/15501
2409         * breakpoint.c (enable_command, disable_command): Iterate over
2410         all specified breakpoint locations.
2411
2412 2013-08-22  Luis Machado  <[email protected]>
2413
2414         * common/linux-ptrace.c (linux_fork_to_function): Push #
2415         directives to the start of the line.
2416         (linux_check_ptrace_features): Fix warning message to use
2417         the "_" markup.
2418
2419 2013-08-22  Luis Machado  <[email protected]>
2420
2421         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2422         nat/linux-waitpid.h.
2423         (linux-waitpid.o): New object file rule.
2424         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2425         (current_ptrace_options): Moved from linux-nat.c.
2426         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2427         parameters.
2428         (linux_fork_to_function): New function.
2429         (linux_grandchild_function): Likewise.
2430         (linux_child_function): Likewise.
2431         (linux_check_ptrace_features): New function, heavily
2432         based on linux-nat.c:linux_test_for_tracefork.
2433         (linux_enable_event_reporting): New function.
2434         (ptrace_supports_feature): Likewise.
2435         (linux_supports_tracefork): Likewise.
2436         (linux_supports_traceclone): Likewise.
2437         (linux_supports_tracevforkdone): Likewise.
2438         (linux_supports_tracesysgood): Likewise.
2439         * common/linux-ptrace.h (HAS_NOMMU): Moved from
2440         gdbserver/linux-low.c.
2441         (linux_enable_event_reporting): New declaration.
2442         (linux_supports_tracefork): Likewise.
2443         (linux_supports_traceclone): Likewise.
2444         (linux_supports_tracevforkdone): Likewise.
2445         (linux_supports_tracesysgood): Likewise.
2446         * config.in (PTRACE_TYPE_ARG4): Regenerate.
2447         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2448         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2449         * config/arm/linux.mh (NATDEPFILES): Likewise.
2450         * config/i386/linux.mh (NATDEPFILES): Likewise.
2451         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2452         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2453         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2454         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2455         * config/mips/linux.mh (NATDEPFILES): Likewise.
2456         * config/pa/linux.mh (NATDEPFILES): Likewise..
2457         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2458         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2459         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2460         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2461         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2462         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2463         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2464         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2465         ptrace's 4th argument's types.
2466         Check the type of PTRACE_TYPE_ARG4.
2467         * configure: Regenerate.
2468         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2469         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2470         (linux_supports_tracefork_flag): Remove.
2471         (linux_supports_tracesysgood_flag): Likewise.
2472         (linux_supports_tracevforkdone_flag): Likewise.
2473         (current_ptrace_options): Moved to
2474         common/linux-ptrace.c.
2475         (linux_tracefork_child): Remove.
2476         (my_waitpid): Remove.
2477         (linux_test_for_tracefork): Renamed to
2478         linux_check_ptrace_features and moved to common/linux-ptrace.c.
2479         (linux_test_for_tracesysgood): Remove.
2480         (linux_supports_tracesysgood): Remove.
2481         (linux_supports_tracefork): Remove.
2482         (linux_supports_tracevforkdone): Remove.
2483         (linux_enable_tracesysgood): Remove.
2484         (linux_enable_event_reporting): Remove.
2485         (linux_init_ptrace): New function.
2486         (linux_child_post_attach): Call linux_init_ptrace.
2487         (linux_child_post_startup_inferior): Call linux_init_ptrace.
2488         (linux_child_follow_fork): Call linux_supports_tracefork
2489         and linux_supports_tracevforkdone.
2490         (linux_child_insert_fork_catchpoint): Call
2491         linux_supports_tracefork.
2492         (linux_child_insert_vfork_catchpoint): Likewise.
2493         (linux_child_set_syscall_catchpoint): Call
2494         linux_supports_tracesysgood.
2495         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2496         * nat/linux-nat.h: New file.
2497         * nat/linux-waitpid.c: New file.
2498         * nat/linux-waitpid.h: New file.
2499
2500 2013-08-22  Samuel Bronson  <[email protected]>
2501
2502         ARM Linux support for `catch syscall'.
2503         * syscalls/arm-linux.py: New file.
2504         * syscalls/arm-linux.xml: Likewise.
2505         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2506         (arm_linux_init_abi): Register the new function and syscall xml file.
2507         * data-directory/Makefile.in: Install the new syscall xml file.
2508         * NEWS: Brag about this.
2509
2510 2013-08-22  Pedro Alves  <[email protected]>
2511
2512         PR gdb/15871
2513         * corefile.c (target_xfer_memory_error): New function.
2514         (memory_error): Defer EIO to target_memory_error.
2515         (read_memory): Use target_xfer_partial, and handle finer-grained
2516         target xfer errors.
2517         * target.c (target_xfer_error_to_string): New function.
2518         (memory_xfer_partial_1): If memory is known to be
2519         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2520         (target_xfer_partial): Make extern.
2521         * target.h (enum target_xfer_error): New enum.
2522         (target_xfer_error_to_string): Declare function.
2523         (target_xfer_partial): Declare function.
2524         (struct target_ops) <xfer_partial>: Adjust describing comment.
2525
2526 2013-08-22  Alan Modra  <[email protected]>
2527
2528         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2529         * configure.tgt: Likewise as targets.
2530
2531 2013-08-20  Doug Evans  <[email protected]>
2532
2533         * buildsym.c (subfile_stack): Move here from buildsym.h.
2534         (pending_macros): Ditto.
2535         (get_macro_table): New function.
2536         (buildsym_init): Initialize subfile_stack.
2537         * coffread.c (type_vector,type_vector_length): Moved here from
2538         buildsym.h.
2539         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2540         (coff_symtab_read): Use it.
2541         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2542         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2543         with call to get_macro_table.
2544         * stabsread.c (type_vector,type_vector_length): Moved here from
2545         buildsym.h.
2546         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2547         * buildsym.h (get_macro_table): Declare.
2548
2549 2013-08-20  Tom Tromey  <[email protected]>
2550
2551         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2552         Update.
2553         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
2554
2555 2013-08-20  Doug Evans  <[email protected]>
2556
2557         * blockframe.c: Remove #include "psymtab.h".
2558         * cp-support.c: Ditto.
2559         * source.c: Ditto.
2560         * stack.c: Ditto.
2561
2562 2013-08-20  Tom Tromey  <[email protected]>
2563
2564         PR python/15816:
2565         * exceptions.h (return_mask): Now an enum.
2566         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2567         enum constants.
2568
2569 2013-08-20  Tom Tromey  <[email protected]>
2570
2571         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2572         get_objfile_arch.
2573         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2574         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2575         * jit.c (jit_object_close_impl): Update.
2576         * jv-lang.c (get_dynamics_objfile): Update.
2577         * linespec.c (add_minsym): Use get_dynamics_objfile.
2578         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2579         (allocate_objfile): Don't initialize 'gdbarch' field.
2580         (get_objfile_arch): Update.
2581         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2582         moved from...
2583         (struct objfile) <gdbarch>: ... here.  Remove.
2584         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2585         get_objfile_arch.
2586         * symfile.c (init_entry_point_info): Use get_objfile_arch.
2587
2588 2013-08-20  Alan Modra  <[email protected]>
2589
2590         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2591         for IBM long double nan and inf.
2592         (floatformat_is_negative, floatformat_classify,
2593         floatformat_mantissa): Similarly.
2594         (floatformat_ieee_single, floatformat_ieee_double,
2595         floatformat_ieee_quad, floatformat_arm_ext,
2596         floatformat_ia64_spill): Delete unused vars.
2597         (_initialize_doublest): Delete unused function.
2598         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2599         little-endian variants of floatformat_ibm_long_double.
2600
2601 2013-08-19  Luis Machado  <[email protected]>
2602
2603         * Makefile.in (SFILES): Remove common/target-common.c and
2604         add target/waitstatus.c.
2605         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2606         target/resume.h, target/wait.h and target/waitstatus.h.
2607         (COMMON_OBS): Remove target-common.o and add
2608         waitstatus.o.
2609         (target-common.o): Remove.
2610         (waitstatus.o): New target object file.
2611         * common/target-common.c: Move contents to
2612         target/waitstatus.c and remove.
2613         * common/target-common.h: Move contents to other files and
2614         remove.
2615         (enum resume_kind: Move to target/resume.h.
2616         (TARGET_WNOHANG): Move to target/wait.h.
2617         (enum target_waitkind): Move to target/waitstatus.h.
2618         (struct target_waitstatus): Likewise.
2619         * target.h: Do not include target-common.h and
2620         include target/resume.h, target/wait.h and
2621         target/waitstatus.h.
2622         * target/resume.h: New file.
2623         * target/wait.h: New file.
2624         * target/waitstatus.h: New file.
2625         * target/waitstatus.c: New file.
2626
2627 2013-08-19  Pedro Alves  <[email protected]>
2628
2629         * linux-nat.c (linux_test_for_tracefork)
2630         (linux_test_for_tracesysgood, linux_child_follow_fork)
2631         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2632         (linux_nat_wait_1): Extend comment.
2633         (linux_async_pipe): Add comment.
2634
2635 2013-08-15  Kevin Buettner  <[email protected]>
2636
2637         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2638         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2639         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2640         Update to account for fact that PC is now a pseudo-register.
2641         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
2642         cases for RL78_PC_REGNUM.
2643
2644 2013-08-15  Muhammad Bilal  <[email protected]>
2645
2646         PR cli/15841
2647         * top.c (quit_force): Skip writing history file
2648         if input is not from terminal.
2649
2650 2013-08-14  Tom Tromey  <[email protected]>
2651
2652         * remote.c (struct remote_state) <echo_nextthread, nextthread,
2653         resultthreadlist>: New fields.
2654         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2655         (remote_get_threadlist, remote_threadlist_iterator): Use
2656         new fields.  Remove static variables.
2657
2658 2013-08-14  Tom Tromey  <[email protected]>
2659
2660         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2661         remote_watch_data_address>: New fields.
2662         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2663         (process_stop_reply, remote_wait_as)
2664         (remote_check_watch_resources, remote_stopped_data_address): Update.
2665
2666 2013-08-14  Tom Tromey  <[email protected]>
2667
2668         * remote.c (struct remote_state) <async_client_callback,
2669         async_client_context>: New fields.
2670         (async_client_callback, async_client_context): Remove.
2671         (remote_async_serial_handler, remote_async): Update.
2672
2673 2013-08-14  Tom Tromey  <[email protected]>
2674
2675         * remote.c (sizeof_pkt): Remove.
2676         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2677
2678 2013-08-14  Tom Tromey  <[email protected]>
2679
2680         * remote.c (struct remote_state) <use_threadinfo_query,
2681         use_threadextra_query>: New fields.
2682         (remote_threads_info, remote_threads_extra_info)
2683         (remote_open_1): Update.
2684
2685 2013-08-14  Tom Tromey  <[email protected]>
2686
2687         * remote.c (struct remote_state) <finished_object,
2688         finished_annex, finished_offset>: New fields.
2689         (remote_read_qxfer): Use remote_state fields; remove static
2690         variables.
2691
2692 2013-08-14  Tom Tromey  <[email protected]>
2693
2694         * remote.c (struct remote_state) <last_sent_step>:
2695         New field.
2696         (last_sent_step): Remove.
2697         (remote_resume, remote_wait_as): Update.
2698
2699 2013-08-14  Tom Tromey  <[email protected]>
2700
2701         * remote.c (struct remote_state) <last_sent_signal>:
2702         New field.
2703         (last_sent_signal): Remove.
2704         (new_remote_state, remote_resume, remote_wait_as): Update.
2705
2706 2013-08-14  Tom Tromey  <[email protected]>
2707
2708         * remote.c (struct remote_state) <last_program_signals_packet>:
2709         New field.
2710         (last_program_signals_packet): Remove.
2711         (remote_program_signals, remote_open_1): Update.
2712
2713 2013-08-14  Tom Tromey  <[email protected]>
2714
2715         * remote.c (struct remote_state) <last_pass_packet>:
2716         New field.
2717         (last_pass_packet): Remove.
2718         (remote_pass_signals, remote_open_1): Update.
2719
2720 2013-08-14  Tom Tromey  <[email protected]>
2721
2722         * remote.c (struct remote_state) <remote_traceframe_number>:
2723         New field.
2724         (remote_traceframe_number): Remove.
2725         (new_remote_state, remote_open_1, set_remote_traceframe)
2726         (remote_trace_find): Update.
2727
2728 2013-08-14  Tom Tromey  <[email protected]>
2729
2730         * remote.c (struct remote_state) <general_thread, continue_thread>:
2731         New fields.
2732         (general_thread, continue_thread): Remove.
2733         (record_currthread, set_thread, set_general_process)
2734         (remote_open_1, extended_remote_attach_1, remote_wait_as)
2735         (extended_remote_mourn_1): Update.
2736
2737 2013-08-14  Tom Tromey  <[email protected]>
2738
2739         * remote.c (struct remote_state) <remote_desc>: New field.
2740         (remote_desc): Remove.
2741         (remote_threads_info, remote_threads_extra_info, remote_close)
2742         (send_interrupt_sequence, remote_start_remote, remote_open_1)
2743         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2744         (remote_hostio_send_command, remote_file_put, remote_file_get)
2745         (remote_file_delete, remote_can_async_p, remote_is_async_p)
2746         (remote_async, remote_new_objfile, set_range_stepping): Update.
2747
2748 2013-08-14  Tom Tromey  <[email protected]>
2749
2750         * remote.c (remote_state): Now a pointer.
2751         (get_remote_state_raw): Update.
2752         (new_remote_state): New function.
2753         (_initialize_remote): Use new_remote_state.
2754
2755 2013-08-14  Tom Tromey  <[email protected]>
2756
2757         * remote.c (remote_protocol_features): Now const.
2758
2759 2013-08-14  Tom Tromey  <[email protected]>
2760
2761         * remote.c (crc32_table, crc32): Remove.
2762         (remote_verify_memory): Use xcrc32.
2763
2764 2013-08-13  Sergio Durigan Junior  <[email protected]>
2765
2766         * value.h (create_internalvar_type_lazy): Adjust prototype
2767         declaration.
2768
2769 2013-08-13  Andrew Burgess  <[email protected]>
2770
2771         * common/format.c (parse_format_string): Don't allow '#' flag for
2772         pointer arguments in format string.
2773
2774 2013-08-13  Pierre Muller  <[email protected]>
2775
2776         * utils.c (init_page_info): Only call tgetnum function
2777         if rl_get_screen_size did not return useful values.
2778
2779 2013-08-12  Ali Anwar  <[email protected]>
2780
2781         PR breakpoints/15117
2782         * linespec.c (linespec_parse_basic): Check for convenience
2783         variable or history value while parsing.
2784
2785 2013-08-12  Sergio Durigan Junior  <[email protected]>
2786
2787         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2788         AVR.
2789         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
2790         different signals between the generic Linux kernel implementation
2791         and AVR's.
2792         (avr_linux_gdb_signal_from_target): Delete.
2793         (avr_linux_gdb_signal_to_target): Delete.
2794         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2795
2796 2013-08-09  Doug Evans  <[email protected]>
2797
2798         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2799         entries.
2800
2801 2013-08-09  Sergio Durigan Junior  <[email protected]>
2802
2803         * linux-tdep.c: Define enum with generic signal numbers.
2804         (linux_gdb_signal_from_target): New function.
2805         (linux_gdb_signal_to_target): Likewise.
2806         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2807         methods to the functions above.
2808         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2809         (linux_gdb_signal_to_target): Likewise.
2810         * alpha-linux-tdep.c: Define new enum with signals different
2811         from generic Linux kernel.
2812         (alpha_linux_gdb_signal_from_target): New function.
2813         (alpha_linux_gdb_signal_to_target): Likewise.
2814         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2815         with the functions mentioned above.
2816         * avr-tdep.c: Define enum with differences between Linux kernel
2817         and AVR signals.
2818         (avr_linux_gdb_signal_from_target): New function.
2819         (avr_linux_gdb_signal_to_target): Likewise.
2820         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2821         the functions mentioned above.
2822         * sparc-linux-tdep.c: Define enum with differences between SPARC
2823         and generic Linux kernel signal numbers.
2824         (sparc32_linux_gdb_signal_from_target): New function.
2825         (sparc32_linux_gdb_signal_to_target): Likewise.
2826         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2827         to the functions defined above.
2828         * xtensa-linux-tdep.c: Define enum with differences between
2829         Xtensa and Linux kernel generic signals.
2830         (xtensa_linux_gdb_signal_from_target): New function.
2831         (xtensa_linux_gdb_signal_to_target): Likewise.
2832         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2833         to the functions defined above.
2834         * mips-linux-tdep.c: Define enum with differences between
2835         signals in MIPS and Linux kernel generic ones.
2836         (mips_gdb_signal_to_target): New function.
2837         (mips_gdb_signal_from_target): Redefine to use new enum, handle
2838         only different signals from the Linux kernel generic.
2839         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2840         the functions defined above.
2841         * mips-linux-tdep.h (enum mips_signals): Remove.
2842
2843 2013-08-09  Pedro Alves  <[email protected]>
2844
2845         * avr-tdep.c (XMALLOC): Delete macro.
2846         * cli/cli-dump.c (XMALLOC): Delete macro.
2847
2848 2013-08-09  Pedro Alves  <[email protected]>
2849
2850         * cli/cli-dump.c: Don't include cli/cli-dump.h.
2851         (scan_expression_with_cleanup, scan_filename_with_cleanup)
2852         (fopen_with_cleanup, add_dump_command): Make static.
2853         * cli/cli-dump.h: Delete file.
2854         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2855         cli/cli-dump.h.
2856
2857 2013-08-09  Pedro Alves  <[email protected]>
2858
2859         * tracepoint.c (tfile_start): Show tilde-expanded filename in
2860         error message.
2861
2862 2013-08-09  Pedro Alves  <[email protected]>
2863
2864         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2865         error message.
2866
2867 2013-08-09  Pedro Alves  <[email protected]>
2868
2869         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2870         (gcore_command): Use tilde_expand here, and when showing the
2871         filename to the user, show the expanded version.
2872
2873 2013-08-09  Yao Qi  <[email protected]>
2874
2875         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2876         'entryval' is set.
2877
2878 2013-08-08  Azat Khuzhin  <[email protected]>  (tiny change)
2879
2880         * gcore.c (create_gcore_bfd): Use tilde_expand.
2881
2882 2013-08-08  Yao Qi  <[email protected]>
2883
2884         * frame.h (read_frame_local): Declare.
2885         * mi/mi-cmd-stack.c (list_args_or_locals): Call
2886         read_frame_local.
2887         * stack.c (read_frame_local): New.
2888
2889 2013-08-08  Yao Qi  <[email protected]>
2890
2891         * mi/mi-cmd-stack.c: Update comments to function
2892         list_args_or_locals.
2893
2894 2013-08-07  Tom Tromey  <[email protected]>
2895
2896         PR symtab/15028:
2897         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2898         (process_psymtab_comp_unit_reader): Use it.
2899         (process_psymtab_comp_unit): Update.  Add "pretend_language"
2900         argument.
2901         (dwarf2_build_psymtabs_hard): Update.
2902         (scan_partial_symbols): Pass CU's language to
2903         process_psymtab_comp_unit.
2904
2905 2013-08-07  Tom Tromey  <[email protected]>
2906
2907         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2908         (dwarf2_gdb_index_functions): Update.
2909         * psymtab.c (find_symbol_file_from_partial): Remove.
2910         (psym_functions): Update.
2911         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2912         Remove.
2913
2914 2013-08-07  Tom Tromey  <[email protected]>
2915
2916         * symfile.c (set_initial_language): Look up "main" symbol
2917         and use its language.
2918         * symtab.c (find_main_filename): Remove.
2919         * symtab.h (find_main_filename): Remove.
2920
2921 2013-08-07  Tom Tromey  <[email protected]>
2922
2923         * dwarf2read.c (recursively_compute_inclusions): Add
2924         "immediate_parent" argument.  Set symtab's "user" field
2925         if not set.
2926         (compute_symtab_includes): Update.
2927
2928 2013-08-07  Tom Tromey  <[email protected]>
2929
2930         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2931         when adding label symbols.
2932
2933 2013-08-07  Raunaq Bathija  <[email protected]>
2934             Ulrich Weigand  <[email protected]>
2935
2936         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2937         * configure.host (powerpc64-*-aix*): Likewise.
2938
2939 2013-08-07  Raunaq Bathija  <[email protected]>
2940             Ulrich Weigand  <[email protected]>
2941
2942         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2943         is defined.
2944         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2945         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2946         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2947         * configure.ac: Check for ptrace64.
2948         * configure, config.in: Regenerate.
2949
2950 2013-08-07  Raunaq Bathija  <[email protected]>
2951             Ulrich Weigand  <[email protected]>
2952
2953         * aixthread.c: Call ptrace64 instead of ptracex if defined.
2954         Call ptrace64 instead of ptrace if defined.
2955         Add macro addr_ptr to take care of ptrace address argument.
2956         (pdc_read_regs): Likewise.
2957         (pdc_write_regs): Likewise.
2958         (aix_thread_resume): Likewise.
2959         (fetch_regs_kernel_thread): Likewise.
2960         (store_regs_kernel_thread): Likewise.
2961
2962 2013-08-07  Anton Blanchard  <[email protected]>
2963
2964         * MAINTAINERS: Add myself to Write After Approval.
2965
2966 2013-08-05  Tom Tromey  <[email protected]>
2967
2968         * aix-thread.c (_initialize_aix_thread): Use
2969         complete_target_initialization.
2970         * bsd-uthread.c (_initialize_bsd_uthread): Use
2971         complete_target_initialization.
2972         * dec-thread.c (_initialize_dec_thread): Use
2973         complete_target_initialization.
2974         * ravenscar-thread.c (_initialize_ravenscar): Use
2975         complete_target_initialization.
2976         * sol-thread.c (_initialize_sol_thread): Use
2977         complete_target_initialization.
2978         * spu-multiarch.c (_initialize_spu_multiarch): Use
2979         complete_target_initialization.
2980
2981 2013-08-05  Tom Tromey  <[email protected]>
2982
2983         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2984         * ada-lang.c (ada_lookup_simple_minsym): Return
2985         bound_minimal_symbol.
2986         * ada-lang.h (ada_lookup_simple_minsym): Update.
2987         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2988         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2989         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2990         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2991         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2992         * minsyms.c (msymbol_objfile): Remove.
2993         (lookup_minimal_symbol_internal): New function, from
2994         lookup_minimal_symbol.
2995         (lookup_minimal_symbol): Rewrite using
2996         lookup_minimal_symbol_internal.
2997         (lookup_bound_minimal_symbol): New function.
2998         * minsyms.h (msymbol_objfile): Remove.
2999         (lookup_bound_minimal_symbol): Declare.
3000         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3001         * parse.c (write_exp_msymbol): Change parameter to a
3002         bound_minimal_symbol.
3003         (write_dollar_variable): Use lookup_bound_minimal_symbol.
3004         * parser-defs.h (write_exp_msymbol): Update.
3005         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3006         * symfile.c (simple_read_overlay_table): Use
3007         lookup_bound_minimal_symbol.
3008         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3009         (search_symbols): Likewise.
3010         (print_msymbol_info): Take a bound_minimal_symbol argument.
3011         (symtab_symbol_info, rbreak_command): Update.
3012         * symtab.h (struct symbol_search) <msymbol>: Change type
3013         to bound_minimal_symbol.
3014         * valops.c (find_function_in_inferior): Use
3015         lookup_bound_minimal_symbol.
3016         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3017
3018 2013-08-05  Jan Kratochvil  <[email protected]>
3019
3020         Code cleanup.
3021         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3022         to ...
3023         (async_cleanup_sigint_signal_handler): ... this.
3024         (initialize_sigint_signal_handler): Remove declaration.
3025         (handle_remote_sigint): Rename the declaration to ...
3026         (async_handle_remote_sigint): ... this.
3027         (handle_remote_sigint_twice): Rename the declaration to ...
3028         (async_handle_remote_sigint_twice): ... this.
3029         (async_remote_interrupt, async_remote_interrupt_twice)
3030         (remote_interrupt): Remove the declarations.
3031         (remote_interrupt_twice): Rename the declaration ...
3032         (sync_remote_interrupt_twice): ... this.
3033         (sigint_remote_twice_token): Rename the variable to ...
3034         (async_sigint_remote_twice_token): ... this.
3035         (sigint_remote_token): Rename the variable to ...
3036         (async_sigint_remote_token): ... this.
3037         (initialize_sigint_signal_handler): Rename the function to ...
3038         (async_initialize_sigint_signal_handler): ... this.  Update the name
3039         inside.
3040         (handle_remote_sigint): Rename the function to ...
3041         (async_handle_remote_sigint): ... this.  Update the names inside.
3042         (handle_remote_sigint_twice): Rename the function to ...
3043         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
3044         (cleanup_sigint_signal_handler): Rename the function to ...
3045         (async_cleanup_sigint_signal_handler): ... this.
3046         (remote_interrupt): Rename the function to ...
3047         (sync_remote_interrupt): this.  Update the names inside.
3048         (remote_interrupt_twice): Rename the function to ...
3049         (sync_remote_interrupt_twice): this.  Update the names inside.
3050         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3051         (_initialize_remote): Update the names inside.
3052
3053 2013-08-02  Tom Tromey  <[email protected]>
3054
3055         PR symtab/15719:
3056         * breakpoint.c (update_watchpoint, watchpoint_check)
3057         (watch_command_1): Update.
3058         * eval.c (fetch_subexp_value): Add "preserve_errors"
3059         parameter.
3060         * ppc-linux-nat.c (check_condition): Update.
3061         * value.h (fetch_subexp_value): Update.
3062
3063 2013-08-02  Andrew Burgess  <[email protected]>
3064
3065         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3066         add_file_handler.
3067
3068 2013-08-01  Doug Evans  <[email protected]>
3069
3070         PR symtab/15691
3071         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3072         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3073         Add assert of sig_entry->dwo_unit == NULL.
3074         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3075         had already been read.
3076         (read_signatured_type): Set per_cu.tu_read.
3077
3078         PR symtab/15695
3079         * valops.c (value_struct_elt): Add missing call to check_typedef.
3080         (value_find_oload_method_list): Ditto.
3081
3082         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3083         effectively, struct symbol_search **.
3084         (make_cleanup_free_search_symbols): Change arg to struct
3085         symbol_search **.  All callers updated.
3086         (compare_search_syms): Compare symtab file name and block as well.
3087         (search_symbols_equal): New function.
3088         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3089         New args new_head, new_tail.  Result is now void.  Remove dups after
3090         sorting the symbols.
3091         (search_symbols): Sort all found symbols once, after all have been
3092         found, and remove duplicates.  Simplify cleanup tracking of result.
3093         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3094
3095         Further workarounds for binutils/15021.
3096         * dwarf2read.c (recursively_compute_inclusions): Change type of result
3097         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
3098         Watch for duplicate symtabs coming from type units.
3099         (compute_symtab_includes): Update call to
3100         recursively_compute_inclusions. Build vector of included symtabs
3101         instead of per_cus.
3102         * symtab.h (symtab_ptr): New typedef.
3103         (DEF_VEC_P (symtab_ptr)): New VEC type.
3104         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
3105         instead.
3106
3107 2013-08-01  Andrew Burgess  <[email protected]>
3108
3109         * cli/cli-script.c (script_from_file): Remove use of
3110         error_pre_print.
3111         * main.c (captured_main): Remove use of error_pre_print and
3112         quit_pre_print.
3113         * utils.c (error_pre_print, quit_pre_print): Remove.
3114         * utils.h (error_pre_print, quit_pre_print): Likewise.
3115
3116 2013-08-01  Yao Qi  <[email protected]>
3117
3118         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3119         with mi_getopt.
3120         (mi_cmd_stack_list_variables): Likewise.
3121
3122 2013-07-31  Andrew Burgess  <[email protected]>
3123
3124         * exceptions.c (deprecated_throw_reason): Remove.
3125         * exceptions.h (deprecated_throw_reason): Remove.
3126
3127 2013-07-31  Andrew Burgess  <[email protected]>
3128
3129         * remote-mips.c (mips_error): Replace use of
3130         deprecated_throw_reason with throw_verror.  Use the error message
3131         passed to mips_error as the error message for throw_verror.
3132
3133 2013-07-31  Andrew Burgess  <[email protected]>
3134
3135         * monitor.c (monitor_interrupt_query): Replace use of
3136         deprecated_throw_reason with quit.
3137         * nto-procfs.c (interrupt_query): Likewise.
3138         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3139         * remote-mips.c (mips_kill): Likewise.
3140         * remote.c (interrupt_query): Likewise.
3141
3142 2013-07-31  Andrew Burgess  <[email protected]>
3143
3144         * utils.c (internal_verror): Replace use of deprecated_throw_reason
3145         with call to fatal.
3146
3147 2013-07-31  Pedro Alves  <[email protected]>
3148             Yao Qi  <[email protected]>
3149
3150         * tracepoint.c (trace_dump_command): Select the current frame.
3151
3152 2013-07-30  Doug Evans  <[email protected]>
3153
3154         * dwarf2read.c (process_queue): Add type signature to debug output.
3155
3156 2013-07-30  Andrew Burgess  <[email protected]>
3157
3158         * value.c (value_fetch_lazy): Mark optimized out values as such
3159         rather than raising an error.
3160
3161 2013-07-30  Andrew Burgess  <[email protected]>
3162
3163         * value.c (value_fetch_lazy): Ensure parent value is not lazy
3164         before checking which bits of the parent, not the child, value are
3165         valid.
3166
3167 2013-07-30  Muhammad Bilal  <[email protected]>
3168
3169         PR gdb/15715
3170         * top.c: Include "filenames.h".
3171         (set_history_filename): New function.
3172         (init_main): Install it as set hook of the "set history filename"
3173         command.
3174
3175 2013-07-30  Sanimir Agovic  <[email protected]>
3176
3177         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3178         attribute parameter.
3179         (dwarf2_const_value_data): Constify struct attribute parameter.
3180         (dwarf2_const_value): Constify struct attribute parameter.
3181         (dwarf2_const_value_attr): Constify struct attribute parameter.
3182         (lookup_die_type): Constify struct attribute parameter.
3183         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3184         (follow_die_ref_or_sig): Constify struct attribute parameter.
3185         (follow_die_ref): Constify struct attribute parameter.
3186         (follow_die_sig): Constify struct attribute parameter.
3187         (get_DW_AT_signature_type): Constify struct attribute parameter.
3188         (get_type_unit_group): Constify struct attribute parameter.
3189         (fill_in_loclist_baton): Constify struct attribute parameter.
3190         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3191         (type_unit_group): Constify struct attribute parameter.
3192
3193 2013-07-30  Sanimir Agovic  <[email protected]>
3194
3195         * dwarf2read.c (attr_form_is_block): Make argument const.
3196         (attr_form_is_section_offset): Make argument const.
3197         (attr_form_is_constant): Make argument const.
3198         (attr_form_is_ref): Make argument const.
3199
3200 2013-07-30  Sanimir Agovic  <[email protected]>
3201
3202         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3203         All uses updated.
3204         (attr_form_is_ref): Moved below attr_form_is_constant.
3205
3206 2013-07-29  Doug Evans  <[email protected]>
3207
3208         * main.c (captured_command_loop): Tweak comment.
3209
3210         * target.c (target_async_permitted_1): Fix comment.
3211
3212         * symtab.c (iterate_over_some_symtabs): Add comment.
3213
3214         * symtab.c (iterate_over_some_symtabs): Fix indentation.
3215
3216 2013-07-27  Yao Qi  <[email protected]>
3217
3218         * NEWS: Mention that GDBserver now supports hardware
3219         watchpoints on the MIPS GNU/Linux target.
3220
3221 2013-07-27  Yao Qi  <[email protected]>
3222
3223         * Makefile.in (HFILES_NO_SRCDIR): Add
3224         common/mips-linux-watch.h.
3225         (mips-linux-watch.o): New rule.
3226         * common/mips-linux-watch.c: New.
3227         * common/mips-linux-watch.h: New.
3228         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3229         * mips-linux-nat.c: Include mips-linux-watch.h.
3230         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3231         to common/mips-linux-watch.h.
3232         (MAX_DEBUG_REGISTER): Likewise.
3233         (enum pt_watch_style): Likewise.
3234         (struct mips32_watch_regs): Likewise.
3235         (struct mips64_watch_regs): Likewise.
3236         (struct pt_watch_regs): Likewise.
3237         (struct mips_watchpoint): Likewise.
3238         (mips_linux_watch_get_irw_mask): Move to
3239         common/mips-linux-watch.c.
3240         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3241         (mips_linux_watch_get_watchlo): Likewise.
3242         (mips_linux_watch_set_watchlo): Likewise.
3243         (mips_linux_watch_get_watchhi): Likewise.
3244         (mips_linux_watch_set_watchhi): Likewise.
3245         (mips_linux_read_watch_registers): Likewise.
3246         (mips_linux_watch_type_to_irw): Likewise.
3247         (mips_linux_stopped_data_address, fill_mask): Likewise.
3248         (mips_linux_watch_try_one_watch): Likewise.
3249         (mips_linux_watch_populate_regs): Likewise.
3250
3251 2013-07-27  Yao Qi  <[email protected]>
3252
3253         * mips-linux-nat.c (get_irw_mask): Rename to ...
3254         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
3255         'set' to 'n'.  Update function comment.  All callers changed.
3256         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
3257         function comment.  All callers changed.
3258         (get_num_valid): Rename to ...
3259         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
3260         'set' to 'n'.  Update function comment.  All callers changed.
3261         (get_watchlo): Rename to ...
3262         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
3263         'set' to 'n'.  Update function comment.  All callers changed.
3264         (set_watchlo): Rename to ...
3265         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
3266         'set' to 'n'.  Update function comment.  All callers changed.
3267         (get_watchhi): Rename to ...
3268         (mips_linux_watch_get_watchhi): ... this.  Update function
3269         comment.  All callers changed.
3270         (set_watchhi): Rename to ...
3271         (mips_linux_watch_set_watchhi): ... this.  Update function
3272         comment.  All callers changed.
3273         (mips_linux_read_watch_registers): Update function comment.
3274         Add new parameters 'lwpid', 'watch_readback', and
3275         'watch_readback_valid'.  Update.
3276         (type_to_irw): Rename to ...
3277         (mips_linux_watch_type_to_irw): ... this.  Update function
3278         comment.  All callers changed.
3279         (fill_mask): Update function comment.
3280         (try_one_watch): Rename to ...
3281         (mips_linux_watch_try_one_watch): ... this.  Change the type
3282         of parameter 'irw' from 'unsigned' to 'uint32_t'.
3283         (populate_regs_from_watches): Rename to ...
3284         (mips_linux_watch_populate_regs): ... this.  Add parameter
3285         'current_watches'.  All callers changed.
3286
3287 2013-07-27  Yao Qi  <[email protected]>
3288
3289         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3290         the code.
3291         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3292         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3293         (struct pt_watch_regs): Likewise.
3294         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3295         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3296         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3297         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3298         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3299
3300 2013-07-27  Yao Qi  <[email protected]>
3301
3302         * breakpoint.h: Include break-common.h.
3303         (enum target_hw_bp_type): Move to ...
3304         * common/break-common.h: ... here.  New.
3305
3306 2013-07-26  Cyril Nikolaev  <[email protected]>
3307
3308         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3309         process group regardless of having tty on stdin.
3310
3311 2013-07-25  Doug Evans  <[email protected]>
3312
3313         * linux-fork.h (detach_fork): Delete.
3314
3315 2013-07-25  Tom Tromey  <[email protected]>
3316
3317         PR remote/15256, PR remote/15266:
3318         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3319         * monitor.c (monitor_detach): Use unpush_target.
3320         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3321         * remote-mips.c (mips_detach): Use unpush_target.  Don't
3322         call mips_close.
3323         * remote-sim.c (gdbsim_detach): Use unpush_target.
3324         * target.c (pop_target): Remove.
3325         (pop_all_targets_above): Don't call target_close.
3326         (target_close): Assert that the target is unpushed.
3327         * target.h (pop_target): Don't declare.
3328         * tracepoint.c (tfile_open): Use unpush_target.
3329
3330 2013-07-25  Tom Tromey  <[email protected]>
3331
3332         * linux-thread-db.c (init_thread_db_ops): Call
3333         complete_target_initialization.
3334         (_initialize_thread_db): Don't call add_target.
3335         * target.c (complete_target_initialization): New function.
3336         (add_target_with_completer): Call it.
3337         * target.h (complete_target_initialization): Declare.
3338
3339 2013-07-25  Mark Kettenis  <[email protected]>
3340
3341         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3342         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3343         (HPPANBSD_SIZEOF_GREGS): New define.
3344         (hppaobsd_supply_gregset): Handle additional registers.
3345         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3346         we provide more registers now.
3347         (hppabsd_supply_gregset): Supply additional registers.
3348         (hppabsd_collect_gregset): Collect additional registers.
3349
3350 2013-07-25  Mark Kettenis  <[email protected]>
3351
3352         * hppabsd-tdep.c: Include "dwarf2-frame.h".
3353         (hppabsd_dwarf2_frame_init_reg): New function.
3354         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3355
3356 2013-07-25  Andrew Burgess  <[email protected]>
3357
3358         * mi/mi-main.c (output_register): Make MI 'r' format use standard
3359         'z' format code.  Remove error for optimized out values, standard
3360         code will handle these fine.
3361
3362 2013-07-25  Andrew Burgess  <[email protected]>
3363
3364         * NEWS: Mention new 'z' formatter.
3365         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3366         (_initialize_printcmd): Mention 'z' formatter in help text of the
3367         'x' command.
3368
3369 2013-07-24  Maciej W. Rozycki  <[email protected]>
3370
3371         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3372         formatting.
3373
3374 2013-07-24  Sergio Durigan Junior  <[email protected]>
3375
3376         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3377         interface can evaluate arguments.  Fallback to the old mode if it
3378         cannot.
3379         (create_exception_master_breakpoint): Likewise.
3380         * elfread.c (elf_can_evaluate_probe_arguments): New function.
3381         (struct sym_probe_fns elf_probe_fns): Export function above to the
3382         probe interface.
3383         * probe.c (can_evaluate_probe_arguments): New function.
3384         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3385         function pointer.
3386         (can_evaluate_probe_arguments): New function prototype.
3387         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3388         probe interface can evaluate arguments.  Fallback to the old mode
3389         if it cannot.
3390         * stap-probe.c (stap_get_probe_argument_count): Check if probe
3391         interface can evaluate arguments.  Warning the user if it cannot.
3392         (stap_can_evaluate_probe_arguments): New function.
3393         (struct probe_ops stap_probe_ops): Export function above to the
3394         probe interface.
3395         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3396         New function pointer.
3397
3398 2013-07-24  Luis Machado  <[email protected]>
3399
3400         * Makefile.in (SFILES): Add common/target-common.c.
3401         Add common/target-common.h to headers.
3402         (COMMON_OBS): Add target-common.o.
3403         (target-common.o): New target.
3404         * linux-nat.h (resume_kind): Move to common/target-common.h.
3405         * target.c (target_waitstatus_to_string): Move to
3406         common/target-common.c.
3407         * target.h: Include target-common.h.
3408         (target_waitkind): Move to common/target-common.h.
3409         (target_waitstatus): Likewise.
3410         (TARGET_WNOHANG): Likewise.
3411         * common/target-common.c: New file.
3412         * common/target-common.h: New file.
3413
3414 2013-07-24  Doug Evans  <[email protected]>
3415
3416         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3417         a warning.
3418
3419 2013-07-23  Yao Qi  <[email protected]>
3420
3421         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3422         parameter 'gdbarch'.
3423         (i386_stack_tramp_frame_sniffer): Caller update.
3424         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3425         parameter 'gdbarch' and 'target'.
3426         (i386_linux_core_read_description): Caller update.
3427         * amd64-linux-tdep.c (amd64_linux_core_read_description):
3428         Likewise.
3429         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3430         declaration.
3431
3432 2013-07-23  Tom Tromey  <[email protected]>
3433
3434         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3435         2013-07-22.
3436
3437 2013-07-22  Doug Evans  <[email protected]>
3438
3439         * exec.h (remove_target_sections): Delete arg abfd.
3440         * exec.c (exec_close): Update call to remove_target_sections.
3441         (remove_target_sections): Delete arg abfd.
3442         * solib.c (update_solib_list): Ditto.
3443         (reload_shared_libraries_1): Ditto.
3444         (clear_solib): Ditto, and unconditionally call remove_target_sections.
3445         * target.h (struct target_section): Rename key to owner.
3446         All uses updated.
3447
3448 2013-07-22  Tom Tromey  <[email protected]>
3449
3450         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3451
3452 2013-07-22  Tom Tromey  <[email protected]>
3453
3454         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3455         Simplify cleanup handling.
3456
3457 2013-07-22  Tom Tromey  <[email protected]>
3458
3459         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3460         on all return paths.
3461
3462 2013-07-22  Edjunior Barbosa Machado  <[email protected]>
3463
3464         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3465         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3466         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3467
3468 2013-07-22  Phil Muldoon  <[email protected]>
3469
3470         * top.c (print_gdb_version): Add help, apropos description and
3471         url to online documentation.
3472
3473 2013-07-19  Hui Zhu  <[email protected]>
3474
3475         PR gdb/15692
3476         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3477
3478 2013-07-19  Yao Qi  <[email protected]>
3479
3480         * target.c (update_current_target): Change the default action
3481         of 'to_traceframe_info' from tcomplain to return_zero.
3482         * target.h (struct target_ops) <to_traceframe_info>: Add more
3483         comments.
3484         * valops.c (read_value_memory): Call
3485         traceframe_available_memory unconditionally.
3486
3487 2013-07-18  Yao Qi  <[email protected]>
3488
3489         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3490         if the name is prefixed by "__imp_" or "_imp_", look for minimal
3491         symbol without prefix.  If found, set its type to
3492         'mst_solib_trampoline'.
3493
3494 2013-07-17  Doug Evans  <[email protected]>
3495
3496         * NEWS: Mention "set print raw frame-arguments".
3497         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3498         * stack.c (print_raw_frame_arguments): New static global.
3499         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3500         (_initialize_stack): New command "set/show print raw frame-arguments".
3501         * valprint.c (setprintrawlist, showprintrawlist): New globals.
3502         (set_print_raw, show_print_raw): New functions.
3503         (_initialize_valprint): New prefix command "set/show print raw".
3504         * valprint.h (value_print_options): Improve comments.
3505
3506         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3507         of all *list variables.
3508
3509         * gdbcmd.h (togglelist): Delete.
3510         * cli/cli-cmds.c (togglelist): Delete.
3511         (init_cmd_lists): Update.
3512         * cli/cli-cmds.h (togglelist): Delete.
3513
3514 2013-07-17  Tom Tromey  <[email protected]>
3515
3516         * dwarf2read.c (dwarf2_per_objfile_free): Clear
3517         dwarf2_per_objfile.
3518
3519 2013-07-16  Doug Evans  <[email protected]>
3520
3521         * nto-tdep.c (nto_relocate_section_addresses): Update,
3522         target_section.bfd deleted.
3523         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3524         * s390-tdep.c (s390_load): Ditto.
3525         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3526
3527 2013-07-16  Andrew Burgess  <[email protected]>
3528
3529         * common/format.c (parse_format_string): Add checks for NULL
3530         character before calling strchr.
3531
3532 2013-07-16  Doug Evans  <[email protected]>
3533
3534         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3535         temp_pathname argument.
3536         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3537         when opening the file fails.
3538
3539         * target.h (struct target_section): Delete member bfd.
3540         All users updated to use the_bfd_section->owner instead.
3541         * exec.c (add_to_section_table): Assert bfd is expected value.
3542         Remove initialization of target_section.bfd.
3543         (remove_target_sections): Update.
3544         (section_table_available_memory): Update.
3545         (section_table_xfer_memory_partial): Update.
3546         (print_section_info): Update.
3547         (exec_set_section_address): Update.
3548         * record-full.c (record_full_core_xfer_partial): Update.
3549         * solib-svr4.c (svr4_relocate_section_addresses): Update.
3550         * solib-target.c (solib_target_relocate_section_addresses): Update.
3551         * symfile.c (build_section_addr_info_from_section_table): Update.
3552         * target.c (memory_xfer_live_readonly_partial): Update.
3553         (memory_xfer_partial_1): Update.
3554
3555 2013-07-15  Edjunior Barbosa Machado  <[email protected]>
3556
3557         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3558         now available for embedded (BookE) and server (BookS) processors,
3559         correct mentions of 'booke' and adjust comments accordingly in order to
3560         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3561         (have_ptrace_booke_interface): Rename function and variable
3562         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3563         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3564         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3565         'hwdebug_point_cmp'. Update all uses.
3566         (booke_find_thread_points_by_tid): Rename function
3567         'booke_find_thread_points_by_tid' to
3568         'hwdebug_find_thread_points_by_tid'. Update all uses.
3569         (booke_insert_point): Rename function 'booke_insert_point' to
3570         'hwdebug_insert_point'. Update all uses.
3571         (booke_remove_point): Rename function 'booke_remove_point' to
3572         'hwdebug_remove_point'. Update all uses.
3573
3574 2013-07-15  Maciej W. Rozycki  <[email protected]>
3575
3576         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3577         numbers with enum values.
3578
3579 2013-07-15  Ali Anwar  <[email protected]>
3580
3581         PR threads/13217
3582         * thread.c (thread_apply_all_command): Check for valid threads
3583         and thread count.
3584         (thread_array_cleanup): New struct.
3585         (set_thread_refcount): New function.
3586
3587 2013-07-11  Andrew Burgess  <[email protected]>
3588
3589         * infcmd.c (default_print_one_register_info): Reuse function
3590         print_hex_chars.
3591
3592 2013-07-10  Tom Tromey  <[email protected]>
3593
3594         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3595         (ada-exp.o): New target.
3596
3597 2013-07-10  Sergio Durigan Junior  <[email protected]>
3598
3599         * mt-tdep.c (mt_registers_info): Call
3600         get_no_prettyformat_print_options instead of
3601         get_raw_print_options (regression by last patch from Doug
3602         Evans).
3603
3604 2013-07-09  Pedro Alves  <[email protected]>
3605
3606         Checked in by Joel Brobecker  <[email protected]>.
3607         * ada-lang.c (coerce_unspec_val_to_type): Use
3608         value_optimized_out_const.
3609         * value.c (value_optimized_out_const): New function.
3610         * value.h (value_optimized_out_const): New declaration.
3611
3612 2013-07-09  Doug Evans  <[email protected]>
3613
3614         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3615         Enum values rename as well.  All uses updated.
3616         * valprint.h (value_print_options): Rename member pretty to
3617         pretty format.  Rename member prettyprint_arrays to
3618         prettyformat_arrays.  Rename member prettyprint_structs to
3619         prettyformat_structs.  All uses updated.
3620         (get_no_prettyformat_print_options): Renamed from
3621         get_raw_print_options.
3622         * valprint.c (get_no_prettyformat_print_options): Renamed from
3623         get_raw_print_options.  All callers updated.
3624         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3625         All callers updated.
3626         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3627         All callers updated.
3628         (_initialize_valprint): Improve help text for "set print pretty" and
3629         "set print arrays".
3630
3631 2013-07-09  Andrew Burgess  <[email protected]>
3632
3633         * value.c (value_bits_valid): Revert previous change, and change
3634         by Pedro on 2013-07-04, due to regressions in
3635         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3636
3637 2013-07-08  Andrew Burgess  <[email protected]>
3638             Pedro Alves  <[email protected]>
3639
3640         * value.c (value_bits_valid): If the value is not lval_computed
3641         or has no check validity handler then the answer is the
3642         optimized_out flag, otherwise defer to the handler.
3643
3644 2013-07-06  Eli Zaretskii  <[email protected]>
3645
3646         * top.c (print_gdb_configuration): Explain in output of
3647         --configuration what does "relocatable" mean.
3648
3649         * main.c (print_gdb_help): Regroup options in the --help text.
3650         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3651         the relevant discussions.
3652
3653 2013-07-06  Yao Qi  <[email protected]>
3654
3655         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3656         Remove parameter 'lsal'.
3657         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3658         to inner block.  Caller update.
3659         (base_breakpoint_create_breakpoints_sal): Update.
3660         (bkpt_create_breakpoints_sal): Likewise.
3661         (tracepoint_create_breakpoints_sal): Likewise.
3662         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3663         element 0 of vector 'canonical->sals'.
3664
3665 2013-07-05  Luis Machado  <[email protected]>
3666
3667         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3668         register number instead of the pseudo register one.
3669         (rs6000_dwarf2_reg_to_regnum): Likewise.
3670
3671 2013-07-04  Pedro Alves  <[email protected]>
3672
3673         * findvar.c (value_of_register): Use allocate_optimized_out_value
3674         if the register has been optimized out, instead of
3675         set_value_optimized_out.
3676         * frame-unwind.c (frame_unwind_got_optimized): Use
3677         allocate_optimized_out_value.
3678
3679 2013-07-04  Pedro Alves  <[email protected]>
3680
3681         * value.c (value_bits_valid): If the value is not lval_computed,
3682         or doesn't have a check_validity hook, assume the value is entirely
3683         valid.
3684
3685 2013-07-04  Andrew Burgess  <[email protected]>
3686
3687         * stack.c (read_frame_arg): No longer fetch lazy values.
3688         * value.c (value_optimized_out): If the value is not already
3689         marked optimized out, and is lazy then fetch it.
3690         (value_primitive_field): Move optimized out check to later in the
3691         function, after we have loaded any lazy values.
3692         (value_fetch_lazy): Use optimized out flag directly rather than
3693         calling optimized_out method.
3694
3695 2013-07-04  Andrew Burgess  <[email protected]>
3696
3697         * valops.c: Don't include "user-regs.h".
3698         (value_fetch_lazy): Moved to value.c.
3699         * value.c: Include "user-regs.h".
3700         (value_fetch_lazy): Moved from valops.c.
3701
3702 2013-07-04  Yao Qi  <[email protected]>
3703
3704         Revert:
3705         2013-06-27  Yao Qi  <[email protected]>
3706
3707         * common/create-version.sh: Update comments.  Handle the case
3708         that TARGET_ALIAS is empty.
3709
3710 2013-07-03  Pedro Alves  <[email protected]>
3711
3712         * Makefile.in (config.status): Depend on development.sh.
3713         (aclocal_m4_deps): Add libmcheck.m4.
3714         * acinclude.m4: Include libmcheck.m4.
3715         * configure.ac: Source development.sh instead of setting
3716         'development' here.  --enable-libmcheck/--disable-libmcheck code
3717         factored out to GDB_AC_LIBMCHECK.  Run it.
3718         * development.sh: New file.
3719         * libmcheck.m4: New file.
3720         * configure: Regenerate.
3721
3722 2013-07-02  Tom Tromey  <[email protected]>
3723
3724         * contrib/ari/update-web-ari.sh: Update for version.in change.
3725
3726 2013-07-02  Tom Tromey  <[email protected]>
3727
3728         * common/ptid.h: Comment fixes.
3729
3730 2013-07-01  Tom Tromey  <[email protected]>
3731
3732         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3733         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
3734         (dwarf2_read_index, create_all_comp_units): Update.
3735
3736 2013-07-01  Tom Tromey  <[email protected]>
3737
3738         * configure.ac (build_warnings): Add -Wold-style-definition.
3739         * configure: Rebuild.
3740         * machoread.c (_initialize_machoread): Use "(void)".
3741         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3742         use "(void)".
3743
3744 2013-07-01  Tom Tromey  <[email protected]>
3745
3746         * configure.ac (build_warnings): Add -Wold-style-declaration.
3747         * configure: Rebuild.
3748         * dsrec.c (make_srec): Use "static const", not "const static".
3749         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3750         not "const static".
3751         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3752         Use "static const", not "const static".
3753         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3754         not "const static".
3755         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3756         not "const static".
3757         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3758         not "const static".
3759         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3760         not "const static".
3761         (v850_dbtrap_breakpoint_from_pc): Likewise.
3762         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3763         not "const static".
3764
3765 2013-07-01  Tom Tromey  <[email protected]>
3766
3767         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3768         * configure: Rebuild.
3769
3770 2013-07-01  Pedro Alves  <[email protected]>
3771
3772         * defs.h: Include "pathmax.h".
3773         * utils.c: Don't include sys/param.h.
3774         (gdb_realpath): Remove code that checks for MAXPATHLEN.
3775         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3776         instead of MAXPATHLEN.
3777         * solib-sunos.c: Don't include sys/param.h.
3778         * xcoffread.c: Don't include sys/param.h.
3779         * bsd-kvm.c: Don't include sys/param.h.
3780         * darwin-nat.c: Don't include sys/param.h.
3781         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3782         * darwin-nat-info.c: Don't include sys/param.h.
3783         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3784         MAXPATHLEN.
3785         * i386obsd-nat.c: Don't include sys/param.h.
3786         * inf-child.c: Don't include sys/param.h.
3787         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3788         * linux-fork.c: Don't include sys/param.h.
3789         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3790         * linux-nat.c: Don't include sys/param.h.
3791         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3792         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3793         * m68klinux-nat.c: Don't include sys/param.h.
3794         * nbsd-nat.c: Don't include sys/param.h.
3795         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3796         * ppc-linux-nat.c: Don't include sys/param.h.
3797         * rs6000-nat.c: Don't include sys/param.h.
3798         * spu-linux-nat.c. Don't include sys/param.h.
3799         * windows-nat.c: Don't include sys/param.h.
3800         * xtensa-linux-nat.c: Don't include sys/param.h.
3801         * config/i386/nm-fbsd.h: Don't include sys/param.h.
3802
3803 2013-07-01  Pedro Alves  <[email protected]>
3804
3805         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3806         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3807         * gnulib/aclocal.m4: Regenerate.
3808         * gnulib/config.in: Regenerate.
3809         * gnulib/configure: Regenerate.
3810         * gnulib/import/pathmax.h: New file.
3811         * gnulib/import/Makefile.am: Regenerate.
3812         * gnulib/import/Makefile.in: Regenerate.
3813         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3814         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3815         * gnulib/import/m4/pathmax.m4: New file.
3816
3817 2013-07-01  Pedro Alves  <[email protected]>
3818
3819         * configure.ac (GDBINIT): Define, depending on host.
3820         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3821         * top.c (PATH_MAX): Delete fallback definition.
3822         (GDBINIT_FILENAME): Delete.
3823         (gdbinit): Reimplement as const char array set to the GDBINIT
3824         string constant.
3825         * top.h (gdbinit): Make const.
3826         * configure, config.in: Regenerate.
3827
3828 2013-07-01  Pedro Alves  <[email protected]>
3829
3830         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3831         * cli/cli-cmds.h (source_script): Likewise.
3832         * exceptions.c (catch_command_errors_const): New function.
3833         * exceptions.h (catch_command_errors_const): Declare.
3834         * main.c (get_init_files): Make parameters const, and adjust.
3835         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3836         'local_gdbinit' locals const.  Adjust to use
3837         catch_command_errors_const.
3838         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3839         'local_gdbinit' locals const.
3840
3841 2013-07-01  Pedro Alves  <[email protected]>
3842
3843         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3844         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3845         * tracepoint.c: Don't check HAVE_UNISTD_H before including
3846         <unistd.h>.
3847
3848 2013-07-01  Pedro Alves  <[email protected]>
3849
3850         Import the "unistd" gnulib module.
3851         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3852         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3853         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3854         import/m4/unistd_h.m4.
3855         * gnulib/aclocal.m4: Renenerate.
3856         * gnulib/config.in: Renenerate.
3857         * gnulib/configure: Renenerate.
3858         * gnulib/import/Makefile.am: Renenerate.
3859         * gnulib/import/Makefile.in: Renenerate.
3860         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3861         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3862         * gnulib/import/m4/off_t.m4: New file.
3863         * gnulib/import/m4/ssize_t.m4: New file.
3864         * gnulib/import/m4/sys_types_h.m4: New file.
3865         * gnulib/import/m4/unistd_h.m4: New file.
3866         * gnulib/import/sys_types.in.h: New file.
3867         * gnulib/import/unistd.c: New file.
3868         * gnulib/import/unistd.in.h: New file.
3869
3870 2013-07-01  Pedro Alves  <[email protected]>
3871
3872         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3873         defined instead of checking HAVE_UNISTD_H.
3874
3875 2013-07-01  Pedro Alves  <[email protected]>
3876
3877         Reimport gnulib from scratch.
3878         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3879         import/m4/onceonly.m4.
3880         * gnulib/aclocal.m4: Renegerate.
3881         * gnulib/config.in: Renegerate.
3882         * gnulib/configure: Renegerate.
3883         * gnulib/import/Makefile.in: Renegerate.
3884         * gnulib/import/extra/update-copyright: Renegerate.
3885         * gnulib/import/m4/onceonly.m4: Delete.
3886
3887 2013-07-01  Pedro Alves  <[email protected]>
3888
3889         * tui/tui-regs.c (pagination_enabled): Delete declaration.
3890
3891 2013-06-30  Jan Kratochvil  <[email protected]>
3892
3893         Code cleanup.
3894         * remote.c (async_remote_interrupt_twice): Make it static.
3895         * remote.h (async_remote_interrupt_twice): Remove the declaration.
3896
3897 2013-06-29  Sergio Durigan Junior  <[email protected]>
3898
3899         * ia64-linux-tdep.c: Include <ctype.h>.
3900         (ia64_linux_stap_is_single_operand): New function.
3901         (ia64_linux_init_abi): Initialize SystemTap related attributes.
3902
3903 2013-06-28  Tom Tromey  <[email protected]>
3904
3905         * Makefile.in (version.c): Use version.in, not
3906         common/version.in.
3907         * common/create-version.sh: Likewise.
3908         * common/version.in: Move...
3909         * version.in: ...here.
3910
3911 2013-06-28  Pedro Alves  <[email protected]>
3912
3913         * infrun.c (set_observer_mode): Don't declare pagination_enabled
3914         here.
3915         * utils.h (pagination_enabled): Declare.
3916
3917 2013-06-28  Pedro Alves  <[email protected]>
3918
3919         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3920         Move higher up in file.
3921
3922 2013-06-28  Tom Tromey  <[email protected]>
3923
3924         * tracepoint.c (deprecated_readline_begin_hook)
3925         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3926         declare.
3927
3928 2013-06-28  Pedro Alves  <[email protected]>
3929
3930         PR tui/14880
3931         * tui/tui-regs.c (tui_get_register): Fetch value contents before
3932         checking if they're available.
3933         * value.c (value_available_contents_eq): Change comment.
3934         * value.h (value_available_contents_eq): Expand comment.
3935
3936 2013-06-27  Tom Tromey  <[email protected]>
3937
3938         * target.c (find_run_target): Remove.
3939         * target.h (find_run_target): Remove.
3940
3941 2013-06-27  Tom Tromey  <[email protected]>
3942
3943         * corelow.c (core_gdbarch): Now static.
3944
3945 2013-06-27  Tom Tromey  <[email protected]>
3946
3947         * target.c (target_struct_index): Remove.
3948
3949 2013-06-27  Pedro Alves  <[email protected]>
3950
3951         * infrun.c: Remove comment describing the 'stepping over runtime
3952         loader dynamic symbol resolution code' mechanism; moved to
3953         gdbint.texinfo.
3954
3955 2013-06-27  Pedro Alves  <[email protected]>
3956
3957         * exceptions.c (catch_command_errors): Remove spurious space.
3958         * exceptions.h (catch_command_errors): Second parameter is "arg",
3959         not "command".
3960
3961 2013-06-27  Yao Qi  <[email protected]>
3962
3963         * common/create-version.sh: Update comments.  Handle the case
3964         that TARGET_ALIAS is empty.
3965
3966 2013-06-26  Pedro Alves  <[email protected]>
3967
3968         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3969         comment.
3970
3971 2013-06-26  Pedro Alves  <[email protected]>
3972
3973         * infrun.c: Update comments on stepping over runtime loader
3974         dynamic symbol resolution code.
3975
3976 2013-06-26  Sergio Durigan Junior  <[email protected]>
3977
3978         * ax-gdb.h (union exp_element): Forward declare.
3979         * parser-defs.h: Include expression.h.
3980
3981 2013-06-26  Maciej W. Rozycki  <[email protected]>
3982
3983         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3984
3985 2013-06-26  Dmitry Kozlov <[email protected]>
3986
3987         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3988
3989 2013-06-26  Dmitry Kozlov <[email protected]>
3990
3991         Fix trace-status to output proper start-time and stop-time.
3992         * tracepoint.c (trace_status_command): Fix type of printf arg to
3993         prevent improper type conversion.
3994         (trace_status_mi): Likewise.
3995
3996 2013-06-26  Maciej W. Rozycki  <[email protected]>
3997
3998         * mips-tdep.c (mips_next_pc): Fix a typo.
3999
4000 2013-06-26  Maciej W. Rozycki  <[email protected]>
4001
4002         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4003
4004 2013-06-26  Pedro Alves  <[email protected]>
4005             Yao Qi  <[email protected]>
4006
4007         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4008         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4009         * mi/mi-main.c (print_variable_or_computed): New function.
4010         (mi_cmd_trace_frame_collected): New function.
4011         * tracepoint.c (find_trace_state_variable_by_number): New.
4012         (struct traceframe_info): Move to tracepoint.h
4013         (struct collection_list): Likewise.
4014         (do_collect_symbol): Include locals and arguments in the
4015         collected variables list.
4016         (clear_collection_list): Clear wholly collected variables list
4017         and computed variables list.
4018         (append_exp): New function.
4019         (encode_actions_1): Include variables in the wholly
4020         collected variables list.  Include memory ranges and
4021         full-fledged expressions in the computed expressions list.
4022         (encode_actions): Move some code to ...
4023         Return the cleanup chain.
4024         (encode_actions_rsp): ... here.  New function.
4025         (get_traceframe_location, get_traceframe_info): Remove static.
4026         * tracepoint.h (struct memrange): Moved from tracepoint.c.
4027         (struct collection_list): Moved from tracepoint.c.  Add two
4028         new fields 'wholly_collected' and 'computed'.
4029         (find_trace_state_variable_by_number): Declare.
4030         (encode_actions): Adjust declaration.
4031         (encode_actions_rsp): Declare.
4032         (get_traceframe_info, get_traceframe_location): Declare.
4033
4034         * NEWS: Mention new MI command -trace-frame-collected.
4035
4036 2013-06-26  Pedro Alves  <[email protected]>
4037             Yao Qi  <[email protected]>
4038
4039         * ctf.c (ctf_traceframe_info): Push trace state variables
4040         present in the trace data into the traceframe info object.
4041         * breakpoint.c (DEF_VEC_I): Remove.
4042         * common/filestuff.c (DEF_VEC_I): Likewise.
4043         * dwarf2loc.c (DEF_VEC_I): Likewise.
4044         * mi/mi-main.c (DEF_VEC_I): Likewise.
4045         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4046         * features/traceframe-info.dtd: Add tvar element and its
4047         attributes.
4048         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4049         (build_traceframe_info): Push trace state variables present in
4050         the trace data into the traceframe info object.
4051         (traceframe_info_start_tvar): New function.
4052         (tvar_attributes): New.
4053         (traceframe_info_children): Add "tvar" element.
4054         * tracepoint.h (struct traceframe_info) <tvars>: New field.
4055
4056         * NEWS: Mention the change in GDB and GDBserver.
4057
4058 2013-06-26  Pedro Alves  <[email protected]>
4059             Yao Qi  <[email protected]>
4060
4061         * tracepoint.c (trace_dump_command): Move code to ...
4062         (get_traceframe_location): ... here.  New.
4063
4064 2013-06-26  Pedro Alves  <[email protected]>
4065             Yao Qi  <[email protected]>
4066
4067         * tracepoint.c (trace_dump_command): GDB emits an error
4068          instead of a warning when a traceframe is not selected.
4069
4070 2013-06-26  Pedro Alves  <[email protected]>
4071             Yao Qi  <[email protected]>
4072
4073         * tracepoint.c (tracepoint_list, stepping_list): Remove.
4074         (clear_collection_list): Free fields 'aexpre_list' and 'list'
4075         in collection_list.
4076         (do_clear_collection_list, init_collection_list): New.
4077         (encode_actions): Add local variables 'tracepoint_list' and
4078         'stepping_list'.  Call init_collection_list and make cleanup
4079         which calls do_clear_collection_list.  Don't call
4080         clear_collection_list.
4081         (_initialize_tracepoint): Delete references to
4082         'tracepoint_list' and 'stepping_list'.
4083
4084 2013-06-25  Tom Tromey  <[email protected]>
4085
4086         * common/create-version.sh (date): Use "$", not "$$" in sed
4087         expression.
4088
4089 2013-06-25  Kevin Buettner  <[email protected]>
4090
4091         * NEWS (New targets): Add entry for TI MSP430.
4092
4093 2013-06-25  Yao Qi  <[email protected]>
4094
4095         * remote.c (remote_start_remote): Move code to upload tsv
4096         earlier.
4097
4098 2013-06-25  Yao Qi  <[email protected]>
4099             Hui Zhu  <[email protected]>
4100             Pedro Alves  <[email protected]>
4101
4102         PR breakpoints/15075
4103         PR breakpoints/15434
4104         * breakpoint.c (bpstat_stop_status): Call
4105         b->ops->after_condition_true.
4106         (update_dprintf_command_list): Don't append "continue" command
4107         to the command list of dprintf breakpoint.
4108         (base_breakpoint_after_condition_true): New function.
4109         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4110         (dprintf_after_condition_true): New function.
4111         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4112         * breakpoint.h (breakpoint_ops): Add after_condition_true.
4113
4114 2013-06-24  Kevin Buettner  <[email protected]>
4115
4116         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4117         (ALLDEPFILES): Add msp430-tdep.c.
4118         * configure.tgt (msp430*-*-elf): New target.
4119         * msp430-tdep.c: New file.
4120
4121 2013-06-24  Maciej W. Rozycki  <[email protected]>
4122
4123         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4124         microMIPS synthetic symbols.
4125
4126 2013-06-24  Maciej W. Rozycki  <[email protected]>
4127
4128         * objfiles.h (pc_in_section): New prototype.
4129         (in_plt_section): Remove name argument, replace prototype with
4130         static inline function.
4131         * mips-tdep.h: Include "objfiles.h".
4132         (in_mips_stubs_section): New function.
4133         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4134         in_solib_call_trampoline member.
4135         (hppa_in_solib_call_trampoline): Remove name argument.
4136         * objfiles.c (pc_in_section): New function.
4137         (in_plt_section): Remove function.
4138         * mips-linux-tdep.c: Include "objfiles.h".
4139         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
4140         name argument.  Return 1 rather than the low 16-bit halfword of
4141         any instruction examined.
4142         (mips_linux_in_dynsym_resolve_code): Update
4143         mips_linux_in_dynsym_stub call accordingly.
4144         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4145         rather than an equivalent hand-coded sequence.
4146         * hppa-hpux-tdep.c (in_opd_section): Remove function.
4147         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4148         (hppa64_hpux_in_solib_call_trampoline): Likewise.
4149         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4150         in_opd_section.
4151         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4152         on call to tdep->in_solib_call_trampoline.
4153         (hppa_in_solib_call_trampoline): Remove name argument, update
4154         according to in_plt_section change.
4155         (hppa_skip_trampoline_code): Update according to in_plt_section
4156         change.
4157         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4158         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4159         Likewise.
4160         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4161         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4162         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4163         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4164         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4165         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4166         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4167         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4168         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4169         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4170         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4171         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4172         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4173
4174 2013-06-24  Joel Brobecker  <[email protected]>
4175
4176         * common/create-version.sh: Fix expansion of $host_alias
4177         and $target_alias in generation of HOST_NAME and TARGET_NAME
4178         (resp.).
4179
4180 2013-06-24  Tom Tromey  <[email protected]>
4181
4182         * common/create-version.sh: New file.
4183         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4184         create-version.sh.
4185         (HFILES_NO_SRCDIR): Use common/version.h.
4186         * version.in: Move to ...
4187         * common/version.in: ... here.  Replace date with "DATE".
4188         * version.h: Move to ...
4189         * common/version.h: ... here.
4190
4191 2013-06-21  Joel Brobecker  <[email protected]>
4192
4193         * gdb/gnulib/Makefile.in: Update date in copyright header.
4194         * gdb/gnulib/configure.ac: Ditto.
4195         * gdb/gnulib/update-gnulib.sh: Ditto.
4196
4197 2013-06-21  Joel Brobecker  <[email protected]>
4198
4199         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4200         "gdb/gnulib/import".
4201
4202 2013-06-21  Will Newton  <[email protected]>
4203
4204         * doublest.c (ldfrexp): Remove function.
4205         (convert_doublest_to_floatformat): Call frexpl instead of
4206         ldfrexp.
4207
4208 2013-06-21  Will Newton  <[email protected]>
4209
4210         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4211         * gnulib/aclocal.m4: Regenerate.
4212         * gnulib/config.in: Regenerate.
4213         * gnulib/configure: Regenerate.
4214         * gnulib/import/Makefile.am: Update.
4215         * gnulib/import/Makefile.in: Update.
4216         * gnulib/import/m4/gnulib-cache.m4: Update.
4217         * gnulib/import/m4/gnulib-comp.m4: Update.
4218         * gnulib/import/float+.h: Import.
4219         * gnulib/import/float.c: Import.
4220         * gnulib/import/float.in.h: Import.
4221         * gnulib/import/fpucw.h: Import.
4222         * gnulib/import/frexp.c: Import.
4223         * gnulib/import/frexpl.c: Import.
4224         * gnulib/import/isnan.c: Import.
4225         * gnulib/import/isnand-nolibm.h: Import.
4226         * gnulib/import/isnand.c: Import.
4227         * gnulib/import/isnanl-nolibm.h: Import.
4228         * gnulib/import/isnanl.c: Import.
4229         * gnulib/import/itold.c: Import.
4230         * gnulib/import/m4/exponentd.m4: Import.
4231         * gnulib/import/m4/exponentl.m4: Import.
4232         * gnulib/import/m4/float_h.m4: Import.
4233         * gnulib/import/m4/fpieee.m4: Import.
4234         * gnulib/import/m4/frexp.m4: Import.
4235         * gnulib/import/m4/frexpl.m4: Import.
4236         * gnulib/import/m4/isnand.m4: Import.
4237         * gnulib/import/m4/isnanl.m4: Import.
4238         * gnulib/import/m4/math_h.m4: Import.
4239         * gnulib/import/math.c: Import.
4240         * gnulib/import/math.in.h: Import.
4241
4242 2013-06-21  Jan Kratochvil  <[email protected]>
4243
4244         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4245         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4246         signature_INTEL_edx comparisons.
4247
4248 2013-06-20  Doug Evans  <[email protected]>
4249
4250         symtab/15652
4251         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4252         All callers updated.
4253         (open_dwp_file): If we can't find the dwp file, search the basename
4254         in debug-file-directory.
4255
4256         * dwarf2read.c (struct dwp_file): Fix comment.
4257         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4258
4259         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4260         better.
4261
4262 2013-06-20  Yao Qi  <[email protected]>
4263
4264         * breakpoint.c (create_breakpoint): Fix code indentation.
4265
4266 2013-06-20  Yao Qi  <[email protected]>
4267
4268         * breakpoint.c (create_breakpoints_sal_default): Remove
4269         parameter 'lsal'.  Update declaration.
4270         (bkpt_create_breakpoints_sal): Caller update.
4271         (tracepoint_create_breakpoints_sal): Likewise.
4272
4273 2013-06-20  Pedro Alves  <[email protected]>
4274             Yao Qi  <[email protected]>
4275
4276         * NEWS: Mention the new option '--skip-unavailable' of command
4277         -data-list-register-values.
4278         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4279         --skip-unavailable option.  Adjust to use output_register.
4280         (output_register): Add new 'skip_unavailable' parameter.
4281         Handle it.
4282
4283 2013-06-19  Mike Frysinger  <[email protected]>
4284
4285         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4286         common/i386-gcc-cpuid.h.
4287         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4288         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4289         Copy the latest version from upstream gcc.
4290         * common/linux-btrace.c: Include i386-cpuid.h.
4291         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4292         call to i386_cpuid.
4293         (cpu_supports_btrace): Likewise.
4294         * go32-nat.c: Include i386-cpuid.h.
4295         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4296
4297 2013-06-19  Doug Evans  <[email protected]>
4298
4299         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4300         (get_section_index): Ditto.
4301
4302 2013-06-19  Tom Tromey  <[email protected]>
4303
4304         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4305         "dprintf" help.
4306
4307 2013-06-18  Doug Evans  <[email protected]>
4308
4309         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4310         before using it.
4311         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4312         Move test of cu_index closer to use.  Print complaint if cu_index
4313         is bad.
4314
4315 2013-06-18  Joel Brobecker  <[email protected]>
4316
4317         * machoread.c (oso_vector): Delete this global.
4318         (macho_register_oso): Add new parameter "oso_vector_ptr".
4319         Use it instead of the "oso_vector" global.
4320         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4321         (macho_symfile_read): Use a local oso_vector, to be free'ed
4322         at the end of this function, in place of the old "oso_vector"
4323         global.  Update various function calls accordingly.  Use one
4324         single cleanup chain for the entire function.
4325
4326 2013-06-18  Joel Brobecker  <[email protected]>
4327
4328         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4329         DWARF2_PER_OBJFILE by uses of DATA instead.
4330
4331 2013-06-18  Tom Tromey  <[email protected]>
4332
4333         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4334         argument.
4335         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4336         Special case signals other than GDB_SIGNAL_TRAP.
4337         (explains_signal_watchpoint): New function.
4338         (base_breakpoint_explains_signal): Add 'sig' argument.
4339         (initialize_breakpoint_ops): Set 'explains_signal' method for
4340         watchpoints.
4341         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4342         signal argument.
4343         (bpstat_explains_signal): Likewise.
4344         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4345
4346 2013-06-18  Tom Tromey  <[email protected]>
4347
4348         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4349
4350 2013-06-18  Tom Tromey  <[email protected]>
4351
4352         * python/python.c (finish_python_initialization): Decref
4353         'pythondir' on failure path as well.
4354
4355 2013-06-18  Tom Tromey  <[email protected]>
4356
4357         PR symtab/15391:
4358         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4359         after taking bits_to_skip into account.  Sign extend byte_offset.
4360         * utils.h (gdb_sign_extend): Declare.
4361         * utils.c (gdb_sign_extend): New function.
4362
4363 2013-06-18  Jan Kratochvil  <[email protected]>
4364
4365         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4366
4367 2013-06-17  Pierre Muller  <[email protected]>
4368
4369         * corelow.c (core_open): Print GDB signal name instead of target
4370         signal number.
4371
4372 2013-06-17  Mike Frysinger  <[email protected]>
4373
4374         * .gitignore: Add /gcore.
4375
4376 2013-06-13  Doug Evans  <[email protected]>
4377
4378         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4379         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4380
4381 2013-06-12  Phil Muldoon  <[email protected]>
4382
4383         * stack.c (backtrace_command_1): Fix indentation.
4384
4385 2013-06-11  Joel Brobecker  <[email protected]>
4386
4387         * window-nat.c (thread_rec): Add missing empty line after
4388         local variable declaration.
4389
4390 2013-06-11  Joel Brobecker  <[email protected]>
4391
4392         * windows-nat.c (thread_rec): Revert format used to print
4393         error code returned by SuspendThread from %d back to %u.
4394
4395 2013-06-11  Joel Brobecker  <[email protected]>
4396
4397         * windows-nat.c (windows_continue): Add "0x" prefix for thread
4398         ID in debug trace.
4399         (get_windows_debug_event): Likewise, for all debug traces.
4400
4401 2013-06-11  Joel Brobecker  <[email protected]>
4402
4403         * window-nat.c (thread_rec): Add thread ID in SuspendThread
4404         warning message.
4405
4406 2013-06-08  Pedro Alves  <[email protected]>
4407             Yao Qi  <[email protected]>
4408
4409         * mi/mi-main.c (get_register): Remove declaration.
4410         (output_register): Declare.
4411         (mi_cmd_data_list_register_values): Remove local variable
4412         'tuple_cleanup'.  Move some code into output_register.
4413         (get_register): Renamed to ...
4414         (output_register): ... this.  Output the register's
4415         "number" ui_out tuple here.
4416
4417 2013-06-07  Pedro Alves  <[email protected]>
4418
4419         * darwin-nat.c: Fix formating in copyright header.
4420         * darwin-nat.h: Likewise.
4421         * gnu-nat.c: Likewise.
4422         * machoread.c: Likewise.
4423
4424 2013-06-07  Pedro Alves  <[email protected]>
4425
4426         PR server/14823
4427         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
4428         static.  Output a global target description pointer.
4429         (init_registers_${name}): Adjust to initialize a
4430         target description structure.
4431
4432 2013-06-07  Will Newton  <[email protected]>
4433
4434         * printcmd.c (build_address_symbolic): Call
4435         gdbarch_addr_bits_remove for text minimal symbols.
4436
4437 2013-06-07  Will Newton  <[email protected]>
4438
4439         * MAINTAINERS: Add myself to Write After Approval.
4440
4441 2013-06-07  Yao Qi  <[email protected]>
4442
4443         * tracepoint.c (start_tracing): Move code to ...
4444         (trace_reset_local_state): ... here.  New.
4445         (disconnect_tracing): Don't call set_current_traceframe,
4446         set_tracepoint_num, and set_traceframe_context. Call
4447         trace_reset_local_state instead.
4448         (tfile_close): Call trace_reset_local_state.
4449         * ctf.c (ctf_close): Likewise.
4450         * remote.c (remote_close): Likewise.
4451         * tracepoint.h (trace_reset_local_state): Declare.
4452
4453 2013-06-06  Doug Evans  <[email protected]>
4454
4455         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4456         and fix header docs.
4457
4458 2013-06-05  Doug Evans  <[email protected]>
4459             Keith Seitz  <[email protected]>
4460
4461         PR 15519
4462         * cp-namespace.c (find_symbol_in_baseclass): Call
4463         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4464         Check result of call to lookup_symbol_static.
4465         Call lookup_static_symbol_aux unconditionally.
4466         Call check_typedef on base types before accessing them.
4467         (cp_lookup_nested_symbol): Fix comment.
4468
4469 2013-06-05  Luis Machado  <[email protected]>
4470
4471         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4472         minimal symbols pointing to function descriptors.
4473
4474 2013-06-05  Tom Tromey  <[email protected]>
4475
4476         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4477
4478 2013-06-04  Sergio Durigan Junior  <[email protected]>
4479             Pedro Alves  <[email protected]>
4480
4481         * remote.c (remote_wait_as): Restore signal handler before returning
4482         when GDB gets a notification.
4483
4484 2013-06-04  Gary Benson  <[email protected]>
4485
4486         PR 2328
4487         * breakpoint.h (handle_solib_event): Moved function declaration
4488         to solib.h.
4489         * breakpoint.c (handle_solib_event): Moved function to solib.c.
4490         (bpstat_stop_status): Pass new argument to handle_solib_event.
4491         * solib.h (update_solib_breakpoints): New function declaration.
4492         (handle_solib_event): Moved function declaration from
4493         breakpoint.h.
4494         * solib.c (update_solib_breakpoints): New function.
4495         (handle_solib_event): Moved function from breakpoint.c.
4496         Updated to call solib_ops->handle_event if not NULL.
4497         * solist.h (target_so_ops): New fields "update_breakpoints" and
4498         "handle_event".
4499         * infrun.c (set_stop_on_solib_events): New function.
4500         (_initialize_infrun): Use the above for "set
4501         stop-on-solib-events".
4502         (handle_inferior_event): Pass new argument to handle_solib_event.
4503         * solib-svr4.c (probe.h): New include.
4504         (svr4_free_library_list): New forward declaration.
4505         (probe_action): New enum.
4506         (probe_info): New struct.
4507         (probe_info): New static variable.
4508         (NUM_PROBES): New definition.
4509         (svr4_info): New fields "using_xfer", "probes_table" and
4510         "solib_list".
4511         (free_probes_table): New function.
4512         (free_solib_list): New function.
4513         (svr4_pspace_data_cleanup): Free probes table and solib list.
4514         (svr4_copy_library_list): New function.
4515         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4516         (svr4_read_so_list): New parameter "prev_lm".
4517         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4518         (svr4_current_sos): New function.
4519         (probe_and_action): New struct.
4520         (hash_probe_and_action): New function.
4521         (equal_probe_and_action): Likewise.
4522         (register_solib_event_probe): Likewise.
4523         (solib_event_probe_at): Likewise.
4524         (solib_event_probe_action): Likewise.
4525         (solist_update_full): Likewise.
4526         (solist_update_incremental): Likewise.
4527         (disable_probes_interface_cleanup): Likewise.
4528         (svr4_handle_solib_event): Likewise.
4529         (svr4_update_solib_event_breakpoint): Likewise.
4530         (svr4_update_solib_event_breakpoints): Likewise.
4531         (svr4_create_solib_event_breakpoints): Likewise.
4532         (enable_break): Free probes table before creating breakpoints.
4533         Use svr4_create_solib_event_breakpoints to create breakpoints.
4534         (svr4_solib_create_inferior_hook): Free the solib list.
4535         (_initialize_svr4_solib): Initialise
4536         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4537
4538 2013-06-04  Gary Benson  <[email protected]>
4539
4540         * target.h (target_ops): New field
4541         "to_augmented_libraries_svr4_read".
4542         (target_augmented_libraries_svr4_read): New macro.
4543         * target.c (update_current_target): Handle
4544         to_augmented_libraries_svr4_read.
4545         * remote.c (remote_state): New field
4546         "augmented_libraries_svr4_read".
4547         (remote_augmented_libraries_svr4_read_feature): New function.
4548         (remote_protocol_features): Add entry for
4549         "augmented-libraries-svr4-read".
4550         (remote_augmented_libraries_svr4_read): New function.
4551         (init_remote_ops): Initialize
4552         remote_ops.to_augmented_libraries_svr4_read.
4553
4554 2013-06-04  Gary Benson  <[email protected]>
4555
4556         * NEWS: Update.
4557
4558 2013-06-04  Gary Benson  <[email protected]>
4559
4560         * objfiles.h (inhibit_section_map_updates): New function
4561         declaration.
4562         (resume_section_map_updates): Likewise.
4563         (resume_section_map_updates_cleanup): Likewise.
4564         * objfiles.c (objfile_pspace_info): Removed field
4565         "objfiles_changed_p".  New fields "new_objfiles_available",
4566         "section_map_dirty" and "inhibit_updates".
4567         (allocate_objfile): Set new_objfiles_available.
4568         (free_objfile): Set section_map_dirty.
4569         (objfile_relocate1): Likewise.
4570         (in_plt_section): Likewise.
4571         (find_pc_section): Update the conditions under which the
4572         section map will be updated.
4573         (inhibit_section_map_updates): New function.
4574         (resume_section_map_updates): Likewise.
4575         (resume_section_map_updates_cleanup): Likewise.
4576
4577 2013-06-04  Gary Benson  <[email protected]>
4578
4579         * probe.h (get_probe_argument_count): New declaration.
4580         (evaluate_probe_argument): Likewise.
4581         * probe.c (get_probe_argument_count): New function.
4582         (evaluate_probe_argument): Likewise.
4583         (probe_safe_evaluate_at_pc): Use the above new functions.
4584
4585 2013-06-04  Alan Modra  <[email protected]>
4586
4587         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4588         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4589         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
4590         target mem reads on optional insns.
4591         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4592         ppc_insns_match_pattern calls.
4593         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4594         Add match for power7 thread safety insns, and new order of
4595         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
4596         invocation in comment, and update rest of comment.
4597         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4598         PPC64_STANDARD_LINKAGE3_LEN): Delete.
4599         (ppc64_standard_linkage2_target): Update insn offsets.
4600         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
4601         stubs first.  Update calls.
4602
4603 2013-06-04  Yao Qi  <[email protected]>
4604
4605         * solib.c (solib_find): Don't need dir separator if path has
4606         drive spec.
4607
4608 2013-06-03  Joel Brobecker  <[email protected]>
4609
4610         Revert (indirectly causes a SIGSEGV):
4611         * machoread.c (macho_symfile_read): Assign first cleanup to
4612         'back_to'.
4613
4614 2013-06-03  Yao Qi  <[email protected]>
4615
4616         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4617         mi-parse.c.  Make them static.
4618         (mi_all_values): Likewise.
4619         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
4620         mi_parse_print_values.  Make it external.
4621         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4622         Remove the declarations.
4623         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4624         * mi/mi-parse.h (mi_parse_print_values): Declare.
4625         * mi/mi-cmd-stack.c: Include mi-parse.h.
4626         (parse_print_values): Remove
4627         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4628         of parse_print_values.
4629         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4630
4631 2013-05-31  Pedro Alves  <[email protected]>
4632             Yao Qi  <[email protected]>
4633
4634         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4635         (encode_actions): Move code to ...
4636         (all_tracepoint_actions_and_cleanup): ... here.  New.
4637         (trace_dump_command): Likewise.
4638
4639 2013-05-30  Tom Tromey  <[email protected]>
4640
4641         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4642
4643 2013-05-30  Tom Tromey  <[email protected]>
4644
4645         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4646         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
4647         'old_chain' argument.  Add 'parser_result' argument.
4648         (gdb_xml_create_parser_and_cleanup): Remove old version.
4649         (gdb_xml_parse_quick): Update.
4650         (xml_process_xincludes): Update.
4651         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4652         declare.
4653
4654 2013-05-30  Tom Tromey  <[email protected]>
4655
4656         * probe.c (collect_probes): Check arguments for NULL before
4657         calling compile_rx_or_error.
4658         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4659         Remove NULL return.
4660
4661 2013-05-30  Tom Tromey  <[email protected]>
4662
4663         * infrun.c (adjust_pc_after_break): Introduce an outer null
4664         cleanup.
4665
4666 2013-05-30  Tom Tromey  <[email protected]>
4667
4668         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4669
4670 2013-05-30  Tom Tromey  <[email protected]>
4671
4672         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4673         for 'old_chain'.  Do not check 'head' before processing
4674         cleanups.
4675
4676 2013-05-30  Tom Tromey  <[email protected]>
4677
4678         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4679         "cleanup_tuple".
4680
4681 2013-05-30  Tom Tromey  <[email protected]>
4682
4683         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4684         inner scope.  Unconditionally call do_cleanups.
4685
4686 2013-05-30  Tom Tromey  <[email protected]>
4687
4688         * source.c (find_and_open_source): Call do_cleanups.
4689
4690 2013-05-30  Tom Tromey  <[email protected]>
4691
4692         * linux-thread-db.c (thread_db_load_search): Unconditionally
4693         call do_cleanups.
4694
4695 2013-05-30  Tom Tromey  <[email protected]>
4696
4697         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4698         for 'cleanup'; instead use a later one.
4699
4700 2013-05-30  Tom Tromey  <[email protected]>
4701
4702         * python/py-breakpoint.c (bppy_get_commands): Use
4703         explicit, unconditional return.
4704         * python/py-frame.c (frapy_read_var): Likewise.
4705         * python/python.c (gdbpy_decode_line): Likewise.
4706
4707 2013-05-30  Tom Tromey  <[email protected]>
4708
4709         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4710         do_cleanups on all return paths.
4711
4712 2013-05-30  Tom Tromey  <[email protected]>
4713
4714         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4715
4716 2013-05-30  Tom Tromey  <[email protected]>
4717
4718         * stabsread.c (read_struct_type): Call do_cleanups along
4719         all return paths.
4720
4721 2013-05-30  Maciej W. Rozycki  <[email protected]>
4722
4723         * mips-linux-tdep.c: Adjust formatting throughout.
4724
4725 2013-05-30  Tom Tromey  <[email protected]>
4726
4727         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4728         along all return paths.
4729
4730 2013-05-30  Tom Tromey  <[email protected]>
4731
4732         * symfile.c (find_separate_debug_file): Call do_cleanups
4733         along all return paths.
4734
4735 2013-05-30  Tom Tromey  <[email protected]>
4736
4737         * symtab.c (search_symbols): Introduce a null cleanup for
4738         'retval_chain'.
4739
4740 2013-05-30  Tom Tromey  <[email protected]>
4741
4742         * python/py-value.c (valpy_binop): Call do_cleanups before
4743         exiting loop.
4744
4745 2013-05-30  Tom Tromey  <[email protected]>
4746
4747         * python/py-prettyprint.c (print_children): Remove extra
4748         do_cleanups call.
4749
4750 2013-05-30  Tom Tromey  <[email protected]>
4751
4752         * python/py-frame.c (frapy_read_var): Call do_cleanups along
4753         all return paths.
4754
4755 2013-05-30  Tom Tromey  <[email protected]>
4756
4757         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4758         along all return paths.
4759
4760 2013-05-30  Tom Tromey  <[email protected]>
4761
4762         * cli/cli-logging.c (set_logging_redirect): Unconditionally
4763         call do_cleanups.
4764
4765 2013-05-30  Tom Tromey  <[email protected]>
4766
4767         * varobj.c (c_value_of_root): Call do_cleanups along all
4768         return paths.
4769
4770 2013-05-30  Tom Tromey  <[email protected]>
4771
4772         * tracepoint.c (trace_dump_command): Unconditionally call
4773         do_cleanups.
4774
4775 2013-05-30  Tom Tromey  <[email protected]>
4776
4777         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4778         do_cleanups earlier.
4779
4780 2013-05-30  Tom Tromey  <[email protected]>
4781
4782         * machoread.c (macho_symfile_read): Assign first cleanup to
4783         'back_to'.
4784
4785 2013-05-30  Tom Tromey  <[email protected]>
4786
4787         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4788
4789 2013-05-30  Tom Tromey  <[email protected]>
4790
4791         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4792
4793 2013-05-30  Tom Tromey  <[email protected]>
4794
4795         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4796         call discard_cleanups.
4797         (inf_ptrace_attach): Likewise.
4798
4799 2013-05-30  Tom Tromey  <[email protected]>
4800
4801         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4802         return paths.
4803         (mips_initialize): Likewise.
4804         (common_open): Call do_cleanups.
4805
4806 2013-05-30  Tom Tromey  <[email protected]>
4807
4808         * utils.c (internal_vproblem): Call do_cleanups.
4809
4810 2013-05-30  Tom Tromey  <[email protected]>
4811
4812         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4813
4814 2013-05-30  Tom Tromey  <[email protected]>
4815
4816         * cli/cli-script.c (setup_user_args): Don't return after error.
4817
4818 2013-05-30  Tom Tromey  <[email protected]>
4819
4820         * somread.c (som_symtab_read): Call do_cleanups.
4821
4822 2013-05-30  Tom Tromey  <[email protected]>
4823
4824         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4825
4826 2013-05-30  Tom Tromey  <[email protected]>
4827
4828         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4829         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4830         * interps.c (interpreter_exec_cmd): Call do_cleanups.
4831         * source.c (show_substitute_path_command): Call do_cleanups.
4832         (unset_substitute_path_command, set_substitute_path_command):
4833         Likewise.
4834         * symfile.c (load_command): Call do_cleanups.
4835
4836 2013-05-30  Tom Tromey  <[email protected]>
4837
4838         * contrib/cleanup_check.py: New file.
4839         * contrib/gcc-with-excheck: Add option parsing.
4840
4841 2013-05-30  Joel Brobecker  <[email protected]>
4842
4843         * windows-nat.c (windows_delete_thread): Add missing space
4844         in cast expression.
4845
4846 2013-05-30  Hafiz Abid Qadeer  <[email protected]>
4847
4848         * inferior.c (top level): Include tilde.h.
4849         (add_inferior_command): Call tilde_expand on the value of 'exec'
4850         argument.
4851
4852 2013-05-30  Pedro Alves  <[email protected]>
4853             Yao Qi  <[email protected]>
4854
4855         * tracepoint.c (encode_actions_1): Remove parameter 't'.
4856         Caller update.
4857         (encode_actions): Likewise.
4858         * remote.c (remote_download_tracepoint): Caller update.
4859         * tracepoint.h (encode_actions): Update declaration.
4860
4861 2013-05-30  Pedro Alves  <[email protected]>
4862
4863         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4864         pointer.
4865
4866 2013-05-30  Yao Qi  <[email protected]>
4867
4868         * remote.c (remote_check_symbols): Remove unused parameter
4869         'objfile'.
4870         Declaration update.
4871         (remote_start_remote, remote_new_objfile): Caller update.
4872
4873 2013-05-30  Yao Qi  <[email protected]>
4874
4875         * mi/mi-cmds.c (mi_cmds): Define MI command
4876         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4877         DEF_MI_CMD_CLI.
4878
4879 2013-05-29  Pedro Alves  <[email protected]>
4880
4881         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4882         (remote_insert_watchpoint, remote_remove_watchpoint)
4883         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4884         (remote_verify_memory, compare_sections_command)
4885         (remote_search_memory): Set the general process/thread on the
4886         remote side.
4887
4888 2013-05-29  Pedro Alves  <[email protected]>
4889
4890         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4891         (_initialize_aarch64_tdep): Don't call
4892         initialize_tdesc_aarch64_without_fpu.
4893         * features/Makefile (WHICH): Remove reference to
4894         aarch64-without-fpu.
4895         * features/aarch64-without-fpu.c: Delete file.
4896         * regformats/aarch64-without-fpu.dat: Delete file.
4897
4898 2013-05-28  Yao Qi  <[email protected]>
4899
4900         * tracepoint.c (stringify_collection_list): Remove parameter
4901         'string'.
4902         (encode_actions): Caller update.  Remove local variables.
4903
4904 2013-05-24  Yao Qi  <[email protected]>
4905
4906         * tracepoint.c (TFILE_PID): Remove.
4907         (tfile_open): Don't add thread and inferior.
4908         (tfile_close): Don't set 'inferior_ptid'.  Don't call
4909         exit_inferior_silent.
4910         (tfile_thread_alive): Remove.
4911         (init_tfile_ops): Don't set field 'to_thread_alive' of
4912         tfile_ops.
4913
4914 2013-05-23  Doug Evans  <[email protected]>
4915
4916         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4917
4918 2013-05-23  Pedro Alves  <[email protected]>
4919
4920         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4921         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4922         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4923         Only define if HAVE_SOCKETS is defined.
4924         * configure.ac: Check for sys/socket.h.
4925         * config.in, configure: Regenerate.
4926
4927 2013-05-23  Pedro Alves  <[email protected]>
4928
4929         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4930         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4931         printing uint32_t variables.
4932
4933 2013-05-23  Pedro Alves  <[email protected]>
4934
4935         * NEWS: Mention GDBserver range stepping support.
4936
4937 2013-05-23  Yao Qi  <[email protected]>
4938             Pedro Alves  <[email protected]>
4939
4940         * gdbthread.h (struct thread_control_state) <may_range_step>: New
4941         field.
4942         * infcmd.c (step_once, until_next_command): Enable range stepping.
4943         * infrun.c (displaced_step_prepare): Disable range stepping.
4944         (resume): Disable range stepping if stepping over a breakpoint or
4945         we have software watchpoints.  If range stepping is enabled,
4946         assert the thread is in the stepping range.
4947         (clear_proceed_status_thread): Clear may_range_step.
4948         (handle_inferior_event): Disable range stepping as soon as we know
4949         the thread that hit the event.  Re-enable it whenever we're going
4950         to step with a step range.
4951         * remote.c (struct vCont_action_support) <r>: New field.
4952         (use_range_stepping): New global.
4953         (remote_vcont_probe): Handle 'r' action.
4954         (append_resumption): Append an 'r' action if the thread may range
4955         step.
4956         (show_range_stepping): New function.
4957         (set_range_stepping): New function.
4958         (_initialize_remote): Call add_setshow_boolean_cmd to register the
4959         'set range-stepping' and 'show range-stepping' commands.
4960         * NEWS: Mention range stepping, the new vCont;r action, and the
4961         new "set/show range-stepping" commands.
4962
4963 2013-05-23  Yao Qi  <[email protected]>
4964             Pedro Alves  <[email protected]>
4965
4966         * remote.c (struct vCont_action_support): New struct.
4967         (struct remote_state) <support_vCont_t>: Remove field.
4968         <vCont_actions_support>: New field.
4969         (remote_vcont_probe, remote_stop_ns): Update.
4970
4971 2013-05-23  Yao Qi  <[email protected]>
4972             Pedro Alves  <[email protected]>
4973
4974         * gdbthread.h (pc_in_thread_step_range): New declaration.
4975         * thread.c (pc_in_thread_step_range): New function.
4976         * infrun.c (handle_inferior_event): Use it.
4977
4978 2013-05-23  Joel Brobecker  <[email protected]>
4979
4980         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4981         of sprintf.
4982
4983 2013-05-22  Keith Seitz  <[email protected]>
4984
4985         * ada-lang.c (is_known_support_routine): Add explicit free of
4986         'func_name' from find_frame_funname.
4987         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4988         for func_name from find_frame_funname.
4989         * python/py-frame.c (frapy_name): Add explicit free of
4990         'name' from find_frame_funname.
4991         * stack.c (find_frame_funname): Add comment explaining that
4992         funcp must be freed by the caller.
4993         Return copy of symbol names instead of pointers.
4994         (print_frame): Add a cleanup for 'funname' from
4995         find_frame_funname.
4996         * stack.h (find_frame_funname): Remove "const" from
4997         'funname' parameter.
4998
4999 2013-05-22  Tom Tromey  <[email protected]>
5000
5001         PR c++/15401:
5002         * c-valprint.c (c_value_print): Use value_addr for
5003         references.  Convert back to reference type with value_ref.
5004
5005 2013-05-22  Eli Zaretskii  <[email protected]>
5006
5007         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5008         unloaded DLL, it will be done by handle_solib_event.  See
5009         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5010         details.
5011
5012 2013-05-22  Phil Muldoon  <[email protected]>
5013
5014         * ui-out.c: Create typedef ui_out_level_p and define vector
5015         operations for that type.
5016         (struct ui_out): Use a vector instead of an array.
5017         (current_level): Return level from a vector.
5018         (push_level): Create a level in a vector.
5019         (pop_level): Delete a level in a vector.
5020         (ui_out_new): Create initial level zero level, and store in a
5021         vector.
5022         (ui_out_destroy): Add vector cleanup.
5023
5024 2013-05-22  Pedro Alves  <[email protected]>
5025
5026         * python/python-internal.h (gdb_Py_DECREF): Tag with
5027         "ARI: editCase function".
5028
5029 2013-05-21  Paul Pluzhnikov  <[email protected]>
5030
5031         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5032
5033 2013-05-21  Pedro Alves  <[email protected]>
5034
5035         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5036         whether PRINTER is NULL before installing a Py_DECREF cleanup.
5037         * python/py-utils.c (py_decref): Don't check for NULL before
5038         calling Py_DECREF.
5039
5040 2013-05-21  Pedro Alves  <[email protected]>
5041
5042         * python/py-utils.c (py_decref): Remove extra braces.
5043         (gdb_pymodule_addobject): Remove extra braces.
5044         * python-internal.h (gdb_Py_DECREF): New static inline function.
5045         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5046
5047 2013-05-21  Philippe Waroquiers  <[email protected]>
5048
5049         * breakpoints.c (detach_breakpoints): Do not
5050         detach breakpoints locations with loc_type bp_loc_other.
5051
5052 2013-05-21  Jan Kratochvil  <[email protected]>
5053
5054         Workaround Python 2.6.
5055         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5056         a block.
5057
5058 2013-05-21  Jan Kratochvil  <[email protected]>
5059
5060         Code cleanup: constification.
5061         * solib.c (solib_ops): Make return type and ops variable type const.
5062         (set_solib_ops): Make the new_ops parameter and ops variable const.
5063         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5064         (solib_add, solib_keep_data_in_core, clear_solib)
5065         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5066         (reload_shared_libraries, solib_global_lookup): Make the ops variable
5067         const.
5068         * solib.h (set_solib_ops): Make the new_ops parameter const.
5069
5070 2013-05-21  Joel Brobecker  <[email protected]>
5071
5072         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5073         variable.
5074         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5075         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5076         (SYSTEM_GDBINIT_FILES): New variables.
5077         (all): Add stamp-system-gdbinit.
5078         (stamp-system-gdbinit): New rule.
5079         (clean-system-gdbinit, install-system-gdbinit)
5080         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
5081         (install-only): Add dependency on install-system-gdbinit.
5082         (uninstall): Add dependency on uninstall-system-gdbinit.
5083         (clean): Add dependency on clean-system-gdbinit.
5084         * system-gdbinit/elinos.py: New file.
5085         * system-gdbinit/wrs-linux.py: New file.
5086
5087 2013-05-21  Joel Brobecker  <[email protected]>
5088
5089         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5090
5091 2013-05-21  Hui Zhu  <[email protected]>
5092
5093         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5094         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5095         * mi/mi-cmd-break.c (ctype.h): New include.
5096         (gdb_obstack.h): New include.
5097         (mi_argv_to_format, mi_cmd_break_insert_1): New.
5098         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5099         (mi_cmd_dprintf_insert): New.
5100         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5101         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5102
5103 2013-05-20  Tom Tromey  <[email protected]>
5104
5105         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5106
5107 2013-05-20  Tom Tromey  <[email protected]>
5108
5109         * python/py-value.c (valpy_get_dynamic_type): Simplify
5110         dynamic_type assignment.  Use Py_XINCREF.
5111
5112 2013-05-20  Tom Tromey  <[email protected]>
5113
5114         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5115
5116 2013-05-20  Tom Tromey  <[email protected]>
5117
5118         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5119         (gdbpy_selected_frame): Move object-construction code
5120         out of TRY_CATCH.
5121
5122 2013-05-20  Tom Tromey  <[email protected]>
5123
5124         * python/py-arch.c (gdbpy_initialize_arch): Use
5125         gdb_pymodule_addobject.
5126         * python/py-block.c (gdbpy_initialize_blocks): Use
5127         gdb_pymodule_addobject.
5128         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5129         gdb_pymodule_addobject.
5130         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5131         gdb_pymodule_addobject.
5132         * python/py-event.c (gdbpy_initialize_event_generic): Use
5133         gdb_pymodule_addobject.
5134         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5135         gdb_pymodule_addobject.
5136         * python/py-evts.c (add_new_registry): Use
5137         gdb_pymodule_addobject.
5138         (gdbpy_initialize_py_events): Likewise.
5139         * python/py-finishbreakpoint.c
5140         (gdbpy_initialize_finishbreakpoints): Use
5141         gdb_pymodule_addobject.
5142         * python/py-frame.c (gdbpy_initialize_frames): Use
5143         gdb_pymodule_addobject.
5144         * python/py-function.c (gdbpy_initialize_functions): Use
5145         gdb_pymodule_addobject.
5146         * python/py-inferior.c (gdbpy_initialize_inferior): Use
5147         gdb_pymodule_addobject.
5148         * python/py-infthread.c (gdbpy_initialize_thread): Use
5149         gdb_pymodule_addobject.
5150         * python/py-objfile.c (gdbpy_initialize_objfile): Use
5151         gdb_pymodule_addobject.
5152         * python/py-param.c (gdbpy_initialize_parameters): Use
5153         gdb_pymodule_addobject.
5154         * python/py-progspace.c (gdbpy_initialize_pspace): Use
5155         gdb_pymodule_addobject.
5156         * python/py-symbol.c (gdbpy_initialize_symbols): Use
5157         gdb_pymodule_addobject.
5158         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5159         gdb_pymodule_addobject.
5160         * python/py-type.c (gdbpy_initialize_types): Use
5161         gdb_pymodule_addobject.
5162         * python/py-utils.c (gdb_pymodule_addobject): New function.
5163         * python/py-value.c (gdbpy_initialize_values): Use
5164         gdb_pymodule_addobject.
5165         * python/python-internal.h (gdb_pymodule_addobject): Declare.
5166         * python/python.c (_initialize_python): Use
5167         gdb_pymodule_addobject.
5168
5169 2013-05-20  Tom Tromey  <[email protected]>
5170
5171         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5172         * python/py-param.c (get_set_value, get_show_value): Use
5173         explicit decrefs.
5174         * python/python.c (start_type_printers, apply_type_printers):
5175         Use explicit decrefs.
5176
5177 2013-05-20  Tom Tromey  <[email protected]>
5178
5179         * python/py-evts.c (gdbpy_initialize_py_events): Don't
5180         incref the module.
5181
5182 2013-05-20  Tom Tromey  <[email protected]>
5183
5184         * python/python.c (gdbpy_run_events): Decref the result
5185         of PyObject_CallObject.
5186
5187 2013-05-20  Tom Tromey  <[email protected]>
5188
5189         * python/py-symtab.c (set_sal): Use
5190         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
5191         (symtab_and_line_to_sal_object): Update.
5192
5193 2013-05-20  Tom Tromey  <[email protected]>
5194
5195         * python/py-param.c (compute_enum_values): Decref 'item'.
5196
5197 2013-05-20  Tom Tromey  <[email protected]>
5198
5199         * mi/mi-main.c: Include python-internal.h.
5200         (mi_cmd_list_features): Check gdb_python_initialized.
5201         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5202         (python_inferior_exit, python_new_objfile, add_thread_object)
5203         (delete_thread_object, py_free_inferior): Check
5204         gdb_python_initialized.
5205         * python/py-prettyprint.c (apply_val_pretty_printer): Check
5206         gdb_python_initialized.
5207         * python/py-type.c (save_objfile_types): Check
5208         gdb_python_initialized.
5209         * python/python-internal.h (gdb_python_initialized): Declare.
5210         * python/python.c (ensure_python_env): Throw exception if
5211         Python not initialized.
5212         (before_prompt_hook, source_python_script_for_objfile)
5213         (start_type_printers, apply_type_printers,
5214         free_type_printers): Check gdb_python_initialized.
5215         * varobj.c (varobj_get_display_hint)
5216         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5217         (install_new_value_visualizer, varobj_set_visualizer)
5218         (value_get_print_value): Check gdb_python_initialized.
5219
5220 2013-05-20  Tom Tromey  <[email protected]>
5221
5222         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5223         Check errors.
5224         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5225         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5226         Check errors.
5227         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5228         Check errors.
5229         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5230         Check errors.
5231         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5232         Check errors.
5233         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5234         init function to return 'int'.
5235         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5236         Return 'int'.  Check errors.
5237         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5238         Check errors.
5239         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5240         Return 'int'.  Check errors.
5241         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5242         Check errors.
5243         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5244         Check errors.
5245         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5246         Check errors.
5247         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5248         Check errors.
5249         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5250         Check errors.
5251         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5252         Check errors.
5253         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5254         Check errors.
5255         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5256         Check errors.
5257         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5258         Check errors.
5259         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5260         Check errors.
5261         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5262         Check errors.
5263         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5264         Check errors.
5265         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5266         Check errors.
5267         * python/python-internal.h (gdbpy_initialize_auto_load,
5268         gdbpy_initialize_values, gdbpy_initialize_frames,
5269         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5270         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5271         gdbpy_initialize_blocks, gdbpy_initialize_types,
5272         gdbpy_initialize_functions, gdbpy_initialize_pspace,
5273         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5274         gdbpy_initialize_finishbreakpoints,
5275         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5276         gdbpy_initialize_thread, gdbpy_initialize_inferior,
5277         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5278         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5279         gdbpy_initialize_signal_event,
5280         gdbpy_initialize_breakpoint_event,
5281         gdbpy_initialize_continue_event,
5282         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5283         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5284         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5285         * python/python.c (gdb_python_initialized): New global.
5286         (gdbpy_initialize_events): Return 'int'.  Check errors.
5287         (_initialize_python): Check errors.  Set
5288         gdb_python_initialized.
5289
5290 2013-05-20  Tom Tromey  <[email protected]>
5291
5292         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5293         Decref the reslut of PyObject_CallMethod.
5294
5295 2013-05-20  Tom Tromey  <[email protected]>
5296
5297         * python/py-event.c (gdbpy_initialize_event_generic): Return
5298         early if PyType_Ready fails.
5299
5300 2013-05-20  Tom Tromey  <[email protected]>
5301
5302         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5303         as 'default' in the switch.
5304
5305 2013-05-20  Tom Tromey  <[email protected]>
5306
5307         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
5308         get_addr_from_python calls out of TRY_CATCH.
5309         (infpy_write_memory, infpy_search_memory): Likewise.
5310         * python/py-utils.c (get_addr_from_python): Return negative
5311         value on error.  Use TRY_CATCH.
5312         * python/python-internal.h (get_addr_from_python): Use
5313         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5314
5315 2013-05-20  Tom Tromey  <[email protected]>
5316
5317         * python/py-event.c (evpy_emit_event): Decref the
5318         result of PyObject_CallFunctionObjArgs.
5319
5320 2013-05-20  Tom Tromey  <[email protected]>
5321
5322         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5323         Correctly decref.
5324
5325 2013-05-20  Tom Tromey  <[email protected]>
5326
5327         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5328
5329 2013-05-20  Tom Tromey  <[email protected]>
5330
5331         * python/py-event.h (gdbpy_initialize_event_generic): Use
5332         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5333         * python/py-evts.c (add_new_registry): Use
5334         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5335         * python/python-internal.h
5336         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5337
5338 2013-05-20  Tom Tromey  <[email protected]>
5339
5340         * python/py-arch.c (archpy_disassemble): Update.
5341         * python/py-type.c (typy_get_composite, typy_lookup_typename)
5342         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5343         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5344         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5345         macro.
5346         (GDB_PY_HANDLE_EXCEPTION): Update.
5347         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
5348
5349 2013-05-20  Tom Tromey  <[email protected]>
5350
5351         * python/python-internal.h (events_object_type): Remove.
5352
5353 2013-05-20  Tom Tromey  <[email protected]>
5354
5355         * python/py-event.h (evpy_emit_event): Use
5356         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5357         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5358         New macro.
5359
5360 2013-05-20  Tom Tromey  <[email protected]>
5361
5362         * py-evtregistry.c (create_event_object): Decref
5363         eventregistry_object if PyList_New fails.
5364
5365 2013-05-20  Tom Tromey  <[email protected]>
5366
5367         * py-cmd.c (gdbpy_string_to_argv): Check result of
5368         PyList_New.
5369
5370 2013-05-20  Tom Tromey  <[email protected]>
5371
5372         * python/python.c (before_prompt_hook): Add cleanup to
5373         decref 'hook'.
5374
5375 2013-05-20  Tom Tromey  <[email protected]>
5376
5377         * python/py-function.c (fnpy_init): Decref result of
5378         PyObject_GetAttrString.
5379
5380 2013-05-20  Tom Tromey  <[email protected]>
5381
5382         * python/py-threadevent.c (get_event_thread): Use
5383         CPYCHECKER_RETURNS_BORROWED_REF.
5384         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5385         New define.
5386         (pspace_to_pspace_object, objfile_to_objfile_object)
5387         (find_thread_object): Use it.
5388
5389 2013-05-20  Tom Tromey  <[email protected]>
5390
5391         * python/py-arch.c (arch_object_type): Use
5392         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5393         * python/py-block.c (block_syms_iterator_object_type):
5394         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5395         * python/py-bpevent.c (breakpoint_event_object_type):
5396         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5397         * python/py-cmd.c (cmdpy_object_type): Use
5398         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5399         * python/py-continueevent.c (continue_event_object_type):
5400         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5401         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5402         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5403         * python/py-events.h (thread_event_object_type):
5404         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5405         * python/py-evtregistry.c (eventregistry_object_type): Use
5406         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5407         * python/py-exitedevent.c (exited_event_object_type):
5408         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5409         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5410         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5411         * python/py-function.c (fnpy_object_type): Use
5412         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5413         * python/py-inferior.c (inferior_object_type, membuf_object_type):
5414         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5415         * python/py-infthread.c (thread_object_type): Use
5416         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5417         * python/py-lazy-string.c (lazy_string_object_type):
5418         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5419         * python/py-newobjfileevent.c (new_objfile_event_object_type):
5420         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5421         * python/py-objfile.c (objfile_object_type): Use
5422         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5423         * python/py-param.c (parmpy_object_type):
5424         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5425         * python/py-progspace.c (pspace_object_type):
5426         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5427         * python/py-signalevent.c (signal_event_object_type):
5428         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5429         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5430         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5431         * python/py-type.c (type_object_type, field_object_type)
5432         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5433         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5434         define.
5435         (value_object_type, block_object_type, symbol_object_type)
5436         (event_object_type, stop_event_object_type, breakpoint_object_type)
5437         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5438
5439 2013-05-20  Andreas Tobler  <[email protected]>
5440
5441         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5442         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5443
5444 2013-05-20  Doug Evans  <[email protected]>
5445
5446         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
5447         For Fission.
5448         * dwarf2read.c (struct dwarf2_per_cu_data): New member
5449         reading_dwo_directly.
5450         (struct signatured_type): New member dwo_unit.
5451         (struct die_reader_specs): New member comp_dir.
5452         (create_signatured_type_table_from_index): Use malloc for
5453         all_type_units instead of objfile's obstack.
5454         (create_all_type_units): Ditto.
5455         (fill_in_sig_entry_from_dwo_entry): New function.
5456         (add_type_unit): New function.
5457         (lookup_dwo_signatured_type): New function.
5458         (lookup_dwp_signatured_type): New function.
5459         (lookup_signatured_type): New arg cu.  All callers updated.
5460         (init_cu_die_reader): Initialize comp_dir.
5461         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
5462         Change assert of matching type signatures to call error on mismatch.
5463         (lookup_dwo_unit): Add assert.
5464         (init_tu_and_read_dwo_dies): New function.
5465         (init_cutu_and_read_dies): Call it.
5466         (build_type_unit_groups): Handle case of no type unit groups created.
5467         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5468         (lookup_dwo_cutu): Tweak complaint.
5469         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5470         (dwarf2_per_objfile_free): Free all_type_units.
5471
5472 2013-05-20  Joel Brobecker  <[email protected]>
5473
5474         * windows-nat.c (handle_unload_dll): Add missing empty line.
5475
5476 2013-05-20  Joel Brobecker  <[email protected]>
5477
5478         * dwarf2read.c (prototyped_function_p): New function.
5479         (read_subroutine_type): Use it.
5480
5481 2013-05-20  Joel Brobecker  <[email protected]>
5482
5483         * rs6000-aix-tdep.c: De-indent some example code provided
5484         as a comment.
5485
5486 2013-05-17  Edjunior Machado  <[email protected]>
5487
5488         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5489         region is ok for a hardware watchpoint using the new ptrace interface
5490         on Power servers.
5491
5492 2013-05-17  Doug Evans  <[email protected]>
5493
5494         * NEWS: Mention new maintenance commands check-symtabs, and
5495         expand-symtabs, and renamed check-psymtabs.
5496         * psymtab.c (maintenance_check_psymtabs): Renamed from
5497         maintenance_check_symtabs.  Only process already-expanded symbol
5498         tables.
5499         (_initialize_psymtab): Update.
5500         * symmisc.c (maintenance_check_symtabs): New function.
5501         (maintenance_expand_name_matcher): New function
5502         (maintenance_expand_file_matcher): New function
5503         (maintenance_expand_symtabs): New function.
5504         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5505         commands.
5506
5507 2013-05-17  Tom Tromey  <[email protected]>
5508
5509         * python/py-inferior.c (infpy_read_memory): Don't call
5510         PyErr_SetString if PyObject_New fails.
5511         * python/py-frame.c (frame_info_to_frame_object): Don't call
5512         PyErr_SetString if PyObject_New fails.
5513
5514 2013-05-17  Pavel Chupin  <[email protected]>
5515
5516         * acinclude.m4: Add check for dlopen in libdl.
5517         * configure.ac: Ditto.
5518         * configure: Regenerate.
5519
5520 2013-05-17  Phil Muldoon  <[email protected]>
5521
5522         * frame.c (frame_stash): Convert to htab.
5523         (frame_addr_hash): New function.
5524         (frame_addr_hash_eq): New function.
5525         (frame_stash_create): Convert function to create
5526         a hash table.
5527         (frame_stash_add): Convert function to add an entry to a hash
5528         table.
5529         (frame_stash_find): Convert function to search the hash table.
5530         (frame_stash_invalidate): Convert function to empty the hash
5531         table.
5532         (get_frame_id): Only add to stash if a frame_id is created.
5533         (_initialize_frame): Call frame_stash_create.
5534
5535 2013-05-16  Yue Lu  <[email protected]>  (tiny change)
5536
5537         * configure.ac: Ensure MIG is available when building for GNU Hurd
5538         hosts.
5539         * configure: Regenerate.
5540
5541 2013-05-16  Joel Brobecker  <[email protected]>
5542
5543         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5544
5545 2013-05-16  Joel Brobecker  <[email protected]>
5546
5547         * ada-lang.c (ada_make_symbol_completion_list): Make sure
5548         all cleanups are done before returning from this function.
5549
5550 2013-05-15  Joel Brobecker  <[email protected]>
5551
5552         * utils.h: #include "exceptions.h".
5553         (enum errors): Remove partial declaration.
5554
5555 2013-05-15  Joel Brobecker  <[email protected]>
5556
5557         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5558         * gdbarch.h, gdbarch.c: Regenerate.
5559         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5560         handling.
5561
5562         * rs6000-aix-tdep.h: New file.
5563         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5564         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5565         "xml-utils.h".
5566         (struct field_info, struct ld_info_desc): New types.
5567         (ld_info32_desc, ld_info64_desc): New static constants.
5568         (struct ld_info): New type.
5569         (rs6000_aix_extract_ld_info): New function.
5570         (rs6000_aix_shared_library_to_xml): Likewise.
5571         (rs6000_aix_ld_info_to_xml): Likewise.
5572         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5573         (rs6000_aix_init_osabi): Add call to
5574         set_gdbarch_core_xfer_shared_libraries_aix.
5575         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5576         Remove "xml-utils.h" include.
5577         (LdInfo): Delete typedef.
5578         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5579         Delete macros.
5580         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5581         Adjust code accordingly.
5582         (rs6000_core_ldinfo): Delete, folded into
5583         rs6000_aix_core_xfer_shared_libraries_aix.
5584         (rs6000_xfer_shared_library): Delete.
5585         (rs6000_xfer_shared_libraries): Reimplement.
5586
5587 2013-05-15  Markus Metzger  <[email protected]>
5588
5589         * record.c (record_goto_cmdlist): New.
5590         (cmd_record_goto): Split into this ...
5591         (cmd_record_goto_begin): ... this
5592         (cmd_record_goto_end): ... and this.
5593         (_initialize_record): Change "record goto" to prefix command.
5594         Add commands for "record goto begin" and "record goto end".
5595         Add an alias for "record goto start" to "record goto begin".
5596
5597 2013-05-14  Jan Kratochvil  <[email protected]>
5598
5599         * linespec.c (convert_linespec_to_sals): New comment for
5600         SOURCE_FILENAME assignment.
5601
5602 2013-05-14  Jan Kratochvil  <[email protected]>
5603
5604         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5605         internal_warning.
5606
5607 2013-05-14  Tom Tromey  <[email protected]>
5608
5609         * eval.c (parse_and_eval_long): Make 'exp' const.
5610         * value.h (parse_and_eval_long): Update.
5611
5612 2013-05-14  Tom Tromey  <[email protected]>
5613
5614         * ui-file.c (gdb_fopen): Make arguments const.
5615         * ui-file.h (gdb_fopen): Make arguments const.
5616
5617 2013-05-14  Tom Tromey  <[email protected]>
5618
5619         * remote.c (remote_set_trace_notes): Make arguments const.
5620         * target.c (update_current_target): Update cast.
5621         * target.h (to_set_trace_notes): Make arguments const.
5622
5623 2013-05-14  Tom Tromey  <[email protected]>
5624
5625         * go32-nat.c (go32_terminal_info): Make 'args' const.
5626         * inferior.h (child_terminal_info): Update.
5627         * inflow.c (child_terminal_info): Make 'args' const.
5628         * target.c (default_terminal_info): Make 'args' const.
5629         (debug_to_terminal_save_ours): Likewise.
5630         * target.h (struct target_ops) <to_terminal_info>: Make argument
5631         const.
5632
5633 2013-05-13  Tom Tromey  <[email protected]>
5634
5635         * gcore.c (create_gcore_bfd): Make 'filename' const.
5636         * gcore.h (create_gcore_bfd): Make 'filename' const.
5637         * record-full.c (record_full_save): Make 'recfilename' const.
5638         * target.c (target_save_record): Make 'filename' const.
5639         * target.h (struct target_ops) <to_save_record>: Make 'filename'
5640         const.
5641         (target_save_record): Likewise.
5642
5643 2013-05-13  Tom Tromey  <[email protected]>
5644
5645         PR gdb/15338:
5646         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5647         ranges section has been read.
5648
5649 2013-05-13  Tom Tromey  <[email protected]>
5650
5651         PR exp/15364:
5652         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5653         STRUCTOP_PTR>: Return a not_lval value for
5654         EVAL_AVOID_SIDE_EFFECTS.
5655         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5656         for EVAL_AVOID_SIDE_EFFECTS.
5657
5658 2013-05-13  Joel Brobecker  <[email protected]>
5659
5660         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5661         floating point registers to register type before storing
5662         value.
5663         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5664         Likewise.
5665
5666 2013-05-10  Joel Brobecker  <[email protected]>
5667             Tom Tromey  <[email protected]>
5668
5669         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5670         New functions.
5671         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5672         Declare.
5673         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5674         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5675         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5676         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5677
5678 2013-05-10  Freddie Chopin  <[email protected]>
5679             Tom Tromey  <[email protected]>
5680
5681         PR build/15414:
5682         * configure: Rebuild.
5683         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5684         with -Wno-format.
5685
5686 2013-05-10  Pedro Alves  <[email protected]>
5687
5688         * remote.c (_initialize_remote): Fix spelling of
5689         qXfer:traceframe-info:read packet in packet config command.
5690
5691 2013-05-10  David Taylor  <[email protected]>
5692
5693         PR remote/15455
5694
5695         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5696         "QTro" at start of packet.
5697
5698 2013-05-10  Joel Brobecker  <[email protected]>
5699
5700         * solib-aix.c (solib_aix_relocate_section_addresses):
5701         For the .bss section action, apply the same offset as
5702         the .data section.
5703
5704 2013-05-10  Joel Brobecker  <[email protected]>
5705
5706         * solib-aix.c (solib_aix_relocate_section_addresses):
5707         Remove FIXME comment.
5708
5709 2013-05-10  Joel Brobecker  <[email protected]>
5710
5711         PR tdep/15420:
5712         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5713         New functions, directly copied from sparc-sol-thread.c.
5714         * sparc-sol-thread.c: Delete.
5715         * configure.ac: Remove code handling sparc-solaris-thread.c.
5716         * configure: Regenerate.
5717
5718 2013-05-10  Phil Muldoon  <[email protected]>
5719
5720         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5721         filter logic.
5722         (backtrace_command): Add "no-filters" option parsing.
5723         (_initialize_stack): Alter help to reflect "no-filters" option.
5724         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5725         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5726         (py-frame.o): Add target
5727         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5728         filter files.
5729         * python/python.h: Add new frame filter constants, and flag enum.
5730         (apply_frame_filter): Add definition.
5731         * python/python.c (apply_frame_filter): New non-Python
5732         enabled function.
5733         * python/py-utils.c (py_xdecref): New function.
5734         (make_cleanup_py_xdecref): Ditto.
5735         * python/py-objfile.c: Declare frame_filters dictionary.
5736         (objfpy_dealloc): Add frame_filters dealloc.
5737         (objfpy_new): Initialize frame_filters attribute.
5738         (objfile_to_objfile_object): Ditto.
5739         (objfpy_get_frame_filters): New function.
5740         (objfpy_set_frame_filters): New function.
5741         * python/py-progspace.c: Declare frame_filters dictionary.
5742         (pspy_dealloc): Add frame_filters dealloc.
5743         (pspy_new): Initialize frame_filters attribute.
5744         (pspacee_to_pspace_object): Ditto.
5745         (pspy_get_frame_filters): New function.
5746         (pspy_set_frame_filters): New function.
5747         * python/py-framefilter.c: New file.
5748         * python/lib/gdb/command/frame_filters.py: New file.
5749         * python/lib/gdb/frames.py: New file.
5750         * python/lib/gdb/__init__.py: Initialize global frame_filters
5751         dictionary
5752         * python/lib/gdb/FrameDecorator.py: New file.
5753         * python/lib/gdb/FrameIterator.py: New file.
5754         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5755         * mi/mi-cmds.h: Declare.
5756         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5757         --no-frame-filter logic, and Python frame filter logic.
5758         (stack_enable_frame_filters): New function.
5759         (parse_no_frame_option): Ditto.
5760         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5761         filter logic.
5762         (mi_cmd_stack_list_locals): Ditto.
5763         (mi_cmd_stack_list_args): Ditto.
5764         (mi_cmd_stack_list_variables): Ditto.
5765         * NEWS: Add frame filter note.
5766
5767 2013-05-09  Doug Evans  <[email protected]>
5768
5769         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5770         All callers updated.
5771         (syms_from_objfile): Ditto.  Make static.
5772         (symbol_file_add_with_addrs): Renamed from
5773         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
5774         num_offsets.  All callers updated.
5775         * symfile.h (syms_from_objfile): Delete.
5776
5777         * symfile.c (decrement_reading_symtab): Add assert.
5778         (increment_reading_symtab): Ditto.
5779
5780 2013-05-09  Joel Brobecker  <[email protected]>
5781
5782         * source.c (forward_search_command): Replace call to getc
5783         by call to fgetc.
5784         (reverse_search_command): Likewise.
5785
5786 2013-05-08  Doug Evans  <[email protected]>
5787
5788         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5789         matching test.
5790
5791 2013-05-08  Joel Brobecker  <[email protected]>
5792
5793         * sol-thread.c (info_cb): Factorize the code a little.
5794
5795 2013-05-08  Joel Brobecker  <[email protected]>
5796
5797         * sol-thread.c (info_cb): Rework the output of the "maintenance
5798         info sol-threads" command a bit.
5799
5800 2013-05-08  Joel Brobecker  <[email protected]>
5801
5802         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5803         Replace ti.ti_startfunc by ti.ti_pc.
5804
5805 2013-05-08  Joel Brobecker  <[email protected]>
5806
5807         * solib-aix.c (solib_aix_free_library_list): New function
5808         for the case where HAVE_LIBEXPAT is not defined.
5809
5810 2013-05-07  Sergio Durigan Junior  <[email protected]>
5811
5812         PR breakpoints/15413:
5813         * breakpoint.c (condition_completer): Simplify the code to
5814         disconsider multiple locations of breakpoints when completing the
5815         "condition" command.
5816
5817 2013-05-07  Pierre Muller  <[email protected]>
5818
5819         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5820         instead of <sys/wait.h>.
5821
5822 2013-05-07  Pierre Muller  <[email protected]>
5823
5824         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5825         trailing new line from warning message.
5826
5827 2013-05-07  Pierre Muller  <[email protected]>
5828
5829         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5830         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5831
5832 2013-05-07  Joel Brobecker  <[email protected]>
5833
5834         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5835         error message (ARI fix).
5836
5837 2013-05-07  Joel Brobecker  <[email protected]>
5838
5839         * features/library-list-aix.dtd: Replace library-list by
5840         library-list-aix.
5841         * rs6000-nat.c: Replace library-list by library-list-aix
5842         throughout.
5843         * solib-aix.c: Likewise.
5844
5845 2013-05-07  Joel Brobecker  <[email protected]>
5846
5847         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5848         Renames TARGET_OBJECT_AIX_LIBRARIES.
5849         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5850         TARGET_OBJECT_LIBRARIES_AIX throughout.
5851         * solib-aix.c: Likwise.
5852
5853 2013-05-07  Yao Qi  <[email protected]>
5854
5855         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5856         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5857
5858 2013-05-07  Yao Qi  <[email protected]>
5859
5860         * solib-dsbt.c (enable_break): Declare.
5861         (dsbt_current_sos): Remove call to enable_break2.
5862         (enable_break2): Rename to enable_break.  Set solib breakpoint
5863         on '_dl_debug_state'.
5864         (enable_break): Remove.
5865
5866 2013-05-07  Luis Machado  <[email protected]>
5867
5868         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5869         debug state prior to replicating existing hardware watchpoints or
5870         breakpoints.
5871
5872 2013-05-07  Jan Kratochvil  <[email protected]>
5873
5874         * gcore.c (gcore_create_callback): Ignore sections with
5875         separate_debug_objfile_backlink != NULL.
5876
5877 2013-05-06  Sandra Loosemore  <[email protected]>
5878             Andrew Jenner  <[email protected]>
5879             Chung-Lin Tang  <[email protected]>
5880             Julian Brown  <[email protected]>
5881
5882         Based on the nios2-elf port from Altera Corporation.
5883
5884         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5885         nios2-linux-tdep.o.
5886         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5887         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5888         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5889         * nios2-tdep.h: New.
5890         * nios2-tdep.c: New.
5891         * nios2-linux-tdep.c: New.
5892         * features/Makefile (WHICH): Add nios2-linux.
5893         (nios2-linux-expedite): Set.
5894         * features/nios2-cpu.xml: New.
5895         * features/nios2.xml: New.
5896         * features/nios2-linux.xml: New.
5897         * features/nios2.c: New (autogenerated).
5898         * features/nios2-linux.c: New (autogenerated).
5899         * regformats/nios2-linux.dat: New (autogenerated).
5900         * NEWS (Changes since GDB 7.6): Add new Nios II targets
5901         and commands.
5902
5903 2013-05-06  Doug Evans  <[email protected]>
5904
5905         * symfile.c: Whitespace cleanup.
5906
5907         * solist.h (struct target_so_ops): New member clear_so.
5908         * solib-svr4.c (svr4_clear_so): New function.
5909         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5910         * solib.c (clear_so): Renamed from free_so_symbols.
5911         All callers updated.  Call target clear_so if it exists.
5912
5913 2013-05-06  Tom Tromey  <[email protected]>
5914
5915         * ada-lang.c (ada_value_primitive_packed_val): Don't
5916         call value_incref.
5917         * value.c (set_value_parent): Incref the new parent and decref
5918         the old parent.
5919         (value_copy, value_primitive_field): Use set_value_parent.
5920
5921 2013-05-06  Tom Tromey  <[email protected]>
5922
5923         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5924         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5925         if needed.
5926         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5927         * dwarf2read.c (write_constant_as_bytes)
5928         (dwarf2_fetch_constant_bytes): New functions.
5929
5930 2013-05-06  Tom Tromey  <[email protected]>
5931
5932         * dwarf2read.c (dwarf2_const_value_data): Remove unused
5933         parameters.
5934         (dwarf2_const_value_attr): Update.
5935
5936 2013-05-06  Tom Tromey  <[email protected]>
5937
5938         * somread.c (som_symfile_offsets): Add 'const' to addrs.
5939         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5940         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5941         Remove declaration.
5942
5943 2013-05-06  Tom Tromey  <[email protected]>
5944
5945         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5946         objfile's obstack.
5947
5948 2013-05-06  Doug Evans  <[email protected]>
5949
5950         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5951         * stabsread.h (process_one_symbol): Update declaration.
5952         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5953         * elfread.c (elf_symfile_relocate_probe): Ditto.
5954         * psymtab.c (relocate_psymtabs): Ditto.
5955         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5956         (objfile_relocate): Ditto.
5957         * objfiles.h (objfile_relocate): Update declaration.
5958         * symfile.c (relative_addr_info_to_section_offsets): Constify
5959         addrs parameter.
5960         (default_symfile_offsets): Ditto.
5961         (syms_from_objfile_1): Constify offsets parameter.
5962         (syms_from_objfile): Ditto.
5963         (symbol_file_add_with_addrs_or_offsets): Ditto.
5964         (symfile_map_offsets_to_segments): Constify data parameter.
5965         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5966         delta parameters of member relocate.
5967         (struct sym_probe_fns): Constify new_offsets,
5968         delta parameters of member sym_relocate_probe.
5969         (struct sym_fns): Constify section_addr_info parameter of member
5970         sym_offsets.
5971         (relative_addr_info_to_section_offsets): Update declaration.
5972         (default_symfile_offsets): Ditto.
5973         (syms_from_objfile): Ditto.
5974         (symfile_map_offsets_to_segments): Ditto.
5975
5976         * symfile.c (syms_from_objfile_1): Use correct section count when
5977         objfile->sf == NULL.
5978
5979 2013-05-06  Mike Frysinger  <[email protected]>
5980
5981         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5982
5983 2013-05-06  Doug Evans  <[email protected]>
5984
5985         * psympriv.h (struct partial_symtab): Augment comment for member
5986         section_offsets.
5987
5988 2013-05-06  Joel Brobecker  <[email protected]>
5989
5990         Reimplement shared library support on ppc-aix...
5991         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5992         * features/library-list-aix.dtd: New file.
5993         * solib-aix.h, solib-aix.c: New file.
5994         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5995         (rs6000_find_toc_address_hook): Delete.
5996         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5997         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5998         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
5999         "xml-utils.h".
6000         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6001         (vmap_symtab, fixup_breakpoints): Delete.
6002         (rs6000_xfer_shared_libraries): New function.
6003         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6004         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6005         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6006         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6007         (rs6000_xfer_shared_library): New function.
6008         (find_toc_address): Delete.
6009         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6010         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6011         * xcoffread.c (record_minimal_symbol): Reloate symbol address
6012         before creating minimal symbol.  Adjust function description
6013         accordingly.
6014         (scan_xcoff_symtab): Replace call to
6015         prim_record_minimal_symbol_and_info by call to
6016         record_minimal_symbol.
6017         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6018         around default_symfile_offsets.
6019         * configure.tgt: Add solib-aix.o to gdb_target_obs for
6020         powerpc-aix targets.
6021         * config/rs6000/nm-rs6000.h: Delete.
6022         * config/powerpc/aix.mh (NAT_FILE): Delete.
6023         (NATDEPFILES): Remove xcoffsolib.o.
6024         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6025         (ALL_TARGET_OBS): Add solib-aix.o.
6026         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6027         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
6028         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
6029         * xcoffsolib.h, xcoffsolib.c: Delete.
6030
6031         * solib.c (reload_shared_libraries): Remove reference to
6032         SOLIB_CREATE_INFERIOR_HOOK.
6033         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6034         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6035         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6036         comment.
6037         * corelow.c (deprecated_core_resize_section_table): Delete.
6038         * exec.c: Remove include of xcoffsolib.h".
6039         (map_vmap, vmap): Delete.
6040         (exec_close_1): Remove references to vmap.
6041         (exec_file_attach): Remove vmap handling code, and reference
6042         to DEPRECATED_IBM6000_TARGET.
6043         (bfdsec_to_vmap): Delete.
6044         (exec_files_info): Remove block of code handling VMAP.
6045         * infcmd.c (post_create_inferior): Remove reference to
6046         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6047         * infrun.c (follow_exec): Remove reference to
6048         SOLIB_CREATE_INFERIOR_HOOK.
6049         * stack.c (print_frame): Remove reference to PC_SOLIB.
6050         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6051         (dsbt_relocate_main_executable): Likewise.
6052         * solib-frv.c (frv_current_sos): Likewise.
6053
6054 2013-05-06  Joel Brobecker  <[email protected]>
6055
6056         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6057         to target_write_memory and target_read_memory.
6058
6059 2013-05-06  Joel Brobecker  <[email protected]>
6060
6061         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6062         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6063
6064 2013-05-06  Joel Brobecker  <[email protected]>
6065
6066         * darwin-nat.c: Replace all "%x" instances in format strings
6067         into "0x%x" throughout.
6068
6069 2013-05-06  Joel Brobecker  <[email protected]>
6070
6071         * darwin-nat.c (darwin_mourn_inferior): Replace call to
6072         gdb_assert by call to MACH_CHECK_ERROR.
6073         (darwin_attach_pid): Raise an error rather than a failed
6074         assertion when various system calls failed.  Report a warning
6075         instead of raising a failed assertion when PREV_NOT is not NULL
6076         after call to mach_port_request_notification.
6077         (darwin_ptrace_me): Raise an error rather than a failed
6078         assertion when read returns nonzero.
6079
6080 2013-05-06  Joel Brobecker  <[email protected]>
6081
6082         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6083
6084 2013-05-05  Jan Kratochvil  <[email protected]>
6085
6086         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6087
6088 2013-05-05  Jan Kratochvil  <[email protected]>
6089
6090         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6091         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6092         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
6093         a stale cleanup.  Fix double free of NAME.
6094
6095 2013-05-04  Eli Zaretskii  <[email protected]>
6096
6097         * windows-nat.c (windows_delete_thread): Accept an additional
6098         argument, the thread's exit code, and announce thread death when
6099         print_thread_events is non-zero and we are deleting a thread that
6100         is not the main thread.
6101         (get_windows_debug_event): Pass thread exit code to
6102         windows_delete_thread.
6103
6104 2013-05-03  Kevin Buettner  <[email protected]>
6105
6106         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6107         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6108         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6109         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6110         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6111         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6112         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6113         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6114         (gdbarch_tdep): New struct.
6115         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6116         E_NUM_REGS.
6117         (v850e3v5_register_name): New function.
6118         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6119         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
6120         code handling the struct return conventions for the RH850 ABI.
6121         Update all callers.
6122         (v850_eight_byte_align_p): New function.
6123         (v850_push_call_dummy): Push structs by value, not by reference
6124         for the RH850 ABI.  Add support for eight byte alignment.
6125         (v850_dbtrap_breakpoint_from_pc): New function.
6126         (v850_gdbarch_init): Add ABI detection code.  Register
6127         v850e3v5_register_name for the v850e3v5 architecture.  Set the
6128         number of registers for v850e3v5.  Register
6129         v850_dbtrap_breakpoint_from_pc as appropriate.
6130         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6131
6132 2013-05-03  Doug Evans  <[email protected]>
6133
6134         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6135         of bfd_count_sections.
6136         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6137         * symfile.c (default_symfile_offsets): Ditto.
6138         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
6139         one entry, not bfd_count_sections entries.
6140
6141 2013-05-03  Kevin Buettner  <[email protected]>
6142
6143         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6144         `save' and `restore' register groups.  Don't include SPL
6145         or SPH in these groups.
6146         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
6147         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
6148         RL78_ES_REGNUM, and RL78_CS_REGNUM.
6149         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
6150         dwarf2_append_unwinders().
6151
6152 2013-05-03  Philippe Waroquiers  <[email protected]>
6153
6154         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6155         ignore SIGINT and SIGTRAP in case these internal signals are
6156         caught explicitely.
6157
6158 2013-05-01  Joel Brobecker  <[email protected]>
6159
6160         * darwin-nat.c (darwin_read_write_inferior): Change types
6161         of parameters rdaddr and wraddr to "gdb_byte *". Change type
6162         of copy_count to "mach_msg_type_number_t".
6163         (darwin_read_dyld_info): Change type of parameter
6164         rdaddr to "gdb_byte *".
6165
6166 2013-05-01  Joel Brobecker  <[email protected]>
6167
6168         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6169         of &info->load_map from "char *" to "gdb_byte *".
6170
6171 2013-05-01  Joel Brobecker  <[email protected]>
6172
6173         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6174         from "char *" to "gdb_byte *".
6175         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6176
6177 2013-04-30  Doug Evans  <[email protected]>
6178
6179         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6180         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6181         DWO stub.  If DWO isn't found, just use stub.
6182         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6183
6184         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6185         calling init_cutu_and_read_dies.
6186
6187 2013-03-27  Walfred Tedeschi  <[email protected]>
6188
6189         * target-descriptions.c (maint_print_c_tdesc_cmd):
6190         Add case to parse structures as register types and
6191         bitfields.
6192
6193 2013-04-30  Walfred Tedeschi  <[email protected]>
6194
6195         * MAINTAINERS (Write After Approval): Add myself to the list.
6196
6197 2013-04-30  Joel Brobecker  <[email protected]>
6198
6199         * sol-thread.c (rw_common): Change type of parameter "buf"
6200         to "gdb_byte *".
6201         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6202         rw_common to "gdb_byte *" instead of "char *".
6203
6204 2013-04-30  Joel Brobecker  <[email protected]>
6205
6206         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6207         of local variable msym to const struct bound_minimal_symbol.
6208         Adjust use accordingly.
6209         [ti.ti_state == TD_THR_SLEEP]: Likewise.
6210
6211 2013-04-30  Samuel Thibault  <[email protected]>
6212
6213         * i386gnu-nat.c (CREG_OFFSET): New macro.
6214         (creg_offset): New array.
6215         (CREG_ADDR): Use creg_offset instead of reg_offset.
6216
6217 2013-04-30  Joel Brobecker  <[email protected]>
6218
6219         * mep-tdep.c (mep_write_pc): Delete.
6220         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6221         Add call to set_gdbarch_pc_regnum.
6222
6223 2013-04-30  Joel Brobecker  <[email protected]>
6224
6225         * common/filestuff.c: Replace #include <dirent.h> by
6226         #include "gdb_dirent.h".
6227
6228 2013-04-30  Joel Brobecker  <[email protected]>
6229
6230         * common/filestuff.c: Replace #include <sys/stat.h> by
6231         #include "gdb_stat.h".
6232
6233 2013-04-29  Pierre Muller  <[email protected]>
6234
6235         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6236         editCase function rule.
6237         (get_DW_AT_signature_type): Likewise.
6238
6239 2013-04-29  Joel Brobecker  <[email protected]>
6240
6241         * m32r-tdep.c (m32r_write_pc): Delete.
6242         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6243         Add call to set_gdbarch_pc_regnum.
6244
6245 2013-04-29  Pierre Muller  <[email protected]>
6246
6247         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6248
6249 2013-04-29  Joel Brobecker  <[email protected]>
6250
6251         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6252
6253 2013-04-28  Yao Qi  <[email protected]>
6254
6255         * solib-dsbt.c (fetch_loadmap): Re-indent.
6256         (displacement_from_map, enable_break2): Likewise.
6257         (dsbt_relocate_section_addresses): Likewise.
6258
6259 2013-04-26  Joel Brobecker  <[email protected]>
6260
6261         GDB 7.6 released.
6262
6263 2013-04-25  Andreas Kaufmann  <[email protected]>
6264
6265         PR corefiles/14983:
6266         * dwarf2read.c (process_full_comp_unit): Always create a static
6267         block.
6268
6269 2013-04-25  Hui Zhu  <[email protected]>
6270
6271         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6272         to loc->cmd_bytecode.
6273
6274 2013-04-24  Doug Evans  <[email protected]>
6275
6276         * dwarf2read.c (setup_type_unit_groups): Fix comment.
6277
6278 2013-04-22  Keith Seitz  <[email protected]>
6279
6280         * tracepoint.c (trace_save):  Call the writer's start method.
6281
6282 2013-04-24  Muhammad Bilal  <[email protected]>
6283
6284         PR gdb/10462
6285         * cli/cli-decode.c (lookup_command): Show an error if there is no space
6286         before argument.
6287
6288 2013-04-23  Tom Tromey  <[email protected]>
6289
6290         * common/filestuff.c: Check USE_WIN32API before including
6291         sys/socket.h.
6292         (HAVE_F_GETFD): New define.
6293         (mark_cloexec): Check HAVE_F_GETFD.
6294         (gdb_open_cloexec): Change 'mode' to unsigned long.
6295         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6296         (gdb_pipe_cloexec): Check HAVE_PIPE.
6297         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6298         long.
6299
6300 2013-04-23  Hui Zhu  <[email protected]>
6301
6302         PR gdb/15293
6303         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6304
6305 2013-04-23  Hui Zhu  <[email protected]>
6306
6307         PR gdb/15165
6308         * breakpoint.c (dprintf_print_recreate): New.
6309         (save_breakpoints): Let it not save dprintf commands.
6310         (initialize_breakpoint_ops): Set dprintf_print_recreate.
6311
6312 2013-04-22  Tom Tromey  <[email protected]>
6313
6314         PR gdb/7912:
6315         * Makefile.in (SFILES): Add filestuff.c
6316         (COMMON_OBS): Add filestuff.o.
6317         (filestuff.o): New target.
6318         * auto-load.c (auto_load_objfile_script_1): Use
6319         gdb_fopen_cloexec.
6320         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6321         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6322         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6323         * common/agent.c (gdb_connect_sync_socket): Use
6324         gdb_socket_cloexec.
6325         * common/filestuff.c: New file.
6326         * common/filestuff.h: New file.
6327         * common/linux-osdata.c (linux_common_core_of_thread)
6328         (command_from_pid, commandline_from_pid, print_source_lines)
6329         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6330         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6331         gdb_fopen_cloexec.
6332         * common/linux-procfs.c (linux_proc_get_int)
6333         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6334         * config.in, configure: Rebuild.
6335         * configure.ac: Don't check for sys/socket.h.  Check for
6336         fdwalk, pipe2.
6337         * corelow.c (core_open): Use gdb_open_cloexec.
6338         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6339         * fork-child.c (fork_inferior): Call close_most_fds.
6340         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6341         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6342         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6343         Use gdb_fopen_cloexec.
6344         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6345         gdb_open_cloexec.
6346         (linux_async_pipe): Use gdb_pipe_cloexec.
6347         * remote-fileio.c (remote_fileio_func_open): Use
6348         gdb_open_cloexec.
6349         * remote.c (remote_file_put, remote_file_get): Use
6350         gdb_fopen_cloexec.
6351         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6352         close_most_fds.
6353         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6354         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6355         * solib.c (solib_find): Use gdb_open_cloexec.
6356         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6357         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6358         (tfile_open): Use gdb_open_cloexec.
6359         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6360         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6361         * xml-support.c (xml_fetch_content_from_file): Use
6362         gdb_fopen_cloexec.
6363         * main.c (captured_main): Call notice_open_fds.
6364
6365 2013-04-22  Edjunior Machado  <[email protected]>
6366
6367         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6368         'char *' to 'gdb_byte *'.
6369         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6370         'gdb_byte'.
6371
6372 2013-04-22  Yao Qi  <[email protected]>
6373
6374         * infrun.c: Fix typo in comment.
6375
6376 2013-04-22  Andrew Haley  <[email protected]>
6377
6378         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6379         instead of "long".
6380
6381 2013-04-20  Yao Qi  <[email protected]>
6382
6383         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6384         'char *' to 'gdb_byte *'.  Cast the return value of
6385         'bt_ctf_get_char_array' to 'gdb_byte *'.
6386
6387 2013-04-19  Pedro Alves  <[email protected]>
6388
6389         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6390         -Wpointer-sign.
6391         * configure: Regenerate.
6392
6393 2013-04-19  Pedro Alves  <[email protected]>
6394
6395         * ser-tcp.c (net_read_prim): Cast second argument to recv to
6396         'void *'.
6397
6398 2013-04-19  Pedro Alves  <[email protected]>
6399
6400         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6401         Change type of 'myaddr' parameter to gdb_byte pointer.
6402         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
6403         to 'long long' pointer instead of to 'unsigned long long'.
6404         (monitor_write_memory_block, monitor_read_memory_single)
6405         (monitor_read_memory): Change type of 'myaddr' parameter to
6406         gdb_byte pointer.
6407
6408 2013-04-19  Pedro Alves  <[email protected]>
6409
6410         * record.c (validate_history_size): Make parameter 'setting'
6411         unsigned.
6412
6413 2013-04-19  Pedro Alves  <[email protected]>
6414
6415         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6416         to 'gdb_byte *'.
6417
6418 2013-04-19  Pedro Alves  <[email protected]>
6419
6420         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6421         local to int.
6422
6423 2013-04-19  Pedro Alves  <[email protected]>
6424
6425         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6426         * ada-tasks.c (read_fat_string_value): Likewise.
6427
6428 2013-04-19  Pedro Alves  <[email protected]>
6429
6430         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6431         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
6432         'offset', and adjust.
6433
6434 2013-04-19  Pedro Alves  <[email protected]>
6435
6436         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6437         (read_index_from_section): Add cast to 'char *'.
6438
6439 2013-04-19  Pedro Alves  <[email protected]>
6440
6441         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6442
6443 2013-04-19  Pedro Alves  <[email protected]>
6444
6445         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6446
6447 2013-04-19  Pedro Alves  <[email protected]>
6448
6449         * record-full.c (record_full_get_bookmark): Change local 'ret'
6450         type to char * and add cast to gdb_byte *.
6451         (record_full_goto_bookmark): Handle 'bookmark' argument as a
6452         string.
6453         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6454
6455 2013-04-19  Pedro Alves  <[email protected]>
6456
6457         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6458         * python/py-prettyprint.c (print_string_repr): Change type of
6459         'output' local to char *.  Add cast to gdb_byte * in
6460         LA_PRINT_STRING call.
6461         (print_children): Change type of 'output' local to char *.
6462         * python/py-value.c (valpy_string): Add cast to const char * in
6463         PyUnicode_Decode call.
6464
6465 2013-04-19  Pedro Alves  <[email protected]>
6466
6467         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6468         and change its type to 'const char *'.  Adjust.
6469         (mips_send_packet): Add cast to 'char *', and remove cast to
6470         'unsigned char *'.
6471         (mips_receive_packet): Remove cast to 'unsigned char *'.
6472         (mips_load_srec): Use bfd_byte.
6473         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6474         (pmon_checkset): Make 'value' parameter unsigned.
6475
6476 2013-04-19  Pedro Alves  <[email protected]>
6477
6478         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6479
6480 2013-04-19  Pedro Alves  <[email protected]>
6481
6482         * remote.c (remote_write_bytes_aux, compare_sections_command)
6483         (remote_read_qxfer)
6484         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6485         (remote_hostio_readlink, remote_bfd_iovec_pread)
6486         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6487         binary buffer, and char when buffer is used as string.
6488         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6489         (trace_save, tfile_open, traceframe_walk_blocks)
6490         (tfile_fetch_registers): Likewise.
6491
6492 2013-04-19  Pedro Alves  <[email protected]>
6493
6494         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6495         buffer and size_t size.  Adjust.
6496         * ser-base.h (ser_base_write): Adjust.
6497         * ser-go32.c (cnts): Change type to size_t.
6498         (dos_write): Change prototype -- take 'void *'
6499         buffer and size_t size.  Adjust.
6500         (dos_info): Print elements of 'cnts' as unsigned long.
6501         * serial.c (serial_write): Likewise.
6502         * serial.h (serial_write): Adjust.
6503         (struct serial_ops) <write>: Change prototype -- take 'void *'
6504         buffer and size_t size.  Adjust.
6505
6506 2013-04-19  Pedro Alves  <[email protected]>
6507
6508         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6509         gdb_byte *.
6510         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6511
6512 2013-04-19  Pedro Alves  <[email protected]>
6513
6514         * alpha-tdep.c (alpha_extract_return_value): Use
6515         regcache_cooked_read_unsigned to read 'v0'.
6516
6517 2013-04-19  Pedro Alves  <[email protected]>
6518
6519         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6520         parameters 'at', 'as' and 'offset' to uint32_t.
6521
6522 2013-04-19  Pedro Alves  <[email protected]>
6523
6524         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6525         'is64' to signed 'int'.
6526
6527 2013-04-19  Pedro Alves  <[email protected]>
6528
6529         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6530         parameter to int *.
6531
6532 2013-04-19  Pedro Alves  <[email protected]>
6533
6534         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6535         'insnbuf' buffer type to unsigned int[].
6536
6537 2013-04-19  Pedro Alves  <[email protected]>
6538
6539         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6540
6541 2013-04-19  Pedro Alves  <[email protected]>
6542
6543         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6544         unsigned long *.
6545
6546 2013-04-19  Pedro Alves  <[email protected]>
6547
6548         * alpha-tdep.c (heuristic_fence_post): Change type to int.
6549         (alpha_heuristic_proc_start): Adjust to check -1 instead of
6550         UINT_MAX.
6551         * mips-tdep.c (heuristic_fence_post): Change type to int.
6552         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6553
6554 2013-04-19  Pedro Alves  <[email protected]>
6555
6556         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6557         (struct gdbarch_tdep) <cris_version>: Make unsigned.
6558         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6559
6560 2013-04-19  Pedro Alves  <[email protected]>
6561
6562         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
6563         it to get a string view of the byte buffer.
6564         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6565         type to gdb_byte *.  Adjust.
6566         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6567         Change local to char *.
6568         * solib-darwin.c (find_program_interpreter): Change return type to
6569         char *.  Adjust.
6570         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6571         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6572         * solib-frv.c (enable_break2): Change local 'buf' to char *.
6573         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6574         * solib-svr4.c (find_program_interpreter): Change return type to
6575         char *.  Adjust.
6576         (enable_break): Change local 'interp_name' to char *.
6577         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6578         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6579         (spu_pseudo_register_write_spu): Use char for string buffer.
6580         Adjust.
6581         (info_spu_event_command, info_spu_signal_command): Add casts to
6582         'char *'.
6583
6584 2013-04-19  Pedro Alves  <[email protected]>
6585
6586         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6587         gdb_byte[].
6588         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6589         * ada-lang.c (ada_value_assign): Use gdb_byte.
6590         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6591         (alphanbsd_sigtramp_offset): Use gdb_byte.
6592         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6593         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6594         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6595         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6596         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6597         * arm-tdep.c (arm_stub_unwind_sniffer)
6598         (arm_displaced_init_closure): Use gdb_byte.
6599         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6600         (arm_default_thumb_le_breakpoint)
6601         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6602         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6603         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6604         * arm-wince-tdep.c (arm_wince_le_breakpoint)
6605         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6606         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6607         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6608         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6609         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6610         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6611         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6612         (cris_store_return_value, cris_extract_return_value): Use
6613         gdb_byte.
6614         (constraint): Change type of parameter to char * from signed
6615         char*.  Use gdb_byte.
6616         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6617         of local buffer to gdb_byte *.
6618         * dwarf2read.c (read_index_from_section): Use gdb_byte.
6619         (create_dwp_hash_table): Change type of locals to gdb_byte *.
6620         (add_address_entry): Change type of local buffer to gdb_byte[].
6621         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6622         (frv_push_dummy_call): Use gdb_byte.
6623         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6624         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6625         (hppa_hpux_supply_save_state): Use gdb_byte.
6626         * hppa-tdep.c (hppa32_push_dummy_call)
6627         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6628         * ia64-tdep.c (extract_bit_field, replace_bit_field)
6629         (slotN_contents, replace_slotN_contents): Change type of parameter
6630         to gdb_byte *.
6631         (fetch_instruction, ia64_pseudo_register_write)
6632         (ia64_register_to_value, ia64_value_to_register)
6633         (ia64_extract_return_value, ia64_store_return_value)
6634         (ia64_push_dummy_call): Use gdb_byte.
6635         * m32c-tdep.c (m32c_return_value): Remove cast.
6636         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6637         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6638         gdb_byte.
6639         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6640         * mn10300-tdep.c (mn10300_store_return_value)
6641         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6642         gdb_byte.
6643         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6644         (moxie_process_record): Remove casts.
6645         * ppc-ravenscar-thread.c (supply_register_at_address)
6646         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6647         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6648         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6649         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6650         * remote.c (compare_sections_command): Use gdb_byte.
6651         * score-tdep.c (score7_free_memblock): Change type of parameter to
6652         gdb_byte *.
6653         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6654         gdb_byte *.  Use gdb_byte.
6655         (sh_push_dummy_call_fpu): Use gdb_byte.
6656         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6657         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6658         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6659         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6660         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6661         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6662         (sh64_store_return_value, sh64_register_convert_to_virtual):
6663         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
6664         (sh64_pseudo_register_write): Use gdb_byte.
6665         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6666         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
6667         buffer.
6668         (irix_current_sos): Use gdb_byte.
6669         * solib-som.c (som_current_sos): Use gdb_byte.
6670         * sparc-ravenscar-thread.c (supply_register_at_address)
6671         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6672         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6673         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6674         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6675         'gdb_byte *'.
6676         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6677         'gdb_byte *'.
6678         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6679         * xstormy16-tdep.c (xstormy16_extract_return_value)
6680         (xstormy16_store_return_value): Change parameter type to
6681         'gdb_byte *'.  Adjust.
6682         (xstormy16_push_dummy_call): Use gdb_byte.
6683         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6684         (call0_analyze_prologue, execute_code): Use gdb_byte.
6685
6686 2013-04-19  Vladimir Kargov <[email protected]>
6687             Pedro Alves  <[email protected]>
6688
6689         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6690         value contents.
6691
6692 2013-04-17  Doug Evans  <[email protected]>
6693
6694         * dwarf2read.c (struct signatured_type): New member type.
6695         (struct attribute): Replace member signatured_type with signature.
6696         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6697         (read_call_site_scope): Call follow_die_ref instead of
6698         follow_die_ref_or_sig.
6699         (read_structure_type): Rewrite handling of signatured types.
6700         (read_enumeration_type): Ditto.
6701         (read_attribute_value): Update.
6702         (build_error_marker_type): New function.
6703         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
6704         Don't call error for bad types, just build an error marker type.
6705         (dump_die_shallow): Update.
6706         (follow_die_sig_1): Renamed from follow_die_sig.
6707         Don't call error for bad types, instead return NULL.
6708         (follow_die_sig): New function.
6709         (get_signatured_type, get_DW_AT_signature_type): New functions.
6710
6711 2013-04-17  Yufeng Zhang  <[email protected]>
6712
6713         * aarch64-tdep.c (aarch64_write_pc): Removed.
6714         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6715         function.
6716
6717 2013-04-17  Yao Qi  <[email protected]>
6718
6719         * top.c (print_gdb_configuration): Print configure-time
6720         parameter on using libbabeltrace or not.
6721
6722 2013-04-16  Pedro Alves  <[email protected]>
6723
6724         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6725
6726 2013-04-16  Pedro Alves  <[email protected]>
6727
6728         * common/glibc_thread_db.h: Update from upstream glibc
6729         (git 568035b7874a099087b77f7bba3e36a1173787b0).
6730
6731 2013-04-16  Pedro Alves  <[email protected]>
6732
6733         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6734         * common/glibc_thread_db.h: ... this new file ...
6735         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6736
6737 2013-04-16  Will Newton  <[email protected]>
6738             Pedro Alves  <[email protected]>
6739
6740         PR build/11881
6741
6742         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6743         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6744         HAVE_THREAD_DB_H.
6745
6746 2013-04-16  Pedro Alves  <[email protected]>
6747             Eli Zaretskii  <[email protected]>
6748
6749         * NEWS: Mention "set foo unlimited".
6750
6751 2013-04-15  Doug Evans  <[email protected]>
6752
6753         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6754         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6755         (create_dwo_cu_reader): Renamed from
6756         create_dwo_debug_info_hash_table_reader.
6757         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6758         Remove support for multiple CUs in a DWO file.
6759         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6760
6761         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6762         instead of phex.
6763         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6764         (create_dwo_in_dwp): Ditto.
6765
6766 2013-04-15  Tom Tromey  <[email protected]>
6767
6768         * NEWS: Move recent entries into "since 7.6" section.
6769
6770 2013-04-15  Tom Tromey  <[email protected]>
6771
6772         PR c++/13588:
6773         * NEWS: Update.
6774         * break-catch-throw.c (struct exception_catchpoint)
6775         <exception_rx, pattern>: New fields.
6776         (fetch_probe_arguments, dtor_exception_catchpoint)
6777         (check_status_exception_catchpoint)
6778         (print_one_detail_exception_catchpoint): New functions.
6779         (handle_gnu_v3_exceptions): Add "except_rx" argument.
6780         Compile regular expression if needed.
6781         (extract_exception_regexp): New function.
6782         (catch_exception_command_1): Use extract_exception_regexp.
6783         (compute_exception): Use fetch_probe_arguments.
6784         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6785         and check_status fields.
6786         * cp-abi.c (cplus_typename_from_type_info): New function.
6787         * cp-abi.h (cplus_typename_from_type_info): Declare.
6788         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6789         * gdb_regex.h (compile_rx_or_error): Declare.
6790         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6791         comment.
6792         (init_gnuv3_ops): Set get_type_from_type_info field.
6793         * probe.c (compile_rx_or_error): Move...
6794         * utils.c (compile_rx_or_error): ... here.
6795
6796 2013-04-15  Tom Tromey  <[email protected]>
6797
6798         PR c++/15176:
6799         * NEWS: Update.
6800         * break-catch-throw.c (compute_exception): New function.
6801         (exception_funcs): New global.
6802         (_initialize_break_catch_throw): Create $_exception.
6803         * cp-abi.c (cplus_type_from_type_info): New function.
6804         * cp-abi.h (cplus_type_from_type_info): Declare.
6805         (struct cp_abi_ops) <get_type_from_type_info>: New field.
6806         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6807         (gnuv3_get_type_from_type_info): New functions.
6808         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6809
6810 2013-04-15  Tom Tromey  <[email protected]>
6811
6812         * break-catch-throw.c (struct exception_names): New.
6813         (exception_functions): Change type.
6814         (re_set_exception_catchpoint): Look for SDT probes.
6815
6816 2013-04-15  Tom Tromey  <[email protected]>
6817
6818         PR c++/10119:
6819         * break-catch-throw.c (exception_functions): New global.
6820         (gnu_v3_exception_catchpoint_ops): Move earlier.
6821         (struct exception_catchpoint): New.
6822         (classify_exception_breakpoint): Rewrite.
6823         (re_set_exception_catchpoint): New function.
6824         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
6825         Allocate a struct exception_catchpoint.
6826         (catch_exception_command_1): Update.
6827         (initialize_throw_catchpoint_ops): Set 're_set' method.
6828
6829 2013-04-15  Tom Tromey  <[email protected]>
6830
6831         * Makefile.in (SFILES): Add break-catch-throw.c
6832         (COMMON_OBS): Add break-catch-throw.o.
6833         * break-catch-throw.c: New file.
6834         * breakpoint.c: Move exception-catching code to new file.
6835         (ep_parse_optional_if_clause): No longer static.
6836         * breakpoint.h (ep_parse_optional_if_clause): Declare.
6837
6838 2013-04-15  Tom Tromey  <[email protected]>
6839
6840         PR c++/9065:
6841         * NEWS: Update.
6842         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6843         * c-exp.y (TYPEID): New token.
6844         (exp): Add new TYPEID productions.
6845         (ident_tokens): Add "typeid".
6846         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6847         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6848         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6849         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6850         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6851         case.
6852         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6853         (build_std_type_info_type, gnuv3_get_typeid_type)
6854         (gnuv3_get_typeid): New functions.
6855         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
6856         new fields on ABI object.
6857         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6858         * std-operator.def (OP_TYPEID): New.
6859
6860 2013-04-15  Tom Tromey  <[email protected]>
6861
6862         * elfread.c (elf_symtab_read): Install versioned symbol under
6863         unversioned name as well.
6864
6865 2013-04-15  Tom Tromey  <[email protected]>
6866
6867         PR c++/11990:
6868         * c-lang.c (cplus_language_defn): Use gdb_demangle.
6869         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6870         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6871         (gdb_demangle): New function.
6872         * cp-support.h (gdb_demangle): Declare.
6873         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6874         (dwarf2_name): Use gdb_demangle.
6875         * gdbtypes.c (check_stub_method): Use gdb_demangle.
6876         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6877         suffixes from name.
6878         (gnuv3_print_method_ptr): Use gdb_demangle.
6879         * jv-lang.c (java_demangle): Use gdb_demangle.
6880         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6881         * language.c (unk_lang_demangle): Use gdb_demangle.
6882         * symtab.c (symbol_find_demangled_name)
6883         (demangle_for_lookup): Use gdb_demangle.
6884
6885 2013-04-15  Tom Tromey  <[email protected]>
6886
6887         PR c++/12824:
6888         * NEWS: Update.
6889         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6890         New constant.
6891         (classify_exception_breakpoint): New function.
6892         (print_it_exception_catchpoint, print_one_exception_catchpoint)
6893         (print_mention_exception_catchpoint)
6894         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6895         (catch_exception_command_1): Handle "rethrow" catchpoint.
6896         (catch_rethrow_command): New function.
6897         (_initialize_breakpoint): Add "catch rethrow" command.
6898
6899 2013-04-15  Pierre Muller  <[email protected]>
6900
6901         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6902         set_gdbarch_write_pc as deprecated anymore.
6903
6904 2013-04-15  Joel Brobecker  <[email protected]>
6905
6906         * spu-tdep.c (spu_write_pc): Add empty line after local variable
6907         declarations.
6908
6909 2013-04-13  Yao Qi  <[email protected]>
6910
6911         * ctf.c (_initialize_ctf): Include "completer.h".
6912         Call add_target_with_completer instead of add_target.
6913
6914 2013-04-12  Jan Kratochvil  <[email protected]>
6915
6916         Fix GDB regression related to PR binutils/14813.
6917         * jit.c (mem_bfd_iovec_close): Return 0 for success.
6918         * minidebug.c (lzma_close): Add return value comment.
6919         * remote.c (remote_bfd_iovec_close): Return 0 for success.
6920         * solib-spu.c (spu_bfd_iovec_close): Likewise.
6921         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6922
6923 2013-04-12  Jan Kratochvil  <[email protected]>
6924
6925         * config.in: Regenerate.
6926
6927 2013-04-12  Tom Tromey  <[email protected]>
6928
6929         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6930         const.
6931         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6932         (struct die_reader_specs) <buffer>: Likewise.
6933         (die_reader_func_ftype): Make 'info_ptr' const.
6934         (struct line_header) <include_dirs, statement_program_start,
6935         statement_program_end>: Now const.
6936         (struct file_entry) <name>: Likewise.
6937         (struct partial_die_info) <sibling>: Likewise.
6938         (struct dwarf_block) <data>: Likewise.
6939         (dwarf2_read_section): Remove cast.
6940         (dwarf2_get_section_info): Make 'bufp' const.
6941         (read_index_from_section): Constify.
6942         (dw2_get_file_names_reader): Make 'info_ptr' const.
6943         (dw2_get_primary_filename_reader): Likewise.
6944         (read_comp_unit_head): Make 'info_ptr' and return type const.
6945         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6946         Likewise.
6947         (read_abbrev_offset): Constify.
6948         (dwarf2_create_include_psymtab): Make 'name' const.
6949         (create_debug_types_hash_table): Update.
6950         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6951         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6952         Constify.
6953         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6954         (load_partial_comp_unit_reader): Make 'info_ptr' const.
6955         (read_comp_units_from_section): Constify.
6956         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6957         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6958         const.
6959         (dwarf2_compute_name, setup_type_unit_groups): Constify.
6960         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6961         (create_dwp_hash_table, dwarf2_ranges_read)
6962         (dwarf2_record_block_ranges): Constify.
6963         (read_die_and_children, read_die_and_siblings_1)
6964         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6965         const.
6966         (read_full_die_1, read_full_die): Make 'info_ptr' const.
6967         (abbrev_table_read_table): Constify.
6968         (load_partial_dies): Make 'info_ptr' const.
6969         (read_partial_die, read_attribute_value, read_attribute): Make
6970         'info_ptr' and return type const.
6971         (read_address, read_initial_length)
6972         (read_checked_initial_length_and_offset, read_offset)
6973         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6974         const.
6975         (read_direct_string): Make 'buf' and return type const.
6976         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6977         (read_indirect_string): Make return type const.
6978         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6979         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6980         'info_ptr' const.
6981         (read_str_index): Make return type const.
6982         (add_include_dir): Make 'include_dir' const.
6983         (add_file_name): Make 'name' const.
6984         (dwarf_decode_line_header): Constify.
6985         (psymtab_include_file_name): Make return type const.
6986         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6987         (dwarf2_start_subfile): Make 'filename' const.
6988         (dwarf2_const_value_attr): Make 'bytes' const.
6989         (read_signatured_type_reader): Make 'info_ptr' const.
6990         (decode_locdesc): Constify.
6991         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6992         const.
6993         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6994         'mac_end', and return type const.
6995         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6996         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6997         type const.
6998         (per_cu_header_read_in): Constify.
6999         * symfile.h (dwarf2_get_section_info): Update.
7000
7001 2013-04-12  Tom Tromey  <[email protected]>
7002
7003         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7004
7005 2013-04-12  Eli Zaretskii  <[email protected]>
7006
7007         * NEWS: Mention "show configuration", --configuration.
7008         * top.c (print_gdb_configuration): New function, displays the
7009         details about GDB configure-time parameters.
7010         (print_gdb_version): Mention "show configuration".
7011         * cli/cli-cmds.c (show_configuration): New function.
7012         (_initialize_cli_cmds): Add the "show configuration" command.
7013         * main.c (captured_main) <print_configuration>: New static var.
7014         <long_options>: Use it.
7015         If --configuration was given, call print_gdb_configuration.
7016
7017 2013-04-11  Jan Kratochvil  <[email protected]>
7018             Pedro Alves  <[email protected]>
7019
7020         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7021         (generated_files): Add gcore.
7022         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7023         HAVE_NATIVE_GCORE_HOST.
7024         (gcore): New.
7025         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7026         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7027         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7028         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7029         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7030         Add HAVE_NATIVE_GCORE_HOST.
7031         * configure: Regenerate.
7032         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7033         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
7034         AC_CONFIG_FILES for gcore.
7035         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
7036         gdb_have_gcore.
7037         * gdb_gcore.sh: Rename to ...
7038         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
7039         and GCORE_TRANSFORM_NAME substitutions.
7040
7041         Fix parsing tabs in ${gdb_target_obs}.
7042         * configure.tgt (gdb_have_gcore): Replace case with for and if.
7043
7044 2013-04-11  Jan Kratochvil  <[email protected]>
7045
7046         * remote.c (unpush_and_perror): Add output message final dot.
7047
7048 2013-04-11  Yao Qi  <[email protected]>
7049
7050         * tracepoint.c (tfile_interp_line): Fit parameters line and
7051         utpp in one line.
7052
7053 2013-04-10  Joel Brobecker  <[email protected]>
7054
7055         * solib.c (solib_map_sections): Remove code overwriting
7056         SO->SO_NAME with the bfd's filename.
7057
7058 2013-04-10  Pedro Alves  <[email protected]>
7059
7060         * cli/cli-decode.c (integer_unlimited_completer): New function.
7061         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7062         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7063         completer.
7064         * cli/cli-setshow.c: Include "cli/cli-utils.h".
7065         (is_unlimited_literal): New function.
7066         (do_set_command): Handle literal "unlimited" arguments.
7067         * frame.c (_initialize_frame) <set backtrace limit>: Document
7068         "unlimited".
7069         * printcmd.c (_initialize_printcmd) <set print
7070         max-symbolic-offset>: Add help text.
7071         * record-full.c (_initialize_record_full) <set record full
7072         insn-number-max>: Likewise.
7073         * record.c (_initialize_record) <set record
7074         instruction-history-size, set record function-call-history-size>:
7075         Add help text.
7076         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7077         help text.
7078         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7079         Likewise.
7080         * source.c (_initialize_source) <set listsize>: Add help text.
7081         * utils.c (initialize_utils) <set height, set width>: Likewise.
7082         <set pagination>: Mention "set height unlimited".
7083         * valprint.c (_initialize_valprint) <set print elements, set print
7084         repeats>: Document "unlimited".
7085
7086 2013-04-10  Pedro Alves  <[email protected]>
7087
7088         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7089         instead of disconnect_tracing.
7090         * infcmd.c (detach_command, disconnect_command): Call
7091         query_if_trace_running.  Adjust.
7092         * top.c: Include "tracepoint.h".
7093         (quit_target): Delete.  Contents moved ...
7094         (quit_force): ... here.  Wrap each stage of teardown in
7095         TRY_CATCH.  Call disconnect_tracing before detaching.
7096
7097 2013-04-10  Hui Zhu  <[email protected]>
7098             Yao Qi  <[email protected]>
7099
7100         * configure.ac: Check libbabeltrace is installed.
7101         * config.in: Regenerate.
7102         * configure: Regenerate.
7103         * Makefile.in (LIBBABELTRACE): New.
7104         (CLIBS): Add LIBBABELTRACE.
7105         * ctf.c: Include "exec.h".
7106         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7107         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7108         (ctf_save_metadata_header): Define new type aliases in
7109         metadata.
7110         (ctf_write_header): Define event type "tsv_def" and "tp_def"
7111         in metadata.  Start a new faked packet for trace status.
7112         (ctf_write_status): Write trace status to CTF.
7113         (ctf_write_uploaded_tsv): Write TSV to CTF.
7114         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7115         (ctf_write_definition_end): End the faked packet.
7116
7117         (ctx, ctf_iter, trace_dirname): New.
7118         (start_pos): New variable.
7119         (ctf_destroy, ctf_open_dir, ctf_open): New.
7120         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7121         macros.
7122         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7123         (ctf_fetch_registers, ctf_xfer_partial): New.
7124         (ctf_get_trace_state_variable_value): New.
7125         (ctf_get_tpnum_from_frame_event): New.
7126         (ctf_get_traceframe_address): New.
7127         (ctf_trace_find, ctf_has_stack): New.
7128         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7129         (ctf_get_trace_status, ctf_read_status): New.
7130         (_initialize_ctf): New.
7131         * tracepoint.c (get_tracepoint_number): New
7132         (get_uploaded_tsv): Remove 'static'.
7133         (struct traceframe_info, trace_regblock_size): Move it to ...
7134         * tracepoint.h: ... here.
7135         (get_tracepoint_number): Declare it.
7136         (get_uploaded_tsv): Declare it.
7137
7138         * NEWS: Mention new configure option.
7139
7140 2013-04-10  Pedro Alves  <[email protected]>
7141             Hui Zhu  <[email protected]>
7142
7143         * breakpoint.c (dprintf_re_set): New.
7144         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7145         to dprintf_re_set.
7146
7147 2013-04-09  Joel Brobecker  <[email protected]>
7148
7149         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7150         Remove solib-svr4.o from the list.
7151
7152 2013-04-09  Joel Brobecker  <[email protected]>
7153
7154         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7155         Use gdb_assert_not_reached instead of invalid boolean expression.
7156
7157 2013-04-09  Pedro Alves  <[email protected]>
7158
7159         * remote.c (unpush_and_perror): New function.
7160         (readchar, remote_serial_write): Use it.
7161
7162 2013-04-09  Markus Metzger  <[email protected]>
7163
7164         * NEWS: Mention new btrace RSP packets.
7165
7166 2013-04-08  Tom Tromey  <[email protected]>
7167
7168         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7169         long.
7170
7171 2013-04-08  Tom Tromey  <[email protected]>
7172
7173         * maint.c (print_bfd_section_info): Print the section index.
7174         * symmisc.c (dump_msymbols): Print the section index.
7175
7176 2013-04-08  Tom Tromey  <[email protected]>
7177
7178         PR symtab/8424:
7179         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7180         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7181         * breakpoint.c (resolve_sal_pc): Update.
7182         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7183         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7184         (minsym_lookup_iterator_cb): Use it.
7185         (default_read_var_value): Update.
7186         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7187         Update.
7188         * infcmd.c (jump_command): Update.
7189         * linespec.c (minsym_found): Update.
7190         * maint.c (maintenance_translate_address): Update.
7191         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7192         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7193         * parse.c (write_exp_msymbol): Update.
7194         * printcmd.c (address_info): Update.
7195         * psymtab.c (find_pc_sect_psymbol): Update.
7196         (fixup_psymbol_section): Check SYMBOL_SECTION, not
7197         SYMBOL_OBJ_SECTION.
7198         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7199         Don't initialize SYMBOL_OBJ_SECTION.
7200         * spu-tdep.c (spu_catch_start): Update.
7201         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7202         * symmisc.c (dump_msymbols, print_symbol): Update.
7203         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
7204         how fallback section is computed.
7205         (fixup_symbol_section): Update.
7206         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7207         Update.
7208         (allocate_symbol, initialize_symbol, allocate_template_symbol):
7209         Initialize SYMBOL_SECTION.
7210         * symtab.h (struct general_symbol_info) <section>: Update comment.
7211         <obj_section>: Remove.
7212         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
7213         (SYMBOL_OBJFILE): New macro.
7214
7215 2013-04-08  Tom Tromey  <[email protected]>
7216
7217         * coffread.c (record_minimal_symbol): Update.
7218         * dbxread.c (record_minimal_symbol): Update.
7219         * elfread.c (record_minimal_symbol): Update.
7220         * machoread.c (macho_symtab_add_minsym): Update.
7221         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7222         Update.
7223         * minsyms.c (prim_record_minimal_symbol): Update.
7224         (prim_record_minimal_symbol_full): Remove 'bfd_section'
7225         argument.
7226         (prim_record_minimal_symbol_and_info): Likewise.
7227         * minsyms.h (prim_record_minimal_symbol_full)
7228         (prim_record_minimal_symbol_and_info): Update.
7229         * symtab.c (allocate_symbol, initialize_symbol)
7230         (allocate_template_symbol): Initialize SYMBOL_SECTION.
7231         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7232         Update.
7233
7234 2013-04-08  Tom Tromey  <[email protected]>
7235
7236         PR symtab/8423:
7237         * solib-som.c (som_solib_section_offsets): Use BFD section
7238         indices.  Set offsets for all sections.
7239         * somread.c (som_symtab_read): Compute BFD section for
7240         symbol.  Use prim_record_minimal_symbol_and_info.
7241         (som_symfile_read): Fix comment.
7242         (struct find_section_offset_arg): New.
7243         (find_section_offset, set_section_index): New functions.
7244         (som_symfile_offsets): Use set_section_index to compute
7245         section indices.
7246
7247 2013-04-08  Tom Tromey  <[email protected]>
7248
7249         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7250         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7251         gdb_bfd_section_index.
7252         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7253         New functions.
7254         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7255         Declare.
7256         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7257         Update.
7258         * objfiles.c (add_to_objfile_sections_full): New function.
7259         (add_to_objfile_sections): Use it.
7260         (build_section_table): Rewrite.
7261         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
7262         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7263         (struct objfile) <sections>: Update comment.
7264         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7265         is NULL.
7266         (ALL_OBJSECTIONS): Use it.
7267         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7268         * solib-frv.c (frv_relocate_main_executable): Update.
7269         * solib-target.c (solib_target_relocate_section_addresses):
7270         Use gdb_bfd_section_index.
7271         * symfile.c (build_section_addr_info_from_section_table):
7272         Use gdb_bfd_section_index.
7273         (build_section_addr_info_from_bfd, place_section): Likewise.
7274         * symtab.c (fixup_section): Update.
7275         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7276
7277 2013-04-08  Tom Tromey  <[email protected]>
7278
7279         * minsyms.h (struct bound_minimal_symbol): New.
7280         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7281         Remove objfile argument.
7282         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7283         Return bound_minimal_symbol.
7284         * minsyms.c (lookup_minimal_symbol_by_pc_1)
7285         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7286         Return bound_minimal_symbol.
7287         (in_gnu_ifunc_stub): Update.
7288         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7289         Remove 'objfile_p' argument.
7290         (lookup_solib_trampoline_symbol_by_pc): Update.
7291         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7292         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7293         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7294         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7295         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7296         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7297         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7298         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7299         stack.c, symtab.c, tui/tui-disasm.c: Update.
7300
7301 2013-04-08  Tom Tromey  <[email protected]>
7302
7303         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7304         Use symbol's obstack, not an objfile.
7305         * coffread.c (process_coff_symbol): Update.
7306         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7307         * jv-lang.c (add_class_symbol): Update.
7308         * mdebugread.c (new_symbol): Update.
7309         * minsyms.c (prim_record_minimal_symbol_full)
7310         (terminate_minimal_symbol_table): Update.
7311         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
7312         * stabsread.c (define_symbol, read_enum_type): Update.
7313         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7314         Handle Ada specially.
7315         (symbol_set_language): Add 'obstack' argument.
7316         (symbol_set_names): Update.
7317         (symbol_natural_name, symbol_demangled_name): Always use
7318         ada_decode_symbol.
7319         * symtab.h (struct general_symbol_info)
7320         <language_specific::obstack>: New field.
7321         <ada_mangled>: New field.
7322         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7323         (symbol_set_language): Update.
7324
7325 2013-04-08  Tom Tromey  <[email protected]>
7326
7327         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7328         Take an obstack, not an objfile.
7329         (symbol_set_names): Update.
7330         * symtab.h (symbol_set_demangled_name): Update.
7331
7332 2013-04-08  Tom Tromey  <[email protected]>
7333
7334         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7335         allocate_symbol.
7336         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7337         (read_func_scope): Call allocate_template_symbol.
7338         (new_symbol_full): Call allocate_symbol.
7339         * jit.c (finalize_symtab): Call allocate_symbol.
7340         * jv-lang.c (add_class_symbol): Call allocate_symbol.
7341         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7342         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7343         (common_block_end): Call allocate_symbol.
7344         * symtab.c (allocate_symbol, initialize_symbol)
7345         (allocate_template_symbol): New functions.
7346         * symtab.c (allocate_symbol, initialize_symbol)
7347         (allocate_template_symbol): Declare.
7348         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7349
7350 2013-04-08  Pedro Alves  <[email protected]>
7351             Keith Seitz  <[email protected]>
7352
7353         * breakpoint.c (create_breakpoint): Rename
7354         "parse_condition_and_thread" parameter to "parse_arg".  Update
7355         describing comment.  If !PARSE_ARG, then error out if ARG is not
7356         the empty string after extracting the location.
7357         * breakpoint.h (create_breakpoint): Rename
7358         "parse_condition_and_thread" parameter to "parse_arg".
7359
7360 2013-04-08  Aleksandar Ristovski  <[email protected]
7361
7362         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7363
7364 2013-04-07  Yao Qi  <[email protected]>
7365
7366         * remote.c (remote_trace_find): Change type of parameters 'addr1'
7367         and 'addr2' to CORE_ADDR.
7368         * target.c (update_current_target): Update.
7369         * target.h (struct target_ops) <to_trace_find>: Change parameter
7370         type to CORE_ADDR.
7371         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7372         'addr2' to CORE_ADDR.
7373         (tfile_trace_find): Likewise.
7374         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7375         Change local variable 'addr' to type CORE_ADDR.
7376         * tracepoint.h (tfind_1): Update declaration.
7377
7378 2013-04-06  Eli Zaretskii  <[email protected]>
7379
7380         * windows-nat.c (windows_get_absolute_argv0): Move from here...
7381         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7382         Include main.h.
7383
7384         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7385         here...
7386         * main.h (windows_get_absolute_argv0): ...to here.
7387
7388 2013-04-05  Doug Evans  <[email protected]>
7389
7390         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7391         (read_cutu_die_from_dwo): Add comments.
7392         (read_structure_type): Update comment.
7393         (read_enumeration_type, read_namespace_type): Update comment.
7394         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7395
7396 2013-04-05  Jan Kratochvil  <[email protected]>
7397
7398         Convert man pages to texinfo, new gdbinit.5 texinfo page.
7399         * Makefile.in (gdb.z): Remove.
7400         (install-only): Remove $(man1dir) and gdb.1 installation.
7401         * gdb.1: Remove.
7402
7403 2013-04-05  Jan Kratochvil  <[email protected]>
7404
7405         Fix compatibility with Linux kernel 3.8.3.
7406         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7407         to more inner block.  Remove parsing of NUMBER from outer block.
7408         Parse NUMBER only if KEYWORD has been identified.
7409
7410 2013-04-05  Jan Kratochvil  <[email protected]>
7411
7412         Fix variable name shadowing.
7413         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7414         filename to mapsfilename and update its uses.
7415
7416 2013-04-05  Eli Zaretskii  <[email protected]>
7417
7418         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7419         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7420         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7421         details of the problem.
7422
7423 2013-04-04  Pedro Alves  <[email protected]>
7424             Hui Zhu  <[email protected]>
7425
7426         * breakpoint.c (validate_commands_for_breakpoint): If validating a
7427         tracepoint, reset its STEP_COUNT and call validate_actionline.
7428
7429 2013-04-03  Doug Evans  <[email protected]>
7430
7431         * dwarf2read.c (read_die_and_siblings_1): Renamed from
7432         read_die_and_siblings.
7433         (read_die_and_siblings): New function.
7434         (read_cutu_die_from_dwo): Dump die if requested.
7435         (read_die_and_children): Call read_full_die_1 and
7436         read_die_and_siblings_1.
7437         (read_full_die): Dump die if requested.
7438
7439         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7440
7441         * dwarf2read.c (struct dwo_file): New member comp_dir.
7442         Rename member name to dwo_name.  All uses updated.
7443         (hash_dwo_file): Include comp_dir in computation.
7444         (eq_dwo_file): Ditto.
7445         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
7446         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7447
7448         * psymtab.c (read_psymtabs_with_fullname): Don't call
7449         psymtab_to_fullname if the basenames are different.
7450
7451 2013-04-03  Jan Kratochvil  <[email protected]>
7452
7453         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7454         New entry about "fullname" presence.
7455
7456 2013-04-03  Pedro Alves  <[email protected]>
7457
7458         * NEWS: Mention x86_64/Cygwin as new native configuration.
7459
7460 2013-04-02  Doug Evans  <[email protected]>
7461
7462         * dwarf2read.c (read_structure_type): Fix typo in comment.
7463
7464 2013-04-02  Pedro Alves  <[email protected]>
7465
7466         * NEWS: Mention "set/show debug aarch64", "set/show debug
7467         coff-pe-read" and "set/show debug mach-o".
7468
7469 2013-04-02  Pedro Alves  <[email protected]>
7470
7471         * NEWS: Mention "set/show remote trace-buffer-size-packet".
7472
7473 2013-04-02  Eli Zaretskii  <[email protected]>
7474
7475         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7476         gdb_string.h is now in common/.
7477
7478 2013-04-02  Pedro Alves  <[email protected]>
7479
7480         * NEWS: Move "set debug notification" and "set trace-buffer-size"
7481         under "New options".
7482
7483 2013-04-02  Jan Kratochvil  <[email protected]>
7484
7485         Revert this patch:
7486         PR gdb/15275
7487         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7488
7489 2013-04-02  Pedro Alves  <[email protected]>
7490
7491         PR gdb/15275
7492
7493         * remote.c (send_interrupt_sequence): Use remote_serial_write.
7494         (remote_serial_write): New function.
7495         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7496
7497 2013-04-01  Jiong Wang  <[email protected]>
7498
7499         * NEWS: Mention TILE-Gx in "New native configurations" and
7500         "New targets" sections.
7501
7502 2013-04-01  Doug Evans  <[email protected]>
7503
7504         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7505         (process_enumeration_scope): Simplify.
7506
7507         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7508         type_unit_group ...
7509         (struct signatured_type): ... to here.
7510         (sig_type_ptr): New typedef.
7511         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
7512         out of union 't'.  All uses updated.
7513         (dw2_get_file_names_reader): Assert not called for a type unit.
7514         (dw2_get_file_names): Assert not called for a type unit or type
7515         unit group.
7516         (build_type_psymtabs_reader): Assert called for a type unit.
7517         (build_type_psymtab_dependencies): Assert called for a type unit group.
7518
7519         * dwarf2read.c (free_dwo_file): Add comment.
7520         (dwarf2_per_objfile_free): Unref dwp bfd.
7521
7522 2013-04-01  Aleksandar Ristovski  <[email protected]>
7523
7524         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7525         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7526         (read_pe_exported_syms): Remove unused 'exportix'.
7527         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7528         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7529         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7530
7531 2013-04-01  Aleksandar Ristovski  <[email protected]>
7532
7533         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7534         (print_it_watchpoint): Remove unused 'bl'.
7535         (say_where): Remove unused 'uiout'.
7536         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7537         (bkpt_breakpoint_hit): Remove unused 'b'.
7538         (internal_bkpt_print_it): Remove unused 'uiout'.
7539         * buildsym.c (augment_type_symtab): Remove unused 'i'.
7540
7541 2013-03-31  Tiago Stürmer Daitx  <[email protected]>
7542
7543         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7544         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7545
7546 2013-03-29  Doug Evans  <[email protected]>
7547
7548         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7549         Delete arg is_dwp.  All callers updated.
7550         (open_dwp_file): New function.
7551         (open_and_init_dwp_file): Call it.
7552         (get_dwp_file): New function.
7553         (lookup_dwo_cutu): Call it.
7554
7555         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7556         unnecessary, cleanup.
7557
7558         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7559
7560         * dwarf2read.c (read_cutu_die_from_dwo): New function.
7561         (lookup_dwo_unit): New function.
7562         (init_cutu_and_read_dies): Move DWO handling to new functions.
7563
7564         * dwarf2read.c (struct signatured_type): Tweak comment.
7565         (struct dwo_unit): Tweak comment.
7566         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
7567         (create_dwo_debug_info_hash_table): Tweak comment.
7568         (dwarf2_per_cu_offset_and_type): Tweak comment.
7569
7570         * dwarf2read.c (lookup_signatured_type): Remove complaint about
7571         missing .debug_types section.
7572
7573 2013-03-29  Yao Qi  <[email protected]>
7574
7575         * corelow.c: Include "completer.h".
7576         (_initialize_corelow): Call add_target_with_completer with
7577         argument 'filename_completer'.
7578         * tracepoint.c: Likewise.
7579         * exec.c (_initialize_exec): Likewise.
7580         * target.c (add_target): Rename to ...
7581         (add_target_with_completer): ... this.  Call set_cmd_completer
7582         if parameter completer is not NULL.
7583         (add_target): New.
7584         * target.h: Include "command.h".
7585         (add_target_with_completer): Declare it.
7586
7587 2013-03-28  Joel Brobecker  <[email protected]>
7588
7589         * coffread.c (is_import_fixup_symbol): New function.
7590         (record_minimal_symbol): Use is_import_fixup_symbol to
7591         detect import fixup symbols, and discard them.
7592
7593 2013-03-28  Doug Evans  <[email protected]>
7594
7595         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7596         types hash table until we know we need it.
7597
7598         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7599         index numbers.
7600
7601         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7602         All callers updated.
7603         (dw2_print_stats): Print #read CUs too.
7604         (dump_die_shallow): Print signatured types better.
7605
7606         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7607         info_or_types_section to section.  All uses updated.
7608         (struct dwo_unit): Ditto.
7609
7610 2013-03-28  Pedro Alves  <[email protected]>
7611
7612         * NEWS (New options): New section.
7613         (New options): Mention set/show remote trace-status-packet.
7614         * remote.c (PACKET_qTStatus): New enumeration value.
7615         (remote_get_trace_status): Skip sending qTStatus if the packet is
7616         disabled.  Use packet_ok.
7617         (_initialize_remote): Register a configuration command for
7618         qTStatus packet.
7619
7620 2013-03-28  Doug Evans  <[email protected]>
7621
7622         * symfile.c (find_separate_debug_file): Add comment.
7623         (terminate_after_last_dir_separator): Tweak comment.
7624
7625         * dwarf2read.c (create_partial_symtab): Add forward decl.
7626         (create_partial_symtab): Move to be closer to other psymtab functions.
7627         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7628
7629         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7630         (compute_symtab_includes): Remove unnecessary forward declaration.
7631         (die_needs_namespace): Add comment marking group of functions for
7632         dwarf2 name computation.
7633
7634         * typeprint.c (_initialize_typeprint): Improve type help text.
7635
7636         * python/python.c (finish_python_initialization): Provide suggestion
7637         for how to tell gdb to find its python files.
7638
7639 2013-03-28  Pedro Alves  <[email protected]>
7640
7641         PR gdb/15294
7642
7643         * source.c (_initialize_source): Change back "set listsize" to an
7644         integer command.
7645
7646 2013-03-27  Gareth McMullin  <[email protected]>
7647
7648         PR gdb/15275
7649         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7650
7651 2013-03-27  Pedro Alves  <[email protected]>
7652
7653         * top.c (history_size): Rename to ...
7654         (history_size_setshow_var): ... this.  Add comment.
7655         (show_commands): Use readline's 'history_length' instead of
7656         computing the history length by calling history_get in a loop.
7657         (set_history_size_command): Error out for sizes over INT_MAX.
7658         Restore previous history size on invalid size.
7659         (init_history): If HISTSIZE is negative, leave the history size as
7660         zero.  Add comments.
7661         (init_main): Adjust.
7662
7663 2013-03-27  Pedro Alves  <[email protected]>
7664
7665         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7666         coff_pe_read" command to "set debug coff-pe-read".
7667
7668 2013-03-27  Markus Metzger  <[email protected]>
7669
7670         * record.c (command_size_to_target_size): Fix size comparison.
7671         Change parameter type from pointer to integer to integer.
7672         Update all users.
7673
7674 2013-03-27  Pierre Muller  <[email protected]>
7675
7676         * windows-nat.c (handle_output_debug_string): Avoid typecast
7677         from integer of different size warning.
7678
7679 2013-03-26  Joel Brobecker  <[email protected]>
7680
7681         * windows-nat.c (handle_output_debug_string): Add empty line
7682         after local block variable definition.
7683
7684 2013-03-26  Pedro Alves  <[email protected]>
7685
7686         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7687         (net_open): Make 'polls' local unsigned.
7688
7689 2013-03-26  Pedro Alves  <[email protected]>
7690
7691         * remote.c (_initialize_remote): Make "set remoteaddresssize"
7692         a zuinteger command instead of uinteger.
7693
7694 2013-03-26  Pedro Alves  <[email protected]>
7695
7696         * record-full.c (record_full_insn_num): Make it unsigned.
7697         (record_full_check_insn_num, record_full_message)
7698         (record_full_registers_change, record_full_xfer_partial): Remove
7699         record_full_insn_max_num check (it's always != 0).
7700         (record_full_info, record_full_restore): Use %u as format string.
7701         (): Use %u as format string.
7702         (set_record_full_insn_max_num): Remove record_full_insn_max_num
7703         check (it's always != 0).
7704
7705 2013-03-26  Pedro Alves  <[email protected]>
7706
7707         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7708         and "set dcache size" commands zuinteger instead of uinteger.
7709
7710 2013-03-26  Pedro Alves  <[email protected]>
7711
7712         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7713         command zuinteger instead of uinteger.
7714
7715 2013-03-26  Pedro Alves  <[email protected]>
7716
7717         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7718         zuinteger instead of uinteger.
7719
7720 2013-03-26  Pedro Alves  <[email protected]>
7721
7722         * record.c (record_insn_history_size_setshow_var)
7723         (record_call_history_size_setshow_var): New globals.
7724         (command_size_to_target_size): New function.
7725         (cmd_record_insn_history, cmd_record_call_history): Use
7726         command_size_to_target_size instead of cast.
7727         (validate_history_size, set_record_insn_history_size)
7728         (set_record_call_history_size): New functions.
7729         (_initialize_record): Install set_record_insn_history_size and
7730         set_record_call_history_size as "set" hooks of "set record
7731         instruction-history-size" and "set record
7732         function-call-history-size".
7733
7734 2013-03-26  Pedro Alves  <[email protected]>
7735
7736         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7737         use with history_max_entries use.  Remove FIXME note.
7738
7739 2013-03-26  Markus Metzger  <[email protected]>
7740
7741         * record-btrace.c (record_btrace_close): Call
7742         record_btrace_auto_disable.
7743
7744 2013-03-25  Joel Brobecker  <[email protected]>
7745
7746         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7747
7748 2013-03-25  Doug Evans  <[email protected]>
7749
7750         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7751
7752 2013-03-25  Tom Tromey  <[email protected]>
7753
7754         PR symtab/11462:
7755         * c-exp.y (exp): Add new productions for destructors after '.' and
7756         '->'.
7757         (write_destructor_name): New function.
7758
7759 2013-03-25  Tom Tromey  <[email protected]>
7760
7761         PR c++/9197:
7762         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7763         value_struct_elt, not lookup_struct_elt_type.
7764         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7765         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7766         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7767
7768 2013-03-25  Yao Qi  <[email protected]>
7769
7770         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7771         instead of '_mkdir'.
7772
7773 2013-03-23  Eli Zaretskii  <[email protected]>
7774
7775         * windows-nat.c (windows_get_absolute_argv0): New function.
7776         * windows-nat.h: Add its prototype.
7777
7778         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7779         Use IS_DIR_SEPARATOR instead of looking for a character inside
7780         SLASH_STRING.  Include filenames.h.
7781         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7782         relocate_gdb_directory works when passed gdb_program_name.
7783         Include windows-nat.h.
7784
7785 2013-03-22  Jan Kratochvil  <[email protected]>
7786
7787         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7788         * remote.c (trace_error): Remove the special handling of '2'.
7789         (readchar) <SERIAL_EOF>
7790         (readchar) <SERIAL_ERROR>
7791         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7792         (remote_get_trace_status): Call throw_exception if EX is
7793         TARGET_CLOSE_ERROR.
7794         * utils.c (perror_with_name): Rename to ...
7795         (throw_perror_with_name): ... here.  New parameter errcode, describe it
7796         in the function comment.
7797         (perror_with_name): New function wrapper.
7798         * utils.h (enum errors): New stub declaration.
7799         (throw_perror_with_name): New declaration.
7800
7801 2013-03-22  Pedro Alves  <[email protected]>
7802             Yao Qi  <[email protected]>
7803             Mark Kettenis  <[email protected]>
7804
7805         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7806         Don't let the user set the value to UINT_MAX directly.
7807         <var_integer>: Don't let the user set the value to INT_MAX
7808         directly.
7809
7810 2013-03-22  Jan Kratochvil  <[email protected]>
7811
7812         * remote.c (remote_unpush_target): New function.
7813         (remote_open_1): Remove two pop_target calls, update one comment, add
7814         comment to target_preopen call.  Replace pop_target call by
7815         remote_unpush_target call.
7816         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7817         pop_target calls by remote_unpush_target calls.
7818
7819 2013-03-22  Pedro Alves  <[email protected]>
7820
7821         * linux-nat.c (linux_child_follow_fork): Don't call
7822         linux_enable_event_reporting.
7823         (linux_handle_extended_wait): Don't call
7824         linux_enable_event_reporting.
7825
7826 2013-03-22  Pedro Alves  <[email protected]>
7827
7828         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7829         use it to rewrite the trampoline buffers with type gdb_byte[], and
7830         undefine the macro.  Remove char* cast.
7831
7832 2013-03-21  Doug Evans  <[email protected]>
7833
7834         New commands "mt set per-command {space,time,symtab} {on,off}".
7835         * NEWS: Add entry.
7836         * event-top.c: #include "maint.h".
7837         * main.c: #include "maint.h".
7838         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7839         timeval-utils.h, maint.h, cli/cli-setshow.h.
7840         (per_command_time, per_command_space): New static globals.
7841         (per_command_symtab): New static global.
7842         (per_command_setlist, per_command_showlist): New static globals.
7843         (struct cmd_stats): Move here from utils.c.
7844         (set_per_command_time): Renamed from set_display_time in utils.c
7845         and moved here.  All callers updated.
7846         (set_per_command_space): Renamed from set_display_space in utils.c
7847         and moved here.  All callers updated.
7848         (count_symtabs_and_blocks): New function.
7849         (report_command_stats): Moved here from utils.c.  Add support for
7850         printing symtab stats.  Only print data if enabled before command
7851         executed.
7852         (make_command_stats_cleanup): Ditto.
7853         (sert_per_command_cmd, show_per_command_cmd): New functions.
7854         (_initialize_maint_cmds): Add new commands
7855         mt set per-command {space,time,symtab} {on,off}.
7856         * maint.h: New file.
7857         * top.c: #include "maint.h".
7858         * utils.c (reset_prompt_for_continue_wait_time): New function.
7859         (get_prompt_for_continue_wait_time): New function.
7860         * utils.h (reset_prompt_for_continue_wait_time): Declare
7861         (get_prompt_for_continue_wait_time): Declare.
7862         (make_command_stats_cleanup): Moved to maint.h.
7863         (set_display_time, set_display_space): Moved to maint.h and renamed
7864         to set_per_command_time, set_per_command_space.
7865         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7866         parse_binary_operation and made non-static.  Don't call error,
7867         just return an error marker.  All callers updated.
7868         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7869
7870 2013-03-21  Tom Tromey  <[email protected]>
7871
7872         * symfile.c (alloc_section_addr_info): Update header.  Don't set
7873         'num_sections' field.
7874         (build_section_addr_info_from_section_table): Set 'num_sections'.
7875         (build_section_addr_info_from_bfd): Likewise.
7876         (build_section_addr_info_from_objfile): Remove dead loop
7877         condition.
7878         (free_section_addr_info): Unconditionally call xfree.
7879         (relative_addr_info_to_section_offsets, addrs_section_sort)
7880         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7881         condition.
7882         (syms_from_objfile_1): Remove dead 'if' condition.  Check
7883         'num_sections'.
7884         (add_symbol_file_command): Set 'num_sections'.
7885         * symfile-mem.c (symbol_file_add_from_memory): Set
7886         'num_sections'.
7887         * somread.c (som_symfile_offsets): Remove dead loop condition.
7888         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7889         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7890
7891 2013-03-21  Tom Tromey  <[email protected]>
7892
7893         * tracepoint.h (decode_agent_options): Add 'trace_string'
7894         argument.
7895         * tracepoint.c (decode_agent_options): Add 'trace_string'
7896         argument.
7897         (validate_actionline): Update.
7898         (collect_symbol): Add 'trace_string' argument.
7899         (struct add_local_symbols_data) <trace_string>: New field.
7900         (do_collect_symbol): Update.
7901         (add_local_symbols): Add 'trace_string' argument.
7902         (encode_actions_1): Update.
7903         (trace_dump_actions): Update.
7904         * dwarf2loc.c (access_memory): Update.
7905         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7906         * ax-general.c (new_agent_expr): Update.
7907         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7908         (gen_trace_for_return_address): Add argument.
7909         (trace_kludge, trace_string_kludge): Remove.
7910         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7911         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7912         (gen_trace_for_var): Add 'trace_string' argument.
7913         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7914         (gen_printf, agent_eval_command_one): Update.
7915
7916 2013-03-21  Tom Tromey  <[email protected]>
7917
7918         PR exp/15109:
7919         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7920         Handle FILENAME token.
7921
7922 2013-03-21  Tom Tromey  <[email protected]>
7923
7924         * c-exp.y (YYPRINT): Define.
7925         (c_print_token): New function.
7926
7927 2013-03-21  Tom Tromey  <[email protected]>
7928
7929         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7930
7931 2013-03-21  Yao Qi  <[email protected]>
7932
7933         * ctf.c: Include "gdb_stat.h".
7934         [USE_WIN32API]: New macro 'mkdir'.
7935         (ctf_start): Use permission bits macros if they are defined.
7936
7937 2013-03-20  Keith Seitz  <[email protected]>
7938
7939         * breakpoint.h (struct breakpoint): Add comment to
7940         extra_string indicating that this member is mallod'd.
7941         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7942
7943 2013-03-20  Pedro Alves  <[email protected]>
7944
7945         PR gdb/15289
7946
7947         * cli/cli-setshow.c (do_set_command)
7948         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7949         the result of parsing the command argument.  Throw error if the
7950         value is greater than UINT_MAX.  Print the invalid value with
7951         plongest.
7952         <var_integer, var_zinteger>: Use LONGEST for variable holding the
7953         result of parsing the command argument.  Throw error if the value
7954         is greater than INT_MAX, not greater or equal.  Also throw error
7955         if the value is less than INT_MIN.  Print the invalid value with
7956         plongest.
7957         <var_zuinteger_unlimited>: Throw error if the value is greater
7958         than INT_MAX, not greater or equal.
7959         (do_show_command) <var_integer, var_zinteger,
7960         var_zuinteger_unlimited>: Use %d for printing int, not %u.
7961
7962 2013-03-20  Tom Tromey  <[email protected]>
7963
7964         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7965         if possible.
7966         * dwarf2read.c (read_func_scope): Remove old FIXME.
7967         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7968         not LOC_COMPUTED.
7969         * findvar.c (symbol_read_needs_frame, default_read_var_value):
7970         Unconditionally call via computed ops, if possible.
7971         * printcmd.c (address_info): Unconditionally call via computed ops,
7972         if possible.
7973         * stack.c (read_frame_arg): Unconditionally call via computed ops,
7974         if possible.
7975         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7976         * tracepoint.c (scope_info): Unconditionally call via computed ops,
7977         if possible.
7978
7979 2013-03-20  Jan Kratochvil  <[email protected]>
7980             Tom Tromey  <[email protected]>
7981
7982         PR symtab/8421:
7983         * coffread.c (coff_register_index): New global.
7984         (process_coff_symbol, coff_read_enum_type): Set
7985         SYMBOL_ACLASS_INDEX.
7986         (_initialize_coffread): Initialize new global.
7987         * dwarf2loc.c (locexpr_find_frame_base_location)
7988         (dwarf2_block_frame_base_locexpr_funcs)
7989         (loclist_find_frame_base_location)
7990         (dwarf2_block_frame_base_loclist_funcs): New.
7991         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7992         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7993         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7994         (dwarf2_block_frame_base_loclist_funcs): New.
7995         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7996         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7997         globals.
7998         (read_func_scope): Update.
7999         (fixup_go_packaging, mark_common_block_symbol_computed)
8000         (var_decode_location, new_symbol_full, dwarf2_const_value):
8001         Set SYMBOL_ACLASS_INDEX.
8002         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
8003         (_initialize_dwarf2_read): Initialize new globals.
8004         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8005         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8006         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8007         globals.
8008         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8009         (_initialize_mdebugread): Initialize new globals.
8010         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8011         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8012         (stab_register_index, stab_regparm_index): New globals.
8013         (define_symbol, read_enum_type, common_block_end): Set
8014         SYMBOL_ACLASS_INDEX.
8015         (_initialize_stabsread): Initialize new globals.
8016         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8017         globals.
8018         (MAX_SYMBOL_IMPLS): New define.
8019         (register_symbol_computed_impl, register_symbol_block_impl)
8020         (register_symbol_register_impl)
8021         (initialize_ordinary_address_classes): New functions.
8022         (_initialize_symtab): Call initialize_ordinary_address_classes.
8023         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8024         (struct symbol_impl): New.
8025         (SYMBOL_ACLASS_BITS): New define.
8026         (struct symbol) <aclass, ops>: Remove fields.
8027         <aclass_index>: New field.
8028         (symbol_impls): Declare.
8029         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8030         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8031         (register_symbol_computed_impl, register_symbol_block_impl)
8032         (register_symbol_register_impl): Declare.
8033         (struct symbol_computed_ops): Add location_has_loclist.
8034         (struct symbol_block_ops): New.
8035         (SYMBOL_BLOCK_OPS): New.
8036         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8037
8038 2013-03-20  Tom Tromey  <[email protected]>
8039
8040         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8041         (print_partial_symbols, recursively_search_psymtabs): Use
8042         PSYMBOL_CLASS.
8043
8044 2013-03-20  Pierre Muller  <[email protected]>
8045
8046         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8047         addtion, subtraction, multiplication and division binary operator.
8048
8049 2013-03-20  Jan Kratochvil  <[email protected]>
8050
8051         Code cleanup.
8052         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8053         * bsd-kvm.c (bsd_kvm_close): Likewise.
8054         * bsd-uthread.c (bsd_uthread_close): Likewise.
8055         * corelow.c (core_close): Likewise.
8056         (core_close_cleanup): Remove parameter quitting from a caller.
8057         * event-top.c (async_disconnect): Likewise.
8058         * exec.c (exec_close_1): Remove parameter quitting.
8059         * go32-nat.c (go32_close): Likewise.
8060         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
8061         parameter quitting from a caller.
8062         * mips-linux-nat.c (super_close): Remove parameter quitting from the
8063         variable.
8064         (mips_linux_close): Remove parameter quitting.  Remove parameter
8065         quitting from a caller.
8066         * monitor.c (monitor_close): Remove parameter quitting.
8067         * monitor.h (monitor_close): Likewise.
8068         * record-btrace.c (record_btrace_close): Likewise.
8069         * record-full.c (record_full_close): Likewise.
8070         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8071         it also from fprintf_unfiltered.
8072         * remote-mips.c (mips_close): Remove parameter quitting.
8073         (mips_detach): Remove parameter quitting from a caller.
8074         * remote-sim.c (gdbsim_close): Remove parameter quitting.
8075         (gdbsim_close): Remove duplicate function comment.  Remove parameter
8076         quitting and remove it also from printf_filtered.
8077         * remote.c (remote_close): Remove parameter quitting.
8078         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8079         * target.c (update_current_target): Remove parameter int from to_close
8080         de_fault.
8081         (push_target, unpush_target, pop_target): Remove parameter quitting from
8082         a caller.
8083         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8084         Remove parameter quitting from a caller.
8085         (target_preopen): Remove parameter quitting from a caller.
8086         (target_close): Remove parameter quitting.  Remove parameter quitting
8087         from a caller two times.  Remove parameter quitting also from
8088         fprintf_unfiltered.
8089         * target.h (struct target_ops): Remove parameter quitting and as int
8090         from fields to_xclose and to_close.
8091         (extern struct target_ops current_target):
8092         (target_close, pop_all_targets): Remove parameter quitting.  Update the
8093         comment.
8094         (pop_all_targets_above): Remove parameter quitting.
8095         * top.c (quit_target): Remove parameter quitting from a caller.
8096         * tracepoint.c (tfile_close): Remove parameter quitting.
8097         * windows-nat.c (windows_close): Remove parameter quitting.
8098
8099 2013-03-20  Corinna Vinschen  <[email protected]>
8100
8101         * windows-nat.c (handle_output_debug_string): Replace call
8102         to string_to_core_addr with call to strtoull.
8103
8104 2013-03-20  Yao Qi  <[email protected]>
8105
8106         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8107         and write it to CTF metadata.
8108
8109 2013-03-19  Corinna Vinschen  <[email protected]>
8110
8111         * windows-nat.c (handle_output_debug_string): Change type of n to
8112         SIZE_T to avoid crash on 64 bit systems.
8113
8114 2013-03-17  Eli Zaretskii  <[email protected]>
8115
8116         * python/python-internal.h (HAVE_SNPRINTF)
8117         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8118         about redefinition of snprintf by pyerrors.h.
8119
8120 2013-03-15  Steve Ellcey  <[email protected]>
8121
8122         * remote-sim.c (sim_command_completer): Make char arguments const.
8123
8124 2013-03-15  Tom Tromey  <[email protected]>
8125
8126         PR c++/15116:
8127         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8128
8129 2013-03-14  Tom Tromey  <[email protected]>
8130
8131         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8132         New fields.
8133         (get_file_crc): Move from symfile.c.
8134         (gdb_bfd_crc): New function.
8135         * gdb_bfd.h (gdb_bfd_crc): Declare.
8136         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8137         * symfile.c (get_file_crc): Move to gdb_bfd.c.
8138         (separate_debug_file_exists): Use gdb_bfd_crc.
8139
8140 2013-03-14  Tom Tromey  <[email protected]>
8141
8142         * symfile.c (get_debug_link_info): Remove.
8143         (find_separate_debug_file_by_debuglink): Use
8144         bfd_get_debug_link_info.
8145
8146 2013-03-14  Tom Tromey  <[email protected]>
8147
8148         * symtab.c (error_in_psymtab_expansion): New function.
8149         (lookup_symbol_aux_quick)
8150         (basic_lookup_transparent_type_quick): Remove "last resort"
8151         code.  Use error_in_psymtab_expansion.
8152
8153 2013-03-14  Doug Evans  <[email protected]>
8154             Jan Kratochvil  <[email protected]>
8155
8156         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8157         any successful compare_filenames_for_search or FILENAME_CMP.
8158         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8159         * symtab.c (iterate_over_some_symtabs): Likewise.
8160
8161 2013-03-14  Jan Kratochvil  <[email protected]>
8162
8163         * source.c (print_source_lines_base): Make a local copy of
8164         symtab_to_fullname.
8165
8166 2013-03-14  Hui Zhu  <[email protected]>
8167             Jan Kratochvil  <[email protected]>
8168
8169         * source.c (print_source_lines_base): Suppress "file" for TUI.
8170
8171 2013-03-14  Keith Seitz  <[email protected]>
8172             Alan Matsuoka  <[email protected]>
8173
8174         PR c++/15203
8175         PR c++/15210
8176         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8177         TYPE_CODE_METHOD.
8178         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8179         symbols.
8180
8181 2013-03-14  Yao Qi  <[email protected]>
8182
8183         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8184         status to tfile if trace is stopped by command 'tstop'.
8185
8186 2013-03-14  Yao Qi  <[email protected]>
8187
8188         * tracepoint.c (tfile_write_status): Write trace notes and user
8189         name into tfile if they are not NULL.
8190
8191 2013-03-14  Hui Zhu  <[email protected]>
8192             Yao Qi  <[email protected]>
8193
8194         * Makefile.in (REMOTE_OBS): Add ctf.o.
8195         (SFILES): Add ctf.c.
8196         (HFILES_NO_SRCDIR): Add ctf.h.
8197         * ctf.c, ctf.h: New files.
8198         * tracepoint.c: Include 'ctf.h'.
8199         (collect_pseudocommand): Remove static.
8200         (trace_save_command): Parse option "-ctf".
8201         Produce different trace file writers per option.
8202         Adjust output message.
8203         (trace_save_tfile, trace_save_ctf): New.
8204         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8205         * mi/mi-main.c: Include 'ctf.h'.
8206         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
8207         trace_save_tfile or trace_save_ctf.
8208         * NEWS: Mention these changes.
8209
8210 2013-03-14  Yao Qi  <[email protected]>
8211
8212         * tracepoint.c (trace_file_writer_xfree): New.
8213         (struct tfile_writer_data): New.
8214         (tfile_dtor, tfile_can_target_save, tfile_start): New.
8215         (tfile_write_header, tfile_write_regblock_type): New.
8216         (tfile_write_status, tfile_write_uploaded_tsv): New.
8217         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8218         (tfile_write_raw_data, (tfile_end): New.
8219         (tfile_write_ops): New global variable.
8220         (TRACE_WRITE_R_BLOCK): New macro.
8221         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8222         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8223         (TRACE_WRITE_V_BLOCK): New macro.
8224         (trace_save): Add extra one parameter WRITER.  Make it static.
8225         Use WRITER to writer trace.
8226         (tfile_trace_file_writer_new): New.
8227         (trace_save_command): Caller update.
8228         (trace_save_tfile): Write trace data in TFILE format.
8229         * tracepoint.h (struct trace_frame_write_ops): New.
8230         (struct trace_file_write_ops): New.
8231         (struct trace_file_writer): New.
8232         (trace_save): Remove its declaration.
8233         (trace_save_tfile): Declare it.
8234         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8235         instead of trace_save.
8236
8237 2013-03-13  Pedro Alves  <[email protected]>
8238
8239         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8240
8241 2013-03-13  Pedro Alves  <[email protected]>
8242
8243         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8244         commented out code.
8245         * demangle.c (current_demangling_style_string): Make it const.
8246         (set_demangling_command): Assert the demangling style is known.
8247         Remove all handling of unknown styles.  Set
8248         'current_demangling_style_string' to an element of the
8249         demangling_style_names array.
8250         (set_demangling_style): Delete.
8251         (_initialize_demangler): Set current_demangling_style_string to the
8252         element of the demangling_style_names array that corresponds to
8253         the default demangling style.  Remove FIXME note.  Don't call
8254         set_demangling_style.
8255         * gdb-demangle.h (set_demangling_style): Remove declaration.
8256
8257 2013-03-13  Pedro Alves  <[email protected]>
8258
8259         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8260         fields const.
8261         (ada_make_symbol_completion_list): Make "text0" parameter const.
8262         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8263         * breakpoint.c (condition_completer): Make "text" and "word"
8264         parameters const.  Adjust.
8265         (check_tracepoint_command): Adjust to validate_actionline
8266         prototype change.
8267         (catch_syscall_completer): Make "text" and "word" parameters
8268         const.
8269         * cli/cli-cmds.c (show_user): Make "comname" local const.
8270         (valid_command_p): Make "command" parameter const.
8271         (alias_command): Make "alias_prefix" and "command_prefix" locals
8272         const.
8273         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8274         (add_alias_cmd): Make "name" and "oldname" parameters const.
8275         Adjust.  No longer make copy of OLDNAME.
8276         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8277         (add_setshow_cmd_full, add_setshow_enum_cmd)
8278         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8279         (add_setshow_filename_cmd, add_setshow_string_cmd)
8280         (add_setshow_string_noescape_cmd)
8281         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8282         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8283         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8284         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8285         Make "name" parameter const.
8286         (help_cmd): Rename "command" parameter to "arg".  New const local
8287         "command".
8288         (find_cmd): Make "command" parameter const.
8289         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
8290         deprecated_cmd_warning prototype change.
8291         (undef_cmd_error): Make "cmdtype" parameter const.
8292         (lookup_cmd): Make "line" parameter const.
8293         (deprecated_cmd_warning): Change type of "text" parameter to
8294         pointer to const char, from pointer to pointer to char.  Adjust.
8295         (lookup_cmd_composition): Make "text" parameter const.
8296         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8297         parameters const.
8298         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8299         const.
8300         * cli/cli-script.c (validate_comname): Make "tem" local const.
8301         (define_command): New const local "tem_c".  Use it in calls to
8302         lookup_cmd.
8303         (document_command): Make "tem" and "comfull" locals const.
8304         (show_user_1): Make "prefix" and "name" parameters const.
8305         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8306         const.
8307         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8308         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8309         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8310         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8311         (complete_on_enum, add_setshow_enum_cmd)
8312         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8313         (add_setshow_filename_cmd, add_setshow_string_cmd)
8314         (add_setshow_string_noescape_cmd)
8315         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8316         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8317         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8318         Change prototypes, constifying strings.
8319         * completer.c (noop_completer, filename_completer): Make "text"
8320         and "prefix" parameters const.
8321         (location_completer, expression_completer)
8322         (complete_line_internal): Make "text" and "prefix" parameters
8323         const and adjust.
8324         (command_completer, signal_completer): Make "text" and "prefix"
8325         parameters const.
8326         * completer.h (noop_completer, filename_completer)
8327         (expression_completer, location_completer, command_completer)
8328         (signal_completer): Change prototypes.
8329         * corefile.c (complete_set_gnutarget): Make "text" and "word"
8330         parameters const.
8331         * cp-abi.c (cp_abi_completer): Likewise.
8332         * expression.h (parse_expression_for_completion): Change
8333         prototype.
8334         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8335         parameters const.
8336         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8337         * infrun.c (handle_completer): Make "text" and "word" parameters
8338         const.
8339         * interps.c (interpreter_completer): Make "text" and "word"
8340         parameters const.
8341         * language.h (struct language_defn)
8342         <la_make_symbol_completion_list>: Make "text" and "word"
8343         parameters const.
8344         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8345         (parse_exp_in_context): Rename to ...
8346         (parse_exp_in_context_1): ... this.
8347         (parse_exp_in_context): Reimplement, with const hack from
8348         parse_exp_1.
8349         (parse_expression_for_completion): Make "string" parameter const.
8350         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8351         to pointer to const char.  Adjust.
8352         (print_command_1): Make "exp" parameter const.
8353         (output_command): Rename to ...
8354         (output_command_const): ... this.  Make "exp" parameter const.
8355         (output_command): Reimplement.
8356         (x_command): Adjust.
8357         (display_command): Rename "exp" parameter to "arg".  New "exp"
8358         local, const version of "arg".
8359         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8360         "cmd_name" local const.
8361         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8362         call.
8363         (cmdpy_completer): Make "text" and "word" parameters const.
8364         (gdbpy_parse_command_name): Make "prefix_text2" local const.
8365         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8366         const.
8367         * remote.c (_initialize_remote): Make "cmd_name" local const.
8368         * symtab.c (language_search_unquoted_string): Make "text" and "p"
8369         parameters const.  Adjust.
8370         (completion_list_add_fields): Make "sym_text", "text" and "word"
8371         parameters const.
8372         (struct add_name_data) <sym_text, text, word>: Make fields const.
8373         (default_make_symbol_completion_list_break_on): Make "text" and
8374         "word" parameters const.  Adjust locals.
8375         (default_make_symbol_completion_list)
8376         (make_symbol_completion_list, make_symbol_completion_type)
8377         (make_symbol_completion_list_fn): Make "text" and "word"
8378         parameters const.
8379         (make_file_symbol_completion_list): Make "text", "word" and
8380         "srcfile" parameters const.  Adjust locals.
8381         (add_filename_to_list): Make "text" and "word" parameters const.
8382         (struct add_partial_filename_data) <text, word>: Make fields
8383         const.
8384         (make_source_files_completion_list): Make "text" and "word"
8385         parameters const.
8386         * symtab.h (default_make_symbol_completion_list_break_on)
8387         (default_make_symbol_completion_list, make_symbol_completion_list)
8388         (make_symbol_completion_type enum type_code)
8389         (make_symbol_completion_list_fn make_file_symbol_completion_list)
8390         (make_source_files_completion_list): Change prototype.
8391         * top.c (execute_command): Adjust to pass pointer to pointer to
8392         const char to lookup_cmd, and to deprecated_cmd_warning prototype
8393         change.
8394         (set_verbose): Make "cmdname" local const.
8395         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8396         and adjust.
8397         (validate_actionline): Make "line" parameter a pointer to const
8398         char, and adjust.
8399         (encode_actions_1): Make "action_exp" local const, and adjust.
8400         (encode_actions): Adjust.
8401         (replace_comma): Delete.
8402         (trace_dump_actions): Make "action_exp" and "next_comma" locals
8403         const, and adjust.  Don't frob the action string while splitting
8404         it at commas.  Instead, make a copy of each split substring in
8405         turn.
8406         (trace_dump_command): Adjust to validate_actionline prototype
8407         change.
8408         * tracepoint.h (decode_agent_options, decode_agent_options)
8409         (encode_actions, validate_actionline): Change prototypes.
8410         * valprint.h (output_command): Delete declaration.
8411         (output_command_const): Declare.
8412         * value.c (function_destroyer): Cast const away in xfree call.
8413
8414 2013-03-13  Pedro Alves  <[email protected]>
8415
8416         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8417         rather than casting 'const char * const *' to 'const char **'.
8418         * ada-lex.l (processInt): Make "trailer" local const.  Remove
8419         'const char **' cast.
8420         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8421         locals, and use those as strtol output pointer, instead than doing
8422         invalid casts to from 'const char **' to 'char **'.
8423         (_initialize_demangle): Remove cast.
8424         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8425         locals, and use those as strtol output pointer, instead than doing
8426         invalid casts to from 'const char **' to 'char **'.
8427         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8428         casts.
8429         * stap-probe.c (stap_parse_register_operand)
8430         (stap_parse_single_operand): Likewise.
8431
8432 2013-03-13  Yao Qi  <[email protected]>
8433
8434         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8435         the last matched 'V' blcok in trace frame.
8436
8437 2013-03-12  Joel Brobecker  <[email protected]>
8438
8439         * NEWS: Create a new section for the next release branch.
8440         Rename the section of the current branch, now that it has
8441         been cut.
8442
8443 2013-03-12  Joel Brobecker  <[email protected]>
8444
8445         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8446         * version.in: Bump version to 7.6.50.20130312-cvs.
8447
8448 2013-03-12  Keith Seitz  <[email protected]>
8449
8450         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8451         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8452         Remove temporary copy of input string.
8453         (mi_execute_command_wrapper): Make "cmd" const.
8454         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8455         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8456         Use const strings.
8457         (mi_parse): Make "cmd" const.
8458         Use const strings.
8459         * mi/mi-parse.h (mi_parse): Make "cmd" const.
8460
8461 2013-03-12  Keith Seitz  <[email protected]>
8462
8463         * ada-lang.c (ada_read_renaming_var_value): Pass const
8464         pointer to expression string to parse_exp_1.
8465         (create_excep_cond_exprs): Likewise.
8466         * ax-gdb.c (agent_eval_command_one): Likewise.
8467         (maint_agent_printf_command): Likewise.
8468         Constify much of the string handling/parsing.
8469         * breakpoint.c (set_breakpoint_condition): Pass const
8470         pointer to expression string to parse_exp_1.
8471         (update_watchpoint): Likewise.
8472         (parse_cmd_to_aexpr): Constify string handling.
8473         Pass const pointer to parse_exp_1.
8474         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8475         (find_condition_and_thread): Likewise.
8476         Make TOK const.
8477         (watch_command_1): Make "arg" const.
8478         Constify string handling.
8479         Copy the expression string instead of changing the input
8480         string.
8481         (update_breakpoint_location): Pass const pointer to
8482         parse_exp_1.
8483         * eval.c (parse_and_eval_address): Make "exp" const.
8484         (parse_to_comma_and_eval): Make "expp" const.
8485         (parse_and_eval): Make "exp" const.
8486         * expression.h (parse_expression): Make argument const.
8487         (parse_exp_1): Make first argument const.
8488         * findcmd.c (parse_find_args): Treat "args" as const.
8489         * linespec.c (parse_linespec): Pass const pointer to
8490         linespec_expression_to_pc.
8491         (linespec_expression_to_pc): Make "exp_ptr" const.
8492         * parse.c (parse_exp_1): Make "stringptr" const.
8493         Make a copy of the expression to pass to parse_exp_in_context until
8494         this whole interface can be constified.
8495         (parse_expression): Make "string" const.
8496         * printcmd.c (ui_printf): Treat "arg" as const.
8497         Handle const strings.
8498         * tracepoint.c (validate_actionline): Pass const pointer to
8499         all calls to parse_exp_1.
8500         (encode_actions_1): Likewise.
8501         * value.h (parse_to_comma_and_eval): Make argument const.
8502         (parse_and_eval_address): Likewise.
8503         (parse_and_eval): Likewise.
8504         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8505         (varobj_set_value): Likewise.
8506         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8507         constify string handling.
8508         Pass const pointers to parse_and_eval_address and
8509         parse_to_comman_and_eval.
8510         * cli/cli-utils.c (skip_to_space): Rename to ...
8511         (skip_to_space_const): ... this. Handle const strings.
8512         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8513         skip_to_space_const.
8514         (skip_to_space_const): Declare.
8515         * common/format.c (parse_format_string): Make "arg" const.
8516         Handle const strings.
8517         * common/format.h (parse_format_string): Make "arg" const.
8518         * gdbserver/ax.c (ax_printf): Make "format" const.
8519         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8520         of the expression string.
8521
8522 2013-03-12  Hui Zhu  <[email protected]>
8523
8524         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8525
8526 2013-03-12  Yao Qi  <[email protected]>
8527             Hui Zhu  <[email protected]>
8528
8529         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8530         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8531         DW_OP_deref_size.
8532
8533 2013-03-12  Paul Hilfinger  <[email protected]>
8534
8535         * ada-lex.l (rules): Only recognize 'thread' as a
8536         delimiter when followed by numerals, as for c-exp.y.
8537         Use new rewind_to_char function to rewind the input for
8538         expression-delimiting tokens.
8539         (rewind_to_char): New function.
8540
8541 2013-03-11  Pedro Alves  <[email protected]>
8542             Jan Kratochvil  <[email protected]>
8543
8544         * configure: Regenerate.
8545         * configure.ac (check dynamic export flag): Link python test with
8546         $PYTHON_LIBS.
8547
8548 2013-03-11  Doug Evans  <[email protected]>
8549             Keith Seitz  <[email protected]>
8550
8551         * linespec.c (find_linespec_symbols): Call find_function_symbols
8552         first, and then call lookup_prefix_sym/find_method.
8553
8554 2013-03-11  Pedro Alves  <[email protected]>
8555
8556         * charset.c (convert_between_encodings): Don't cast between
8557         different pointer to pointer types.  Instead, make the 'inp' local
8558         be of the type iconv expects.
8559         (wchar_iterate): Don't cast between different pointer to pointer
8560         types.  Instead, use new pointer local of the type iconv expects.
8561         * target.c (target_read_stralloc, target_fileio_read_stralloc):
8562         Add new local of type char pointer, and use it to get a
8563         char/string view of the byte buffer, instead of casting between
8564         pointer to pointer types.
8565
8566 2013-03-11  Hafiz Abid Qadeer  <[email protected]>
8567
8568         * remote.c (remote_set_trace_buffer_size): Move != operator
8569         to the start of next line to fix an ARI warning.
8570
8571 2013-03-11  Markus Metzger  <[email protected]>
8572
8573         * NEWS: Add record changes.
8574
8575 2013-03-11  Markus Metzger  <[email protected]>
8576
8577         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8578         the instruction history disassembly.
8579         * disasm.c (dump_insns): Omit the pc prefix, if requested.
8580         * disasm.h (DISASSEMBLY_OMIT_PC): New.
8581
8582 2013-03-11  Markus Metzger  <[email protected]>
8583
8584         * Makefile.in (SFILES): Add record-btrace.c
8585         (COMMON_OBS): Add record-btrace.o
8586         * record-btrace.c: New.
8587         * objfiles.c: Include btrace.h.
8588         (free_objfile): call btrace_free_objfile.
8589
8590 2013-03-11  Markus Metzger  <[email protected]>
8591
8592         * target.c (target_call_history, target_call_history_from,
8593         target_call_history_range): New.
8594         * target.h (target_ops) <to_call_history, to_call_history_from,
8595         to_call_history_range>: New fields.
8596         (target_call_history, target_call_history_from,
8597         target_call_history_range): New declaration.
8598         * record.c (get_call_history_modifiers, cmd_record_call_history,
8599         record_call_history_size): New.
8600         (_initialize_record): Add the "record function-call-history" command.
8601         Add "set/show record function-call-history-size" commands.
8602         * record.h (record_print_flag): New.
8603
8604 2013-03-11  Markus Metzger  <[email protected]>
8605
8606         * target.h (target_ops) <to_insn_history, to_insn_history_from,
8607         to_insn_history_range>: New fields.
8608         (target_insn_history): New.
8609         (target_insn_history_from): New.
8610         (target_insn_history_range): New.
8611         * target.c (target_insn_history): New.
8612         (target_insn_history_from): New.
8613         (target_insn_history_range): New.
8614         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8615         (record_insn_history_size): New.
8616         (get_insn_number): New.
8617         (get_context_size): New.
8618         (no_chunk): New.
8619         (get_insn_history_modifiers): New.
8620         (cmd_record_insn_history): New.
8621         (_initialize_record): Add "set/show record instruction-history-size"
8622         command. Add "record instruction-history" command.
8623
8624 2013-03-11  Markus Metzger  <[email protected]>
8625
8626         * record.h (record_disconnect): New.
8627         (record_detach): New.
8628         (record_mourn_inferior): New.
8629         (record_kill): New.
8630         * record-full.c (record_disconnect, record_detach,
8631         record_mourn_inferior, record_kill): Move to...
8632         * record.c: ...here.
8633         (DEBUG): New.
8634         (record_stop): New.
8635         (record_unpush): New.
8636         (cmd_record_stop): Call record_stop. Replace unpush_target
8637         call with record_unpush call.
8638         (record_disconnect, record_detach): Assert that the target
8639         is of record stratum. Call record_unpush, record_stop, and
8640         DEBUG.
8641         (record_mourn_inferior, record_kill): Assert that the target
8642         is of record stratum. Call record_unpush and DEBUG.
8643
8644 2013-03-11  Markus Metzger  <[email protected]>
8645
8646         * record-full.h, record-full.c (record_memory_query): Rename
8647         to ...
8648         (record_full_memory_query): ...this. Update all users.
8649         (record_arch_list_add_reg): Rename to ...
8650         (record_full_arch_list_add_reg): ...this. Update all users.
8651         (record_arch_list_add_mem): Rename to ...
8652         (record_full_arch_list_add_mem): ...this. Update all users.
8653         (record_arch_list_add_end): Rename to ...
8654         (record_full_arch_list_add_end): ...this. Update all users.
8655         (record_gdb_operation_disable_set): Rename to ...
8656         (record_full_gdb_operation_disable_set): ...this.
8657         Update all users.
8658
8659 2013-03-11  Markus Metzger  <[email protected]>
8660
8661         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8662         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8663         (RECORD_IS_REPLAY): Renamed to ...
8664         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8665         (RECORD_FILE_MAGIC): Renamed to ...
8666         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8667         (record_mem_entry): Renamed to ...
8668         (record_full_mem_entry): ... this. Updated all users.
8669         (record_reg_entry): Renamed to ...
8670         (record_full_reg_entry): ... this. Updated all users.
8671         (record_end_entry): Renamed to ...
8672         (record_full_end_entry): ... this. Updated all users.
8673         (record_type) <record_end, record_reg, record_mem>: Renamed
8674         to ...
8675         (record_full_type) <record_full_end, record_full_reg,
8676         record_full_mem>: ... this. Updated all users.
8677         (record_entry): Renamed to ...
8678         (record_full_entry): ... this. Updated all users.
8679         (record_core_buf_entry): Renamed to ...
8680         (record_full_core_buf_entry): ... this. Updated all users.
8681         (record_core_regbuf): Renamed to ...
8682         (record_full_core_regbuf): ... this. Updated all users.
8683         (record_core_start): Renamed to ...
8684         (record_full_core_start): ... this. Updated all users.
8685         (record_core_end): Renamed to ...
8686         (record_full_core_end): ... this. Updated all users.
8687         (record_core_buf_list): Renamed to ...
8688         (record_full_core_buf_list): ... this. Updated all users.
8689         (record_first): Renamed to ...
8690         (record_full_first): ... this. Updated all users.
8691         (record_list): Renamed to ...
8692         (record_full_list): ... this. Updated all users.
8693         (record_arch_list_head): Renamed to ...
8694         (record_full_arch_list_head): ... this. Updated all users.
8695         (record_arch_list_tail): Renamed to ...
8696         (record_full_arch_list_tail): ... this. Updated all users.
8697         (record_stop_at_limit): Renamed to ...
8698         (record_full_stop_at_limit): ... this. Updated all users.
8699         (record_insn_max_num): Renamed to ...
8700         (record_full_insn_max_num): ... this. Updated all users.
8701         (record_insn_num): Renamed to ...
8702         (record_full_insn_num): ... this. Updated all users.
8703         (record_insn_count): Renamed to ...
8704         (record_full_insn_count): ... this. Updated all users.
8705         (record_ops): Renamed to ...
8706         (record_full_ops): ... this. Updated all users.
8707         (record_core_ops): Renamed to ...
8708         (record_full_core_ops): ... this. Updated all users.
8709         (set_record_cmdlist): Renamed to ...
8710         (set_record_full_cmdlist): ... this. Updated all users.
8711         (show_record_cmdlist): Renamed to ...
8712         (show_record_full_cmdlist): ... this. Updated all users.
8713         (record_cmdlist): Renamed to ...
8714         (record_full_cmdlist): ... this. Updated all users.
8715         (record_beneath_to_resume_ops): Renamed to ...
8716         (record_full_beneath_to_resume_ops): ... this. Updated all users.
8717         (record_beneath_to_resume): Renamed to ...
8718         (record_full_beneath_to_resume): ... this. Updated all users.
8719         (record_beneath_to_wait_ops): Renamed to ...
8720         (record_full_beneath_to_wait_ops): ... this. Updated all users.
8721         (record_beneath_to_wait): Renamed to ...
8722         (record_full_beneath_to_wait): ... this. Updated all users.
8723         (record_beneath_to_store_registers_ops): Renamed to ...
8724         (record_full_beneath_to_store_registers_ops): ... this.
8725         Updated all users.
8726         (record_beneath_to_store_registers): Renamed to ...
8727         (record_full_beneath_to_store_registers): ... this.
8728         Updated all users.
8729         (record_beneath_to_xfer_partial_ops): Renamed to ...
8730         (record_full_beneath_to_xfer_partial_ops): ... this.
8731         Updated all users.
8732         (record_beneath_to_xfer_partial): Renamed to ...
8733         (record_full_beneath_to_xfer_partial): ... this.
8734         Updated all users.
8735         (record_beneath_to_insert_breakpoint): Renamed to ...
8736         (record_full_beneath_to_insert_breakpoint): ... this.
8737         Updated all users.
8738         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8739         (record_full_beneath_to_stopped_by_watchpoint): ... this.
8740         Updated all users.
8741         (record_beneath_to_stopped_data_address): Renamed to ...
8742         (record_full_beneath_to_stopped_data_address): ... this.
8743         Updated all users.
8744         (record_beneath_to_async): Renamed to ...
8745         (record_full_beneath_to_async): ... this. Updated all users.
8746         (record_goto_insn): Renamed to ...
8747         (record_full_goto_insn): ... this. Updated all users.
8748         (record_save): Renamed to ...
8749         (record_full_save): ... this. Updated all users.
8750         (record_reg_alloc): Renamed to ...
8751         (record_full_reg_alloc): ... this. Updated all users.
8752         (record_reg_release): Renamed to ...
8753         (record_full_reg_release): ... this. Updated all users.
8754         (record_mem_alloc): Renamed to ...
8755         (record_full_mem_alloc): ... this. Updated all users.
8756         (record_mem_release): Renamed to ...
8757         (record_full_mem_release): ... this. Updated all users.
8758         (record_end_alloc): Renamed to ...
8759         (record_full_end_alloc): ... this. Updated all users.
8760         (record_end_release): Renamed to ...
8761         (record_full_end_release): ... this. Updated all users.
8762         (record_entry_release): Renamed to ...
8763         (record_full_entry_release): ... this. Updated all users.
8764         (record_list_release): Renamed to ...
8765         (record_full_list_release): ... this. Updated all users.
8766         (record_list_release_following): Renamed to ...
8767         (record_full_list_release_following): ... this.
8768         Updated all users.
8769         (record_list_release_first): Renamed to ...
8770         (record_full_list_release_first): ... this. Updated all users.
8771         (record_arch_list_add): Renamed to ...
8772         (record_full_arch_list_add): ... this. Updated all users.
8773         (record_get_loc): Renamed to ...
8774         (record_full_get_loc): ... this. Updated all users.
8775         (record_check_insn_num): Renamed to ...
8776         (record_full_check_insn_num): ... this. Updated all users.
8777         (record_arch_list_cleanups): Renamed to ...
8778         (record_full_arch_list_cleanups): ... this. Updated all users.
8779         (record_message): Renamed to ...
8780         (record_full_message): ... this. Updated all users.
8781         (record_message_wrapper): Renamed to ...
8782         (record_full_message_wrapper): ... this. Updated all users.
8783         (record_message_wrapper_safe): Renamed to ...
8784         (record_full_message_wrapper_safe): ... this. Updated all users.
8785         (record_gdb_operation_disable): Renamed to ...
8786         (record_full_gdb_operation_disable): ... this. Updated all users.
8787         (record_hw_watchpoint): Renamed to ...
8788         (record_full_hw_watchpoint): ... this. Updated all users.
8789         (record_exec_insn): Renamed to ...
8790         (record_full_exec_insn): ... this. Updated all users.
8791         (record_restore): Renamed to ...
8792         (record_full_restore): ... this. Updated all users.
8793         (record_async_inferior_event_token): Renamed to ...
8794         (record_full_async_inferior_event_token): ... this.
8795         Updated all users.
8796         (record_async_inferior_event_handler): Renamed to ...
8797         (record_full_async_inferior_event_handler): ... this.
8798         Updated all users.
8799         (record_core_open_1): Renamed to ...
8800         (record_full_core_open_1): ... this. Updated all users.
8801         (record_open_1): Renamed to ...
8802         (record_full_open_1): ... this. Updated all users.
8803         (record_open): Renamed to ...
8804         (record_full_open): ... this. Updated all users.
8805         (record_close): Renamed to ...
8806         (record_full_close): ... this. Updated all users.
8807         (record_resume_step): Renamed to ...
8808         (record_full_resume_step): ... this. Updated all users.
8809         (record_resumed): Renamed to ...
8810         (record_full_resumed): ... this. Updated all users.
8811         (record_execution_dir): Renamed to ...
8812         (record_full_execution_dir): ... this. Updated all users.
8813         (record_resume): Renamed to ...
8814         (record_full_resume): ... this. Updated all users.
8815         (record_get_sig): Renamed to ...
8816         (record_full_get_sig): ... this. Updated all users.
8817         (record_sig_handler): Renamed to ...
8818         (record_full_sig_handler): ... this. Updated all users.
8819         (record_wait_cleanups): Renamed to ...
8820         (record_full_wait_cleanups): ... this. Updated all users.
8821         (record_wait_1): Renamed to ...
8822         (record_full_wait_1): ... this. Updated all users.
8823         (record_wait): Renamed to ...
8824         (record_full_wait): ... this. Updated all users.
8825         (record_stopped_by_watchpoint): Renamed to ...
8826         (record_full_stopped_by_watchpoint): ... this. Updated all users.
8827         (record_disconnect): Renamed to ...
8828         (record_full_disconnect): ... this. Updated all users.
8829         (record_detach): Renamed to ...
8830         (record_full_detach): ... this. Updated all users.
8831         (record_mourn_inferior): Renamed to ...
8832         (record_full_mourn_inferior): ... this. Updated all users.
8833         (record_kill): Renamed to ...
8834         (record_full_kill): ... this. Updated all users.
8835         (record_stopped_data_address): Renamed to ...
8836         (record_full_stopped_data_address): ... this. Updated all users.
8837         (record_registers_change): Renamed to ...
8838         (record_full_registers_change): ... this. Updated all users.
8839         (record_store_registers): Renamed to ...
8840         (record_full_store_registers): ... this. Updated all users.
8841         (record_xfer_partial): Renamed to ...
8842         (record_full_xfer_partial): ... this. Updated all users.
8843         (record_breakpoint): Renamed to ...
8844         (record_full_breakpoint): ... this. Updated all users.
8845         (record_breakpoint_p): Renamed to ...
8846         (record_full_breakpoint_p): ... this. Updated all users.
8847         (record_breakpoints): Renamed to ...
8848         (record_full_breakpoints): ... this. Updated all users.
8849         (record_sync_record_breakpoints): Renamed to ...
8850         (record_full_sync_record_breakpoints): ... this.
8851         Updated all users.
8852         (record_init_record_breakpoints): Renamed to ...
8853         (record_full_init_record_breakpoints): ... this.
8854         Updated all users.
8855         (record_insert_breakpoint): Renamed to ...
8856         (record_full_insert_breakpoint): ... this. Updated all users.
8857         (record_remove_breakpoint): Renamed to ...
8858         (record_full_remove_breakpoint): ... this. Updated all users.
8859         (record_can_execute_reverse): Renamed to ...
8860         (record_full_can_execute_reverse): ... this. Updated all users.
8861         (record_get_bookmark): Renamed to ...
8862         (record_full_get_bookmark): ... this. Updated all users.
8863         (record_goto_bookmark): Renamed to ...
8864         (record_full_goto_bookmark): ... this. Updated all users.
8865         (record_async): Renamed to ...
8866         (record_full_async): ... this. Updated all users.
8867         (record_can_async_p): Renamed to ...
8868         (record_full_can_async_p): ... this. Updated all users.
8869         (record_is_async_p): Renamed to ...
8870         (record_full_is_async_p): ... this. Updated all users.
8871         (record_execution_direction): Renamed to ...
8872         (record_full_execution_direction): ... this. Updated all users.
8873         (record_info): Renamed to ...
8874         (record_full_info): ... this. Updated all users.
8875         (record_delete): Renamed to ...
8876         (record_full_delete): ... this. Updated all users.
8877         (record_is_replaying): Renamed to ...
8878         (record_full_is_replaying): ... this. Updated all users.
8879         (record_goto_entry): Renamed to ...
8880         (record_full_goto_entry): ... this. Updated all users.
8881         (record_goto_begin): Renamed to ...
8882         (record_full_goto_begin): ... this. Updated all users.
8883         (record_goto_end): Renamed to ...
8884         (record_full_goto_end): ... this. Updated all users.
8885         (record_goto): Renamed to ...
8886         (record_full_goto): ... this. Updated all users.
8887         (init_record_ops): Renamed to ...
8888         (init_record_full_ops): ... this. Updated all users.
8889         (record_core_resume): Renamed to ...
8890         (record_full_core_resume): ... this. Updated all users.
8891         (record_core_kill): Renamed to ...
8892         (record_full_core_kill): ... this. Updated all users.
8893         (record_core_fetch_registers): Renamed to ...
8894         (record_full_core_fetch_registers): ... this. Updated all users.
8895         (record_core_prepare_to_store): Renamed to ...
8896         (record_full_core_prepare_to_store): ... this. Updated all users.
8897         (record_core_store_registers): Renamed to ...
8898         (record_full_core_store_registers): ... this. Updated all users.
8899         (record_core_xfer_partial): Renamed to ...
8900         (record_full_core_xfer_partial): ... this. Updated all users.
8901         (record_core_insert_breakpoint): Renamed to ...
8902         (record_full_core_insert_breakpoint): ... this. Updated all users.
8903         (record_core_remove_breakpoint): Renamed to ...
8904         (record_full_core_remove_breakpoint): ... this. Updated all users.
8905         (record_core_has_execution): Renamed to ...
8906         (record_full_core_has_execution): ... this. Updated all users.
8907         (init_record_core_ops): Renamed to ...
8908         (init_record_full_core_ops): ... this. Updated all users.
8909         (cmd_record_restore): Renamed to ...
8910         (cmd_record_full_restore): ... this. Updated all users.
8911         (record_save_cleanups): Renamed to ...
8912         (record_full_save_cleanups): ... this. Updated all users.
8913         (cmd_record_start): Renamed to ...
8914         (cmd_record_full_start): ... this. Updated all users.
8915         (set_record_insn_max_num): Renamed to ...
8916         (set_record_full_insn_max_num): ... this. Updated all users.
8917         (set_record_command): Renamed to ...
8918         (set_record_full_command): ... this. Updated all users.
8919         (show_record_command): Renamed to ...
8920         (show_record_full_command): ... this. Updated all users.
8921         (_initialize_record): Renamed to ...
8922         (_initialize_record_full): ... this. Updated all users.
8923
8924 2013-03-11  Markus Metzger  <[email protected]>
8925
8926         * record.h: Split into this and ...
8927         * record-full.h: ... this.
8928         * record.c: Split into this and ...
8929         * record-full.c: ... this.
8930         * target.h (target_ops): Add new fields to_info_record,
8931         to_save_record, to_delete_record, to_record_is_replaying,
8932         to_goto_record_begin, to_goto_record_end, to_goto_record.
8933         (target_info_record): New.
8934         (target_save_record): New.
8935         (target_supports_delete_record): New.
8936         (target_delete_record): New.
8937         (target_record_is_replaying): New.
8938         (target_goto_record_begin): New.
8939         (target_goto_record_end): New.
8940         (target_goto_record): New.
8941         * target.c (target_info_record): New.
8942         (target_save_record): New.
8943         (target_supports_delete_record): New.
8944         (target_delete_record): New.
8945         (target_record_is_replaying): New.
8946         (target_goto_record_begin): New.
8947         (target_goto_record_end): New.
8948         (target_goto_record): New.
8949         * record.h: Declare struct cmd_list_element.
8950         (record_cmdlist): New declaration.
8951         (set_record_cmdlist): New declaration.
8952         (show_record_cmdlist): New declaration.
8953         (info_record_cmdlist): New declaration.
8954         (cmd_record_goto): New declaration.
8955         * record.c: Remove unnecessary includes.
8956         Include inferior.h.
8957         (cmd_record_goto): Remove declaration.
8958         (record_cmdlist): Now extern. Initialize.
8959         (set_record_cmdlist): Now extern. Initialize.
8960         (show_record_cmdlist): Now extern. Initialize.
8961         (info_record_cmdlist): Now extern. Initialize.
8962         (find_record_target): New.
8963         (require_record_target): New.
8964         (cmd_record_start): Update.
8965         (cmd_record_delete): Remove target-specific code.
8966         Call target_delete_record.
8967         (cmd_record_stop): Unpush any record target.
8968         (set_record_insn_max_num): Move to record-full.c
8969         (set_record_command): Add comment.
8970         (show_record_command): Add comment.
8971         (info_record_command): Update comment.
8972         Remove target-specific code.
8973         Call the record target's to_info_record.
8974         (cmd_record_start): New.
8975         (cmd_record_goto): Now extern.
8976         Remove target-specific code.
8977         Call target_goto_begin,  target_goto_end, or target_goto.
8978         (_initialize_record): Move record target ops initialization to
8979         record-full.c.
8980         Change "record" command help text.
8981         Move "record restore", "record set", and "record show" commands to
8982         record-full.c.
8983         * Makefile.in (SFILES): Add record-full.c.
8984         (HFILES_NO_SRCDIR): Add record-full.h.
8985         (COMMON_OBS): Add record-full.o.
8986         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8987         * arm-tdep.c: Include record-full.h.
8988         * i386-linux-tdep.c: Include record-full.h instead of record.h.
8989         * i386-tdep.c: Include record-full.h.
8990         * infrun.c: Include record-full.h.
8991         * linux-record.c: Include record-full.h.
8992         * moxie-tdep.c: Include record-full.h.
8993         * record-full.c: Include record-full.h.
8994         Change module comment.
8995         (set_record_full_cmdlist): New.
8996         (show_record_full_cmdlist): New.
8997         (record_full_cmdlist): New.
8998         (record_goto_insn): New declaration.
8999         (record_save): New declaration.
9000         (record_check_insn_num): Change query string.
9001         (record_info): New.
9002         (record_delete): New.
9003         (record_is_replaying): New.
9004         (record_goto_entry): New.
9005         (record_goto_begin): New.
9006         (record_goto_end): New.
9007         (record_goto): New.
9008         (init_record_ops): Update.
9009         (init_record_core_ops): Update.
9010         (cmd_record_save): Rename to record_save. Remove target and arg checks.
9011         (cmd_record_start): New.
9012         (set_record_insn_max_num): Moved from record.c
9013         (set_record_full_command): New.
9014         (show_record_full_command): New.
9015         (_initialize_record_full): New.
9016
9017 2013-03-11  Markus Metzger  <[email protected]>
9018
9019         * target.h (add_deprecated_target_alias): New.
9020         * target.c (add_deprecated_target_alias): New.
9021
9022 2013-03-11  Markus Metzger  <[email protected]>
9023
9024         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9025         and signal.h.
9026         (linux_supports_btrace): Add kernel and
9027         cpuid check.
9028         (kernel_supports_btrace): New function.
9029         (cpu_supports_btrace): New function.
9030         (intel_supports_btrace): New function.
9031
9032 2013-03-11  Markus Metzger  <[email protected]>
9033
9034         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9035         * remote.c: Include btrace.h.
9036         (struct btrace_target_info): New struct.
9037         (remote_supports_btrace): New function.
9038         (send_Qbtrace): New function.
9039         (remote_enable_btrace): New function.
9040         (remote_disable_btrace): New function.
9041         (remote_teardown_btrace): New function.
9042         (remote_read_btrace): New function.
9043         (init_remote_ops): Add btrace ops.
9044         (enum <unnamed>): Add btrace packets.
9045         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9046         (_initialize_remote): Add packet configuration for branch tracing.
9047
9048 2013-03-11  Markus Metzger  <[email protected]>
9049
9050         * features/btrace.dtd: New file.
9051         * Makefile.in (XMLFILES): Add btrace.dtd.
9052         * btrace.h (parse_xml_btrace): New declaration.
9053         * btrace.c: Include xml-support.h.
9054         (parse_xml_btrace): New function.
9055         (parse_xml_btrace_block): New function.
9056         (block_attributes): New struct.
9057         (btrace_attributes): New struct.
9058         (btrace_children): New struct.
9059         (btrace_elements): New struct.
9060
9061 2013-03-11  Markus Metzger  <[email protected]>
9062
9063         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9064         (amd64_linux_enable_btrace): New.
9065         (amd64_linux_disable_btrace): New.
9066         (amd64_linux_teardown_btrace): New.
9067         (_initialize_amd64_linux_nat): Initialize btrace ops.
9068         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9069         (i386_linux_enable_btrace): New.
9070         (i386_linux_disable_btrace): New.
9071         (i386_linux_teardown_btrace): New.
9072         (_initialize_i386_linux_nat): Initialize btrace ops.
9073         * config/i386/linux.mh: Add linux-btrace.o.
9074         * config/i386/linux64.mh: Add linux-btrace.o.
9075
9076 2013-03-11  Markus Metzger  <[email protected]>
9077
9078         * common/linux_btrace.h: New file.
9079         * common/linux_btrace.c: New file.
9080         * Makefile.in (SFILES): Add btrace.c.
9081         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9082         (COMMON_OBS): Add btrace.o.
9083         (linux-btrace.o): New rule.
9084
9085 2013-03-11  Markus Metzger  <[email protected]>
9086
9087         * target.h: Include btrace.h.
9088         (struct target_ops) <to_supports_btrace, to_enable_btrace,
9089         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9090         * target.c (target_supports_btrace): New function.
9091         (target_enable_btrace): New function.
9092         (target_disable_btrace): New function.
9093         (target_teardown_btrace): New function.
9094         (target_read_btrace): New function.
9095         * btrace.h: New file.
9096         * btrace.c: New file.
9097         * Makefile.in: Add btrace.c.
9098         * gdbthread.h: Include btrace.h.
9099         (struct thread_info): Add btrace field.
9100         * thread.c: Include btrace.h.
9101         (clear_thread_inferior_resources): Call target_teardown_btrace.
9102         * common/btrace-common.h: New file.
9103
9104 2013-03-10  Jan Kratochvil  <[email protected]>
9105
9106         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9107         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9108         kill_status to outer block.
9109
9110 2013-03-10  Jan Kratochvil  <[email protected]>
9111
9112         Fix entry-values if the callee called a noreturn function.
9113         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9114         get_frame_address_in_block.  Add new comment.
9115
9116 2013-03-10  Jan Kratochvil  <[email protected]>
9117
9118         Fix entry-values in C++ across CUs.
9119         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9120         lookup_minimal_symbol.  Add a comment.
9121         * dwarf2read.c
9122         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9123         DW_AT_linkage_name.
9124
9125 2013-03-08  Yao Qi  <[email protected]>
9126
9127         * tracepoint.c (_initialize_tracepoint): Indent the code.
9128
9129 2013-03-08  Pedro Alves  <[email protected]>
9130
9131         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9132         (parse_find_args, find_command): Change type of pattern buffer
9133         locals to 'gdb_byte *'.
9134
9135 2013-03-08  Stan Shebs  <[email protected]>
9136             Hafiz Abid Qadeer  <[email protected]>
9137
9138         * NEWS: Mention set and show trace-buffer-size commands.
9139         Mention new packet.
9140         * target.h (struct target_ops): New method
9141         to_set_trace_buffer_size.
9142         (target_set_trace_buffer_size): New macro.
9143         * target.c (update_current_target): Set up new method.
9144         * tracepoint.c (trace_buffer_size): New global.
9145         (start_tracing): Send it to the target.
9146         (set_trace_buffer_size): New function.
9147         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9148         * remote.c (remote_set_trace_buffer_size): New function.
9149         (_initialize_remote): Use it.
9150         (QTBuffer:size) New remote command.
9151         (PACKET_QTBuffer_size): New enum.
9152         (remote_protocol_features): Add an entry for
9153         PACKET_QTBuffer_size.
9154
9155 2013-03-08  Tom Tromey  <[email protected]>
9156
9157         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9158         variable.
9159
9160 2013-03-07  Pedro Alves  <[email protected]>
9161
9162         * target.c (target_read_stralloc, target_fileio_read_alloc):
9163         *Cast pointer to 'gdb_byte *' in target call.
9164
9165 2013-03-07  Pedro Alves  <[email protected]>
9166
9167         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9168         call.
9169
9170 2013-03-07  Keith Seitz  <[email protected]>
9171
9172         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9173         (trace_pass_command): Likewise.
9174         * cli/cli-cmds.c: Include cli/cli-utils.h.
9175         (source_command): Use skip-spaces.
9176         (disassemble_command): Likewise.
9177         * findcmd.c: Include cli/cli-utils.h.
9178         (parse_find_args): Use skip_spaces.
9179         * go32-nat.c: Include cli/cli-utils.h.
9180         (go32_sldt): Use skip_spaces.
9181         (go32_sgdt): Likewise.
9182         (go32_sidt): Likewise.
9183         (go32_pde): Likewise.
9184         (go32_pte): Likewise.
9185         (go32_pte_for_address): Likewise.
9186         * infcmd.c: Include cli/cli-utils.h.
9187         (registers_info): Use skip_spaces.
9188         * linux-tdep.c (read_mapping): Use skip_spaces_const.
9189         (linux_info_proc): Likewise.
9190         * linux-thread-db.c: Include cli/cli-utils.h.
9191         (info_auto_load_libthread_db): Use skip_spaces_const.
9192         * m32r-rom.c: Include cli/cli-utils.h.
9193         (m32r_upload_command): Use skip_spaces.
9194         * maint.c: Include cli/cli-utils.h.
9195         (maintenance_translate_address): Use skip_spaces.
9196         * mi/mi-parse.c: Include cli/cli-utils.h.
9197         (mi_parse_argv): Use skip_spaces.
9198         (mi_parse): Likewise.
9199         * minsyms.c: Include cli/cli-utils.h.
9200         (msymbol_hash_iw): Use skip_spaces_const.
9201         * objc-lang.c: Include cli/cli-utils.h.
9202         (parse_selector): Use skip_spaces.
9203         (parse_method): Likewise.
9204         * python/python.c: Include cli/cli-utils.h.
9205         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9206         (python_command)[HAVE_PYTHON]: Likewise.
9207         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9208         * remote-m32r-sdi.c: Include cli/cli-utils.h.
9209         (m32r_load): Use skip_spaces.
9210         * serial.c: Include cli/cli-utils.h.
9211         (serial_open): Use skip_spaces_const.
9212         * stack.c: Include cli/cli-utils.h.
9213         (parse_frame_specification_1): Use skip_spaces_const.
9214         * symfile.c: Include cli/cli-utils.h.
9215         (set_ext_lang_command): Use skip_spaces.
9216         * symtab.c: Include cli/cli-utils.h.
9217         (rbreak_command): Use skip_spaces.
9218         * thread.c (thread_name_command): Use skip_spaces.
9219         * tracepoint.c (validate_actionline): Use skip_spaces.
9220         (encode_actions_1): Likewise.
9221         (trace_find_range_command): Likewise.
9222         (trace_find_outside_command): Likewise.
9223         (trace_dump_actions): Likewise.
9224
9225 2013-03-07  Pedro Alves  <[email protected]>
9226
9227         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9228         * expprint.c (print_subexp_standard): Likewise.
9229         * utils.c (host_char_to_target): Likewise.
9230         * valprint.c (generic_emit_char, generic_printstr): Likewise.
9231         * varobj.c (value_get_print_value): Change type of local to char*.
9232         Cast it gdb_byte * in call to language printer.
9233
9234 2013-03-07  Pedro Alves  <[email protected]>
9235
9236         * charset.c (struct wchar_iterator) <input>: Change type to 'const
9237         gdb_byte *'.
9238         (make_wchar_iterator): Remove cast to char*.
9239         (wchar_iterate): Change type of local.
9240
9241 2013-03-07  Pedro Alves  <[email protected]>
9242
9243         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9244         for 'regcache->register_status'.
9245
9246 2013-03-07  Pedro Alves  <[email protected]>
9247
9248         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9249         int.
9250
9251 2013-03-07  Pedro Alves  <[email protected]>
9252
9253         * stap-probe.c (handle_stap_probe): Add cast to char*.
9254
9255 2013-03-07  Pedro Alves  <[email protected]>
9256
9257         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9258         RECORD_MSGRCV>: Pass a signed variable to
9259         regcache_raw_read_signed, instead of an unsigned one.
9260
9261 2013-03-07  Pedro Alves  <[email protected]>
9262
9263         * remote-notif.c (notif_debug): Change type to int.
9264         * remote-notif.h (notif_debug): Likewise.
9265
9266 2013-03-07  Pedro Alves  <[email protected]>
9267
9268         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9269
9270 2013-03-07  Pedro Alves  <[email protected]>
9271
9272         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9273         * remote.h (hex2bin, bin2hex): ... here.
9274         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9275
9276 2013-03-07  Eli Zaretskii  <[email protected]>
9277
9278         * utils.c (initialize_utils): Improve doc strings of "set/show
9279         width", "set/show height", and "set/show pagination".
9280
9281 2013-03-06  Keith Seitz  <[email protected]>
9282
9283         * ax-gdb.c (gen_printf): Make FORMAT const.
9284         * ax-gdb.h (gen_printf): Likewise.
9285         * ax-general.c (ax_string): Make STR const.
9286         * ax.h (ax_string): Likewise.
9287
9288 2013-03-06  Doug Evans  <[email protected]>
9289
9290         * elfread.c (elf_symfile_read): Move debugging printf to more
9291         logical location.
9292
9293 2013-03-06  Pedro Alves  <[email protected]>
9294
9295         * python/py-utils.c (target_string_to_unicode): Delete function.
9296         * python/python-internal.h (target_string_to_unicode): Delete
9297         declaration.
9298
9299 2013-03-06  Pierre Muller  <[email protected]>
9300
9301         * linespec.c (get_current_search_block): ARI fix, use (void)
9302         for empty parameter list.
9303
9304 2013-03-05  Doug Evans  <[email protected]>
9305
9306         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9307         of old ada_lookup_symbol_list.  In !full_search case, don't
9308         search superblocks.
9309         (ada_lookup_symbol_list): Delete arg full_search, all callers
9310         updated.  Call ada_lookup_symbol_list_worker.
9311         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9312         * ada-lang.h (ada_lookup_symbol_list): Update.
9313         * language.h (language_defn): Update comment for
9314         la_iterate_over_symbols.
9315         * linespec.c (iterate_over_file_blocks): New function.
9316         (iterate_over_all_matching_symtabs): Call it.
9317         (lookup_prefix_sym): Ditto.
9318         (get_current_search_block): New function.
9319         (get_search_block): Delete.
9320         (find_label_symbols): Call get_current_search_block.
9321         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9322         * symtab.c (iterate_over_symbols): Don't search superblocks.
9323
9324 2013-03-05  Yao Qi  <[email protected]>
9325
9326         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9327         parameter VAR's type from "unsigned int" to "int".
9328         * command.h (var_zuinteger_unlimited): Update its comments.
9329         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9330
9331 2013-03-05  Corinna Vinschen  <[email protected]>
9332
9333         * NEWS: Mention new target x86_64-*-cygwin*.
9334
9335 2013-03-05  Corinna Vinschen  <[email protected]>
9336
9337         * configure.host: Add x86_64-*-cygwin* as host.
9338         * configure.tgt: Add x86_64-*-cygwin* as target.
9339         * config/i386/cygwin64.mh: New file.
9340
9341 2013-03-04  Jan Kratochvil  <[email protected]>
9342
9343         * linespec.c (decode_line_2): Fix duplicate request off by two message.
9344
9345 2013-03-04  Jan Kratochvil  <[email protected]>
9346
9347         * linespec.c (struct linespec_canonical_name): New.
9348         (struct linespec_state): Change canonical_names type to it.
9349         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
9350         xrealloc element size.  Initialize the different CANONICAL fields.
9351         (canonical_to_fullform): New.
9352         (filter_results): Use it.  Add variables canonical, fullform and
9353         cleanup.
9354         (struct decode_line_2_item, decode_line_2_compare_items): New.
9355         (decode_line_2): Remove variables iter and item_names, add variables
9356         items and items_count.  Modify the code for these new variables.
9357
9358 2013-03-04  Corinna Vinschen  <[email protected]>
9359
9360         * coff-pe-read.c (read_pe_exported_syms): Don't return without
9361         calling do_cleanup.
9362
9363 2013-03-04  Luis Machado  <[email protected]>
9364
9365         * tracepoint.c (build_traceframe_info): Add code for byte order.
9366
9367 2013-03-02  Kevin Buettner  <[email protected]>
9368
9369         * v850-tdep.c: (v850e2_register_name): Revise system register
9370         names to match current V850E2M architecture specifications.
9371         Update register number enum comments too.
9372
9373 2013-03-01  Jiong Wang  <[email protected]>
9374             Pedro Alves  <[email protected]>
9375
9376         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9377         to END_ADDR.
9378         (tilegx_skip_prologue): Limit prologue analysis to section end.
9379
9380 2013-03-01  Jan Kratochvil  <[email protected]>
9381
9382         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9383         use it.
9384
9385 2013-03-01  Pedro Alves  <[email protected]>
9386
9387         Use gdb_byte for bytes from the program being debugged.
9388
9389         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9390         Change type of local 'buf' to gdb_byte.
9391         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9392         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9393         * cris-tdep.c (cris_sigcontext_addr)
9394         (cris_sigtramp_frame_unwind_cache): Likewise.
9395         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9396         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9397         Likewise.
9398         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9399         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9400         (hppa32_hpux_search_dummy_call_sequence)
9401         (hppa_hpux_supply_save_state): Likewise.
9402         * hppa-linux-tdep.c (insns_match_pattern)
9403         (hppa_linux_find_global_pointer): Likewise.
9404         * hppa-tdep.c (hppa_in_function_epilogue_p)
9405         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9406         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9407         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9408         (i386fbsd_collect_uthread): Likewise.
9409         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9410         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9411         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9412         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9413         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9414         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9415         (ia64_libunwind_frame_prev_register)
9416         (ia64_libunwind_sigtramp_frame_this_id)
9417         (ia64_find_global_pointer_from_dynamic_section)
9418         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9419         (ia64_unwind_pc): Likewise.
9420         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9421         * m68hc11-tdep.c (m68hc11_push_dummy_call)
9422         (m68hc11_extract_return_value): Likewise.
9423         * m68klinux-nat.c (fetch_register, store_register): Likewise.
9424         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9425         (mep_get_insn, mep_push_dummy_call): Likewise.
9426         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9427         (mips_linux_in_dynsym_stub): Likewise.
9428         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9429         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9430         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9431         to gdb_byte.
9432         * remote-mips.c (mips_set_register): Likewise.
9433         * remote-sim.c (gdbsim_fetch_register): Likewise.
9434         * score-tdep.c (score7_fetch_inst): Change type of parameter
9435         'memblock' and local 'buf' to gdb_byte.
9436         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9437         Change type of local 'buf' to gdb_byte.  Adjust.
9438         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9439         to gdb_byte**.
9440         (score7_analyze_prologue): Change type of 'memblock' and
9441         'memblock_ptr' locals to gdb_byte*.
9442         * sh64-tdep.c (sh64_extract_return_value)
9443         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9444         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9445         * solib-pa64.c (pa64_solib_create_inferior_hook)
9446         (pa64_open_symbol_file_object): Remove local 'buf'.
9447         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9448         (som_open_symbol_file_object): Likewise.
9449         * solib-spu.c (spu_current_sos): Likewise.
9450         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9451         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9452         (spu_store_registers): Likewise.
9453         * target.c (debug_print_register): Likewise.
9454         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9455         * xstormy16-tdep.c (xstormy16_store_return_value)
9456         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9457         (xstormy16_find_jmp_table_entry): Likewise.
9458
9459 2013-03-01  Jiong Wang  <[email protected]>
9460
9461         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9462         (tilegx_gdbarch_init): Install it.
9463
9464 2013-02-28  Tom Tromey  <[email protected]>
9465
9466         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9467         PyLong_Check.
9468
9469 2013-02-28  Doug Evans  <[email protected]>
9470
9471         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9472         * python/python.c (gdbpy_find_pc_line): Ditto.
9473
9474 2013-02-28  Tom Tromey  <[email protected]>
9475
9476         * contrib/excheck.py: New file.
9477         * contrib/exsummary.py: New file.
9478         * contrib/gcc-with-excheck: New file.
9479
9480 2013-02-28  Tom Tromey  <[email protected]>
9481
9482         * python/python.c (gdbpy_print_stack): Call begin_line and
9483         fprintf_filtered inside TRY_CATCH.
9484
9485 2013-02-28  Tom Tromey  <[email protected]>
9486
9487         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9488         inside TRY_CATCH.
9489
9490 2013-02-28  Tom Tromey  <[email protected]>
9491
9492         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9493         frame_object_to_frame_info inside TRY_CATCH.
9494
9495 2013-02-28  Tom Tromey  <[email protected]>
9496
9497         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9498         TRY_CATCH.
9499
9500 2013-02-28  Tom Tromey  <[email protected]>
9501
9502         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9503
9504 2013-02-27  Corinna Vinschen  <[email protected]>
9505
9506         * windows-nat.c: Throughout, fix format strings and casts of
9507         printf-like functions to avoid type related warnings on all
9508         platforms.
9509         (handle_output_debug_string): Fetch context information address
9510         from debug string using string_to_core_addr.
9511
9512 2013-02-27  Jiong Wang  <[email protected]>
9513
9514         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9515         * regformats/reg-tilegx32.dat: New.
9516
9517 2013-02-27  Jiong Wang  <[email protected]>
9518
9519         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9520
9521 2013-02-27  Jiong Wang  <[email protected]>
9522
9523         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9524
9525 2013-02-27  Yao Qi  <[email protected]>
9526             Pedro Alves  <[email protected]>
9527
9528         * tracepoint.c (tfile_trace_find): For tfind
9529         pc/tp/range/outside, look for the next trace frame instead of
9530         always starting from frame 0.
9531
9532 2013-02-26  Anthony Green  <[email protected]>
9533
9534         * configure.tgt: Add support for moxie-*-rtems* target.
9535
9536 2013-02-25  Pedro Alves  <[email protected]>
9537
9538         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9539         warning text.
9540
9541 2013-02-24  Maciej W. Rozycki  <[email protected]>
9542
9543         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9544         if $fp is used as the virtual frame pointer.
9545
9546 2013-02-23  Alan Modra  <[email protected]>
9547
9548         * elfread.c (elf_symtab_read): Do not use udata.p here to find
9549         symbol size.
9550         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9551         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9552         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9553         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9554
9555 2013-02-22  Jan Kratochvil  <[email protected]>
9556
9557         Code cleanup.
9558         * elfread.c (build_id_bfd_get): Make the return type const.
9559         (build_id_verify): Make the check parameter const.
9560         (build_id_to_debug_filename): Make the build_id parameter and variable
9561         data const.
9562         (find_separate_debug_file_by_buildid): Make the variable build_id const.
9563
9564 2013-02-21  Alan Modra  <[email protected]>
9565
9566         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9567
9568 2013-02-20  Siva Chandra Reddy  <[email protected]>
9569
9570         Add a new method 'disassemble' to gdb.Architecture class.
9571         * python/py-arch.c (archpy_disassmble): Implementation of the
9572         new method gdb.Architecture.disassemble.
9573         (arch_object_methods): Add entry for the new method.
9574
9575 2013-02-20  Jiong Wang  <[email protected]>
9576
9577         * MAINTAINERS (Write After Approval): Add myself to the list.
9578
9579 2013-02-19  Pedro Alves  <[email protected]>
9580
9581         Garbage collect 'struct monitor_ops'::load_routine.
9582
9583         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9584         * monitor.c (monitor_load): No longer call
9585         current_monitor->load_routine.
9586         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9587         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9588         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9589
9590 2013-02-19  Pedro Alves  <[email protected]>
9591
9592         PR gdb/15161
9593
9594         Harmonize with generic_load.
9595
9596         * monitor.c: Include "readline/readline.h".
9597         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
9598         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
9599         long/strtol for the 'load_offset' local.  Error out if no argument
9600         is given or if too many arguments are given.  Tilde expand the
9601         passed in file name.
9602
9603 2013-02-19  Kai Tietz  <[email protected]>
9604
9605         PR gdb/15161
9606         * symfile.c (load_section_data): Change type of load_offset
9607         to CORE_ADDR.
9608         (generic_load): User strtoulst instead of strtoul for conversion
9609         of load_offset.
9610
9611 2013-02-19  Jiong Wang  <[email protected]>
9612
9613         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9614          for return address, "lr" register, saved on stack.
9615         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9616         after we invoke tilegx_analyze_prologue.
9617
9618 2013-02-19  Jiong Wang  <[email protected]>
9619
9620         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9621
9622 2013-02-19  Jiong Wang  <[email protected]>
9623
9624         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9625
9626 2013-02-19  Jiong Wang  <[email protected]>
9627
9628         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9629         (tilegx_write_pc): New function.
9630         (tilegx_cannot_reference_register): Return zero if REGNO
9631         is TILEGX_FAULTNUM_REGNUM.
9632         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9633         (tilegx_register_name): Add handling of "faultnum" register.
9634         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9635         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9636         handling of TILEGX_FAULTNUM_REGNUM.
9637         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9638
9639 2013-02-19  Jiong Wang  <[email protected]>
9640
9641         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9642         should be aligned to 64bit.
9643
9644 2013-02-19  Kai Tietz  <[email protected]>
9645
9646         * windows-nat.c (windows_xfer_memory): Fix debug-output
9647         for LLP64.
9648
9649 2013-02-19  Lei Liu  <[email protected]>
9650
9651         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9652         Don't check DSP register number if HAVE_DSP is not set.
9653
9654 2013-02-19  Alan Modra  <[email protected]>
9655
9656         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
9657         throughout file instead.
9658         (build_id_bfd_get): Update to use new elf_tdata build_id field.
9659         Don't xmalloc return value.
9660         (build_id_verify): Similarly.  Don't xfree.
9661         (build_id_to_debug_filename): Update.
9662         (find_separate_debug_file_by_buildid): Update, don't xfree.
9663
9664 2013-02-18  Tom Tromey  <[email protected]>
9665
9666         PR gdb/15102:
9667         * dwarf2read.c (read_subrange_type): Use result of
9668         'check_typedef'.
9669
9670 2013-02-16  Yuanhui Zhang  <[email protected]>
9671
9672         * frame.c: Remove one extra white space after #include
9673         directive.
9674
9675 2013-02-15  Jan Kratochvil  <[email protected]>
9676
9677         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9678
9679 2013-02-15  Jan Kratochvil  <[email protected]>
9680
9681         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9682         and dir commands into an if block.
9683
9684 2013-02-15  Sanimir Agovic  <[email protected]>
9685
9686         * python/py-breakpoint (struct pybp_code):  Use int instead of
9687         enum type_code.
9688
9689 2013-02-15  Pedro Alves  <[email protected]>
9690             Hafiz Abid Qadeer  <[email protected]>
9691
9692         * NEWS: Mention new field "trace-file".
9693         * tracepoint.c (trace_status_mi): Output "trace-file" field.
9694         (tfile_open): Record the trace file's filename in the trace
9695         status.
9696         (tfile_files_info): Mention the name of the trace file.
9697         Check the "filename" field explicitely.
9698         (trace_status_command): Explicitely check "filename" field.
9699         (trace_find_command): Ditto.
9700         (trace_find_pc_command): Ditto.
9701         (trace_find_tracepoint_command): Ditto.
9702         (trace_find_line_command): Ditto.
9703         (trace_find_range_command): Ditto.
9704         (trace_find_outside_command): Ditto.
9705         * tracepoint.h (struct trace_status) <from_file>: Rename it
9706         to "filename" and make it hold the trace file's filename
9707         instead of a boolean.
9708         * remote.c (remote_get_trace_status): Initialize "filename"
9709         field with NULL instead of 0.
9710
9711 2013-02-15  Yao Qi  <[email protected]>
9712
9713         * remote.c: Fix a typo.
9714
9715 2013-02-14  Pierre Muller  <[email protected]>
9716
9717         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9718
9719 2013-02-14  Pedro Alves  <[email protected]>
9720
9721         * utils.c (savestring): Don't #undef it.  Move function to
9722         common/common-utils.c.
9723         * common/common-utils.c: Include gdb_string.h.
9724         (savestring): Move here from utils.c.
9725         * common/common-utils.h (savestring): Declare.
9726
9727 2013-02-14  Pedro Alves  <[email protected]>
9728
9729         * utils.c (savestring): Rename parameter 'size' to 'len'.
9730
9731 2013-02-14  Pedro Alves  <[email protected]>
9732             Yufeng Zhang  <[email protected]>
9733
9734         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9735         (aarch64_inferior_data, struct aarch64_inferior_data):
9736         Delete.
9737         (struct aarch64_process_info): New.
9738         (aarch64_process_list): New global.
9739         (aarch64_find_process_pid, aarch64_add_process)
9740         (aarch64_process_info_get): New functions.
9741         (aarch64_inferior_data_get): Delete.
9742         (aarch64_process_info_get): New function.
9743         (aarch64_forget_process): New function.
9744         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
9745         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9746         aarch64_get_debug_reg_state.
9747         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9748         instead of linux_nat_iterate_watchpoint_lwps.
9749         (aarch64_linux_new_fork): New function.
9750         (aarch64_linux_child_post_startup_inferior): Use
9751         aarch64_forget_process instead of aarch64_init_debug_reg_state.
9752         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9753         (aarch64_linux_remove_hw_breakpoint)
9754         (aarch64_handle_aligned_watchpoint)
9755         (aarch64_handle_unaligned_watchpoint)
9756         (aarch64_linux_insert_watchpoint)
9757         (aarch64_linux_remove_watchpoint)
9758         (aarch64_linux_stopped_data_address): Adjust to pass the current
9759         process id to aarch64_debug_reg_state.
9760         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9761         linux_nat_new_fork hook, and aarch64_forget_process as
9762         linux_nat_forget_process hook; remove the call to
9763         register_inferior_data_with_cleanup.
9764
9765 2013-02-14  Pedro Alves  <[email protected]>
9766
9767         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9768         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9769         lval_memory.
9770
9771 2013-02-14  Pedro Alves  <[email protected]>
9772             Hafiz Abid Qadeer  <[email protected]>
9773
9774         * tracepoint.h (validate_trace_state_variable_name): Declare.
9775         * tracepoint.c (validate_trace_state_variable_name): New.
9776         (trace_variable_command): Parse the trace state variable's name
9777         without using parse_expression.  Do several validations.
9778         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9779         trace state variable's name with parse_expression.  Validate it.
9780
9781 2013-02-14  Yao Qi  <[email protected]>
9782
9783         * infcmd.c (breakpoint_proceeded): Remove it.
9784
9785 2013-02-14  Yao Qi  <[email protected]>
9786
9787         * tracepoint.c (end_actions_pseudocommand): Make it static.
9788         (while_stepping_pseudocommand): Likewise.
9789         * tracepoint.h (end_actions_pseudocommand): Remove the
9790         declaration.
9791         (while_stepping_pseudocommand): Likewise.
9792
9793 2013-02-14  Yao Qi  <[email protected]>
9794
9795         * cli/cli-decode.c (help_cmd): Remove the declaration of
9796         "cmdlist".
9797         (help_all): Likewise.
9798
9799 2013-02-13  Pedro Alves  <[email protected]>
9800
9801         * amd64-linux-nat.c (update_debug_registers_callback):
9802         Update comment.
9803         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9804         iterate_over_lwps.
9805         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9806         i386_debug_reg_state.
9807         (amd64_linux_new_fork): New function.
9808         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9809         linux_nat_new_fork hook, and i386_forget_process as
9810         linux_nat_forget_process hook.
9811         * i386-linux-nat.c (update_debug_registers_callback):
9812         Update comment.
9813         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9814         iterate_over_lwps.
9815         (i386_linux_prepare_to_resume): Pass the lwp's pid to
9816         i386_debug_reg_state.
9817         (i386_linux_new_fork): New function.
9818         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9819         linux_nat_new_fork hook, and i386_forget_process as
9820         linux_nat_forget_process hook.
9821         * i386-nat.c (i386_init_dregs): Delete.
9822         (i386_inferior_data, struct i386_inferior_data):
9823         Delete.
9824         (struct i386_process_info): New.
9825         (i386_process_list): New global.
9826         (i386_find_process_pid, i386_add_process, i386_process_info_get):
9827         New functions.
9828         (i386_inferior_data_get): Delete.
9829         (i386_process_info_get): New function.
9830         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
9831         (i386_forget_process): New function.
9832         (i386_cleanup_dregs): Rewrite.
9833         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9834         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9835         (i386_stopped_data_address, i386_insert_hw_breakpoint)
9836         (i386_remove_hw_breakpoint): Adjust to pass the current process id
9837         to i386_debug_reg_state.
9838         (i386_use_watchpoints): Don't register inferior data.
9839         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9840         adjust comment.
9841         (i386_forget_process): Declare.
9842         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9843         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9844         New static globals.
9845         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9846         (add_initial_lwp): New, factored out from ...
9847         (add_lwp): ... this.  Don't check the number of lwps before
9848         calling linux_nat_new_thread.
9849         (linux_nat_iterate_watchpoint_lwps): Delete.
9850         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9851         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9852         forks and vforks.
9853         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9854         initial lwp.
9855         (linux_nat_kill, linux_nat_mourn_inferior): Call
9856         linux_nat_forget_process.
9857         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9858         (linux_nat_forget_process): New functions.
9859         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9860         type.
9861         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9862         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9863         types.
9864         (linux_nat_set_new_fork, linux_nat_set_forget_process)
9865         (linux_nat_forget_process): New declarations.
9866
9867         * amd64fbsd-nat.c (super_mourn_inferior): New global.
9868         (amd64fbsd_mourn_inferior): New function.
9869         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9870         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9871
9872 2013-02-13  Marcus Shawcroft  <[email protected]>
9873
9874         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9875         Adding _().
9876
9877 2013-02-13  Marcus Shawcroft  <[email protected]>
9878
9879         * aarch64-linux-nat.c (debug_reg_change_callback)
9880         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9881         %s and phex().
9882
9883 2013-02-13  Marcus Shawcroft  <[email protected]>
9884
9885         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9886         with LONGEST.
9887
9888 2013-02-13  Pedro Alves  <[email protected]>
9889             Hafiz Abid Qadeer  <[email protected]>
9890
9891         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9892
9893 2013-02-12  Tom Tromey  <[email protected]>
9894
9895         PR symtab/11464:
9896         * c-exp.y (lex_one_token): Initialize other fields of yylval on
9897         NAME return.
9898         (classify_inner_name): Remove 'first_name' argument, add
9899         'context'.  Remove unused variable.
9900         (yylex): Explicitly maintain the context type.  Exit loop earlier
9901         if NAME result is seen.
9902
9903 2013-02-12  Pedro Alves  <[email protected]>
9904
9905         * amd64-darwin-tdep.c: Add (C) after Copyright.
9906         * cli/cli-cmds.h: Ditto.
9907         * cli/cli-decode.c: Ditto.
9908         * cli/cli-decode.h: Ditto.
9909         * cli/cli-dump.c: Ditto.
9910         * cli/cli-dump.h: Ditto.
9911         * cli/cli-interp.c: Ditto.
9912         * cli/cli-logging.c: Ditto.
9913         * cli/cli-script.c: Ditto.
9914         * cli/cli-script.h: Ditto.
9915         * cli/cli-setshow.c: Ditto.
9916         * cli/cli-setshow.h: Ditto.
9917         * cli/cli-utils.c: Ditto.
9918         * cli/cli-utils.h: Ditto.
9919         * config/alpha/nm-osf3.h: Ditto.
9920         * config/djgpp/djconfig.sh: Ditto.
9921         * config/i386/nm-fbsd.h: Ditto.
9922         * config/i386/nm-i386gnu.h: Ditto.
9923         * config/nm-linux.h: Ditto.
9924         * config/nm-nto.h: Ditto.
9925         * config/rs6000/nm-rs6000.h: Ditto.
9926         * config/sparc/nm-sol2.h: Ditto.
9927         * darwin-nat-info.c: Ditto.
9928         * dfp.c: Ditto.
9929         * dfp.h: Ditto.
9930         * gdb-demangle.h: Ditto.
9931         * i386-darwin-nat.c: Ditto.
9932         * i386-darwin-tdep.c: Ditto.
9933         * linux-fork.h: Ditto.
9934         * m32c-tdep.c: Ditto.
9935         * microblaze-linux-tdep.c: Ditto.
9936         * microblaze-rom.c: Ditto.
9937         * microblaze-tdep.c: Ditto.
9938         * microblaze-tdep.h: Ditto.
9939         * mips-linux-tdep.h: Ditto.
9940         * ppc-ravenscar-thread.c: Ditto.
9941         * ppc-ravenscar-thread.h: Ditto.
9942         * prologue-value.c: Ditto.
9943         * prologue-value.h: Ditto.
9944         * ravenscar-thread.c: Ditto.
9945         * ravenscar-thread.h: Ditto.
9946         * sparc-ravenscar-thread.c: Ditto.
9947         * sparc-ravenscar-thread.h: Ditto.
9948         * tilegx-linux-tdep.c: Ditto.
9949         * unwind_stop_reasons.def: Ditto.
9950         * windows-nat.h: Ditto.
9951         * xtensa-linux-tdep.c: Ditto.
9952         * xtensa-xtregs.c: Ditto.
9953         * regformats/regdat.sh: Ditto.
9954         * regformats/regdef.h: Ditto.
9955
9956 2013-02-12  Pedro Alves  <[email protected]>
9957
9958         * break-catch-sig.c: Update copyright years.
9959
9960 2013-02-11  Siva Chandra Reddy  <[email protected]>
9961
9962         Add support for a destructor for ui_out data and use it to
9963         provide a ui_out destructor.
9964         * ui-out.h: Declare the new ui_out destructor.
9965         (ui_out_impl): Add a field for data destructor in ui_out_impl.
9966         * ui-out.c (default_data_destroy): Add a default data destructor
9967         which does nothing.
9968         (default_ui_out_impl): Set the new data_destroy field to
9969         default_data_destroy
9970         (uo_data_destroy): Local function which invokes the data
9971         destructor if present.
9972         (clear_table): Local function which clears the table data of a
9973         ui_out object.
9974         (ui_out_destroy): Public function which frees a ui_out object.
9975         (ui_out_table_end): Use the new clear_table function.
9976         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9977         NULL.
9978         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9979         to NULL.
9980
9981 2013-02-11  Doug Evans  <[email protected]>
9982
9983         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9984         (printf_decfloat): New function.  Broken out from ui_printf.
9985         Remove unnecessary code to shift the entire format string down.
9986         (printf_pointer): New function.
9987         (ui_printf): Code to print C strings, wide C strings, decfloats,
9988         and pointers moved to separate functions.
9989
9990 2013-02-11  Sergio Durigan Junior  <[email protected]>
9991
9992         * valops.c (value_assign): Handling bitfield offset in
9993         `lval_internalvar_component' case.
9994
9995 2013-02-08  Doug Evans  <[email protected]>
9996
9997         * common/format.c (parse_format_string): Fix whitespace.
9998
9999 2013-02-08  Matthew Gretton-Dann  <[email protected]>
10000
10001         * stack.c (return_command): Work around uninitialized variable
10002         warning.
10003
10004 2013-02-08  Yufeng Zhang  <[email protected]>
10005
10006         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10007         number of the registers from 36 to 34.
10008
10009 2013-02-08  Marcus Shawcroft  <[email protected]>
10010
10011         * NEWS: Mention new AArch64 native and target support.
10012
10013 2013-02-08  Marcus Shawcroft  <[email protected]>
10014
10015         * MAINTAINERS (Write After Approval): Add myself.
10016
10017 2013-02-08  Jim MacArthur  <[email protected]>
10018             Marcus Shawcroft  <[email protected]>
10019             Nigel Stephens  <[email protected]>
10020             Yufeng Zhang  <[email protected]>
10021
10022         * aarch64-linux-nat.c: New file.
10023         * config/aarch64/linux.mh: New file.
10024         * configure.host: Add AArch64.
10025         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10026
10027 2013-02-07  Doug Evans  <[email protected]>
10028
10029         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10030         disassemble command.
10031
10032 2013-02-07  Marcus Shawcroft  <[email protected]>
10033
10034         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10035         set_gdbarch_fetch_tls_load_module_address.
10036
10037 2013-02-06  David S. Miller  <[email protected]>
10038
10039         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10040         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10041         * value.c (struct_return_convention): New function.
10042         (using_struct_return): Implement in terms of struct_return_convention.
10043         * value.h (struct_return_convention): Declare.
10044         * stack.c (return_command): Allow successful overriding of the return
10045         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10046
10047 2013-02-06  Tom Tromey  <[email protected]>
10048
10049         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10050         outside of TRY_CATCH.
10051
10052 2013-02-06  Yao Qi  <[email protected]>
10053
10054         * mi/mi-interp.c: Include "tracepoint.h".
10055         (mi_tsv_modified): Declare.
10056         (mi_tsv_created, mi_tsv_deleted): Update declaration.
10057         (mi_interpreter_init): Call observer_attach_tsv_modified.
10058         (mi_tsv_modified): New.
10059         (mi_tsv_created, mi_tsv_deleted): Update.
10060         * tracepoint.c (trace_variable_command): Call
10061         observer_notify_tsv_modified if the initial value of tsv is
10062         changed.
10063         (delete_trace_state_variable): Call
10064         observer_notify_tsv_deleted earlier.
10065         (trace_variable_command): Caller update.
10066         (create_tsv_from_upload): Likewise.
10067         * observer.sh: Declare "struct trace_state_variable".
10068
10069         * NEWS: Mention the new MI notification "=tsv-modified".
10070
10071 2013-02-05  Doug Evans  <[email protected]>
10072
10073         * completer.c (location_completer): Fix typo in comment.
10074
10075 2013-02-05  Jan Kratochvil  <[email protected]>
10076
10077         * breakpoint.c (add_location_to_breakpoint): Insert the location with
10078         ADDRESS sorted.
10079
10080 2013-02-05  Marcus Shawcroft  <[email protected]>
10081
10082         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10083         Refactor if statement to avoid trailing || operator.
10084
10085 2013-02-05  Andreas Tobler  <[email protected]>
10086
10087         * NEWS: Add PowerPC FreeBSD as a new native configuration.
10088
10089 2013-02-04  Andreas Tobler  <[email protected]>
10090
10091         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10092         * configure.host: Add powerpc*-*-freebsd* target.
10093         * configure.tgt: Add target info for powerpc*-*-freebsd*.
10094         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10095         * config/powerpc/fbsd.mh: New file.
10096
10097 2013-02-04  Sergio Durigan Junior  <[email protected]>
10098             Denys Vlasenko  <[email protected]>
10099             Pedro Alves  <[email protected]>
10100
10101         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10102         (struct elf_internal_linux_prpsinfo): Forward declare.
10103         * gdbarch.h, gdbarch.c: Regenerate.
10104         * linux-tdep.c: Include `cli/cli-utils.h'.
10105         (linux_fill_prpsinfo): New function.
10106         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
10107         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10108         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10109         depending on gdbarch pointer bitness.
10110         * ppc-linux-tdep.c: Include elf-bfd.h.
10111         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10112         on 32-bit.
10113
10114 2013-02-04  Jim MacArthur  <[email protected]>
10115             Marcus Shawcroft  <[email protected]>
10116             Nigel Stephens  <[email protected]>
10117             Yufeng Zhang  <[email protected]>
10118
10119         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10120
10121 2013-02-04  Jim MacArthur  <[email protected]>
10122             Marcus Shawcroft  <[email protected]>
10123             Nigel Stephens  <[email protected]>
10124             Yufeng Zhang  <[email protected]>
10125
10126         * aarch64-newlib-tdep.c: New file.
10127         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10128         aarch64*-*-elf.
10129         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10130         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10131         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10132         * osabi.c (gdb_osabi_names): Add "Newlib".
10133
10134 2013-02-04  Jim MacArthur  <[email protected]>
10135             Marcus Shawcroft  <[email protected]>
10136             Nigel Stephens  <[email protected]>
10137             Yufeng Zhang  <[email protected]>
10138
10139         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10140         (ALLDEPFILES): Add aarch64-linux-tdep.c.
10141         * aarch64-linux-tdep.c: New file.
10142         * aarch64-linux-tdep.h: New file.
10143         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10144         * configure.tgt: Add aarch64-none-linux-gnu.
10145
10146 2013-02-04  Jim MacArthur  <[email protected]>
10147             Marcus Shawcroft  <[email protected]>
10148             Nigel Stephens  <[email protected]>
10149             Yufeng Zhang  <[email protected]>
10150
10151         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10152         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10153         (ALLDEPFILES): Add aarch64-tdep.c.
10154         * aarch64-tdep.c: New file.
10155         * aarch64-tdep.h: New file.
10156         * configure.tgt: Add AArch64.
10157         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10158         (aarch64-expedite): New definition.
10159         * features/aarch64-core.xml: New file.
10160         * features/aarch64-fpu.xml: New file.
10161         * features/aarch64-without-fpu.c: New file (generated).
10162         * features/aarch64-without-fpu.xml: New file.
10163         * features/aarch64.c: New file (generated).
10164         * features/aarch64.xml: New file.
10165         * regformats/aarch64-without-fpu.dat: New file (generated).
10166         * regformats/aarch64.dat: New file (generated).
10167
10168 2013-02-03  Jan Kratochvil  <[email protected]>
10169
10170         * contrib/expect-read1.c: New file.
10171         * contrib/expect-read1.sh: New file.
10172
10173 2013-02-03  Jan Kratochvil  <[email protected]>
10174
10175         * dwarf2read.c (file_file_name): New function with code from
10176         file_full_name.
10177         (file_full_name): Move most of the code to file_file_name.
10178         (macro_start_file): Rename variable full_name to file_name and use
10179         file_file_name for it.  Add comp_dir parameter to new_macro_table.
10180         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
10181         macro_source_file->filename access by macro_source_fullname call.
10182         * macroscope.c (_initialize_macroscope): Update the new_macro_table
10183         caller.
10184         * macrotab.c (struct macro_table): New field comp_dir.
10185         (macro_include): New variables link_fullname and source_fullname.
10186         Replace any macro_source_file->filename access by macro_source_fullname
10187         call.
10188         (macro_lookup_inclusion): Remove the partial filenames checking code.
10189         (check_for_redefinition): New variables source_fullname and
10190         found_key_fullname.  Replace any macro_source_file->filename access by
10191         macro_source_fullname call.
10192         (macro_undef): New variables source_fullname and key_fullname.  Replace
10193         any macro_source_file->filename access by macro_source_fullname call.
10194         (macro_lookup_definition): New variables retval and source_fullname.
10195         Replace any macro_source_file->filename access by macro_source_fullname
10196         call.
10197         (foreach_macro): New variable key_fullname.  Replace any
10198         macro_source_file->filename access by macro_source_fullname call.
10199         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
10200         macro_source_file->filename access by macro_source_fullname call.
10201         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
10202         (macro_source_fullname): New function.
10203         * macrotab.h (struct macro_source_file): Extent the filename field
10204         comment.
10205         (new_macro_table): New parameter comp_dir, add a comment for it.
10206         (macro_source_fullname): new declaration.
10207
10208 2013-02-03  Jan Kratochvil  <[email protected]>
10209
10210         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10211         this_real_name to outer block.  Use it also for
10212         compare_filenames_for_search.
10213         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
10214         with dw2_get_real_path for file_matcher, considering also
10215         BASENAMES_MAY_DIFFER.
10216         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10217
10218 2013-02-03  Jan Kratochvil  <[email protected]>
10219
10220         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10221         to the file_matcher parameter.  Pass 0 to it.
10222         (dwarf2_create_include_psymtab): Copy also DIRNAME.
10223         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10224         NULL psymtab_to_fullname result.
10225         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
10226         an expected filename instead.
10227         (expand_symtabs_matching_via_partial): Add basenames parameter to the
10228         file_matcher parameter.  Call also psymtab_to_fullname, after newly
10229         considering BASENAMES_MAY_DIFFER.
10230         * source.c (rewrite_source_path): Remove static.
10231         * source.h (rewrite_source_path): New declaration.
10232         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10233         the expand_symtabs_matching field.  Comment it.
10234         * symtab.c (file_matches): New function comment.  Add parameter
10235         basenames, implement it.
10236         (search_symbols_file_matches): Add basenames parameter.  Update the
10237         file_matches caller.
10238         (search_symbols): Match FILES also against symtab_to_fullname.
10239         Optimize it for BASENAMES_MAY_DIFFER.
10240
10241 2013-02-03  Jan Kratochvil  <[email protected]>
10242
10243         * source.c (print_source_lines_base): Print for TUI also "fullname".
10244         * tui/tui-data.c (init_content_element): Change tui_locator_element
10245         field to full_name.
10246         * tui/tui-data.h (struct tui_locator_element): Likewise.
10247         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10248         tui_update_locator_filename calls to tui_update_locator_fullname.
10249         Replace symtab->filename refererence by symtab_to_fullname call.
10250         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10251         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10252         field to full_name.  Replace symtab->filename refererence by
10253         symtab_to_fullname call.
10254         (tui_show_symtab_source): Rename parameter to fullname.  Change
10255         tui_locator_element field to full_name.
10256         * tui/tui-stack.c: Include source.h.
10257         (tui_set_locator_filename): Rename the declaration to ...
10258         (tui_set_locator_fullname): ... here.  Rename its parameter to
10259         fullname, updates its comment.
10260         (tui_set_locator_info): Rename its parameter to fullname.
10261         (tui_set_locator_filename): Rename the definition to ...
10262         (tui_set_locator_fullname): ... here.  Rename its parameter to
10263         fullname, updates its comment.  Change tui_locator_element field to
10264         full_name.
10265         (tui_set_locator_info): Rename its parameter to fullname.
10266         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10267         (tui_update_locator_filename): Rename to ...
10268         (tui_update_locator_fullname): ... here. Rename callee to
10269         tui_set_locator_fullname.
10270         (tui_show_frame_info): Replace symtab->filename refererence by
10271         symtab_to_fullname call.
10272         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10273         (tui_update_locator_fullname): ... here.
10274         * tui/tui-winsource.c (tui_display_main): Rename the callee to
10275         tui_update_locator_fullname.  Replace symtab->filename refererence by
10276         symtab_to_fullname call.
10277         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10278         Rename the callee to tui_update_locator_fullname.
10279         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10280
10281 2013-02-03  Jan Kratochvil  <[email protected]>
10282
10283         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10284         by symtab_to_filename_for_display calls.
10285         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10286         (clear_command): New variable sal_fullname, initialize it.  Replace
10287         compare_filenames_for_search by filename_cmp with sal_fullname.
10288         (say_where, update_static_tracepoint): Replace symtab->filename
10289         refererences by symtab_to_filename_for_display calls.
10290         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10291         Likewise.
10292         * dwarf2read.c: Include source.h.
10293         (fixup_go_packaging): Replace symtab->filename refererences by
10294         symtab_to_filename_for_display calls.
10295         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10296         Replace symtab->filename refererences by symtab_to_filename_for_display
10297         calls.
10298         (create_sals_line_offset, convert_linespec_to_sals): New variable
10299         fullname, initialize it, replace symtab->filename reference by the
10300         variable.
10301         * linux-fork.c: Include source.h.
10302         (info_checkpoints_command): Replace symtab->filename refererences by
10303         symtab_to_filename_for_display calls.
10304         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10305         by symtab_to_filename_for_display calls.
10306         * mdebugread.c: Include source.h.
10307         (psymtab_to_symtab_1): Replace symtab->filename refererences by
10308         symtab_to_filename_for_display calls.
10309         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10310         (mi_cmd_file_list_exec_source_files): Likewise.
10311         * printcmd.c: Include source.h.
10312         (build_address_symbolic): Replace symtab->filename refererences by
10313         symtab_to_filename_for_display calls.
10314         * psymtab.c (partial_map_symtabs_matching_filename)
10315         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10316         with psymtab_to_fullname.
10317         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10318         by symtab_to_filename_for_display calls.
10319         (stpy_get_filename): New variable filename, initialize it, use instead
10320         of symtab->filename refererences.
10321         (salpy_str): Make variable filename const char *.  Replace
10322         symtab->filename refererences by symtab_to_filename_for_display calls.
10323         * skip.c: Include source.h and filenames.h.
10324         (skip_file_command): Remove const from the symtab variable.  Replace
10325         symtab->filename refererences by symtab_to_fullname call.
10326         (function_name_is_marked_for_skip): New variables searched_for_fullname
10327         and fullname.  Use them to search also with symtab's fullname.
10328         * source.c (find_source_lines): Replace symtab->filename refererences
10329         by symtab_to_filename_for_display calls.
10330         (print_source_lines_base): New variable filename, use it instead of
10331         symtab->filename.  Replace symtab->filename refererences by
10332         symtab_to_filename_for_display calls.
10333         (line_info, forward_search_command): Replace symtab->filename
10334         refererences by symtab_to_filename_for_display calls.
10335         (reverse_search_command): Replace symtab->filename refererences by
10336         symtab_to_filename_for_display calls.  New variable filename for it.
10337         * stack.c (frame_info): Likewise.
10338         * symmisc.c: Include source.h.
10339         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10340         (maintenance_info_symtabs): Replace symtab->filename refererences by
10341         symtab_to_filename_for_display calls.
10342         * symtab.c (iterate_over_some_symtabs): Call
10343         compare_filenames_for_search also with symtab_to_fullname.
10344         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10345         symtab->filename refererences by symtab_to_filename_for_display calls.
10346         (find_line_symtab): Replace symtab->filename refererences by
10347         symtab_to_filename_for_display calls.
10348         (file_matches): Replace filename_cmp by compare_filenames_for_search.
10349         (print_symbol_info): Make the last parameter const char *.  New
10350         variable s_filename.  Use it in the function.
10351         (symtab_symbol_info): Make the last_filename variable const char *.
10352         Replace symtab->filename refererences by symtab_to_filename_for_display
10353         calls.
10354         (rbreak_command): New variable fullname.  Use it.  Replace
10355         symtab->filename refererence by symtab_to_filename_for_display call.
10356         * tracepoint.c (set_traceframe_context, trace_find_line_command)
10357         (print_one_static_tracepoint_marker): Replace symtab->filename
10358         refererences by symtab_to_filename_for_display calls.
10359         * tui/tui-source.c (tui_set_source_content): New variables filename and
10360         s_filename.  Replace symtab->filename refererences by this variable.
10361         Replace other symtab->filename refererences by
10362         symtab_to_filename_for_display calls.
10363
10364 2013-02-03  Eldar Gaynetdinov <[email protected]>
10365             Jan Kratochvil  <[email protected]>
10366
10367         Add a new variable that controls a way in which filenames are
10368         displayed.
10369         * NEWS (set filename-display): New entry.
10370         * source.c (filename_display_basename, filename_display_relative)
10371         (filename_display_absolute, filename_display_kind_names)
10372         (filename_display_string, show_filename_display_string)
10373         (symtab_to_filename_for_display): New.
10374         (_initialize_source): Added initialization of 'filename-display'
10375         variable.
10376         * source.h (symtab_to_filename_for_display): Added declaration.
10377         * stack.c (print_frame): Added new variable and calling of a new
10378         function and condition with this variable. Changed third argument of
10379         calling of a function.
10380
10381 2013-02-03  Jan Kratochvil  <[email protected]>
10382
10383         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10384         Rename field reference filename to fullname.
10385         * tui/tui-data.h (struct tui_source_info): Rename field filename to
10386         fullname.  New comment for it.
10387         * tui/tui-source.c (tui_set_source_content): Rename field reference
10388         filename to fullname.  Initialize field by symtab_to_fullname now.
10389         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10390         reference filename to fullname.  Use symtab_to_fullname during
10391         comparison.
10392
10393 2013-02-03  Jan Kratochvil  <[email protected]>
10394
10395         Code cleanup.
10396         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10397         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
10398         filename to fullname.  Rename variable this_name to this_fullname.
10399         Lowercase FILENAME_CMP call.
10400         (dw2_find_symbol_file): New comment for the returned string.
10401         (dwarf2_gdb_index_functions): Rename the function to
10402         dw2_expand_symtabs_with_fullname.
10403         * psymtab.c (read_psymtabs_with_filename): Rename to ...
10404         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
10405         fullname.
10406         (psym_functions): Rename the function to read_psymtabs_with_fullname.
10407         * symfile.h (struct quick_symbol_functions): Rename field
10408         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10409         parameter filename to fullname.  Document returned string meaning for
10410         find_symbol_file.
10411         * symtab.c (find_line_symtab): Rename the called function to
10412         expand_symtabs_with_fullname.
10413
10414 2013-02-03  Jan Kratochvil  <[email protected]>
10415
10416         Code cleanup.
10417         * breakpoint.c (clear_command): Remove variable is_abs, unify the
10418         call of filename_cmp with compare_filenames_for_search.
10419         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10420         is_abs, unify the call of FILENAME_CMP with
10421         compare_filenames_for_search.  New gdb_asserts for real_path and name.
10422         Unify the call of compare_filenames_for_search with FILENAME_CMP.
10423         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10424         * symfile.h (struct quick_symbol_functions): Extend the comment for
10425         map_symtabs_matching_filename.
10426         * symtab.c (compare_filenames_for_search): Remove the function comment
10427         relative path requirement.  Handle absolute filenames, with a comment.
10428         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10429         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
10430         real_path and name.  Unify the call of compare_filenames_for_search
10431         with FILENAME_CMP.
10432         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10433
10434 2013-02-03  Jan Kratochvil  <[email protected]>
10435
10436         Code cleanup.
10437         * breakpoint.c (print_breakpoint_location): Replace bp_location field
10438         source_file references by symtab field references.  Remove variables
10439         sal and fullname.
10440         (momentary_breakpoint_from_master, add_location_to_breakpoint):
10441         (clear_command, say_where): Replace bp_location field source_file
10442         references by symtab field references.
10443         (bp_location_dtor): Remove the source_file reference.
10444         (update_static_tracepoint): Replace bp_location field source_file
10445         references by symtab field references.
10446         (breakpoint_free_objfile): New function.
10447         * breakpoint.h (struct bp_location): Extend the comment for line_number.
10448         Replace the field source_file by field symtab, extend its comment.
10449         (breakpoint_free_objfile): New declaration.
10450         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10451         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10452         field source_file references by symtab field references.
10453
10454 2013-02-03  Jan Kratochvil  <[email protected]>
10455
10456         Replace xfullpath calls by gdb_realpath calls.
10457         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10458         function comment.
10459         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10460         Remove it from the iterate_over_some_symtabs call.
10461         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10462         Remove it from the dw2_map_expand_apply calls, remove a block handling
10463         it.
10464         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10465         Remove it from the iterate_over_some_symtabs call.
10466         (partial_map_symtabs_matching_filename): Remove parameter full_path.
10467         Remove it from the partial_map_expand_apply calls, remove a block
10468         handling it.  Drop gdb_realpath call and cleanups from the real_path
10469         handling.
10470         * source.c (openp): Drop the comment part about xfullpath.  Replace
10471         xfullpath calls by gdb_realpath calls.
10472         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10473         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10474         from method map_symtabs_matching_filename and its comment.
10475         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10476         gdb_realpath call.
10477         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10478         remove it also from the function comment, remove a block handling it.
10479         Drop gdb_realpath call and cleanups from the real_path handling.
10480         (iterate_over_symtabs): Drop variable full_path and its use.
10481         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10482         * utils.c (xfullpath): Remove.
10483         * utils.h (xfullpath): Remove.
10484
10485 2013-02-01  Andreas Tobler  <[email protected]>
10486
10487         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10488         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10489         (ALLDEPFILES): Add ppc64-tdep.c.
10490         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10491         ppc64-tdep.o to gdb_target_obs.
10492         * ppc64-tdep.h: New file.
10493         * ppc64-tdep.c: New file.
10494         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10495         ppc-linux-tdep.c to here.
10496         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10497         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10498         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10499         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10500         from ppc-linux-tdep.c to here.
10501         (ppc64_convert_from_func_ptr_addr): Rename from
10502         ppc64_linux_convert_from_func_ptr_addr to
10503         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10504         here.
10505         * rs6000-tdep.c:
10506         (read_insn): Move from ppc-linux-tdep.c to here.
10507         (insns_match_pattern, insn_d_field, insn_ds_field): Move
10508         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10509         * ppc-linux-tdep.c: Include ppc64-tdep.h.
10510         Removed above functions.
10511         (ppc_linux_init_abi): Adjust.
10512
10513 2013-02-01  Aleksandar Ristovski  <[email protected]>
10514
10515         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10516
10517 2013-02-01  Aleksandar Ristovski  <[email protected]>
10518
10519         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10520
10521 2013-02-01  Pedro Alves  <[email protected]>
10522
10523         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10524         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10525
10526 2013-02-01  Jan Kratochvil  <[email protected]>
10527
10528         * elfread.c (elf_symfile_read): Limit separate debug info additions to
10529         files with no separate debug info.
10530         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10531         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10532         only for files with no separate debug info.
10533
10534 2013-01-31  Tom Tromey  <[email protected]>
10535
10536         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10537         change type.
10538         (struct jit_program_space_data): Rename from jit_inferior_data.
10539         Update comments.
10540         (get_jit_program_space_data): Rename from get_jit_inferior_data.
10541         Change return type.  Attach data to program space.
10542         (jit_program_space_data_cleanup): Rename from
10543         jit_inferior_data_cleanup; change argument type.
10544         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10545         change type.
10546         (jit_register_code): Update.
10547         (jit_update_inferior_cache): Remove.
10548         (jit_breakpoint_deleted): Get jit data from the location's program
10549         space.
10550         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10551         'ps_data', change type.
10552         (jit_inferior_init, jit_breakpoint_re_set_internal)
10553         (jit_event_handler): Update.
10554         (free_objfile_data): Get data from objfile's program space.
10555         (_initialize_jit): Update.
10556
10557 2013-01-31  Tom Tromey  <[email protected]>
10558
10559         PR gdb/13987:
10560         * jit.c (struct jit_inferior_data) <cached_code_address,
10561         jit_breakpoint>: New fields.
10562         (jit_breakpoint_re_set_internal): Fix logging.  Only create
10563         breakpoint if cached address has changed.
10564         (jit_update_inferior_cache, jit_breakpoint_deleted): New
10565         functions.
10566         (_initialize_jit): Register breakpoint deleted observer.
10567
10568 2013-01-31  Aleksandar Ristovski  <[email protected]>
10569
10570         * infrun.c (handle_syscall_event): Remove unused gdbarch.
10571         (save_infcall_suspend_state): Ifdef out unused inf.
10572         (restore_infcall_suspend_state): Ifdef out unused inf.
10573         * jit.c (jit_register_code): Remove unused i, b, inf_data.
10574         (jit_frame_sniffer): Remove unused inf_data.
10575
10576 2013-01-31  Aleksandar Ristovski  <[email protected]>
10577
10578         * c-exp.y (classify_inner_name): Remove unused type.
10579         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10580         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10581         need_escape.
10582         (c_get_string): Remove unused kind.
10583         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10584
10585 2013-01-31  Aleksandar Ristovski  <[email protected]>
10586
10587         * charset.c (intermediate_encoding): Remove unused i.
10588         * completer.c (signal_completer): Remove unused i.
10589         * continuations.c (discard_my_continuations_1): Remove unused
10590         continuation_ptr.
10591         * corelow.c (core_close): Remove unuseD name.
10592         (get_core_siginfo): Remove unused pid.
10593         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10594         i, cps.
10595         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10596         (loclist_describe_location): Remove unused first.
10597         * event-top.c (command_line_handler): Remove unused got_eof.
10598         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10599         (resize_section_table): Remove unused old_value.
10600         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10601         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10602         * i386-tdep.c (i386_process_record): Remove unused rex.
10603         * infcmd.c (get_return_value): Remove unused uiout.
10604         * jv-lang.c (type_from_class): Remove unused is_array.
10605         * jv-valprint.c (java_val_print): Remove unused i.
10606         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10607         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10608         * m2-typeprint.c (m2_print_type): Remove unused code.
10609         * macroexp.c (get_character_constant): Remove unused body_start.
10610         (macro_stringify): Remove unused result.
10611         * objc-lang.c (find_methods): Remove unused gdbarch.
10612         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10613         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10614         * stack.c (print_frame_args): Remove unused summary.
10615         * thread.c (thread_apply_command): Remove unused p.
10616         * valarith.c (value_x_unop): Remove unused mangle_ptr.
10617         * valops.c (search_struct_method): Remove unused skip.
10618         * valprint.c (generic_val_print): Remove unused byte_order.
10619         * varobj.c (varobj_update): Remove unused changed.
10620         * cli/cli-cmds.c (complete_command): Remove unused next_item.
10621         (alias_command): Remove unused c.
10622         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10623         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10624         format.
10625         (mi_cmd_data_write_memory): Remove unused word_format.
10626         (mi_cmd_data_write_memory_bytes): Remove unused r.
10627         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10628         p_start, p_end.
10629         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10630         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10631         line_width.
10632
10633 2013-01-31  Aleksandar Ristovski  <[email protected]>
10634
10635         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10636         * symtab.c (iterate_over_symtabs): Remove unused s.
10637         (find_pc_sect_symtab): Remove unused pspAce.
10638         (find_pc_sect_line): Remove unused alt_symtab.
10639         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10640         (completion_list_add_name): Remove unused newsize.
10641
10642 2013-01-31  Tom Tromey  <[email protected]>
10643
10644         PR c++/14998:
10645         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10646         TYPE_CODE_FUNC.
10647
10648 2013-01-31  Aleksandar Ristovski  <[email protected]>
10649
10650         * target.c (target_read_string): Remove unused origlen.
10651
10652 2013-01-31  Aleksandar Ristovski  <[email protected]>
10653
10654         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10655         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10656         * ax-general.c (ax_print): Remove unused is_float.
10657         * blockframe.c (block_innermost_frame): Remove unused start, end.
10658         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10659
10660 2013-01-31  Aleksandar Ristovski  <[email protected]>
10661
10662         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10663         (svr4_read_so_list): Remove unused lmo.
10664         * solib-target.c (solib_target_relocate_section_addresses): Remove
10665         unused flags.
10666
10667 2013-01-30  Tom Tromey  <[email protected]>
10668
10669         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10670
10671 2013-01-30  Tom Tromey  <[email protected]>
10672
10673         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10674         * utils.c (gnu_debuglink_crc32): Remove.
10675         * utils.h (gnu_debuglink_crc32): Don't declare.
10676
10677 2013-01-30  Tom Tromey  <[email protected]>
10678
10679         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10680         (read_structure_type, read_enumeration_type): Remove cast.
10681
10682 2013-01-30  Tom Tromey  <[email protected]>
10683
10684         * dwarf2read.c (read_namespace_type): Remove cast.
10685         (read_typedef): Likewise.
10686
10687 2013-01-29  Tom Tromey  <[email protected]>
10688
10689         * dwarf2read.c (free_dwo_file): Remove assert.
10690
10691 2013-01-29  Tom Tromey  <[email protected]>
10692
10693         * value.c (deprecated_set_value_modifiable): Remove.
10694         * value.h (deprecated_set_value_modifiable): Remove.
10695
10696 2013-01-28  Doug Evans  <[email protected]>
10697
10698         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10699         to addresses from dwo files.
10700
10701 2013-01-25  Siva Chandra Reddy  <[email protected]>
10702
10703         * valops.c (find_overload_match): Remove unused argument 'lax'.
10704         * value.h: Remove unused argument 'lax' from the declaration of
10705         find_overload_match.
10706         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10707         to find_overload_match.
10708         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10709         argument to find_overload_match.
10710
10711 2013-01-25  Tom Tromey  <[email protected]>
10712
10713         * dwarf2read.c (processing_has_namespace_info): Remove.
10714         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10715         (process_die, read_func_scope, dwarf2_start_symtab)
10716         (new_symbol_full): Update.
10717
10718 2013-01-25  Tom Tromey  <[email protected]>
10719
10720         * cp-namespace.c (cp_set_block_scope): Remove.
10721         * cp-support.h (cp_set_block_scope): Remove.
10722         * dbxread.c: Include block.h.
10723         (cp_set_block_scope): New function.
10724         (process_one_symbol): Update.
10725         * dwarf2read.c (read_func_scope): Use block_set_scope.
10726
10727 2013-01-25  Pedro Alves  <[email protected]>
10728
10729         * remote.c (add_current_inferior_and_thread): Tweak comment.
10730
10731 2013-01-25  Tom Tromey  <[email protected]>
10732
10733         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10734         (cp_add_using_directive): Add 'copy_names' argument.
10735         * cp-support.h (cp_add_using_directive): Update.
10736         (struct using_direct) <import_src, import_dest, alias,
10737         declaration>: Now const.
10738         * dwarf2read.c (read_import_statement): Use obconcat.
10739         Don't copy names passed to cp_add_using_directive.
10740
10741 2013-01-25  Tom Tromey  <[email protected]>
10742
10743         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10744
10745 2013-01-25  Pedro Alves  <[email protected]>
10746
10747         * remote.c (stop_reply_extract_thread): New.
10748         (add_current_inferior_and_thread): New parameter 'wait_status'.
10749         Handle it.
10750         (remote_start_remote): Pass wait status to
10751         add_current_inferior_and_thread.
10752         (extended_remote_run): Update comment.
10753         (extended_remote_create_inferior_1): Pass wait status to
10754         add_current_inferior_and_thread.
10755
10756 2013-01-25  Andrew Burgess  <[email protected]>
10757             Ulrich Weigand  <[email protected]>
10758
10759         * valarith.c (value_vector_widen): New function for replicating a
10760         scalar into a vector.
10761         (value_binop): Use value_vector_widen to widen scalar to vector
10762         rather than casting, this better matches gcc C behaviour.
10763         * valops.c (value_casst): Update logic for casting between vector
10764         types, and for casting from scalar to vector, try to match gcc C
10765         behaviour.
10766         * value.h (value_vector_widen): Declare.
10767         * opencl-lang.c (opencl_value_cast): New opencl specific casting
10768         function, handle special case for casting scalar to vector.
10769         (opencl_relop): Use opencl_value_cast.
10770         (evaluate_subexp_opencl): Use opencl_value_cast instead of
10771         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10772         in order to use opencl_value_cast.
10773
10774 2013-01-25  Yao Qi  <[email protected]>
10775
10776         * event-loop.c: Include "queue.h".
10777         (gdb_event_p): New typedef.
10778         (DECLARE_QUEUE_P): Use.
10779         (DEFINE_QUEUE_P): Use.
10780         (async_queue_event): Remove.
10781         (gdb_event_xfree): New.
10782         (initialize_event_loop): New.
10783         (process_event): Use QUEUE macros.
10784         (event_queue): Remove.
10785         (gdb_wait_for_event): Caller update.
10786         (check_async_event_handlers): Likewise.
10787         (poll_timers): Likewise.
10788         * event-loop.h (initialize_event_loop): Declare.
10789         * event-loop.c (gdb_event_xfree): New.
10790         * top.c (gdb_init): Call initialize_event_loop.
10791
10792 2013-01-25  Yao Qi  <[email protected]>
10793
10794         * event-loop.c (async_queue_event): Remove one parameter
10795         'position'.  Remove code handling 'position' == TAIL.
10796         (gdb_wait_for_event): Caller update.
10797         (check_async_event_handlers): Caller update.
10798         (poll_timers): Caller update.
10799         * event-loop.h (enum queue_position): Remove.
10800
10801 2013-01-25  Maxim Kuvyrkov  <[email protected]>
10802
10803         * MAINTAINERS: Update my email.
10804
10805 2013-01-25  Yao Qi  <[email protected]>
10806
10807         * main.c (print_gdb_help): Remove "--epoch" from the help
10808         message.
10809
10810 2013-01-24  Ulrich Weigand  <[email protected]>
10811
10812         * symtab.c (skip_prologue_using_sal): Consider a file
10813         change the same as an increased line number
10814
10815 2013-01-24  Tiago Stürmer Daitx  <[email protected]>
10816
10817         * MAINTAINERS (Write After Approval): Add myself to the list.
10818
10819 2013-01-24  Tom Tromey  <[email protected]>
10820
10821         * ada-lang.h (ada_decode_symbol): Make return type const.
10822         * ada-lang.c (ada_decode_symbol): Likewise.
10823
10824 2013-01-23  Doug Evans  <[email protected]>
10825
10826         * linespec.c (find_linespec_symbols): Make static.
10827
10828 2013-01-23  Tiago Stürmer Daitx  <[email protected]>
10829
10830         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10831         type on float conversion for complex type.
10832
10833 2013-01-23  Siva Chandra Reddy  <[email protected]>
10834
10835         Add a new class gdb.Architecture which exposes GDB's
10836         internal representation of architecture via GDB Python API.
10837         * Makefile.in: Add entries corresponding to the new file
10838         python/py-arch.c.
10839         * NEWS (Python Scripting): Add entries for the new class
10840         gdb.Architecture and the new method gdb.Frame.architecture.
10841         * python/py-arch.c: Implement gdb.Architecture class.
10842         * python/py-frame.c (frapy_arch): Implement the method
10843         gdb.Frame.architecture().
10844         (frame_object_methods): Add 'architecture' to the method table.
10845         * python/python-internal.h: Add declarations of new utility
10846         functions.
10847         * python/python.c (_initialize_python): Initialize
10848         gdb.Architecture class.
10849
10850 2013-01-23  Doug Evans  <[email protected]>
10851
10852         Work around binutils/15021.
10853         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10854         type_unit_group out of union s.  All uses updated.
10855         (read_index_from_section): Watch for index version 8.
10856         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10857         an imported symtab.
10858         (write_psymtabs_to_index): Increment version number to 8.
10859
10860 2013-01-22  Pedro Alves  <[email protected]>
10861
10862         * annotate.c (breakpoint_changed): Skip if breakpoint is not
10863         user-visible.
10864
10865 2013-01-22  Pedro Alves  <[email protected]>
10866
10867         * annotate.c (annotate_breakpoints_changed): Rename to ...
10868         (annotate_breakpoints_invalid): ... this.  Make static.
10869         (breakpoint_changed): Adjust.
10870         (_initialize_annotate): Always install the observers.  Install a
10871         "breakpoint_created" observer.
10872         * annotate.h (annotate_breakpoints_changed): Delete declaration.
10873         * breakpoint.c (set_breakpoint_condition)
10874         (breakpoint_set_commands, do_map_commands_command)
10875         (init_raw_breakpoint, clear_command, set_ignore_count)
10876         (enable_breakpoint_disp): No longer call
10877         annotate_breakpoints_changed.
10878
10879 2013-01-22  Pedro Alves  <[email protected]>
10880
10881         * annotate.c: Include "inferior.h".
10882         (frames_invalid_emitted)
10883         (breakpoints_invalid_emitted): New globals.
10884         (async_background_execution_p): New function.
10885         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10886         emitting the annotation if it has already been emitted.
10887         (annotate_display_prompt): New function.
10888         * annotate.h (annotate_display_prompt): New declaration.
10889         * event-top.c: Include annotate.h.
10890         (display_gdb_prompt): Call annotate_display_prompt.
10891
10892 2013-01-22  Pedro Alves  <[email protected]>
10893
10894         * annotate.c (ignore_count_changed): Delete.
10895         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10896         (annotate_ignore_count_change): Delete.
10897         (annotate_stopped): Don't emit a delayed breakpoints-changed
10898         annotation.
10899         * annotate.h (annotate_ignore_count_change): Delete.
10900         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10901         annotate_ignore_count_change.
10902
10903 2013-01-22  Tom Tromey  <[email protected]>
10904
10905         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10906         require_rvalue for a register location.
10907
10908 2013-01-21  Marc Khouzam  <[email protected]>
10909
10910         * breakpoint.c (print_one_breakpoint_location): Add MI
10911         field 'thread-groups' when printing a breakpoint.
10912         (output_thread_groups): New function.
10913
10914 2013-01-21  Siva Chandra Reddy  <[email protected]>
10915
10916         * python/lib/gdb/commands/explore.py
10917         (CompoundExplorer.explore_expr): Correct the name of a method
10918         being invoked.
10919         (ExploreTypeCommand.invoke): Add a missing 'return'.
10920
10921 2013-01-21  Tom Tromey  <[email protected]>
10922
10923         * gdb_obstack.h (obconcat): Move declaration here, from...
10924         * symfile.h (obconcat): ... here.
10925         * gdb_obstack.c: New file.
10926         (obconcat): Move from...
10927         * symfile.c (obconcat): ... here.
10928         * Makefile.in (SFILES): Add gdb_obstack.c.
10929         (COMMON_OBS): Add gdb_obstack.o.
10930
10931 2013-01-21  Tom Tromey  <[email protected]>
10932
10933         * symfile.h (obsavestring): Don't declare.
10934         * symfile.c (obsavestring): Remove.
10935         * ada-exp.y: Use obstack_copy0, not obsavestring.
10936         * ada-lang.c: Use obstack_copy0, not obsavestring.
10937         * coffread.c: Use obstack_copy0, not obsavestring.
10938         * cp-namespace.c: Use obstack_copy0, not obsavestring.
10939         * dbxread.c: Use obstack_copy0, not obsavestring.
10940         * dwarf2read.c: Use obstack_copy0, not obsavestring.
10941         * jit.c: Use obstack_copy0, not obsavestring.
10942         * mdebugread.c: Use obstack_copy0, not obsavestring.
10943         * psymtab.c: Use obstack_copy0, not obsavestring.
10944         * stabsread.c: Use obstack_copy0, not obsavestring.
10945         * xcoffread.c: Use obstack_copy0, not obsavestring.
10946
10947 2013-01-21  Tom Tromey  <[email protected]>
10948
10949         * dwarf2read.c (fixup_go_packaging): Save package name
10950         on objfile obstack.
10951         * gdbtypes.c (init_type): Don't copy name.
10952
10953 2013-01-21  Tom Tromey  <[email protected]>
10954
10955         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10956         const.
10957         (struct attribute) <u.str>: Now const.
10958         (struct fnfieldlist) <name>: Now const.
10959         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10960         (partial_die_parent_scope): Make return type const.
10961         (partial_die_full_name, add_partial_symbol): Update.
10962         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10963         'name' const.
10964         (find_file_and_directory): Make 'name' and 'comp_dir' const.
10965         (read_file_scope, read_func_scope, dwarf2_add_field)
10966         (dwarf2_add_member_fn, read_structure_type)
10967         (process_enumeration_scope, read_array_type, read_module_type)
10968         (read_base_type, read_subrange_type): Update.
10969         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10970         (new_symbol_full, guess_full_die_structure_name): Update.
10971         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
10972         (dwarf2_name): Return const type.
10973         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10974         const.
10975
10976 2013-01-21  Tom Tromey  <[email protected]>
10977
10978         * gdbtypes.c (init_type): Make 'name' const.
10979         * gdbtypes.h (init_type): Update.
10980
10981 2013-01-21  Tom Tromey  <[email protected]>
10982
10983         * buildsym.c (patch_subfile_names): Use set_last_source_file.
10984         (start_symtab): Make 'name' and 'dirname' const.  Use
10985         set_last_source_file.
10986         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10987         (last_source_file): Define.  Now static.
10988         (set_last_source_file, get_last_source_file): New functions.
10989         * buildsym.h (last_source_file): Don't declare.
10990         (start_symtab): Update.
10991         (set_last_source_file, get_last_source_file): Declare.
10992         * coffread.c (complete_symtab): Use set_last_source_file.
10993         (coff_end_symtab): Likewise.
10994         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10995         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10996         set_last_source_file.
10997         (process_one_symbol): Use get_last_source_file.
10998         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10999         (psymtab_to_symtab_1): Use get_last_source_file.
11000         * xcoffread.c (process_linenos): Use get_last_source_file.
11001         (complete_symtab): Use set_last_source_file.
11002         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11003         (scan_xcoff_symtab): Use set_last_source_file.
11004
11005 2013-01-21  Tom Tromey  <[email protected]>
11006
11007         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11008         (symbol_set_names): Remove casts.  Handle field const-ness.
11009
11010 2013-01-21  Tom Tromey  <[email protected]>
11011
11012         * dwarf2read.c (new_symbol_full): Remove cast.
11013         * symtab.c (symbol_set_demangled_name): Make 'name' const.
11014         * symtab.h (symbol_set_demangled_name): Update.
11015
11016 2013-01-21  Tom Tromey  <[email protected]>
11017
11018         * main.c (captured_main): Call bfd_init.
11019
11020 2013-01-21  Tom Tromey  <[email protected]>
11021
11022         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11023         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11024         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11025         * NEWS: Update.
11026
11027 2013-01-21  Jan Kratochvil  <[email protected]>
11028
11029         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11030
11031 2013-01-21  Jan Kratochvil  <[email protected]>
11032
11033         Fix gdb.fortran/common-block.exp crash in PIE mode.
11034         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11035         LOC_COMMON_BLOCK.
11036         * f-valprint.c (info_common_command_for_block): Expect
11037         LOC_COMMON_BLOCK in gdb_assert.
11038         * symtab.h (struct general_symbol_info): Update comment for the
11039         common_block member.
11040         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11041         (enum address_class): New member LOC_COMMON_BLOCK.
11042
11043 2013-01-18  David Blaikie  <[email protected]>
11044
11045         * MAINTAINERS (Write After Approval): Add "David Blaikie".
11046
11047 2013-01-18  Tom Tromey  <[email protected]>
11048
11049         PR c++/14999:
11050         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11051         Call require_rvalue.
11052
11053 2013-01-18  Yao Qi  <[email protected]>
11054
11055         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11056         (dbx_read_symtab): New declaration.
11057         (dbx_psymtab_to_symtab): Delete.
11058         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11059         Rename parameter PST to SELF.  Exchanged two parameters.
11060         (start_psymtab): Caller update.
11061         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11062         (dwarf2_read_symtab): New declaration.
11063         (dwarf2_psymtab_to_symtab): Delete.
11064         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11065         Rename parameter PST to SELF.  Exchanged two parameters.
11066         (create_partial_symtab): Caller update.
11067         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11068         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11069         Rename parameter PST to SELF.  Exchanged two parameters.
11070         (parse_partial_symbols, new_psymtab): Caller update.
11071         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11072         two parameters.
11073         * psymtab.c (psymtab_to_symtab): Caller update.
11074         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11075         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11076         Rename parameter PST to SELF.  Exchanged two parameters.
11077         (xcoff_start_psymtab): Caller update.
11078
11079 2013-01-18  Yao Qi  <[email protected]>
11080
11081         * infrun.c (proceed): Rename local variable 'oneproc' to
11082         'force_step'.
11083
11084 2013-01-17  Doug Evans  <[email protected]>
11085
11086         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11087         (dw2_build_type_unit_groups): Delete.  All uses updated.
11088
11089         * symtab.h (struct symbol_search): Add comment.
11090
11091 2013-01-17  Jan Kratochvil  <[email protected]>
11092
11093         * symtab.c (compare_filenames_for_search): New comment for
11094         HAS_DRIVE_SPEC.
11095
11096 2013-01-17  Tom Tromey  <[email protected]>
11097
11098         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11099
11100 2013-01-17  Jan Kratochvil  <[email protected]>
11101
11102         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11103         initialize it by existing make_cleanup.  Call new do_cleanups.
11104
11105 2013-01-17  Tom Tromey  <[email protected]>
11106
11107         * cp-abi.c (cp_abi_completer): New function.
11108         (_initialize_cp_abi): Set completer for "set cp-abi".
11109
11110 2013-01-17  Tom Tromey  <[email protected]>
11111
11112         * mem-break.c: Remove obsolete comment.
11113         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11114
11115 2012-01-17  Sanjoy Das <[email protected]>
11116
11117         * jit.c (jit_reader_load_command): Interpret the jit reader name
11118         as an absolute path if it begins with a forward slash.
11119
11120 2012-01-17  Sanjoy Das <[email protected]>
11121
11122         PR gdb/14550
11123
11124         * jit.c (finalize_symtab): Ensure that only the global block has a
11125         NULL superblock.
11126
11127 2013-01-17  Pedro Alves  <[email protected]>
11128
11129         * acinclude.m4: Include ../config/plugins.m4,
11130         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
11131         * Makefile.in (aclocal_m4_deps): Update.
11132         * aclocal.m4: Renegerate.
11133
11134 2013-01-16  Doug Evans  <[email protected]>
11135
11136         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11137
11138 2013-01-16  Pedro Alves  <[email protected]>
11139             Tom Tromey  <[email protected]>
11140
11141         PR cli/7221:
11142         * NEWS: Add "catch signal".
11143         * breakpoint.c (base_breakpoint_ops): No longer static.
11144         (bpstat_explains_signal): New function.
11145         (init_catchpoint): No longer static.
11146         (base_breakpoint_explains_signal): New function.
11147         (base_breakpoint_ops): Initialize new field.
11148         * breakpoint.h (enum bpstat_signal_value): New.
11149         (struct breakpoint_ops) <explains_signal>: New field.
11150         (bpstat_explains_signal): Remove macro, declare as function.
11151         (base_breakpoint_ops, init_catchpoint): Declare.
11152         * break-catch-sig.c: New file.
11153         * inferior.h (signal_catch_update): Declare.
11154         * infrun.c (signal_catch): New global.
11155         (handle_syscall_event): Update for change to
11156         bpstat_explains_signal.
11157         (handle_inferior_event): Likewise.  Always handle random signals
11158         via bpstats.
11159         (signal_cache_update): Check signal_catch.
11160         (signal_catch_update): New function.
11161         (_initialize_infrun): Initialize signal_catch.
11162         * Makefile.in (SFILES): Add break-catch-sig.c.
11163         (COMMON_OBS): Add break-catch-sig.o.
11164
11165 2013-01-16  Tom Tromey  <[email protected]>
11166
11167         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11168         (print_one_catch_solib, print_one_catch_syscall)
11169         (print_one_catch_exec, print_one_exception_catchpoint): Emit
11170         "catch-type".
11171
11172 2013-01-16  Yao Qi  <[email protected]>
11173
11174         * printcmd.c (current_display_number): Make it static.
11175
11176 2013-01-16  Yao Qi  <[email protected]>
11177
11178         * infcmd.c (step_once): Don't check '!single_inst' as it was
11179         checked before.
11180
11181 2013-01-15  Jan Kratochvil  <[email protected]>
11182
11183         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11184
11185 2013-01-14  Tom Tromey  <[email protected]>
11186
11187         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11188         set command.
11189         * command.h (add_setshow_string_noescape_cmd): Update.
11190         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11191         (complete_set_gnutarget): New function.
11192         (_initialize_core): Set the "set gnutarget" completer.
11193
11194 2013-01-14  Tom Tromey  <[email protected]>
11195
11196         PR symtab/14442:
11197         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11198         (c_type_print_modifier): Likewise.
11199         * dwarf2read.c (read_tag_restrict_type): New function.
11200         (read_type_die_1): Handle DW_TAG_restrict_type.
11201         * gdbtypes.c (make_restrict_type): New function.
11202         (recursive_dump_type): Handle TYPE_RESTRICT.
11203         * gdbtypes.h (enum type_flag_values): Renumber.
11204         (enum type_instance_flag_value): Add
11205         TYPE_INSTANCE_FLAG_RESTRICT.
11206         (TYPE_RESTRICT): New macro.
11207         (make_restrict_type): Declare.
11208
11209 2013-01-14  Tom Tromey  <[email protected]>
11210
11211         PR symtab/14931:
11212         * psymtab.c (struct psymtab_state): New.
11213         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11214         functions.
11215         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11216         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11217
11218 2013-01-14  Richard Sharman  <[email protected]>
11219             Pedro Alves  <[email protected]>
11220
11221         PR remote/14786
11222
11223         * remote.c (remote_threads_info): Make a copy of the reply from
11224         qfThreadInfo and use that instead of rs->buf.
11225
11226 2013-01-14  Yao Qi  <[email protected]>
11227
11228         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11229         (dbx_psymtab_to_symtab): Likewise.
11230         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11231         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11232         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11233
11234 2013-01-13  Jan Kratochvil  <[email protected]>
11235
11236         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
11237         make_cleanup_restore_current_language.  Call set_language.  Move
11238         OLD_CHAIN and INNER_CHAIN cleanups.
11239         * utils.c (do_restore_current_language)
11240         (make_cleanup_restore_current_language): New functions.
11241         * utils.h (make_cleanup_restore_current_language): New declaration.
11242
11243 2013-01-13  Jan Kratochvil  <[email protected]>
11244
11245         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11246         non-existing files.
11247
11248         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11249         non-existing files if FILENAME is already absolute.
11250
11251 2013-01-11  Jan Kratochvil  <[email protected]>
11252
11253         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11254         fputs_filtered.  Append trailing newline.
11255
11256 2013-01-11  Yao Qi  <[email protected]>
11257             Stan Shebs  <[email protected]>
11258
11259         * psymtab.c (init_psymbol_list): Clarify the comment.
11260
11261 2013-01-11  Yao Qi  <[email protected]>
11262
11263         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11264         (update_dprintf_command_list): Assert that 'printf_line' is
11265         non-null.  Remove condition check.
11266
11267 2013-01-10  Jan Kratochvil  <[email protected]>
11268
11269         Code cleanup.
11270         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11271         type const char *.
11272         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11273         const char *.
11274         * tui/tui-source.h (tui_source_is_displayed): Likewise.
11275
11276 2013-01-09  Anthony Green  <[email protected]>
11277
11278         * cp-abi.c (cplus_print_vtable): Don't return value from void
11279         function.
11280         * ada-lang.c (re_set_catch_assert): Ditto.
11281
11282 2013-01-09  Doug Evans  <[email protected]>
11283
11284         * symfile.h (quick_symbol_functions): Delete member
11285         pre_expand_symtabs_matching.  All uses removed.
11286         * dwarf2read.c (dw2_lookup_symbol): Implement.
11287         (dw2_do_expand_symtabs_matching): Delete.
11288         (dw2_pre_expand_symtabs_matching): Delete.
11289         (struct dw2_symtab_iterator): New type.
11290         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11291         (dw2_expand_symtabs_for_function): Rewrite.
11292         (dwarf2_gdb_index_functions): Update.
11293         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11294         (psym_functions): Update.
11295
11296 2013-01-09  Tom Tromey  <[email protected]>
11297
11298         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11299         * configure: Rebuild.
11300         * configure.ac: Add somread.o to the build if BFD has SOM
11301         support.
11302         * somread.c: Include som/aout.h, not syms.h.
11303         (som_symtab_read): Use som_external_symbol_dictionary_record.
11304         Unpack records manually.
11305         (_initialize_somread): Declare.
11306
11307 2012-01-08  Mike Frysinger  <[email protected]>
11308
11309         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11310         Cast return_address to 64bits.
11311
11312 2013-01-08  Hui Zhu  <[email protected]>
11313
11314         * printcmd.c: Remove define of function output_command.
11315         * tracepoint.c: Remove extern of function output_command.
11316         * valprint.h: (output_command): New extern.
11317
11318 2013-01-07  Tom Tromey  <[email protected]>
11319
11320         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11321         Remove.
11322         (objc_language_defn): Use c_printchar, c_printstr,
11323         c_emit_char.
11324
11325 2013-01-07  Tom Tromey  <[email protected]>
11326
11327         PR cli/7719:
11328         * NEWS: Update.
11329         * ada-valprint.c (printstr, print_field_values): Remove
11330         "inspect_it" code.
11331         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11332         code.
11333         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11334         code.
11335         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11336         * main.c (captured_main): Remove "epoch" argument.
11337         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11338         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11339         * p-valprint.c (pascal_object_print_value_fields): Remove
11340         "inspect_it" code.
11341         * printcmd.c (print_command_1): Remove 'inspect' argument.
11342         (print_command, call_command): Update.
11343         (inspect_command): Remove.
11344         (_initialize_printcmd): Make "inspect" an alias for "print".
11345         * top.c (epoch_interface): Remove.
11346         * top.h (epoch_interface): Remove.
11347         * valprint.c (user_print_options): Update.
11348         (print_converted_chars_to_obstack): Remove "inspect_it" code.
11349         * valprint.h (struct value_print_options) <inspect_it>: Remove
11350         field.
11351
11352 2013-01-04  Tom Tromey  <[email protected]>
11353
11354         * valprint.h (read_string): Add 'extern'.
11355
11356 2013-01-07  Joel Brobecker  <[email protected]>
11357
11358         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11359         used to decide whether to define darwin_read_dyld_info or not.
11360
11361 2013-01-03  Pierre Muller  <[email protected]>
11362
11363         * main.c (relocate_gdb_directory): Avoid calling stat function
11364         if DIR is empty.
11365
11366 2013-01-03  Yao Qi  <[email protected]>
11367
11368         * psymtab.c (fixup_psymbol_section): Update declaration.
11369         (fixup_psymbol_section): Remove code returning value.
11370
11371 2013-01-03  Yao Qi  <[email protected]>
11372
11373         * symtab.h: Remove some out of date comments.
11374          (enum exception_event_kind): Move it ...
11375         * breakpoint.c: ... here.
11376
11377 2013-01-02  Iain Sandoe  <[email protected]>
11378
11379         PR gdb/14405
11380         * darwin-nat.c (darwin_read_dyld_info): Only build if
11381         TASK_DYLD_INFO_COUNT is defined.
11382         (darwin_xfer_partial): Call darwin_read_dyld_info only if
11383         TASK_DYLD_INFO_COUNT is defined.
11384
11385 2013-01-02  Tom Tromey  <[email protected]>
11386
11387         * symfile.h (struct ecoff_debug_hack): Remove.
11388         * objfiles.c: Don't include mdebugread.h.
11389
11390 2013-01-02  Tom Tromey  <[email protected]>
11391
11392         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11393         * configure.ac: Check for Mach-O support in BFD.  Update
11394         CONFIG_OBS.
11395         * configure: Rebuild.
11396
11397 2013-01-02  Tom Tromey  <[email protected]>
11398
11399         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11400         * configure.ac: Use GDB_AC_CHECK_BFD.
11401         * configure: Rebuild.
11402
11403 2013-01-01  Maxim Kuvyrkov  <[email protected]>
11404
11405         * MAINTAINERS: Update my email.
11406
11407 2013-01-01  Joel Brobecker  <[email protected]>
11408
11409         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11410
11411 2013-01-01  Joel Brobecker  <[email protected]>
11412
11413         * rs6000-nat.c (bss_data_overlap): New function.
11414         (vmap_symtab): Use it to adjust the .bss section's offset.
11415
11416 2013-01-01  Joel Brobecker  <[email protected]>
11417
11418         Update year range in copyright notice of all files.
11419
11420 2013-01-01, 13  Joel Brobecker  <[email protected]>
11421
11422         * top.c (print_gdb_version): Update copyright year.
11423
11424 For older changes see ChangeLog-2012.
11425 \f
11426 Local Variables:
11427 mode: change-log
11428 left-margin: 8
11429 fill-column: 74
11430 version-control: never
11431 coding: utf-8
11432 End:
This page took 0.675194 seconds and 4 git commands to generate.