5345ce8c4c5292d424a42f59a5e131bc5517a022
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2
3         * mt-tdep.c (mt_registers_info): Call
4         get_no_prettyformat_print_options instead of
5         get_raw_print_options (regression by last patch from Doug
6         Evans).
7
8 2013-07-09  Pedro Alves  <palves@redhat.com>
9
10         Checked in by Joel Brobecker  <brobecker@adacore.com>.
11         * ada-lang.c (coerce_unspec_val_to_type): Use
12         value_optimized_out_const.
13         * value.c (value_optimized_out_const): New function.
14         * value.h (value_optimized_out_const): New declaration.
15
16 2013-07-09  Doug Evans  <dje@google.com>
17
18         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
19         Enum values rename as well.  All uses updated.
20         * valprint.h (value_print_options): Rename member pretty to
21         pretty format.  Rename member prettyprint_arrays to
22         prettyformat_arrays.  Rename member prettyprint_structs to
23         prettyformat_structs.  All uses updated.
24         (get_no_prettyformat_print_options): Renamed from
25         get_raw_print_options.
26         * valprint.c (get_no_prettyformat_print_options): Renamed from
27         get_raw_print_options.  All callers updated.
28         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
29         All callers updated.
30         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
31         All callers updated.
32         (_initialize_valprint): Improve help text for "set print pretty" and
33         "set print arrays".
34
35 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
36
37         * value.c (value_bits_valid): Revert previous change, and change
38         by Pedro on 2013-07-04, due to regressions in
39         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
40
41 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
42             Pedro Alves  <palves@redhat.com>
43
44         * value.c (value_bits_valid): If the value is not lval_computed
45         or has no check validity handler then the answer is the
46         optimized_out flag, otherwise defer to the handler.
47
48 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
49
50         * top.c (print_gdb_configuration): Explain in output of
51         --configuration what does "relocatable" mean.
52
53         * main.c (print_gdb_help): Regroup options in the --help text.
54         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
55         the relevant discussions.
56
57 2013-07-06  Yao Qi  <yao@codesourcery.com>
58
59         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
60         Remove parameter 'lsal'.
61         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
62         to inner block.  Caller update.
63         (base_breakpoint_create_breakpoints_sal): Update.
64         (bkpt_create_breakpoints_sal): Likewise.
65         (tracepoint_create_breakpoints_sal): Likewise.
66         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
67         element 0 of vector 'canonical->sals'.
68
69 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
70
71         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
72         register number instead of the pseudo register one.
73         (rs6000_dwarf2_reg_to_regnum): Likewise.
74
75 2013-07-04  Pedro Alves  <palves@redhat.com>
76
77         * findvar.c (value_of_register): Use allocate_optimized_out_value
78         if the register has been optimized out, instead of
79         set_value_optimized_out.
80         * frame-unwind.c (frame_unwind_got_optimized): Use
81         allocate_optimized_out_value.
82
83 2013-07-04  Pedro Alves  <palves@redhat.com>
84
85         * value.c (value_bits_valid): If the value is not lval_computed,
86         or doesn't have a check_validity hook, assume the value is entirely
87         valid.
88
89 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
90
91         * stack.c (read_frame_arg): No longer fetch lazy values.
92         * value.c (value_optimized_out): If the value is not already
93         marked optimized out, and is lazy then fetch it.
94         (value_primitive_field): Move optimized out check to later in the
95         function, after we have loaded any lazy values.
96         (value_fetch_lazy): Use optimized out flag directly rather than
97         calling optimized_out method.
98
99 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
100
101         * valops.c: Don't include "user-regs.h".
102         (value_fetch_lazy): Moved to value.c.
103         * value.c: Include "user-regs.h".
104         (value_fetch_lazy): Moved from valops.c.
105
106 2013-07-04  Yao Qi  <yao@codesourcery.com>
107
108         Revert:
109         2013-06-27  Yao Qi  <yao@codesourcery.com>
110
111         * common/create-version.sh: Update comments.  Handle the case
112         that TARGET_ALIAS is empty.
113
114 2013-07-03  Pedro Alves  <palves@redhat.com>
115
116         * Makefile.in (config.status): Depend on development.sh.
117         (aclocal_m4_deps): Add libmcheck.m4.
118         * acinclude.m4: Include libmcheck.m4.
119         * configure.ac: Source development.sh instead of setting
120         'development' here.  --enable-libmcheck/--disable-libmcheck code
121         factored out to GDB_AC_LIBMCHECK.  Run it.
122         * development.sh: New file.
123         * libmcheck.m4: New file.
124         * configure: Regenerate.
125
126 2013-07-02  Tom Tromey  <tromey@redhat.com>
127
128         * contrib/ari/update-web-ari.sh: Update for version.in change.
129
130 2013-07-02  Tom Tromey  <tromey@redhat.com>
131
132         * common/ptid.h: Comment fixes.
133
134 2013-07-01  Tom Tromey  <tromey@redhat.com>
135
136         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
137         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
138         (dwarf2_read_index, create_all_comp_units): Update.
139
140 2013-07-01  Tom Tromey  <tromey@redhat.com>
141
142         * configure.ac (build_warnings): Add -Wold-style-definition.
143         * configure: Rebuild.
144         * machoread.c (_initialize_machoread): Use "(void)".
145         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
146         use "(void)".
147
148 2013-07-01  Tom Tromey  <tromey@redhat.com>
149
150         * configure.ac (build_warnings): Add -Wold-style-declaration.
151         * configure: Rebuild.
152         * dsrec.c (make_srec): Use "static const", not "const static".
153         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
154         not "const static".
155         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
156         Use "static const", not "const static".
157         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
158         not "const static".
159         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
160         not "const static".
161         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
162         not "const static".
163         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
164         not "const static".
165         (v850_dbtrap_breakpoint_from_pc): Likewise.
166         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
167         not "const static".
168
169 2013-07-01  Tom Tromey  <tromey@redhat.com>
170
171         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
172         * configure: Rebuild.
173
174 2013-07-01  Pedro Alves  <palves@redhat.com>
175
176         * defs.h: Include "pathmax.h".
177         * utils.c: Don't include sys/param.h.
178         (gdb_realpath): Remove code that checks for MAXPATHLEN.
179         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
180         instead of MAXPATHLEN.
181         * solib-sunos.c: Don't include sys/param.h.
182         * xcoffread.c: Don't include sys/param.h.
183         * bsd-kvm.c: Don't include sys/param.h.
184         * darwin-nat.c: Don't include sys/param.h.
185         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
186         * darwin-nat-info.c: Don't include sys/param.h.
187         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
188         MAXPATHLEN.
189         * i386obsd-nat.c: Don't include sys/param.h.
190         * inf-child.c: Don't include sys/param.h.
191         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
192         * linux-fork.c: Don't include sys/param.h.
193         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
194         * linux-nat.c: Don't include sys/param.h.
195         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
196         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
197         * m68klinux-nat.c: Don't include sys/param.h.
198         * nbsd-nat.c: Don't include sys/param.h.
199         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
200         * ppc-linux-nat.c: Don't include sys/param.h.
201         * rs6000-nat.c: Don't include sys/param.h.
202         * spu-linux-nat.c. Don't include sys/param.h.
203         * windows-nat.c: Don't include sys/param.h.
204         * xtensa-linux-nat.c: Don't include sys/param.h.
205         * config/i386/nm-fbsd.h: Don't include sys/param.h.
206
207 2013-07-01  Pedro Alves  <palves@redhat.com>
208
209         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
210         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
211         * gnulib/aclocal.m4: Regenerate.
212         * gnulib/config.in: Regenerate.
213         * gnulib/configure: Regenerate.
214         * gnulib/import/pathmax.h: New file.
215         * gnulib/import/Makefile.am: Regenerate.
216         * gnulib/import/Makefile.in: Regenerate.
217         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
218         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
219         * gnulib/import/m4/pathmax.m4: New file.
220
221 2013-07-01  Pedro Alves  <palves@redhat.com>
222
223         * configure.ac (GDBINIT): Define, depending on host.
224         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
225         * top.c (PATH_MAX): Delete fallback definition.
226         (GDBINIT_FILENAME): Delete.
227         (gdbinit): Reimplement as const char array set to the GDBINIT
228         string constant.
229         * top.h (gdbinit): Make const.
230         * configure, config.in: Regenerate.
231
232 2013-07-01  Pedro Alves  <palves@redhat.com>
233
234         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
235         * cli/cli-cmds.h (source_script): Likewise.
236         * exceptions.c (catch_command_errors_const): New function.
237         * exceptions.h (catch_command_errors_const): Declare.
238         * main.c (get_init_files): Make parameters const, and adjust.
239         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
240         'local_gdbinit' locals const.  Adjust to use
241         catch_command_errors_const.
242         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
243         'local_gdbinit' locals const.
244
245 2013-07-01  Pedro Alves  <palves@redhat.com>
246
247         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
248         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
249         * tracepoint.c: Don't check HAVE_UNISTD_H before including
250         <unistd.h>.
251
252 2013-07-01  Pedro Alves  <palves@redhat.com>
253
254         Import the "unistd" gnulib module.
255         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
256         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
257         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
258         import/m4/unistd_h.m4.
259         * gnulib/aclocal.m4: Renenerate.
260         * gnulib/config.in: Renenerate.
261         * gnulib/configure: Renenerate.
262         * gnulib/import/Makefile.am: Renenerate.
263         * gnulib/import/Makefile.in: Renenerate.
264         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
265         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
266         * gnulib/import/m4/off_t.m4: New file.
267         * gnulib/import/m4/ssize_t.m4: New file.
268         * gnulib/import/m4/sys_types_h.m4: New file.
269         * gnulib/import/m4/unistd_h.m4: New file.
270         * gnulib/import/sys_types.in.h: New file.
271         * gnulib/import/unistd.c: New file.
272         * gnulib/import/unistd.in.h: New file.
273
274 2013-07-01  Pedro Alves  <palves@redhat.com>
275
276         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
277         defined instead of checking HAVE_UNISTD_H.
278
279 2013-07-01  Pedro Alves  <palves@redhat.com>
280
281         Reimport gnulib from scratch.
282         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
283         import/m4/onceonly.m4.
284         * gnulib/aclocal.m4: Renegerate.
285         * gnulib/config.in: Renegerate.
286         * gnulib/configure: Renegerate.
287         * gnulib/import/Makefile.in: Renegerate.
288         * gnulib/import/extra/update-copyright: Renegerate.
289         * gnulib/import/m4/onceonly.m4: Delete.
290
291 2013-07-01  Pedro Alves  <palves@redhat.com>
292
293         * tui/tui-regs.c (pagination_enabled): Delete declaration.
294
295 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
296
297         Code cleanup.
298         * remote.c (async_remote_interrupt_twice): Make it static.
299         * remote.h (async_remote_interrupt_twice): Remove the declaration.
300
301 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
302
303         * ia64-linux-tdep.c: Include <ctype.h>.
304         (ia64_linux_stap_is_single_operand): New function.
305         (ia64_linux_init_abi): Initialize SystemTap related attributes.
306
307 2013-06-28  Tom Tromey  <tromey@redhat.com>
308
309         * Makefile.in (version.c): Use version.in, not
310         common/version.in.
311         * common/create-version.sh: Likewise.
312         * common/version.in: Move...
313         * version.in: ...here.
314
315 2013-06-28  Pedro Alves  <palves@redhat.com>
316
317         * infrun.c (set_observer_mode): Don't declare pagination_enabled
318         here.
319         * utils.h (pagination_enabled): Declare.
320
321 2013-06-28  Pedro Alves  <palves@redhat.com>
322
323         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
324         Move higher up in file.
325
326 2013-06-28  Tom Tromey  <tromey@redhat.com>
327
328         * tracepoint.c (deprecated_readline_begin_hook)
329         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
330         declare.
331
332 2013-06-28  Pedro Alves  <palves@redhat.com>
333
334         PR tui/14880
335         * tui/tui-regs.c (tui_get_register): Fetch value contents before
336         checking if they're available.
337         * value.c (value_available_contents_eq): Change comment.
338         * value.h (value_available_contents_eq): Expand comment.
339
340 2013-06-27  Tom Tromey  <tromey@redhat.com>
341
342         * target.c (find_run_target): Remove.
343         * target.h (find_run_target): Remove.
344
345 2013-06-27  Tom Tromey  <tromey@redhat.com>
346
347         * corelow.c (core_gdbarch): Now static.
348
349 2013-06-27  Tom Tromey  <tromey@redhat.com>
350
351         * target.c (target_struct_index): Remove.
352
353 2013-06-27  Pedro Alves  <palves@redhat.com>
354
355         * infrun.c: Remove comment describing the 'stepping over runtime
356         loader dynamic symbol resolution code' mechanism; moved to
357         gdbint.texinfo.
358
359 2013-06-27  Pedro Alves  <palves@redhat.com>
360
361         * exceptions.c (catch_command_errors): Remove spurious space.
362         * exceptions.h (catch_command_errors): Second parameter is "arg",
363         not "command".
364
365 2013-06-27  Yao Qi  <yao@codesourcery.com>
366
367         * common/create-version.sh: Update comments.  Handle the case
368         that TARGET_ALIAS is empty.
369
370 2013-06-26  Pedro Alves  <palves@redhat.com>
371
372         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
373         comment.
374
375 2013-06-26  Pedro Alves  <palves@redhat.com>
376
377         * infrun.c: Update comments on stepping over runtime loader
378         dynamic symbol resolution code.
379
380 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
381
382         * ax-gdb.h (union exp_element): Forward declare.
383         * parser-defs.h: Include expression.h.
384
385 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
386
387         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
388
389 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
390
391         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
392
393 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
394
395         Fix trace-status to output proper start-time and stop-time.
396         * tracepoint.c (trace_status_command): Fix type of printf arg to
397         prevent improper type conversion.
398         (trace_status_mi): Likewise.
399
400 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
401
402         * mips-tdep.c (mips_next_pc): Fix a typo.
403
404 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
405
406         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
407
408 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
409             Yao Qi  <yao@codesourcery.com>
410
411         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
412         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
413         * mi/mi-main.c (print_variable_or_computed): New function.
414         (mi_cmd_trace_frame_collected): New function.
415         * tracepoint.c (find_trace_state_variable_by_number): New.
416         (struct traceframe_info): Move to tracepoint.h
417         (struct collection_list): Likewise.
418         (do_collect_symbol): Include locals and arguments in the
419         collected variables list.
420         (clear_collection_list): Clear wholly collected variables list
421         and computed variables list.
422         (append_exp): New function.
423         (encode_actions_1): Include variables in the wholly
424         collected variables list.  Include memory ranges and
425         full-fledged expressions in the computed expressions list.
426         (encode_actions): Move some code to ...
427         Return the cleanup chain.
428         (encode_actions_rsp): ... here.  New function.
429         (get_traceframe_location, get_traceframe_info): Remove static.
430         * tracepoint.h (struct memrange): Moved from tracepoint.c.
431         (struct collection_list): Moved from tracepoint.c.  Add two
432         new fields 'wholly_collected' and 'computed'.
433         (find_trace_state_variable_by_number): Declare.
434         (encode_actions): Adjust declaration.
435         (encode_actions_rsp): Declare.
436         (get_traceframe_info, get_traceframe_location): Declare.
437
438         * NEWS: Mention new MI command -trace-frame-collected.
439
440 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
441             Yao Qi  <yao@codesourcery.com>
442
443         * ctf.c (ctf_traceframe_info): Push trace state variables
444         present in the trace data into the traceframe info object.
445         * breakpoint.c (DEF_VEC_I): Remove.
446         * common/filestuff.c (DEF_VEC_I): Likewise.
447         * dwarf2loc.c (DEF_VEC_I): Likewise.
448         * mi/mi-main.c (DEF_VEC_I): Likewise.
449         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
450         * features/traceframe-info.dtd: Add tvar element and its
451         attributes.
452         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
453         (build_traceframe_info): Push trace state variables present in
454         the trace data into the traceframe info object.
455         (traceframe_info_start_tvar): New function.
456         (tvar_attributes): New.
457         (traceframe_info_children): Add "tvar" element.
458         * tracepoint.h (struct traceframe_info) <tvars>: New field.
459
460         * NEWS: Mention the change in GDB and GDBserver.
461
462 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
463             Yao Qi  <yao@codesourcery.com>
464
465         * tracepoint.c (trace_dump_command): Move code to ...
466         (get_traceframe_location): ... here.  New.
467
468 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
469             Yao Qi  <yao@codesourcery.com>
470
471         * tracepoint.c (trace_dump_command): GDB emits an error
472          instead of a warning when a traceframe is not selected.
473
474 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
475             Yao Qi  <yao@codesourcery.com>
476
477         * tracepoint.c (tracepoint_list, stepping_list): Remove.
478         (clear_collection_list): Free fields 'aexpre_list' and 'list'
479         in collection_list.
480         (do_clear_collection_list, init_collection_list): New.
481         (encode_actions): Add local variables 'tracepoint_list' and
482         'stepping_list'.  Call init_collection_list and make cleanup
483         which calls do_clear_collection_list.  Don't call
484         clear_collection_list.
485         (_initialize_tracepoint): Delete references to
486         'tracepoint_list' and 'stepping_list'.
487
488 2013-06-25  Tom Tromey  <tromey@redhat.com>
489
490         * common/create-version.sh (date): Use "$", not "$$" in sed
491         expression.
492
493 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
494
495         * NEWS (New targets): Add entry for TI MSP430.
496
497 2013-06-25  Yao Qi  <yao@codesourcery.com>
498
499         * remote.c (remote_start_remote): Move code to upload tsv
500         earlier.
501
502 2013-06-25  Yao Qi  <yao@codesourcery.com>
503             Hui Zhu  <hui@codesourcery.com>
504             Pedro Alves  <palves@redhat.com>
505
506         PR breakpoints/15075
507         PR breakpoints/15434
508         * breakpoint.c (bpstat_stop_status): Call
509         b->ops->after_condition_true.
510         (update_dprintf_command_list): Don't append "continue" command
511         to the command list of dprintf breakpoint.
512         (base_breakpoint_after_condition_true): New function.
513         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
514         (dprintf_after_condition_true): New function.
515         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
516         * breakpoint.h (breakpoint_ops): Add after_condition_true.
517
518 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
519
520         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
521         (ALLDEPFILES): Add msp430-tdep.c.
522         * configure.tgt (msp430*-*-elf): New target.
523         * msp430-tdep.c: New file.
524
525 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
526
527         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
528         microMIPS synthetic symbols.
529
530 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
531
532         * objfiles.h (pc_in_section): New prototype.
533         (in_plt_section): Remove name argument, replace prototype with
534         static inline function.
535         * mips-tdep.h: Include "objfiles.h".
536         (in_mips_stubs_section): New function.
537         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
538         in_solib_call_trampoline member.
539         (hppa_in_solib_call_trampoline): Remove name argument.
540         * objfiles.c (pc_in_section): New function.
541         (in_plt_section): Remove function.
542         * mips-linux-tdep.c: Include "objfiles.h".
543         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
544         name argument.  Return 1 rather than the low 16-bit halfword of
545         any instruction examined.
546         (mips_linux_in_dynsym_resolve_code): Update
547         mips_linux_in_dynsym_stub call accordingly.
548         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
549         rather than an equivalent hand-coded sequence.
550         * hppa-hpux-tdep.c (in_opd_section): Remove function.
551         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
552         (hppa64_hpux_in_solib_call_trampoline): Likewise.
553         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
554         in_opd_section.
555         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
556         on call to tdep->in_solib_call_trampoline.
557         (hppa_in_solib_call_trampoline): Remove name argument, update
558         according to in_plt_section change.
559         (hppa_skip_trampoline_code): Update according to in_plt_section
560         change.
561         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
562         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
563         Likewise.
564         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
565         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
566         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
567         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
568         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
569         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
570         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
571         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
572         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
573         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
574         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
575         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
576         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
577
578 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
579
580         * common/create-version.sh: Fix expansion of $host_alias
581         and $target_alias in generation of HOST_NAME and TARGET_NAME
582         (resp.).
583
584 2013-06-24  Tom Tromey  <tromey@redhat.com>
585
586         * common/create-version.sh: New file.
587         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
588         create-version.sh.
589         (HFILES_NO_SRCDIR): Use common/version.h.
590         * version.in: Move to ...
591         * common/version.in: ... here.  Replace date with "DATE".
592         * version.h: Move to ...
593         * common/version.h: ... here.
594
595 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
596
597         * gdb/gnulib/Makefile.in: Update date in copyright header.
598         * gdb/gnulib/configure.ac: Ditto.
599         * gdb/gnulib/update-gnulib.sh: Ditto.
600
601 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
602
603         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
604         "gdb/gnulib/import".
605
606 2013-06-21  Will Newton  <will.newton@linaro.org>
607
608         * doublest.c (ldfrexp): Remove function.
609         (convert_doublest_to_floatformat): Call frexpl instead of
610         ldfrexp.
611
612 2013-06-21  Will Newton  <will.newton@linaro.org>
613
614         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
615         * gnulib/aclocal.m4: Regenerate.
616         * gnulib/config.in: Regenerate.
617         * gnulib/configure: Regenerate.
618         * gnulib/import/Makefile.am: Update.
619         * gnulib/import/Makefile.in: Update.
620         * gnulib/import/m4/gnulib-cache.m4: Update.
621         * gnulib/import/m4/gnulib-comp.m4: Update.
622         * gnulib/import/float+.h: Import.
623         * gnulib/import/float.c: Import.
624         * gnulib/import/float.in.h: Import.
625         * gnulib/import/fpucw.h: Import.
626         * gnulib/import/frexp.c: Import.
627         * gnulib/import/frexpl.c: Import.
628         * gnulib/import/isnan.c: Import.
629         * gnulib/import/isnand-nolibm.h: Import.
630         * gnulib/import/isnand.c: Import.
631         * gnulib/import/isnanl-nolibm.h: Import.
632         * gnulib/import/isnanl.c: Import.
633         * gnulib/import/itold.c: Import.
634         * gnulib/import/m4/exponentd.m4: Import.
635         * gnulib/import/m4/exponentl.m4: Import.
636         * gnulib/import/m4/float_h.m4: Import.
637         * gnulib/import/m4/fpieee.m4: Import.
638         * gnulib/import/m4/frexp.m4: Import.
639         * gnulib/import/m4/frexpl.m4: Import.
640         * gnulib/import/m4/isnand.m4: Import.
641         * gnulib/import/m4/isnanl.m4: Import.
642         * gnulib/import/m4/math_h.m4: Import.
643         * gnulib/import/math.c: Import.
644         * gnulib/import/math.in.h: Import.
645
646 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
647
648         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
649         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
650         signature_INTEL_edx comparisons.
651
652 2013-06-20  Doug Evans  <dje@google.com>
653
654         symtab/15652
655         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
656         All callers updated.
657         (open_dwp_file): If we can't find the dwp file, search the basename
658         in debug-file-directory.
659
660         * dwarf2read.c (struct dwp_file): Fix comment.
661         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
662
663         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
664         better.
665
666 2013-06-20  Yao Qi  <yao@codesourcery.com>
667
668         * breakpoint.c (create_breakpoint): Fix code indentation.
669
670 2013-06-20  Yao Qi  <yao@codesourcery.com>
671
672         * breakpoint.c (create_breakpoints_sal_default): Remove
673         parameter 'lsal'.  Update declaration.
674         (bkpt_create_breakpoints_sal): Caller update.
675         (tracepoint_create_breakpoints_sal): Likewise.
676
677 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
678             Yao Qi  <yao@codesourcery.com>
679
680         * NEWS: Mention the new option '--skip-unavailable' of command
681         -data-list-register-values.
682         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
683         --skip-unavailable option.  Adjust to use output_register.
684         (output_register): Add new 'skip_unavailable' parameter.
685         Handle it.
686
687 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
688
689         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
690         common/i386-gcc-cpuid.h.
691         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
692         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
693         Copy the latest version from upstream gcc.
694         * common/linux-btrace.c: Include i386-cpuid.h.
695         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
696         call to i386_cpuid.
697         (cpu_supports_btrace): Likewise.
698         * go32-nat.c: Include i386-cpuid.h.
699         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
700
701 2013-06-19  Doug Evans  <dje@google.com>
702
703         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
704         (get_section_index): Ditto.
705
706 2013-06-19  Tom Tromey  <tromey@redhat.com>
707
708         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
709         "dprintf" help.
710
711 2013-06-18  Doug Evans  <dje@google.com>
712
713         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
714         before using it.
715         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
716         Move test of cu_index closer to use.  Print complaint if cu_index
717         is bad.
718
719 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
720
721         * machoread.c (oso_vector): Delete this global.
722         (macho_register_oso): Add new parameter "oso_vector_ptr".
723         Use it instead of the "oso_vector" global.
724         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
725         (macho_symfile_read): Use a local oso_vector, to be free'ed
726         at the end of this function, in place of the old "oso_vector"
727         global.  Update various function calls accordingly.  Use one
728         single cleanup chain for the entire function.
729
730 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
731
732         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
733         DWARF2_PER_OBJFILE by uses of DATA instead.
734
735 2013-06-18  Tom Tromey  <tromey@redhat.com>
736
737         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
738         argument.
739         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
740         Special case signals other than GDB_SIGNAL_TRAP.
741         (explains_signal_watchpoint): New function.
742         (base_breakpoint_explains_signal): Add 'sig' argument.
743         (initialize_breakpoint_ops): Set 'explains_signal' method for
744         watchpoints.
745         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
746         signal argument.
747         (bpstat_explains_signal): Likewise.
748         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
749
750 2013-06-18  Tom Tromey  <tromey@redhat.com>
751
752         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
753
754 2013-06-18  Tom Tromey  <tromey@redhat.com>
755
756         * python/python.c (finish_python_initialization): Decref
757         'pythondir' on failure path as well.
758
759 2013-06-18  Tom Tromey  <tromey@redhat.com>
760
761         PR symtab/15391:
762         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
763         after taking bits_to_skip into account.  Sign extend byte_offset.
764         * utils.h (gdb_sign_extend): Declare.
765         * utils.c (gdb_sign_extend): New function.
766
767 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
768
769         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
770
771 2013-06-17  Pierre Muller  <muller@sourceware.org>
772
773         * corelow.c (core_open): Print GDB signal name instead of target
774         signal number.
775
776 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
777
778         * .gitignore: Add /gcore.
779
780 2013-06-13  Doug Evans  <dje@google.com>
781
782         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
783         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
784
785 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
786
787         * stack.c (backtrace_command_1): Fix indentation.
788
789 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
790
791         * window-nat.c (thread_rec): Add missing empty line after
792         local variable declaration.
793
794 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
795
796         * windows-nat.c (thread_rec): Revert format used to print
797         error code returned by SuspendThread from %d back to %u.
798
799 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
800
801         * windows-nat.c (windows_continue): Add "0x" prefix for thread
802         ID in debug trace.
803         (get_windows_debug_event): Likewise, for all debug traces.
804
805 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
806
807         * window-nat.c (thread_rec): Add thread ID in SuspendThread
808         warning message.
809
810 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
811             Yao Qi  <yao@codesourcery.com>
812
813         * mi/mi-main.c (get_register): Remove declaration.
814         (output_register): Declare.
815         (mi_cmd_data_list_register_values): Remove local variable
816         'tuple_cleanup'.  Move some code into output_register.
817         (get_register): Renamed to ...
818         (output_register): ... this.  Output the register's
819         "number" ui_out tuple here.
820
821 2013-06-07  Pedro Alves  <palves@redhat.com>
822
823         * darwin-nat.c: Fix formating in copyright header.
824         * darwin-nat.h: Likewise.
825         * gnu-nat.c: Likewise.
826         * machoread.c: Likewise.
827
828 2013-06-07  Pedro Alves  <palves@redhat.com>
829
830         PR server/14823
831         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
832         static.  Output a global target description pointer.
833         (init_registers_${name}): Adjust to initialize a
834         target description structure.
835
836 2013-06-07  Will Newton  <will.newton@linaro.org>
837
838         * printcmd.c (build_address_symbolic): Call
839         gdbarch_addr_bits_remove for text minimal symbols.
840
841 2013-06-07  Will Newton  <will.newton@linaro.org>
842
843         * MAINTAINERS: Add myself to Write After Approval.
844
845 2013-06-07  Yao Qi  <yao@codesourcery.com>
846
847         * tracepoint.c (start_tracing): Move code to ...
848         (trace_reset_local_state): ... here.  New.
849         (disconnect_tracing): Don't call set_current_traceframe,
850         set_tracepoint_num, and set_traceframe_context. Call
851         trace_reset_local_state instead.
852         (tfile_close): Call trace_reset_local_state.
853         * ctf.c (ctf_close): Likewise.
854         * remote.c (remote_close): Likewise.
855         * tracepoint.h (trace_reset_local_state): Declare.
856
857 2013-06-06  Doug Evans  <dje@google.com>
858
859         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
860         and fix header docs.
861
862 2013-06-05  Doug Evans  <dje@google.com>
863             Keith Seitz  <keiths@redhat.com>
864
865         PR 15519
866         * cp-namespace.c (find_symbol_in_baseclass): Call
867         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
868         Check result of call to lookup_symbol_static.
869         Call lookup_static_symbol_aux unconditionally.
870         Call check_typedef on base types before accessing them.
871         (cp_lookup_nested_symbol): Fix comment.
872
873 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
874
875         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
876         minimal symbols pointing to function descriptors.
877
878 2013-06-05  Tom Tromey  <tromey@redhat.com>
879
880         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
881
882 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
883             Pedro Alves  <palves@redhat.com>
884
885         * remote.c (remote_wait_as): Restore signal handler before returning
886         when GDB gets a notification.
887
888 2013-06-04  Gary Benson  <gbenson@redhat.com>
889
890         PR 2328
891         * breakpoint.h (handle_solib_event): Moved function declaration
892         to solib.h.
893         * breakpoint.c (handle_solib_event): Moved function to solib.c.
894         (bpstat_stop_status): Pass new argument to handle_solib_event.
895         * solib.h (update_solib_breakpoints): New function declaration.
896         (handle_solib_event): Moved function declaration from
897         breakpoint.h.
898         * solib.c (update_solib_breakpoints): New function.
899         (handle_solib_event): Moved function from breakpoint.c.
900         Updated to call solib_ops->handle_event if not NULL.
901         * solist.h (target_so_ops): New fields "update_breakpoints" and
902         "handle_event".
903         * infrun.c (set_stop_on_solib_events): New function.
904         (_initialize_infrun): Use the above for "set
905         stop-on-solib-events".
906         (handle_inferior_event): Pass new argument to handle_solib_event.
907         * solib-svr4.c (probe.h): New include.
908         (svr4_free_library_list): New forward declaration.
909         (probe_action): New enum.
910         (probe_info): New struct.
911         (probe_info): New static variable.
912         (NUM_PROBES): New definition.
913         (svr4_info): New fields "using_xfer", "probes_table" and
914         "solib_list".
915         (free_probes_table): New function.
916         (free_solib_list): New function.
917         (svr4_pspace_data_cleanup): Free probes table and solib list.
918         (svr4_copy_library_list): New function.
919         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
920         (svr4_read_so_list): New parameter "prev_lm".
921         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
922         (svr4_current_sos): New function.
923         (probe_and_action): New struct.
924         (hash_probe_and_action): New function.
925         (equal_probe_and_action): Likewise.
926         (register_solib_event_probe): Likewise.
927         (solib_event_probe_at): Likewise.
928         (solib_event_probe_action): Likewise.
929         (solist_update_full): Likewise.
930         (solist_update_incremental): Likewise.
931         (disable_probes_interface_cleanup): Likewise.
932         (svr4_handle_solib_event): Likewise.
933         (svr4_update_solib_event_breakpoint): Likewise.
934         (svr4_update_solib_event_breakpoints): Likewise.
935         (svr4_create_solib_event_breakpoints): Likewise.
936         (enable_break): Free probes table before creating breakpoints.
937         Use svr4_create_solib_event_breakpoints to create breakpoints.
938         (svr4_solib_create_inferior_hook): Free the solib list.
939         (_initialize_svr4_solib): Initialise
940         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
941
942 2013-06-04  Gary Benson  <gbenson@redhat.com>
943
944         * target.h (target_ops): New field
945         "to_augmented_libraries_svr4_read".
946         (target_augmented_libraries_svr4_read): New macro.
947         * target.c (update_current_target): Handle
948         to_augmented_libraries_svr4_read.
949         * remote.c (remote_state): New field
950         "augmented_libraries_svr4_read".
951         (remote_augmented_libraries_svr4_read_feature): New function.
952         (remote_protocol_features): Add entry for
953         "augmented-libraries-svr4-read".
954         (remote_augmented_libraries_svr4_read): New function.
955         (init_remote_ops): Initialize
956         remote_ops.to_augmented_libraries_svr4_read.
957
958 2013-06-04  Gary Benson  <gbenson@redhat.com>
959
960         * NEWS: Update.
961
962 2013-06-04  Gary Benson  <gbenson@redhat.com>
963
964         * objfiles.h (inhibit_section_map_updates): New function
965         declaration.
966         (resume_section_map_updates): Likewise.
967         (resume_section_map_updates_cleanup): Likewise.
968         * objfiles.c (objfile_pspace_info): Removed field
969         "objfiles_changed_p".  New fields "new_objfiles_available",
970         "section_map_dirty" and "inhibit_updates".
971         (allocate_objfile): Set new_objfiles_available.
972         (free_objfile): Set section_map_dirty.
973         (objfile_relocate1): Likewise.
974         (in_plt_section): Likewise.
975         (find_pc_section): Update the conditions under which the
976         section map will be updated.
977         (inhibit_section_map_updates): New function.
978         (resume_section_map_updates): Likewise.
979         (resume_section_map_updates_cleanup): Likewise.
980
981 2013-06-04  Gary Benson  <gbenson@redhat.com>
982
983         * probe.h (get_probe_argument_count): New declaration.
984         (evaluate_probe_argument): Likewise.
985         * probe.c (get_probe_argument_count): New function.
986         (evaluate_probe_argument): Likewise.
987         (probe_safe_evaluate_at_pc): Use the above new functions.
988
989 2013-06-04  Alan Modra  <amodra@gmail.com>
990
991         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
992         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
993         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
994         target mem reads on optional insns.
995         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
996         ppc_insns_match_pattern calls.
997         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
998         Add match for power7 thread safety insns, and new order of
999         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
1000         invocation in comment, and update rest of comment.
1001         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
1002         PPC64_STANDARD_LINKAGE3_LEN): Delete.
1003         (ppc64_standard_linkage2_target): Update insn offsets.
1004         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
1005         stubs first.  Update calls.
1006
1007 2013-06-04  Yao Qi  <yao@codesourcery.com>
1008
1009         * solib.c (solib_find): Don't need dir separator if path has
1010         drive spec.
1011
1012 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
1013
1014         Revert (indirectly causes a SIGSEGV):
1015         * machoread.c (macho_symfile_read): Assign first cleanup to
1016         'back_to'.
1017
1018 2013-06-03  Yao Qi  <yao@codesourcery.com>
1019
1020         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
1021         mi-parse.c.  Make them static.
1022         (mi_all_values): Likewise.
1023         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
1024         mi_parse_print_values.  Make it external.
1025         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
1026         Remove the declarations.
1027         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
1028         * mi/mi-parse.h (mi_parse_print_values): Declare.
1029         * mi/mi-cmd-stack.c: Include mi-parse.h.
1030         (parse_print_values): Remove
1031         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
1032         of parse_print_values.
1033         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
1034
1035 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
1036             Yao Qi  <yao@codesourcery.com>
1037
1038         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
1039         (encode_actions): Move code to ...
1040         (all_tracepoint_actions_and_cleanup): ... here.  New.
1041         (trace_dump_command): Likewise.
1042
1043 2013-05-30  Tom Tromey  <tromey@redhat.com>
1044
1045         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
1046
1047 2013-05-30  Tom Tromey  <tromey@redhat.com>
1048
1049         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
1050         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
1051         'old_chain' argument.  Add 'parser_result' argument.
1052         (gdb_xml_create_parser_and_cleanup): Remove old version.
1053         (gdb_xml_parse_quick): Update.
1054         (xml_process_xincludes): Update.
1055         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
1056         declare.
1057
1058 2013-05-30  Tom Tromey  <tromey@redhat.com>
1059
1060         * probe.c (collect_probes): Check arguments for NULL before
1061         calling compile_rx_or_error.
1062         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
1063         Remove NULL return.
1064
1065 2013-05-30  Tom Tromey  <tromey@redhat.com>
1066
1067         * infrun.c (adjust_pc_after_break): Introduce an outer null
1068         cleanup.
1069
1070 2013-05-30  Tom Tromey  <tromey@redhat.com>
1071
1072         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
1073
1074 2013-05-30  Tom Tromey  <tromey@redhat.com>
1075
1076         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
1077         for 'old_chain'.  Do not check 'head' before processing
1078         cleanups.
1079
1080 2013-05-30  Tom Tromey  <tromey@redhat.com>
1081
1082         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
1083         "cleanup_tuple".
1084
1085 2013-05-30  Tom Tromey  <tromey@redhat.com>
1086
1087         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
1088         inner scope.  Unconditionally call do_cleanups.
1089
1090 2013-05-30  Tom Tromey  <tromey@redhat.com>
1091
1092         * source.c (find_and_open_source): Call do_cleanups.
1093
1094 2013-05-30  Tom Tromey  <tromey@redhat.com>
1095
1096         * linux-thread-db.c (thread_db_load_search): Unconditionally
1097         call do_cleanups.
1098
1099 2013-05-30  Tom Tromey  <tromey@redhat.com>
1100
1101         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
1102         for 'cleanup'; instead use a later one.
1103
1104 2013-05-30  Tom Tromey  <tromey@redhat.com>
1105
1106         * python/py-breakpoint.c (bppy_get_commands): Use
1107         explicit, unconditional return.
1108         * python/py-frame.c (frapy_read_var): Likewise.
1109         * python/python.c (gdbpy_decode_line): Likewise.
1110
1111 2013-05-30  Tom Tromey  <tromey@redhat.com>
1112
1113         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
1114         do_cleanups on all return paths.
1115
1116 2013-05-30  Tom Tromey  <tromey@redhat.com>
1117
1118         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
1119
1120 2013-05-30  Tom Tromey  <tromey@redhat.com>
1121
1122         * stabsread.c (read_struct_type): Call do_cleanups along
1123         all return paths.
1124
1125 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
1126
1127         * mips-linux-tdep.c: Adjust formatting throughout.
1128
1129 2013-05-30  Tom Tromey  <tromey@redhat.com>
1130
1131         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
1132         along all return paths.
1133
1134 2013-05-30  Tom Tromey  <tromey@redhat.com>
1135
1136         * symfile.c (find_separate_debug_file): Call do_cleanups
1137         along all return paths.
1138
1139 2013-05-30  Tom Tromey  <tromey@redhat.com>
1140
1141         * symtab.c (search_symbols): Introduce a null cleanup for
1142         'retval_chain'.
1143
1144 2013-05-30  Tom Tromey  <tromey@redhat.com>
1145
1146         * python/py-value.c (valpy_binop): Call do_cleanups before
1147         exiting loop.
1148
1149 2013-05-30  Tom Tromey  <tromey@redhat.com>
1150
1151         * python/py-prettyprint.c (print_children): Remove extra
1152         do_cleanups call.
1153
1154 2013-05-30  Tom Tromey  <tromey@redhat.com>
1155
1156         * python/py-frame.c (frapy_read_var): Call do_cleanups along
1157         all return paths.
1158
1159 2013-05-30  Tom Tromey  <tromey@redhat.com>
1160
1161         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
1162         along all return paths.
1163
1164 2013-05-30  Tom Tromey  <tromey@redhat.com>
1165
1166         * cli/cli-logging.c (set_logging_redirect): Unconditionally
1167         call do_cleanups.
1168
1169 2013-05-30  Tom Tromey  <tromey@redhat.com>
1170
1171         * varobj.c (c_value_of_root): Call do_cleanups along all
1172         return paths.
1173
1174 2013-05-30  Tom Tromey  <tromey@redhat.com>
1175
1176         * tracepoint.c (trace_dump_command): Unconditionally call
1177         do_cleanups.
1178
1179 2013-05-30  Tom Tromey  <tromey@redhat.com>
1180
1181         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
1182         do_cleanups earlier.
1183
1184 2013-05-30  Tom Tromey  <tromey@redhat.com>
1185
1186         * machoread.c (macho_symfile_read): Assign first cleanup to
1187         'back_to'.
1188
1189 2013-05-30  Tom Tromey  <tromey@redhat.com>
1190
1191         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
1192
1193 2013-05-30  Tom Tromey  <tromey@redhat.com>
1194
1195         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
1196
1197 2013-05-30  Tom Tromey  <tromey@redhat.com>
1198
1199         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
1200         call discard_cleanups.
1201         (inf_ptrace_attach): Likewise.
1202
1203 2013-05-30  Tom Tromey  <tromey@redhat.com>
1204
1205         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
1206         return paths.
1207         (mips_initialize): Likewise.
1208         (common_open): Call do_cleanups.
1209
1210 2013-05-30  Tom Tromey  <tromey@redhat.com>
1211
1212         * utils.c (internal_vproblem): Call do_cleanups.
1213
1214 2013-05-30  Tom Tromey  <tromey@redhat.com>
1215
1216         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
1217
1218 2013-05-30  Tom Tromey  <tromey@redhat.com>
1219
1220         * cli/cli-script.c (setup_user_args): Don't return after error.
1221
1222 2013-05-30  Tom Tromey  <tromey@redhat.com>
1223
1224         * somread.c (som_symtab_read): Call do_cleanups.
1225
1226 2013-05-30  Tom Tromey  <tromey@redhat.com>
1227
1228         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
1229
1230 2013-05-30  Tom Tromey  <tromey@redhat.com>
1231
1232         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
1233         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
1234         * interps.c (interpreter_exec_cmd): Call do_cleanups.
1235         * source.c (show_substitute_path_command): Call do_cleanups.
1236         (unset_substitute_path_command, set_substitute_path_command):
1237         Likewise.
1238         * symfile.c (load_command): Call do_cleanups.
1239
1240 2013-05-30  Tom Tromey  <tromey@redhat.com>
1241
1242         * contrib/cleanup_check.py: New file.
1243         * contrib/gcc-with-excheck: Add option parsing.
1244
1245 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
1246
1247         * windows-nat.c (windows_delete_thread): Add missing space
1248         in cast expression.
1249
1250 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1251
1252         * inferior.c (top level): Include tilde.h.
1253         (add_inferior_command): Call tilde_expand on the value of 'exec'
1254         argument.
1255
1256 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
1257             Yao Qi  <yao@codesourcery.com>
1258
1259         * tracepoint.c (encode_actions_1): Remove parameter 't'.
1260         Caller update.
1261         (encode_actions): Likewise.
1262         * remote.c (remote_download_tracepoint): Caller update.
1263         * tracepoint.h (encode_actions): Update declaration.
1264
1265 2013-05-30  Pedro Alves  <palves@redhat.com>
1266
1267         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
1268         pointer.
1269
1270 2013-05-30  Yao Qi  <yao@codesourcery.com>
1271
1272         * remote.c (remote_check_symbols): Remove unused parameter
1273         'objfile'.
1274         Declaration update.
1275         (remote_start_remote, remote_new_objfile): Caller update.
1276
1277 2013-05-30  Yao Qi  <yao@codesourcery.com>
1278
1279         * mi/mi-cmds.c (mi_cmds): Define MI command
1280         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
1281         DEF_MI_CMD_CLI.
1282
1283 2013-05-29  Pedro Alves  <palves@redhat.com>
1284
1285         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
1286         (remote_insert_watchpoint, remote_remove_watchpoint)
1287         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1288         (remote_verify_memory, compare_sections_command)
1289         (remote_search_memory): Set the general process/thread on the
1290         remote side.
1291
1292 2013-05-29  Pedro Alves  <palves@redhat.com>
1293
1294         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
1295         (_initialize_aarch64_tdep): Don't call
1296         initialize_tdesc_aarch64_without_fpu.
1297         * features/Makefile (WHICH): Remove reference to
1298         aarch64-without-fpu.
1299         * features/aarch64-without-fpu.c: Delete file.
1300         * regformats/aarch64-without-fpu.dat: Delete file.
1301
1302 2013-05-28  Yao Qi  <yao@codesourcery.com>
1303
1304         * tracepoint.c (stringify_collection_list): Remove parameter
1305         'string'.
1306         (encode_actions): Caller update.  Remove local variables.
1307
1308 2013-05-24  Yao Qi  <yao@codesourcery.com>
1309
1310         * tracepoint.c (TFILE_PID): Remove.
1311         (tfile_open): Don't add thread and inferior.
1312         (tfile_close): Don't set 'inferior_ptid'.  Don't call
1313         exit_inferior_silent.
1314         (tfile_thread_alive): Remove.
1315         (init_tfile_ops): Don't set field 'to_thread_alive' of
1316         tfile_ops.
1317
1318 2013-05-23  Doug Evans  <dje@google.com>
1319
1320         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
1321
1322 2013-05-23  Pedro Alves  <palves@redhat.com>
1323
1324         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
1325         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
1326         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
1327         Only define if HAVE_SOCKETS is defined.
1328         * configure.ac: Check for sys/socket.h.
1329         * config.in, configure: Regenerate.
1330
1331 2013-05-23  Pedro Alves  <palves@redhat.com>
1332
1333         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
1334         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
1335         printing uint32_t variables.
1336
1337 2013-05-23  Pedro Alves  <palves@redhat.com>
1338
1339         * NEWS: Mention GDBserver range stepping support.
1340
1341 2013-05-23  Yao Qi  <yao@codesourcery.com>
1342             Pedro Alves  <palves@redhat.com>
1343
1344         * gdbthread.h (struct thread_control_state) <may_range_step>: New
1345         field.
1346         * infcmd.c (step_once, until_next_command): Enable range stepping.
1347         * infrun.c (displaced_step_prepare): Disable range stepping.
1348         (resume): Disable range stepping if stepping over a breakpoint or
1349         we have software watchpoints.  If range stepping is enabled,
1350         assert the thread is in the stepping range.
1351         (clear_proceed_status_thread): Clear may_range_step.
1352         (handle_inferior_event): Disable range stepping as soon as we know
1353         the thread that hit the event.  Re-enable it whenever we're going
1354         to step with a step range.
1355         * remote.c (struct vCont_action_support) <r>: New field.
1356         (use_range_stepping): New global.
1357         (remote_vcont_probe): Handle 'r' action.
1358         (append_resumption): Append an 'r' action if the thread may range
1359         step.
1360         (show_range_stepping): New function.
1361         (set_range_stepping): New function.
1362         (_initialize_remote): Call add_setshow_boolean_cmd to register the
1363         'set range-stepping' and 'show range-stepping' commands.
1364         * NEWS: Mention range stepping, the new vCont;r action, and the
1365         new "set/show range-stepping" commands.
1366
1367 2013-05-23  Yao Qi  <yao@codesourcery.com>
1368             Pedro Alves  <palves@redhat.com>
1369
1370         * remote.c (struct vCont_action_support): New struct.
1371         (struct remote_state) <support_vCont_t>: Remove field.
1372         <vCont_actions_support>: New field.
1373         (remote_vcont_probe, remote_stop_ns): Update.
1374
1375 2013-05-23  Yao Qi  <yao@codesourcery.com>
1376             Pedro Alves  <palves@redhat.com>
1377
1378         * gdbthread.h (pc_in_thread_step_range): New declaration.
1379         * thread.c (pc_in_thread_step_range): New function.
1380         * infrun.c (handle_inferior_event): Use it.
1381
1382 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
1383
1384         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
1385         of sprintf.
1386
1387 2013-05-22  Keith Seitz  <keiths@redhat.com>
1388
1389         * ada-lang.c (is_known_support_routine): Add explicit free of
1390         'func_name' from find_frame_funname.
1391         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
1392         for func_name from find_frame_funname.
1393         * python/py-frame.c (frapy_name): Add explicit free of
1394         'name' from find_frame_funname.
1395         * stack.c (find_frame_funname): Add comment explaining that
1396         funcp must be freed by the caller.
1397         Return copy of symbol names instead of pointers.
1398         (print_frame): Add a cleanup for 'funname' from
1399         find_frame_funname.
1400         * stack.h (find_frame_funname): Remove "const" from
1401         'funname' parameter.
1402
1403 2013-05-22  Tom Tromey  <tromey@redhat.com>
1404
1405         PR c++/15401:
1406         * c-valprint.c (c_value_print): Use value_addr for
1407         references.  Convert back to reference type with value_ref.
1408
1409 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
1410
1411         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
1412         unloaded DLL, it will be done by handle_solib_event.  See
1413         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
1414         details.
1415
1416 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
1417
1418         * ui-out.c: Create typedef ui_out_level_p and define vector
1419         operations for that type.
1420         (struct ui_out): Use a vector instead of an array.
1421         (current_level): Return level from a vector.
1422         (push_level): Create a level in a vector.
1423         (pop_level): Delete a level in a vector.
1424         (ui_out_new): Create initial level zero level, and store in a
1425         vector.
1426         (ui_out_destroy): Add vector cleanup.
1427
1428 2013-05-22  Pedro Alves  <palves@redhat.com>
1429
1430         * python/python-internal.h (gdb_Py_DECREF): Tag with
1431         "ARI: editCase function".
1432
1433 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
1434
1435         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
1436
1437 2013-05-21  Pedro Alves  <palves@redhat.com>
1438
1439         * python/py-prettyprint.c (apply_val_pretty_printer): Check
1440         whether PRINTER is NULL before installing a Py_DECREF cleanup.
1441         * python/py-utils.c (py_decref): Don't check for NULL before
1442         calling Py_DECREF.
1443
1444 2013-05-21  Pedro Alves  <palves@redhat.com>
1445
1446         * python/py-utils.c (py_decref): Remove extra braces.
1447         (gdb_pymodule_addobject): Remove extra braces.
1448         * python-internal.h (gdb_Py_DECREF): New static inline function.
1449         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
1450
1451 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1452
1453         * breakpoints.c (detach_breakpoints): Do not
1454         detach breakpoints locations with loc_type bp_loc_other.
1455
1456 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1457
1458         Workaround Python 2.6.
1459         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
1460         a block.
1461
1462 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1463
1464         Code cleanup: constification.
1465         * solib.c (solib_ops): Make return type and ops variable type const.
1466         (set_solib_ops): Make the new_ops parameter and ops variable const.
1467         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
1468         (solib_add, solib_keep_data_in_core, clear_solib)
1469         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1470         (reload_shared_libraries, solib_global_lookup): Make the ops variable
1471         const.
1472         * solib.h (set_solib_ops): Make the new_ops parameter const.
1473
1474 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
1475
1476         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
1477         variable.
1478         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
1479         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
1480         (SYSTEM_GDBINIT_FILES): New variables.
1481         (all): Add stamp-system-gdbinit.
1482         (stamp-system-gdbinit): New rule.
1483         (clean-system-gdbinit, install-system-gdbinit)
1484         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
1485         (install-only): Add dependency on install-system-gdbinit.
1486         (uninstall): Add dependency on uninstall-system-gdbinit.
1487         (clean): Add dependency on clean-system-gdbinit.
1488         * system-gdbinit/elinos.py: New file.
1489         * system-gdbinit/wrs-linux.py: New file.
1490
1491 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
1492
1493         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
1494
1495 2013-05-21  Hui Zhu  <hui@codesourcery.com>
1496
1497         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
1498         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
1499         * mi/mi-cmd-break.c (ctype.h): New include.
1500         (gdb_obstack.h): New include.
1501         (mi_argv_to_format, mi_cmd_break_insert_1): New.
1502         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
1503         (mi_cmd_dprintf_insert): New.
1504         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
1505         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
1506
1507 2013-05-20  Tom Tromey  <tromey@redhat.com>
1508
1509         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
1510
1511 2013-05-20  Tom Tromey  <tromey@redhat.com>
1512
1513         * python/py-value.c (valpy_get_dynamic_type): Simplify
1514         dynamic_type assignment.  Use Py_XINCREF.
1515
1516 2013-05-20  Tom Tromey  <tromey@redhat.com>
1517
1518         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
1519
1520 2013-05-20  Tom Tromey  <tromey@redhat.com>
1521
1522         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
1523         (gdbpy_selected_frame): Move object-construction code
1524         out of TRY_CATCH.
1525
1526 2013-05-20  Tom Tromey  <tromey@redhat.com>
1527
1528         * python/py-arch.c (gdbpy_initialize_arch): Use
1529         gdb_pymodule_addobject.
1530         * python/py-block.c (gdbpy_initialize_blocks): Use
1531         gdb_pymodule_addobject.
1532         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
1533         gdb_pymodule_addobject.
1534         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
1535         gdb_pymodule_addobject.
1536         * python/py-event.c (gdbpy_initialize_event_generic): Use
1537         gdb_pymodule_addobject.
1538         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
1539         gdb_pymodule_addobject.
1540         * python/py-evts.c (add_new_registry): Use
1541         gdb_pymodule_addobject.
1542         (gdbpy_initialize_py_events): Likewise.
1543         * python/py-finishbreakpoint.c
1544         (gdbpy_initialize_finishbreakpoints): Use
1545         gdb_pymodule_addobject.
1546         * python/py-frame.c (gdbpy_initialize_frames): Use
1547         gdb_pymodule_addobject.
1548         * python/py-function.c (gdbpy_initialize_functions): Use
1549         gdb_pymodule_addobject.
1550         * python/py-inferior.c (gdbpy_initialize_inferior): Use
1551         gdb_pymodule_addobject.
1552         * python/py-infthread.c (gdbpy_initialize_thread): Use
1553         gdb_pymodule_addobject.
1554         * python/py-objfile.c (gdbpy_initialize_objfile): Use
1555         gdb_pymodule_addobject.
1556         * python/py-param.c (gdbpy_initialize_parameters): Use
1557         gdb_pymodule_addobject.
1558         * python/py-progspace.c (gdbpy_initialize_pspace): Use
1559         gdb_pymodule_addobject.
1560         * python/py-symbol.c (gdbpy_initialize_symbols): Use
1561         gdb_pymodule_addobject.
1562         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
1563         gdb_pymodule_addobject.
1564         * python/py-type.c (gdbpy_initialize_types): Use
1565         gdb_pymodule_addobject.
1566         * python/py-utils.c (gdb_pymodule_addobject): New function.
1567         * python/py-value.c (gdbpy_initialize_values): Use
1568         gdb_pymodule_addobject.
1569         * python/python-internal.h (gdb_pymodule_addobject): Declare.
1570         * python/python.c (_initialize_python): Use
1571         gdb_pymodule_addobject.
1572
1573 2013-05-20  Tom Tromey  <tromey@redhat.com>
1574
1575         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
1576         * python/py-param.c (get_set_value, get_show_value): Use
1577         explicit decrefs.
1578         * python/python.c (start_type_printers, apply_type_printers):
1579         Use explicit decrefs.
1580
1581 2013-05-20  Tom Tromey  <tromey@redhat.com>
1582
1583         * python/py-evts.c (gdbpy_initialize_py_events): Don't
1584         incref the module.
1585
1586 2013-05-20  Tom Tromey  <tromey@redhat.com>
1587
1588         * python/python.c (gdbpy_run_events): Decref the result
1589         of PyObject_CallObject.
1590
1591 2013-05-20  Tom Tromey  <tromey@redhat.com>
1592
1593         * python/py-symtab.c (set_sal): Use
1594         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
1595         (symtab_and_line_to_sal_object): Update.
1596
1597 2013-05-20  Tom Tromey  <tromey@redhat.com>
1598
1599         * python/py-param.c (compute_enum_values): Decref 'item'.
1600
1601 2013-05-20  Tom Tromey  <tromey@redhat.com>
1602
1603         * mi/mi-main.c: Include python-internal.h.
1604         (mi_cmd_list_features): Check gdb_python_initialized.
1605         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1606         (python_inferior_exit, python_new_objfile, add_thread_object)
1607         (delete_thread_object, py_free_inferior): Check
1608         gdb_python_initialized.
1609         * python/py-prettyprint.c (apply_val_pretty_printer): Check
1610         gdb_python_initialized.
1611         * python/py-type.c (save_objfile_types): Check
1612         gdb_python_initialized.
1613         * python/python-internal.h (gdb_python_initialized): Declare.
1614         * python/python.c (ensure_python_env): Throw exception if
1615         Python not initialized.
1616         (before_prompt_hook, source_python_script_for_objfile)
1617         (start_type_printers, apply_type_printers,
1618         free_type_printers): Check gdb_python_initialized.
1619         * varobj.c (varobj_get_display_hint)
1620         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
1621         (install_new_value_visualizer, varobj_set_visualizer)
1622         (value_get_print_value): Check gdb_python_initialized.
1623
1624 2013-05-20  Tom Tromey  <tromey@redhat.com>
1625
1626         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
1627         Check errors.
1628         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
1629         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
1630         Check errors.
1631         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
1632         Check errors.
1633         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
1634         Check errors.
1635         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
1636         Check errors.
1637         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
1638         init function to return 'int'.
1639         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
1640         Return 'int'.  Check errors.
1641         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
1642         Check errors.
1643         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
1644         Return 'int'.  Check errors.
1645         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
1646         Check errors.
1647         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
1648         Check errors.
1649         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
1650         Check errors.
1651         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
1652         Check errors.
1653         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
1654         Check errors.
1655         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
1656         Check errors.
1657         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
1658         Check errors.
1659         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
1660         Check errors.
1661         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
1662         Check errors.
1663         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
1664         Check errors.
1665         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
1666         Check errors.
1667         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
1668         Check errors.
1669         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
1670         Check errors.
1671         * python/python-internal.h (gdbpy_initialize_auto_load,
1672         gdbpy_initialize_values, gdbpy_initialize_frames,
1673         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
1674         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
1675         gdbpy_initialize_blocks, gdbpy_initialize_types,
1676         gdbpy_initialize_functions, gdbpy_initialize_pspace,
1677         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
1678         gdbpy_initialize_finishbreakpoints,
1679         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
1680         gdbpy_initialize_thread, gdbpy_initialize_inferior,
1681         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
1682         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
1683         gdbpy_initialize_signal_event,
1684         gdbpy_initialize_breakpoint_event,
1685         gdbpy_initialize_continue_event,
1686         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
1687         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
1688         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1689         * python/python.c (gdb_python_initialized): New global.
1690         (gdbpy_initialize_events): Return 'int'.  Check errors.
1691         (_initialize_python): Check errors.  Set
1692         gdb_python_initialized.
1693
1694 2013-05-20  Tom Tromey  <tromey@redhat.com>
1695
1696         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
1697         Decref the reslut of PyObject_CallMethod.
1698
1699 2013-05-20  Tom Tromey  <tromey@redhat.com>
1700
1701         * python/py-event.c (gdbpy_initialize_event_generic): Return
1702         early if PyType_Ready fails.
1703
1704 2013-05-20  Tom Tromey  <tromey@redhat.com>
1705
1706         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
1707         as 'default' in the switch.
1708
1709 2013-05-20  Tom Tromey  <tromey@redhat.com>
1710
1711         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
1712         get_addr_from_python calls out of TRY_CATCH.
1713         (infpy_write_memory, infpy_search_memory): Likewise.
1714         * python/py-utils.c (get_addr_from_python): Return negative
1715         value on error.  Use TRY_CATCH.
1716         * python/python-internal.h (get_addr_from_python): Use
1717         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1718
1719 2013-05-20  Tom Tromey  <tromey@redhat.com>
1720
1721         * python/py-event.c (evpy_emit_event): Decref the
1722         result of PyObject_CallFunctionObjArgs.
1723
1724 2013-05-20  Tom Tromey  <tromey@redhat.com>
1725
1726         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
1727         Correctly decref.
1728
1729 2013-05-20  Tom Tromey  <tromey@redhat.com>
1730
1731         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
1732
1733 2013-05-20  Tom Tromey  <tromey@redhat.com>
1734
1735         * python/py-event.h (gdbpy_initialize_event_generic): Use
1736         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1737         * python/py-evts.c (add_new_registry): Use
1738         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1739         * python/python-internal.h
1740         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
1741
1742 2013-05-20  Tom Tromey  <tromey@redhat.com>
1743
1744         * python/py-arch.c (archpy_disassemble): Update.
1745         * python/py-type.c (typy_get_composite, typy_lookup_typename)
1746         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
1747         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
1748         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
1749         macro.
1750         (GDB_PY_HANDLE_EXCEPTION): Update.
1751         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
1752
1753 2013-05-20  Tom Tromey  <tromey@redhat.com>
1754
1755         * python/python-internal.h (events_object_type): Remove.
1756
1757 2013-05-20  Tom Tromey  <tromey@redhat.com>
1758
1759         * python/py-event.h (evpy_emit_event): Use
1760         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1761         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1762         New macro.
1763
1764 2013-05-20  Tom Tromey  <tromey@redhat.com>
1765
1766         * py-evtregistry.c (create_event_object): Decref
1767         eventregistry_object if PyList_New fails.
1768
1769 2013-05-20  Tom Tromey  <tromey@redhat.com>
1770
1771         * py-cmd.c (gdbpy_string_to_argv): Check result of
1772         PyList_New.
1773
1774 2013-05-20  Tom Tromey  <tromey@redhat.com>
1775
1776         * python/python.c (before_prompt_hook): Add cleanup to
1777         decref 'hook'.
1778
1779 2013-05-20  Tom Tromey  <tromey@redhat.com>
1780
1781         * python/py-function.c (fnpy_init): Decref result of
1782         PyObject_GetAttrString.
1783
1784 2013-05-20  Tom Tromey  <tromey@redhat.com>
1785
1786         * python/py-threadevent.c (get_event_thread): Use
1787         CPYCHECKER_RETURNS_BORROWED_REF.
1788         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1789         New define.
1790         (pspace_to_pspace_object, objfile_to_objfile_object)
1791         (find_thread_object): Use it.
1792
1793 2013-05-20  Tom Tromey  <tromey@redhat.com>
1794
1795         * python/py-arch.c (arch_object_type): Use
1796         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1797         * python/py-block.c (block_syms_iterator_object_type):
1798         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1799         * python/py-bpevent.c (breakpoint_event_object_type):
1800         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1801         * python/py-cmd.c (cmdpy_object_type): Use
1802         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1803         * python/py-continueevent.c (continue_event_object_type):
1804         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1805         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
1806         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1807         * python/py-events.h (thread_event_object_type):
1808         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1809         * python/py-evtregistry.c (eventregistry_object_type): Use
1810         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1811         * python/py-exitedevent.c (exited_event_object_type):
1812         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1813         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
1814         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1815         * python/py-function.c (fnpy_object_type): Use
1816         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1817         * python/py-inferior.c (inferior_object_type, membuf_object_type):
1818         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1819         * python/py-infthread.c (thread_object_type): Use
1820         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1821         * python/py-lazy-string.c (lazy_string_object_type):
1822         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1823         * python/py-newobjfileevent.c (new_objfile_event_object_type):
1824         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1825         * python/py-objfile.c (objfile_object_type): Use
1826         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1827         * python/py-param.c (parmpy_object_type):
1828         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1829         * python/py-progspace.c (pspace_object_type):
1830         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1831         * python/py-signalevent.c (signal_event_object_type):
1832         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1833         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
1834         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1835         * python/py-type.c (type_object_type, field_object_type)
1836         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1837         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
1838         define.
1839         (value_object_type, block_object_type, symbol_object_type)
1840         (event_object_type, stop_event_object_type, breakpoint_object_type)
1841         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1842
1843 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
1844
1845         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
1846         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
1847
1848 2013-05-20  Doug Evans  <dje@google.com>
1849
1850         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
1851         For Fission.
1852         * dwarf2read.c (struct dwarf2_per_cu_data): New member
1853         reading_dwo_directly.
1854         (struct signatured_type): New member dwo_unit.
1855         (struct die_reader_specs): New member comp_dir.
1856         (create_signatured_type_table_from_index): Use malloc for
1857         all_type_units instead of objfile's obstack.
1858         (create_all_type_units): Ditto.
1859         (fill_in_sig_entry_from_dwo_entry): New function.
1860         (add_type_unit): New function.
1861         (lookup_dwo_signatured_type): New function.
1862         (lookup_dwp_signatured_type): New function.
1863         (lookup_signatured_type): New arg cu.  All callers updated.
1864         (init_cu_die_reader): Initialize comp_dir.
1865         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
1866         Change assert of matching type signatures to call error on mismatch.
1867         (lookup_dwo_unit): Add assert.
1868         (init_tu_and_read_dwo_dies): New function.
1869         (init_cutu_and_read_dies): Call it.
1870         (build_type_unit_groups): Handle case of no type unit groups created.
1871         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
1872         (lookup_dwo_cutu): Tweak complaint.
1873         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
1874         (dwarf2_per_objfile_free): Free all_type_units.
1875
1876 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1877
1878         * windows-nat.c (handle_unload_dll): Add missing empty line.
1879
1880 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1881
1882         * dwarf2read.c (prototyped_function_p): New function.
1883         (read_subroutine_type): Use it.
1884
1885 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
1886
1887         * rs6000-aix-tdep.c: De-indent some example code provided
1888         as a comment.
1889
1890 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1891
1892         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1893         region is ok for a hardware watchpoint using the new ptrace interface
1894         on Power servers.
1895
1896 2013-05-17  Doug Evans  <dje@google.com>
1897
1898         * NEWS: Mention new maintenance commands check-symtabs, and
1899         expand-symtabs, and renamed check-psymtabs.
1900         * psymtab.c (maintenance_check_psymtabs): Renamed from
1901         maintenance_check_symtabs.  Only process already-expanded symbol
1902         tables.
1903         (_initialize_psymtab): Update.
1904         * symmisc.c (maintenance_check_symtabs): New function.
1905         (maintenance_expand_name_matcher): New function
1906         (maintenance_expand_file_matcher): New function
1907         (maintenance_expand_symtabs): New function.
1908         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1909         commands.
1910
1911 2013-05-17  Tom Tromey  <tromey@redhat.com>
1912
1913         * python/py-inferior.c (infpy_read_memory): Don't call
1914         PyErr_SetString if PyObject_New fails.
1915         * python/py-frame.c (frame_info_to_frame_object): Don't call
1916         PyErr_SetString if PyObject_New fails.
1917
1918 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
1919
1920         * acinclude.m4: Add check for dlopen in libdl.
1921         * configure.ac: Ditto.
1922         * configure: Regenerate.
1923
1924 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
1925
1926         * frame.c (frame_stash): Convert to htab.
1927         (frame_addr_hash): New function.
1928         (frame_addr_hash_eq): New function.
1929         (frame_stash_create): Convert function to create
1930         a hash table.
1931         (frame_stash_add): Convert function to add an entry to a hash
1932         table.
1933         (frame_stash_find): Convert function to search the hash table.
1934         (frame_stash_invalidate): Convert function to empty the hash
1935         table.
1936         (get_frame_id): Only add to stash if a frame_id is created.
1937         (_initialize_frame): Call frame_stash_create.
1938
1939 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
1940
1941         * configure.ac: Ensure MIG is available when building for GNU Hurd
1942         hosts.
1943         * configure: Regenerate.
1944
1945 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
1946
1947         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1948
1949 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
1950
1951         * ada-lang.c (ada_make_symbol_completion_list): Make sure
1952         all cleanups are done before returning from this function.
1953
1954 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
1955
1956         * utils.h: #include "exceptions.h".
1957         (enum errors): Remove partial declaration.
1958
1959 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
1960
1961         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1962         * gdbarch.h, gdbarch.c: Regenerate.
1963         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1964         handling.
1965
1966         * rs6000-aix-tdep.h: New file.
1967         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1968         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1969         "xml-utils.h".
1970         (struct field_info, struct ld_info_desc): New types.
1971         (ld_info32_desc, ld_info64_desc): New static constants.
1972         (struct ld_info): New type.
1973         (rs6000_aix_extract_ld_info): New function.
1974         (rs6000_aix_shared_library_to_xml): Likewise.
1975         (rs6000_aix_ld_info_to_xml): Likewise.
1976         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1977         (rs6000_aix_init_osabi): Add call to
1978         set_gdbarch_core_xfer_shared_libraries_aix.
1979         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1980         Remove "xml-utils.h" include.
1981         (LdInfo): Delete typedef.
1982         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1983         Delete macros.
1984         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1985         Adjust code accordingly.
1986         (rs6000_core_ldinfo): Delete, folded into
1987         rs6000_aix_core_xfer_shared_libraries_aix.
1988         (rs6000_xfer_shared_library): Delete.
1989         (rs6000_xfer_shared_libraries): Reimplement.
1990
1991 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
1992
1993         * record.c (record_goto_cmdlist): New.
1994         (cmd_record_goto): Split into this ...
1995         (cmd_record_goto_begin): ... this
1996         (cmd_record_goto_end): ... and this.
1997         (_initialize_record): Change "record goto" to prefix command.
1998         Add commands for "record goto begin" and "record goto end".
1999         Add an alias for "record goto start" to "record goto begin".
2000
2001 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2002
2003         * linespec.c (convert_linespec_to_sals): New comment for
2004         SOURCE_FILENAME assignment.
2005
2006 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2007
2008         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
2009         internal_warning.
2010
2011 2013-05-14  Tom Tromey  <tromey@redhat.com>
2012
2013         * eval.c (parse_and_eval_long): Make 'exp' const.
2014         * value.h (parse_and_eval_long): Update.
2015
2016 2013-05-14  Tom Tromey  <tromey@redhat.com>
2017
2018         * ui-file.c (gdb_fopen): Make arguments const.
2019         * ui-file.h (gdb_fopen): Make arguments const.
2020
2021 2013-05-14  Tom Tromey  <tromey@redhat.com>
2022
2023         * remote.c (remote_set_trace_notes): Make arguments const.
2024         * target.c (update_current_target): Update cast.
2025         * target.h (to_set_trace_notes): Make arguments const.
2026
2027 2013-05-14  Tom Tromey  <tromey@redhat.com>
2028
2029         * go32-nat.c (go32_terminal_info): Make 'args' const.
2030         * inferior.h (child_terminal_info): Update.
2031         * inflow.c (child_terminal_info): Make 'args' const.
2032         * target.c (default_terminal_info): Make 'args' const.
2033         (debug_to_terminal_save_ours): Likewise.
2034         * target.h (struct target_ops) <to_terminal_info>: Make argument
2035         const.
2036
2037 2013-05-13  Tom Tromey  <tromey@redhat.com>
2038
2039         * gcore.c (create_gcore_bfd): Make 'filename' const.
2040         * gcore.h (create_gcore_bfd): Make 'filename' const.
2041         * record-full.c (record_full_save): Make 'recfilename' const.
2042         * target.c (target_save_record): Make 'filename' const.
2043         * target.h (struct target_ops) <to_save_record>: Make 'filename'
2044         const.
2045         (target_save_record): Likewise.
2046
2047 2013-05-13  Tom Tromey  <tromey@redhat.com>
2048
2049         PR gdb/15338:
2050         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
2051         ranges section has been read.
2052
2053 2013-05-13  Tom Tromey  <tromey@redhat.com>
2054
2055         PR exp/15364:
2056         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2057         STRUCTOP_PTR>: Return a not_lval value for
2058         EVAL_AVOID_SIDE_EFFECTS.
2059         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
2060         for EVAL_AVOID_SIDE_EFFECTS.
2061
2062 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
2063
2064         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
2065         floating point registers to register type before storing
2066         value.
2067         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
2068         Likewise.
2069
2070 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
2071             Tom Tromey  <tromey@redhat.com>
2072
2073         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2074         New functions.
2075         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2076         Declare.
2077         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
2078         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
2079         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
2080         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
2081
2082 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
2083             Tom Tromey  <tromey@redhat.com>
2084
2085         PR build/15414:
2086         * configure: Rebuild.
2087         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
2088         with -Wno-format.
2089
2090 2013-05-10  Pedro Alves  <palves@redhat.com>
2091
2092         * remote.c (_initialize_remote): Fix spelling of
2093         qXfer:traceframe-info:read packet in packet config command.
2094
2095 2013-05-10  David Taylor  <dtaylor@emc.com>
2096
2097         PR remote/15455
2098
2099         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
2100         "QTro" at start of packet.
2101
2102 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
2103
2104         * solib-aix.c (solib_aix_relocate_section_addresses):
2105         For the .bss section action, apply the same offset as
2106         the .data section.
2107
2108 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
2109
2110         * solib-aix.c (solib_aix_relocate_section_addresses):
2111         Remove FIXME comment.
2112
2113 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
2114
2115         PR tdep/15420:
2116         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2117         New functions, directly copied from sparc-sol-thread.c.
2118         * sparc-sol-thread.c: Delete.
2119         * configure.ac: Remove code handling sparc-solaris-thread.c.
2120         * configure: Regenerate.
2121
2122 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
2123
2124         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
2125         filter logic.
2126         (backtrace_command): Add "no-filters" option parsing.
2127         (_initialize_stack): Alter help to reflect "no-filters" option.
2128         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
2129         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
2130         (py-frame.o): Add target
2131         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
2132         filter files.
2133         * python/python.h: Add new frame filter constants, and flag enum.
2134         (apply_frame_filter): Add definition.
2135         * python/python.c (apply_frame_filter): New non-Python
2136         enabled function.
2137         * python/py-utils.c (py_xdecref): New function.
2138         (make_cleanup_py_xdecref): Ditto.
2139         * python/py-objfile.c: Declare frame_filters dictionary.
2140         (objfpy_dealloc): Add frame_filters dealloc.
2141         (objfpy_new): Initialize frame_filters attribute.
2142         (objfile_to_objfile_object): Ditto.
2143         (objfpy_get_frame_filters): New function.
2144         (objfpy_set_frame_filters): New function.
2145         * python/py-progspace.c: Declare frame_filters dictionary.
2146         (pspy_dealloc): Add frame_filters dealloc.
2147         (pspy_new): Initialize frame_filters attribute.
2148         (pspacee_to_pspace_object): Ditto.
2149         (pspy_get_frame_filters): New function.
2150         (pspy_set_frame_filters): New function.
2151         * python/py-framefilter.c: New file.
2152         * python/lib/gdb/command/frame_filters.py: New file.
2153         * python/lib/gdb/frames.py: New file.
2154         * python/lib/gdb/__init__.py: Initialize global frame_filters
2155         dictionary
2156         * python/lib/gdb/FrameDecorator.py: New file.
2157         * python/lib/gdb/FrameIterator.py: New file.
2158         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
2159         * mi/mi-cmds.h: Declare.
2160         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
2161         --no-frame-filter logic, and Python frame filter logic.
2162         (stack_enable_frame_filters): New function.
2163         (parse_no_frame_option): Ditto.
2164         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
2165         filter logic.
2166         (mi_cmd_stack_list_locals): Ditto.
2167         (mi_cmd_stack_list_args): Ditto.
2168         (mi_cmd_stack_list_variables): Ditto.
2169         * NEWS: Add frame filter note.
2170
2171 2013-05-09  Doug Evans  <dje@google.com>
2172
2173         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
2174         All callers updated.
2175         (syms_from_objfile): Ditto.  Make static.
2176         (symbol_file_add_with_addrs): Renamed from
2177         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
2178         num_offsets.  All callers updated.
2179         * symfile.h (syms_from_objfile): Delete.
2180
2181         * symfile.c (decrement_reading_symtab): Add assert.
2182         (increment_reading_symtab): Ditto.
2183
2184 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
2185
2186         * source.c (forward_search_command): Replace call to getc
2187         by call to fgetc.
2188         (reverse_search_command): Likewise.
2189
2190 2013-05-08  Doug Evans  <dje@google.com>
2191
2192         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
2193         matching test.
2194
2195 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
2196
2197         * sol-thread.c (info_cb): Factorize the code a little.
2198
2199 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
2200
2201         * sol-thread.c (info_cb): Rework the output of the "maintenance
2202         info sol-threads" command a bit.
2203
2204 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
2205
2206         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
2207         Replace ti.ti_startfunc by ti.ti_pc.
2208
2209 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
2210
2211         * solib-aix.c (solib_aix_free_library_list): New function
2212         for the case where HAVE_LIBEXPAT is not defined.
2213
2214 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
2215
2216         PR breakpoints/15413:
2217         * breakpoint.c (condition_completer): Simplify the code to
2218         disconsider multiple locations of breakpoints when completing the
2219         "condition" command.
2220
2221 2013-05-07  Pierre Muller  <muller@sourceware.org>
2222
2223         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
2224         instead of <sys/wait.h>.
2225
2226 2013-05-07  Pierre Muller  <muller@sourceware.org>
2227
2228         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
2229         trailing new line from warning message.
2230
2231 2013-05-07  Pierre Muller  <muller@sourceware.org>
2232
2233         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
2234         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
2235
2236 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
2237
2238         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
2239         error message (ARI fix).
2240
2241 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
2242
2243         * features/library-list-aix.dtd: Replace library-list by
2244         library-list-aix.
2245         * rs6000-nat.c: Replace library-list by library-list-aix
2246         throughout.
2247         * solib-aix.c: Likewise.
2248
2249 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
2250
2251         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
2252         Renames TARGET_OBJECT_AIX_LIBRARIES.
2253         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
2254         TARGET_OBJECT_LIBRARIES_AIX throughout.
2255         * solib-aix.c: Likwise.
2256
2257 2013-05-07  Yao Qi  <yao@codesourcery.com>
2258
2259         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
2260         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
2261
2262 2013-05-07  Yao Qi  <yao@codesourcery.com>
2263
2264         * solib-dsbt.c (enable_break): Declare.
2265         (dsbt_current_sos): Remove call to enable_break2.
2266         (enable_break2): Rename to enable_break.  Set solib breakpoint
2267         on '_dl_debug_state'.
2268         (enable_break): Remove.
2269
2270 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
2271
2272         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
2273         debug state prior to replicating existing hardware watchpoints or
2274         breakpoints.
2275
2276 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2277
2278         * gcore.c (gcore_create_callback): Ignore sections with
2279         separate_debug_objfile_backlink != NULL.
2280
2281 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
2282             Andrew Jenner  <andrew@codesourcery.com>
2283             Chung-Lin Tang  <cltang@codesourcery.com>
2284             Julian Brown  <julian@codesourcery.com>
2285
2286         Based on the nios2-elf port from Altera Corporation.
2287
2288         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
2289         nios2-linux-tdep.o.
2290         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
2291         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
2292         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
2293         * nios2-tdep.h: New.
2294         * nios2-tdep.c: New.
2295         * nios2-linux-tdep.c: New.
2296         * features/Makefile (WHICH): Add nios2-linux.
2297         (nios2-linux-expedite): Set.
2298         * features/nios2-cpu.xml: New.
2299         * features/nios2.xml: New.
2300         * features/nios2-linux.xml: New.
2301         * features/nios2.c: New (autogenerated).
2302         * features/nios2-linux.c: New (autogenerated).
2303         * regformats/nios2-linux.dat: New (autogenerated).
2304         * NEWS (Changes since GDB 7.6): Add new Nios II targets
2305         and commands.
2306
2307 2013-05-06  Doug Evans  <dje@google.com>
2308
2309         * symfile.c: Whitespace cleanup.
2310
2311         * solist.h (struct target_so_ops): New member clear_so.
2312         * solib-svr4.c (svr4_clear_so): New function.
2313         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
2314         * solib.c (clear_so): Renamed from free_so_symbols.
2315         All callers updated.  Call target clear_so if it exists.
2316
2317 2013-05-06  Tom Tromey  <tromey@redhat.com>
2318
2319         * ada-lang.c (ada_value_primitive_packed_val): Don't
2320         call value_incref.
2321         * value.c (set_value_parent): Incref the new parent and decref
2322         the old parent.
2323         (value_copy, value_primitive_field): Use set_value_parent.
2324
2325 2013-05-06  Tom Tromey  <tromey@redhat.com>
2326
2327         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
2328         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
2329         if needed.
2330         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
2331         * dwarf2read.c (write_constant_as_bytes)
2332         (dwarf2_fetch_constant_bytes): New functions.
2333
2334 2013-05-06  Tom Tromey  <tromey@redhat.com>
2335
2336         * dwarf2read.c (dwarf2_const_value_data): Remove unused
2337         parameters.
2338         (dwarf2_const_value_attr): Update.
2339
2340 2013-05-06  Tom Tromey  <tromey@redhat.com>
2341
2342         * somread.c (som_symfile_offsets): Add 'const' to addrs.
2343         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
2344         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
2345         Remove declaration.
2346
2347 2013-05-06  Tom Tromey  <tromey@redhat.com>
2348
2349         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
2350         objfile's obstack.
2351
2352 2013-05-06  Doug Evans  <dje@google.com>
2353
2354         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
2355         * stabsread.h (process_one_symbol): Update declaration.
2356         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
2357         * elfread.c (elf_symfile_relocate_probe): Ditto.
2358         * psymtab.c (relocate_psymtabs): Ditto.
2359         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
2360         (objfile_relocate): Ditto.
2361         * objfiles.h (objfile_relocate): Update declaration.
2362         * symfile.c (relative_addr_info_to_section_offsets): Constify
2363         addrs parameter.
2364         (default_symfile_offsets): Ditto.
2365         (syms_from_objfile_1): Constify offsets parameter.
2366         (syms_from_objfile): Ditto.
2367         (symbol_file_add_with_addrs_or_offsets): Ditto.
2368         (symfile_map_offsets_to_segments): Constify data parameter.
2369         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
2370         delta parameters of member relocate.
2371         (struct sym_probe_fns): Constify new_offsets,
2372         delta parameters of member sym_relocate_probe.
2373         (struct sym_fns): Constify section_addr_info parameter of member
2374         sym_offsets.
2375         (relative_addr_info_to_section_offsets): Update declaration.
2376         (default_symfile_offsets): Ditto.
2377         (syms_from_objfile): Ditto.
2378         (symfile_map_offsets_to_segments): Ditto.
2379
2380         * symfile.c (syms_from_objfile_1): Use correct section count when
2381         objfile->sf == NULL.
2382
2383 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
2384
2385         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
2386
2387 2013-05-06  Doug Evans  <dje@google.com>
2388
2389         * psympriv.h (struct partial_symtab): Augment comment for member
2390         section_offsets.
2391
2392 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2393
2394         Reimplement shared library support on ppc-aix...
2395         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
2396         * features/library-list-aix.dtd: New file.
2397         * solib-aix.h, solib-aix.c: New file.
2398         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
2399         (rs6000_find_toc_address_hook): Delete.
2400         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
2401         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
2402         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
2403         "xml-utils.h".
2404         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
2405         (vmap_symtab, fixup_breakpoints): Delete.
2406         (rs6000_xfer_shared_libraries): New function.
2407         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
2408         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
2409         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
2410         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
2411         (rs6000_xfer_shared_library): New function.
2412         (find_toc_address): Delete.
2413         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
2414         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
2415         * xcoffread.c (record_minimal_symbol): Reloate symbol address
2416         before creating minimal symbol.  Adjust function description
2417         accordingly.
2418         (scan_xcoff_symtab): Replace call to
2419         prim_record_minimal_symbol_and_info by call to
2420         record_minimal_symbol.
2421         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
2422         around default_symfile_offsets.
2423         * configure.tgt: Add solib-aix.o to gdb_target_obs for
2424         powerpc-aix targets.
2425         * config/rs6000/nm-rs6000.h: Delete.
2426         * config/powerpc/aix.mh (NAT_FILE): Delete.
2427         (NATDEPFILES): Remove xcoffsolib.o.
2428         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
2429         (ALL_TARGET_OBS): Add solib-aix.o.
2430         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
2431         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
2432         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
2433         * xcoffsolib.h, xcoffsolib.c: Delete.
2434
2435         * solib.c (reload_shared_libraries): Remove reference to
2436         SOLIB_CREATE_INFERIOR_HOOK.
2437         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
2438         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
2439         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
2440         comment.
2441         * corelow.c (deprecated_core_resize_section_table): Delete.
2442         * exec.c: Remove include of xcoffsolib.h".
2443         (map_vmap, vmap): Delete.
2444         (exec_close_1): Remove references to vmap.
2445         (exec_file_attach): Remove vmap handling code, and reference
2446         to DEPRECATED_IBM6000_TARGET.
2447         (bfdsec_to_vmap): Delete.
2448         (exec_files_info): Remove block of code handling VMAP.
2449         * infcmd.c (post_create_inferior): Remove reference to
2450         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
2451         * infrun.c (follow_exec): Remove reference to
2452         SOLIB_CREATE_INFERIOR_HOOK.
2453         * stack.c (print_frame): Remove reference to PC_SOLIB.
2454         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
2455         (dsbt_relocate_main_executable): Likewise.
2456         * solib-frv.c (frv_current_sos): Likewise.
2457
2458 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2459
2460         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
2461         to target_write_memory and target_read_memory.
2462
2463 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2464
2465         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
2466         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
2467
2468 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2469
2470         * darwin-nat.c: Replace all "%x" instances in format strings
2471         into "0x%x" throughout.
2472
2473 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2474
2475         * darwin-nat.c (darwin_mourn_inferior): Replace call to
2476         gdb_assert by call to MACH_CHECK_ERROR.
2477         (darwin_attach_pid): Raise an error rather than a failed
2478         assertion when various system calls failed.  Report a warning
2479         instead of raising a failed assertion when PREV_NOT is not NULL
2480         after call to mach_port_request_notification.
2481         (darwin_ptrace_me): Raise an error rather than a failed
2482         assertion when read returns nonzero.
2483
2484 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
2485
2486         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
2487
2488 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2489
2490         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
2491
2492 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2493
2494         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
2495         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
2496         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
2497         a stale cleanup.  Fix double free of NAME.
2498
2499 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
2500
2501         * windows-nat.c (windows_delete_thread): Accept an additional
2502         argument, the thread's exit code, and announce thread death when
2503         print_thread_events is non-zero and we are deleting a thread that
2504         is not the main thread.
2505         (get_windows_debug_event): Pass thread exit code to
2506         windows_delete_thread.
2507
2508 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
2509
2510         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
2511         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
2512         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
2513         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
2514         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
2515         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
2516         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
2517         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
2518         (gdbarch_tdep): New struct.
2519         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
2520         E_NUM_REGS.
2521         (v850e3v5_register_name): New function.
2522         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
2523         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
2524         code handling the struct return conventions for the RH850 ABI.
2525         Update all callers.
2526         (v850_eight_byte_align_p): New function.
2527         (v850_push_call_dummy): Push structs by value, not by reference
2528         for the RH850 ABI.  Add support for eight byte alignment.
2529         (v850_dbtrap_breakpoint_from_pc): New function.
2530         (v850_gdbarch_init): Add ABI detection code.  Register
2531         v850e3v5_register_name for the v850e3v5 architecture.  Set the
2532         number of registers for v850e3v5.  Register
2533         v850_dbtrap_breakpoint_from_pc as appropriate.
2534         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
2535
2536 2013-05-03  Doug Evans  <dje@google.com>
2537
2538         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
2539         of bfd_count_sections.
2540         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
2541         * symfile.c (default_symfile_offsets): Ditto.
2542         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
2543         one entry, not bfd_count_sections entries.
2544
2545 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
2546
2547         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
2548         `save' and `restore' register groups.  Don't include SPL
2549         or SPH in these groups.
2550         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
2551         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
2552         RL78_ES_REGNUM, and RL78_CS_REGNUM.
2553         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
2554         dwarf2_append_unwinders().
2555
2556 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2557
2558         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
2559         ignore SIGINT and SIGTRAP in case these internal signals are
2560         caught explicitely.
2561
2562 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
2563
2564         * darwin-nat.c (darwin_read_write_inferior): Change types
2565         of parameters rdaddr and wraddr to "gdb_byte *". Change type
2566         of copy_count to "mach_msg_type_number_t".
2567         (darwin_read_dyld_info): Change type of parameter
2568         rdaddr to "gdb_byte *".
2569
2570 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
2571
2572         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
2573         of &info->load_map from "char *" to "gdb_byte *".
2574
2575 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
2576
2577         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
2578         from "char *" to "gdb_byte *".
2579         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
2580
2581 2013-04-30  Doug Evans  <dje@google.com>
2582
2583         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
2584         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
2585         DWO stub.  If DWO isn't found, just use stub.
2586         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
2587
2588         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
2589         calling init_cutu_and_read_dies.
2590
2591 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2592
2593         * target-descriptions.c (maint_print_c_tdesc_cmd):
2594         Add case to parse structures as register types and
2595         bitfields.
2596
2597 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2598
2599         * MAINTAINERS (Write After Approval): Add myself to the list.
2600
2601 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2602
2603         * sol-thread.c (rw_common): Change type of parameter "buf"
2604         to "gdb_byte *".
2605         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
2606         rw_common to "gdb_byte *" instead of "char *".
2607
2608 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2609
2610         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
2611         of local variable msym to const struct bound_minimal_symbol.
2612         Adjust use accordingly.
2613         [ti.ti_state == TD_THR_SLEEP]: Likewise.
2614
2615 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
2616
2617         * i386gnu-nat.c (CREG_OFFSET): New macro.
2618         (creg_offset): New array.
2619         (CREG_ADDR): Use creg_offset instead of reg_offset.
2620
2621 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2622
2623         * mep-tdep.c (mep_write_pc): Delete.
2624         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
2625         Add call to set_gdbarch_pc_regnum.
2626
2627 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2628
2629         * common/filestuff.c: Replace #include <dirent.h> by
2630         #include "gdb_dirent.h".
2631
2632 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
2633
2634         * common/filestuff.c: Replace #include <sys/stat.h> by
2635         #include "gdb_stat.h".
2636
2637 2013-04-29  Pierre Muller  <muller@sourceware.org>
2638
2639         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
2640         editCase function rule.
2641         (get_DW_AT_signature_type): Likewise.
2642
2643 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
2644
2645         * m32r-tdep.c (m32r_write_pc): Delete.
2646         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
2647         Add call to set_gdbarch_pc_regnum.
2648
2649 2013-04-29  Pierre Muller  <muller@sourceware.org>
2650
2651         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
2652
2653 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
2654
2655         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
2656
2657 2013-04-28  Yao Qi  <yao@codesourcery.com>
2658
2659         * solib-dsbt.c (fetch_loadmap): Re-indent.
2660         (displacement_from_map, enable_break2): Likewise.
2661         (dsbt_relocate_section_addresses): Likewise.
2662
2663 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
2664
2665         GDB 7.6 released.
2666
2667 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
2668
2669         PR corefiles/14983:
2670         * dwarf2read.c (process_full_comp_unit): Always create a static
2671         block.
2672
2673 2013-04-25  Hui Zhu  <hui@codesourcery.com>
2674
2675         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
2676         to loc->cmd_bytecode.
2677
2678 2013-04-24  Doug Evans  <dje@google.com>
2679
2680         * dwarf2read.c (setup_type_unit_groups): Fix comment.
2681
2682 2013-04-22  Keith Seitz  <keiths@redhat.com>
2683
2684         * tracepoint.c (trace_save):  Call the writer's start method.
2685
2686 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
2687
2688         PR gdb/10462
2689         * cli/cli-decode.c (lookup_command): Show an error if there is no space
2690         before argument.
2691
2692 2013-04-23  Tom Tromey  <tromey@redhat.com>
2693
2694         * common/filestuff.c: Check USE_WIN32API before including
2695         sys/socket.h.
2696         (HAVE_F_GETFD): New define.
2697         (mark_cloexec): Check HAVE_F_GETFD.
2698         (gdb_open_cloexec): Change 'mode' to unsigned long.
2699         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
2700         (gdb_pipe_cloexec): Check HAVE_PIPE.
2701         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
2702         long.
2703
2704 2013-04-23  Hui Zhu  <hui@codesourcery.com>
2705
2706         PR gdb/15293
2707         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
2708
2709 2013-04-23  Hui Zhu  <hui@codesourcery.com>
2710
2711         PR gdb/15165
2712         * breakpoint.c (dprintf_print_recreate): New.
2713         (save_breakpoints): Let it not save dprintf commands.
2714         (initialize_breakpoint_ops): Set dprintf_print_recreate.
2715
2716 2013-04-22  Tom Tromey  <tromey@redhat.com>
2717
2718         PR gdb/7912:
2719         * Makefile.in (SFILES): Add filestuff.c
2720         (COMMON_OBS): Add filestuff.o.
2721         (filestuff.o): New target.
2722         * auto-load.c (auto_load_objfile_script_1): Use
2723         gdb_fopen_cloexec.
2724         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
2725         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
2726         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
2727         * common/agent.c (gdb_connect_sync_socket): Use
2728         gdb_socket_cloexec.
2729         * common/filestuff.c: New file.
2730         * common/filestuff.h: New file.
2731         * common/linux-osdata.c (linux_common_core_of_thread)
2732         (command_from_pid, commandline_from_pid, print_source_lines)
2733         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2734         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
2735         gdb_fopen_cloexec.
2736         * common/linux-procfs.c (linux_proc_get_int)
2737         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
2738         * config.in, configure: Rebuild.
2739         * configure.ac: Don't check for sys/socket.h.  Check for
2740         fdwalk, pipe2.
2741         * corelow.c (core_open): Use gdb_open_cloexec.
2742         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
2743         * fork-child.c (fork_inferior): Call close_most_fds.
2744         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
2745         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
2746         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
2747         Use gdb_fopen_cloexec.
2748         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
2749         gdb_open_cloexec.
2750         (linux_async_pipe): Use gdb_pipe_cloexec.
2751         * remote-fileio.c (remote_fileio_func_open): Use
2752         gdb_open_cloexec.
2753         * remote.c (remote_file_put, remote_file_get): Use
2754         gdb_fopen_cloexec.
2755         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
2756         close_most_fds.
2757         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
2758         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
2759         * solib.c (solib_find): Use gdb_open_cloexec.
2760         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
2761         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
2762         (tfile_open): Use gdb_open_cloexec.
2763         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
2764         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
2765         * xml-support.c (xml_fetch_content_from_file): Use
2766         gdb_fopen_cloexec.
2767         * main.c (captured_main): Call notice_open_fds.
2768
2769 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2770
2771         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
2772         'char *' to 'gdb_byte *'.
2773         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
2774         'gdb_byte'.
2775
2776 2013-04-22  Yao Qi  <yao@codesourcery.com>
2777
2778         * infrun.c: Fix typo in comment.
2779
2780 2013-04-22  Andrew Haley  <aph@redhat.com>
2781
2782         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
2783         instead of "long".
2784
2785 2013-04-20  Yao Qi  <yao@codesourcery.com>
2786
2787         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
2788         'char *' to 'gdb_byte *'.  Cast the return value of
2789         'bt_ctf_get_char_array' to 'gdb_byte *'.
2790
2791 2013-04-19  Pedro Alves  <palves@redhat.com>
2792
2793         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
2794         -Wpointer-sign.
2795         * configure: Regenerate.
2796
2797 2013-04-19  Pedro Alves  <palves@redhat.com>
2798
2799         * ser-tcp.c (net_read_prim): Cast second argument to recv to
2800         'void *'.
2801
2802 2013-04-19  Pedro Alves  <palves@redhat.com>
2803
2804         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
2805         Change type of 'myaddr' parameter to gdb_byte pointer.
2806         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
2807         to 'long long' pointer instead of to 'unsigned long long'.
2808         (monitor_write_memory_block, monitor_read_memory_single)
2809         (monitor_read_memory): Change type of 'myaddr' parameter to
2810         gdb_byte pointer.
2811
2812 2013-04-19  Pedro Alves  <palves@redhat.com>
2813
2814         * record.c (validate_history_size): Make parameter 'setting'
2815         unsigned.
2816
2817 2013-04-19  Pedro Alves  <palves@redhat.com>
2818
2819         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
2820         to 'gdb_byte *'.
2821
2822 2013-04-19  Pedro Alves  <palves@redhat.com>
2823
2824         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
2825         local to int.
2826
2827 2013-04-19  Pedro Alves  <palves@redhat.com>
2828
2829         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
2830         * ada-tasks.c (read_fat_string_value): Likewise.
2831
2832 2013-04-19  Pedro Alves  <palves@redhat.com>
2833
2834         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
2835         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
2836         'offset', and adjust.
2837
2838 2013-04-19  Pedro Alves  <palves@redhat.com>
2839
2840         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
2841         (read_index_from_section): Add cast to 'char *'.
2842
2843 2013-04-19  Pedro Alves  <palves@redhat.com>
2844
2845         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
2846
2847 2013-04-19  Pedro Alves  <palves@redhat.com>
2848
2849         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
2850
2851 2013-04-19  Pedro Alves  <palves@redhat.com>
2852
2853         * record-full.c (record_full_get_bookmark): Change local 'ret'
2854         type to char * and add cast to gdb_byte *.
2855         (record_full_goto_bookmark): Handle 'bookmark' argument as a
2856         string.
2857         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
2858
2859 2013-04-19  Pedro Alves  <palves@redhat.com>
2860
2861         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
2862         * python/py-prettyprint.c (print_string_repr): Change type of
2863         'output' local to char *.  Add cast to gdb_byte * in
2864         LA_PRINT_STRING call.
2865         (print_children): Change type of 'output' local to char *.
2866         * python/py-value.c (valpy_string): Add cast to const char * in
2867         PyUnicode_Decode call.
2868
2869 2013-04-19  Pedro Alves  <palves@redhat.com>
2870
2871         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
2872         and change its type to 'const char *'.  Adjust.
2873         (mips_send_packet): Add cast to 'char *', and remove cast to
2874         'unsigned char *'.
2875         (mips_receive_packet): Remove cast to 'unsigned char *'.
2876         (mips_load_srec): Use bfd_byte.
2877         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
2878         (pmon_checkset): Make 'value' parameter unsigned.
2879
2880 2013-04-19  Pedro Alves  <palves@redhat.com>
2881
2882         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
2883
2884 2013-04-19  Pedro Alves  <palves@redhat.com>
2885
2886         * remote.c (remote_write_bytes_aux, compare_sections_command)
2887         (remote_read_qxfer)
2888         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2889         (remote_hostio_readlink, remote_bfd_iovec_pread)
2890         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2891         binary buffer, and char when buffer is used as string.
2892         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2893         (trace_save, tfile_open, traceframe_walk_blocks)
2894         (tfile_fetch_registers): Likewise.
2895
2896 2013-04-19  Pedro Alves  <palves@redhat.com>
2897
2898         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2899         buffer and size_t size.  Adjust.
2900         * ser-base.h (ser_base_write): Adjust.
2901         * ser-go32.c (cnts): Change type to size_t.
2902         (dos_write): Change prototype -- take 'void *'
2903         buffer and size_t size.  Adjust.
2904         (dos_info): Print elements of 'cnts' as unsigned long.
2905         * serial.c (serial_write): Likewise.
2906         * serial.h (serial_write): Adjust.
2907         (struct serial_ops) <write>: Change prototype -- take 'void *'
2908         buffer and size_t size.  Adjust.
2909
2910 2013-04-19  Pedro Alves  <palves@redhat.com>
2911
2912         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2913         gdb_byte *.
2914         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2915
2916 2013-04-19  Pedro Alves  <palves@redhat.com>
2917
2918         * alpha-tdep.c (alpha_extract_return_value): Use
2919         regcache_cooked_read_unsigned to read 'v0'.
2920
2921 2013-04-19  Pedro Alves  <palves@redhat.com>
2922
2923         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2924         parameters 'at', 'as' and 'offset' to uint32_t.
2925
2926 2013-04-19  Pedro Alves  <palves@redhat.com>
2927
2928         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2929         'is64' to signed 'int'.
2930
2931 2013-04-19  Pedro Alves  <palves@redhat.com>
2932
2933         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2934         parameter to int *.
2935
2936 2013-04-19  Pedro Alves  <palves@redhat.com>
2937
2938         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2939         'insnbuf' buffer type to unsigned int[].
2940
2941 2013-04-19  Pedro Alves  <palves@redhat.com>
2942
2943         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2944
2945 2013-04-19  Pedro Alves  <palves@redhat.com>
2946
2947         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2948         unsigned long *.
2949
2950 2013-04-19  Pedro Alves  <palves@redhat.com>
2951
2952         * alpha-tdep.c (heuristic_fence_post): Change type to int.
2953         (alpha_heuristic_proc_start): Adjust to check -1 instead of
2954         UINT_MAX.
2955         * mips-tdep.c (heuristic_fence_post): Change type to int.
2956         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2957
2958 2013-04-19  Pedro Alves  <palves@redhat.com>
2959
2960         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2961         (struct gdbarch_tdep) <cris_version>: Make unsigned.
2962         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2963
2964 2013-04-19  Pedro Alves  <palves@redhat.com>
2965
2966         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
2967         it to get a string view of the byte buffer.
2968         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2969         type to gdb_byte *.  Adjust.
2970         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2971         Change local to char *.
2972         * solib-darwin.c (find_program_interpreter): Change return type to
2973         char *.  Adjust.
2974         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2975         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2976         * solib-frv.c (enable_break2): Change local 'buf' to char *.
2977         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2978         * solib-svr4.c (find_program_interpreter): Change return type to
2979         char *.  Adjust.
2980         (enable_break): Change local 'interp_name' to char *.
2981         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2982         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2983         (spu_pseudo_register_write_spu): Use char for string buffer.
2984         Adjust.
2985         (info_spu_event_command, info_spu_signal_command): Add casts to
2986         'char *'.
2987
2988 2013-04-19  Pedro Alves  <palves@redhat.com>
2989
2990         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2991         gdb_byte[].
2992         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2993         * ada-lang.c (ada_value_assign): Use gdb_byte.
2994         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2995         (alphanbsd_sigtramp_offset): Use gdb_byte.
2996         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2997         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2998         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2999         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
3000         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
3001         * arm-tdep.c (arm_stub_unwind_sniffer)
3002         (arm_displaced_init_closure): Use gdb_byte.
3003         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
3004         (arm_default_thumb_le_breakpoint)
3005         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
3006         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
3007         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
3008         * arm-wince-tdep.c (arm_wince_le_breakpoint)
3009         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
3010         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
3011         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
3012         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
3013         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
3014         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
3015         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
3016         (cris_store_return_value, cris_extract_return_value): Use
3017         gdb_byte.
3018         (constraint): Change type of parameter to char * from signed
3019         char*.  Use gdb_byte.
3020         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
3021         of local buffer to gdb_byte *.
3022         * dwarf2read.c (read_index_from_section): Use gdb_byte.
3023         (create_dwp_hash_table): Change type of locals to gdb_byte *.
3024         (add_address_entry): Change type of local buffer to gdb_byte[].
3025         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
3026         (frv_push_dummy_call): Use gdb_byte.
3027         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
3028         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
3029         (hppa_hpux_supply_save_state): Use gdb_byte.
3030         * hppa-tdep.c (hppa32_push_dummy_call)
3031         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
3032         * ia64-tdep.c (extract_bit_field, replace_bit_field)
3033         (slotN_contents, replace_slotN_contents): Change type of parameter
3034         to gdb_byte *.
3035         (fetch_instruction, ia64_pseudo_register_write)
3036         (ia64_register_to_value, ia64_value_to_register)
3037         (ia64_extract_return_value, ia64_store_return_value)
3038         (ia64_push_dummy_call): Use gdb_byte.
3039         * m32c-tdep.c (m32c_return_value): Remove cast.
3040         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
3041         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
3042         gdb_byte.
3043         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
3044         * mn10300-tdep.c (mn10300_store_return_value)
3045         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
3046         gdb_byte.
3047         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
3048         (moxie_process_record): Remove casts.
3049         * ppc-ravenscar-thread.c (supply_register_at_address)
3050         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
3051         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
3052         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
3053         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
3054         * remote.c (compare_sections_command): Use gdb_byte.
3055         * score-tdep.c (score7_free_memblock): Change type of parameter to
3056         gdb_byte *.
3057         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
3058         gdb_byte *.  Use gdb_byte.
3059         (sh_push_dummy_call_fpu): Use gdb_byte.
3060         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
3061         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
3062         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
3063         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
3064         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
3065         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
3066         (sh64_store_return_value, sh64_register_convert_to_virtual):
3067         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
3068         (sh64_pseudo_register_write): Use gdb_byte.
3069         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
3070         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
3071         buffer.
3072         (irix_current_sos): Use gdb_byte.
3073         * solib-som.c (som_current_sos): Use gdb_byte.
3074         * sparc-ravenscar-thread.c (supply_register_at_address)
3075         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
3076         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3077         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
3078         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
3079         'gdb_byte *'.
3080         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
3081         'gdb_byte *'.
3082         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
3083         * xstormy16-tdep.c (xstormy16_extract_return_value)
3084         (xstormy16_store_return_value): Change parameter type to
3085         'gdb_byte *'.  Adjust.
3086         (xstormy16_push_dummy_call): Use gdb_byte.
3087         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
3088         (call0_analyze_prologue, execute_code): Use gdb_byte.
3089
3090 2013-04-19  Vladimir Kargov <kargov@gmail.com>
3091             Pedro Alves  <palves@redhat.com>
3092
3093         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
3094         value contents.
3095
3096 2013-04-17  Doug Evans  <dje@google.com>
3097
3098         * dwarf2read.c (struct signatured_type): New member type.
3099         (struct attribute): Replace member signatured_type with signature.
3100         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
3101         (read_call_site_scope): Call follow_die_ref instead of
3102         follow_die_ref_or_sig.
3103         (read_structure_type): Rewrite handling of signatured types.
3104         (read_enumeration_type): Ditto.
3105         (read_attribute_value): Update.
3106         (build_error_marker_type): New function.
3107         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
3108         Don't call error for bad types, just build an error marker type.
3109         (dump_die_shallow): Update.
3110         (follow_die_sig_1): Renamed from follow_die_sig.
3111         Don't call error for bad types, instead return NULL.
3112         (follow_die_sig): New function.
3113         (get_signatured_type, get_DW_AT_signature_type): New functions.
3114
3115 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
3116
3117         * aarch64-tdep.c (aarch64_write_pc): Removed.
3118         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
3119         function.
3120
3121 2013-04-17  Yao Qi  <yao@codesourcery.com>
3122
3123         * top.c (print_gdb_configuration): Print configure-time
3124         parameter on using libbabeltrace or not.
3125
3126 2013-04-16  Pedro Alves  <palves@redhat.com>
3127
3128         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
3129
3130 2013-04-16  Pedro Alves  <palves@redhat.com>
3131
3132         * common/glibc_thread_db.h: Update from upstream glibc
3133         (git 568035b7874a099087b77f7bba3e36a1173787b0).
3134
3135 2013-04-16  Pedro Alves  <palves@redhat.com>
3136
3137         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
3138         * common/glibc_thread_db.h: ... this new file ...
3139         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
3140
3141 2013-04-16  Will Newton  <will.newton@gmail.com>
3142             Pedro Alves  <palves@redhat.com>
3143
3144         PR build/11881
3145
3146         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
3147         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
3148         HAVE_THREAD_DB_H.
3149
3150 2013-04-16  Pedro Alves  <palves@redhat.com>
3151             Eli Zaretskii  <eliz@gnu.org>
3152
3153         * NEWS: Mention "set foo unlimited".
3154
3155 2013-04-15  Doug Evans  <dje@google.com>
3156
3157         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
3158         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
3159         (create_dwo_cu_reader): Renamed from
3160         create_dwo_debug_info_hash_table_reader.
3161         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
3162         Remove support for multiple CUs in a DWO file.
3163         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
3164
3165         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
3166         instead of phex.
3167         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
3168         (create_dwo_in_dwp): Ditto.
3169
3170 2013-04-15  Tom Tromey  <tromey@redhat.com>
3171
3172         * NEWS: Move recent entries into "since 7.6" section.
3173
3174 2013-04-15  Tom Tromey  <tromey@redhat.com>
3175
3176         PR c++/13588:
3177         * NEWS: Update.
3178         * break-catch-throw.c (struct exception_catchpoint)
3179         <exception_rx, pattern>: New fields.
3180         (fetch_probe_arguments, dtor_exception_catchpoint)
3181         (check_status_exception_catchpoint)
3182         (print_one_detail_exception_catchpoint): New functions.
3183         (handle_gnu_v3_exceptions): Add "except_rx" argument.
3184         Compile regular expression if needed.
3185         (extract_exception_regexp): New function.
3186         (catch_exception_command_1): Use extract_exception_regexp.
3187         (compute_exception): Use fetch_probe_arguments.
3188         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
3189         and check_status fields.
3190         * cp-abi.c (cplus_typename_from_type_info): New function.
3191         * cp-abi.h (cplus_typename_from_type_info): Declare.
3192         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
3193         * gdb_regex.h (compile_rx_or_error): Declare.
3194         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
3195         comment.
3196         (init_gnuv3_ops): Set get_type_from_type_info field.
3197         * probe.c (compile_rx_or_error): Move...
3198         * utils.c (compile_rx_or_error): ... here.
3199
3200 2013-04-15  Tom Tromey  <tromey@redhat.com>
3201
3202         PR c++/15176:
3203         * NEWS: Update.
3204         * break-catch-throw.c (compute_exception): New function.
3205         (exception_funcs): New global.
3206         (_initialize_break_catch_throw): Create $_exception.
3207         * cp-abi.c (cplus_type_from_type_info): New function.
3208         * cp-abi.h (cplus_type_from_type_info): Declare.
3209         (struct cp_abi_ops) <get_type_from_type_info>: New field.
3210         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
3211         (gnuv3_get_type_from_type_info): New functions.
3212         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
3213
3214 2013-04-15  Tom Tromey  <tromey@redhat.com>
3215
3216         * break-catch-throw.c (struct exception_names): New.
3217         (exception_functions): Change type.
3218         (re_set_exception_catchpoint): Look for SDT probes.
3219
3220 2013-04-15  Tom Tromey  <tromey@redhat.com>
3221
3222         PR c++/10119:
3223         * break-catch-throw.c (exception_functions): New global.
3224         (gnu_v3_exception_catchpoint_ops): Move earlier.
3225         (struct exception_catchpoint): New.
3226         (classify_exception_breakpoint): Rewrite.
3227         (re_set_exception_catchpoint): New function.
3228         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
3229         Allocate a struct exception_catchpoint.
3230         (catch_exception_command_1): Update.
3231         (initialize_throw_catchpoint_ops): Set 're_set' method.
3232
3233 2013-04-15  Tom Tromey  <tromey@redhat.com>
3234
3235         * Makefile.in (SFILES): Add break-catch-throw.c
3236         (COMMON_OBS): Add break-catch-throw.o.
3237         * break-catch-throw.c: New file.
3238         * breakpoint.c: Move exception-catching code to new file.
3239         (ep_parse_optional_if_clause): No longer static.
3240         * breakpoint.h (ep_parse_optional_if_clause): Declare.
3241
3242 2013-04-15  Tom Tromey  <tromey@redhat.com>
3243
3244         PR c++/9065:
3245         * NEWS: Update.
3246         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
3247         * c-exp.y (TYPEID): New token.
3248         (exp): Add new TYPEID productions.
3249         (ident_tokens): Add "typeid".
3250         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
3251         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
3252         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
3253         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
3254         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
3255         case.
3256         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
3257         (build_std_type_info_type, gnuv3_get_typeid_type)
3258         (gnuv3_get_typeid): New functions.
3259         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
3260         new fields on ABI object.
3261         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
3262         * std-operator.def (OP_TYPEID): New.
3263
3264 2013-04-15  Tom Tromey  <tromey@redhat.com>
3265
3266         * elfread.c (elf_symtab_read): Install versioned symbol under
3267         unversioned name as well.
3268
3269 2013-04-15  Tom Tromey  <tromey@redhat.com>
3270
3271         PR c++/11990:
3272         * c-lang.c (cplus_language_defn): Use gdb_demangle.
3273         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
3274         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
3275         (gdb_demangle): New function.
3276         * cp-support.h (gdb_demangle): Declare.
3277         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
3278         (dwarf2_name): Use gdb_demangle.
3279         * gdbtypes.c (check_stub_method): Use gdb_demangle.
3280         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
3281         suffixes from name.
3282         (gnuv3_print_method_ptr): Use gdb_demangle.
3283         * jv-lang.c (java_demangle): Use gdb_demangle.
3284         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
3285         * language.c (unk_lang_demangle): Use gdb_demangle.
3286         * symtab.c (symbol_find_demangled_name)
3287         (demangle_for_lookup): Use gdb_demangle.
3288
3289 2013-04-15  Tom Tromey  <tromey@redhat.com>
3290
3291         PR c++/12824:
3292         * NEWS: Update.
3293         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
3294         New constant.
3295         (classify_exception_breakpoint): New function.
3296         (print_it_exception_catchpoint, print_one_exception_catchpoint)
3297         (print_mention_exception_catchpoint)
3298         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
3299         (catch_exception_command_1): Handle "rethrow" catchpoint.
3300         (catch_rethrow_command): New function.
3301         (_initialize_breakpoint): Add "catch rethrow" command.
3302
3303 2013-04-15  Pierre Muller  <muller@sourceware.org>
3304
3305         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
3306         set_gdbarch_write_pc as deprecated anymore.
3307
3308 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
3309
3310         * spu-tdep.c (spu_write_pc): Add empty line after local variable
3311         declarations.
3312
3313 2013-04-13  Yao Qi  <yao@codesourcery.com>
3314
3315         * ctf.c (_initialize_ctf): Include "completer.h".
3316         Call add_target_with_completer instead of add_target.
3317
3318 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3319
3320         Fix GDB regression related to PR binutils/14813.
3321         * jit.c (mem_bfd_iovec_close): Return 0 for success.
3322         * minidebug.c (lzma_close): Add return value comment.
3323         * remote.c (remote_bfd_iovec_close): Return 0 for success.
3324         * solib-spu.c (spu_bfd_iovec_close): Likewise.
3325         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
3326
3327 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3328
3329         * config.in: Regenerate.
3330
3331 2013-04-12  Tom Tromey  <tromey@redhat.com>
3332
3333         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
3334         const.
3335         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
3336         (struct die_reader_specs) <buffer>: Likewise.
3337         (die_reader_func_ftype): Make 'info_ptr' const.
3338         (struct line_header) <include_dirs, statement_program_start,
3339         statement_program_end>: Now const.
3340         (struct file_entry) <name>: Likewise.
3341         (struct partial_die_info) <sibling>: Likewise.
3342         (struct dwarf_block) <data>: Likewise.
3343         (dwarf2_read_section): Remove cast.
3344         (dwarf2_get_section_info): Make 'bufp' const.
3345         (read_index_from_section): Constify.
3346         (dw2_get_file_names_reader): Make 'info_ptr' const.
3347         (dw2_get_primary_filename_reader): Likewise.
3348         (read_comp_unit_head): Make 'info_ptr' and return type const.
3349         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
3350         Likewise.
3351         (read_abbrev_offset): Constify.
3352         (dwarf2_create_include_psymtab): Make 'name' const.
3353         (create_debug_types_hash_table): Update.
3354         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
3355         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
3356         Constify.
3357         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
3358         (load_partial_comp_unit_reader): Make 'info_ptr' const.
3359         (read_comp_units_from_section): Constify.
3360         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
3361         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
3362         const.
3363         (dwarf2_compute_name, setup_type_unit_groups): Constify.
3364         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
3365         (create_dwp_hash_table, dwarf2_ranges_read)
3366         (dwarf2_record_block_ranges): Constify.
3367         (read_die_and_children, read_die_and_siblings_1)
3368         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
3369         const.
3370         (read_full_die_1, read_full_die): Make 'info_ptr' const.
3371         (abbrev_table_read_table): Constify.
3372         (load_partial_dies): Make 'info_ptr' const.
3373         (read_partial_die, read_attribute_value, read_attribute): Make
3374         'info_ptr' and return type const.
3375         (read_address, read_initial_length)
3376         (read_checked_initial_length_and_offset, read_offset)
3377         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
3378         const.
3379         (read_direct_string): Make 'buf' and return type const.
3380         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
3381         (read_indirect_string): Make return type const.
3382         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
3383         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
3384         'info_ptr' const.
3385         (read_str_index): Make return type const.
3386         (add_include_dir): Make 'include_dir' const.
3387         (add_file_name): Make 'name' const.
3388         (dwarf_decode_line_header): Constify.
3389         (psymtab_include_file_name): Make return type const.
3390         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
3391         (dwarf2_start_subfile): Make 'filename' const.
3392         (dwarf2_const_value_attr): Make 'bytes' const.
3393         (read_signatured_type_reader): Make 'info_ptr' const.
3394         (decode_locdesc): Constify.
3395         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
3396         const.
3397         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
3398         'mac_end', and return type const.
3399         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
3400         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
3401         type const.
3402         (per_cu_header_read_in): Constify.
3403         * symfile.h (dwarf2_get_section_info): Update.
3404
3405 2013-04-12  Tom Tromey  <tromey@redhat.com>
3406
3407         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
3408
3409 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
3410
3411         * NEWS: Mention "show configuration", --configuration.
3412         * top.c (print_gdb_configuration): New function, displays the
3413         details about GDB configure-time parameters.
3414         (print_gdb_version): Mention "show configuration".
3415         * cli/cli-cmds.c (show_configuration): New function.
3416         (_initialize_cli_cmds): Add the "show configuration" command.
3417         * main.c (captured_main) <print_configuration>: New static var.
3418         <long_options>: Use it.
3419         If --configuration was given, call print_gdb_configuration.
3420
3421 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3422             Pedro Alves  <palves@redhat.com>
3423
3424         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
3425         (generated_files): Add gcore.
3426         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
3427         HAVE_NATIVE_GCORE_HOST.
3428         (gcore): New.
3429         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
3430         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
3431         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
3432         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
3433         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
3434         Add HAVE_NATIVE_GCORE_HOST.
3435         * configure: Regenerate.
3436         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
3437         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
3438         AC_CONFIG_FILES for gcore.
3439         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
3440         gdb_have_gcore.
3441         * gdb_gcore.sh: Rename to ...
3442         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
3443         and GCORE_TRANSFORM_NAME substitutions.
3444
3445         Fix parsing tabs in ${gdb_target_obs}.
3446         * configure.tgt (gdb_have_gcore): Replace case with for and if.
3447
3448 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3449
3450         * remote.c (unpush_and_perror): Add output message final dot.
3451
3452 2013-04-11  Yao Qi  <yao@codesourcery.com>
3453
3454         * tracepoint.c (tfile_interp_line): Fit parameters line and
3455         utpp in one line.
3456
3457 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
3458
3459         * solib.c (solib_map_sections): Remove code overwriting
3460         SO->SO_NAME with the bfd's filename.
3461
3462 2013-04-10  Pedro Alves  <palves@redhat.com>
3463
3464         * cli/cli-decode.c (integer_unlimited_completer): New function.
3465         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
3466         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
3467         completer.
3468         * cli/cli-setshow.c: Include "cli/cli-utils.h".
3469         (is_unlimited_literal): New function.
3470         (do_set_command): Handle literal "unlimited" arguments.
3471         * frame.c (_initialize_frame) <set backtrace limit>: Document
3472         "unlimited".
3473         * printcmd.c (_initialize_printcmd) <set print
3474         max-symbolic-offset>: Add help text.
3475         * record-full.c (_initialize_record_full) <set record full
3476         insn-number-max>: Likewise.
3477         * record.c (_initialize_record) <set record
3478         instruction-history-size, set record function-call-history-size>:
3479         Add help text.
3480         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
3481         help text.
3482         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
3483         Likewise.
3484         * source.c (_initialize_source) <set listsize>: Add help text.
3485         * utils.c (initialize_utils) <set height, set width>: Likewise.
3486         <set pagination>: Mention "set height unlimited".
3487         * valprint.c (_initialize_valprint) <set print elements, set print
3488         repeats>: Document "unlimited".
3489
3490 2013-04-10  Pedro Alves  <palves@redhat.com>
3491
3492         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
3493         instead of disconnect_tracing.
3494         * infcmd.c (detach_command, disconnect_command): Call
3495         query_if_trace_running.  Adjust.
3496         * top.c: Include "tracepoint.h".
3497         (quit_target): Delete.  Contents moved ...
3498         (quit_force): ... here.  Wrap each stage of teardown in
3499         TRY_CATCH.  Call disconnect_tracing before detaching.
3500
3501 2013-04-10  Hui Zhu  <hui@codesourcery.com>
3502             Yao Qi  <yao@codesourcery.com>
3503
3504         * configure.ac: Check libbabeltrace is installed.
3505         * config.in: Regenerate.
3506         * configure: Regenerate.
3507         * Makefile.in (LIBBABELTRACE): New.
3508         (CLIBS): Add LIBBABELTRACE.
3509         * ctf.c: Include "exec.h".
3510         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
3511         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
3512         (ctf_save_metadata_header): Define new type aliases in
3513         metadata.
3514         (ctf_write_header): Define event type "tsv_def" and "tp_def"
3515         in metadata.  Start a new faked packet for trace status.
3516         (ctf_write_status): Write trace status to CTF.
3517         (ctf_write_uploaded_tsv): Write TSV to CTF.
3518         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
3519         (ctf_write_definition_end): End the faked packet.
3520
3521         (ctx, ctf_iter, trace_dirname): New.
3522         (start_pos): New variable.
3523         (ctf_destroy, ctf_open_dir, ctf_open): New.
3524         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
3525         macros.
3526         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
3527         (ctf_fetch_registers, ctf_xfer_partial): New.
3528         (ctf_get_trace_state_variable_value): New.
3529         (ctf_get_tpnum_from_frame_event): New.
3530         (ctf_get_traceframe_address): New.
3531         (ctf_trace_find, ctf_has_stack): New.
3532         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
3533         (ctf_get_trace_status, ctf_read_status): New.
3534         (_initialize_ctf): New.
3535         * tracepoint.c (get_tracepoint_number): New
3536         (get_uploaded_tsv): Remove 'static'.
3537         (struct traceframe_info, trace_regblock_size): Move it to ...
3538         * tracepoint.h: ... here.
3539         (get_tracepoint_number): Declare it.
3540         (get_uploaded_tsv): Declare it.
3541
3542         * NEWS: Mention new configure option.
3543
3544 2013-04-10  Pedro Alves  <palves@redhat.com>
3545             Hui Zhu  <hui@codesourcery.com>
3546
3547         * breakpoint.c (dprintf_re_set): New.
3548         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
3549         to dprintf_re_set.
3550
3551 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
3552
3553         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
3554         Remove solib-svr4.o from the list.
3555
3556 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
3557
3558         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
3559         Use gdb_assert_not_reached instead of invalid boolean expression.
3560
3561 2013-04-09  Pedro Alves  <palves@redhat.com>
3562
3563         * remote.c (unpush_and_perror): New function.
3564         (readchar, remote_serial_write): Use it.
3565
3566 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
3567
3568         * NEWS: Mention new btrace RSP packets.
3569
3570 2013-04-08  Tom Tromey  <tromey@redhat.com>
3571
3572         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
3573         long.
3574
3575 2013-04-08  Tom Tromey  <tromey@redhat.com>
3576
3577         * maint.c (print_bfd_section_info): Print the section index.
3578         * symmisc.c (dump_msymbols): Print the section index.
3579
3580 2013-04-08  Tom Tromey  <tromey@redhat.com>
3581
3582         PR symtab/8424:
3583         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
3584         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
3585         * breakpoint.c (resolve_sal_pc): Update.
3586         * elfread.c (elf_gnu_ifunc_record_cache): Update.
3587         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
3588         (minsym_lookup_iterator_cb): Use it.
3589         (default_read_var_value): Update.
3590         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
3591         Update.
3592         * infcmd.c (jump_command): Update.
3593         * linespec.c (minsym_found): Update.
3594         * maint.c (maintenance_translate_address): Update.
3595         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
3596         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
3597         * parse.c (write_exp_msymbol): Update.
3598         * printcmd.c (address_info): Update.
3599         * psymtab.c (find_pc_sect_psymbol): Update.
3600         (fixup_psymbol_section): Check SYMBOL_SECTION, not
3601         SYMBOL_OBJ_SECTION.
3602         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
3603         Don't initialize SYMBOL_OBJ_SECTION.
3604         * spu-tdep.c (spu_catch_start): Update.
3605         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
3606         * symmisc.c (dump_msymbols, print_symbol): Update.
3607         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
3608         how fallback section is computed.
3609         (fixup_symbol_section): Update.
3610         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
3611         Update.
3612         (allocate_symbol, initialize_symbol, allocate_template_symbol):
3613         Initialize SYMBOL_SECTION.
3614         * symtab.h (struct general_symbol_info) <section>: Update comment.
3615         <obj_section>: Remove.
3616         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
3617         (SYMBOL_OBJFILE): New macro.
3618
3619 2013-04-08  Tom Tromey  <tromey@redhat.com>
3620
3621         * coffread.c (record_minimal_symbol): Update.
3622         * dbxread.c (record_minimal_symbol): Update.
3623         * elfread.c (record_minimal_symbol): Update.
3624         * machoread.c (macho_symtab_add_minsym): Update.
3625         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
3626         Update.
3627         * minsyms.c (prim_record_minimal_symbol): Update.
3628         (prim_record_minimal_symbol_full): Remove 'bfd_section'
3629         argument.
3630         (prim_record_minimal_symbol_and_info): Likewise.
3631         * minsyms.h (prim_record_minimal_symbol_full)
3632         (prim_record_minimal_symbol_and_info): Update.
3633         * symtab.c (allocate_symbol, initialize_symbol)
3634         (allocate_template_symbol): Initialize SYMBOL_SECTION.
3635         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
3636         Update.
3637
3638 2013-04-08  Tom Tromey  <tromey@redhat.com>
3639
3640         PR symtab/8423:
3641         * solib-som.c (som_solib_section_offsets): Use BFD section
3642         indices.  Set offsets for all sections.
3643         * somread.c (som_symtab_read): Compute BFD section for
3644         symbol.  Use prim_record_minimal_symbol_and_info.
3645         (som_symfile_read): Fix comment.
3646         (struct find_section_offset_arg): New.
3647         (find_section_offset, set_section_index): New functions.
3648         (som_symfile_offsets): Use set_section_index to compute
3649         section indices.
3650
3651 2013-04-08  Tom Tromey  <tromey@redhat.com>
3652
3653         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
3654         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
3655         gdb_bfd_section_index.
3656         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
3657         New functions.
3658         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
3659         Declare.
3660         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
3661         Update.
3662         * objfiles.c (add_to_objfile_sections_full): New function.
3663         (add_to_objfile_sections): Use it.
3664         (build_section_table): Rewrite.
3665         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
3666         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
3667         (struct objfile) <sections>: Update comment.
3668         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
3669         is NULL.
3670         (ALL_OBJSECTIONS): Use it.
3671         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3672         * solib-frv.c (frv_relocate_main_executable): Update.
3673         * solib-target.c (solib_target_relocate_section_addresses):
3674         Use gdb_bfd_section_index.
3675         * symfile.c (build_section_addr_info_from_section_table):
3676         Use gdb_bfd_section_index.
3677         (build_section_addr_info_from_bfd, place_section): Likewise.
3678         * symtab.c (fixup_section): Update.
3679         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
3680
3681 2013-04-08  Tom Tromey  <tromey@redhat.com>
3682
3683         * minsyms.h (struct bound_minimal_symbol): New.
3684         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3685         Remove objfile argument.
3686         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3687         Return bound_minimal_symbol.
3688         * minsyms.c (lookup_minimal_symbol_by_pc_1)
3689         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3690         Return bound_minimal_symbol.
3691         (in_gnu_ifunc_stub): Update.
3692         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3693         Remove 'objfile_p' argument.
3694         (lookup_solib_trampoline_symbol_by_pc): Update.
3695         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
3696         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
3697         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
3698         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
3699         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
3700         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
3701         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
3702         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
3703         stack.c, symtab.c, tui/tui-disasm.c: Update.
3704
3705 2013-04-08  Tom Tromey  <tromey@redhat.com>
3706
3707         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
3708         Use symbol's obstack, not an objfile.
3709         * coffread.c (process_coff_symbol): Update.
3710         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
3711         * jv-lang.c (add_class_symbol): Update.
3712         * mdebugread.c (new_symbol): Update.
3713         * minsyms.c (prim_record_minimal_symbol_full)
3714         (terminate_minimal_symbol_table): Update.
3715         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
3716         * stabsread.c (define_symbol, read_enum_type): Update.
3717         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
3718         Handle Ada specially.
3719         (symbol_set_language): Add 'obstack' argument.
3720         (symbol_set_names): Update.
3721         (symbol_natural_name, symbol_demangled_name): Always use
3722         ada_decode_symbol.
3723         * symtab.h (struct general_symbol_info)
3724         <language_specific::obstack>: New field.
3725         <ada_mangled>: New field.
3726         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
3727         (symbol_set_language): Update.
3728
3729 2013-04-08  Tom Tromey  <tromey@redhat.com>
3730
3731         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
3732         Take an obstack, not an objfile.
3733         (symbol_set_names): Update.
3734         * symtab.h (symbol_set_demangled_name): Update.
3735
3736 2013-04-08  Tom Tromey  <tromey@redhat.com>
3737
3738         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
3739         allocate_symbol.
3740         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
3741         (read_func_scope): Call allocate_template_symbol.
3742         (new_symbol_full): Call allocate_symbol.
3743         * jit.c (finalize_symtab): Call allocate_symbol.
3744         * jv-lang.c (add_class_symbol): Call allocate_symbol.
3745         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
3746         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3747         (common_block_end): Call allocate_symbol.
3748         * symtab.c (allocate_symbol, initialize_symbol)
3749         (allocate_template_symbol): New functions.
3750         * symtab.c (allocate_symbol, initialize_symbol)
3751         (allocate_template_symbol): Declare.
3752         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
3753
3754 2013-04-08  Pedro Alves  <palves@redhat.com>
3755             Keith Seitz  <keiths@redhat.com>
3756
3757         * breakpoint.c (create_breakpoint): Rename
3758         "parse_condition_and_thread" parameter to "parse_arg".  Update
3759         describing comment.  If !PARSE_ARG, then error out if ARG is not
3760         the empty string after extracting the location.
3761         * breakpoint.h (create_breakpoint): Rename
3762         "parse_condition_and_thread" parameter to "parse_arg".
3763
3764 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
3765
3766         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
3767
3768 2013-04-07  Yao Qi  <yao@codesourcery.com>
3769
3770         * remote.c (remote_trace_find): Change type of parameters 'addr1'
3771         and 'addr2' to CORE_ADDR.
3772         * target.c (update_current_target): Update.
3773         * target.h (struct target_ops) <to_trace_find>: Change parameter
3774         type to CORE_ADDR.
3775         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
3776         'addr2' to CORE_ADDR.
3777         (tfile_trace_find): Likewise.
3778         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
3779         Change local variable 'addr' to type CORE_ADDR.
3780         * tracepoint.h (tfind_1): Update declaration.
3781
3782 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
3783
3784         * windows-nat.c (windows_get_absolute_argv0): Move from here...
3785         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
3786         Include main.h.
3787
3788         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
3789         here...
3790         * main.h (windows_get_absolute_argv0): ...to here.
3791
3792 2013-04-05  Doug Evans  <dje@google.com>
3793
3794         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
3795         (read_cutu_die_from_dwo): Add comments.
3796         (read_structure_type): Update comment.
3797         (read_enumeration_type, read_namespace_type): Update comment.
3798         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
3799
3800 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3801
3802         Convert man pages to texinfo, new gdbinit.5 texinfo page.
3803         * Makefile.in (gdb.z): Remove.
3804         (install-only): Remove $(man1dir) and gdb.1 installation.
3805         * gdb.1: Remove.
3806
3807 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3808
3809         Fix compatibility with Linux kernel 3.8.3.
3810         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
3811         to more inner block.  Remove parsing of NUMBER from outer block.
3812         Parse NUMBER only if KEYWORD has been identified.
3813
3814 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
3815
3816         Fix variable name shadowing.
3817         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
3818         filename to mapsfilename and update its uses.
3819
3820 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
3821
3822         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
3823         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
3824         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
3825         details of the problem.
3826
3827 2013-04-04  Pedro Alves  <palves@redhat.com>
3828             Hui Zhu  <hui@codesourcery.com>
3829
3830         * breakpoint.c (validate_commands_for_breakpoint): If validating a
3831         tracepoint, reset its STEP_COUNT and call validate_actionline.
3832
3833 2013-04-03  Doug Evans  <dje@google.com>
3834
3835         * dwarf2read.c (read_die_and_siblings_1): Renamed from
3836         read_die_and_siblings.
3837         (read_die_and_siblings): New function.
3838         (read_cutu_die_from_dwo): Dump die if requested.
3839         (read_die_and_children): Call read_full_die_1 and
3840         read_die_and_siblings_1.
3841         (read_full_die): Dump die if requested.
3842
3843         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
3844
3845         * dwarf2read.c (struct dwo_file): New member comp_dir.
3846         Rename member name to dwo_name.  All uses updated.
3847         (hash_dwo_file): Include comp_dir in computation.
3848         (eq_dwo_file): Ditto.
3849         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
3850         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
3851
3852         * psymtab.c (read_psymtabs_with_fullname): Don't call
3853         psymtab_to_fullname if the basenames are different.
3854
3855 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3856
3857         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
3858         New entry about "fullname" presence.
3859
3860 2013-04-03  Pedro Alves  <palves@redhat.com>
3861
3862         * NEWS: Mention x86_64/Cygwin as new native configuration.
3863
3864 2013-04-02  Doug Evans  <dje@google.com>
3865
3866         * dwarf2read.c (read_structure_type): Fix typo in comment.
3867
3868 2013-04-02  Pedro Alves  <palves@redhat.com>
3869
3870         * NEWS: Mention "set/show debug aarch64", "set/show debug
3871         coff-pe-read" and "set/show debug mach-o".
3872
3873 2013-04-02  Pedro Alves  <palves@redhat.com>
3874
3875         * NEWS: Mention "set/show remote trace-buffer-size-packet".
3876
3877 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
3878
3879         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
3880         gdb_string.h is now in common/.
3881
3882 2013-04-02  Pedro Alves  <palves@redhat.com>
3883
3884         * NEWS: Move "set debug notification" and "set trace-buffer-size"
3885         under "New options".
3886
3887 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3888
3889         Revert this patch:
3890         PR gdb/15275
3891         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3892
3893 2013-04-02  Pedro Alves  <palves@redhat.com>
3894
3895         PR gdb/15275
3896
3897         * remote.c (send_interrupt_sequence): Use remote_serial_write.
3898         (remote_serial_write): New function.
3899         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3900
3901 2013-04-01  Jiong Wang  <jiwang@tilera.com>
3902
3903         * NEWS: Mention TILE-Gx in "New native configurations" and
3904         "New targets" sections. 
3905
3906 2013-04-01  Doug Evans  <dje@google.com>
3907
3908         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3909         (process_enumeration_scope): Simplify.
3910
3911         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3912         type_unit_group ...
3913         (struct signatured_type): ... to here.
3914         (sig_type_ptr): New typedef.
3915         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
3916         out of union 't'.  All uses updated.
3917         (dw2_get_file_names_reader): Assert not called for a type unit.
3918         (dw2_get_file_names): Assert not called for a type unit or type
3919         unit group.
3920         (build_type_psymtabs_reader): Assert called for a type unit.
3921         (build_type_psymtab_dependencies): Assert called for a type unit group.
3922
3923         * dwarf2read.c (free_dwo_file): Add comment.
3924         (dwarf2_per_objfile_free): Unref dwp bfd.
3925
3926 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
3927
3928         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3929         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3930         (read_pe_exported_syms): Remove unused 'exportix'.
3931         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3932         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3933         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3934
3935 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
3936
3937         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3938         (print_it_watchpoint): Remove unused 'bl'.
3939         (say_where): Remove unused 'uiout'.
3940         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3941         (bkpt_breakpoint_hit): Remove unused 'b'.
3942         (internal_bkpt_print_it): Remove unused 'uiout'.
3943         * buildsym.c (augment_type_symtab): Remove unused 'i'.
3944
3945 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
3946
3947         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3948         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3949
3950 2013-03-29  Doug Evans  <dje@google.com>
3951
3952         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3953         Delete arg is_dwp.  All callers updated.
3954         (open_dwp_file): New function.
3955         (open_and_init_dwp_file): Call it.
3956         (get_dwp_file): New function.
3957         (lookup_dwo_cutu): Call it.
3958
3959         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3960         unnecessary, cleanup.
3961
3962         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3963
3964         * dwarf2read.c (read_cutu_die_from_dwo): New function.
3965         (lookup_dwo_unit): New function.
3966         (init_cutu_and_read_dies): Move DWO handling to new functions.
3967
3968         * dwarf2read.c (struct signatured_type): Tweak comment.
3969         (struct dwo_unit): Tweak comment.
3970         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
3971         (create_dwo_debug_info_hash_table): Tweak comment.
3972         (dwarf2_per_cu_offset_and_type): Tweak comment.
3973
3974         * dwarf2read.c (lookup_signatured_type): Remove complaint about
3975         missing .debug_types section.
3976
3977 2013-03-29  Yao Qi  <yao@codesourcery.com>
3978
3979         * corelow.c: Include "completer.h".
3980         (_initialize_corelow): Call add_target_with_completer with
3981         argument 'filename_completer'.
3982         * tracepoint.c: Likewise.
3983         * exec.c (_initialize_exec): Likewise.
3984         * target.c (add_target): Rename to ...
3985         (add_target_with_completer): ... this.  Call set_cmd_completer
3986         if parameter completer is not NULL.
3987         (add_target): New.
3988         * target.h: Include "command.h".
3989         (add_target_with_completer): Declare it.
3990
3991 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
3992
3993         * coffread.c (is_import_fixup_symbol): New function.
3994         (record_minimal_symbol): Use is_import_fixup_symbol to
3995         detect import fixup symbols, and discard them.
3996
3997 2013-03-28  Doug Evans  <dje@google.com>
3998
3999         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
4000         types hash table until we know we need it.
4001
4002         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
4003         index numbers.
4004
4005         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
4006         All callers updated.
4007         (dw2_print_stats): Print #read CUs too.
4008         (dump_die_shallow): Print signatured types better.
4009
4010         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
4011         info_or_types_section to section.  All uses updated.
4012         (struct dwo_unit): Ditto.
4013
4014 2013-03-28  Pedro Alves  <palves@redhat.com>
4015
4016         * NEWS (New options): New section.
4017         (New options): Mention set/show remote trace-status-packet.
4018         * remote.c (PACKET_qTStatus): New enumeration value.
4019         (remote_get_trace_status): Skip sending qTStatus if the packet is
4020         disabled.  Use packet_ok.
4021         (_initialize_remote): Register a configuration command for
4022         qTStatus packet.
4023
4024 2013-03-28  Doug Evans  <dje@google.com>
4025
4026         * symfile.c (find_separate_debug_file): Add comment.
4027         (terminate_after_last_dir_separator): Tweak comment.
4028
4029         * dwarf2read.c (create_partial_symtab): Add forward decl.
4030         (create_partial_symtab): Move to be closer to other psymtab functions.
4031         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
4032
4033         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
4034         (compute_symtab_includes): Remove unnecessary forward declaration.
4035         (die_needs_namespace): Add comment marking group of functions for
4036         dwarf2 name computation.
4037
4038         * typeprint.c (_initialize_typeprint): Improve type help text.
4039
4040         * python/python.c (finish_python_initialization): Provide suggestion
4041         for how to tell gdb to find its python files.
4042
4043 2013-03-28  Pedro Alves  <palves@redhat.com>
4044
4045         PR gdb/15294
4046
4047         * source.c (_initialize_source): Change back "set listsize" to an
4048         integer command.
4049
4050 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
4051
4052         PR gdb/15275
4053         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4054
4055 2013-03-27  Pedro Alves  <palves@redhat.com>
4056
4057         * top.c (history_size): Rename to ...
4058         (history_size_setshow_var): ... this.  Add comment.
4059         (show_commands): Use readline's 'history_length' instead of
4060         computing the history length by calling history_get in a loop.
4061         (set_history_size_command): Error out for sizes over INT_MAX.
4062         Restore previous history size on invalid size.
4063         (init_history): If HISTSIZE is negative, leave the history size as
4064         zero.  Add comments.
4065         (init_main): Adjust.
4066
4067 2013-03-27  Pedro Alves  <palves@redhat.com>
4068
4069         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
4070         coff_pe_read" command to "set debug coff-pe-read".
4071
4072 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
4073
4074         * record.c (command_size_to_target_size): Fix size comparison.
4075         Change parameter type from pointer to integer to integer.
4076         Update all users.
4077
4078 2013-03-27  Pierre Muller  <muller@sourceware.org>
4079
4080         * windows-nat.c (handle_output_debug_string): Avoid typecast
4081         from integer of different size warning.
4082
4083 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
4084
4085         * windows-nat.c (handle_output_debug_string): Add empty line
4086         after local block variable definition.
4087
4088 2013-03-26  Pedro Alves  <palves@redhat.com>
4089
4090         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
4091         (net_open): Make 'polls' local unsigned.
4092
4093 2013-03-26  Pedro Alves  <palves@redhat.com>
4094
4095         * remote.c (_initialize_remote): Make "set remoteaddresssize"
4096         a zuinteger command instead of uinteger.
4097
4098 2013-03-26  Pedro Alves  <palves@redhat.com>
4099
4100         * record-full.c (record_full_insn_num): Make it unsigned.
4101         (record_full_check_insn_num, record_full_message)
4102         (record_full_registers_change, record_full_xfer_partial): Remove
4103         record_full_insn_max_num check (it's always != 0).
4104         (record_full_info, record_full_restore): Use %u as format string.
4105         (): Use %u as format string.
4106         (set_record_full_insn_max_num): Remove record_full_insn_max_num
4107         check (it's always != 0).
4108
4109 2013-03-26  Pedro Alves  <palves@redhat.com>
4110
4111         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
4112         and "set dcache size" commands zuinteger instead of uinteger.
4113
4114 2013-03-26  Pedro Alves  <palves@redhat.com>
4115
4116         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
4117         command zuinteger instead of uinteger.
4118
4119 2013-03-26  Pedro Alves  <palves@redhat.com>
4120
4121         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
4122         zuinteger instead of uinteger.
4123
4124 2013-03-26  Pedro Alves  <palves@redhat.com>
4125
4126         * record.c (record_insn_history_size_setshow_var)
4127         (record_call_history_size_setshow_var): New globals.
4128         (command_size_to_target_size): New function.
4129         (cmd_record_insn_history, cmd_record_call_history): Use
4130         command_size_to_target_size instead of cast.
4131         (validate_history_size, set_record_insn_history_size)
4132         (set_record_call_history_size): New functions.
4133         (_initialize_record): Install set_record_insn_history_size and
4134         set_record_call_history_size as "set" hooks of "set record
4135         instruction-history-size" and "set record
4136         function-call-history-size".
4137
4138 2013-03-26  Pedro Alves  <palves@redhat.com>
4139
4140         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
4141         use with history_max_entries use.  Remove FIXME note.
4142
4143 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
4144
4145         * record-btrace.c (record_btrace_close): Call
4146         record_btrace_auto_disable.
4147
4148 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
4149
4150         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
4151
4152 2013-03-25  Doug Evans  <dje@google.com>
4153
4154         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
4155
4156 2013-03-25  Tom Tromey  <tromey@redhat.com>
4157
4158         PR symtab/11462:
4159         * c-exp.y (exp): Add new productions for destructors after '.' and
4160         '->'.
4161         (write_destructor_name): New function.
4162
4163 2013-03-25  Tom Tromey  <tromey@redhat.com>
4164
4165         PR c++/9197:
4166         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
4167         value_struct_elt, not lookup_struct_elt_type.
4168         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4169         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
4170         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
4171
4172 2013-03-25  Yao Qi  <yao@codesourcery.com>
4173
4174         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
4175         instead of '_mkdir'.
4176
4177 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
4178
4179         * windows-nat.c (windows_get_absolute_argv0): New function.
4180         * windows-nat.h: Add its prototype.
4181
4182         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
4183         Use IS_DIR_SEPARATOR instead of looking for a character inside
4184         SLASH_STRING.  Include filenames.h.
4185         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
4186         relocate_gdb_directory works when passed gdb_program_name.
4187         Include windows-nat.h.
4188
4189 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4190
4191         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
4192         * remote.c (trace_error): Remove the special handling of '2'.
4193         (readchar) <SERIAL_EOF>
4194         (readchar) <SERIAL_ERROR>
4195         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
4196         (remote_get_trace_status): Call throw_exception if EX is
4197         TARGET_CLOSE_ERROR.
4198         * utils.c (perror_with_name): Rename to ...
4199         (throw_perror_with_name): ... here.  New parameter errcode, describe it
4200         in the function comment.
4201         (perror_with_name): New function wrapper.
4202         * utils.h (enum errors): New stub declaration.
4203         (throw_perror_with_name): New declaration.
4204
4205 2013-03-22  Pedro Alves  <palves@redhat.com>
4206             Yao Qi  <yao@codesourcery.com>
4207             Mark Kettenis  <kettenis@gnu.org>
4208
4209         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
4210         Don't let the user set the value to UINT_MAX directly.
4211         <var_integer>: Don't let the user set the value to INT_MAX
4212         directly.
4213
4214 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4215
4216         * remote.c (remote_unpush_target): New function.
4217         (remote_open_1): Remove two pop_target calls, update one comment, add
4218         comment to target_preopen call.  Replace pop_target call by
4219         remote_unpush_target call.
4220         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
4221         pop_target calls by remote_unpush_target calls.
4222
4223 2013-03-22  Pedro Alves  <palves@redhat.com>
4224
4225         * linux-nat.c (linux_child_follow_fork): Don't call
4226         linux_enable_event_reporting.
4227         (linux_handle_extended_wait): Don't call
4228         linux_enable_event_reporting.
4229
4230 2013-03-22  Pedro Alves  <palves@redhat.com>
4231
4232         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
4233         use it to rewrite the trampoline buffers with type gdb_byte[], and
4234         undefine the macro.  Remove char* cast.
4235
4236 2013-03-21  Doug Evans  <dje@google.com>
4237
4238         New commands "mt set per-command {space,time,symtab} {on,off}".
4239         * NEWS: Add entry.
4240         * event-top.c: #include "maint.h".
4241         * main.c: #include "maint.h".
4242         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
4243         timeval-utils.h, maint.h, cli/cli-setshow.h.
4244         (per_command_time, per_command_space): New static globals.
4245         (per_command_symtab): New static global.
4246         (per_command_setlist, per_command_showlist): New static globals.
4247         (struct cmd_stats): Move here from utils.c.
4248         (set_per_command_time): Renamed from set_display_time in utils.c
4249         and moved here.  All callers updated.
4250         (set_per_command_space): Renamed from set_display_space in utils.c
4251         and moved here.  All callers updated.
4252         (count_symtabs_and_blocks): New function.
4253         (report_command_stats): Moved here from utils.c.  Add support for
4254         printing symtab stats.  Only print data if enabled before command
4255         executed.
4256         (make_command_stats_cleanup): Ditto.
4257         (sert_per_command_cmd, show_per_command_cmd): New functions.
4258         (_initialize_maint_cmds): Add new commands
4259         mt set per-command {space,time,symtab} {on,off}.
4260         * maint.h: New file.
4261         * top.c: #include "maint.h".
4262         * utils.c (reset_prompt_for_continue_wait_time): New function.
4263         (get_prompt_for_continue_wait_time): New function.
4264         * utils.h (reset_prompt_for_continue_wait_time): Declare
4265         (get_prompt_for_continue_wait_time): Declare.
4266         (make_command_stats_cleanup): Moved to maint.h.
4267         (set_display_time, set_display_space): Moved to maint.h and renamed
4268         to set_per_command_time, set_per_command_space.
4269         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
4270         parse_binary_operation and made non-static.  Don't call error,
4271         just return an error marker.  All callers updated.
4272         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
4273
4274 2013-03-21  Tom Tromey  <tromey@redhat.com>
4275
4276         * symfile.c (alloc_section_addr_info): Update header.  Don't set
4277         'num_sections' field.
4278         (build_section_addr_info_from_section_table): Set 'num_sections'.
4279         (build_section_addr_info_from_bfd): Likewise.
4280         (build_section_addr_info_from_objfile): Remove dead loop
4281         condition.
4282         (free_section_addr_info): Unconditionally call xfree.
4283         (relative_addr_info_to_section_offsets, addrs_section_sort)
4284         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
4285         condition.
4286         (syms_from_objfile_1): Remove dead 'if' condition.  Check
4287         'num_sections'.
4288         (add_symbol_file_command): Set 'num_sections'.
4289         * symfile-mem.c (symbol_file_add_from_memory): Set
4290         'num_sections'.
4291         * somread.c (som_symfile_offsets): Remove dead loop condition.
4292         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
4293         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
4294
4295 2013-03-21  Tom Tromey  <tromey@redhat.com>
4296
4297         * tracepoint.h (decode_agent_options): Add 'trace_string'
4298         argument.
4299         * tracepoint.c (decode_agent_options): Add 'trace_string'
4300         argument.
4301         (validate_actionline): Update.
4302         (collect_symbol): Add 'trace_string' argument.
4303         (struct add_local_symbols_data) <trace_string>: New field.
4304         (do_collect_symbol): Update.
4305         (add_local_symbols): Add 'trace_string' argument.
4306         (encode_actions_1): Update.
4307         (trace_dump_actions): Update.
4308         * dwarf2loc.c (access_memory): Update.
4309         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
4310         * ax-general.c (new_agent_expr): Update.
4311         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
4312         (gen_trace_for_return_address): Add argument.
4313         (trace_kludge, trace_string_kludge): Remove.
4314         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
4315         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
4316         (gen_trace_for_var): Add 'trace_string' argument.
4317         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
4318         (gen_printf, agent_eval_command_one): Update.
4319
4320 2013-03-21  Tom Tromey  <tromey@redhat.com>
4321
4322         PR exp/15109:
4323         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
4324         Handle FILENAME token.
4325
4326 2013-03-21  Tom Tromey  <tromey@redhat.com>
4327
4328         * c-exp.y (YYPRINT): Define.
4329         (c_print_token): New function.
4330
4331 2013-03-21  Tom Tromey  <tromey@redhat.com>
4332
4333         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
4334
4335 2013-03-21  Yao Qi  <yao@codesourcery.com>
4336
4337         * ctf.c: Include "gdb_stat.h".
4338         [USE_WIN32API]: New macro 'mkdir'.
4339         (ctf_start): Use permission bits macros if they are defined.
4340
4341 2013-03-20  Keith Seitz  <keiths@redhat.com>
4342
4343         * breakpoint.h (struct breakpoint): Add comment to
4344         extra_string indicating that this member is mallod'd.
4345         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
4346
4347 2013-03-20  Pedro Alves  <palves@redhat.com>
4348
4349         PR gdb/15289
4350
4351         * cli/cli-setshow.c (do_set_command)
4352         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
4353         the result of parsing the command argument.  Throw error if the
4354         value is greater than UINT_MAX.  Print the invalid value with
4355         plongest.
4356         <var_integer, var_zinteger>: Use LONGEST for variable holding the
4357         result of parsing the command argument.  Throw error if the value
4358         is greater than INT_MAX, not greater or equal.  Also throw error
4359         if the value is less than INT_MIN.  Print the invalid value with
4360         plongest.
4361         <var_zuinteger_unlimited>: Throw error if the value is greater
4362         than INT_MAX, not greater or equal.
4363         (do_show_command) <var_integer, var_zinteger,
4364         var_zuinteger_unlimited>: Use %d for printing int, not %u.
4365
4366 2013-03-20  Tom Tromey  <tromey@redhat.com>
4367
4368         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
4369         if possible.
4370         * dwarf2read.c (read_func_scope): Remove old FIXME.
4371         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
4372         not LOC_COMPUTED.
4373         * findvar.c (symbol_read_needs_frame, default_read_var_value):
4374         Unconditionally call via computed ops, if possible.
4375         * printcmd.c (address_info): Unconditionally call via computed ops,
4376         if possible.
4377         * stack.c (read_frame_arg): Unconditionally call via computed ops,
4378         if possible.
4379         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
4380         * tracepoint.c (scope_info): Unconditionally call via computed ops,
4381         if possible.
4382
4383 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4384             Tom Tromey  <tromey@redhat.com>
4385
4386         PR symtab/8421:
4387         * coffread.c (coff_register_index): New global.
4388         (process_coff_symbol, coff_read_enum_type): Set
4389         SYMBOL_ACLASS_INDEX.
4390         (_initialize_coffread): Initialize new global.
4391         * dwarf2loc.c (locexpr_find_frame_base_location)
4392         (dwarf2_block_frame_base_locexpr_funcs)
4393         (loclist_find_frame_base_location)
4394         (dwarf2_block_frame_base_loclist_funcs): New.
4395         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
4396         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
4397         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
4398         (dwarf2_block_frame_base_loclist_funcs): New.
4399         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
4400         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
4401         globals.
4402         (read_func_scope): Update.
4403         (fixup_go_packaging, mark_common_block_symbol_computed)
4404         (var_decode_location, new_symbol_full, dwarf2_const_value):
4405         Set SYMBOL_ACLASS_INDEX.
4406         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
4407         (_initialize_dwarf2_read): Initialize new globals.
4408         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
4409         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
4410         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
4411         globals.
4412         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
4413         (_initialize_mdebugread): Initialize new globals.
4414         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
4415         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
4416         (stab_register_index, stab_regparm_index): New globals.
4417         (define_symbol, read_enum_type, common_block_end): Set
4418         SYMBOL_ACLASS_INDEX.
4419         (_initialize_stabsread): Initialize new globals.
4420         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
4421         globals.
4422         (MAX_SYMBOL_IMPLS): New define.
4423         (register_symbol_computed_impl, register_symbol_block_impl)
4424         (register_symbol_register_impl)
4425         (initialize_ordinary_address_classes): New functions.
4426         (_initialize_symtab): Call initialize_ordinary_address_classes.
4427         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
4428         (struct symbol_impl): New.
4429         (SYMBOL_ACLASS_BITS): New define.
4430         (struct symbol) <aclass, ops>: Remove fields.
4431         <aclass_index>: New field.
4432         (symbol_impls): Declare.
4433         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
4434         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
4435         (register_symbol_computed_impl, register_symbol_block_impl)
4436         (register_symbol_register_impl): Declare.
4437         (struct symbol_computed_ops): Add location_has_loclist.
4438         (struct symbol_block_ops): New.
4439         (SYMBOL_BLOCK_OPS): New.
4440         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
4441
4442 2013-03-20  Tom Tromey  <tromey@redhat.com>
4443
4444         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
4445         (print_partial_symbols, recursively_search_psymtabs): Use
4446         PSYMBOL_CLASS.
4447
4448 2013-03-20  Pierre Muller  <muller@sourceware.org>
4449
4450         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
4451         addtion, subtraction, multiplication and division binary operator.
4452
4453 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4454
4455         Code cleanup.
4456         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
4457         * bsd-kvm.c (bsd_kvm_close): Likewise.
4458         * bsd-uthread.c (bsd_uthread_close): Likewise.
4459         * corelow.c (core_close): Likewise.
4460         (core_close_cleanup): Remove parameter quitting from a caller.
4461         * event-top.c (async_disconnect): Likewise.
4462         * exec.c (exec_close_1): Remove parameter quitting.
4463         * go32-nat.c (go32_close): Likewise.
4464         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
4465         parameter quitting from a caller.
4466         * mips-linux-nat.c (super_close): Remove parameter quitting from the
4467         variable.
4468         (mips_linux_close): Remove parameter quitting.  Remove parameter
4469         quitting from a caller.
4470         * monitor.c (monitor_close): Remove parameter quitting.
4471         * monitor.h (monitor_close): Likewise.
4472         * record-btrace.c (record_btrace_close): Likewise.
4473         * record-full.c (record_full_close): Likewise.
4474         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
4475         it also from fprintf_unfiltered.
4476         * remote-mips.c (mips_close): Remove parameter quitting.
4477         (mips_detach): Remove parameter quitting from a caller.
4478         * remote-sim.c (gdbsim_close): Remove parameter quitting.
4479         (gdbsim_close): Remove duplicate function comment.  Remove parameter
4480         quitting and remove it also from printf_filtered.
4481         * remote.c (remote_close): Remove parameter quitting.
4482         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
4483         * target.c (update_current_target): Remove parameter int from to_close
4484         de_fault.
4485         (push_target, unpush_target, pop_target): Remove parameter quitting from
4486         a caller.
4487         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
4488         Remove parameter quitting from a caller.
4489         (target_preopen): Remove parameter quitting from a caller.
4490         (target_close): Remove parameter quitting.  Remove parameter quitting
4491         from a caller two times.  Remove parameter quitting also from
4492         fprintf_unfiltered.
4493         * target.h (struct target_ops): Remove parameter quitting and as int
4494         from fields to_xclose and to_close.
4495         (extern struct target_ops current_target):
4496         (target_close, pop_all_targets): Remove parameter quitting.  Update the
4497         comment.
4498         (pop_all_targets_above): Remove parameter quitting.
4499         * top.c (quit_target): Remove parameter quitting from a caller.
4500         * tracepoint.c (tfile_close): Remove parameter quitting.
4501         * windows-nat.c (windows_close): Remove parameter quitting.
4502
4503 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
4504
4505         * windows-nat.c (handle_output_debug_string): Replace call
4506         to string_to_core_addr with call to strtoull.
4507
4508 2013-03-20  Yao Qi  <yao@codesourcery.com>
4509
4510         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
4511         and write it to CTF metadata.
4512
4513 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
4514
4515         * windows-nat.c (handle_output_debug_string): Change type of n to
4516         SIZE_T to avoid crash on 64 bit systems.
4517
4518 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
4519
4520         * python/python-internal.h (HAVE_SNPRINTF)
4521         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
4522         about redefinition of snprintf by pyerrors.h.
4523
4524 2013-03-15  Steve Ellcey  <sellcey@mips.com>
4525
4526         * remote-sim.c (sim_command_completer): Make char arguments const.
4527
4528 2013-03-15  Tom Tromey  <tromey@redhat.com>
4529
4530         PR c++/15116:
4531         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
4532
4533 2013-03-14  Tom Tromey  <tromey@redhat.com>
4534
4535         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
4536         New fields.
4537         (get_file_crc): Move from symfile.c.
4538         (gdb_bfd_crc): New function.
4539         * gdb_bfd.h (gdb_bfd_crc): Declare.
4540         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
4541         * symfile.c (get_file_crc): Move to gdb_bfd.c.
4542         (separate_debug_file_exists): Use gdb_bfd_crc.
4543
4544 2013-03-14  Tom Tromey  <tromey@redhat.com>
4545
4546         * symfile.c (get_debug_link_info): Remove.
4547         (find_separate_debug_file_by_debuglink): Use
4548         bfd_get_debug_link_info.
4549
4550 2013-03-14  Tom Tromey  <tromey@redhat.com>
4551
4552         * symtab.c (error_in_psymtab_expansion): New function.
4553         (lookup_symbol_aux_quick)
4554         (basic_lookup_transparent_type_quick): Remove "last resort"
4555         code.  Use error_in_psymtab_expansion.
4556
4557 2013-03-14  Doug Evans  <dje@google.com>
4558             Jan Kratochvil  <jan.kratochvil@redhat.com>
4559
4560         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
4561         any successful compare_filenames_for_search or FILENAME_CMP.
4562         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4563         * symtab.c (iterate_over_some_symtabs): Likewise.
4564
4565 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4566
4567         * source.c (print_source_lines_base): Make a local copy of
4568         symtab_to_fullname.
4569
4570 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
4571             Jan Kratochvil  <jan.kratochvil@redhat.com>
4572
4573         * source.c (print_source_lines_base): Suppress "file" for TUI.
4574
4575 2013-03-14  Keith Seitz  <keiths@redhat.com>
4576             Alan Matsuoka  <alanm@redhat.com>
4577
4578         PR c++/15203
4579         PR c++/15210
4580         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
4581         TYPE_CODE_METHOD.
4582         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
4583         symbols.
4584
4585 2013-03-14  Yao Qi  <yao@codesourcery.com>
4586
4587         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
4588         status to tfile if trace is stopped by command 'tstop'.
4589
4590 2013-03-14  Yao Qi  <yao@codesourcery.com>
4591
4592         * tracepoint.c (tfile_write_status): Write trace notes and user
4593         name into tfile if they are not NULL.
4594
4595 2013-03-14  Hui Zhu  <hui@codesourcery.com>
4596             Yao Qi  <yao@codesourcery.com>
4597
4598         * Makefile.in (REMOTE_OBS): Add ctf.o.
4599         (SFILES): Add ctf.c.
4600         (HFILES_NO_SRCDIR): Add ctf.h.
4601         * ctf.c, ctf.h: New files.
4602         * tracepoint.c: Include 'ctf.h'.
4603         (collect_pseudocommand): Remove static.
4604         (trace_save_command): Parse option "-ctf".
4605         Produce different trace file writers per option.
4606         Adjust output message.
4607         (trace_save_tfile, trace_save_ctf): New.
4608         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
4609         * mi/mi-main.c: Include 'ctf.h'.
4610         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
4611         trace_save_tfile or trace_save_ctf.
4612         * NEWS: Mention these changes.
4613
4614 2013-03-14  Yao Qi  <yao@codesourcery.com>
4615
4616         * tracepoint.c (trace_file_writer_xfree): New.
4617         (struct tfile_writer_data): New.
4618         (tfile_dtor, tfile_can_target_save, tfile_start): New.
4619         (tfile_write_header, tfile_write_regblock_type): New.
4620         (tfile_write_status, tfile_write_uploaded_tsv): New.
4621         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
4622         (tfile_write_raw_data, (tfile_end): New.
4623         (tfile_write_ops): New global variable.
4624         (TRACE_WRITE_R_BLOCK): New macro.
4625         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
4626         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
4627         (TRACE_WRITE_V_BLOCK): New macro.
4628         (trace_save): Add extra one parameter WRITER.  Make it static.
4629         Use WRITER to writer trace.
4630         (tfile_trace_file_writer_new): New.
4631         (trace_save_command): Caller update.
4632         (trace_save_tfile): Write trace data in TFILE format.
4633         * tracepoint.h (struct trace_frame_write_ops): New.
4634         (struct trace_file_write_ops): New.
4635         (struct trace_file_writer): New.
4636         (trace_save): Remove its declaration.
4637         (trace_save_tfile): Declare it.
4638         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
4639         instead of trace_save.
4640
4641 2013-03-13  Pedro Alves  <palves@redhat.com>
4642
4643         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
4644
4645 2013-03-13  Pedro Alves  <palves@redhat.com>
4646
4647         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
4648         commented out code.
4649         * demangle.c (current_demangling_style_string): Make it const.
4650         (set_demangling_command): Assert the demangling style is known.
4651         Remove all handling of unknown styles.  Set
4652         'current_demangling_style_string' to an element of the
4653         demangling_style_names array.
4654         (set_demangling_style): Delete.
4655         (_initialize_demangler): Set current_demangling_style_string to the
4656         element of the demangling_style_names array that corresponds to
4657         the default demangling style.  Remove FIXME note.  Don't call
4658         set_demangling_style.
4659         * gdb-demangle.h (set_demangling_style): Remove declaration.
4660
4661 2013-03-13  Pedro Alves  <palves@redhat.com>
4662
4663         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
4664         fields const.
4665         (ada_make_symbol_completion_list): Make "text0" parameter const.
4666         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
4667         * breakpoint.c (condition_completer): Make "text" and "word"
4668         parameters const.  Adjust.
4669         (check_tracepoint_command): Adjust to validate_actionline
4670         prototype change.
4671         (catch_syscall_completer): Make "text" and "word" parameters
4672         const.
4673         * cli/cli-cmds.c (show_user): Make "comname" local const.
4674         (valid_command_p): Make "command" parameter const.
4675         (alias_command): Make "alias_prefix" and "command_prefix" locals
4676         const.
4677         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
4678         (add_alias_cmd): Make "name" and "oldname" parameters const.
4679         Adjust.  No longer make copy of OLDNAME.
4680         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
4681         (add_setshow_cmd_full, add_setshow_enum_cmd)
4682         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4683         (add_setshow_filename_cmd, add_setshow_string_cmd)
4684         (add_setshow_string_noescape_cmd)
4685         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4686         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4687         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
4688         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
4689         Make "name" parameter const.
4690         (help_cmd): Rename "command" parameter to "arg".  New const local
4691         "command".
4692         (find_cmd): Make "command" parameter const.
4693         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
4694         deprecated_cmd_warning prototype change.
4695         (undef_cmd_error): Make "cmdtype" parameter const.
4696         (lookup_cmd): Make "line" parameter const.
4697         (deprecated_cmd_warning): Change type of "text" parameter to
4698         pointer to const char, from pointer to pointer to char.  Adjust.
4699         (lookup_cmd_composition): Make "text" parameter const.
4700         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
4701         parameters const.
4702         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
4703         const.
4704         * cli/cli-script.c (validate_comname): Make "tem" local const.
4705         (define_command): New const local "tem_c".  Use it in calls to
4706         lookup_cmd.
4707         (document_command): Make "tem" and "comfull" locals const.
4708         (show_user_1): Make "prefix" and "name" parameters const.
4709         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
4710         const.
4711         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
4712         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
4713         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
4714         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
4715         (complete_on_enum, add_setshow_enum_cmd)
4716         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4717         (add_setshow_filename_cmd, add_setshow_string_cmd)
4718         (add_setshow_string_noescape_cmd)
4719         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4720         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4721         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
4722         Change prototypes, constifying strings.
4723         * completer.c (noop_completer, filename_completer): Make "text"
4724         and "prefix" parameters const.
4725         (location_completer, expression_completer)
4726         (complete_line_internal): Make "text" and "prefix" parameters
4727         const and adjust.
4728         (command_completer, signal_completer): Make "text" and "prefix"
4729         parameters const.
4730         * completer.h (noop_completer, filename_completer)
4731         (expression_completer, location_completer, command_completer)
4732         (signal_completer): Change prototypes.
4733         * corefile.c (complete_set_gnutarget): Make "text" and "word"
4734         parameters const.
4735         * cp-abi.c (cp_abi_completer): Likewise.
4736         * expression.h (parse_expression_for_completion): Change
4737         prototype.
4738         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
4739         parameters const.
4740         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
4741         * infrun.c (handle_completer): Make "text" and "word" parameters
4742         const.
4743         * interps.c (interpreter_completer): Make "text" and "word"
4744         parameters const.
4745         * language.h (struct language_defn)
4746         <la_make_symbol_completion_list>: Make "text" and "word"
4747         parameters const.
4748         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
4749         (parse_exp_in_context): Rename to ...
4750         (parse_exp_in_context_1): ... this.
4751         (parse_exp_in_context): Reimplement, with const hack from
4752         parse_exp_1.
4753         (parse_expression_for_completion): Make "string" parameter const.
4754         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
4755         to pointer to const char.  Adjust.
4756         (print_command_1): Make "exp" parameter const.
4757         (output_command): Rename to ...
4758         (output_command_const): ... this.  Make "exp" parameter const.
4759         (output_command): Reimplement.
4760         (x_command): Adjust.
4761         (display_command): Rename "exp" parameter to "arg".  New "exp"
4762         local, const version of "arg".
4763         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
4764         "cmd_name" local const.
4765         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
4766         call.
4767         (cmdpy_completer): Make "text" and "word" parameters const.
4768         (gdbpy_parse_command_name): Make "prefix_text2" local const.
4769         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
4770         const.
4771         * remote.c (_initialize_remote): Make "cmd_name" local const.
4772         * symtab.c (language_search_unquoted_string): Make "text" and "p"
4773         parameters const.  Adjust.
4774         (completion_list_add_fields): Make "sym_text", "text" and "word"
4775         parameters const.
4776         (struct add_name_data) <sym_text, text, word>: Make fields const.
4777         (default_make_symbol_completion_list_break_on): Make "text" and
4778         "word" parameters const.  Adjust locals.
4779         (default_make_symbol_completion_list)
4780         (make_symbol_completion_list, make_symbol_completion_type)
4781         (make_symbol_completion_list_fn): Make "text" and "word"
4782         parameters const.
4783         (make_file_symbol_completion_list): Make "text", "word" and
4784         "srcfile" parameters const.  Adjust locals.
4785         (add_filename_to_list): Make "text" and "word" parameters const.
4786         (struct add_partial_filename_data) <text, word>: Make fields
4787         const.
4788         (make_source_files_completion_list): Make "text" and "word"
4789         parameters const.
4790         * symtab.h (default_make_symbol_completion_list_break_on)
4791         (default_make_symbol_completion_list, make_symbol_completion_list)
4792         (make_symbol_completion_type enum type_code)
4793         (make_symbol_completion_list_fn make_file_symbol_completion_list)
4794         (make_source_files_completion_list): Change prototype.
4795         * top.c (execute_command): Adjust to pass pointer to pointer to
4796         const char to lookup_cmd, and to deprecated_cmd_warning prototype
4797         change.
4798         (set_verbose): Make "cmdname" local const.
4799         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
4800         and adjust.
4801         (validate_actionline): Make "line" parameter a pointer to const
4802         char, and adjust.
4803         (encode_actions_1): Make "action_exp" local const, and adjust.
4804         (encode_actions): Adjust.
4805         (replace_comma): Delete.
4806         (trace_dump_actions): Make "action_exp" and "next_comma" locals
4807         const, and adjust.  Don't frob the action string while splitting
4808         it at commas.  Instead, make a copy of each split substring in
4809         turn.
4810         (trace_dump_command): Adjust to validate_actionline prototype
4811         change.
4812         * tracepoint.h (decode_agent_options, decode_agent_options)
4813         (encode_actions, validate_actionline): Change prototypes.
4814         * valprint.h (output_command): Delete declaration.
4815         (output_command_const): Declare.
4816         * value.c (function_destroyer): Cast const away in xfree call.
4817
4818 2013-03-13  Pedro Alves  <palves@redhat.com>
4819
4820         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
4821         rather than casting 'const char * const *' to 'const char **'.
4822         * ada-lex.l (processInt): Make "trailer" local const.  Remove
4823         'const char **' cast.
4824         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
4825         locals, and use those as strtol output pointer, instead than doing
4826         invalid casts to from 'const char **' to 'char **'.
4827         (_initialize_demangle): Remove cast.
4828         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
4829         locals, and use those as strtol output pointer, instead than doing
4830         invalid casts to from 'const char **' to 'char **'.
4831         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
4832         casts.
4833         * stap-probe.c (stap_parse_register_operand)
4834         (stap_parse_single_operand): Likewise.
4835
4836 2013-03-13  Yao Qi  <yao@codesourcery.com>
4837
4838         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
4839         the last matched 'V' blcok in trace frame.
4840
4841 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
4842
4843         * NEWS: Create a new section for the next release branch.
4844         Rename the section of the current branch, now that it has
4845         been cut.
4846
4847 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
4848
4849         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
4850         * version.in: Bump version to 7.6.50.20130312-cvs.
4851
4852 2013-03-12  Keith Seitz  <keiths@redhat.com>
4853
4854         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
4855         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
4856         Remove temporary copy of input string.
4857         (mi_execute_command_wrapper): Make "cmd" const.
4858         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
4859         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
4860         Use const strings.
4861         (mi_parse): Make "cmd" const.
4862         Use const strings.
4863         * mi/mi-parse.h (mi_parse): Make "cmd" const.
4864
4865 2013-03-12  Keith Seitz  <keiths@redhat.com>
4866
4867         * ada-lang.c (ada_read_renaming_var_value): Pass const
4868         pointer to expression string to parse_exp_1.
4869         (create_excep_cond_exprs): Likewise.
4870         * ax-gdb.c (agent_eval_command_one): Likewise.
4871         (maint_agent_printf_command): Likewise.
4872         Constify much of the string handling/parsing.
4873         * breakpoint.c (set_breakpoint_condition): Pass const
4874         pointer to expression string to parse_exp_1.
4875         (update_watchpoint): Likewise.
4876         (parse_cmd_to_aexpr): Constify string handling.
4877         Pass const pointer to parse_exp_1.
4878         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
4879         (find_condition_and_thread): Likewise.
4880         Make TOK const.
4881         (watch_command_1): Make "arg" const.
4882         Constify string handling.
4883         Copy the expression string instead of changing the input
4884         string.
4885         (update_breakpoint_location): Pass const pointer to
4886         parse_exp_1.
4887         * eval.c (parse_and_eval_address): Make "exp" const.
4888         (parse_to_comma_and_eval): Make "expp" const.
4889         (parse_and_eval): Make "exp" const.
4890         * expression.h (parse_expression): Make argument const.
4891         (parse_exp_1): Make first argument const.
4892         * findcmd.c (parse_find_args): Treat "args" as const.
4893         * linespec.c (parse_linespec): Pass const pointer to
4894         linespec_expression_to_pc.
4895         (linespec_expression_to_pc): Make "exp_ptr" const.
4896         * parse.c (parse_exp_1): Make "stringptr" const.
4897         Make a copy of the expression to pass to parse_exp_in_context until
4898         this whole interface can be constified.
4899         (parse_expression): Make "string" const.
4900         * printcmd.c (ui_printf): Treat "arg" as const.
4901         Handle const strings.
4902         * tracepoint.c (validate_actionline): Pass const pointer to
4903         all calls to parse_exp_1.
4904         (encode_actions_1): Likewise.
4905         * value.h (parse_to_comma_and_eval): Make argument const.
4906         (parse_and_eval_address): Likewise.
4907         (parse_and_eval): Likewise.
4908         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4909         (varobj_set_value): Likewise.
4910         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4911         constify string handling.
4912         Pass const pointers to parse_and_eval_address and
4913         parse_to_comman_and_eval.
4914         * cli/cli-utils.c (skip_to_space): Rename to ...
4915         (skip_to_space_const): ... this. Handle const strings.
4916         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4917         skip_to_space_const.
4918         (skip_to_space_const): Declare.
4919         * common/format.c (parse_format_string): Make "arg" const.
4920         Handle const strings.
4921         * common/format.h (parse_format_string): Make "arg" const.
4922         * gdbserver/ax.c (ax_printf): Make "format" const.
4923         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4924         of the expression string.
4925
4926 2013-03-12  Hui Zhu  <hui@codesourcery.com>
4927
4928         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4929
4930 2013-03-12  Yao Qi  <yao@codesourcery.com>
4931             Hui Zhu  <hui@codesourcery.com>
4932
4933         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4934         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4935         DW_OP_deref_size.
4936
4937 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
4938
4939         * ada-lex.l (rules): Only recognize 'thread' as a
4940         delimiter when followed by numerals, as for c-exp.y.
4941         Use new rewind_to_char function to rewind the input for
4942         expression-delimiting tokens.
4943         (rewind_to_char): New function.
4944
4945 2013-03-11  Pedro Alves  <palves@redhat.com>
4946             Jan Kratochvil  <jan.kratochvil@redhat.com>
4947
4948         * configure: Regenerate.
4949         * configure.ac (check dynamic export flag): Link python test with
4950         $PYTHON_LIBS.
4951
4952 2013-03-11  Doug Evans  <dje@google.com>
4953             Keith Seitz  <keiths@redhat.com>
4954
4955         * linespec.c (find_linespec_symbols): Call find_function_symbols
4956         first, and then call lookup_prefix_sym/find_method.
4957
4958 2013-03-11  Pedro Alves  <palves@redhat.com>
4959
4960         * charset.c (convert_between_encodings): Don't cast between
4961         different pointer to pointer types.  Instead, make the 'inp' local
4962         be of the type iconv expects.
4963         (wchar_iterate): Don't cast between different pointer to pointer
4964         types.  Instead, use new pointer local of the type iconv expects.
4965         * target.c (target_read_stralloc, target_fileio_read_stralloc):
4966         Add new local of type char pointer, and use it to get a
4967         char/string view of the byte buffer, instead of casting between
4968         pointer to pointer types.
4969
4970 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4971
4972         * remote.c (remote_set_trace_buffer_size): Move != operator
4973         to the start of next line to fix an ARI warning.
4974
4975 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4976
4977         * NEWS: Add record changes.
4978
4979 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4980
4981         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4982         the instruction history disassembly.
4983         * disasm.c (dump_insns): Omit the pc prefix, if requested.
4984         * disasm.h (DISASSEMBLY_OMIT_PC): New.
4985
4986 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4987
4988         * Makefile.in (SFILES): Add record-btrace.c
4989         (COMMON_OBS): Add record-btrace.o
4990         * record-btrace.c: New.
4991         * objfiles.c: Include btrace.h.
4992         (free_objfile): call btrace_free_objfile.
4993
4994 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
4995
4996         * target.c (target_call_history, target_call_history_from,
4997         target_call_history_range): New.
4998         * target.h (target_ops) <to_call_history, to_call_history_from,
4999         to_call_history_range>: New fields.
5000         (target_call_history, target_call_history_from,
5001         target_call_history_range): New declaration.
5002         * record.c (get_call_history_modifiers, cmd_record_call_history,
5003         record_call_history_size): New.
5004         (_initialize_record): Add the "record function-call-history" command.
5005         Add "set/show record function-call-history-size" commands.
5006         * record.h (record_print_flag): New.
5007
5008 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5009
5010         * target.h (target_ops) <to_insn_history, to_insn_history_from,
5011         to_insn_history_range>: New fields.
5012         (target_insn_history): New.
5013         (target_insn_history_from): New.
5014         (target_insn_history_range): New.
5015         * target.c (target_insn_history): New.
5016         (target_insn_history_from): New.
5017         (target_insn_history_range): New.
5018         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
5019         (record_insn_history_size): New.
5020         (get_insn_number): New.
5021         (get_context_size): New.
5022         (no_chunk): New.
5023         (get_insn_history_modifiers): New.
5024         (cmd_record_insn_history): New.
5025         (_initialize_record): Add "set/show record instruction-history-size"
5026         command. Add "record instruction-history" command.
5027
5028 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5029
5030         * record.h (record_disconnect): New.
5031         (record_detach): New.
5032         (record_mourn_inferior): New.
5033         (record_kill): New.
5034         * record-full.c (record_disconnect, record_detach,
5035         record_mourn_inferior, record_kill): Move to...
5036         * record.c: ...here.
5037         (DEBUG): New.
5038         (record_stop): New.
5039         (record_unpush): New.
5040         (cmd_record_stop): Call record_stop. Replace unpush_target
5041         call with record_unpush call.
5042         (record_disconnect, record_detach): Assert that the target
5043         is of record stratum. Call record_unpush, record_stop, and
5044         DEBUG.
5045         (record_mourn_inferior, record_kill): Assert that the target
5046         is of record stratum. Call record_unpush and DEBUG.
5047
5048 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5049
5050         * record-full.h, record-full.c (record_memory_query): Rename
5051         to ...
5052         (record_full_memory_query): ...this. Update all users.
5053         (record_arch_list_add_reg): Rename to ...
5054         (record_full_arch_list_add_reg): ...this. Update all users.
5055         (record_arch_list_add_mem): Rename to ...
5056         (record_full_arch_list_add_mem): ...this. Update all users.
5057         (record_arch_list_add_end): Rename to ...
5058         (record_full_arch_list_add_end): ...this. Update all users.
5059         (record_gdb_operation_disable_set): Rename to ...
5060         (record_full_gdb_operation_disable_set): ...this.
5061         Update all users.
5062
5063 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5064
5065         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
5066         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
5067         (RECORD_IS_REPLAY): Renamed to ...
5068         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
5069         (RECORD_FILE_MAGIC): Renamed to ...
5070         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
5071         (record_mem_entry): Renamed to ...
5072         (record_full_mem_entry): ... this. Updated all users.
5073         (record_reg_entry): Renamed to ...
5074         (record_full_reg_entry): ... this. Updated all users.
5075         (record_end_entry): Renamed to ...
5076         (record_full_end_entry): ... this. Updated all users.
5077         (record_type) <record_end, record_reg, record_mem>: Renamed
5078         to ...
5079         (record_full_type) <record_full_end, record_full_reg,
5080         record_full_mem>: ... this. Updated all users.
5081         (record_entry): Renamed to ...
5082         (record_full_entry): ... this. Updated all users.
5083         (record_core_buf_entry): Renamed to ...
5084         (record_full_core_buf_entry): ... this. Updated all users.
5085         (record_core_regbuf): Renamed to ...
5086         (record_full_core_regbuf): ... this. Updated all users.
5087         (record_core_start): Renamed to ...
5088         (record_full_core_start): ... this. Updated all users.
5089         (record_core_end): Renamed to ...
5090         (record_full_core_end): ... this. Updated all users.
5091         (record_core_buf_list): Renamed to ...
5092         (record_full_core_buf_list): ... this. Updated all users.
5093         (record_first): Renamed to ...
5094         (record_full_first): ... this. Updated all users.
5095         (record_list): Renamed to ...
5096         (record_full_list): ... this. Updated all users.
5097         (record_arch_list_head): Renamed to ...
5098         (record_full_arch_list_head): ... this. Updated all users.
5099         (record_arch_list_tail): Renamed to ...
5100         (record_full_arch_list_tail): ... this. Updated all users.
5101         (record_stop_at_limit): Renamed to ...
5102         (record_full_stop_at_limit): ... this. Updated all users.
5103         (record_insn_max_num): Renamed to ...
5104         (record_full_insn_max_num): ... this. Updated all users.
5105         (record_insn_num): Renamed to ...
5106         (record_full_insn_num): ... this. Updated all users.
5107         (record_insn_count): Renamed to ...
5108         (record_full_insn_count): ... this. Updated all users.
5109         (record_ops): Renamed to ...
5110         (record_full_ops): ... this. Updated all users.
5111         (record_core_ops): Renamed to ...
5112         (record_full_core_ops): ... this. Updated all users.
5113         (set_record_cmdlist): Renamed to ...
5114         (set_record_full_cmdlist): ... this. Updated all users.
5115         (show_record_cmdlist): Renamed to ...
5116         (show_record_full_cmdlist): ... this. Updated all users.
5117         (record_cmdlist): Renamed to ...
5118         (record_full_cmdlist): ... this. Updated all users.
5119         (record_beneath_to_resume_ops): Renamed to ...
5120         (record_full_beneath_to_resume_ops): ... this. Updated all users.
5121         (record_beneath_to_resume): Renamed to ...
5122         (record_full_beneath_to_resume): ... this. Updated all users.
5123         (record_beneath_to_wait_ops): Renamed to ...
5124         (record_full_beneath_to_wait_ops): ... this. Updated all users.
5125         (record_beneath_to_wait): Renamed to ...
5126         (record_full_beneath_to_wait): ... this. Updated all users.
5127         (record_beneath_to_store_registers_ops): Renamed to ...
5128         (record_full_beneath_to_store_registers_ops): ... this.
5129         Updated all users.
5130         (record_beneath_to_store_registers): Renamed to ...
5131         (record_full_beneath_to_store_registers): ... this.
5132         Updated all users.
5133         (record_beneath_to_xfer_partial_ops): Renamed to ...
5134         (record_full_beneath_to_xfer_partial_ops): ... this.
5135         Updated all users.
5136         (record_beneath_to_xfer_partial): Renamed to ...
5137         (record_full_beneath_to_xfer_partial): ... this.
5138         Updated all users.
5139         (record_beneath_to_insert_breakpoint): Renamed to ...
5140         (record_full_beneath_to_insert_breakpoint): ... this.
5141         Updated all users.
5142         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
5143         (record_full_beneath_to_stopped_by_watchpoint): ... this.
5144         Updated all users.
5145         (record_beneath_to_stopped_data_address): Renamed to ...
5146         (record_full_beneath_to_stopped_data_address): ... this.
5147         Updated all users.
5148         (record_beneath_to_async): Renamed to ...
5149         (record_full_beneath_to_async): ... this. Updated all users.
5150         (record_goto_insn): Renamed to ...
5151         (record_full_goto_insn): ... this. Updated all users.
5152         (record_save): Renamed to ...
5153         (record_full_save): ... this. Updated all users.
5154         (record_reg_alloc): Renamed to ...
5155         (record_full_reg_alloc): ... this. Updated all users.
5156         (record_reg_release): Renamed to ...
5157         (record_full_reg_release): ... this. Updated all users.
5158         (record_mem_alloc): Renamed to ...
5159         (record_full_mem_alloc): ... this. Updated all users.
5160         (record_mem_release): Renamed to ...
5161         (record_full_mem_release): ... this. Updated all users.
5162         (record_end_alloc): Renamed to ...
5163         (record_full_end_alloc): ... this. Updated all users.
5164         (record_end_release): Renamed to ...
5165         (record_full_end_release): ... this. Updated all users.
5166         (record_entry_release): Renamed to ...
5167         (record_full_entry_release): ... this. Updated all users.
5168         (record_list_release): Renamed to ...
5169         (record_full_list_release): ... this. Updated all users.
5170         (record_list_release_following): Renamed to ...
5171         (record_full_list_release_following): ... this.
5172         Updated all users.
5173         (record_list_release_first): Renamed to ...
5174         (record_full_list_release_first): ... this. Updated all users.
5175         (record_arch_list_add): Renamed to ...
5176         (record_full_arch_list_add): ... this. Updated all users.
5177         (record_get_loc): Renamed to ...
5178         (record_full_get_loc): ... this. Updated all users.
5179         (record_check_insn_num): Renamed to ...
5180         (record_full_check_insn_num): ... this. Updated all users.
5181         (record_arch_list_cleanups): Renamed to ...
5182         (record_full_arch_list_cleanups): ... this. Updated all users.
5183         (record_message): Renamed to ...
5184         (record_full_message): ... this. Updated all users.
5185         (record_message_wrapper): Renamed to ...
5186         (record_full_message_wrapper): ... this. Updated all users.
5187         (record_message_wrapper_safe): Renamed to ...
5188         (record_full_message_wrapper_safe): ... this. Updated all users.
5189         (record_gdb_operation_disable): Renamed to ...
5190         (record_full_gdb_operation_disable): ... this. Updated all users.
5191         (record_hw_watchpoint): Renamed to ...
5192         (record_full_hw_watchpoint): ... this. Updated all users.
5193         (record_exec_insn): Renamed to ...
5194         (record_full_exec_insn): ... this. Updated all users.
5195         (record_restore): Renamed to ...
5196         (record_full_restore): ... this. Updated all users.
5197         (record_async_inferior_event_token): Renamed to ...
5198         (record_full_async_inferior_event_token): ... this.
5199         Updated all users.
5200         (record_async_inferior_event_handler): Renamed to ...
5201         (record_full_async_inferior_event_handler): ... this.
5202         Updated all users.
5203         (record_core_open_1): Renamed to ...
5204         (record_full_core_open_1): ... this. Updated all users.
5205         (record_open_1): Renamed to ...
5206         (record_full_open_1): ... this. Updated all users.
5207         (record_open): Renamed to ...
5208         (record_full_open): ... this. Updated all users.
5209         (record_close): Renamed to ...
5210         (record_full_close): ... this. Updated all users.
5211         (record_resume_step): Renamed to ...
5212         (record_full_resume_step): ... this. Updated all users.
5213         (record_resumed): Renamed to ...
5214         (record_full_resumed): ... this. Updated all users.
5215         (record_execution_dir): Renamed to ...
5216         (record_full_execution_dir): ... this. Updated all users.
5217         (record_resume): Renamed to ...
5218         (record_full_resume): ... this. Updated all users.
5219         (record_get_sig): Renamed to ...
5220         (record_full_get_sig): ... this. Updated all users.
5221         (record_sig_handler): Renamed to ...
5222         (record_full_sig_handler): ... this. Updated all users.
5223         (record_wait_cleanups): Renamed to ...
5224         (record_full_wait_cleanups): ... this. Updated all users.
5225         (record_wait_1): Renamed to ...
5226         (record_full_wait_1): ... this. Updated all users.
5227         (record_wait): Renamed to ...
5228         (record_full_wait): ... this. Updated all users.
5229         (record_stopped_by_watchpoint): Renamed to ...
5230         (record_full_stopped_by_watchpoint): ... this. Updated all users.
5231         (record_disconnect): Renamed to ...
5232         (record_full_disconnect): ... this. Updated all users.
5233         (record_detach): Renamed to ...
5234         (record_full_detach): ... this. Updated all users.
5235         (record_mourn_inferior): Renamed to ...
5236         (record_full_mourn_inferior): ... this. Updated all users.
5237         (record_kill): Renamed to ...
5238         (record_full_kill): ... this. Updated all users.
5239         (record_stopped_data_address): Renamed to ...
5240         (record_full_stopped_data_address): ... this. Updated all users.
5241         (record_registers_change): Renamed to ...
5242         (record_full_registers_change): ... this. Updated all users.
5243         (record_store_registers): Renamed to ...
5244         (record_full_store_registers): ... this. Updated all users.
5245         (record_xfer_partial): Renamed to ...
5246         (record_full_xfer_partial): ... this. Updated all users.
5247         (record_breakpoint): Renamed to ...
5248         (record_full_breakpoint): ... this. Updated all users.
5249         (record_breakpoint_p): Renamed to ...
5250         (record_full_breakpoint_p): ... this. Updated all users.
5251         (record_breakpoints): Renamed to ...
5252         (record_full_breakpoints): ... this. Updated all users.
5253         (record_sync_record_breakpoints): Renamed to ...
5254         (record_full_sync_record_breakpoints): ... this.
5255         Updated all users.
5256         (record_init_record_breakpoints): Renamed to ...
5257         (record_full_init_record_breakpoints): ... this.
5258         Updated all users.
5259         (record_insert_breakpoint): Renamed to ...
5260         (record_full_insert_breakpoint): ... this. Updated all users.
5261         (record_remove_breakpoint): Renamed to ...
5262         (record_full_remove_breakpoint): ... this. Updated all users.
5263         (record_can_execute_reverse): Renamed to ...
5264         (record_full_can_execute_reverse): ... this. Updated all users.
5265         (record_get_bookmark): Renamed to ...
5266         (record_full_get_bookmark): ... this. Updated all users.
5267         (record_goto_bookmark): Renamed to ...
5268         (record_full_goto_bookmark): ... this. Updated all users.
5269         (record_async): Renamed to ...
5270         (record_full_async): ... this. Updated all users.
5271         (record_can_async_p): Renamed to ...
5272         (record_full_can_async_p): ... this. Updated all users.
5273         (record_is_async_p): Renamed to ...
5274         (record_full_is_async_p): ... this. Updated all users.
5275         (record_execution_direction): Renamed to ...
5276         (record_full_execution_direction): ... this. Updated all users.
5277         (record_info): Renamed to ...
5278         (record_full_info): ... this. Updated all users.
5279         (record_delete): Renamed to ...
5280         (record_full_delete): ... this. Updated all users.
5281         (record_is_replaying): Renamed to ...
5282         (record_full_is_replaying): ... this. Updated all users.
5283         (record_goto_entry): Renamed to ...
5284         (record_full_goto_entry): ... this. Updated all users.
5285         (record_goto_begin): Renamed to ...
5286         (record_full_goto_begin): ... this. Updated all users.
5287         (record_goto_end): Renamed to ...
5288         (record_full_goto_end): ... this. Updated all users.
5289         (record_goto): Renamed to ...
5290         (record_full_goto): ... this. Updated all users.
5291         (init_record_ops): Renamed to ...
5292         (init_record_full_ops): ... this. Updated all users.
5293         (record_core_resume): Renamed to ...
5294         (record_full_core_resume): ... this. Updated all users.
5295         (record_core_kill): Renamed to ...
5296         (record_full_core_kill): ... this. Updated all users.
5297         (record_core_fetch_registers): Renamed to ...
5298         (record_full_core_fetch_registers): ... this. Updated all users.
5299         (record_core_prepare_to_store): Renamed to ...
5300         (record_full_core_prepare_to_store): ... this. Updated all users.
5301         (record_core_store_registers): Renamed to ...
5302         (record_full_core_store_registers): ... this. Updated all users.
5303         (record_core_xfer_partial): Renamed to ...
5304         (record_full_core_xfer_partial): ... this. Updated all users.
5305         (record_core_insert_breakpoint): Renamed to ...
5306         (record_full_core_insert_breakpoint): ... this. Updated all users.
5307         (record_core_remove_breakpoint): Renamed to ...
5308         (record_full_core_remove_breakpoint): ... this. Updated all users.
5309         (record_core_has_execution): Renamed to ...
5310         (record_full_core_has_execution): ... this. Updated all users.
5311         (init_record_core_ops): Renamed to ...
5312         (init_record_full_core_ops): ... this. Updated all users.
5313         (cmd_record_restore): Renamed to ...
5314         (cmd_record_full_restore): ... this. Updated all users.
5315         (record_save_cleanups): Renamed to ...
5316         (record_full_save_cleanups): ... this. Updated all users.
5317         (cmd_record_start): Renamed to ...
5318         (cmd_record_full_start): ... this. Updated all users.
5319         (set_record_insn_max_num): Renamed to ...
5320         (set_record_full_insn_max_num): ... this. Updated all users.
5321         (set_record_command): Renamed to ...
5322         (set_record_full_command): ... this. Updated all users.
5323         (show_record_command): Renamed to ...
5324         (show_record_full_command): ... this. Updated all users.
5325         (_initialize_record): Renamed to ...
5326         (_initialize_record_full): ... this. Updated all users.
5327
5328 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5329
5330         * record.h: Split into this and ...
5331         * record-full.h: ... this.
5332         * record.c: Split into this and ...
5333         * record-full.c: ... this.
5334         * target.h (target_ops): Add new fields to_info_record,
5335         to_save_record, to_delete_record, to_record_is_replaying,
5336         to_goto_record_begin, to_goto_record_end, to_goto_record.
5337         (target_info_record): New.
5338         (target_save_record): New.
5339         (target_supports_delete_record): New.
5340         (target_delete_record): New.
5341         (target_record_is_replaying): New.
5342         (target_goto_record_begin): New.
5343         (target_goto_record_end): New.
5344         (target_goto_record): New.
5345         * target.c (target_info_record): New.
5346         (target_save_record): New.
5347         (target_supports_delete_record): New.
5348         (target_delete_record): New.
5349         (target_record_is_replaying): New.
5350         (target_goto_record_begin): New.
5351         (target_goto_record_end): New.
5352         (target_goto_record): New.
5353         * record.h: Declare struct cmd_list_element.
5354         (record_cmdlist): New declaration.
5355         (set_record_cmdlist): New declaration.
5356         (show_record_cmdlist): New declaration.
5357         (info_record_cmdlist): New declaration.
5358         (cmd_record_goto): New declaration.
5359         * record.c: Remove unnecessary includes.
5360         Include inferior.h.
5361         (cmd_record_goto): Remove declaration.
5362         (record_cmdlist): Now extern. Initialize.
5363         (set_record_cmdlist): Now extern. Initialize.
5364         (show_record_cmdlist): Now extern. Initialize.
5365         (info_record_cmdlist): Now extern. Initialize.
5366         (find_record_target): New.
5367         (require_record_target): New.
5368         (cmd_record_start): Update.
5369         (cmd_record_delete): Remove target-specific code.
5370         Call target_delete_record.
5371         (cmd_record_stop): Unpush any record target.
5372         (set_record_insn_max_num): Move to record-full.c
5373         (set_record_command): Add comment.
5374         (show_record_command): Add comment.
5375         (info_record_command): Update comment.
5376         Remove target-specific code.
5377         Call the record target's to_info_record.
5378         (cmd_record_start): New.
5379         (cmd_record_goto): Now extern.
5380         Remove target-specific code.
5381         Call target_goto_begin,  target_goto_end, or target_goto.
5382         (_initialize_record): Move record target ops initialization to
5383         record-full.c.
5384         Change "record" command help text.
5385         Move "record restore", "record set", and "record show" commands to
5386         record-full.c.
5387         * Makefile.in (SFILES): Add record-full.c.
5388         (HFILES_NO_SRCDIR): Add record-full.h.
5389         (COMMON_OBS): Add record-full.o.
5390         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
5391         * arm-tdep.c: Include record-full.h.
5392         * i386-linux-tdep.c: Include record-full.h instead of record.h.
5393         * i386-tdep.c: Include record-full.h.
5394         * infrun.c: Include record-full.h.
5395         * linux-record.c: Include record-full.h.
5396         * moxie-tdep.c: Include record-full.h.
5397         * record-full.c: Include record-full.h.
5398         Change module comment.
5399         (set_record_full_cmdlist): New.
5400         (show_record_full_cmdlist): New.
5401         (record_full_cmdlist): New.
5402         (record_goto_insn): New declaration.
5403         (record_save): New declaration.
5404         (record_check_insn_num): Change query string.
5405         (record_info): New.
5406         (record_delete): New.
5407         (record_is_replaying): New.
5408         (record_goto_entry): New.
5409         (record_goto_begin): New.
5410         (record_goto_end): New.
5411         (record_goto): New.
5412         (init_record_ops): Update.
5413         (init_record_core_ops): Update.
5414         (cmd_record_save): Rename to record_save. Remove target and arg checks.
5415         (cmd_record_start): New.
5416         (set_record_insn_max_num): Moved from record.c
5417         (set_record_full_command): New.
5418         (show_record_full_command): New.
5419         (_initialize_record_full): New.
5420
5421 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5422
5423         * target.h (add_deprecated_target_alias): New.
5424         * target.c (add_deprecated_target_alias): New.
5425
5426 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5427
5428         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
5429         and signal.h.
5430         (linux_supports_btrace): Add kernel and
5431         cpuid check.
5432         (kernel_supports_btrace): New function.
5433         (cpu_supports_btrace): New function.
5434         (intel_supports_btrace): New function.
5435
5436 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5437
5438         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
5439         * remote.c: Include btrace.h.
5440         (struct btrace_target_info): New struct.
5441         (remote_supports_btrace): New function.
5442         (send_Qbtrace): New function.
5443         (remote_enable_btrace): New function.
5444         (remote_disable_btrace): New function.
5445         (remote_teardown_btrace): New function.
5446         (remote_read_btrace): New function.
5447         (init_remote_ops): Add btrace ops.
5448         (enum <unnamed>): Add btrace packets.
5449         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
5450         (_initialize_remote): Add packet configuration for branch tracing.
5451
5452 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5453
5454         * features/btrace.dtd: New file.
5455         * Makefile.in (XMLFILES): Add btrace.dtd.
5456         * btrace.h (parse_xml_btrace): New declaration.
5457         * btrace.c: Include xml-support.h.
5458         (parse_xml_btrace): New function.
5459         (parse_xml_btrace_block): New function.
5460         (block_attributes): New struct.
5461         (btrace_attributes): New struct.
5462         (btrace_children): New struct.
5463         (btrace_elements): New struct.
5464
5465 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5466
5467         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
5468         (amd64_linux_enable_btrace): New.
5469         (amd64_linux_disable_btrace): New.
5470         (amd64_linux_teardown_btrace): New.
5471         (_initialize_amd64_linux_nat): Initialize btrace ops.
5472         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
5473         (i386_linux_enable_btrace): New.
5474         (i386_linux_disable_btrace): New.
5475         (i386_linux_teardown_btrace): New.
5476         (_initialize_i386_linux_nat): Initialize btrace ops.
5477         * config/i386/linux.mh: Add linux-btrace.o.
5478         * config/i386/linux64.mh: Add linux-btrace.o.
5479
5480 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5481
5482         * common/linux_btrace.h: New file.
5483         * common/linux_btrace.c: New file.
5484         * Makefile.in (SFILES): Add btrace.c.
5485         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
5486         (COMMON_OBS): Add btrace.o.
5487         (linux-btrace.o): New rule.
5488
5489 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
5490
5491         * target.h: Include btrace.h.
5492         (struct target_ops) <to_supports_btrace, to_enable_btrace,
5493         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
5494         * target.c (target_supports_btrace): New function.
5495         (target_enable_btrace): New function.
5496         (target_disable_btrace): New function.
5497         (target_teardown_btrace): New function.
5498         (target_read_btrace): New function.
5499         * btrace.h: New file.
5500         * btrace.c: New file.
5501         * Makefile.in: Add btrace.c.
5502         * gdbthread.h: Include btrace.h.
5503         (struct thread_info): Add btrace field.
5504         * thread.c: Include btrace.h.
5505         (clear_thread_inferior_resources): Call target_teardown_btrace.
5506         * common/btrace-common.h: New file.
5507
5508 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5509
5510         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
5511         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
5512         kill_status to outer block.
5513
5514 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5515
5516         Fix entry-values if the callee called a noreturn function.
5517         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5518         get_frame_address_in_block.  Add new comment.
5519
5520 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5521
5522         Fix entry-values in C++ across CUs.
5523         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
5524         lookup_minimal_symbol.  Add a comment.
5525         * dwarf2read.c
5526         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
5527         DW_AT_linkage_name.
5528
5529 2013-03-08  Yao Qi  <yao@codesourcery.com>
5530
5531         * tracepoint.c (_initialize_tracepoint): Indent the code.
5532
5533 2013-03-08  Pedro Alves  <palves@redhat.com>
5534
5535         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
5536         (parse_find_args, find_command): Change type of pattern buffer
5537         locals to 'gdb_byte *'.
5538
5539 2013-03-08  Stan Shebs  <stan@codesourcery.com>
5540             Hafiz Abid Qadeer  <abidh@codesourcery.com>
5541
5542         * NEWS: Mention set and show trace-buffer-size commands.
5543         Mention new packet.
5544         * target.h (struct target_ops): New method
5545         to_set_trace_buffer_size.
5546         (target_set_trace_buffer_size): New macro.
5547         * target.c (update_current_target): Set up new method.
5548         * tracepoint.c (trace_buffer_size): New global.
5549         (start_tracing): Send it to the target.
5550         (set_trace_buffer_size): New function.
5551         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
5552         * remote.c (remote_set_trace_buffer_size): New function.
5553         (_initialize_remote): Use it.
5554         (QTBuffer:size) New remote command.
5555         (PACKET_QTBuffer_size): New enum.
5556         (remote_protocol_features): Add an entry for
5557         PACKET_QTBuffer_size.
5558
5559 2013-03-08  Tom Tromey  <tromey@redhat.com>
5560
5561         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
5562         variable.
5563
5564 2013-03-07  Pedro Alves  <palves@redhat.com>
5565
5566         * target.c (target_read_stralloc, target_fileio_read_alloc):
5567         *Cast pointer to 'gdb_byte *' in target call.
5568
5569 2013-03-07  Pedro Alves  <palves@redhat.com>
5570
5571         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
5572         call.
5573
5574 2013-03-07  Keith Seitz  <keiths@redhat.com>
5575
5576         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
5577         (trace_pass_command): Likewise.
5578         * cli/cli-cmds.c: Include cli/cli-utils.h.
5579         (source_command): Use skip-spaces.
5580         (disassemble_command): Likewise.
5581         * findcmd.c: Include cli/cli-utils.h.
5582         (parse_find_args): Use skip_spaces.
5583         * go32-nat.c: Include cli/cli-utils.h.
5584         (go32_sldt): Use skip_spaces.
5585         (go32_sgdt): Likewise.
5586         (go32_sidt): Likewise.
5587         (go32_pde): Likewise.
5588         (go32_pte): Likewise.
5589         (go32_pte_for_address): Likewise.
5590         * infcmd.c: Include cli/cli-utils.h.
5591         (registers_info): Use skip_spaces.
5592         * linux-tdep.c (read_mapping): Use skip_spaces_const.
5593         (linux_info_proc): Likewise.
5594         * linux-thread-db.c: Include cli/cli-utils.h.
5595         (info_auto_load_libthread_db): Use skip_spaces_const.
5596         * m32r-rom.c: Include cli/cli-utils.h.
5597         (m32r_upload_command): Use skip_spaces.
5598         * maint.c: Include cli/cli-utils.h.
5599         (maintenance_translate_address): Use skip_spaces.
5600         * mi/mi-parse.c: Include cli/cli-utils.h.
5601         (mi_parse_argv): Use skip_spaces.
5602         (mi_parse): Likewise.
5603         * minsyms.c: Include cli/cli-utils.h.
5604         (msymbol_hash_iw): Use skip_spaces_const.
5605         * objc-lang.c: Include cli/cli-utils.h.
5606         (parse_selector): Use skip_spaces.
5607         (parse_method): Likewise.
5608         * python/python.c: Include cli/cli-utils.h.
5609         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
5610         (python_command)[HAVE_PYTHON]: Likewise.
5611         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
5612         * remote-m32r-sdi.c: Include cli/cli-utils.h.
5613         (m32r_load): Use skip_spaces.
5614         * serial.c: Include cli/cli-utils.h.
5615         (serial_open): Use skip_spaces_const.
5616         * stack.c: Include cli/cli-utils.h.
5617         (parse_frame_specification_1): Use skip_spaces_const.
5618         * symfile.c: Include cli/cli-utils.h.
5619         (set_ext_lang_command): Use skip_spaces.
5620         * symtab.c: Include cli/cli-utils.h.
5621         (rbreak_command): Use skip_spaces.
5622         * thread.c (thread_name_command): Use skip_spaces.
5623         * tracepoint.c (validate_actionline): Use skip_spaces.
5624         (encode_actions_1): Likewise.
5625         (trace_find_range_command): Likewise.
5626         (trace_find_outside_command): Likewise.
5627         (trace_dump_actions): Likewise.
5628
5629 2013-03-07  Pedro Alves  <palves@redhat.com>
5630
5631         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
5632         * expprint.c (print_subexp_standard): Likewise.
5633         * utils.c (host_char_to_target): Likewise.
5634         * valprint.c (generic_emit_char, generic_printstr): Likewise.
5635         * varobj.c (value_get_print_value): Change type of local to char*.
5636         Cast it gdb_byte * in call to language printer.
5637
5638 2013-03-07  Pedro Alves  <palves@redhat.com>
5639
5640         * charset.c (struct wchar_iterator) <input>: Change type to 'const
5641         gdb_byte *'.
5642         (make_wchar_iterator): Remove cast to char*.
5643         (wchar_iterate): Change type of local.
5644
5645 2013-03-07  Pedro Alves  <palves@redhat.com>
5646
5647         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
5648         for 'regcache->register_status'.
5649
5650 2013-03-07  Pedro Alves  <palves@redhat.com>
5651
5652         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
5653         int.
5654
5655 2013-03-07  Pedro Alves  <palves@redhat.com>
5656
5657         * stap-probe.c (handle_stap_probe): Add cast to char*.
5658
5659 2013-03-07  Pedro Alves  <palves@redhat.com>
5660
5661         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
5662         RECORD_MSGRCV>: Pass a signed variable to
5663         regcache_raw_read_signed, instead of an unsigned one.
5664
5665 2013-03-07  Pedro Alves  <palves@redhat.com>
5666
5667         * remote-notif.c (notif_debug): Change type to int.
5668         * remote-notif.h (notif_debug): Likewise.
5669
5670 2013-03-07  Pedro Alves  <palves@redhat.com>
5671
5672         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
5673
5674 2013-03-07  Pedro Alves  <palves@redhat.com>
5675
5676         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
5677         * remote.h (hex2bin, bin2hex): ... here.
5678         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
5679
5680 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
5681
5682         * utils.c (initialize_utils): Improve doc strings of "set/show
5683         width", "set/show height", and "set/show pagination".
5684
5685 2013-03-06  Keith Seitz  <keiths@redhat.com>
5686
5687         * ax-gdb.c (gen_printf): Make FORMAT const.
5688         * ax-gdb.h (gen_printf): Likewise.
5689         * ax-general.c (ax_string): Make STR const.
5690         * ax.h (ax_string): Likewise.
5691
5692 2013-03-06  Doug Evans  <dje@google.com>
5693
5694         * elfread.c (elf_symfile_read): Move debugging printf to more
5695         logical location.
5696
5697 2013-03-06  Pedro Alves  <palves@redhat.com>
5698
5699         * python/py-utils.c (target_string_to_unicode): Delete function.
5700         * python/python-internal.h (target_string_to_unicode): Delete
5701         declaration.
5702
5703 2013-03-06  Pierre Muller  <muller@sourceware.org>
5704
5705         * linespec.c (get_current_search_block): ARI fix, use (void)
5706         for empty parameter list.
5707
5708 2013-03-05  Doug Evans  <dje@google.com>
5709
5710         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
5711         of old ada_lookup_symbol_list.  In !full_search case, don't
5712         search superblocks.
5713         (ada_lookup_symbol_list): Delete arg full_search, all callers
5714         updated.  Call ada_lookup_symbol_list_worker.
5715         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
5716         * ada-lang.h (ada_lookup_symbol_list): Update.
5717         * language.h (language_defn): Update comment for
5718         la_iterate_over_symbols.
5719         * linespec.c (iterate_over_file_blocks): New function.
5720         (iterate_over_all_matching_symtabs): Call it.
5721         (lookup_prefix_sym): Ditto.
5722         (get_current_search_block): New function.
5723         (get_search_block): Delete.
5724         (find_label_symbols): Call get_current_search_block.
5725         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
5726         * symtab.c (iterate_over_symbols): Don't search superblocks.
5727
5728 2013-03-05  Yao Qi  <yao@codesourcery.com>
5729
5730         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
5731         parameter VAR's type from "unsigned int" to "int".
5732         * command.h (var_zuinteger_unlimited): Update its comments.
5733         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
5734
5735 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
5736
5737         * NEWS: Mention new target x86_64-*-cygwin*.
5738
5739 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
5740
5741         * configure.host: Add x86_64-*-cygwin* as host.
5742         * configure.tgt: Add x86_64-*-cygwin* as target.
5743         * config/i386/cygwin64.mh: New file.
5744
5745 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5746
5747         * linespec.c (decode_line_2): Fix duplicate request off by two message.
5748
5749 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5750
5751         * linespec.c (struct linespec_canonical_name): New.
5752         (struct linespec_state): Change canonical_names type to it.
5753         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
5754         xrealloc element size.  Initialize the different CANONICAL fields.
5755         (canonical_to_fullform): New.
5756         (filter_results): Use it.  Add variables canonical, fullform and
5757         cleanup.
5758         (struct decode_line_2_item, decode_line_2_compare_items): New.
5759         (decode_line_2): Remove variables iter and item_names, add variables
5760         items and items_count.  Modify the code for these new variables.
5761
5762 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
5763
5764         * coff-pe-read.c (read_pe_exported_syms): Don't return without
5765         calling do_cleanup.
5766
5767 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
5768
5769         * tracepoint.c (build_traceframe_info): Add code for byte order.
5770
5771 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
5772
5773         * v850-tdep.c: (v850e2_register_name): Revise system register
5774         names to match current V850E2M architecture specifications.
5775         Update register number enum comments too.
5776         
5777 2013-03-01  Jiong Wang  <jiwang@tilera.com>
5778             Pedro Alves  <palves@redhat.com>
5779
5780         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
5781         to END_ADDR.
5782         (tilegx_skip_prologue): Limit prologue analysis to section end.
5783
5784 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5785
5786         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
5787         use it.
5788
5789 2013-03-01  Pedro Alves  <palves@redhat.com>
5790
5791         Use gdb_byte for bytes from the program being debugged.
5792
5793         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
5794         Change type of local 'buf' to gdb_byte.
5795         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
5796         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
5797         * cris-tdep.c (cris_sigcontext_addr)
5798         (cris_sigtramp_frame_unwind_cache): Likewise.
5799         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
5800         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5801         Likewise.
5802         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
5803         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
5804         (hppa32_hpux_search_dummy_call_sequence)
5805         (hppa_hpux_supply_save_state): Likewise.
5806         * hppa-linux-tdep.c (insns_match_pattern)
5807         (hppa_linux_find_global_pointer): Likewise.
5808         * hppa-tdep.c (hppa_in_function_epilogue_p)
5809         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5810         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
5811         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
5812         (i386fbsd_collect_uthread): Likewise.
5813         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
5814         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
5815         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
5816         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
5817         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
5818         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
5819         (ia64_libunwind_frame_prev_register)
5820         (ia64_libunwind_sigtramp_frame_this_id)
5821         (ia64_find_global_pointer_from_dynamic_section)
5822         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
5823         (ia64_unwind_pc): Likewise.
5824         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
5825         * m68hc11-tdep.c (m68hc11_push_dummy_call)
5826         (m68hc11_extract_return_value): Likewise.
5827         * m68klinux-nat.c (fetch_register, store_register): Likewise.
5828         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
5829         (mep_get_insn, mep_push_dummy_call): Likewise.
5830         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5831         (mips_linux_in_dynsym_stub): Likewise.
5832         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
5833         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5834         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
5835         to gdb_byte.
5836         * remote-mips.c (mips_set_register): Likewise.
5837         * remote-sim.c (gdbsim_fetch_register): Likewise.
5838         * score-tdep.c (score7_fetch_inst): Change type of parameter
5839         'memblock' and local 'buf' to gdb_byte.
5840         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
5841         Change type of local 'buf' to gdb_byte.  Adjust.
5842         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
5843         to gdb_byte**.
5844         (score7_analyze_prologue): Change type of 'memblock' and
5845         'memblock_ptr' locals to gdb_byte*.
5846         * sh64-tdep.c (sh64_extract_return_value)
5847         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
5848         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
5849         * solib-pa64.c (pa64_solib_create_inferior_hook)
5850         (pa64_open_symbol_file_object): Remove local 'buf'.
5851         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
5852         (som_open_symbol_file_object): Likewise.
5853         * solib-spu.c (spu_current_sos): Likewise.
5854         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5855         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
5856         (spu_store_registers): Likewise.
5857         * target.c (debug_print_register): Likewise.
5858         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
5859         * xstormy16-tdep.c (xstormy16_store_return_value)
5860         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
5861         (xstormy16_find_jmp_table_entry): Likewise.
5862
5863 2013-03-01  Jiong Wang  <jiwang@tilera.com>
5864
5865         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
5866         (tilegx_gdbarch_init): Install it.
5867
5868 2013-02-28  Tom Tromey  <tromey@redhat.com>
5869
5870         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
5871         PyLong_Check.
5872
5873 2013-02-28  Doug Evans  <dje@google.com>
5874
5875         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
5876         * python/python.c (gdbpy_find_pc_line): Ditto.
5877
5878 2013-02-28  Tom Tromey  <tromey@redhat.com>
5879
5880         * contrib/excheck.py: New file.
5881         * contrib/exsummary.py: New file.
5882         * contrib/gcc-with-excheck: New file.
5883
5884 2013-02-28  Tom Tromey  <tromey@redhat.com>
5885
5886         * python/python.c (gdbpy_print_stack): Call begin_line and
5887         fprintf_filtered inside TRY_CATCH.
5888
5889 2013-02-28  Tom Tromey  <tromey@redhat.com>
5890
5891         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5892         inside TRY_CATCH.
5893
5894 2013-02-28  Tom Tromey  <tromey@redhat.com>
5895
5896         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5897         frame_object_to_frame_info inside TRY_CATCH.
5898
5899 2013-02-28  Tom Tromey  <tromey@redhat.com>
5900
5901         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5902         TRY_CATCH.
5903
5904 2013-02-28  Tom Tromey  <tromey@redhat.com>
5905
5906         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5907
5908 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
5909
5910         * windows-nat.c: Throughout, fix format strings and casts of
5911         printf-like functions to avoid type related warnings on all
5912         platforms.
5913         (handle_output_debug_string): Fetch context information address
5914         from debug string using string_to_core_addr.
5915
5916 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5917
5918         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5919         * regformats/reg-tilegx32.dat: New.
5920
5921 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5922
5923         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5924
5925 2013-02-27  Jiong Wang  <jiwang@tilera.com>
5926
5927         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5928
5929 2013-02-27  Yao Qi  <yao@codesourcery.com>
5930             Pedro Alves  <palves@redhat.com>
5931
5932         * tracepoint.c (tfile_trace_find): For tfind
5933         pc/tp/range/outside, look for the next trace frame instead of
5934         always starting from frame 0.
5935
5936 2013-02-26  Anthony Green  <green@moxielogic.com>
5937
5938         * configure.tgt: Add support for moxie-*-rtems* target.
5939
5940 2013-02-25  Pedro Alves  <palves@redhat.com>
5941
5942         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5943         warning text.
5944
5945 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
5946
5947         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5948         if $fp is used as the virtual frame pointer.
5949
5950 2013-02-23  Alan Modra  <amodra@gmail.com>
5951
5952         * elfread.c (elf_symtab_read): Do not use udata.p here to find
5953         symbol size.
5954         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5955         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5956         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5957         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5958
5959 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5960
5961         Code cleanup.
5962         * elfread.c (build_id_bfd_get): Make the return type const.
5963         (build_id_verify): Make the check parameter const.
5964         (build_id_to_debug_filename): Make the build_id parameter and variable
5965         data const.
5966         (find_separate_debug_file_by_buildid): Make the variable build_id const.
5967
5968 2013-02-21  Alan Modra  <amodra@gmail.com>
5969
5970         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5971
5972 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
5973
5974         Add a new method 'disassemble' to gdb.Architecture class.
5975         * python/py-arch.c (archpy_disassmble): Implementation of the
5976         new method gdb.Architecture.disassemble.
5977         (arch_object_methods): Add entry for the new method.
5978
5979 2013-02-20  Jiong Wang  <jiwang@tilera.com>
5980
5981         * MAINTAINERS (Write After Approval): Add myself to the list.
5982
5983 2013-02-19  Pedro Alves  <palves@redhat.com>
5984
5985         Garbage collect 'struct monitor_ops'::load_routine.
5986
5987         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5988         * monitor.c (monitor_load): No longer call
5989         current_monitor->load_routine.
5990         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5991         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5992         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5993
5994 2013-02-19  Pedro Alves  <palves@redhat.com>
5995
5996         PR gdb/15161
5997
5998         Harmonize with generic_load.
5999
6000         * monitor.c: Include "readline/readline.h".
6001         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
6002         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
6003         long/strtol for the 'load_offset' local.  Error out if no argument
6004         is given or if too many arguments are given.  Tilde expand the
6005         passed in file name.
6006
6007 2013-02-19  Kai Tietz  <ktietz@redhat.com>
6008
6009         PR gdb/15161
6010         * symfile.c (load_section_data): Change type of load_offset
6011         to CORE_ADDR.
6012         (generic_load): User strtoulst instead of strtoul for conversion
6013         of load_offset.
6014
6015 2013-02-19  Jiong Wang  <jiwang@tilera.com>
6016
6017         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
6018          for return address, "lr" register, saved on stack.
6019         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
6020         after we invoke tilegx_analyze_prologue.
6021
6022 2013-02-19  Jiong Wang  <jiwang@tilera.com>
6023
6024         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
6025
6026 2013-02-19  Jiong Wang  <jiwang@tilera.com>
6027
6028         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
6029
6030 2013-02-19  Jiong Wang  <jiwang@tilera.com>
6031
6032         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
6033         (tilegx_write_pc): New function.
6034         (tilegx_cannot_reference_register): Return zero if REGNO
6035         is TILEGX_FAULTNUM_REGNUM.
6036         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
6037         (tilegx_register_name): Add handling of "faultnum" register.
6038         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
6039         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
6040         handling of TILEGX_FAULTNUM_REGNUM.
6041         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
6042
6043 2013-02-19  Jiong Wang  <jiwang@tilera.com>
6044
6045         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
6046         should be aligned to 64bit.
6047
6048 2013-02-19  Kai Tietz  <ktietz@redhat.com>
6049
6050         * windows-nat.c (windows_xfer_memory): Fix debug-output
6051         for LLP64.
6052
6053 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
6054
6055         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
6056         Don't check DSP register number if HAVE_DSP is not set.
6057
6058 2013-02-19  Alan Modra  <amodra@gmail.com>
6059
6060         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
6061         throughout file instead.
6062         (build_id_bfd_get): Update to use new elf_tdata build_id field.
6063         Don't xmalloc return value.
6064         (build_id_verify): Similarly.  Don't xfree.
6065         (build_id_to_debug_filename): Update.
6066         (find_separate_debug_file_by_buildid): Update, don't xfree.
6067
6068 2013-02-18  Tom Tromey  <tromey@redhat.com>
6069
6070         PR gdb/15102:
6071         * dwarf2read.c (read_subrange_type): Use result of
6072         'check_typedef'.
6073
6074 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
6075
6076         * frame.c: Remove one extra white space after #include
6077         directive.
6078
6079 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6080
6081         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
6082
6083 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6084
6085         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
6086         and dir commands into an if block.
6087
6088 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
6089
6090         * python/py-breakpoint (struct pybp_code):  Use int instead of
6091         enum type_code.
6092
6093 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
6094             Hafiz Abid Qadeer  <abidh@codesourcery.com>
6095
6096         * NEWS: Mention new field "trace-file".
6097         * tracepoint.c (trace_status_mi): Output "trace-file" field.
6098         (tfile_open): Record the trace file's filename in the trace
6099         status.
6100         (tfile_files_info): Mention the name of the trace file.
6101         Check the "filename" field explicitely.
6102         (trace_status_command): Explicitely check "filename" field.
6103         (trace_find_command): Ditto.
6104         (trace_find_pc_command): Ditto.
6105         (trace_find_tracepoint_command): Ditto.
6106         (trace_find_line_command): Ditto.
6107         (trace_find_range_command): Ditto.
6108         (trace_find_outside_command): Ditto.
6109         * tracepoint.h (struct trace_status) <from_file>: Rename it
6110         to "filename" and make it hold the trace file's filename
6111         instead of a boolean.
6112         * remote.c (remote_get_trace_status): Initialize "filename"
6113         field with NULL instead of 0.
6114
6115 2013-02-15  Yao Qi  <yao@codesourcery.com>
6116
6117         * remote.c: Fix a typo.
6118
6119 2013-02-14  Pierre Muller  <muller@sourceware.org>
6120
6121         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
6122
6123 2013-02-14  Pedro Alves  <palves@redhat.com>
6124
6125         * utils.c (savestring): Don't #undef it.  Move function to
6126         common/common-utils.c.
6127         * common/common-utils.c: Include gdb_string.h.
6128         (savestring): Move here from utils.c.
6129         * common/common-utils.h (savestring): Declare.
6130
6131 2013-02-14  Pedro Alves  <palves@redhat.com>
6132
6133         * utils.c (savestring): Rename parameter 'size' to 'len'.
6134
6135 2013-02-14  Pedro Alves  <palves@redhat.com>
6136             Yufeng Zhang  <yufeng.zhang@arm.com>
6137
6138         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
6139         (aarch64_inferior_data, struct aarch64_inferior_data):
6140         Delete.
6141         (struct aarch64_process_info): New.
6142         (aarch64_process_list): New global.
6143         (aarch64_find_process_pid, aarch64_add_process)
6144         (aarch64_process_info_get): New functions.
6145         (aarch64_inferior_data_get): Delete.
6146         (aarch64_process_info_get): New function.
6147         (aarch64_forget_process): New function.
6148         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
6149         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
6150         aarch64_get_debug_reg_state.
6151         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
6152         instead of linux_nat_iterate_watchpoint_lwps.
6153         (aarch64_linux_new_fork): New function.
6154         (aarch64_linux_child_post_startup_inferior): Use
6155         aarch64_forget_process instead of aarch64_init_debug_reg_state.
6156         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
6157         (aarch64_linux_remove_hw_breakpoint)
6158         (aarch64_handle_aligned_watchpoint)
6159         (aarch64_handle_unaligned_watchpoint)
6160         (aarch64_linux_insert_watchpoint)
6161         (aarch64_linux_remove_watchpoint)
6162         (aarch64_linux_stopped_data_address): Adjust to pass the current
6163         process id to aarch64_debug_reg_state.
6164         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
6165         linux_nat_new_fork hook, and aarch64_forget_process as
6166         linux_nat_forget_process hook; remove the call to
6167         register_inferior_data_with_cleanup.
6168
6169 2013-02-14  Pedro Alves  <palves@redhat.com>
6170
6171         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
6172         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
6173         lval_memory.
6174
6175 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
6176             Hafiz Abid Qadeer  <abidh@codesourcery.com>
6177
6178         * tracepoint.h (validate_trace_state_variable_name): Declare.
6179         * tracepoint.c (validate_trace_state_variable_name): New.
6180         (trace_variable_command): Parse the trace state variable's name
6181         without using parse_expression.  Do several validations.
6182         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
6183         trace state variable's name with parse_expression.  Validate it.
6184
6185 2013-02-14  Yao Qi  <yao@codesourcery.com>
6186
6187         * infcmd.c (breakpoint_proceeded): Remove it.
6188
6189 2013-02-14  Yao Qi  <yao@codesourcery.com>
6190
6191         * tracepoint.c (end_actions_pseudocommand): Make it static.
6192         (while_stepping_pseudocommand): Likewise.
6193         * tracepoint.h (end_actions_pseudocommand): Remove the
6194         declaration.
6195         (while_stepping_pseudocommand): Likewise.
6196
6197 2013-02-14  Yao Qi  <yao@codesourcery.com>
6198
6199         * cli/cli-decode.c (help_cmd): Remove the declaration of
6200         "cmdlist".
6201         (help_all): Likewise.
6202
6203 2013-02-13  Pedro Alves  <palves@redhat.com>
6204
6205         * amd64-linux-nat.c (update_debug_registers_callback):
6206         Update comment.
6207         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6208         iterate_over_lwps.
6209         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
6210         i386_debug_reg_state.
6211         (amd64_linux_new_fork): New function.
6212         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
6213         linux_nat_new_fork hook, and i386_forget_process as
6214         linux_nat_forget_process hook.
6215         * i386-linux-nat.c (update_debug_registers_callback):
6216         Update comment.
6217         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6218         iterate_over_lwps.
6219         (i386_linux_prepare_to_resume): Pass the lwp's pid to
6220         i386_debug_reg_state.
6221         (i386_linux_new_fork): New function.
6222         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
6223         linux_nat_new_fork hook, and i386_forget_process as
6224         linux_nat_forget_process hook.
6225         * i386-nat.c (i386_init_dregs): Delete.
6226         (i386_inferior_data, struct i386_inferior_data):
6227         Delete.
6228         (struct i386_process_info): New.
6229         (i386_process_list): New global.
6230         (i386_find_process_pid, i386_add_process, i386_process_info_get):
6231         New functions.
6232         (i386_inferior_data_get): Delete.
6233         (i386_process_info_get): New function.
6234         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
6235         (i386_forget_process): New function.
6236         (i386_cleanup_dregs): Rewrite.
6237         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
6238         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6239         (i386_stopped_data_address, i386_insert_hw_breakpoint)
6240         (i386_remove_hw_breakpoint): Adjust to pass the current process id
6241         to i386_debug_reg_state.
6242         (i386_use_watchpoints): Don't register inferior data.
6243         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
6244         adjust comment.
6245         (i386_forget_process): Declare.
6246         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
6247         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
6248         New static globals.
6249         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
6250         (add_initial_lwp): New, factored out from ...
6251         (add_lwp): ... this.  Don't check the number of lwps before
6252         calling linux_nat_new_thread.
6253         (linux_nat_iterate_watchpoint_lwps): Delete.
6254         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
6255         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
6256         forks and vforks.
6257         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
6258         initial lwp.
6259         (linux_nat_kill, linux_nat_mourn_inferior): Call
6260         linux_nat_forget_process.
6261         (linux_nat_set_new_fork, linux_nat_set_forget_process)
6262         (linux_nat_forget_process): New functions.
6263         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
6264         type.
6265         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
6266         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
6267         types.
6268         (linux_nat_set_new_fork, linux_nat_set_forget_process)
6269         (linux_nat_forget_process): New declarations.
6270
6271         * amd64fbsd-nat.c (super_mourn_inferior): New global.
6272         (amd64fbsd_mourn_inferior): New function.
6273         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
6274         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
6275
6276 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6277
6278         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6279         Adding _().
6280
6281 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6282
6283         * aarch64-linux-nat.c (debug_reg_change_callback)
6284         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
6285         %s and phex().
6286
6287 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6288
6289         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
6290         with LONGEST.
6291
6292 2013-02-13  Pedro Alves  <palves@redhat.com>
6293             Hafiz Abid Qadeer  <abidh@codesourcery.com>
6294
6295         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
6296
6297 2013-02-12  Tom Tromey  <tromey@redhat.com>
6298
6299         PR symtab/11464:
6300         * c-exp.y (lex_one_token): Initialize other fields of yylval on
6301         NAME return.
6302         (classify_inner_name): Remove 'first_name' argument, add
6303         'context'.  Remove unused variable.
6304         (yylex): Explicitly maintain the context type.  Exit loop earlier
6305         if NAME result is seen.
6306
6307 2013-02-12  Pedro Alves  <palves@redhat.com>
6308
6309         * amd64-darwin-tdep.c: Add (C) after Copyright.
6310         * cli/cli-cmds.h: Ditto.
6311         * cli/cli-decode.c: Ditto.
6312         * cli/cli-decode.h: Ditto.
6313         * cli/cli-dump.c: Ditto.
6314         * cli/cli-dump.h: Ditto.
6315         * cli/cli-interp.c: Ditto.
6316         * cli/cli-logging.c: Ditto.
6317         * cli/cli-script.c: Ditto.
6318         * cli/cli-script.h: Ditto.
6319         * cli/cli-setshow.c: Ditto.
6320         * cli/cli-setshow.h: Ditto.
6321         * cli/cli-utils.c: Ditto.
6322         * cli/cli-utils.h: Ditto.
6323         * config/alpha/nm-osf3.h: Ditto.
6324         * config/djgpp/djconfig.sh: Ditto.
6325         * config/i386/nm-fbsd.h: Ditto.
6326         * config/i386/nm-i386gnu.h: Ditto.
6327         * config/nm-linux.h: Ditto.
6328         * config/nm-nto.h: Ditto.
6329         * config/rs6000/nm-rs6000.h: Ditto.
6330         * config/sparc/nm-sol2.h: Ditto.
6331         * darwin-nat-info.c: Ditto.
6332         * dfp.c: Ditto.
6333         * dfp.h: Ditto.
6334         * gdb-demangle.h: Ditto.
6335         * i386-darwin-nat.c: Ditto.
6336         * i386-darwin-tdep.c: Ditto.
6337         * linux-fork.h: Ditto.
6338         * m32c-tdep.c: Ditto.
6339         * microblaze-linux-tdep.c: Ditto.
6340         * microblaze-rom.c: Ditto.
6341         * microblaze-tdep.c: Ditto.
6342         * microblaze-tdep.h: Ditto.
6343         * mips-linux-tdep.h: Ditto.
6344         * ppc-ravenscar-thread.c: Ditto.
6345         * ppc-ravenscar-thread.h: Ditto.
6346         * prologue-value.c: Ditto.
6347         * prologue-value.h: Ditto.
6348         * ravenscar-thread.c: Ditto.
6349         * ravenscar-thread.h: Ditto.
6350         * sparc-ravenscar-thread.c: Ditto.
6351         * sparc-ravenscar-thread.h: Ditto.
6352         * tilegx-linux-tdep.c: Ditto.
6353         * unwind_stop_reasons.def: Ditto.
6354         * windows-nat.h: Ditto.
6355         * xtensa-linux-tdep.c: Ditto.
6356         * xtensa-xtregs.c: Ditto.
6357         * regformats/regdat.sh: Ditto.
6358         * regformats/regdef.h: Ditto.
6359
6360 2013-02-12  Pedro Alves  <palves@redhat.com>
6361
6362         * break-catch-sig.c: Update copyright years.
6363
6364 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
6365
6366         Add support for a destructor for ui_out data and use it to
6367         provide a ui_out destructor.
6368         * ui-out.h: Declare the new ui_out destructor.
6369         (ui_out_impl): Add a field for data destructor in ui_out_impl.
6370         * ui-out.c (default_data_destroy): Add a default data destructor
6371         which does nothing.
6372         (default_ui_out_impl): Set the new data_destroy field to
6373         default_data_destroy
6374         (uo_data_destroy): Local function which invokes the data
6375         destructor if present.
6376         (clear_table): Local function which clears the table data of a
6377         ui_out object.
6378         (ui_out_destroy): Public function which frees a ui_out object.
6379         (ui_out_table_end): Use the new clear_table function.
6380         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
6381         NULL.
6382         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
6383         to NULL.
6384
6385 2013-02-11  Doug Evans  <dje@google.com>
6386
6387         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
6388         (printf_decfloat): New function.  Broken out from ui_printf.
6389         Remove unnecessary code to shift the entire format string down.
6390         (printf_pointer): New function.
6391         (ui_printf): Code to print C strings, wide C strings, decfloats,
6392         and pointers moved to separate functions.
6393
6394 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
6395
6396         * valops.c (value_assign): Handling bitfield offset in
6397         `lval_internalvar_component' case.
6398
6399 2013-02-08  Doug Evans  <dje@google.com>
6400
6401         * common/format.c (parse_format_string): Fix whitespace.
6402
6403 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
6404
6405         * stack.c (return_command): Work around uninitialized variable
6406         warning.
6407
6408 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
6409
6410         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
6411         number of the registers from 36 to 34.
6412
6413 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6414
6415         * NEWS: Mention new AArch64 native and target support.
6416
6417 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6418
6419         * MAINTAINERS (Write After Approval): Add myself.
6420
6421 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
6422             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6423             Nigel Stephens  <nigel.stephens@arm.com>
6424             Yufeng Zhang  <yufeng.zhang@arm.com>
6425
6426         * aarch64-linux-nat.c: New file.
6427         * config/aarch64/linux.mh: New file.
6428         * configure.host: Add AArch64.
6429         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
6430
6431 2013-02-07  Doug Evans  <dje@google.com>
6432
6433         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
6434         disassemble command.
6435
6436 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6437
6438         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
6439         set_gdbarch_fetch_tls_load_module_address.
6440
6441 2013-02-06  David S. Miller  <davem@davemloft.net>
6442
6443         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
6444         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6445         * value.c (struct_return_convention): New function.
6446         (using_struct_return): Implement in terms of struct_return_convention.
6447         * value.h (struct_return_convention): Declare.
6448         * stack.c (return_command): Allow successful overriding of the return
6449         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6450
6451 2013-02-06  Tom Tromey  <tromey@redhat.com>
6452
6453         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
6454         outside of TRY_CATCH.
6455
6456 2013-02-06  Yao Qi  <yao@codesourcery.com>
6457
6458         * mi/mi-interp.c: Include "tracepoint.h".
6459         (mi_tsv_modified): Declare.
6460         (mi_tsv_created, mi_tsv_deleted): Update declaration.
6461         (mi_interpreter_init): Call observer_attach_tsv_modified.
6462         (mi_tsv_modified): New.
6463         (mi_tsv_created, mi_tsv_deleted): Update.
6464         * tracepoint.c (trace_variable_command): Call
6465         observer_notify_tsv_modified if the initial value of tsv is
6466         changed.
6467         (delete_trace_state_variable): Call
6468         observer_notify_tsv_deleted earlier.
6469         (trace_variable_command): Caller update.
6470         (create_tsv_from_upload): Likewise.
6471         * observer.sh: Declare "struct trace_state_variable".
6472
6473         * NEWS: Mention the new MI notification "=tsv-modified".
6474
6475 2013-02-05  Doug Evans  <dje@google.com>
6476
6477         * completer.c (location_completer): Fix typo in comment.
6478
6479 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6480
6481         * breakpoint.c (add_location_to_breakpoint): Insert the location with
6482         ADDRESS sorted.
6483
6484 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6485
6486         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
6487         Refactor if statement to avoid trailing || operator.
6488
6489 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
6490
6491         * NEWS: Add PowerPC FreeBSD as a new native configuration.
6492
6493 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
6494
6495         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
6496         * configure.host: Add powerpc*-*-freebsd* target.
6497         * configure.tgt: Add target info for powerpc*-*-freebsd*.
6498         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
6499         * config/powerpc/fbsd.mh: New file.
6500
6501 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
6502             Denys Vlasenko  <dvlasenk@redhat.com>
6503             Pedro Alves  <palves@redhat.com>
6504
6505         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
6506         (struct elf_internal_linux_prpsinfo): Forward declare.
6507         * gdbarch.h, gdbarch.c: Regenerate.
6508         * linux-tdep.c: Include `cli/cli-utils.h'.
6509         (linux_fill_prpsinfo): New function.
6510         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
6511         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
6512         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
6513         depending on gdbarch pointer bitness.
6514         * ppc-linux-tdep.c: Include elf-bfd.h.
6515         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
6516         on 32-bit.
6517
6518 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6519             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6520             Nigel Stephens  <nigel.stephens@arm.com>
6521             Yufeng Zhang  <yufeng.zhang@arm.com>
6522
6523         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
6524
6525 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6526             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6527             Nigel Stephens  <nigel.stephens@arm.com>
6528             Yufeng Zhang  <yufeng.zhang@arm.com>
6529
6530         * aarch64-newlib-tdep.c: New file.
6531         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
6532         aarch64*-*-elf.
6533         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
6534         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
6535         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
6536         * osabi.c (gdb_osabi_names): Add "Newlib".
6537
6538 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6539             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6540             Nigel Stephens  <nigel.stephens@arm.com>
6541             Yufeng Zhang  <yufeng.zhang@arm.com>
6542
6543         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
6544         (ALLDEPFILES): Add aarch64-linux-tdep.c.
6545         * aarch64-linux-tdep.c: New file.
6546         * aarch64-linux-tdep.h: New file.
6547         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
6548         * configure.tgt: Add aarch64-none-linux-gnu.
6549
6550 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
6551             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6552             Nigel Stephens  <nigel.stephens@arm.com>
6553             Yufeng Zhang  <yufeng.zhang@arm.com>
6554
6555         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
6556         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
6557         (ALLDEPFILES): Add aarch64-tdep.c.
6558         * aarch64-tdep.c: New file.
6559         * aarch64-tdep.h: New file.
6560         * configure.tgt: Add AArch64.
6561         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
6562         (aarch64-expedite): New definition.
6563         * features/aarch64-core.xml: New file.
6564         * features/aarch64-fpu.xml: New file.
6565         * features/aarch64-without-fpu.c: New file (generated).
6566         * features/aarch64-without-fpu.xml: New file.
6567         * features/aarch64.c: New file (generated).
6568         * features/aarch64.xml: New file.
6569         * regformats/aarch64-without-fpu.dat: New file (generated).
6570         * regformats/aarch64.dat: New file (generated).
6571
6572 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6573
6574         * contrib/expect-read1.c: New file.
6575         * contrib/expect-read1.sh: New file.
6576
6577 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6578
6579         * dwarf2read.c (file_file_name): New function with code from
6580         file_full_name.
6581         (file_full_name): Move most of the code to file_file_name.
6582         (macro_start_file): Rename variable full_name to file_name and use
6583         file_file_name for it.  Add comp_dir parameter to new_macro_table.
6584         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
6585         macro_source_file->filename access by macro_source_fullname call.
6586         * macroscope.c (_initialize_macroscope): Update the new_macro_table
6587         caller.
6588         * macrotab.c (struct macro_table): New field comp_dir.
6589         (macro_include): New variables link_fullname and source_fullname.
6590         Replace any macro_source_file->filename access by macro_source_fullname
6591         call.
6592         (macro_lookup_inclusion): Remove the partial filenames checking code.
6593         (check_for_redefinition): New variables source_fullname and
6594         found_key_fullname.  Replace any macro_source_file->filename access by
6595         macro_source_fullname call.
6596         (macro_undef): New variables source_fullname and key_fullname.  Replace
6597         any macro_source_file->filename access by macro_source_fullname call.
6598         (macro_lookup_definition): New variables retval and source_fullname.
6599         Replace any macro_source_file->filename access by macro_source_fullname
6600         call.
6601         (foreach_macro): New variable key_fullname.  Replace any
6602         macro_source_file->filename access by macro_source_fullname call.
6603         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
6604         macro_source_file->filename access by macro_source_fullname call.
6605         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
6606         (macro_source_fullname): New function.
6607         * macrotab.h (struct macro_source_file): Extent the filename field
6608         comment.
6609         (new_macro_table): New parameter comp_dir, add a comment for it.
6610         (macro_source_fullname): new declaration.
6611
6612 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6613
6614         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
6615         this_real_name to outer block.  Use it also for
6616         compare_filenames_for_search.
6617         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
6618         with dw2_get_real_path for file_matcher, considering also
6619         BASENAMES_MAY_DIFFER.
6620         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
6621
6622 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6623
6624         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
6625         to the file_matcher parameter.  Pass 0 to it.
6626         (dwarf2_create_include_psymtab): Copy also DIRNAME.
6627         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
6628         NULL psymtab_to_fullname result.
6629         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
6630         an expected filename instead.
6631         (expand_symtabs_matching_via_partial): Add basenames parameter to the
6632         file_matcher parameter.  Call also psymtab_to_fullname, after newly
6633         considering BASENAMES_MAY_DIFFER.
6634         * source.c (rewrite_source_path): Remove static.
6635         * source.h (rewrite_source_path): New declaration.
6636         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
6637         the expand_symtabs_matching field.  Comment it.
6638         * symtab.c (file_matches): New function comment.  Add parameter
6639         basenames, implement it.
6640         (search_symbols_file_matches): Add basenames parameter.  Update the
6641         file_matches caller.
6642         (search_symbols): Match FILES also against symtab_to_fullname.
6643         Optimize it for BASENAMES_MAY_DIFFER.
6644
6645 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6646
6647         * source.c (print_source_lines_base): Print for TUI also "fullname".
6648         * tui/tui-data.c (init_content_element): Change tui_locator_element
6649         field to full_name.
6650         * tui/tui-data.h (struct tui_locator_element): Likewise.
6651         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
6652         tui_update_locator_filename calls to tui_update_locator_fullname.
6653         Replace symtab->filename refererence by symtab_to_fullname call.
6654         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
6655         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
6656         field to full_name.  Replace symtab->filename refererence by
6657         symtab_to_fullname call.
6658         (tui_show_symtab_source): Rename parameter to fullname.  Change
6659         tui_locator_element field to full_name.
6660         * tui/tui-stack.c: Include source.h.
6661         (tui_set_locator_filename): Rename the declaration to ...
6662         (tui_set_locator_fullname): ... here.  Rename its parameter to
6663         fullname, updates its comment.
6664         (tui_set_locator_info): Rename its parameter to fullname.
6665         (tui_set_locator_filename): Rename the definition to ...
6666         (tui_set_locator_fullname): ... here.  Rename its parameter to
6667         fullname, updates its comment.  Change tui_locator_element field to
6668         full_name.
6669         (tui_set_locator_info): Rename its parameter to fullname.
6670         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
6671         (tui_update_locator_filename): Rename to ...
6672         (tui_update_locator_fullname): ... here. Rename callee to
6673         tui_set_locator_fullname.
6674         (tui_show_frame_info): Replace symtab->filename refererence by
6675         symtab_to_fullname call.
6676         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
6677         (tui_update_locator_fullname): ... here.
6678         * tui/tui-winsource.c (tui_display_main): Rename the callee to
6679         tui_update_locator_fullname.  Replace symtab->filename refererence by
6680         symtab_to_fullname call.
6681         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
6682         Rename the callee to tui_update_locator_fullname.
6683         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
6684
6685 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6686
6687         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
6688         by symtab_to_filename_for_display calls.
6689         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
6690         (clear_command): New variable sal_fullname, initialize it.  Replace
6691         compare_filenames_for_search by filename_cmp with sal_fullname.
6692         (say_where, update_static_tracepoint): Replace symtab->filename
6693         refererences by symtab_to_filename_for_display calls.
6694         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
6695         Likewise.
6696         * dwarf2read.c: Include source.h.
6697         (fixup_go_packaging): Replace symtab->filename refererences by
6698         symtab_to_filename_for_display calls.
6699         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
6700         Replace symtab->filename refererences by symtab_to_filename_for_display
6701         calls.
6702         (create_sals_line_offset, convert_linespec_to_sals): New variable
6703         fullname, initialize it, replace symtab->filename reference by the
6704         variable.
6705         * linux-fork.c: Include source.h.
6706         (info_checkpoints_command): Replace symtab->filename refererences by
6707         symtab_to_filename_for_display calls.
6708         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
6709         by symtab_to_filename_for_display calls.
6710         * mdebugread.c: Include source.h.
6711         (psymtab_to_symtab_1): Replace symtab->filename refererences by
6712         symtab_to_filename_for_display calls.
6713         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
6714         (mi_cmd_file_list_exec_source_files): Likewise.
6715         * printcmd.c: Include source.h.
6716         (build_address_symbolic): Replace symtab->filename refererences by
6717         symtab_to_filename_for_display calls.
6718         * psymtab.c (partial_map_symtabs_matching_filename)
6719         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
6720         with psymtab_to_fullname.
6721         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
6722         by symtab_to_filename_for_display calls.
6723         (stpy_get_filename): New variable filename, initialize it, use instead
6724         of symtab->filename refererences.
6725         (salpy_str): Make variable filename const char *.  Replace
6726         symtab->filename refererences by symtab_to_filename_for_display calls.
6727         * skip.c: Include source.h and filenames.h.
6728         (skip_file_command): Remove const from the symtab variable.  Replace
6729         symtab->filename refererences by symtab_to_fullname call.
6730         (function_name_is_marked_for_skip): New variables searched_for_fullname
6731         and fullname.  Use them to search also with symtab's fullname.
6732         * source.c (find_source_lines): Replace symtab->filename refererences
6733         by symtab_to_filename_for_display calls.
6734         (print_source_lines_base): New variable filename, use it instead of
6735         symtab->filename.  Replace symtab->filename refererences by
6736         symtab_to_filename_for_display calls.
6737         (line_info, forward_search_command): Replace symtab->filename
6738         refererences by symtab_to_filename_for_display calls.
6739         (reverse_search_command): Replace symtab->filename refererences by
6740         symtab_to_filename_for_display calls.  New variable filename for it.
6741         * stack.c (frame_info): Likewise.
6742         * symmisc.c: Include source.h.
6743         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
6744         (maintenance_info_symtabs): Replace symtab->filename refererences by
6745         symtab_to_filename_for_display calls.
6746         * symtab.c (iterate_over_some_symtabs): Call
6747         compare_filenames_for_search also with symtab_to_fullname.
6748         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
6749         symtab->filename refererences by symtab_to_filename_for_display calls.
6750         (find_line_symtab): Replace symtab->filename refererences by
6751         symtab_to_filename_for_display calls.
6752         (file_matches): Replace filename_cmp by compare_filenames_for_search.
6753         (print_symbol_info): Make the last parameter const char *.  New
6754         variable s_filename.  Use it in the function.
6755         (symtab_symbol_info): Make the last_filename variable const char *.
6756         Replace symtab->filename refererences by symtab_to_filename_for_display
6757         calls.
6758         (rbreak_command): New variable fullname.  Use it.  Replace
6759         symtab->filename refererence by symtab_to_filename_for_display call.
6760         * tracepoint.c (set_traceframe_context, trace_find_line_command)
6761         (print_one_static_tracepoint_marker): Replace symtab->filename
6762         refererences by symtab_to_filename_for_display calls.
6763         * tui/tui-source.c (tui_set_source_content): New variables filename and
6764         s_filename.  Replace symtab->filename refererences by this variable.
6765         Replace other symtab->filename refererences by
6766         symtab_to_filename_for_display calls.
6767
6768 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
6769             Jan Kratochvil  <jan.kratochvil@redhat.com>
6770
6771         Add a new variable that controls a way in which filenames are
6772         displayed.
6773         * NEWS (set filename-display): New entry.
6774         * source.c (filename_display_basename, filename_display_relative)
6775         (filename_display_absolute, filename_display_kind_names)
6776         (filename_display_string, show_filename_display_string)
6777         (symtab_to_filename_for_display): New.
6778         (_initialize_source): Added initialization of 'filename-display'
6779         variable.
6780         * source.h (symtab_to_filename_for_display): Added declaration.
6781         * stack.c (print_frame): Added new variable and calling of a new
6782         function and condition with this variable. Changed third argument of
6783         calling of a function.
6784
6785 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6786
6787         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
6788         Rename field reference filename to fullname.
6789         * tui/tui-data.h (struct tui_source_info): Rename field filename to
6790         fullname.  New comment for it.
6791         * tui/tui-source.c (tui_set_source_content): Rename field reference
6792         filename to fullname.  Initialize field by symtab_to_fullname now.
6793         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
6794         reference filename to fullname.  Use symtab_to_fullname during
6795         comparison.
6796
6797 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6798
6799         Code cleanup.
6800         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
6801         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
6802         filename to fullname.  Rename variable this_name to this_fullname.
6803         Lowercase FILENAME_CMP call.
6804         (dw2_find_symbol_file): New comment for the returned string.
6805         (dwarf2_gdb_index_functions): Rename the function to
6806         dw2_expand_symtabs_with_fullname.
6807         * psymtab.c (read_psymtabs_with_filename): Rename to ...
6808         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
6809         fullname.
6810         (psym_functions): Rename the function to read_psymtabs_with_fullname.
6811         * symfile.h (struct quick_symbol_functions): Rename field
6812         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
6813         parameter filename to fullname.  Document returned string meaning for
6814         find_symbol_file.
6815         * symtab.c (find_line_symtab): Rename the called function to
6816         expand_symtabs_with_fullname.
6817
6818 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6819
6820         Code cleanup.
6821         * breakpoint.c (clear_command): Remove variable is_abs, unify the
6822         call of filename_cmp with compare_filenames_for_search.
6823         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
6824         is_abs, unify the call of FILENAME_CMP with
6825         compare_filenames_for_search.  New gdb_asserts for real_path and name.
6826         Unify the call of compare_filenames_for_search with FILENAME_CMP.
6827         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6828         * symfile.h (struct quick_symbol_functions): Extend the comment for
6829         map_symtabs_matching_filename.
6830         * symtab.c (compare_filenames_for_search): Remove the function comment
6831         relative path requirement.  Handle absolute filenames, with a comment.
6832         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
6833         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
6834         real_path and name.  Unify the call of compare_filenames_for_search
6835         with FILENAME_CMP.
6836         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
6837
6838 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6839
6840         Code cleanup.
6841         * breakpoint.c (print_breakpoint_location): Replace bp_location field
6842         source_file references by symtab field references.  Remove variables
6843         sal and fullname.
6844         (momentary_breakpoint_from_master, add_location_to_breakpoint):
6845         (clear_command, say_where): Replace bp_location field source_file
6846         references by symtab field references.
6847         (bp_location_dtor): Remove the source_file reference.
6848         (update_static_tracepoint): Replace bp_location field source_file
6849         references by symtab field references.
6850         (breakpoint_free_objfile): New function.
6851         * breakpoint.h (struct bp_location): Extend the comment for line_number.
6852         Replace the field source_file by field symtab, extend its comment.
6853         (breakpoint_free_objfile): New declaration.
6854         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
6855         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
6856         field source_file references by symtab field references.
6857
6858 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6859
6860         Replace xfullpath calls by gdb_realpath calls.
6861         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
6862         function comment.
6863         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
6864         Remove it from the iterate_over_some_symtabs call.
6865         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
6866         Remove it from the dw2_map_expand_apply calls, remove a block handling
6867         it.
6868         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
6869         Remove it from the iterate_over_some_symtabs call.
6870         (partial_map_symtabs_matching_filename): Remove parameter full_path.
6871         Remove it from the partial_map_expand_apply calls, remove a block
6872         handling it.  Drop gdb_realpath call and cleanups from the real_path
6873         handling.
6874         * source.c (openp): Drop the comment part about xfullpath.  Replace
6875         xfullpath calls by gdb_realpath calls.
6876         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
6877         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
6878         from method map_symtabs_matching_filename and its comment.
6879         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
6880         gdb_realpath call.
6881         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
6882         remove it also from the function comment, remove a block handling it.
6883         Drop gdb_realpath call and cleanups from the real_path handling.
6884         (iterate_over_symtabs): Drop variable full_path and its use.
6885         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
6886         * utils.c (xfullpath): Remove.
6887         * utils.h (xfullpath): Remove.
6888
6889 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
6890
6891         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6892         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6893         (ALLDEPFILES): Add ppc64-tdep.c.
6894         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6895         ppc64-tdep.o to gdb_target_obs.
6896         * ppc64-tdep.h: New file.
6897         * ppc64-tdep.c: New file.
6898         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6899         ppc-linux-tdep.c to here.
6900         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6901         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6902         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6903         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6904         from ppc-linux-tdep.c to here.
6905         (ppc64_convert_from_func_ptr_addr): Rename from
6906         ppc64_linux_convert_from_func_ptr_addr to
6907         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6908         here.
6909         * rs6000-tdep.c:
6910         (read_insn): Move from ppc-linux-tdep.c to here.
6911         (insns_match_pattern, insn_d_field, insn_ds_field): Move
6912         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6913         * ppc-linux-tdep.c: Include ppc64-tdep.h.
6914         Removed above functions.
6915         (ppc_linux_init_abi): Adjust.
6916
6917 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
6918
6919         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6920
6921 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
6922
6923         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6924
6925 2013-02-01  Pedro Alves  <palves@redhat.com>
6926
6927         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6928         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6929
6930 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6931
6932         * elfread.c (elf_symfile_read): Limit separate debug info additions to
6933         files with no separate debug info.
6934         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6935         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6936         only for files with no separate debug info.
6937
6938 2013-01-31  Tom Tromey  <tromey@redhat.com>
6939
6940         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6941         change type.
6942         (struct jit_program_space_data): Rename from jit_inferior_data.
6943         Update comments.
6944         (get_jit_program_space_data): Rename from get_jit_inferior_data.
6945         Change return type.  Attach data to program space.
6946         (jit_program_space_data_cleanup): Rename from
6947         jit_inferior_data_cleanup; change argument type.
6948         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6949         change type.
6950         (jit_register_code): Update.
6951         (jit_update_inferior_cache): Remove.
6952         (jit_breakpoint_deleted): Get jit data from the location's program
6953         space.
6954         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6955         'ps_data', change type.
6956         (jit_inferior_init, jit_breakpoint_re_set_internal)
6957         (jit_event_handler): Update.
6958         (free_objfile_data): Get data from objfile's program space.
6959         (_initialize_jit): Update.
6960
6961 2013-01-31  Tom Tromey  <tromey@redhat.com>
6962
6963         PR gdb/13987:
6964         * jit.c (struct jit_inferior_data) <cached_code_address,
6965         jit_breakpoint>: New fields.
6966         (jit_breakpoint_re_set_internal): Fix logging.  Only create
6967         breakpoint if cached address has changed.
6968         (jit_update_inferior_cache, jit_breakpoint_deleted): New
6969         functions.
6970         (_initialize_jit): Register breakpoint deleted observer.
6971
6972 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6973
6974         * infrun.c (handle_syscall_event): Remove unused gdbarch.
6975         (save_infcall_suspend_state): Ifdef out unused inf.
6976         (restore_infcall_suspend_state): Ifdef out unused inf.
6977         * jit.c (jit_register_code): Remove unused i, b, inf_data.
6978         (jit_frame_sniffer): Remove unused inf_data.
6979
6980 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6981
6982         * c-exp.y (classify_inner_name): Remove unused type.
6983         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6984         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6985         need_escape.
6986         (c_get_string): Remove unused kind.
6987         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6988
6989 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
6990
6991         * charset.c (intermediate_encoding): Remove unused i.
6992         * completer.c (signal_completer): Remove unused i.
6993         * continuations.c (discard_my_continuations_1): Remove unused
6994         continuation_ptr.
6995         * corelow.c (core_close): Remove unuseD name.
6996         (get_core_siginfo): Remove unused pid.
6997         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6998         i, cps.
6999         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
7000         (loclist_describe_location): Remove unused first.
7001         * event-top.c (command_line_handler): Remove unused got_eof.
7002         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
7003         (resize_section_table): Remove unused old_value.
7004         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
7005         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
7006         * i386-tdep.c (i386_process_record): Remove unused rex.
7007         * infcmd.c (get_return_value): Remove unused uiout.
7008         * jv-lang.c (type_from_class): Remove unused is_array.
7009         * jv-valprint.c (java_val_print): Remove unused i.
7010         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
7011         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
7012         * m2-typeprint.c (m2_print_type): Remove unused code.
7013         * macroexp.c (get_character_constant): Remove unused body_start.
7014         (macro_stringify): Remove unused result.
7015         * objc-lang.c (find_methods): Remove unused gdbarch.
7016         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
7017         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
7018         * stack.c (print_frame_args): Remove unused summary.
7019         * thread.c (thread_apply_command): Remove unused p.
7020         * valarith.c (value_x_unop): Remove unused mangle_ptr.
7021         * valops.c (search_struct_method): Remove unused skip.
7022         * valprint.c (generic_val_print): Remove unused byte_order.
7023         * varobj.c (varobj_update): Remove unused changed.
7024         * cli/cli-cmds.c (complete_command): Remove unused next_item.
7025         (alias_command): Remove unused c.
7026         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
7027         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
7028         format.
7029         (mi_cmd_data_write_memory): Remove unused word_format.
7030         (mi_cmd_data_write_memory_bytes): Remove unused r.
7031         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
7032         p_start, p_end.
7033         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
7034         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
7035         line_width.
7036
7037 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
7038
7039         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
7040         * symtab.c (iterate_over_symtabs): Remove unused s.
7041         (find_pc_sect_symtab): Remove unused pspAce.
7042         (find_pc_sect_line): Remove unused alt_symtab.
7043         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
7044         (completion_list_add_name): Remove unused newsize.
7045
7046 2013-01-31  Tom Tromey  <tromey@redhat.com>
7047
7048         PR c++/14998:
7049         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
7050         TYPE_CODE_FUNC.
7051
7052 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
7053
7054         * target.c (target_read_string): Remove unused origlen.
7055
7056 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
7057
7058         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
7059         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
7060         * ax-general.c (ax_print): Remove unused is_float.
7061         * blockframe.c (block_innermost_frame): Remove unused start, end.
7062         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
7063
7064 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
7065
7066         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
7067         (svr4_read_so_list): Remove unused lmo.
7068         * solib-target.c (solib_target_relocate_section_addresses): Remove
7069         unused flags.
7070
7071 2013-01-30  Tom Tromey  <tromey@redhat.com>
7072
7073         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
7074
7075 2013-01-30  Tom Tromey  <tromey@redhat.com>
7076
7077         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
7078         * utils.c (gnu_debuglink_crc32): Remove.
7079         * utils.h (gnu_debuglink_crc32): Don't declare.
7080
7081 2013-01-30  Tom Tromey  <tromey@redhat.com>
7082
7083         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
7084         (read_structure_type, read_enumeration_type): Remove cast.
7085
7086 2013-01-30  Tom Tromey  <tromey@redhat.com>
7087
7088         * dwarf2read.c (read_namespace_type): Remove cast.
7089         (read_typedef): Likewise.
7090
7091 2013-01-29  Tom Tromey  <tromey@redhat.com>
7092
7093         * dwarf2read.c (free_dwo_file): Remove assert.
7094
7095 2013-01-29  Tom Tromey  <tromey@redhat.com>
7096
7097         * value.c (deprecated_set_value_modifiable): Remove.
7098         * value.h (deprecated_set_value_modifiable): Remove.
7099
7100 2013-01-28  Doug Evans  <dje@google.com>
7101
7102         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
7103         to addresses from dwo files.
7104
7105 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
7106
7107         * valops.c (find_overload_match): Remove unused argument 'lax'.
7108         * value.h: Remove unused argument 'lax' from the declaration of
7109         find_overload_match.
7110         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
7111         to find_overload_match.
7112         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
7113         argument to find_overload_match.
7114
7115 2013-01-25  Tom Tromey  <tromey@redhat.com>
7116
7117         * dwarf2read.c (processing_has_namespace_info): Remove.
7118         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
7119         (process_die, read_func_scope, dwarf2_start_symtab)
7120         (new_symbol_full): Update.
7121
7122 2013-01-25  Tom Tromey  <tromey@redhat.com>
7123
7124         * cp-namespace.c (cp_set_block_scope): Remove.
7125         * cp-support.h (cp_set_block_scope): Remove.
7126         * dbxread.c: Include block.h.
7127         (cp_set_block_scope): New function.
7128         (process_one_symbol): Update.
7129         * dwarf2read.c (read_func_scope): Use block_set_scope.
7130
7131 2013-01-25  Pedro Alves  <palves@redhat.com>
7132
7133         * remote.c (add_current_inferior_and_thread): Tweak comment.
7134
7135 2013-01-25  Tom Tromey  <tromey@redhat.com>
7136
7137         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7138         (cp_add_using_directive): Add 'copy_names' argument.
7139         * cp-support.h (cp_add_using_directive): Update.
7140         (struct using_direct) <import_src, import_dest, alias,
7141         declaration>: Now const.
7142         * dwarf2read.c (read_import_statement): Use obconcat.
7143         Don't copy names passed to cp_add_using_directive.
7144
7145 2013-01-25  Tom Tromey  <tromey@redhat.com>
7146
7147         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
7148
7149 2013-01-25  Pedro Alves  <palves@redhat.com>
7150
7151         * remote.c (stop_reply_extract_thread): New.
7152         (add_current_inferior_and_thread): New parameter 'wait_status'.
7153         Handle it.
7154         (remote_start_remote): Pass wait status to
7155         add_current_inferior_and_thread.
7156         (extended_remote_run): Update comment.
7157         (extended_remote_create_inferior_1): Pass wait status to
7158         add_current_inferior_and_thread.
7159
7160 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
7161             Ulrich Weigand  <uweigand@de.ibm.com>
7162
7163         * valarith.c (value_vector_widen): New function for replicating a
7164         scalar into a vector.
7165         (value_binop): Use value_vector_widen to widen scalar to vector
7166         rather than casting, this better matches gcc C behaviour.
7167         * valops.c (value_casst): Update logic for casting between vector
7168         types, and for casting from scalar to vector, try to match gcc C
7169         behaviour.
7170         * value.h (value_vector_widen): Declare.
7171         * opencl-lang.c (opencl_value_cast): New opencl specific casting
7172         function, handle special case for casting scalar to vector.
7173         (opencl_relop): Use opencl_value_cast.
7174         (evaluate_subexp_opencl): Use opencl_value_cast instead of
7175         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
7176         in order to use opencl_value_cast.
7177
7178 2013-01-25  Yao Qi  <yao@codesourcery.com>
7179
7180         * event-loop.c: Include "queue.h".
7181         (gdb_event_p): New typedef.
7182         (DECLARE_QUEUE_P): Use.
7183         (DEFINE_QUEUE_P): Use.
7184         (async_queue_event): Remove.
7185         (gdb_event_xfree): New.
7186         (initialize_event_loop): New.
7187         (process_event): Use QUEUE macros.
7188         (event_queue): Remove.
7189         (gdb_wait_for_event): Caller update.
7190         (check_async_event_handlers): Likewise.
7191         (poll_timers): Likewise.
7192         * event-loop.h (initialize_event_loop): Declare.
7193         * event-loop.c (gdb_event_xfree): New.
7194         * top.c (gdb_init): Call initialize_event_loop.
7195
7196 2013-01-25  Yao Qi  <yao@codesourcery.com>
7197
7198         * event-loop.c (async_queue_event): Remove one parameter
7199         'position'.  Remove code handling 'position' == TAIL.
7200         (gdb_wait_for_event): Caller update.
7201         (check_async_event_handlers): Caller update.
7202         (poll_timers): Caller update.
7203         * event-loop.h (enum queue_position): Remove.
7204
7205 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
7206
7207         * MAINTAINERS: Update my email.
7208
7209 2013-01-25  Yao Qi  <yao@codesourcery.com>
7210
7211         * main.c (print_gdb_help): Remove "--epoch" from the help
7212         message.
7213
7214 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
7215
7216         * symtab.c (skip_prologue_using_sal): Consider a file
7217         change the same as an increased line number
7218
7219 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7220
7221         * MAINTAINERS (Write After Approval): Add myself to the list.
7222
7223 2013-01-24  Tom Tromey  <tromey@redhat.com>
7224
7225         * ada-lang.h (ada_decode_symbol): Make return type const.
7226         * ada-lang.c (ada_decode_symbol): Likewise.
7227
7228 2013-01-23  Doug Evans  <dje@google.com>
7229
7230         * linespec.c (find_linespec_symbols): Make static.
7231
7232 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7233
7234         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
7235         type on float conversion for complex type.
7236
7237 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
7238
7239         Add a new class gdb.Architecture which exposes GDB's
7240         internal representation of architecture via GDB Python API.
7241         * Makefile.in: Add entries corresponding to the new file
7242         python/py-arch.c.
7243         * NEWS (Python Scripting): Add entries for the new class
7244         gdb.Architecture and the new method gdb.Frame.architecture.
7245         * python/py-arch.c: Implement gdb.Architecture class.
7246         * python/py-frame.c (frapy_arch): Implement the method
7247         gdb.Frame.architecture().
7248         (frame_object_methods): Add 'architecture' to the method table.
7249         * python/python-internal.h: Add declarations of new utility
7250         functions.
7251         * python/python.c (_initialize_python): Initialize
7252         gdb.Architecture class.
7253
7254 2013-01-23  Doug Evans  <dje@google.com>
7255
7256         Work around binutils/15021.
7257         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
7258         type_unit_group out of union s.  All uses updated.
7259         (read_index_from_section): Watch for index version 8.
7260         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
7261         an imported symtab.
7262         (write_psymtabs_to_index): Increment version number to 8.
7263
7264 2013-01-22  Pedro Alves  <palves@redhat.com>
7265
7266         * annotate.c (breakpoint_changed): Skip if breakpoint is not
7267         user-visible.
7268
7269 2013-01-22  Pedro Alves  <palves@redhat.com>
7270
7271         * annotate.c (annotate_breakpoints_changed): Rename to ...
7272         (annotate_breakpoints_invalid): ... this.  Make static.
7273         (breakpoint_changed): Adjust.
7274         (_initialize_annotate): Always install the observers.  Install a
7275         "breakpoint_created" observer.
7276         * annotate.h (annotate_breakpoints_changed): Delete declaration.
7277         * breakpoint.c (set_breakpoint_condition)
7278         (breakpoint_set_commands, do_map_commands_command)
7279         (init_raw_breakpoint, clear_command, set_ignore_count)
7280         (enable_breakpoint_disp): No longer call
7281         annotate_breakpoints_changed.
7282
7283 2013-01-22  Pedro Alves  <palves@redhat.com>
7284
7285         * annotate.c: Include "inferior.h".
7286         (frames_invalid_emitted)
7287         (breakpoints_invalid_emitted): New globals.
7288         (async_background_execution_p): New function.
7289         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
7290         emitting the annotation if it has already been emitted.
7291         (annotate_display_prompt): New function.
7292         * annotate.h (annotate_display_prompt): New declaration.
7293         * event-top.c: Include annotate.h.
7294         (display_gdb_prompt): Call annotate_display_prompt.
7295
7296 2013-01-22  Pedro Alves  <palves@redhat.com>
7297
7298         * annotate.c (ignore_count_changed): Delete.
7299         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
7300         (annotate_ignore_count_change): Delete.
7301         (annotate_stopped): Don't emit a delayed breakpoints-changed
7302         annotation.
7303         * annotate.h (annotate_ignore_count_change): Delete.
7304         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
7305         annotate_ignore_count_change.
7306
7307 2013-01-22  Tom Tromey  <tromey@redhat.com>
7308
7309         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
7310         require_rvalue for a register location.
7311
7312 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
7313
7314         * breakpoint.c (print_one_breakpoint_location): Add MI
7315         field 'thread-groups' when printing a breakpoint.
7316         (output_thread_groups): New function.
7317
7318 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
7319
7320         * python/lib/gdb/commands/explore.py
7321         (CompoundExplorer.explore_expr): Correct the name of a method
7322         being invoked.
7323         (ExploreTypeCommand.invoke): Add a missing 'return'.
7324
7325 2013-01-21  Tom Tromey  <tromey@redhat.com>
7326
7327         * gdb_obstack.h (obconcat): Move declaration here, from...
7328         * symfile.h (obconcat): ... here.
7329         * gdb_obstack.c: New file.
7330         (obconcat): Move from...
7331         * symfile.c (obconcat): ... here.
7332         * Makefile.in (SFILES): Add gdb_obstack.c.
7333         (COMMON_OBS): Add gdb_obstack.o.
7334
7335 2013-01-21  Tom Tromey  <tromey@redhat.com>
7336
7337         * symfile.h (obsavestring): Don't declare.
7338         * symfile.c (obsavestring): Remove.
7339         * ada-exp.y: Use obstack_copy0, not obsavestring.
7340         * ada-lang.c: Use obstack_copy0, not obsavestring.
7341         * coffread.c: Use obstack_copy0, not obsavestring.
7342         * cp-namespace.c: Use obstack_copy0, not obsavestring.
7343         * dbxread.c: Use obstack_copy0, not obsavestring.
7344         * dwarf2read.c: Use obstack_copy0, not obsavestring.
7345         * jit.c: Use obstack_copy0, not obsavestring.
7346         * mdebugread.c: Use obstack_copy0, not obsavestring.
7347         * psymtab.c: Use obstack_copy0, not obsavestring.
7348         * stabsread.c: Use obstack_copy0, not obsavestring.
7349         * xcoffread.c: Use obstack_copy0, not obsavestring.
7350
7351 2013-01-21  Tom Tromey  <tromey@redhat.com>
7352
7353         * dwarf2read.c (fixup_go_packaging): Save package name
7354         on objfile obstack.
7355         * gdbtypes.c (init_type): Don't copy name.
7356
7357 2013-01-21  Tom Tromey  <tromey@redhat.com>
7358
7359         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
7360         const.
7361         (struct attribute) <u.str>: Now const.
7362         (struct fnfieldlist) <name>: Now const.
7363         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
7364         (partial_die_parent_scope): Make return type const.
7365         (partial_die_full_name, add_partial_symbol): Update.
7366         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
7367         'name' const.
7368         (find_file_and_directory): Make 'name' and 'comp_dir' const.
7369         (read_file_scope, read_func_scope, dwarf2_add_field)
7370         (dwarf2_add_member_fn, read_structure_type)
7371         (process_enumeration_scope, read_array_type, read_module_type)
7372         (read_base_type, read_subrange_type): Update.
7373         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
7374         (new_symbol_full, guess_full_die_structure_name): Update.
7375         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
7376         (dwarf2_name): Return const type.
7377         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
7378         const.
7379
7380 2013-01-21  Tom Tromey  <tromey@redhat.com>
7381
7382         * gdbtypes.c (init_type): Make 'name' const.
7383         * gdbtypes.h (init_type): Update.
7384
7385 2013-01-21  Tom Tromey  <tromey@redhat.com>
7386
7387         * buildsym.c (patch_subfile_names): Use set_last_source_file.
7388         (start_symtab): Make 'name' and 'dirname' const.  Use
7389         set_last_source_file.
7390         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
7391         (last_source_file): Define.  Now static.
7392         (set_last_source_file, get_last_source_file): New functions.
7393         * buildsym.h (last_source_file): Don't declare.
7394         (start_symtab): Update.
7395         (set_last_source_file, get_last_source_file): Declare.
7396         * coffread.c (complete_symtab): Use set_last_source_file.
7397         (coff_end_symtab): Likewise.
7398         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
7399         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
7400         set_last_source_file.
7401         (process_one_symbol): Use get_last_source_file.
7402         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
7403         (psymtab_to_symtab_1): Use get_last_source_file.
7404         * xcoffread.c (process_linenos): Use get_last_source_file.
7405         (complete_symtab): Use set_last_source_file.
7406         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
7407         (scan_xcoff_symtab): Use set_last_source_file.
7408
7409 2013-01-21  Tom Tromey  <tromey@redhat.com>
7410
7411         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
7412         (symbol_set_names): Remove casts.  Handle field const-ness.
7413
7414 2013-01-21  Tom Tromey  <tromey@redhat.com>
7415
7416         * dwarf2read.c (new_symbol_full): Remove cast.
7417         * symtab.c (symbol_set_demangled_name): Make 'name' const.
7418         * symtab.h (symbol_set_demangled_name): Update.
7419
7420 2013-01-21  Tom Tromey  <tromey@redhat.com>
7421
7422         * main.c (captured_main): Call bfd_init.
7423
7424 2013-01-21  Tom Tromey  <tromey@redhat.com>
7425
7426         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
7427         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
7428         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
7429         * NEWS: Update.
7430
7431 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7432
7433         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
7434
7435 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7436
7437         Fix gdb.fortran/common-block.exp crash in PIE mode.
7438         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
7439         LOC_COMMON_BLOCK.
7440         * f-valprint.c (info_common_command_for_block): Expect
7441         LOC_COMMON_BLOCK in gdb_assert.
7442         * symtab.h (struct general_symbol_info): Update comment for the
7443         common_block member.
7444         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
7445         (enum address_class): New member LOC_COMMON_BLOCK.
7446
7447 2013-01-18  David Blaikie  <dblaikie@gmail.com>
7448
7449         * MAINTAINERS (Write After Approval): Add "David Blaikie".
7450
7451 2013-01-18  Tom Tromey  <tromey@redhat.com>
7452
7453         PR c++/14999:
7454         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
7455         Call require_rvalue.
7456
7457 2013-01-18  Yao Qi  <yao@codesourcery.com>
7458
7459         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
7460         (dbx_read_symtab): New declaration.
7461         (dbx_psymtab_to_symtab): Delete.
7462         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
7463         Rename parameter PST to SELF.  Exchanged two parameters.
7464         (start_psymtab): Caller update.
7465         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
7466         (dwarf2_read_symtab): New declaration.
7467         (dwarf2_psymtab_to_symtab): Delete.
7468         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
7469         Rename parameter PST to SELF.  Exchanged two parameters.
7470         (create_partial_symtab): Caller update.
7471         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
7472         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
7473         Rename parameter PST to SELF.  Exchanged two parameters.
7474         (parse_partial_symbols, new_psymtab): Caller update.
7475         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
7476         two parameters.
7477         * psymtab.c (psymtab_to_symtab): Caller update.
7478         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
7479         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
7480         Rename parameter PST to SELF.  Exchanged two parameters.
7481         (xcoff_start_psymtab): Caller update.
7482
7483 2013-01-18  Yao Qi  <yao@codesourcery.com>
7484
7485         * infrun.c (proceed): Rename local variable 'oneproc' to
7486         'force_step'.
7487
7488 2013-01-17  Doug Evans  <dje@google.com>
7489
7490         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
7491         (dw2_build_type_unit_groups): Delete.  All uses updated.
7492
7493         * symtab.h (struct symbol_search): Add comment.
7494
7495 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7496
7497         * symtab.c (compare_filenames_for_search): New comment for
7498         HAS_DRIVE_SPEC.
7499
7500 2013-01-17  Tom Tromey  <tromey@redhat.com>
7501
7502         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
7503
7504 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7505
7506         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
7507         initialize it by existing make_cleanup.  Call new do_cleanups.
7508
7509 2013-01-17  Tom Tromey  <tromey@redhat.com>
7510
7511         * cp-abi.c (cp_abi_completer): New function.
7512         (_initialize_cp_abi): Set completer for "set cp-abi".
7513
7514 2013-01-17  Tom Tromey  <tromey@redhat.com>
7515
7516         * mem-break.c: Remove obsolete comment.
7517         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
7518
7519 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
7520
7521         * jit.c (jit_reader_load_command): Interpret the jit reader name
7522         as an absolute path if it begins with a forward slash.
7523
7524 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
7525
7526         PR gdb/14550
7527
7528         * jit.c (finalize_symtab): Ensure that only the global block has a
7529         NULL superblock.
7530
7531 2013-01-17  Pedro Alves  <palves@redhat.com>
7532
7533         * acinclude.m4: Include ../config/plugins.m4,
7534         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
7535         * Makefile.in (aclocal_m4_deps): Update.
7536         * aclocal.m4: Renegerate.
7537
7538 2013-01-16  Doug Evans  <dje@google.com>
7539
7540         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
7541
7542 2013-01-16  Pedro Alves  <palves@redhat.com>
7543             Tom Tromey  <tromey@redhat.com>
7544
7545         PR cli/7221:
7546         * NEWS: Add "catch signal".
7547         * breakpoint.c (base_breakpoint_ops): No longer static.
7548         (bpstat_explains_signal): New function.
7549         (init_catchpoint): No longer static.
7550         (base_breakpoint_explains_signal): New function.
7551         (base_breakpoint_ops): Initialize new field.
7552         * breakpoint.h (enum bpstat_signal_value): New.
7553         (struct breakpoint_ops) <explains_signal>: New field.
7554         (bpstat_explains_signal): Remove macro, declare as function.
7555         (base_breakpoint_ops, init_catchpoint): Declare.
7556         * break-catch-sig.c: New file.
7557         * inferior.h (signal_catch_update): Declare.
7558         * infrun.c (signal_catch): New global.
7559         (handle_syscall_event): Update for change to
7560         bpstat_explains_signal.
7561         (handle_inferior_event): Likewise.  Always handle random signals
7562         via bpstats.
7563         (signal_cache_update): Check signal_catch.
7564         (signal_catch_update): New function.
7565         (_initialize_infrun): Initialize signal_catch.
7566         * Makefile.in (SFILES): Add break-catch-sig.c.
7567         (COMMON_OBS): Add break-catch-sig.o.
7568
7569 2013-01-16  Tom Tromey  <tromey@redhat.com>
7570
7571         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
7572         (print_one_catch_solib, print_one_catch_syscall)
7573         (print_one_catch_exec, print_one_exception_catchpoint): Emit
7574         "catch-type".
7575
7576 2013-01-16  Yao Qi  <yao@codesourcery.com>
7577
7578         * printcmd.c (current_display_number): Make it static.
7579
7580 2013-01-16  Yao Qi  <yao@codesourcery.com>
7581
7582         * infcmd.c (step_once): Don't check '!single_inst' as it was
7583         checked before.
7584
7585 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7586
7587         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
7588
7589 2013-01-14  Tom Tromey  <tromey@redhat.com>
7590
7591         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
7592         set command.
7593         * command.h (add_setshow_string_noescape_cmd): Update.
7594         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
7595         (complete_set_gnutarget): New function.
7596         (_initialize_core): Set the "set gnutarget" completer.
7597
7598 2013-01-14  Tom Tromey  <tromey@redhat.com>
7599
7600         PR symtab/14442:
7601         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
7602         (c_type_print_modifier): Likewise.
7603         * dwarf2read.c (read_tag_restrict_type): New function.
7604         (read_type_die_1): Handle DW_TAG_restrict_type.
7605         * gdbtypes.c (make_restrict_type): New function.
7606         (recursive_dump_type): Handle TYPE_RESTRICT.
7607         * gdbtypes.h (enum type_flag_values): Renumber.
7608         (enum type_instance_flag_value): Add
7609         TYPE_INSTANCE_FLAG_RESTRICT.
7610         (TYPE_RESTRICT): New macro.
7611         (make_restrict_type): Declare.
7612
7613 2013-01-14  Tom Tromey  <tromey@redhat.com>
7614
7615         PR symtab/14931:
7616         * psymtab.c (struct psymtab_state): New.
7617         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
7618         functions.
7619         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
7620         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
7621
7622 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
7623             Pedro Alves  <palves@redhat.com>
7624
7625         PR remote/14786
7626
7627         * remote.c (remote_threads_info): Make a copy of the reply from
7628         qfThreadInfo and use that instead of rs->buf.
7629
7630 2013-01-14  Yao Qi  <yao@codesourcery.com>
7631
7632         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
7633         (dbx_psymtab_to_symtab): Likewise.
7634         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
7635         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
7636         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
7637
7638 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7639
7640         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
7641         make_cleanup_restore_current_language.  Call set_language.  Move
7642         OLD_CHAIN and INNER_CHAIN cleanups.
7643         * utils.c (do_restore_current_language)
7644         (make_cleanup_restore_current_language): New functions.
7645         * utils.h (make_cleanup_restore_current_language): New declaration.
7646
7647 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7648
7649         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
7650         non-existing files.
7651
7652         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
7653         non-existing files if FILENAME is already absolute.
7654
7655 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7656
7657         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
7658         fputs_filtered.  Append trailing newline.
7659
7660 2013-01-11  Yao Qi  <yao@codesourcery.com>
7661             Stan Shebs  <stan@codesourcery.com>
7662
7663         * psymtab.c (init_psymbol_list): Clarify the comment.
7664
7665 2013-01-11  Yao Qi  <yao@codesourcery.com>
7666
7667         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
7668         (update_dprintf_command_list): Assert that 'printf_line' is
7669         non-null.  Remove condition check.
7670
7671 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7672
7673         Code cleanup.
7674         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
7675         type const char *.
7676         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
7677         const char *.
7678         * tui/tui-source.h (tui_source_is_displayed): Likewise.
7679
7680 2013-01-09  Anthony Green  <green@moxielogic.com>
7681
7682         * cp-abi.c (cplus_print_vtable): Don't return value from void
7683         function.
7684         * ada-lang.c (re_set_catch_assert): Ditto.
7685
7686 2013-01-09  Doug Evans  <dje@google.com>
7687
7688         * symfile.h (quick_symbol_functions): Delete member
7689         pre_expand_symtabs_matching.  All uses removed.
7690         * dwarf2read.c (dw2_lookup_symbol): Implement.
7691         (dw2_do_expand_symtabs_matching): Delete.
7692         (dw2_pre_expand_symtabs_matching): Delete.
7693         (struct dw2_symtab_iterator): New type.
7694         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
7695         (dw2_expand_symtabs_for_function): Rewrite.
7696         (dwarf2_gdb_index_functions): Update.
7697         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
7698         (psym_functions): Update.
7699
7700 2013-01-09  Tom Tromey  <tromey@redhat.com>
7701
7702         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
7703         * configure: Rebuild.
7704         * configure.ac: Add somread.o to the build if BFD has SOM
7705         support.
7706         * somread.c: Include som/aout.h, not syms.h.
7707         (som_symtab_read): Use som_external_symbol_dictionary_record.
7708         Unpack records manually.
7709         (_initialize_somread): Declare.
7710
7711 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
7712
7713         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
7714         Cast return_address to 64bits.
7715
7716 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
7717
7718         * printcmd.c: Remove define of function output_command.
7719         * tracepoint.c: Remove extern of function output_command.
7720         * valprint.h: (output_command): New extern.
7721
7722 2013-01-07  Tom Tromey  <tromey@redhat.com>
7723
7724         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
7725         Remove.
7726         (objc_language_defn): Use c_printchar, c_printstr,
7727         c_emit_char.
7728
7729 2013-01-07  Tom Tromey  <tromey@redhat.com>
7730
7731         PR cli/7719:
7732         * NEWS: Update.
7733         * ada-valprint.c (printstr, print_field_values): Remove
7734         "inspect_it" code.
7735         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
7736         code.
7737         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
7738         code.
7739         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
7740         * main.c (captured_main): Remove "epoch" argument.
7741         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
7742         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
7743         * p-valprint.c (pascal_object_print_value_fields): Remove
7744         "inspect_it" code.
7745         * printcmd.c (print_command_1): Remove 'inspect' argument.
7746         (print_command, call_command): Update.
7747         (inspect_command): Remove.
7748         (_initialize_printcmd): Make "inspect" an alias for "print".
7749         * top.c (epoch_interface): Remove.
7750         * top.h (epoch_interface): Remove.
7751         * valprint.c (user_print_options): Update.
7752         (print_converted_chars_to_obstack): Remove "inspect_it" code.
7753         * valprint.h (struct value_print_options) <inspect_it>: Remove
7754         field.
7755
7756 2013-01-04  Tom Tromey  <tromey@redhat.com>
7757
7758         * valprint.h (read_string): Add 'extern'.
7759
7760 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
7761
7762         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
7763         used to decide whether to define darwin_read_dyld_info or not.
7764
7765 2013-01-03  Pierre Muller  <muller@sourceware.org>
7766
7767         * main.c (relocate_gdb_directory): Avoid calling stat function
7768         if DIR is empty.
7769
7770 2013-01-03  Yao Qi  <yao@codesourcery.com>
7771
7772         * psymtab.c (fixup_psymbol_section): Update declaration.
7773         (fixup_psymbol_section): Remove code returning value.
7774
7775 2013-01-03  Yao Qi  <yao@codesourcery.com>
7776
7777         * symtab.h: Remove some out of date comments.
7778          (enum exception_event_kind): Move it ...
7779         * breakpoint.c: ... here.
7780
7781 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
7782
7783         PR gdb/14405
7784         * darwin-nat.c (darwin_read_dyld_info): Only build if
7785         TASK_DYLD_INFO_COUNT is defined.
7786         (darwin_xfer_partial): Call darwin_read_dyld_info only if
7787         TASK_DYLD_INFO_COUNT is defined.
7788
7789 2013-01-02  Tom Tromey  <tromey@redhat.com>
7790
7791         * symfile.h (struct ecoff_debug_hack): Remove.
7792         * objfiles.c: Don't include mdebugread.h.
7793
7794 2013-01-02  Tom Tromey  <tromey@redhat.com>
7795
7796         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
7797         * configure.ac: Check for Mach-O support in BFD.  Update
7798         CONFIG_OBS.
7799         * configure: Rebuild.
7800
7801 2013-01-02  Tom Tromey  <tromey@redhat.com>
7802
7803         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
7804         * configure.ac: Use GDB_AC_CHECK_BFD.
7805         * configure: Rebuild.
7806
7807 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
7808
7809         * MAINTAINERS: Update my email.
7810
7811 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7812
7813         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
7814
7815 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7816
7817         * rs6000-nat.c (bss_data_overlap): New function.
7818         (vmap_symtab): Use it to adjust the .bss section's offset.
7819
7820 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
7821
7822         Update year range in copyright notice of all files.
7823
7824 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
7825
7826         * top.c (print_gdb_version): Update copyright year.
7827
7828 For older changes see ChangeLog-2012.
7829 \f
7830 Local Variables:
7831 mode: change-log
7832 left-margin: 8
7833 fill-column: 74
7834 version-control: never
7835 coding: utf-8
7836 End: