Print entirely unavailable struct/union values as a single <unavailable>.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-11-28  Andrew Burgess  <aburgess@broadcom.com>
2             Pedro Alves  <palves@redhat.com>
3
4         * valprint.c (value_check_printable): If the value is entirely
5         unavailable, print a single "<unavailable>" instead of printing
6         all subfields.
7
8 2013-11-28  Pedro Alves  <palves@redhat.com>
9
10         * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
11         Add "set debug frame" output.
12         (frame_stop_reason_symbol_string): New function.
13
14 2013-11-28  Pedro Alves  <palves@redhat.com>
15
16         * frame-unwind.c (default_frame_unwind_stop_reason): Return
17         UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
18         * frame.c (get_prev_frame_1): Remove outer_frame_id check.
19
20 2013-11-28  Pedro Alves  <palves@redhat.com>
21
22         * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
23         set the unwind stop reason to UNWIND_OUTERMOST, not
24         UNWIND_NULL_ID.  Remove explicit check for sentinel frame.
25
26 2013-11-28  Pedro Alves  <palves@redhat.com>
27
28         * frame.c (frame_unwind_register): Say the register was "not
29         saved" instead of "optimized out".
30
31 2013-11-27  Steffen Sledz  <sledz@dresearch-fe.de>
32
33         PR 16152
34         * configure: Rebuild.
35         * configure.ac: Tighten cygwin detection check.
36
37 2013-11-27  Pedro Alves  <palves@redhat.com>
38
39         * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
40         register in the previous frame's arch.
41
42 2013-11-27  Pedro Alves  <palves@redhat.com>
43
44         * frame-unwind.c (frame_unwind_got_optimized): Return
45         an lval_register value instead of a not_lval value.
46
47 2013-11-27  Andrew Burgess  <aburgess@broadcom.com>
48
49         * frame.c: Include "valprint.h".
50         (frame_unwind_register_value): Use value_optimized_out.
51         * value.c (value_fetch_lazy): Likewise.
52
53 2013-11-26  Andrew Burgess  <aburgess@broadcom.com>
54
55         * value.c (allocate_optimized_out_value): Mark value as non-lazy.
56
57 2013-11-26  Tom Tromey  <tromey@redhat.com>
58
59         * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
60         2013-11-22.
61
62 2013-11-26  Walfred Tedeschi  <walfred.tedeschi@intel.com>
63
64         * i386-xstate.h (I386_XSTATE_MPX): New Macro.
65         (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
66         (HAS_MPX): New macro.
67         (HAS_AVX): New macro.
68         (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
69
70 2013-11-25  Keith Seitz  <keiths@redhat.com>
71
72         PR c++/14819
73         * c-exp.y (classify_inner_name): If no matching symbol was
74         found, try looking up the token as a base class.
75         Likewise if a constructor was found.
76         * cp-namespace.c (find_type_baseclass_by_name): New function.
77         * cp-support.h (find_type_baseclass_by_name): Declare.
78         * valops.c (value_struct_elt_for_reference): If we get
79         a non-static field, try to get a value based on the
80         current instance, if any.
81
82 2013-11-24  Yao Qi  <yao@codesourcery.com>
83
84         * disasm.c (dis_asm_read_memory): Call target_read_code
85         instead of target_read_memory.
86
87 2013-11-24  Yao Qi  <yao@codesourcery.com>
88
89         * NEWS: Add note on new "set code-cache" option.
90         * target-dcache.c (code_cache_enabled_1): New variable.
91         (code_cache_enabled): New variable.
92         (show_code_cache, set_code_cache): New function.
93         (code_cache_enabled_p): New function.
94         (_initialize_target_dcache): Register command.
95         * target-dcache.h (code_cache_enabled_p): Declare.
96         * target.c (memory_xfer_partial_1):Handle
97         TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
98         (target_read_code): New function.
99         * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
100         New.
101         (target_read_code): Declare.
102
103 2013-11-24  Yao Qi  <yao@codesourcery.com>
104
105         * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
106         (stack_cache_enabled_1): ... this.  New variable.
107         (stack_cache_enabled_p): Rename to ...
108         (stack_cache_enabled): ... this.  New variable.
109         (set_stack_cache_enabled_p): Rename to ...
110         (set_stack_cache): ... this.  Update caller.
111         (show_stack_cache_enabled_p): Rename to ...
112         (show_stack_cache): ... this.  Update caller.
113         (stack_cache_enabled): Rename to ...
114         (stack_cache_enabled_p): ... this.  Update caller.
115         (_initialize_target_dcache): Replace "data cache" with
116         "target memory cache".
117         * target-dcache.h (stack_cache_enabled): Remove declaration.
118         (stack_cache_enabled_p): Add declaration.
119
120 2013-11-23  Doug Evans  <xdje42@gmail.com>
121
122         * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
123         superfluous.
124
125 2013-11-23  Doug Evans  <xdje42@gmail.com>
126
127         * python/py-frame.c (frapy_block): Fix error message text.
128
129 2013-11-23  Doug Evans  <xdje42@gmail.com>
130
131         * cli/cli-script.c (multi_line_command_p): New function.
132         (recurse_read_control_structure, read_command_lines_1): Call it.
133         (execute_control_command): Consistently have a blank line between
134         each case.
135
136 2013-11-22  Sterling Augustine  <saugustine@google.com>
137
138         PR gdb/16196:
139         * valprint.c (read_string): Set new variable fetchlen based on
140         fetchlimit and size.  Use it in call to partial_memory_read.
141         Update comment.
142
143 2013-11-22  Tom Tromey  <tromey@redhat.com>
144
145         PR backtrace/16155:
146         * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
147         the return address column is unspecified.
148
149 2013-11-22  Tom Tromey  <tromey@redhat.com>
150             Pedro Alves  <palves@redhat.com>
151
152         PR backtrace/16155
153         * value.c (value_fetch_lazy): Internal error if
154         get_frame_register_value returns the same register.
155
156 2013-11-22  Pedro Alves  <palves@redhat.com>
157             Tom Tromey  <tromey@redhat.com>
158
159         * frame.c (frame_stash_add): Now returns whether a frame with the
160         same ID was already known.
161         (compute_frame_id): New function, factored out from get_frame_id.
162         (get_frame_id): No longer lazilly compute the frame id here.
163         (get_prev_frame_if_no_cycle): New function.  Detects wider stack
164         cycles.
165         (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
166         and checking for stack cycles here.
167
168 2013-11-22  Pedro Alves  <palves@redhat.com>
169
170         PR 16155
171         * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
172         this frame and the new previous frame, not between this frame and
173         the next frame.
174
175 2013-11-22  Pedro Alves  <palves@redhat.com>
176
177         PR 16155
178         * dwarf2-frame.c (struct dwarf2_frame_cache)
179         <checked_tailcall_bottom, entry_cfa_sp_offset,
180         entry_cfa_sp_offset_p>: New fields.
181         (dwarf2_frame_cache): Adjust to use the new cache fields instead
182         of locals.  Don't call dwarf2_tailcall_sniffer_first here.
183         (dwarf2_frame_prev_register): Call it here, but only once.
184
185 2013-11-21  Doug Evans  <xdje42@gmail.com>
186
187         * gdbtypes.c: #include bcache.h, dwarf2loc.h.
188         (type_equality_entry): Move here from python/py-type.c.
189         (type_equality_entry_d): Ditto.
190         (compare_maybe_null_strings, check_types_equal): Ditto.
191         (check_types_worklist, types_deeply_equal): Ditto.
192         * gdbtypes.h (types_deeply_equal): Declare.
193         * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
194         (typy_richcompare): Update.
195
196 2013-11-20  Joel Brobecker  <brobecker@adacore.com>
197
198         * python/py-value.c (is_intlike): Delete.
199         (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
200         by use of is_integral_type.
201         (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
202         by use of is_integral_type and check for TYPE_CODE_PTR.
203
204 2013-11-20  Tom Tromey  <tromey@redhat.com>
205
206         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
207         strerror module.
208         * gnulib/aclocal.m4: Update.
209         * gnulib/config.in: Update.
210         * gnulib/configure: Update.
211         * gnulib/import/Makefile.am: Update.
212         * gnulib/import/Makefile.in: Update.
213         * gnulib/import/errno.in.h: Remove.
214         * gnulib/import/intprops.h: Remove.
215         * gnulib/import/m4/errno_h.m4: Remove.
216         * gnulib/import/m4/gnulib-cache.m4: Update.
217         * gnulib/import/m4/gnulib-comp.m4: Update.
218         * gnulib/import/m4/strerror.m4: Remove.
219         * gnulib/import/m4/sys_socket_h.m4: Remove.
220         * gnulib/import/strerror-override.c: Remove.
221         * gnulib/import/strerror-override.h: Remove.
222         * gnulib/import/strerror.c: Remove.
223         * gnulib/update-gnulib.sh: Update.
224
225 2013-11-20  Yao Qi  <yao@codesourcery.com>
226
227         * target-dcache.c (target_dcache_get_or_init): Call
228         set_address_space_data if 'dcache' is NULL.
229
230 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
231
232         * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
233
234 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
235
236         * python/lib/gdb/command/bound_register.py: New file.
237         * data-directory/Makefile.in: Copy bond_register.py to the right path
238         to be initialized at gdb startup.
239
240 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
241
242         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
243         Add MPX registers.
244         (amd64_linux_read_description): Add initialization for MPX and
245         AVX independently.
246         * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
247         (amd64_linux_gregset_reg_offset): Add MPX registers.
248         (amd64_linux_core_read_description): Add initialization for MPX
249         registers.
250         (_initialize_amd64_linux_tdep): Initialize MPX targets.
251         * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
252         register on the list.
253         (tdesc_amd64_mpx_linux) Add new target  for MPX.
254         * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
255         (amd64_mpx_names): MPX register names.
256         (amd64_init_abi): Add MPX register while initializing the ABI.
257         (_initialize_amd64_tdep): Initialize MPX targets.
258         * amd64-tdep.h (amd64_regnum): Add MPX registers.
259         (AMD64_NUM_REGS): Set number of registers taking MPX into account.
260
261 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
262
263         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
264         registers on the range of registers to be read from
265         xsave buffer.
266         (i386_linux_read_description): Add case for MPX.
267         * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
268         (i386_linux_gregset_reg_offset): Add MPX registers.
269         (i386_linux_core_read_description): Initialize also MPX.
270         (_initialize_i386_linux_tdep): Add mpx initialization.
271         * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
272         mpx_register_names.
273         (i386_regnum): Add MPX registers.
274         (I386_MPX_NUM_REGS): New macro.
275         (i386_bnd_regnum_p): New function.
276         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
277         number of registers to be the number of BNDSTATUS.
278         (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
279         * i386-tdep.c: Include features/i386/i386-mpx.c.
280         (i386_mpx_names): Add MPX register names array.
281         (i386_bnd_names): Add bnd pseudo register names array.
282         (i386_bndr_regnum_p): Lookup register numbers for bnd raw
283         registers.
284         (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
285         (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
286         registers.
287         (i386_bnd_type): New function.
288         (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
289         register types.
290         (i386_pseudo_register_read_into_value): Add bnd case.
291         (i386_pseudo_register_write): Add bnd pseudo registers.
292         (i386_register_reggroup_p): Add MPX register to the group all.
293         (i386_validate_tdesc_p): Add MPX to the target  description
294         validation.
295         (i386_pseudo_register_name): Add bnd pseudo registers.
296         (i386_gdbarch_init): Add MPX for architecture initialization.
297         (_initia_initialize_i386_tdep): Add mpx initialization.
298         * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
299         XSAVE buffer.
300         (XSAVE_MPX_ADDR): New macro.
301         (i387_supply_xsave): Add MPX case.
302         (i387_collect_xsave): Add MPX case.
303         * i387-tdep.h (I387_BND0R_REGNUM): New macro.
304         (I387_BNDCFGU_REGNUM): New macro.
305         (I387_NUM_MPX_REGS): New macro.
306         (I387_NUM_BND_REGS): New macro.
307         (I387_NUM_MPX_CTRL_REGS): New macro.
308         (I387_MPXEND_REGNUM): New macro.
309         * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
310         (I386_XSTATE_BNDCFG): Likewise.
311         (I386_XSTATE_MPX_MASK): Likewise.
312         (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
313         (I386_XSTATE_BNDREGS_SIZE): New macro.
314         (I386_XSTATE_BNDCFG_SIZE): Likewise.
315         (I386_XSTATE_SIZE): Adapt for MPX.
316         (I386_XSTATE_MAX_SIZE): Likewise.
317
318 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
319
320         * features/i386/Makefile: Adapts for using MPX registers.
321         * features/i386/32bit-mpx.xml: New file.
322         * features/i386/64bit-mpx.xml: Likewise.
323         * features/i386/amd64-mpx-linux.c: Likewise.
324         * features/i386/amd64-mpx-linux.xml: Likewise.
325         * features/i386/amd64-mpx.c: Likewise.
326         * features/i386/amd64-mpx.xml: Likewise.
327         * features/i386/i386-mpx-linux.c: Likewise.
328         * features/i386/i386-mpx-linux.xml: Likewise.
329         * features/i386/i386-mpx.c: Likewise.
330         * features/i386/i386-mpx.xml: Likewise.
331         * regformats/i386/amd64-mpx-linux.dat: New file.
332         * regformats/i386/amd64-mpx.dat: Likewise.
333         * regformats/i386/i386-mpx-linux.dat: Likewise.
334         * regformats/i386/i386-mpx.dat: Likewise.
335
336 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
337
338         * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
339         Modified logic of creating a bitfield to be in sync with
340         tdesc_gdb_type.
341
342 2013-11-20  Will Newton  <will.newton@linaro.org>
343
344         * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
345         error message.
346
347 2013-11-20  Yao Qi  <yao@codesourcery.com>
348
349         * progspace.h (struct address_space_data): Declare.
350         * target-dcache.c: Include "progspace.h".
351         (target_dache): Remove.
352         (target_dcache_aspace_key): New.
353         (target_dcache_cleanup): New function.
354         (target_dcache_init_p): Get data through
355         target_dcache_aspace_key.
356         (target_dcache_invalidate): Likewise.
357         (target_dcache_get): Likewise.
358         (target_dcache_get_or_init): Likewise.
359         (_initialize_target_dcache): Initialize
360         target_dcache_aspace_key.
361
362 2013-11-20  Yao Qi  <yao@codesourcery.com>
363
364         * progspace.c (struct address_space): Update comments.
365         <REGISTRY_FIELDS>: New fields.
366         DEFINE_REGISTRY for address_space.
367         (new_address_space): Call address_space_alloc_data.
368         (free_address_space): Call address_space_free_data.
369         * progspace.h: Use DECLARE_REGISTRY.
370
371 2013-11-20  Yao Qi  <yao@codesourcery.com>
372
373         * Makefile.in (SFILES):Add target-dcache.c.
374         (HFILES_NO_SRCDIR): Add target-dcache.h.
375         (COMMON_OBS): Add target-dcache.o.
376         * dcache.c: Remove inclusion to "target.h".  Include
377         "target-dcache.h".
378         * memattr.c: Include "target-dcache.h".
379         * top.c: Likewise.
380         * tracepoint.c: Likewise.
381         * target.c: (stack_cache_enabled_p_1): Move to
382         target-dcache.c.
383         (stack_cache_enabled_p): Likewise.
384         (set_stack_cache_enabled_p): Likewise.
385         (show_stack_cache_enabled_p): Likewise.
386         (target_dcache, target_dcache_init_p): Likewise.
387         (target_dcache_invalidate): Likewise.
388         (target_dcache_get, target_dcache_get_or_init): Likewise.
389         (memory_xfer_partial_1): Call function stack_cache_enabled.
390         (initialize_target): Move code to target-dcache.c.
391         * target.h (target_dcache_invalidate): Move to
392         target-dcache.h.
393         (target_dcache_get): Likewise.
394         * target-dcache.c: New.
395         * target-dcache.h: New.
396
397 2013-11-20  Yao Qi  <yao@codesourcery.com>
398
399         * target.c (memory_xfer_partial_1): Update 'target_dcache' if
400         it is initialized.
401
402 2013-11-20  Yao Qi  <yao@codesourcery.com>
403
404         * dcache.c (last_cache): Remove.
405         (dcache_free, dcache_init): Update.
406         (dcache_update):
407         (dcache_print_line): Add parameter 'dcache'.  Replace
408         'target_dcache' with 'dcache'.
409         (dcache_info): Move code to dcache_info_1. Call
410         'dcache_info_1'.
411         (dcache_info_1): New function.
412         (set_dcache_size): Call target_dcache_invalidate.
413         (set_dcache_line_size): Call target_dcache_invalidate.
414         * target.c (target_dcache_init_p): New function.
415         (target_dcache_invalidate): Check target_dcache_init_p first.
416         (target_dcache_get, target_dcache_get_or_init): New function.
417         (memory_xfer_partial_1): Adjust.
418         (initialize_target): Don't initialize 'target_dcache'.
419         * target.h (struct dcache_struct): Declare.
420         (target_dcache_get): Declare.
421
422 2013-11-19  Yao Qi  <yao@codesourcery.com>
423
424         * varobj.c (varobj_get_type): Fix typo.
425
426 2013-11-19  Joel Brobecker  <brobecker@adacore.com>
427
428         * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
429
430 2013-11-19  Joel Brobecker  <brobecker@adacore.com>
431
432         * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
433         "stat.h".
434
435 2013-11-18  Tom Tromey  <tromey@redhat.com>
436
437         * common/gdb_stat.h: Remove.
438         * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
439         * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
440         * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
441         * corefile.c: Use sys/stat.h, not gdb_stat.h.
442         * ctf.c: Use sys/stat.h, not gdb_stat.h.
443         * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
444         * dbxread.c: Use sys/stat.h, not gdb_stat.h.
445         * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
446         * exec.c: Use sys/stat.h, not gdb_stat.h.
447         * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
448         * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
449         * inf-child.c: Use sys/stat.h, not gdb_stat.h.
450         * jit.c: Use sys/stat.h, not gdb_stat.h.
451         * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
452         * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
453         * main.c: Use sys/stat.h, not gdb_stat.h.
454         * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
455         * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
456         * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
457         * objfiles.c: Use sys/stat.h, not gdb_stat.h.
458         * procfs.c: Use sys/stat.h, not gdb_stat.h.
459         * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
460         * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
461         * remote.c: Use sys/stat.h, not gdb_stat.h.
462         * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
463         * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
464         * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
465         * source.c: Use sys/stat.h, not gdb_stat.h.
466         * symfile.c: Use sys/stat.h, not gdb_stat.h.
467         * symmisc.c: Use sys/stat.h, not gdb_stat.h.
468         * symtab.c: Use sys/stat.h, not gdb_stat.h.
469         * top.c: Use sys/stat.h, not gdb_stat.h.
470         * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
471
472 2013-11-18  Tom Tromey  <tromey@redhat.com>
473
474         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
475         sys_stat.
476         * gnulib/aclocal.m4: Update.
477         * gnulib/config.in: Update.
478         * gnulib/configure: Update.
479         * gnulib/import/Makefile.am: Update.
480         * gnulib/import/Makefile.in: Update.
481         * gnulib/import/m4/gnulib-cache.m4: Update.
482         * gnulib/import/m4/gnulib-comp.m4: Update.
483         * gnulib/import/m4/sys_stat_h.m4: New.
484         * gnulib/import/m4/time_h.m4: New.
485         * gnulib/import/sys_stat.in.h: New.
486         * gnulib/import/time.in.h: New.
487
488 2013-11-18  Tom Tromey  <tromey@redhat.com>
489
490         * configure: Rebuild.
491         * configure.ac: Remove check of HAVE_SYS_TYPES_H.
492
493 2013-11-18  Tom Tromey  <tromey@redhat.com>
494
495         * configure: Rebuild.
496         * configure.ac: Don't check for unistd.h.
497
498 2013-11-18  Tom Tromey  <tromey@redhat.com>
499
500         * configure: Rebuild.
501         * configure.ac: Don't check for stdlib.h
502         * defs.h: Include stdlib.h unconditionally.
503
504 2013-11-18  Tom Tromey  <tromey@redhat.com>
505
506         * config.in: Rebuild.
507         * configure: Rebuild.
508         * configure.ac: Don't check for stddef.h.
509         * defs.h: Unconditionally include stddef.h.  Remove duplicate
510         inclusion.
511
512 2013-11-18  Tom Tromey  <tromey@redhat.com>
513
514         * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
515         * common/gdb_dirent.h: Remove.
516         * common/filestuff.c: Use dirent.h.
517         * common/linux-osdata.c: Use dirent.h.
518         (NAMELEN): Define.
519         * config.in: Rebuild.
520         * configure: Rebuild.
521         * configure.ac: Don't use AC_HEADER_DIRENT.
522         * linux-fork.c: Use dirent.h
523         * linux-nat.c: Use dirent.h.
524         * nto-procfs.c: Use dirent.h.
525         * procfs.c: Use dirent.h.
526
527 2013-11-18  Tom Tromey  <tromey@redhat.com>
528
529         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
530         * gnulib/aclocal.m4: Update.
531         * gnulib/config.in: Update.
532         * gnulib/configure: Update.
533         * gnulib/import/Makefile.am: Update.
534         * gnulib/import/Makefile.in: Update.
535         * gnulib/import/dirent.in.h: New.
536         * gnulib/import/m4/dirent_h.m4: New.
537         * gnulib/import/m4/gnulib-cache.m4: Update.
538         * gnulib/import/m4/gnulib-comp.m4: Update.
539
540 2013-11-18  Tom Tromey  <tromey@redhat.com>
541
542         * configure: Rebuild.
543         * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
544         strings.h.
545
546 2013-11-18  Tom Tromey  <tromey@redhat.com>
547
548         * common/gdb_string.h: Remove.
549         * aarch64-tdep.c: Use string.h, not gdb_string.h.
550         * ada-exp.y: Use string.h, not gdb_string.h.
551         * ada-lang.c: Use string.h, not gdb_string.h.
552         * ada-lex.l: Use string.h, not gdb_string.h.
553         * ada-typeprint.c: Use string.h, not gdb_string.h.
554         * ada-valprint.c: Use string.h, not gdb_string.h.
555         * aix-thread.c: Use string.h, not gdb_string.h.
556         * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
557         * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
558         * alpha-nat.c: Use string.h, not gdb_string.h.
559         * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
560         * alpha-tdep.c: Use string.h, not gdb_string.h.
561         * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
562         * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
563         * amd64-linux-nat.c: Use string.h, not gdb_string.h.
564         * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
565         * amd64-nat.c: Use string.h, not gdb_string.h.
566         * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
567         * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
568         * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
569         * arch-utils.c: Use string.h, not gdb_string.h.
570         * arm-linux-nat.c: Use string.h, not gdb_string.h.
571         * arm-linux-tdep.c: Use string.h, not gdb_string.h.
572         * arm-tdep.c: Use string.h, not gdb_string.h.
573         * arm-wince-tdep.c: Use string.h, not gdb_string.h.
574         * armbsd-tdep.c: Use string.h, not gdb_string.h.
575         * armnbsd-nat.c: Use string.h, not gdb_string.h.
576         * armnbsd-tdep.c: Use string.h, not gdb_string.h.
577         * armobsd-tdep.c: Use string.h, not gdb_string.h.
578         * avr-tdep.c: Use string.h, not gdb_string.h.
579         * ax-gdb.c: Use string.h, not gdb_string.h.
580         * ax-general.c: Use string.h, not gdb_string.h.
581         * bcache.c: Use string.h, not gdb_string.h.
582         * bfin-tdep.c: Use string.h, not gdb_string.h.
583         * breakpoint.c: Use string.h, not gdb_string.h.
584         * build-id.c: Use string.h, not gdb_string.h.
585         * buildsym.c: Use string.h, not gdb_string.h.
586         * c-exp.y: Use string.h, not gdb_string.h.
587         * c-lang.c: Use string.h, not gdb_string.h.
588         * c-typeprint.c: Use string.h, not gdb_string.h.
589         * c-valprint.c: Use string.h, not gdb_string.h.
590         * charset.c: Use string.h, not gdb_string.h.
591         * cli-out.c: Use string.h, not gdb_string.h.
592         * cli/cli-cmds.c: Use string.h, not gdb_string.h.
593         * cli/cli-decode.c: Use string.h, not gdb_string.h.
594         * cli/cli-dump.c: Use string.h, not gdb_string.h.
595         * cli/cli-interp.c: Use string.h, not gdb_string.h.
596         * cli/cli-logging.c: Use string.h, not gdb_string.h.
597         * cli/cli-script.c: Use string.h, not gdb_string.h.
598         * cli/cli-setshow.c: Use string.h, not gdb_string.h.
599         * cli/cli-utils.c: Use string.h, not gdb_string.h.
600         * coffread.c: Use string.h, not gdb_string.h.
601         * common/common-utils.c: Use string.h, not gdb_string.h.
602         * common/filestuff.c: Use string.h, not gdb_string.h.
603         * common/linux-procfs.c: Use string.h, not gdb_string.h.
604         * common/linux-ptrace.c: Use string.h, not gdb_string.h.
605         * common/signals.c: Use string.h, not gdb_string.h.
606         * common/vec.h: Use string.h, not gdb_string.h.
607         * core-regset.c: Use string.h, not gdb_string.h.
608         * corefile.c: Use string.h, not gdb_string.h.
609         * corelow.c: Use string.h, not gdb_string.h.
610         * cp-abi.c: Use string.h, not gdb_string.h.
611         * cp-support.c: Use string.h, not gdb_string.h.
612         * cp-valprint.c: Use string.h, not gdb_string.h.
613         * cris-tdep.c: Use string.h, not gdb_string.h.
614         * d-lang.c: Use string.h, not gdb_string.h.
615         * dbxread.c: Use string.h, not gdb_string.h.
616         * dcache.c: Use string.h, not gdb_string.h.
617         * demangle.c: Use string.h, not gdb_string.h.
618         * dicos-tdep.c: Use string.h, not gdb_string.h.
619         * disasm.c: Use string.h, not gdb_string.h.
620         * doublest.c: Use string.h, not gdb_string.h.
621         * dsrec.c: Use string.h, not gdb_string.h.
622         * dummy-frame.c: Use string.h, not gdb_string.h.
623         * dwarf2-frame.c: Use string.h, not gdb_string.h.
624         * dwarf2loc.c: Use string.h, not gdb_string.h.
625         * dwarf2read.c: Use string.h, not gdb_string.h.
626         * elfread.c: Use string.h, not gdb_string.h.
627         * environ.c: Use string.h, not gdb_string.h.
628         * eval.c: Use string.h, not gdb_string.h.
629         * event-loop.c: Use string.h, not gdb_string.h.
630         * exceptions.c: Use string.h, not gdb_string.h.
631         * exec.c: Use string.h, not gdb_string.h.
632         * expprint.c: Use string.h, not gdb_string.h.
633         * f-exp.y: Use string.h, not gdb_string.h.
634         * f-lang.c: Use string.h, not gdb_string.h.
635         * f-typeprint.c: Use string.h, not gdb_string.h.
636         * f-valprint.c: Use string.h, not gdb_string.h.
637         * fbsd-nat.c: Use string.h, not gdb_string.h.
638         * findcmd.c: Use string.h, not gdb_string.h.
639         * findvar.c: Use string.h, not gdb_string.h.
640         * fork-child.c: Use string.h, not gdb_string.h.
641         * frame.c: Use string.h, not gdb_string.h.
642         * frv-linux-tdep.c: Use string.h, not gdb_string.h.
643         * frv-tdep.c: Use string.h, not gdb_string.h.
644         * gdb.c: Use string.h, not gdb_string.h.
645         * gdb_bfd.c: Use string.h, not gdb_string.h.
646         * gdbarch.c: Use string.h, not gdb_string.h.
647         * gdbtypes.c: Use string.h, not gdb_string.h.
648         * gnu-nat.c: Use string.h, not gdb_string.h.
649         * gnu-v2-abi.c: Use string.h, not gdb_string.h.
650         * gnu-v3-abi.c: Use string.h, not gdb_string.h.
651         * go-exp.y: Use string.h, not gdb_string.h.
652         * go-lang.c: Use string.h, not gdb_string.h.
653         * go32-nat.c: Use string.h, not gdb_string.h.
654         * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
655         * hppa-linux-nat.c: Use string.h, not gdb_string.h.
656         * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
657         * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
658         * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
659         * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
660         * i386-linux-nat.c: Use string.h, not gdb_string.h.
661         * i386-linux-tdep.c: Use string.h, not gdb_string.h.
662         * i386-nto-tdep.c: Use string.h, not gdb_string.h.
663         * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
664         * i386-tdep.c: Use string.h, not gdb_string.h.
665         * i386bsd-tdep.c: Use string.h, not gdb_string.h.
666         * i386gnu-nat.c: Use string.h, not gdb_string.h.
667         * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
668         * i386obsd-tdep.c: Use string.h, not gdb_string.h.
669         * i387-tdep.c: Use string.h, not gdb_string.h.
670         * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
671         * ia64-linux-nat.c: Use string.h, not gdb_string.h.
672         * inf-child.c: Use string.h, not gdb_string.h.
673         * inf-ptrace.c: Use string.h, not gdb_string.h.
674         * inf-ttrace.c: Use string.h, not gdb_string.h.
675         * infcall.c: Use string.h, not gdb_string.h.
676         * infcmd.c: Use string.h, not gdb_string.h.
677         * inflow.c: Use string.h, not gdb_string.h.
678         * infrun.c: Use string.h, not gdb_string.h.
679         * interps.c: Use string.h, not gdb_string.h.
680         * iq2000-tdep.c: Use string.h, not gdb_string.h.
681         * irix5-nat.c: Use string.h, not gdb_string.h.
682         * jv-exp.y: Use string.h, not gdb_string.h.
683         * jv-lang.c: Use string.h, not gdb_string.h.
684         * jv-typeprint.c: Use string.h, not gdb_string.h.
685         * jv-valprint.c: Use string.h, not gdb_string.h.
686         * language.c: Use string.h, not gdb_string.h.
687         * linux-fork.c: Use string.h, not gdb_string.h.
688         * linux-nat.c: Use string.h, not gdb_string.h.
689         * lm32-tdep.c: Use string.h, not gdb_string.h.
690         * m2-exp.y: Use string.h, not gdb_string.h.
691         * m2-typeprint.c: Use string.h, not gdb_string.h.
692         * m32c-tdep.c: Use string.h, not gdb_string.h.
693         * m32r-linux-nat.c: Use string.h, not gdb_string.h.
694         * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
695         * m32r-rom.c: Use string.h, not gdb_string.h.
696         * m32r-tdep.c: Use string.h, not gdb_string.h.
697         * m68hc11-tdep.c: Use string.h, not gdb_string.h.
698         * m68k-tdep.c: Use string.h, not gdb_string.h.
699         * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
700         * m68klinux-nat.c: Use string.h, not gdb_string.h.
701         * m68klinux-tdep.c: Use string.h, not gdb_string.h.
702         * m88k-tdep.c: Use string.h, not gdb_string.h.
703         * macrocmd.c: Use string.h, not gdb_string.h.
704         * main.c: Use string.h, not gdb_string.h.
705         * mdebugread.c: Use string.h, not gdb_string.h.
706         * mem-break.c: Use string.h, not gdb_string.h.
707         * memattr.c: Use string.h, not gdb_string.h.
708         * memory-map.c: Use string.h, not gdb_string.h.
709         * mep-tdep.c: Use string.h, not gdb_string.h.
710         * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
711         * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
712         * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
713         * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
714         * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
715         * mi/mi-cmds.c: Use string.h, not gdb_string.h.
716         * mi/mi-console.c: Use string.h, not gdb_string.h.
717         * mi/mi-getopt.c: Use string.h, not gdb_string.h.
718         * mi/mi-interp.c: Use string.h, not gdb_string.h.
719         * mi/mi-main.c: Use string.h, not gdb_string.h.
720         * mi/mi-parse.c: Use string.h, not gdb_string.h.
721         * microblaze-rom.c: Use string.h, not gdb_string.h.
722         * microblaze-tdep.c: Use string.h, not gdb_string.h.
723         * mingw-hdep.c: Use string.h, not gdb_string.h.
724         * minidebug.c: Use string.h, not gdb_string.h.
725         * minsyms.c: Use string.h, not gdb_string.h.
726         * mips-irix-tdep.c: Use string.h, not gdb_string.h.
727         * mips-linux-tdep.c: Use string.h, not gdb_string.h.
728         * mips-tdep.c: Use string.h, not gdb_string.h.
729         * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
730         * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
731         * mipsread.c: Use string.h, not gdb_string.h.
732         * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
733         * mn10300-tdep.c: Use string.h, not gdb_string.h.
734         * monitor.c: Use string.h, not gdb_string.h.
735         * moxie-tdep.c: Use string.h, not gdb_string.h.
736         * mt-tdep.c: Use string.h, not gdb_string.h.
737         * nbsd-tdep.c: Use string.h, not gdb_string.h.
738         * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
739         * nto-procfs.c: Use string.h, not gdb_string.h.
740         * nto-tdep.c: Use string.h, not gdb_string.h.
741         * objc-lang.c: Use string.h, not gdb_string.h.
742         * objfiles.c: Use string.h, not gdb_string.h.
743         * opencl-lang.c: Use string.h, not gdb_string.h.
744         * osabi.c: Use string.h, not gdb_string.h.
745         * osdata.c: Use string.h, not gdb_string.h.
746         * p-exp.y: Use string.h, not gdb_string.h.
747         * p-lang.c: Use string.h, not gdb_string.h.
748         * p-typeprint.c: Use string.h, not gdb_string.h.
749         * parse.c: Use string.h, not gdb_string.h.
750         * posix-hdep.c: Use string.h, not gdb_string.h.
751         * ppc-linux-nat.c: Use string.h, not gdb_string.h.
752         * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
753         * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
754         * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
755         * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
756         * printcmd.c: Use string.h, not gdb_string.h.
757         * procfs.c: Use string.h, not gdb_string.h.
758         * prologue-value.c: Use string.h, not gdb_string.h.
759         * python/py-auto-load.c: Use string.h, not gdb_string.h.
760         * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
761         * ravenscar-thread.c: Use string.h, not gdb_string.h.
762         * regcache.c: Use string.h, not gdb_string.h.
763         * registry.c: Use string.h, not gdb_string.h.
764         * remote-fileio.c: Use string.h, not gdb_string.h.
765         * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
766         * remote-mips.c: Use string.h, not gdb_string.h.
767         * remote-sim.c: Use string.h, not gdb_string.h.
768         * remote.c: Use string.h, not gdb_string.h.
769         * reverse.c: Use string.h, not gdb_string.h.
770         * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
771         * ser-base.c: Use string.h, not gdb_string.h.
772         * ser-go32.c: Use string.h, not gdb_string.h.
773         * ser-mingw.c: Use string.h, not gdb_string.h.
774         * ser-pipe.c: Use string.h, not gdb_string.h.
775         * ser-tcp.c: Use string.h, not gdb_string.h.
776         * ser-unix.c: Use string.h, not gdb_string.h.
777         * serial.c: Use string.h, not gdb_string.h.
778         * sh-tdep.c: Use string.h, not gdb_string.h.
779         * sh64-tdep.c: Use string.h, not gdb_string.h.
780         * shnbsd-tdep.c: Use string.h, not gdb_string.h.
781         * skip.c: Use string.h, not gdb_string.h.
782         * sol-thread.c: Use string.h, not gdb_string.h.
783         * solib-dsbt.c: Use string.h, not gdb_string.h.
784         * solib-frv.c: Use string.h, not gdb_string.h.
785         * solib-osf.c: Use string.h, not gdb_string.h.
786         * solib-spu.c: Use string.h, not gdb_string.h.
787         * solib-target.c: Use string.h, not gdb_string.h.
788         * solib.c: Use string.h, not gdb_string.h.
789         * somread.c: Use string.h, not gdb_string.h.
790         * source.c: Use string.h, not gdb_string.h.
791         * sparc-nat.c: Use string.h, not gdb_string.h.
792         * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
793         * sparc-tdep.c: Use string.h, not gdb_string.h.
794         * sparc64-tdep.c: Use string.h, not gdb_string.h.
795         * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
796         * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
797         * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
798         * spu-linux-nat.c: Use string.h, not gdb_string.h.
799         * spu-multiarch.c: Use string.h, not gdb_string.h.
800         * spu-tdep.c: Use string.h, not gdb_string.h.
801         * stabsread.c: Use string.h, not gdb_string.h.
802         * stack.c: Use string.h, not gdb_string.h.
803         * std-regs.c: Use string.h, not gdb_string.h.
804         * symfile.c: Use string.h, not gdb_string.h.
805         * symmisc.c: Use string.h, not gdb_string.h.
806         * symtab.c: Use string.h, not gdb_string.h.
807         * target.c: Use string.h, not gdb_string.h.
808         * thread.c: Use string.h, not gdb_string.h.
809         * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
810         * tilegx-tdep.c: Use string.h, not gdb_string.h.
811         * top.c: Use string.h, not gdb_string.h.
812         * tracepoint.c: Use string.h, not gdb_string.h.
813         * tui/tui-command.c: Use string.h, not gdb_string.h.
814         * tui/tui-data.c: Use string.h, not gdb_string.h.
815         * tui/tui-disasm.c: Use string.h, not gdb_string.h.
816         * tui/tui-file.c: Use string.h, not gdb_string.h.
817         * tui/tui-layout.c: Use string.h, not gdb_string.h.
818         * tui/tui-out.c: Use string.h, not gdb_string.h.
819         * tui/tui-regs.c: Use string.h, not gdb_string.h.
820         * tui/tui-source.c: Use string.h, not gdb_string.h.
821         * tui/tui-stack.c: Use string.h, not gdb_string.h.
822         * tui/tui-win.c: Use string.h, not gdb_string.h.
823         * tui/tui-windata.c: Use string.h, not gdb_string.h.
824         * tui/tui-winsource.c: Use string.h, not gdb_string.h.
825         * typeprint.c: Use string.h, not gdb_string.h.
826         * ui-file.c: Use string.h, not gdb_string.h.
827         * ui-out.c: Use string.h, not gdb_string.h.
828         * user-regs.c: Use string.h, not gdb_string.h.
829         * utils.c: Use string.h, not gdb_string.h.
830         * v850-tdep.c: Use string.h, not gdb_string.h.
831         * valarith.c: Use string.h, not gdb_string.h.
832         * valops.c: Use string.h, not gdb_string.h.
833         * valprint.c: Use string.h, not gdb_string.h.
834         * value.c: Use string.h, not gdb_string.h.
835         * varobj.c: Use string.h, not gdb_string.h.
836         * vax-tdep.c: Use string.h, not gdb_string.h.
837         * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
838         * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
839         * windows-nat.c: Use string.h, not gdb_string.h.
840         * xcoffread.c: Use string.h, not gdb_string.h.
841         * xml-support.c: Use string.h, not gdb_string.h.
842         * xstormy16-tdep.c: Use string.h, not gdb_string.h.
843         * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
844
845 2013-11-18  Tom Tromey  <tromey@redhat.com>
846
847         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
848         and strstr.
849         * gnulib/aclocal.m4: Update.
850         * gnulib/config.in: Update.
851         * gnulib/configure: Update.
852         * gnulib/import/Makefile.am: Update.
853         * gnulib/import/Makefile.in: Update.
854         * gnulib/import/errno.in.h: New.
855         * gnulib/import/intprops.h: New.
856         * gnulib/import/m4/errno_h.m4: New.
857         * gnulib/import/m4/gnulib-cache.m4: Update.
858         * gnulib/import/m4/gnulib-comp.m4: Update.
859         * gnulib/import/m4/strerror.m4: New.
860         * gnulib/import/m4/strstr.m4: New.
861         * gnulib/import/m4/sys_socket_h.m4: New.
862         * gnulib/import/strerror-override.c: New.
863         * gnulib/import/strerror-override.h: New.
864         * gnulib/import/strerror.c: New.
865         * gnulib/import/strstr.c: New.
866
867 2013-11-18  Tom Tromey  <tromey@redhat.com>
868
869         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
870         multiple lines.
871
872 2013-11-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
873
874         * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
875         * sparc-tdep.h: And its prototype.
876
877         * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
878         function.
879         (sparc64_linux_init_abi): Register the get_longjmp_target hook.
880
881 2013-11-18  Pedro Alves  <palves@redhat.com>
882
883         * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
884         use unpack_pointer.
885
886 2013-11-18  Joel Brobecker  <brobecker@adacore.com>
887
888         * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
889         to -list-features output.
890
891 2013-11-17  Joel Brobecker  <brobecker@adacore.com>
892
893         * dwarf2expr.h (struct dwarf_expr_context_funcs)
894         <read_addr_from_reg>: Renames "read_reg".
895         * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
896         Adjust comment.
897         (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
898         Use read_addr_from_reg in place of read_reg.
899         * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
900         in place of read_reg.
901         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
902         dwarf_expr_read_reg.
903         (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
904         with dwarf_expr_read_addr_from_reg.
905         (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
906         (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
907         needs_frame_read_addr_from_reg.
908
909 2013-11-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
910
911         * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
912
913 2013-11-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
914
915         * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
916         NULL.
917
918 2013-11-15  Tom Tromey  <tromey@redhat.com>
919
920         PR c++/16117:
921         * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
922         (classify_name): Likewise.  Prefer a field of "this" over a
923         filename.
924         (classify_inner_name, yylex): Update.
925
926 2013-11-15  Joel Brobecker  <brobecker@adacore.com>
927
928         * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
929         Extend the documentation a bit.
930         <get_reg_value>: New field.
931         * dwarf2loc.c (dwarf_expr_get_reg_value)
932         (needs_frame_get_reg_value): New functions.
933         (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
934         callback.
935         * dwarf2-frame.c (get_reg_value): New function.
936         (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
937         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
938         Use new callback to compute result_val.
939
940 2013-11-15  Alan Modra  <amodra@gmail.com>
941
942         * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
943         (ppc64_desc_entry_point): ..this.  Update comments here and at
944         call points.
945         (ppc64_standard_linkage1, ppc64_standard_linkage2,
946         ppc64_standard_linkage3): Update comments.
947         (ppc64_standard_linkage4, ppc64_standard_linkage5,
948         (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
949         patterns.
950         (ppc64_standard_linkage4_target): New function.
951         (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
952         * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup.  Correct
953         nop match.  Fix comment wrap.
954
955 2013-11-14  Pedro Alves  <palves@redhat.com>
956
957         * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
958         STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
959
960 2013-11-14  Pedro Alves  <palves@redhat.com>
961
962         * infrun.c (struct execution_control_state)
963         <stepped_after_stopped_by_watchpoint>: New field.
964         (get_inferior_stop_soon): New function.
965         (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
966         moved to struct execution_control_state -- adjust.  Use
967         get_inferior_stop_soon.  Split TARGET_WAITKIND_STOPPED handling to
968         new function.
969         (handle_signal_stop): New function, factored out from
970         handle_inferior_event.
971
972 2013-11-14  Pedro Alves  <palves@redhat.com>
973
974         * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
975         return a boolean.
976         * breakpoint.c (bpstat_explains_signal): Adjust to return a
977         boolean.
978         (explains_signal_watchpoint, base_breakpoint_explains_signal):
979         Adjust to return a boolean.
980         * breakpoint.h (enum bpstat_signal_value): Delete.
981         (struct breakpoint_ops) <explains_signal>: New returns a boolean.
982         (bpstat_explains_signal): Likewise.
983         * infrun.c (handle_inferior_event) <random signal checks>:
984         bpstat_explains_signal now returns a boolean - adjust.  No longer
985         consider hiding signals.
986
987 2013-11-14  Pedro Alves  <palves@redhat.com>
988
989         * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
990         Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
991         (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
992         BPSTAT_SIGNAL_HIDE.
993         (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
994         instead of BPSTAT_SIGNAL_HIDE.
995         * infrun.c (handle_inferior_event): Rework random signal checks.
996
997 2013-11-14  Pedro Alves  <palves@redhat.com>
998
999         * infrun.c (struct execution_control_state): Remove
1000         'random_signal' field.
1001         (handle_syscall_event): Use bpstat_causes_stop instead of
1002         bpstat_explains_signal.  Don't set ecs->random_signal.
1003         (handle_inferior_event): New 'random_signal' local.
1004         <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1005         TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1006         bpstat_explains_signal.  Don't set ecs->random_signal.
1007         <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1008         ecs->random_signal.
1009
1010 2013-11-14  Pedro Alves  <palves@redhat.com>
1011
1012         * infrun.c (handle_inferior_event): Move comment from the
1013         function's body to the function's description, adjusted.
1014
1015 2013-11-14  Pedro Alves  <palves@redhat.com>
1016
1017         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1018         Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1019         Assert we never fall through out of the TARGET_WAITKIND_LOADED
1020         case.
1021
1022 2013-11-14  Tom Tromey  <tromey@redhat.com>
1023
1024         * python/py-linetable.c (ltpy_has_line)
1025         (ltpy_get_all_source_lines): Fix loop termination condition.
1026
1027 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
1028
1029         * mi/mi-parse.h (struct mi_parse) <language>: New field.
1030         * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1031         PARSE->LANGUAGE during command execution, if set.
1032         * mi/mi-parse.c: Add "language.h" #include.
1033         (mi_parse): Add parsing of "--language" command option.
1034
1035         * NEWS: Add entry mentioning the new "--language" command option.
1036
1037 2013-11-14  Pedro Alves  <palves@redhat.com>
1038             Joel Brobecker  <brobecker@adacore.com>
1039
1040         * cli/cli-utils.h (extract_arg_const): Add declaration.
1041         * cli/cli-utils.c (extract_arg_const): New function.
1042         (extract_arg): Reimplement using extract_arg_const.
1043
1044 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
1045
1046         * language.h: Add "symtab.h" #include.
1047
1048 2013-11-13  Doug Evans  <xdje42@gmail.com>
1049
1050         * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1051         specific breakpoints, don't evaluate breakpoint condition if
1052         different thread.
1053
1054 2013-11-13  Keith Seitz  <keiths@redhat.com>
1055
1056         PR c++/7935
1057         PR c++/10541
1058         * cp-support.c (insepct_type): Add support for substituting
1059         namespace aliases, too.
1060         * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1061         for DW_TAG_imported_declaration.
1062         (add_partial_symbol): Likewise.
1063         (process_die): Handle namespace aliases with
1064         read_namespace_alias.
1065         (die_needs_namespace): Add DW_TAG_imported_declaration.
1066         (read_namespace_alias): New function.
1067         (load_partial_dies): Load DW_TAG_imported_declaration, too.
1068         (new_symbol_full): Handle DW_TAG_imported_declaration.
1069
1070 2013-11-13  Keith Seitz  <keiths@redhat.com>
1071
1072         * p-exp.y (uptok): Make first parameter const.
1073         (yylex): Make `tokstart' and `tokptr' const.
1074         Don't copy the lexer input to a temporary buffer.
1075         Make `p' const.
1076         Remove const workaround for parse_escape.
1077         Create a temporary buffer for a convenience variable instead
1078         of doing in-place modification of the input.
1079         If a match is found with a different case from the input,
1080         do not change the input at all.
1081         Use `tmp' to construct the resultant stoken instead of
1082         `tokstart'.
1083
1084 2013-11-13  Doug Evans  <xdje42@gmail.com>
1085
1086         * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1087
1088 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
1089
1090         * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1091         entry with "ada-exceptions".
1092
1093 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
1094
1095         * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1096         after re-initialization of OBJFILE's obstack.
1097
1098 2013-11-12  Doug Evans  <xdje42@gmail.com>
1099
1100         * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1101         bs->stop != 0 on entry.  Update function comment.  Simplify early
1102         exit for frame mismatch.  Reindent rest of function.
1103
1104 2013-11-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1105
1106         * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1107         NULL.
1108
1109 2013-11-12  Doug Evans  <dje@google.com>
1110
1111         Work around gold/15646.
1112         * dwarf2read.c (read_index_from_section): Update comment.
1113         (struct dw2_symtab_iterator): New member global_seen.
1114         (dw2_symtab_iter_init): Initialize it.
1115         (dw2_symtab_iter_next): Skip duplicate global symbols.
1116         (dw2_expand_symtabs_matching): Ditto.
1117
1118 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
1119
1120         * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1121         * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1122         command.
1123         * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1124         (mi_cmd_info_ada_exceptions): New function.
1125         * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1126
1127 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
1128
1129         * ada-lang.h: #include "vec.h".
1130         (struct ada_exc_info): New.
1131         (ada_exc_info): New typedef.
1132         (DEF_VEC_O(ada_exc_info)): New vector.
1133         (ada_exceptions_list): Add declaration.
1134         * ada-lang.c (ada_is_exception_sym)
1135         (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1136         (sort_remove_dups_ada_exceptions_list)
1137         (ada_exc_search_name_matches, ada_add_standard_exceptions)
1138         (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1139         (ada_exceptions_list_1, ada_exceptions_list)
1140         (info_exceptions_command): New function.
1141         (_initialize_ada_language): Add "info exception" command.
1142
1143 2013-11-11  Phil Muldoon  <pmuldoon@redhat.com>
1144
1145         PR python/15629
1146         * NEWS: Add linetable feature.
1147         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1148         * python/py-linetable.c: New file.
1149         * python/py-symtab.c (stpy_get_linetable): New function.
1150         * python/python-internal.h (symtab_to_linetable_object): Declare.
1151         (gdbpy_initialize_linetable): Ditto.
1152         * python/python.c (_initialize_python): Call
1153         gdbpy_initialize_linetable.
1154
1155 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
1156
1157         * ada-lang.c (create_ada_exception_catchpoint): Enhance
1158         the documentation of fields "except_string" and "condition".
1159         * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1160         CONDITION on the heap before passing it to
1161         create_ada_exception_catchpoint.
1162         (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1163         CONDITION.
1164
1165 2013-11-11  Tom Tromey  <tromey@redhat.com>
1166
1167         * config.in, configure: Rebuild.
1168         * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1169
1170 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
1171
1172         * remote-sim.c (gdbsim_detach): Break declaration into
1173         shorter lines.  No code change.
1174
1175 2013-11-11  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1176
1177         * remote-sim.c (gdbsim_detach): Fix prototype.
1178
1179 2013-11-08  Doug Evans  <dje@google.com>
1180
1181         * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1182         (create_debug_types_hash_table): Only print debugging messages for
1183         each TU if dwarf2-read >= 2.
1184         (process_queue): Ditto.
1185         (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1186         Update doc string.
1187
1188 2013-11-08  Tom Tromey  <tromey@redhat.com>
1189
1190         * configure: Rebuild.
1191         * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1192
1193 2013-11-08  Tom Tromey  <tromey@redhat.com>
1194
1195         * configure, config.in: Rebuild.
1196         * configure.ac: Remove unused configury.
1197
1198 2013-11-08  Tom Tromey  <tromey@redhat.com>
1199
1200         * m32c-tdep.c: Use gdb_string.h.
1201
1202 2013-11-08  Tom Tromey  <tromey@redhat.com>
1203
1204         * configure, config.in: Rebuild.
1205         * configure.ac: Remove all link.h-related checks.
1206
1207 2013-11-08  Tom Tromey  <tromey@redhat.com>
1208
1209         * acinclude.m4: Include common.m4.
1210         * common/common.m4: New file.
1211         * configure, config.in: Rebuild.
1212         * configure.ac: Use GDB_AC_COMMON.
1213
1214 2013-11-08  Doug Evans  <dje@google.com>
1215
1216         * NEWS: Mention that "set debug symtab-create" now accepts a
1217         verbosity level.
1218         * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1219         to set the symtab's primary flag.
1220         * jit.c (finalize_symtab): Ditto.
1221         * mdebugread.c (psymtab_to_symtab_1): Ditto.
1222         * symfile.c (allocate_symtab): Only print debugging messages for
1223         symtab_create_debug levels 2 and higher.
1224         * symtab.c (symtab_create_debug): Change type to unsigned int.
1225         (set_symtab_primary): New function.
1226         (_initialize_symtab): Change "set debug symtab-create" to a
1227         zuinteger option.
1228         * symtab.h (set_symtab_primary): Declare.
1229         (symtab_create_debug): Update decl.
1230
1231 2013-11-08  Tom Tromey  <tromey@redhat.com>
1232
1233         * aix-thread.c (aix_thread_detach): Update.
1234         * corelow.c (core_detach): Update.
1235         * darwin-nat.c (darwin_detach): Update.
1236         * dec-thread.c (dec_thread_detach): Update.
1237         * gnu-nat.c (gnu_detach): Update.
1238         * go32-nat.c (go32_detach): Update.
1239         * inf-ptrace.c (inf_ptrace_detach): Update.
1240         * inf-ttrace.c (inf_ttrace_detach): Update.
1241         * linux-fork.c (linux_fork_detach): Update.
1242         * linux-fork.h (linux_fork_detach): Update.
1243         * linux-nat.c (linux_nat_detach): Update.  Introduce "tem"
1244         local for const-correctness.
1245         * linux-thread-db.c (thread_db_detach): Update.
1246         * monitor.c (monitor_detach): Update.
1247         * nto-procfs.c (procfs_detach): Update.
1248         * procfs.c (procfs_detach): Update.
1249         * record.c (record_detach): Update.
1250         * record.h (record_detach): Update.
1251         * remote-m32r-sdi.c (m32r_detach): Update.
1252         * remote-mips.c (mips_detach): Update.
1253         * remote-sim.c (gdbsim_detach): Update.
1254         * remote.c (remote_detach_1, remote_detach)
1255         (extended_remote_detach): Update.
1256         * sol-thread.c (sol_thread_detach): Update.
1257         * target.c (target_detach): Make "args" const.
1258         (init_dummy_target): Update.
1259         * target.h (struct target_ops) <to_detach>: Make argument const.
1260         (target_detach): Likewise.
1261         * windows-nat.c (windows_detach): Update.
1262
1263 2013-11-07  Doug Evans  <dje@google.com>
1264
1265         PR 11786
1266         *  solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1267         and align fields for PT_GNU_RELRO segments.
1268
1269 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
1270
1271         PR python/15747
1272         * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1273
1274 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
1275
1276         * NEWS: Document Python temporary breakpoint support.
1277         * python/py-breakpoint.c (bppy_get_temporary): New function.
1278         (bppy_init): New keyword: temporary. Parse it and set breakpoint
1279         to temporary if True.
1280
1281 2013-11-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
1282
1283         * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1284         removed to allow analyzing unconditional branch instructions
1285         with PC-relative offsets of zero.
1286
1287 2013-11-07  Yao Qi  <yao@codesourcery.com>
1288
1289         * mi/mi-cmd-var.c: Include "language.h".
1290         (mi_cmd_var_info_expression): Get language name from
1291         language_defn.
1292         * varobj.c (varobj_language_string): Remove.
1293         (variable_language): Remove declaration.
1294         (languages): Remove.
1295         (varobj_get_language): Change the type of return value.
1296         (variable_language): Remove.
1297         * varobj.h (enum varobj_languages): Remove.
1298         (varobj_language_string): Remove declaration.
1299         (varobj_get_language): Update declaration.
1300
1301 2013-11-07  Yao Qi  <yao@codesourcery.com>
1302
1303         * language.h (struct language_defn) <la_natural_name>: New
1304         field.
1305         * ada-lang.c (ada_language_defn): Initialize field
1306         'la_natural_name'.
1307         * c-lang.c (c_language_defn): Likewise.
1308         (cplus_language_defn, asm_language_defn): Likewise.
1309         * d-lang.c (d_language_defn): Likewise.
1310         * f-lang.c (f_language_defn): Likewise.
1311         * go-lang.c (go_language_defn): Likewise.
1312         * jv-lang.c (java_language_defn): Likewise.
1313         * language.c (unknown_language_defn ): Likewise.
1314         (auto_language_defn): Likewise.
1315         * m2-lang.c (m2_language_defn): Likewise.
1316         * objc-lang.c (objc_language_defn): Likewise.
1317         * opencl-lang.c (opencl_language_defn): Likewise.
1318         * p-lang.c (pascal_language_defn): Likewise.
1319
1320 2013-11-07  Yao Qi  <yao@codesourcery.com>
1321
1322         * language.c (language_str): Return const char *.
1323         (add_language): Add const to 'language_names'
1324         * language.h (struct language_defn) <la_name>: Add const.
1325         (language_str: Update declaration.
1326
1327 2013-11-06  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1328
1329         * s390-linux-nat.c (s390_read_description): Consider the TE field
1330         in the HWCAP for determining 'have_regset_tdb'.
1331
1332 2013-11-06  Will Newton  <will.newton@linaro.org>
1333
1334         PR gdb/12866
1335         * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1336         values.  (read_partial_die): Likewise.
1337
1338 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
1339
1340         PR cli/16122
1341         * top.c (command_line_input): Unify interactivity tests to use
1342         input_from_terminal_p.
1343         * event-top.c (command_line_handler): Likewise.
1344
1345 2013-11-06  Yao Qi  <yao@codesourcery.com>
1346
1347         * Makefile.in (check-perf): New target.
1348
1349 2013-11-05  Will Newton  <will.newton@linaro.org>
1350
1351         PR gdb/7670
1352         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1353         (arm_print_float_info): Likewise.
1354
1355 2013-11-04  Anton Blanchard  <anton@samba.org>
1356
1357         * target.c (memory_xfer_partial): Cap write to 4KB.
1358
1359 2013-11-01  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1360
1361         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1362         probe scan even when the arch provides no get_longjmp_target.
1363
1364 2013-10-31  Pedro Alves  <palves@redhat.com>
1365
1366         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1367         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1368         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1369         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
1370         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1371         <bpstat handling>: If the bpstat chain wants the signal to be
1372         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1373         GDB_SIGNAL_TRAP.
1374
1375 2013-10-31  Andrew Burgess  <aburgess@broadcom.com>
1376
1377         * breakpoint.c (update_watchpoint): Update error message and add
1378         an additional error message.
1379
1380 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1381
1382         * s390-tdep.h: Rename to...
1383         * s390-linux-tdep.h: ...here.
1384         * s390-tdep.c: Rename to...
1385         * s390-linux-tdep.c: ...here.  Adjust #include.
1386         * s390-nat.c: Rename to...
1387         * s390-linux-nat.c: ...here.  Adjust #include.
1388         * config/s390/s390.mh: Rename to...
1389         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
1390         s390-linux-nat.o.
1391         * configure.host: Reflect host rename "s390" -> "linux".
1392         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1393         * Makefile.in (ALL_TARGET_OBS): Likewise.
1394         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1395         s390-linux-tdep.h.
1396         (ALLDEPFILES): Reflect rename of .c files.
1397
1398 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1399
1400         * s390-nat.c: Whitespace cleanup.
1401         * s390-tdep.c: Likewise.
1402         * s390-tdep.h: Remove empty line at end of file.
1403
1404 2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
1405
1406         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1407         siginfo_size.
1408
1409 2013-10-29  Tom Tromey  <tromey@redhat.com>
1410
1411         * utils.c (reg): Move undefinition...
1412         * gdb_curses.h: ... here.  Update comment to mention AIX.
1413
1414 2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>
1415
1416         * exec.h (add_target_sections_of_objfile): New declaration.
1417         * exec.c (add_target_sections_of_objfile): New function.
1418         * symfile.c (add_symbol_file_command): Update current target sections.
1419         (remove_symbol_file_command): New command.
1420         (symfile_free_objfile): New function.
1421         (_initialize_symfile): Register observer for free_objfile events.
1422         * NEWS: Add description of the remove-symbol-file command.
1423         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1424         * objfiles.c (free_objfile): Notify free_objfile.
1425         (is_addr_in_objfile): New function.
1426         * objfiles.h (is_addr_in_objfile): New declaration.
1427         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1428         events instead of solib_unloaded events.
1429         (_initialize_printcmd): Register observer for free_objfile instead
1430         of solib_unloaded notifications.
1431         * solib.c (remove_user_added_objfile): New function.
1432         (_initialize_symfile): Add remove-symbol-file.
1433
1434 2013-10-29  Andrew Burgess  <aburgess@broadcom.com>
1435
1436         * infcmd.c (default_print_one_register_info): Use val_print to
1437         print all values even optimized out or unavailable ones.  Don't
1438         try to print a raw form of optimized out or unavailable values.
1439
1440 2013-10-29  Yao Qi  <yao@codesourcery.com>
1441
1442         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1443         parameter 'arg' instead of from program_space_data.
1444         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1445         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1446         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1447         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1448         * inflow.c (inflow_inferior_data_cleanup): Get data from
1449         parameter 'arg' instead of inferior_data.
1450         * registry.h: Add comments.
1451
1452 2013-10-28  Pedro Alves  <palves@redhat.com>
1453
1454         * breakpoint.c (watchpoints_triggered)
1455         <!target_stopped_data_address>: Hardcode return 1.
1456
1457 2013-10-28  Pedro Alves  <palves@redhat.com>
1458
1459         * infrun.c (process_event_stop_test): Remove unnecessary scoping
1460         level and reindent.
1461
1462 2013-10-28  Pedro Alves  <palves@redhat.com>
1463
1464         * infrun.c (process_event_stop_test): New function, factored out
1465         from handle_inferior_event.
1466         (handle_inferior_event): 'process_event_stop_test' is now a
1467         function instead of a goto label -- adjust.
1468
1469 2013-10-28  Pedro Alves  <palves@redhat.com>
1470
1471         * infrun.c (handle_inferior_event): Move process_event_stop_test
1472         goto label to the else branch of the ecs->random_signal check,
1473         along with FRAME and GDBARCH re-fetching.
1474
1475 2013-10-28  Pedro Alves  <palves@redhat.com>
1476
1477         * infrun.c (switch_back_to_stepped_thread): New function, factored
1478         out from handle_inferior_event.
1479         (handle_inferior_event): Adjust to call
1480         switch_back_to_stepped_thread.  Call it also at the tail of the
1481         random signal handling, and return, instead of also handling
1482         random signals just before the stepping tests.
1483
1484 2013-10-28  Pedro Alves  <palves@redhat.com>
1485
1486         * infrun.c (clear_stop_func): Delete.
1487         (handle_inferior_event): Don't call clear_stop_func and don't
1488         clear 'ecs->random_signal'.
1489
1490 2013-10-27  Yao Qi  <yao@codesourcery.com>
1491
1492         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1493         (varobj_create, varobj_get_path_expr): Update.
1494         (varobj_value_has_mutated, varobj_update): Likewise.
1495         (create_child_with_value, new_root_variable): Likewise.
1496         (number_of_children, name_of_variable): Likewise.
1497         (value_of_child, my_value_of_variable): Likewise.
1498         (varobj_value_is_changeable_p): Likewise.
1499
1500 2013-10-25  Yao Qi  <yao@codesourcery.com>
1501
1502         * language.h (struct lang_varobj_ops): Declare.
1503         (struct language_defn) <la_varobj_ops>: New field.
1504         * ada-lang.c: Include "varobj.h"
1505         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1506         ada_varobj_ops.
1507         * c-lang.c: Include "varobj.h"
1508         (c_language_defn): Initialize field 'la_varobj_ops' with
1509         c_varobj_ops.
1510         (cplus_language_defn): Initialize field 'la_varobj_ops' with
1511         cplus_varobj_ops.
1512         (asm_language_defn): Initialize field 'la_varobj_ops' with
1513         default_varobj_ops.
1514         (minimal_language_defn): Likewise.
1515         * d-lang.c (d_language_defn): Likewise.
1516         * f-lang.c (f_language_defn): Likewise.
1517         * go-lang.c (go_language_defn): Likewise.
1518         * m2-lang.c (m2_language_defn): Likewise.
1519         * objc-lang.c (objc_language_defn): Likewise.
1520         * opencl-lang.c (opencl_language_defn): Likewise.
1521         * p-lang.c (pascal_language_defn): Likewise.
1522         * language.c (unknown_language_defn): Likewise.
1523         (auto_language_defn): Likewise.
1524         (local_language_defn): Likewise.
1525         * jv-lang.c (java_language_defn): Initialize field
1526         'la_varobj_ops' with java_varobj_ops.
1527         * varobj.c (varobj_create): Update.
1528         * varobj.h (default_varobj_ops): Define macro.
1529
1530 2013-10-25  Pedro Alves  <palves@redhat.com>
1531
1532         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1533         static field value.
1534         (cp_print_static_field): If the value is entirely optimized out,
1535         print <optimized out> here.
1536         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1537         static field value.
1538         * p-valprint.c (pascal_object_print_static_field): If the value is
1539         entirely optimized out, print <optimized out> here.
1540         * valops.c (do_search_struct_field)
1541         (value_struct_elt_for_reference): No longer handle a NULL static
1542         field value.
1543         * value.c (value_static_field): Return an optimized out value
1544         instead of NULL.
1545
1546 2013-10-25  Yao Qi  <yao@codesourcery.com>
1547
1548         * remote.c (remote_traceframe_info): Return early if
1549         traceframe is not selected.
1550
1551 2013-10-25  Yao Qi  <yao@codesourcery.com>
1552
1553         * tracepoint.c (traceframe_fun): Remove.
1554         (traceframe_sal): Remove.
1555         (set_traceframe_context): Add local variables.
1556
1557 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
1558
1559         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1560         and parameter name.
1561
1562 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
1563
1564         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1565         failure from register information collection.
1566
1567 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
1568
1569         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1570         member.
1571         (linux_corefile_thread_callback): Update accordingly.
1572         (linux_make_corefile_notes): Likewise.
1573
1574 2013-10-24  Pedro Alves   <palves@redhat.com>
1575
1576         * NEWS (New options): Mention set/show startup-with-shell.
1577         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1578         instead of 3.
1579         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1580         startup-with-shell'.
1581         (show_startup_with_shell): New function.
1582         (_initialize_fork_child): Register the set/show startup-with-shell
1583         commands.
1584         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1585         * inf-ttrace.c (inf_ttrace_him): Remove comment.
1586         * procfs.c (procfs_init_inferior): Remove comment.
1587         * infcmd.c (startup_with_shell): New global.
1588         * inferior.h (startup_with_shell): Declare global.
1589         (STARTUP_WITH_SHELL): Delete.
1590         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1591
1592 2013-10-23  Pedro Alves  <palves@redhat.com>
1593
1594         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1595         * common/signals.c: Include "gdb_assert.h".
1596         (signals): New field 'symbol'.
1597         (SET): Use the 'symbol' parameter.
1598         (gdb_signal_to_symbol_string): New function.
1599         * infrun.c (handle_inferior_event) <random signal>: In debug
1600         output, print the random signal enum as string in addition to its
1601         number.
1602         * target/waitstatus.c (target_waitstatus_to_string): Print the
1603         signal's enum value as string instead of the (POSIX) signal name.
1604
1605 2013-10-23  Gary Benson  <gbenson@redhat.com>
1606
1607         PR 16013
1608         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1609         from 32 to 18.  Adjusted fscanf format string accordingly.
1610         (Avoids leaving cmd unterminated.)
1611         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1612         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
1613         that local_address and remote_address will not overflow.
1614         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1615         leaving dependencies unterminated.  Parse size as "%u" to match
1616         definition.
1617
1618 2013-10-22  Pedro Alves  <palves@redhat.com>
1619
1620         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1621         set ecs->random signal.
1622
1623 2013-10-22  Pedro Alves  <palves@redhat.com>
1624
1625         * infrun.c (keep_going): Update comments.
1626
1627 2013-10-22  Pedro Alves  <palves@redhat.com>
1628
1629         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1630         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1631
1632 2013-10-22  Pedro Alves  <palves@redhat.com>
1633
1634         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1635         GDB_EXC_BAD_ACCESS.
1636         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1637         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1638         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1639         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1640         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1641         (GDB_SIGNAL_LAST): Change description string.
1642         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1643         Adjust to signal renaming.
1644         * darwin-nat.c (darwin_decode_message): Likewise.
1645
1646 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
1647
1648         * MAINTAINERS (Write After Approval): Add myself to the list.
1649
1650 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
1651
1652         * breakpoint.c (update_watchpoint): If hardware watchpoints are
1653         forced off, downgrade them to software watchpoints if possible,
1654         and error out if not possible.
1655         (watch_command_1): Move watchpoint type selection closer to
1656         watchpoint creation, and extend the comments.
1657
1658 2013-10-18  Pedro Alves  <palves@redhat.com>
1659
1660         PR gdb/16062
1661         * infrun.c (handle_inferior_event): Keep going if we got a random
1662         signal we should not stop for, instead of falling through to the
1663         step tests.
1664
1665 2013-10-18  Yao Qi  <yao@codesourcery.com>
1666
1667         * c-varobj.c (cplus_number_of_children): Fix indentation.
1668
1669 2013-10-17  Tom Tromey  <tromey@redhat.com>
1670
1671         PR gdb/15995:
1672         * printcmd.c (printcmd): Call gdb_flush.
1673
1674 2013-10-17  Tom Tromey  <tromey@redhat.com>
1675
1676         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1677         (elf_locate_sections): Update.
1678
1679 2013-10-17  Yao Qi  <yao@codesourcery.com>
1680
1681         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1682         * ada-varobj.c: Remove the include of ada-varobj.h.
1683         (ada_varobj_get_number_of_children): Declare.
1684         (ada_varobj_get_name_of_child): Make it static.
1685         (ada_varobj_get_path_expr_of_child): Likewise.
1686         (ada_varobj_get_value_of_child): Likewise.
1687         (ada_varobj_get_type_of_child): Likewise.
1688         (ada_varobj_get_value_of_array_variable): Likewise.
1689         * ada-varobj.h: Remove.
1690
1691 2013-10-17  Yao Qi  <yao@codesourcery.com>
1692
1693         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1694         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1695         * ada-varobj.c: Include "varobj.h".
1696         (ada_number_of_children): New.  Moved from varobj.c.
1697         (ada_name_of_variable, ada_name_of_child): Likewise.
1698         (ada_path_expr_of_child, ada_value_of_child): Likewise.
1699         (ada_type_of_child, ada_value_of_variable): Likewise.
1700         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1701         (ada_varobj_ops): New.
1702         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
1703         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
1704         * gdbtypes.h (get_target_type): Declare.
1705         * varobj.c: Remove the inclusion of "ada-varobj.h" and
1706         "ada-lang.h".
1707         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1708         (ANONYMOUS_UNION_NAME): Likewise.
1709         (get_type, get_value_type, get_target_type): Remove declarations.
1710         (value_get_print_value, varobj_value_get_print_value): Likewise.
1711         (c_number_of_children, c_name_of_variable): Likewise.
1712         (c_name_of_child, c_path_expr_of_child): Likewise.
1713         (c_value_of_child, c_type_of_child): Likewise.
1714         (c_value_of_variable, cplus_number_of_children): Likewise.
1715         (cplus_class_num_children, cplus_name_of_variable): Likewise.
1716         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1717         (cplus_value_of_child, cplus_type_of_child): Likewise.
1718         (cplus_value_of_variable, java_number_of_children): Likewise.
1719         (java_name_of_variable, java_name_of_child): Likewise.
1720         (java_path_expr_of_child, java_value_of_child): Likewise.
1721         (java_type_of_child, java_value_of_variable): Likewise.
1722         (ada_number_of_children, ada_name_of_variable): Likewise.
1723         (ada_name_of_child, ada_path_expr_of_child): Likewise.
1724         (ada_value_of_child, ada_type_of_child): Likewise.
1725         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1726         (ada_value_has_mutated): Likewise.
1727         (struct language_specific): Move it to varobj.h.
1728         (CPLUS_FAKE_CHILD): Move it to varobj.h.
1729         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
1730         Callers update.
1731         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1732         Make it extern.
1733         (is_anonymous_child): Move it to c-varobj.c and rename to
1734         varobj_is_anonymous_child.  Caller update.
1735         (get_type): Move it to c-varobj.c.
1736         (get_value_type): Rename it varobj_get_value_type.  Make it
1737         extern.
1738         (get_target_type): Move it gdbtypes.c.
1739         (varobj_formatted_print_options): New function.
1740         (value_get_print_value): Rename it to
1741         varobj_value_get_print_value and make it extern.
1742         (varobj_value_is_changeable_p): Make it extern.
1743         (adjust_value_for_child_access): Move it to c-varobj.c.
1744         (default_value_is_changeable_p): Rename it to
1745         varobj_default_value_is_changeable_p.  Make it extern.
1746         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1747         (c_name_of_child, c_path_expr_of_child): Likewise.
1748         (c_value_of_child, c_type_of_child): Likewise.
1749         (c_value_of_variable, cplus_number_of_children): Likewise.
1750         (cplus_class_num_children, cplus_name_of_variable): Likewise.
1751         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1752         (cplus_value_of_child, cplus_type_of_child): Likewise.
1753         (cplus_value_of_variable): Likewise.
1754         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1755         (java_name_of_child, java_path_expr_of_child): Likewise.
1756         (java_value_of_child, java_type_of_child): Likewise.
1757         (java_value_of_variable): Likewise.
1758         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1759         (ada_name_of_child, ada_path_expr_of_child): Likewise.
1760         (ada_value_of_child, ada_type_of_child): Likewise.
1761         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1762         (ada_value_has_mutated): Likewise.
1763         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1764         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
1765         (c_varobj_ops, cplus_varobj_ops): Declare.
1766         (java_varobj_ops, ada_varobj_ops): Declare.
1767         (varobj_default_value_is_changeable_p): Declare.
1768         (varobj_value_is_changeable_p): Declare.
1769         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1770         (varobj_get_path_expr_parent): Declare.
1771         (varobj_value_get_print_value): Declare.
1772         (varobj_formatted_print_options): Declare.
1773         (varobj_restrict_range): Declare.
1774
1775 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
1776
1777         * target/waitstatus.h (target_waitkind): Remove spurious
1778         character from the comments.
1779
1780 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
1781
1782         * gdbarch.sh (get_longjmp_target): Add method documentation.
1783         * gdbarch.h: Regenerate.
1784
1785 2013-10-16  Tom Tromey  <tromey@redhat.com>
1786
1787         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1788         label.
1789
1790 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
1791
1792         * gcore.in: Call GDB using the full path to the gcore script.
1793         Error out if the GDB binary is not found.
1794
1795 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1796
1797         PR gdb/16014
1798         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1799         sizeof.
1800
1801 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1802
1803         PR gdb/16042
1804         * target.c (target_disable_btrace): Fix invalid return value for
1805         void function.
1806         (target_teardown_btrace): Likewise.
1807
1808 2013-10-14  Yao Qi  <yao@codesourcery.com>
1809
1810         * varobj.c (struct varobj): Move most of the fields to
1811         varobj.h.
1812         (struct varobj_dynamic): New struct.
1813         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1814         (varobj_has_more): Likewise.
1815         (dynamic_varobj_has_child_method): Likewise.
1816         (update_dynamic_varobj_children): Likewise.
1817         (varobj_get_num_children): Likewise.
1818         (varobj_list_children, varobj_pretty_printed_p): Likewise.
1819         (install_new_value_visualizer): Likewise.
1820         (install_new_value_visualizer, install_new_value): Likewise.
1821         (varobj_update, new_variable, free_variable): Likewise.
1822         (my_value_of_variable, value_get_print_value): Likewise.
1823         (install_visualizer): Change the type of parameter 'var' to
1824         'struct varobjd_dynamic *'.  Callers update.
1825         * varobj.h (struct varobj): Moved from varobj.c.
1826         (struct varobj) <dynamic>: New field.
1827
1828 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
1829
1830         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1831         as the preferred name of r30.
1832         * nios2-linux-tdep.c (reg_offsets): Likewise.
1833         * features/nios2-cpu.xml: Likewise.
1834         * features/nios2-linux.c: Regenerated.
1835         * features/nios2.c: Regenerated.
1836         * regformats/nios2-linux.dat: Regenerated.
1837
1838 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1839
1840         Canonicalize directories for EXEC_FILENAME.
1841         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1842         exec_filename.
1843         * utils.c (gdb_realpath_keepfile): New function.
1844         * utils.h (gdb_realpath_keepfile): New declaration.
1845
1846 2013-10-11  Doug Evans  <dje@google.com>
1847
1848         * Makefile.in (GDBFLAGS): New variable.
1849         (run): New rule.
1850
1851 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1852
1853         * NEWS: Add entry documenting the new "-catch-assert" and
1854         "-catch-exception" GDB/MI commands.
1855
1856 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1857
1858         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1859         "enabled".
1860         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1861         "enabled".  Set B->ENABLE_STATE accordingly.
1862         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1863         ada-lang.c.
1864         (create_ada_exception_catchpoint): Add declaration.
1865         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1866         (create_ada_exception_catchpoint): Make non-static. Add new
1867         parameter "disabled". Use it in call to
1868         init_ada_exception_breakpoint.
1869         (catch_ada_exception_command): Add parameter "enabled" in call
1870         to create_ada_exception_catchpoint.
1871         (catch_assert_command): Likewise.
1872
1873         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1874         Add declarations.
1875         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1876         "catch-exception" commands.
1877         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1878         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1879
1880 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1881
1882         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1883         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
1884         of all its enumerates with "ada_".  Update the rest of this
1885         file throughout.
1886
1887 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1888
1889         * ada-lang.c (ada_decode_exception_location): Delete.
1890         (create_ada_exception_catchpoint): Remove arguments "sal",
1891         "addr_string" and "ops".  Add argument "ex_kind" instead.
1892         Adjust implementation accordingly, calling ada_exception_sal
1893         to get the entities it no longer gets passed as arguments.
1894         Document the function's arguments.
1895         (catch_ada_exception_command): Use catch_ada_exception_command_split
1896         instead of ada_decode_exception_location, and update call to
1897         create_ada_exception_catchpoint.
1898         (catch_ada_assert_command_split): Renames
1899         ada_decode_assert_location.  Remove parameters "addr_string" and
1900         "ops", and now returns void.  Adjust implementation accordingly.
1901         Update the function documentation.
1902         (catch_assert_command): Use catch_ada_assert_command_split
1903         instead of ada_decode_assert_location.  Update call to
1904         create_ada_exception_catchpoint.
1905
1906 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1907
1908         * utils.h (perror_warning_with_name): Add declaration.
1909         * utils.c (perror_warning_with_name): New function.
1910         * cli/cli-cmds.c (source_script_with_search): Add call to
1911         perror_warning_with_name if from_tty is nul.
1912
1913 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
1914
1915         * utils.c (perror_string): New function, extracted out of
1916         throw_perror_with_name.
1917         (throw_perror_with_name): Rework to use perror_string.
1918
1919 2013-10-11  Yao Qi  <yao@codesourcery.com>
1920
1921         * remote.c (discard_pending_stop_replies_in_queue): Update
1922         declaration.
1923         (struct stop_reply) <rs>: New field.
1924         (remove_stop_reply_of_remote_state): New function.
1925         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1926         Callers update.  Pass remove_stop_reply_of_remote_state to
1927         QUEUE_iterate.
1928         (remote_parse_stop_reply): Initialize field 'rs'.
1929
1930 2013-10-10  Will Newton  <will.newton@linaro.org>
1931
1932         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1933         linux_init_abi.
1934
1935 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
1936
1937         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1938         serial_baud_show_cmd.
1939         (_initialize_cli_cmds): Delete the code creating the
1940         "set/show remotebaud" commands.
1941         * serial.c (baud_rate): Move here from top.c.
1942         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1943         (_initialize_serial): Create "set/show serial baud" commands.
1944         Add "set/show remotebaud" command aliases.
1945         * top.c (baud_rate): Moved to serial.c.
1946         * NEWS: Document the new "set/show serial baud" commands,
1947         replacing "set/show remotebaud".
1948
1949 2013-10-09  Pedro Alves  <palves@redhat.com>
1950
1951         * breakpoint.c (insert_bp_location): Use memory_error_message to
1952         build the memory error string.
1953         * c-lang.c: Include "gdbcore.h".
1954         (c_get_string): Use memory_error to throw error.
1955         (target_xfer_memory_error): Delete.
1956         (memory_error_message): New, factored out from
1957         target_xfer_memory_error.
1958         (memory_error): Change parameter type to target_xfer_error.
1959         Rewrite.
1960         (read_memory): Use memory_error instead of
1961         target_xfer_memory_error.
1962         * gdbcore.h: Include "target.h".
1963         (memory_error): Change parameter type to target_xfer_error.
1964         (memory_error_message): Declare function.
1965         * target.c (target_read_memory, target_read_stack)
1966         (target_write_memory, target_write_raw_memory): Return
1967         TARGET_XFER_E_IO on error.  Adjust comments.
1968         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1969         instead of EIO.
1970         * target.h (target_read, target_insert_breakpoint)
1971         (target_remove_breakpoint): Adjust comments.
1972         * valprint.c (partial_memory_read): Rename parameter, and adjust
1973         comment.
1974         (val_print_string): Use memory_error_message to build the memory
1975         error string.
1976
1977 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1978
1979         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1980         result variable.  Rename variable fopen_e_ever_failed to
1981         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
1982
1983 2013-10-09  Pedro Alves  <palves@redhat.com>
1984
1985         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1986         (monitor_write_memory_longlongs, monitor_write_memory_block):
1987         Constify 'myaddr' parameter.
1988         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1989         helper.
1990         (monitor_xfer_partial): New function.
1991         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1992         hook.  Install a to_xfer_partial hook.
1993
1994 2013-10-09  Tom Tromey  <tromey@redhat.com>
1995
1996         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1997         bfd_get_alt_debug_link_info.
1998
1999 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2000
2001         New flag OBJF_NOT_FILENAME.
2002         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2003         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2004         allocate_objfile.
2005         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2006         symbol_file_add_from_bfd.
2007         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2008         allocate_objfile.
2009         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2010         NULL.
2011         * objfiles.h (OBJF_NOT_FILENAME): New.
2012
2013 2013-10-08  Tom Tromey  <tromey@redhat.com>
2014
2015         * Makefile.in (SFILES): Add build-id.c.
2016         (HFILES_NO_SRCDIR): Add build-id.h.
2017         * build-id.c: New file, largely from elfread.c.  Modified
2018         most functions.
2019         * build-id.h: New file.
2020         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2021         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
2022         Search for dwz file using build-id.
2023         * elfread.c (build_id_bfd_get, build_id_verify)
2024         (build_id_to_debug_filename, find_separate_debug_file): Remove.
2025
2026 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
2027
2028         * ada-lang.c (compare_names_with_case): Renamed from
2029         compare_names, adding a new parameter "casing" and its handling.
2030         New function documentation.
2031         (compare_names): New function, implemented using
2032         compare_names_with_case.
2033
2034 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
2035
2036         * ada-lang.c (ada_exception_sal): Remove advance declaration.
2037
2038 2013-10-07  Tom Tromey  <tromey@redhat.com>
2039
2040         * objfiles.c (free_objfile_per_bfd_storage): Delete the
2041         demangled_names_hash.
2042         (free_objfile): Don't delete the demangled_names_hash.
2043         * objfiles.h (struct objfile_per_bfd_storage)
2044         <demangled_names_hash>: New field.
2045         (struct objfile) <demangled_names_hash>: Move to
2046         objfile_per_bfd_storage.
2047         * symfile.c (reread_symbols): Don't delete the
2048         demangled_names_hash.
2049         * symtab.c (create_demangled_names_hash): Update.
2050         (symbol_set_names): Update.
2051
2052 2013-10-07  Tom Tromey  <tromey@redhat.com>
2053
2054         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2055         needs_relocations>: New fields.
2056         (gdb_bfd_requires_relocations): New function.
2057         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2058         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2059         the BFD needs relocations applied.
2060
2061 2013-10-07  Pedro Alves  <palves@redhat.com>
2062
2063         PR breakpoints/11568
2064         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2065         the thread list" instead of "gone".
2066
2067 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
2068
2069         * NEWS: Mention new convenience variable $_exitsignal.
2070         * corelow.c (core_open): Reset exit convenience variables.  Set
2071         $_exitsignal to the uncaught signal which generated the corefile.
2072         * infrun.c (handle_inferior_event): Reset exit convenience
2073         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2074         (clear_exit_convenience_vars): New function.
2075         * inferior.h (clear_exit_convenience_vars): New prototype.
2076
2077 2013-10-06  Yao Qi  <yao@codesourcery.com>
2078
2079         * varobj.h: Add comments to enum varobj_languages.
2080
2081 2013-10-04  Doug Evans  <dje@google.com>
2082
2083         Add support for DWP file format version 2.
2084         * NEWS: Mention support for DWP file format version 2.
2085         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2086         union of asection, containing_section.  New fields virtual_offset
2087         and is_virtual.  Change type of readin filed from int to char.
2088         (dwo_sections, dwo_file): Tweak comments.
2089         (dwp_v2_section_ids): New enum.
2090         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2091         str_offsets, types.
2092         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2093         All uses updated.
2094         (virtual_v2_dwo_sections): New struct.
2095         (dwp_hash_table): New fields version, nr_columns.  Change type of
2096         section_pool field to a union.
2097         (dwp_file): New field version.
2098         (dwarf2_has_info): Check for virtual sections.
2099         (get_containing_section): New function.
2100         (get_section_bfd_owner, get_section_bfd_section): Call it.
2101         (dwarf2_locate_sections): Update.
2102         (dwarf2_section_empty_p): Update.
2103         (dwarf2_read_section): Handle virtual sections.
2104         (locate_dwz_sections): Update.
2105         (create_dwp_hash_table): Document and handle V2 format.
2106         (locate_v1_virtual_dwo_sections): Renamed from
2107         locate_virtual_dwo_sections and update.  All callers updated.
2108         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2109         Delete arg htab.  Rename arg section_index to unit_index.
2110         All callers updated.
2111         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2112         All uses updated.
2113         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2114         (lookup_dwo_unit_in_dwp): Add V2 support.
2115         (dwarf2_locate_dwo_sections): Update.
2116         (dwarf2_locate_common_dwp_sections): Renamed from
2117         dwarf2_locate_dwp_sections and update.  All callers updated.
2118         (dwarf2_locate_v2_dwp_sections): New function.
2119         (open_and_init_dwp_file): Add V2 support.
2120         (read_str_index): New locals str_section, str_offsets_section.
2121
2122 2013-10-04  Pedro Alves  <palves@redhat.com>
2123
2124         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2125         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2126         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2127         describing comments with references to ptid.h.
2128         * common/ptid.h: Remove intro description of constructors,
2129         accessors and predicates.
2130         (struct ptid): Reformat.
2131         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2132         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2133         describing comments.
2134
2135 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2136
2137         * aix-thread.c (sync_threadlists): Add missing ')' in call
2138         to ptid_build.
2139
2140 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2141
2142         * procfs.c (procfs_init_inferior): Fix typo causing the build
2143         to fail.
2144
2145 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2146
2147         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2148
2149 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2150
2151         * mi/mi-main.c (run_one_inferior): Add function description.
2152         Make ARG a pointer to an integer whose value determines whether
2153         we should "run" or "start" the program.
2154         (mi_cmd_exec_run): Add handling of the "--start" option.
2155         Reject all other command-line options.
2156         * NEWS: Add entry for "-exec-run"'s new "--start" option.
2157
2158 2013-10-04  Yao Qi  <yao@codesourcery.com>
2159
2160         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2161         (struct notif_client) <pending_event>: Moved
2162         to struct remote_notif_state.
2163         <id>: New field.
2164         (struct remote_notif_state) <pending_event>: New field.
2165         (notif_event_xfree): Declare.
2166         * remote-notif.c (handle_notification): Adjust.
2167         (notif_event_xfree): New function.
2168         (do_notif_event_xfree): Call notif_event_xfree.
2169         (remote_notif_state_xfree): Call notif_event_xfree to free
2170         each element in field pending_event.
2171         * remote.c (discard_pending_stop_replies): Remove declaration.
2172         (discard_pending_stop_replies_in_queue): Declare.
2173         (remote_close): Call discard_pending_stop_replies_in_queue
2174         instead of discard_pending_stop_replies.
2175         (remote_start_remote): Adjust.
2176         (stop_reply_xfree): Call notif_event_xfree.
2177         (notif_client_stop): Adjust initialization.
2178         (remote_notif_remove_all): Rename it to ...
2179         (remove_stop_reply_for_inferior): ... this.  Update comments.
2180         Don't check INF is NULL.
2181         (discard_pending_stop_replies): Return early if notif_state is
2182         NULL.  Adjust.  Don't check INF is NULL.
2183         (remote_notif_get_pending_events): Adjust.
2184         (discard_pending_stop_replies_in_queue): New function.
2185         (remote_wait_ns): Likewise.
2186
2187 2013-10-04  Yao Qi  <yao@codesourcery.com>
2188
2189         * remote-notif.c (DECLARE_QUEUE_P): Remove.
2190         (notif_queue): Remove.
2191         (remote_notif_process): Add one parameter 'notif_queue'.
2192         Update comments.  Callers update.
2193         (remote_async_get_pending_events_token): Remove.
2194         (remote_notif_register_async_event_handler): Remove.
2195         (remote_notif_unregister_async_event_handler): Remove.
2196         (handle_notification): Add parameter 'notif_queue'.  Update
2197         comments.  Callers update.
2198         (notif_xfree): Remove.
2199         (remote_notif_state_allocate): New function.
2200         (remote_notif_state_xfree): New function.
2201         (_initialize_notif): Remove code to allocate queue.
2202         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2203         (struct remote_notif_state): New.
2204         (handle_notification): Update declaration.
2205         (remote_notif_process): Likewise.
2206         (remote_notif_register_async_event_handler): Remove.
2207         (remote_notif_unregister_async_event_handler): Remove.
2208         (remote_notif_state_allocate): Declare.
2209         (remote_notif_state_xfree): Declare.
2210         * remote.c (struct remote_state) <notif_state>: New field.
2211         (remote_close): Don't call
2212         remote_notif_unregister_async_event_handler.  Call
2213         remote_notif_state_xfree.
2214         (remote_open_1): Don't call
2215         remote_notif_register_async_event_handler.  Call
2216         remote_notif_state_allocate.
2217
2218 2013-10-04  Yao Qi  <yao@codesourcery.com>
2219
2220         * varobj.c (create_child_with_value): Remove 'const' from the
2221         type of parameter 'name'.
2222         (varobj_add_child): Likewise.
2223         (install_dynamic_child): Remove 'const' from the type of
2224         parameter 'name'.
2225         (varobj_add_child): Likewise.
2226         (create_child_with_value): Likewise.  Update comments.  Don't
2227         duplicate 'name'.
2228         (update_dynamic_varobj_children): Duplicate 'name'
2229         and pass it to install_dynamic_child.
2230
2231 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
2232
2233         * python/py-value.c (convert_value_from_python): Move PyInt_Check
2234         conversion logic to occur after PyLong_Check.  Comment on order
2235         change significance.
2236         * python/py-arch.c (archpy_disassemble): Comment on order of
2237         conversion for integers and longs.
2238
2239 2013-10-03  Pedro Alves  <palves@redhat.com>
2240
2241         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2242         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2243         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
2244         PTRACE_O_TRACEFORK is not supported.
2245         (linux_test_for_tracesysgood): New function.
2246         (linux_test_for_tracefork): New function, factored out from
2247         linux_check_ptrace_features, and also don't kill child_pid here.
2248
2249 2013-10-03  Tristan Gingold  <gingold@adacore.com>
2250
2251         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2252         Remove verbose error reporting.  Use detected state to
2253         thread_set_state call.
2254         (i386_darwin_dr_get): Fix return type.  Remove verbose error
2255         report.
2256         Remove trailing spaces.
2257
2258 2013-10-02  Pedro Alves  <palves@redhat.com>
2259
2260         * cp-valprint.c (cp_print_value_fields): Adjust calls to
2261         val_print_optimized_out.
2262         * jv-valprint.c (java_print_value_fields): Likewise.
2263         * p-valprint.c (pascal_object_print_value_fields): Likewise.
2264         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2265         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2266         new optimized out value.
2267         * findvar.c (address_from_register): Likewise.
2268         * frame.c (put_frame_register): Tweak error string to say the
2269         register was not saved, rather than optimized out.
2270         * infcmd.c (default_print_one_register_info): Adjust call to
2271         val_print_optimized_out.  Use value_of_register instead of
2272         get_frame_register_value.
2273         * mi/mi-main.c (output_register): Use value_of_register instead of
2274         get_frame_register_value.
2275         * valprint.c (valprint_check_validity): Likewise.
2276         (val_print_optimized_out): New value parameter.  If the value is
2277         lval_register, print <not saved> instead.
2278         (value_check_printable, val_print_scalar_formatted): Adjust calls
2279         to val_print_optimized_out.
2280         * valprint.h (val_print_optimized_out): New value parameter.
2281         * value.c (struct value) <optimized_out>: Extend comment.
2282         (error_value_optimized_out): New function.
2283         (require_not_optimized_out): Use it.  Use a different string for
2284         lval_register values.
2285         * value.h (error_value_optimized_out): New declaration.
2286         * NEWS: Mention <not saved>.
2287
2288 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
2289
2290         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2291         strcmp to compare two symtab filenames.
2292
2293 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
2294
2295         * symtab.c (search_symbols_equal): Delete.
2296         (sort_search_symbols_remove_dups): Replace call to
2297         search_symbols_equal by call to compare_search_syms,
2298         adjusting as necessary.
2299
2300 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
2301
2302         PR python/15579
2303         * python/python.c: Document gdb.execute command in Python help.
2304
2305 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
2306
2307         * python/py-frame.c (frame_info_to_frame_object): Use
2308         gdbpy_convert_exception. Clean up Python object on failure.
2309
2310 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
2311
2312         * python/lib/gdb/command/frame_filters.py
2313         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2314         (ShowFrameFilterPriority.invoke): Ditto.
2315
2316 2013-10-01  Keith Seitz  <keiths@redhat.com>
2317
2318         * linespec.c (struct ls_parser): Make 'saved_arg' const.
2319         (parse_linespec): Make 'argptr' const.
2320         Remove temporary cast of 'argptr' to const char **.
2321         (decode_line_full): Pass const pointer to parse_linespec.
2322         (decode_line_1): Likewise.
2323         (decode_objc): Make local variable 'new_argptr' const.
2324         (find_function_symbols): Remove temporary cast to char *
2325         to find_imps.
2326         * objc-lang.c (find_imps): Make argument 'method' const.
2327         Return const.
2328         * objc-lang.h (find_imps): Likewise.
2329
2330 2013-10-01  Keith Seitz  <keiths@redhat.com>
2331
2332         * completer.c (skip_quoted_chars): Make all arguments const.
2333         Return const.
2334         (skip_quoted): Likewise.
2335         * completer.h (skip_quoted_chars): Likewise.
2336         (skip_quoted): Likewise.
2337         * defs.h (skip_quoted): Remove duplicate declaration.
2338         * jv-exp.y: Include completer.h.
2339         (yylex): Remove unneccessary cast to char * fro skip_quoted.
2340         * p-exp.y: Include completer.h.
2341
2342 2013-10-01  Keith Seitz  <keiths@redhat.com>
2343
2344         * c-exp.y (parse_number): Make first argument const.
2345         Make a copy of the input to manipulate.
2346         (c_parse_escape): Make first argument const.
2347         Make local variable 'tokptr' const.
2348         (parse_string_or_char): Make first two arguments const.
2349         (macro_original_text): Make const.
2350         (lex_one_token): Make local variable 'tokstart' const.
2351         Likewise for local variables named 'p'.
2352         Cast away const for struct stoken (temporary).
2353         * c-lang.h (c_parse_escpae): Make first argument const.
2354         * cli/cli-cmds.c (echo_command): Make local variable 'p'
2355         const.
2356         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2357         var_string case.
2358         * f-exp.y (parse_number): Make first argument const.
2359         (match_string_literal): Make local variable 'tokstart'
2360         const.
2361         (yylex): Make local variable 'p' const.
2362         Cast away const for struct stoken (temporary).
2363         * go-exp.y (parse_number): Make first argument const.
2364         (parse_string_or_char): Likewise.
2365         Make local variable 'tokstart' const.
2366         (lex_one_token): Likewise for numerous locals called 'p'.
2367         Cast away const for struct stoken (temporary).
2368         * jv-exp.y (parse_number): Make first argument const.
2369         Make local variables 'tokstart' and 'tokptr' const.
2370         Cast away const for call to skip_quoted (temporary).
2371         (yylex): Make local variable 'p' const.
2372         Cast away const for struct stoken (temporary).
2373         * m2-exp.y (parse_number): Make local variable 'p' const.
2374         (yylex): Likewise for 'tokstart'.
2375         Cast away const for struct stoken (temporary).
2376         Make local variable 'p' const.
2377         * macroexp.c (get_character_constant): Pass a const string
2378         to c_parse_escape.
2379         (get_string_literal): Likewise.
2380         (macro_expand_next): Make first argument const.
2381         Cast away const for init_shared_buffer.
2382         * macroexp.h (macro_expand_next): Make first argument const.
2383         * p-exp.y (yylex): Make a local copy of 'lexptr'.
2384         Pass a const string to c_parse_escape.
2385         Make local variables 'p' and 'namestart' const.
2386         * parse.c (lexptr): Make const.
2387         (prev_lexptr): Likewise.
2388         (find_template_name_end): Return const.
2389         Make argument const, too.
2390         (parse_exp_in_context): Make first argument const.
2391         Remove the entire const_hack.
2392         (parse_exp_in_context_1): Make first argument const.
2393         * parser-defs.h (find_template_name_end): Return const.
2394         Make argument const, too.
2395         (lexptr): Make const.
2396         (prev_lexptr): Likewise.
2397         * utils.c (parse_escape): Make second argument const.
2398         * utils.h (parse_escape): Likewise.
2399
2400 2013-10-01  Keith Seitz  <keiths@redhat.com>
2401
2402         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2403         is now const.
2404         (block_lookup): Make 'raw_name' and 'name' const.
2405         * ada-lex.l (processString): Update for struct stoken.ptr.
2406         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2407         (operator_stoken): Likewise.
2408         (lex_one_token): Remove temporary cast to char * for
2409         'yylval.sval.ptr'.
2410         * f-exp.y (yylex): Likewise.
2411         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2412         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2413         * go-exp.y (lex_one_token): Remove temporary cast to char * for
2414         'yylval.sval.ptr'.
2415         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2416         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2417         * linespec.c (struct ls_parser): Make 'stream' const.
2418         (find_parameter_list_end): Make argument 'input' and local
2419         variable 'p' const.
2420         (linespec_lexer_lex_string): Make local variables 'start' and
2421         'p' const.
2422         Use skip_spaces_const instead of skip_spaces.
2423         (linespec_lexer_peek_token): Make local variable 'saved_stream'
2424         const.
2425         (parse_linespec): Temporarily cast 'argptr' to const for
2426         'parser->lexer.stream'.
2427         * m2-exp.y (yylex): Remove temporary cast to char * for
2428         'yylval.sval.ptr'.
2429         * objc-lang.c (add_msglist): Make local variable 'p' const.
2430         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2431         (exp : STRING): Make 'sp' const.
2432         (parse_number): Make argument 'p' const.
2433         * parser-defs.h (struct stoken): Make 'ptr' const.
2434
2435 2013-10-01  Doug Evans  <dje@google.com>
2436
2437         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2438
2439 2013-10-01  Yao Qi  <yao@codesourcery.com>
2440
2441         * varobj.c (c_value_of_root): Remove declaration.
2442         (cplus_value_of_root, java_value_of_root): Likewise.
2443         (ada_value_of_root): Likewise.
2444         (struct language_specific) <value_of_root>: Remove.
2445         (languages): Update initialization.
2446         (check_scope): Move earlier.
2447         (c_value_of_root): Move earlier and rename to ...
2448         (value_of_root_1): ... this.
2449         (value_of_root): Caller update.
2450         (cplus_value_of_root, java_value_of_root): Remove.
2451         (ada_value_of_root): Remove.
2452
2453 2013-10-01  Yao Qi  <yao@codesourcery.com>
2454
2455         * varobj.c (varobj_format_string): Remove "unknown".
2456         (languages): Remove the first element.
2457         * varobj.h (enum varobj_languages): Remove vlang_c.
2458
2459 2013-10-01  Yao Qi  <yao@codesourcery.com>
2460
2461         * varobj.c (struct language_specific) <language>: Remove.
2462         (languages): Update the initialization.
2463
2464 2013-10-01  Yao Qi  <yao@codesourcery.com>
2465
2466         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2467         "solib-target.h".  Include "windows-tdep.h".
2468         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
2469         set_solib_ops and set_gdbarch_has_dos_based_file_system.
2470         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2471         windows-tdep.o to gdb_target_obs.
2472
2473 2013-10-01  Yao Qi  <yao@codesourcery.com>
2474
2475         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2476         "solib-target.h".
2477         (amd64_windows_init_abi): Don't call set_solib_ops and
2478         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
2479         windows_init_abi instead.
2480         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2481         "solib-target.h".
2482         (i386_cygwin_init_abi): Don't call set_solib_ops,
2483         set_gdbarch_has_dos_based_file_system and
2484         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
2485         windows_init_abi instead.
2486         * windows-tdep.c: Include "solib.h" and "solib-target.h".
2487         (windows_init_abi): New function.
2488         (windows_iterate_over_objfiles_in_search_order): Make it
2489         static.
2490         * windows-tdep.h (windows_init_abi): Declare.
2491         (windows_iterate_over_objfiles_in_search_order): Remove
2492         declaration.
2493
2494 2013-10-01  Jerome Guitton  <guitton@adacore.com>
2495
2496         Checked in by Joel Brobecker  <brobecker@adacore.com>
2497         * system-gdbinit/elinos.py (get_elinos_environment): Return an
2498         incomplete dictionnary instead of None in case of missing
2499         environment variables.
2500         (elinos_init): in case of an incomplete environment, best
2501         effort to load system libraries instead of abort.
2502
2503 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
2504
2505         * ada-lang.c (ada_has_this_exception_support): Ignore
2506         mst_solib_trampoline minimal symbols.
2507
2508 2013-09-30  Tristan Gingold  <gingold@adacore.com>
2509
2510         * i386-darwin-nat.c (darwin_complete_target): Install methods for
2511         hardware watchpoint.
2512         (i386_darwin_dr_set): Support 32 and 64 bit states.
2513         (i386_darwin_dr_get): Likewise.
2514         (i386_darwin_dr_set_control): Make static.
2515         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2516         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2517
2518 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
2519
2520         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2521         Replace TIDGET with ptid_get_lwp.
2522         Replace GET_LWP with ptid_get_lwp.
2523         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2524         Replace BUILD_THREAD with ptid_build.
2525         Replace BUILD_LWP with ptid_build.
2526         Replace PIDGET with ptid_get_pid.
2527         Replace TIDGET with ptid_get_lwp.
2528         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2529         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2530         Replace TIDGET with ptid_get_lwp.
2531         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2532         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2533         Replace TIDGET with ptid_get_lwp.
2534         Replace GET_LWP with ptid_get_lwp.
2535         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2536         * auxv.c: Likewise.
2537         * breakpoint.c: Likewise.
2538         * common/ptid.c (ptid_is_pid): Condense check for
2539         null_ptid and minus_one_ptid.
2540         (ptid_lwp_p): New function.
2541         (ptid_tid_p): New function.
2542         * common/ptid.h: Update comments for accessors.
2543         (ptid_lwp_p): New prototype.
2544         (ptid_tid_p): New prototype.
2545         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2546         * gcore.c: Replace PIDGET with ptid_get_pid.
2547         * gdbthread.h: Likewise.
2548         * gnu-nat.c: Likewise.
2549         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2550         Replace TIDGET with ptid_get_lwp.
2551         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2552         * hppanbsd-nat.c: Likewise.
2553         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2554         Replace TIDGET with ptid_get_lwp.
2555         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2556         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2557         * infcmd.c: Likewise.
2558         * inferior.h: Likewise.
2559         * inflow.c: Likewise.
2560         * infrun.c: Likewise.
2561         * linux-fork.c: Likewise.
2562         * linux-nat.c: Replace PIDGET with ptid_get_pid.
2563         Replace GET_PID with ptid_get_pid.
2564         Replace is_lwp with ptid_lwp_p.
2565         Replace GET_LWP with ptid_get_lwp.
2566         Replace BUILD_LWP with ptid_build.
2567
2568 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
2569
2570         * common/linux-btrace.c: Move sys/syscall.h out of the
2571         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2572         Also check for SYS_perf_event_open before attempting to buid.
2573
2574 2013-09-27  Doug Evans  <dje@google.com>
2575
2576         * dwarf2read.c (dwarf2_section_info): Add comment.
2577         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2578         All uses updated.
2579         (dwarf2_section_empty_p): Rename arg from "info" to "section".
2580         (dwarf2_read_section): Delete unused local "header".  Add section
2581         name to error message.
2582         (create_dwo_in_dwp): Tweak comment.
2583         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2584
2585         * dwarf2read.c (die_reader_specs): Tweak comment.
2586         (get_section_bfd_owner, get_section_bfd_section): New functions.
2587         (get_section_name, get_section_file_name): New functions.
2588         (get_section_id, get_section_flags): New functions.
2589         (*): Use new functions to access section fields.
2590
2591         * dwarf2read.c (struct dwo_file): Add/tweak comments.
2592         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
2593         arg "htab".  All callers updated.
2594         (create_debug_types_hash_table): Remove redundant copy of
2595         abbrev_section.
2596         (create_dwo_in_dwp): Tweak comments.
2597         (read_str_index): Tweak comment.  Record dwarf form name in static
2598         local.
2599
2600 2013-09-27  Pedro Alves  <palves@redhat.com>
2601
2602         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2603         (remote_filename_p): Add comment.
2604         * remote.c (remote_filename_p): Adjust to use
2605         REMOTE_SYSROOT_PREFIX.
2606         * solib.c (solib_find): When deciding whether we need to add a
2607         directory separator, check whether the sysroot is "remote:"
2608         instead of checking whether the patch has a drive spec.  Add
2609         comments.
2610
2611 2013-09-27  Pedro Alves  <palves@redhat.com>
2612
2613         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2614         Delete fields.
2615         (remote_parse_stop_reply): Adjust, setting event->ws.kind
2616         directly.
2617
2618 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2619
2620         Fix set debug frame output.
2621         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
2622         SENTINEL_FRAME entry lower to match enum frame_type order.
2623
2624 2013-09-26  Pierre Muller  <muller@sourceware.org>
2625
2626         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2627         AMD64_R15_REGNUM when a register index is expected.
2628         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2629         Substitute in array.
2630         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2631         (amd64_push_arguments): Substitute in integer_regnum array.
2632
2633 2013-09-25  Doug Evans  <dje@google.com>
2634
2635         * objfiles.c (allocate_objfile): Move comment to better place.
2636
2637         New option "set debug symfile on".
2638         * NEWS: Mention "set debug symfile".
2639         * Makefile.in (SFILES): Add symfile-debug.c.
2640         (COMMON_OBS): Add symfile-debug.o.
2641         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2642         objfile's symbol functions.
2643         * objfiles.h (objfile_set_sym_fns): Declare.
2644         * symfile-debug.c: New file.
2645         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2646         objfile's symbol functions.
2647         (reread_symbols): Ditto.
2648
2649         * symfile.h (struct sym_fns): Delete member "sym_flavour".
2650         All uses updated.
2651         (add_symtab_fns): Update prototype.
2652         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
2653         (registered_sym_fns): ... this.
2654         (symtab_fns): Update.
2655         (add_symtab_fns): New arg "flavour".  All callers updated.
2656         (find_sym_fns): Rewrite to use new sym_fns registry.
2657
2658         * symfile.h (struct sym_fns): Add "objfile" argument to
2659         sym_read_linetable.  All uses updated.
2660
2661         * symtab.c (domain_name, search_domain_name): New functions.
2662         * symtab.h (domain_name, search_domain_name): Declare.
2663
2664         * symfile.h (struct quick_symbol_functions): Reorg arg list of
2665         map_matching_symbols so objfile is first.  All uses updated.
2666         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2667         * psymtab.c (map_matching_symbols_psymtab): Update signature.
2668
2669 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2670
2671         PR shlibs/8882
2672         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2673         link map entries.
2674
2675 2013-09-24  Doug Evans  <dje@google.com>
2676
2677         * objfiles.c (free_objfile): Move comment.
2678
2679 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2680
2681         * ada-exp.y (string_to_operator): Delete.
2682         (dummy_string_to_ada_operator): Delete.
2683
2684 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2685
2686         Revert:
2687         * i386-tdep.h (enum amd64_reg_class): New, moved here from
2688         amd64-tdep.c.
2689         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2690         call_dummy_integer_regs, and classify.
2691         * amd64-tdep.h (amd64_classify): Add declaration.
2692         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2693         (amd64_reg_class): Delete, moved to i386-tdep.h.
2694         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
2695         Replace call to amd64_classify by call to tdep->classify.
2696         (amd64_push_arguments): Get the list of registers to use for
2697         passing integer parameters from the gdbarch tdep structure,
2698         rather than using a hardcoded one.  Replace calls to amd64_classify
2699         by calls to tdep->classify.
2700         (amd64_push_dummy_call): Get the register number used for
2701         the "hidden" argument from tdep->call_dummy_integer_regs.
2702         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2703         and tdep->call_dummy_integer_regs.  Set tdep->classify.
2704
2705 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2706
2707         Revert:
2708         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2709         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2710         where tdep->memory_args_by_pointer is non-zero.
2711
2712 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2713
2714         Revert:
2715         * i386-tdep.h (struct gdbarch_tdep): Add new field
2716         integer_param_regs_saved_in_caller_frame.
2717         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2718         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2719
2720 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
2721
2722         * amd64-windows-tdep.c: #include "value.h"
2723         (amd64_windows_classify): Delete.
2724         (amd64_windows_passed_by_integer_register)
2725         (amd64_windows_passed_by_xmm_register)
2726         (amd64_windows_passed_by_pointer)
2727         (amd64_windows_adjust_args_passed_by_pointer)
2728         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2729         (amd64_windows_push_dummy_call): New functions.
2730         (amd64_windows_init_abi): Remove setting of
2731         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2732         tdep->classify, tdep->memory_args_by_pointer and
2733         tdep->integer_param_regs_saved_in_caller_frame.
2734         Add call to set_gdbarch_push_dummy_call.
2735
2736 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2737
2738         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2739         objfile->original_name.
2740
2741 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2742
2743         Pass down original filename for objfile.
2744         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2745         * elfread.c (elf_symfile_read): Likewise.
2746         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2747         longer set ORIGINAL_NAME.
2748         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2749         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2750         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
2751         symbol_file_add_from_bfd call.
2752         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2753         (macho_check_dsym): Add parameter filenamep.  Change function comment.
2754         Set *filenamep.
2755         (macho_symfile_read): New variable dsym_filename.  Update
2756         macho_check_dsym call.  Use it for symbol_file_add_separate.
2757         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
2758         it.  Use it for objfile->original_name.
2759         (objfile_name): Return OBFD's filename, if available.
2760         * objfiles.h (allocate_objfile): Add new parameter name.
2761         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2762         * symfile-mem.c (symbol_file_add_from_memory): Update
2763         symbol_file_add_from_bfd call.
2764         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2765         comment for it.
2766         (symbol_file_add_with_addrs): New parameter name, add function comment
2767         for it.  Remove variable name.  Update allocate_objfile call.
2768         (symbol_file_add_separate): New parameter name, add function comment
2769         for it.  Update symbol_file_add_with_addrs call.
2770         (symbol_file_add_from_bfd): New parameter name.  Update
2771         symbol_file_add_with_addrs call.
2772         (symbol_file_add): Update symbol_file_add_from_bfd call.
2773         (reread_symbols): New variable original_name.  Save
2774         objfile->original_name by it.
2775         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2776         second parameter.
2777
2778 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2779
2780         Code cleanup: Add objfile_name accessor function.
2781         * ada-lang.c (is_known_support_routine): Use objfile_name.
2782         * auto-load.c (source_gdb_script_for_objfile)
2783         (auto_load_objfile_script): Likewise.
2784         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2785         * dbxread.c (dbx_symfile_read): Likewise.
2786         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2787         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2788         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2789         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2790         (lookup_dwp_signatured_type, lookup_dwo_unit)
2791         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2792         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2793         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2794         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2795         (dwarf2_record_block_ranges, read_common_block, read_typedef)
2796         (read_subrange_type, load_partial_dies, read_partial_die)
2797         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2798         (die_containing_type, build_error_marker_type, lookup_die_type)
2799         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2800         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2801         (get_DW_AT_signature_type, write_psymtabs_to_index)
2802         (save_gdb_index_command): Likewise.
2803         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2804         Likewise.
2805         * expprint.c (dump_subexp_body_standard): Likewise.
2806         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2807         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2808         original_name.
2809         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2810         obj_name, use objfile_name for it, use the variable.
2811         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2812         Use objfile_name.
2813         * machoread.c (macho_symtab_read, macho_check_dsym)
2814         (macho_symfile_relocate): Likewise.
2815         * maint.c (maintenance_translate_address): Likewise.
2816         * minidebug.c (find_separate_debug_file_in_section): Likewise.
2817         * minsyms.c (install_minimal_symbols): Likewise.
2818         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2819         original_name.
2820         (filter_overlapping_sections): Use objfile_name.
2821         (objfile_name): New function.
2822         * objfiles.h (struct objfile): Rename field name to original_name.
2823         (objfile_name): New prototype.
2824         * printcmd.c (sym_info, address_info): Use objfile_name.
2825         * probe.c (parse_probes, collect_probes, compare_probes)
2826         (info_probes_for_ops): Likewise.
2827         * progspace.c (clone_program_space): Likewise.
2828         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2829         (maintenance_info_psymtabs): Likewise.
2830         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2831         (source_section_scripts): Likewise.
2832         * python/py-objfile.c (objfpy_get_filename): Likewise.
2833         * python/py-progspace.c (pspy_get_filename): Likewise.
2834         * solib-aix.c (solib_aix_get_toc_value): Likewise.
2835         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2836         * solib.c (solib_read_symbols): Likewise.
2837         * stabsread.c (scan_file_globals): Likewise.
2838         * stap-probe.c (handle_stap_probe): Likewise.
2839         * symfile.c (symbol_file_clear, separate_debug_file_exists)
2840         (find_separate_debug_file_by_debuglink): Likewise.
2841         (reread_symbols): Likewise.  Use the objfile field name renamed to
2842         original_name.
2843         (allocate_symtab): Use objfile_name.
2844         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2845         (dump_objfile, dump_msymbols, dump_symtab_1)
2846         (maintenance_print_msymbols, maintenance_print_objfiles)
2847         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2848         * target.c (target_translate_tls_address, target_info): Likewise.
2849         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
2850         objfile_name.
2851
2852 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2853
2854         Code cleanup.
2855         * probe.c (parse_probes): Rename variable objfile_name to
2856         objfile_namestr.
2857
2858 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2859
2860         Remove solib-sunos.c.
2861         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2862         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2863         * objfiles.c (rt_common_objfile): Remove.
2864         (free_objfile): Remove rt_common_objfile comparison.
2865         * objfiles.h (rt_common_objfile): Remove.
2866         * solib-sunos.c: Remove.
2867         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2868
2869 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2870
2871         Remove a.out NetBSD and OpenBSD hosts.
2872         * NEWS (Removed native configurations): New.
2873         * config/arm/nbsdaout.mh: Remove.
2874         * config/i386/nbsdaout.mh: Remove.
2875         * config/i386/obsdaout.mh: Remove.
2876         * config/m68k/nbsdaout.mh: Remove.
2877         * config/sparc/nbsdaout.mh: Remove.
2878         * config/vax/nbsdaout.mh: Remove.
2879         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2880         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2881         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2882         error.
2883         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2884         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2885         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2886
2887 2013-09-23  Tom Tromey  <tromey@redhat.com>
2888
2889         * linespec.c (struct minsym_and_objfile): Remove.
2890         (minsym_and_objfile_d): Remove.
2891         (struct linespec, struct collect_info, linespec_parse_basic)
2892         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2893         (compare_msymbols, find_method, find_function_symbols)
2894         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2895         (add_minsym, search_minsyms_for_name): Update.
2896
2897 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
2898
2899         * regcache.c: Add include of valprint.h.
2900         (dump_endian_bytes): Delete.
2901         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2902
2903 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
2904
2905         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2906
2907 2013-09-19  Pedro Alves  <palves@redhat.com>
2908
2909         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2910         breakpoints.
2911
2912 2013-09-19  Pedro Alves  <palves@redhat.com>
2913             Thomas Schwinge  <thomas@codesourcery.com>
2914             Yue Lu  <hacklu.newborn@gmail.com>
2915
2916         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2917         Take a gdb_byte pointer instead of a char pointer.
2918
2919         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2920         gnu_xfer_partial helper.
2921         (gnu_xfer_partial): New function.
2922         (gnu_target): Don't install a deprecated_xfer_memory hook.
2923         Install a to_xfer_partial hook.
2924
2925 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2926
2927         Constification.
2928         * main.c (captured_main): Replace catch_command_errors by
2929         catch_command_errors_const.  Twice.
2930         * symfile.c (symbol_file_add_main_1): Make args parameter const.
2931         (symbol_file_add): Make name parameter const.
2932         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2933         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
2934         variable name.  Change their usage accordingly.
2935         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2936         const.
2937         (symbol_file_add_main): Make args parameter const.
2938
2939 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
2940             Ulrich Weigand  <uweigand@de.ibm.com>
2941
2942         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2943         of c_value member.
2944         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2945
2946 2013-09-18  Pedro Alves  <palves@redhat.com>
2947             Yue Lu  <hacklu.newborn@gmail.com>
2948
2949         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2950         (gnu_create_inferior)
2951         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2952         (set_sig_thread_cmd): Use the lwpid field of ptids to
2953         store/extract thread ids instead of the tid field.
2954         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2955
2956 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
2957
2958         * infcmd.c (default_print_one_register_info): Add detection of
2959         optimized out values.
2960         (default_print_registers_info): Switch to using
2961         get_frame_register_value.
2962
2963 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2964
2965         * infrun.c (handle_inferior_event): Check if we know the
2966         function start address before setting a resume breakpoint.
2967
2968 2013-09-18  Pedro Alves  <palves@redhat.com>
2969
2970         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2971         minus_one_ptid instead of looking at the ptid's tid field and
2972         comparing that to -1.
2973
2974 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
2975
2976         * main.h (get_gdb_program_name): Remove extra whitespace.
2977
2978 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
2979
2980         * main.h (get_gdb_program_name): Add declaration.
2981         * main.c (get_gdb_program_name): Add definition.
2982
2983 2013-09-17  Doug Evans  <dje@google.com>
2984
2985         * dwarf2read.c: Move definitions of complaint functions to after
2986         forward declarations of local functions.
2987
2988 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
2989             Pedro Alves  <palves@redhat.com>
2990
2991         PR gdb/11568
2992         * breakpoint.c (remove_threaded_breakpoints): New function.
2993         (_initialize_breakpoint): Attach remove_threaded_breakpoints
2994         as thread_exit observer.
2995
2996 2013-09-17  Pedro Alves  <palves@redhat.com>
2997
2998         PR gdb/15911
2999         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3000         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3001         * corelow.c (core_open):
3002         * frame.h (print_stack_frame, print_frame_info): New
3003         'set_current_sal' parameter.
3004         * infcmd.c (finish_command, kill_command): Adjust call to
3005         print_stack_frame.
3006         * inferior.c (inferior_command): Likewise.
3007         * infrun.c (normal_stop): Likewise.
3008         * linux-fork.c (linux_fork_context): Likewise.
3009         * record-full.c (record_full_goto_entry, record_full_restore):
3010         Likewise.
3011         * remote-mips.c (common_open): Likewise.
3012         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3013         Use it.
3014         (print_frame_info): New 'set_current_sal' parameter.  Set the last
3015         displayed sal depending on the new paremeter instead of looking at
3016         print_what.
3017         (backtrace_command_1, select_and_print_frame, frame_command)
3018         (current_frame_command, up_command, down_command): Adjust call to
3019         print_stack_frame.
3020         * thread.c (print_thread_info, restore_selected_frame)
3021         (do_captured_thread_select): Adjust call to print_stack_frame.
3022         * tracepoint.c (tfind_1): Likewise.
3023         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3024         (mi_cmd_stack_info_frame): Likewise.
3025         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3026         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3027
3028 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3029
3030         * value.c (isvoid_internal_fn): Replace "parameter" with
3031         "argument".
3032
3033 2013-09-16  Stan Shebs  <stan@codesourcery.com>
3034
3035         * README: Update references to writing code for GDB.
3036         * configure.ac (build_warnings): Remove obsolete comment.
3037         * configure: Regenerate.
3038         * gdbarch.sh: Remove references to gdbint.texinfo.
3039         * gdbarch.h: Regenerate.
3040         * gdbtypes.c (objfile_type): Remove comments referencing internals
3041         manual and D10V.
3042
3043 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3044
3045         * NEWS: Mention new convenience function $_isvoid.
3046         * value.c (isvoid_internal_fn): New function.
3047         (_initialize_values): Add new convenience function $_isvoid.
3048
3049 2013-09-16  Pierre Muller  <muller@sourceware.org>
3050
3051         * arm-linux-tdep.c: Add "elf/common.h" header.
3052         Remove AT_HWCAP macro definintion as it is provided in
3053         added include file.
3054         * s390-tdep.c: Remove system header <elf.h>
3055         Add "elf/common.h" header for AT_HWCAP definition.
3056         (s390_core_read_description): Use correct CORE_ADDR
3057         for hwcap local variable used as third parameter
3058         of function target_auxv_search.
3059
3060 2013-09-14  Pierre Muller  <muller@sourceware.org>
3061             Tom Tromey  <tromey@redhat.com>
3062             Pedro Alves  <palves@redhat.com>
3063
3064         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3065         mode if operating system doesn't know O_CLOEXEC.
3066
3067 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3068
3069         Code cleanup.
3070         * symfile.c (reread_symbols): Move variable obfd_filename to a more
3071         inner block.
3072
3073 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3074
3075         * NEWS: Mention TDB support.
3076         * features/s390-tdb.xml: New file.
3077         * features/s390-te-linux64.xml: New file.
3078         * features/s390x-te-linux64.xml: New file.
3079         * features/Makefile (WHICH): Add new tdescs above.
3080         (s390-te-linux64-expedite): Set.
3081         (s390x-te-linux64-expedite): Set.
3082         * features/s390-te-linux64.c: New file (generated).
3083         * features/s390x-te-linux64.c: New file (generated).
3084         * regformats/s390-te-linux64.dat: New file (generated).
3085         * regformats/s390x-te-linux64.dat: New file (generated).
3086         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3087         (HWCAP_S390_TE): Likewise.
3088         (S390_TDB_DWORD0_REGNUM): Likewise.
3089         (S390_TDB_DWORD0_REGNUM): Likewise.
3090         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3091         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3092         (S390_TDB_ATIA_REGNUM): Likewise.
3093         (S390_TDB_R0_REGNUM): Likewise.
3094         (S390_TDB_R1_REGNUM): Likewise.
3095         (S390_TDB_R2_REGNUM): Likewise.
3096         (S390_TDB_R3_REGNUM): Likewise.
3097         (S390_TDB_R4_REGNUM): Likewise.
3098         (S390_TDB_R5_REGNUM): Likewise.
3099         (S390_TDB_R6_REGNUM): Likewise.
3100         (S390_TDB_R7_REGNUM): Likewise.
3101         (S390_TDB_R8_REGNUM): Likewise.
3102         (S390_TDB_R9_REGNUM): Likewise.
3103         (S390_TDB_R10_REGNUM): Likewise.
3104         (S390_TDB_R11_REGNUM): Likewise.
3105         (S390_TDB_R12_REGNUM): Likewise.
3106         (S390_TDB_R13_REGNUM): Likewise.
3107         (S390_TDB_R14_REGNUM): Likewise.
3108         (S390_TDB_R15_REGNUM): Likewise.
3109         (S390_NUM_REGS): Increase.
3110         (S390_IS_TDBREGSET_REGNUM): New macro.
3111         (s390_regmap_tdb): Declare.
3112         (s390_sizeof_tdbregset): Define.
3113         (tdesc_s390_te_linux64): Declare.
3114         (tdesc_s390x_te_linux64): Likewise.
3115         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3116         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3117         (s390_regmap_tdb): New regmap.
3118         (s390_supply_tdb_regset): New function.
3119         (s390_tdb_regset): New regset.
3120         (s390_linux64v2_regset_sections): Add TDB regset to list.
3121         (s390x_linux64v2_regset_sections): Likewise.
3122         (s390_regset_from_core_section): Recognize TDB core note section.
3123         (s390_core_read_description): If HWCAP indicates TE support,
3124         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3125         (s390_gdbarch_init): Handle TDB regset.
3126         (_initialize_s390_tdep): Initialize new tdescs.
3127         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3128         (have_regset_tdb): New variable.
3129         (s390_native_supply): Support register invalidation.
3130         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3131         (check_regset): Treat ENODATA as "regset exists".
3132         (s390_linux_fetch_inferior_registers): Add TDB.
3133         (s390_read_description): Check for TDB existence and select
3134         appropriate tdesc.
3135         * gdbserver/Makefile.in (clean): Add removal of new makefile
3136         targets.
3137         (s390-te-linux64.c): New makefile target.
3138         (s390x-te-linux64.c): Likewise.
3139         * gdbserver/configure.srv (srv_regobj): Append new objects
3140         s390-te-linux64.o and s390x-te-linux64.o.
3141         (srv_xmlfiles): Append new files s390-te-linux64.xml,
3142         s390x-te-linux64.xml, and s390-tdb.xml.
3143         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3144         declaration.
3145         (tdesc_s390_te_linux64): Likewise.
3146         (init_registers_s390x_te_linux64): Likewise.
3147         (tdesc_s390x_te_linux64): Likewise.
3148         (s390_check_regset): Treat ENODATA as "regset exists".
3149         (s390_arch_setup): Add TDB regset support.
3150         (initialize_low_arch): Initialize registers for new tdescs.
3151
3152 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3153
3154         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3155         (S390_IS_FPREGSET_REGNUM): New macro.
3156         * s390-tdep.c (s390_dwarf_regmap): Make const.
3157         (regnum_is_gpr_full): New function for replacing repeated code.
3158         (s390_pseudo_register_name): Use it.
3159         (s390_pseudo_register_type): Likewise.
3160         (s390_pseudo_register_read): Likewise.
3161         (s390_pseudo_register_write): Likewise.
3162         (s390_unwind_pseudo_register): Likewise.
3163         (s390_regmap_gregset): New format for regmap.
3164         (s390x_regmap_gregset): Likewise.
3165         (s390_regmap_fpregset): Likewise.
3166         (s390_regmap_upper): Likewise.
3167         (s390_regmap_last_break): Likewise.
3168         (s390_regmap_system_call): Likewise.
3169         (s390_supply_regset): Adjust to new regmap format.
3170         (s390_collect_regset): Likewise.
3171         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3172         (s390_native_collect): Likewise.
3173         (supply_gregset): Likewise.
3174         (fill_gregset): Likewise.
3175         (supply_fpregset): Likewise.
3176         (fill_fpregset): Likewise.
3177         (fetch_regset): Likewise.
3178         (store_regset): Likewise.
3179         (s390_linux_fetch_inferior_registers): Likewise.
3180         (s390_linux_fetch_inferior_registers): Likewise.
3181
3182 2013-09-12  Andrew Pinski  <apinski@cavium.com>
3183
3184         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3185
3186 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3187
3188         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3189
3190 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
3191
3192         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3193
3194 2013-09-06  Pedro Alves <palves@redhat.com>
3195
3196         * remote-sim.c (dump_mem, gdbsim_fetch_register)
3197         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3198         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3199         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3200         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3201         gdb_stdlog.
3202
3203 2013-09-06  Pedro Alves  <palves@redhat.com>
3204
3205         * remote-sim.c (dump_mem): Constify buf parameter.
3206         gdbsim_xfer_inferior_memory): Rename to ...
3207         (gdbsim_xfer_memory): ... this.  Adjust interface as
3208         target_xfer_partial helper.
3209         (gdbsim_xfer_partial): New function.
3210         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3211         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
3212
3213 2013-09-06  Pedro Alves  <palves@redhat.com>
3214
3215         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3216         host_address_to_string, and send debug output to gdb_stdlog.
3217
3218 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3219
3220         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3221         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3222         gdb_target_obs for cris target.
3223         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3224         (cris_gdbarch_init): Move calls to
3225         set_gdbarch_fetch_tls_load_module_address and
3226         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3227         Add call to gdbarch_init_osabi.
3228         * cris-linux-tdep.c: New file.
3229         * cris-tdep.h: New file.
3230
3231 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
3232
3233         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3234         to deprecated_init_ui_hook.
3235
3236 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
3237
3238         * cli/cli-interp.c (_initialize_cli_interp): Add a
3239         command_loop_proc to interp_procs.
3240         * event-top.c (cli_command_loop): Change signature to match
3241         interp_command_loop_ftype.
3242         * event-top.h (cli_command_loop): Same.
3243         * interps.c (interp_new): Require every interpreter to have a
3244         command_loop_proc.
3245         (current_interp_command_loop): Just call the command_loop_proc on
3246         the current interpreter.
3247         * tui/tui-interp.c (_initialize_tui_interp): Add a
3248         command_loop_proc to interp_procs.
3249
3250 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3251
3252         * cris-tdep.c (cris_gdbarch_init): Add call to
3253         get_gdbarch_fetch_tls_load_module_address.
3254
3255 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3256
3257         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3258         (cris_elf_gregset_t): Rename from elf_gregset_t.
3259         (crisv32_elf_gregset_t): Adjust.
3260         (cris_supply_gregset, fetch_core_registers): Adjust.
3261
3262 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3263
3264         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3265
3266 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
3267
3268         * defs.h (deprecated_command_loop_hook): Remove, including
3269         references in comments.
3270         * interps.c (current_interp_command_loop): No longer use
3271         deprecated_command_loop_hook.
3272         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3273         setup.
3274         * top.c (deprecated_command_loop_hook): Remove.
3275
3276 2013-09-05  Pedro Alves  <palves@redhat.com>
3277
3278         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3279         local is now int instead of ULONGEST.  Print it with %d
3280         instead of paddress.
3281
3282 2013-09-05  Tristan Gingold  <gingold@adacore.com>
3283
3284         * MAINTAINERS: Remove avr maintainership.
3285
3286 2013-09-05  Pedro Alves  <palves@redhat.com>
3287
3288         * findvar.c (value_of_register): Rework in terms of
3289         value_of_register_lazy.
3290
3291 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
3292
3293         * symfile.c (add_symbol_file_command): Remove trailing
3294          whitespaces and blank line after comment.
3295
3296 2013-09-05  Pedro Alves  <palves@redhat.com>
3297
3298         * tui/tui-regs.c (tui_register_format): Don't look at the
3299         register's name here.  Return string representing register
3300         value instead of storing it in the data element.
3301         (tui_get_register): Compare register string representations
3302         instead of register value states and contents.
3303
3304 2013-09-05  Pedro Alves  <palves@redhat.com>
3305
3306         PR tui/15933
3307         * tui/tui-regs.c (tui_show_registers): Show registers of the
3308         selected frame, not the current frame.
3309
3310 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
3311
3312         * MAINTAINERS (Write After Approval): Add myself to the list.
3313
3314 2013-09-04  Doug Evans  <dje@google.com>
3315
3316         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3317         (queue_and_load_dwo_tu): New function.
3318         (lookup_dwo_signatured_type): Set per_cu.tu_read.
3319         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3320         Make dependent_cu optional.
3321         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3322         and an older .gdb_index is in use, queue and load all its TUs too.
3323
3324 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3325
3326         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3327         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3328         variable search_flags.
3329         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3330         (OPF_RETURN_REALPATH): ... here.
3331         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3332         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3333         call.  Twice.
3334         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3335         openp call.
3336         * solib.c (solib_find): Likewise.  Four times.
3337         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3338         in the function comment and for the realpath_fptr variable.
3339         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3340         (find_and_open_source): Likewise.  Twice.
3341         * symfile.c (symfile_bfd_open): Likewise, also twice.
3342
3343 2013-09-04  Doug Evans  <dje@google.com>
3344
3345         * progspace.c (save_current_space_and_thread): Remove unnecessary
3346         call to save_current_inferior.
3347
3348 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
3349
3350         * sh64-tdep.c (sh64_do_register): Return after printing message
3351         about unavailable register contents.
3352
3353 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
3354             Pedro Alves  <palves@redhat.com>
3355
3356         * symfile.c (add_symbol_file_command): Error out on unknown
3357         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3358         options and collapse into single conditional branch.
3359
3360 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
3361
3362         * inf-child.c (inf_child_follow_fork): New parameter
3363         detach_fork.
3364         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3365         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3366         * inferior.h (detach_fork): Remove.
3367         * infrun.c (detach_fork): Adjust comment and make it
3368         static.
3369         (follow_fork): Pass detach_fork parameter to
3370         target_follow_fork.
3371         * linux-nat.c (linux_child_follow_fork): New parameter
3372         detach_fork.
3373         * target.c (target_follow_fork): New parameter detach_fork.
3374         Pass detach_fork as parameter and print its value.
3375         * target.h (struct target_ops) <to_follow_fork>: New int
3376         parameter.
3377         (target_follow_fork): New parameter detach_fork.
3378
3379 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
3380
3381         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3382         Replace sec->bfd by sec->the_bfd_section->owner.
3383
3384 2013-09-03  Yao Qi  <yao@codesourcery.com>
3385
3386         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
3387         from linux_has_shared_address_space.
3388         (linux_has_shared_address_space): Call linux_is_uclinux.
3389         * linux-tdep.h (linux_is_uclinux): Declare.
3390         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3391         linux_is_uclinux.
3392
3393 2013-09-03  Yao Qi  <yao@codesourcery.com>
3394
3395         * config/djgpp/fnchange.lst: Remove entry of
3396         i386-interix-nat.c and i386-interix-tdep.c.
3397         * configure.ac: Remove '*-*-interix*'.
3398         * configure: Re-generated.
3399         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3400         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3401         obsolete comments.
3402         * osabi.c (gdb_osabi_names): Remove "Interix".
3403
3404 2013-09-03  Yao Qi  <yao@codesourcery.com>
3405
3406         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3407
3408 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
3409
3410         * record.h (record_print_flag) <record_print_src_line,
3411         record_print_insn_range>: Rename into ...
3412         (record_print_flag) <record_print_src_line,
3413         record_print_insn_range>: ... this.  Update all users.
3414
3415 2013-09-02  Pierre Muller  <muller@sourceware.org>
3416
3417         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3418         error code.
3419
3420 2013-09-02  Pierre Muller  <muller@sourceware.org>
3421
3422         * windows-nat.c (windows_xfer_memory): Fix compilation failure
3423         by use of plongest function.
3424
3425 2013-09-02  Tristan Gingold  <gingold@adacore.com>
3426
3427         * NEWS: Add entry mentioning support for native Windows x64
3428         SEH data.
3429
3430         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3431         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3432         (struct amd64_windows_frame_cache): New struct.
3433         (amd64_windows_w2gdb_regnum): New global.
3434         (pc_in_range, amd64_windows_frame_decode_epilogue)
3435         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3436         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3437         (amd64_windows_frame_this_id): New functions.
3438         (amd64_windows_frame_unwind): New static global.
3439         (amd64_windows_skip_prologue): New function.
3440         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3441         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3442         with amd64_windows_skip_prologue.
3443
3444 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
3445
3446         GDB 7.6.1 released.
3447
3448 2013-08-30  Pedro Alves  <palves@redhat.com>
3449
3450         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3451         SRC_AND_LOC.
3452
3453 2013-08-30  Pedro Alves  <palves@redhat.com>
3454
3455         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3456         warning text.
3457
3458 2013-08-30  Pedro Alves  <palves@redhat.com>
3459
3460         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3461         Adjust arguments to print_stack_frame.
3462
3463 2013-08-30  Pedro Alves  <palves@redhat.com>
3464
3465         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3466
3467 2013-08-30  Pedro Alves  <palves@redhat.com>
3468
3469         * frame.h (show_and_print_stack_frame): Delete declaration.
3470
3471 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
3472
3473         PR python/15461
3474         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3475         (archpy_name): Check for valid architecture.
3476         (archpy_disassemble): Ditto.
3477
3478 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
3479
3480         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3481         instead of "long long" in call to ptrace64.
3482
3483 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
3484
3485         * mi/mi-interp.c (mi_command_loop): Change signature to match
3486         interp_command_loop_ftype.
3487         (mi1_command_loop): Remove.
3488         (mi2_command_loop): Remove.
3489         (mi3_command_loop): Remove.
3490         (mi_interpreter_resume): Remove setting of
3491         deprecated_command_loop_hook.
3492         (_initialize_mi_interp): Set mi_command_loop as the command loop
3493         callback.
3494
3495 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3496
3497         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3498         value_type.
3499
3500 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3501
3502         * value.c (allocate_value_contents): Make static.
3503         * value.h (allocate_value_contents): Remove prototype.
3504
3505 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3506
3507         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3508         of assembling value via allocate_value_lazy and attribute setter.
3509         * findvar.c (default_read_var_value): Use value_at_lazy instead of
3510         assembling value via allocate_value_lazy and attribute setter.
3511         * valops.c (do_search_struct_field): Use value_at_lazy instead of
3512         assembling value via allocate_value_lazy and attribute setter.
3513
3514 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
3515
3516         * value.c (value_from_contents_and_address): Replace allocate_value and
3517         memcpy with value_from_contents.
3518
3519 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
3520
3521         * python/py-framefilter.c (py_print_frame): Remove usage of
3522         PyString_AsString.  Use python_string_to_host_string instead.
3523         Refactor function to work with a string as a new allocation
3524         instead of a pointer.
3525         (py_print_frame): Ditto.
3526         * python/lib/gdb/frames.py (return_list): Cain iterators together
3527         instead of adding them as a list.
3528         (_sort_list): Call return_list, and remove duplicate code.
3529         (execute_frame_filters): Convert iterator to a list with list().
3530         * python/lib/gdb/command/frame_filters.py
3531         (SetFrameFilterPriority._set_filter_priority): Convert priority
3532         attribute to an integer.
3533         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3534         wrapper function __next__.
3535         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3536         define as "str".
3537
3538 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
3539
3540         PR python/15752
3541         * python/py-framefilter.c (apply_frame_filter): Check
3542         gdb_python_initialized.  Exit if the Python frame-filter code
3543         cannot be initialized.
3544
3545 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
3546
3547         PR cli/15842
3548         * top.c (print_gdb_version): Remove erroneous newline after help
3549         text.
3550
3551 2013-08-29  Yao Qi  <yao@codesourcery.com>
3552
3553         * varobj.c (install_dynamic_child): Remove trailing space.
3554         Add one blank line after variable declaration.
3555
3556 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3557
3558         PR gdb/15415
3559         * corefile.c (get_exec_file): Use exec_filename.
3560         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
3561         * exec.c (exec_close): Free EXEC_FILENAME.
3562         (exec_file_attach): New variable canonical_pathname.  Use
3563         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
3564         EXEC_FILENAME.
3565         * exec.h (exec_filename): New.
3566         * inferior.c (print_inferior, inferior_command): Use
3567         PSPACE_EXEC_FILENAME.
3568         * mi/mi-main.c (print_one_inferior): Likewise.
3569         * progspace.c (clone_program_space, print_program_space): Likewise.
3570         * progspace.h (struct program_space): New field pspace_exec_filename.
3571         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
3572         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3573
3574 2013-08-28  Will Newton  <will.newton@linaro.org>
3575
3576         * common/linux-ptrace.c: Include stdint.h unconditionally.
3577
3578 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3579
3580         Code cleanup.
3581         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3582
3583 2013-08-28  Yao Qi  <yao@codesourcery.com>
3584             Pedro Alves  <palves@redhat.com>
3585
3586         * event-top.c (gdb_setup_readline): Call stderr_fileopen
3587         instead of stdio_fileopen.
3588         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3589         .Call stderr_fileopen instead of stdio_fileopen.
3590         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3591         [__MINGW32__] (stderr_file_fputs): New function.
3592         (stderr_fileopen): New function.
3593         * ui-file.h (stderr_fileopen): Declare.
3594
3595 2013-08-27  Doug Evans  <dje@google.com>
3596
3597         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3598         (struct dwarf2_per_cu_data): Ditto.
3599         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
3600         (process_imported_unit_die): Ditto.
3601         (follow_die_sig_1): Simplify assert.
3602
3603 2013-08-27  Pedro Alves  <palves@redhat.com>
3604
3605         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3606         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
3607         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3608         windows_xfer_memory directly.
3609         (init_windows_ops): Don't install a deprecated_xfer_memory method.
3610
3611 2013-08-27  Pedro Alves  <palves@redhat.com>
3612
3613         * darwin-nat.c (darwin_xfer_memory): Delete.
3614         (_initialize_darwin_inferior): Don't install a
3615         deprecated_xfer_memory method.
3616
3617 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
3618             Yao Qi  <yao@codesourcery.com>
3619
3620         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3621         (parse_no_frames_option): Remove.
3622         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3623         (mi_cmd_stack_list_args): Adjust.
3624         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3625         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
3626         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3627         Caller update.
3628         (list_args_or_locals): New parameter 'skip_unavailable'.
3629         Handle it.
3630         * valprint.c (scalar_type_p): Rename to ...
3631         (val_print_scalar_type_p): ... this.  Make extern.
3632         (val_print, value_check_printable): Adjust.
3633         * valprint.h (val_print_scalar_type_p): Declare.
3634         * value.c (value_entirely_unavailable): New function.
3635         * value.h (value_entirely_unavailable): Declare.
3636
3637         * NEWS: Mention the new option "--skip-unavailable" to MI
3638         commands '-stack-list-locals', '-stack-list-arguments' and
3639         '-stack-list-variables'.
3640
3641 2013-08-27  Yao Qi  <yao@codesourcery.com>
3642
3643         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3644         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3645         options.
3646         * mi/mi-getopt.c (mi_getopt): Remove.
3647         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
3648         'error_on_unknown'.
3649         (mi_getopt): Call mi_getopt_1.
3650         (mi_getopt_silent): New.
3651         * mi/mi-getopt.h (mi_getopt_silent): Declare.
3652
3653 2013-08-26  Doug Evans  <dje@google.com>
3654
3655         PR symtab/15885
3656         * dwarf2read.c (dw2_dump): Print some minimal information indicating
3657         .gdb_index is in use.
3658         * symfile.c (reread_symbols): Reset objfile->sf.
3659
3660         * NEWS: Document "mt print objfiles" now takes optional regexp.
3661         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3662         regexp of objfiles to print.
3663         (_initialize_symmisc): Update doc string for "mt print objfiles".
3664
3665         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3666         missing debug info checks.
3667
3668 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
3669             Ulrich Weigand  <uweigand@de.ibm.com>
3670
3671         * xcoffread.c (arrange_linetable): Add fix to correctly handle
3672         line tables generated by XLC compiled binaries.
3673
3674 2013-08-23  Doug Evans  <dje@google.com>
3675
3676         * symmisc.c (dump_symtab): Delete prototype.
3677         (dump_msymbols, dump_objfile): Ditto.
3678         (maintenance_info_symtabs): Mark as dont_repeat.
3679         (_initialize_symmisc): Improve doc string for "mt info symtabs".
3680
3681         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3682         debugging printf to better location.
3683
3684 2013-08-23  Pedro Alves  <palves@redhat.com>
3685
3686         * target.c (target_read_live_memory): Change type of 'ret' local
3687         to LONGEST.
3688
3689 2013-08-23  Pedro Alves  <palves@redhat.com>
3690
3691         * remote.c (remote_write_bytes_aux, remote_write_bytes)
3692         (remote_read_bytes): Change return type to LONGEST, and adjust to
3693         return a target_xfer_error on error.
3694         (remote_xfer_memory): Delete.
3695         (remote_flash_write): Change type of 'ret' local to LONGEST.
3696         (remote_xfer_partial, remote_xfer_partial): Adjust.
3697         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3698
3699 2013-08-23  Pierre Muller  <muller@sourceware.org>
3700
3701         ARI fix: Push # directives to start of line.
3702         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3703
3704 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
3705
3706         PR gdb/15501
3707         * breakpoint.c (enable_command, disable_command): Iterate over
3708         all specified breakpoint locations.
3709
3710 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
3711
3712         * common/linux-ptrace.c (linux_fork_to_function): Push #
3713         directives to the start of the line.
3714         (linux_check_ptrace_features): Fix warning message to use
3715         the "_" markup.
3716
3717 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
3718
3719         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3720         nat/linux-waitpid.h.
3721         (linux-waitpid.o): New object file rule.
3722         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3723         (current_ptrace_options): Moved from linux-nat.c.
3724         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3725         parameters.
3726         (linux_fork_to_function): New function.
3727         (linux_grandchild_function): Likewise.
3728         (linux_child_function): Likewise.
3729         (linux_check_ptrace_features): New function, heavily
3730         based on linux-nat.c:linux_test_for_tracefork.
3731         (linux_enable_event_reporting): New function.
3732         (ptrace_supports_feature): Likewise.
3733         (linux_supports_tracefork): Likewise.
3734         (linux_supports_traceclone): Likewise.
3735         (linux_supports_tracevforkdone): Likewise.
3736         (linux_supports_tracesysgood): Likewise.
3737         * common/linux-ptrace.h (HAS_NOMMU): Moved from
3738         gdbserver/linux-low.c.
3739         (linux_enable_event_reporting): New declaration.
3740         (linux_supports_tracefork): Likewise.
3741         (linux_supports_traceclone): Likewise.
3742         (linux_supports_tracevforkdone): Likewise.
3743         (linux_supports_tracesysgood): Likewise.
3744         * config.in (PTRACE_TYPE_ARG4): Regenerate.
3745         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3746         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3747         * config/arm/linux.mh (NATDEPFILES): Likewise.
3748         * config/i386/linux.mh (NATDEPFILES): Likewise.
3749         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3750         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3751         * config/m32r/linux.mh (NATDEPFILES): Likewise.
3752         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3753         * config/mips/linux.mh (NATDEPFILES): Likewise.
3754         * config/pa/linux.mh (NATDEPFILES): Likewise..
3755         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3756         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3757         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3758         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3759         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3760         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3761         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3762         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3763         ptrace's 4th argument's types.
3764         Check the type of PTRACE_TYPE_ARG4.
3765         * configure: Regenerate.
3766         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3767         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3768         (linux_supports_tracefork_flag): Remove.
3769         (linux_supports_tracesysgood_flag): Likewise.
3770         (linux_supports_tracevforkdone_flag): Likewise.
3771         (current_ptrace_options): Moved to
3772         common/linux-ptrace.c.
3773         (linux_tracefork_child): Remove.
3774         (my_waitpid): Remove.
3775         (linux_test_for_tracefork): Renamed to
3776         linux_check_ptrace_features and moved to common/linux-ptrace.c.
3777         (linux_test_for_tracesysgood): Remove.
3778         (linux_supports_tracesysgood): Remove.
3779         (linux_supports_tracefork): Remove.
3780         (linux_supports_tracevforkdone): Remove.
3781         (linux_enable_tracesysgood): Remove.
3782         (linux_enable_event_reporting): Remove.
3783         (linux_init_ptrace): New function.
3784         (linux_child_post_attach): Call linux_init_ptrace.
3785         (linux_child_post_startup_inferior): Call linux_init_ptrace.
3786         (linux_child_follow_fork): Call linux_supports_tracefork
3787         and linux_supports_tracevforkdone.
3788         (linux_child_insert_fork_catchpoint): Call
3789         linux_supports_tracefork.
3790         (linux_child_insert_vfork_catchpoint): Likewise.
3791         (linux_child_set_syscall_catchpoint): Call
3792         linux_supports_tracesysgood.
3793         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3794         * nat/linux-nat.h: New file.
3795         * nat/linux-waitpid.c: New file.
3796         * nat/linux-waitpid.h: New file.
3797
3798 2013-08-22  Samuel Bronson  <naesten@gmail.com>
3799
3800         ARM Linux support for `catch syscall'.
3801         * syscalls/arm-linux.py: New file.
3802         * syscalls/arm-linux.xml: Likewise.
3803         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3804         (arm_linux_init_abi): Register the new function and syscall xml file.
3805         * data-directory/Makefile.in: Install the new syscall xml file.
3806         * NEWS: Brag about this.
3807
3808 2013-08-22  Pedro Alves  <palves@redhat.com>
3809
3810         PR gdb/15871
3811         * corefile.c (target_xfer_memory_error): New function.
3812         (memory_error): Defer EIO to target_memory_error.
3813         (read_memory): Use target_xfer_partial, and handle finer-grained
3814         target xfer errors.
3815         * target.c (target_xfer_error_to_string): New function.
3816         (memory_xfer_partial_1): If memory is known to be
3817         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3818         (target_xfer_partial): Make extern.
3819         * target.h (enum target_xfer_error): New enum.
3820         (target_xfer_error_to_string): Declare function.
3821         (target_xfer_partial): Declare function.
3822         (struct target_ops) <xfer_partial>: Adjust describing comment.
3823
3824 2013-08-22  Alan Modra  <amodra@gmail.com>
3825
3826         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3827         * configure.tgt: Likewise as targets.
3828
3829 2013-08-20  Doug Evans  <dje@google.com>
3830
3831         * buildsym.c (subfile_stack): Move here from buildsym.h.
3832         (pending_macros): Ditto.
3833         (get_macro_table): New function.
3834         (buildsym_init): Initialize subfile_stack.
3835         * coffread.c (type_vector,type_vector_length): Moved here from
3836         buildsym.h.
3837         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3838         (coff_symtab_read): Use it.
3839         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3840         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3841         with call to get_macro_table.
3842         * stabsread.c (type_vector,type_vector_length): Moved here from
3843         buildsym.h.
3844         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3845         * buildsym.h (get_macro_table): Declare.
3846
3847 2013-08-20  Tom Tromey  <tromey@redhat.com>
3848
3849         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3850         Update.
3851         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
3852
3853 2013-08-20  Doug Evans  <dje@google.com>
3854
3855         * blockframe.c: Remove #include "psymtab.h".
3856         * cp-support.c: Ditto.
3857         * source.c: Ditto.
3858         * stack.c: Ditto.
3859
3860 2013-08-20  Tom Tromey  <tromey@redhat.com>
3861
3862         PR python/15816:
3863         * exceptions.h (return_mask): Now an enum.
3864         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3865         enum constants.
3866
3867 2013-08-20  Tom Tromey  <tromey@redhat.com>
3868
3869         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3870         get_objfile_arch.
3871         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3872         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3873         * jit.c (jit_object_close_impl): Update.
3874         * jv-lang.c (get_dynamics_objfile): Update.
3875         * linespec.c (add_minsym): Use get_dynamics_objfile.
3876         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3877         (allocate_objfile): Don't initialize 'gdbarch' field.
3878         (get_objfile_arch): Update.
3879         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3880         moved from...
3881         (struct objfile) <gdbarch>: ... here.  Remove.
3882         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3883         get_objfile_arch.
3884         * symfile.c (init_entry_point_info): Use get_objfile_arch.
3885
3886 2013-08-20  Alan Modra  <amodra@gmail.com>
3887
3888         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3889         for IBM long double nan and inf.
3890         (floatformat_is_negative, floatformat_classify,
3891         floatformat_mantissa): Similarly.
3892         (floatformat_ieee_single, floatformat_ieee_double,
3893         floatformat_ieee_quad, floatformat_arm_ext,
3894         floatformat_ia64_spill): Delete unused vars.
3895         (_initialize_doublest): Delete unused function.
3896         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3897         little-endian variants of floatformat_ibm_long_double.
3898
3899 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
3900
3901         * Makefile.in (SFILES): Remove common/target-common.c and
3902         add target/waitstatus.c.
3903         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3904         target/resume.h, target/wait.h and target/waitstatus.h.
3905         (COMMON_OBS): Remove target-common.o and add
3906         waitstatus.o.
3907         (target-common.o): Remove.
3908         (waitstatus.o): New target object file.
3909         * common/target-common.c: Move contents to
3910         target/waitstatus.c and remove.
3911         * common/target-common.h: Move contents to other files and
3912         remove.
3913         (enum resume_kind: Move to target/resume.h.
3914         (TARGET_WNOHANG): Move to target/wait.h.
3915         (enum target_waitkind): Move to target/waitstatus.h.
3916         (struct target_waitstatus): Likewise.
3917         * target.h: Do not include target-common.h and
3918         include target/resume.h, target/wait.h and
3919         target/waitstatus.h.
3920         * target/resume.h: New file.
3921         * target/wait.h: New file.
3922         * target/waitstatus.h: New file.
3923         * target/waitstatus.c: New file.
3924
3925 2013-08-19  Pedro Alves  <palves@redhat.com>
3926
3927         * linux-nat.c (linux_test_for_tracefork)
3928         (linux_test_for_tracesysgood, linux_child_follow_fork)
3929         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3930         (linux_nat_wait_1): Extend comment.
3931         (linux_async_pipe): Add comment.
3932
3933 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
3934
3935         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3936         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3937         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3938         Update to account for fact that PC is now a pseudo-register.
3939         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
3940         cases for RL78_PC_REGNUM.
3941
3942 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
3943
3944         PR cli/15841
3945         * top.c (quit_force): Skip writing history file
3946         if input is not from terminal.
3947
3948 2013-08-14  Tom Tromey  <tromey@redhat.com>
3949
3950         * remote.c (struct remote_state) <echo_nextthread, nextthread,
3951         resultthreadlist>: New fields.
3952         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3953         (remote_get_threadlist, remote_threadlist_iterator): Use
3954         new fields.  Remove static variables.
3955
3956 2013-08-14  Tom Tromey  <tromey@redhat.com>
3957
3958         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3959         remote_watch_data_address>: New fields.
3960         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3961         (process_stop_reply, remote_wait_as)
3962         (remote_check_watch_resources, remote_stopped_data_address): Update.
3963
3964 2013-08-14  Tom Tromey  <tromey@redhat.com>
3965
3966         * remote.c (struct remote_state) <async_client_callback,
3967         async_client_context>: New fields.
3968         (async_client_callback, async_client_context): Remove.
3969         (remote_async_serial_handler, remote_async): Update.
3970
3971 2013-08-14  Tom Tromey  <tromey@redhat.com>
3972
3973         * remote.c (sizeof_pkt): Remove.
3974         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3975
3976 2013-08-14  Tom Tromey  <tromey@redhat.com>
3977
3978         * remote.c (struct remote_state) <use_threadinfo_query,
3979         use_threadextra_query>: New fields.
3980         (remote_threads_info, remote_threads_extra_info)
3981         (remote_open_1): Update.
3982
3983 2013-08-14  Tom Tromey  <tromey@redhat.com>
3984
3985         * remote.c (struct remote_state) <finished_object,
3986         finished_annex, finished_offset>: New fields.
3987         (remote_read_qxfer): Use remote_state fields; remove static
3988         variables.
3989
3990 2013-08-14  Tom Tromey  <tromey@redhat.com>
3991
3992         * remote.c (struct remote_state) <last_sent_step>:
3993         New field.
3994         (last_sent_step): Remove.
3995         (remote_resume, remote_wait_as): Update.
3996
3997 2013-08-14  Tom Tromey  <tromey@redhat.com>
3998
3999         * remote.c (struct remote_state) <last_sent_signal>:
4000         New field.
4001         (last_sent_signal): Remove.
4002         (new_remote_state, remote_resume, remote_wait_as): Update.
4003
4004 2013-08-14  Tom Tromey  <tromey@redhat.com>
4005
4006         * remote.c (struct remote_state) <last_program_signals_packet>:
4007         New field.
4008         (last_program_signals_packet): Remove.
4009         (remote_program_signals, remote_open_1): Update.
4010
4011 2013-08-14  Tom Tromey  <tromey@redhat.com>
4012
4013         * remote.c (struct remote_state) <last_pass_packet>:
4014         New field.
4015         (last_pass_packet): Remove.
4016         (remote_pass_signals, remote_open_1): Update.
4017
4018 2013-08-14  Tom Tromey  <tromey@redhat.com>
4019
4020         * remote.c (struct remote_state) <remote_traceframe_number>:
4021         New field.
4022         (remote_traceframe_number): Remove.
4023         (new_remote_state, remote_open_1, set_remote_traceframe)
4024         (remote_trace_find): Update.
4025
4026 2013-08-14  Tom Tromey  <tromey@redhat.com>
4027
4028         * remote.c (struct remote_state) <general_thread, continue_thread>:
4029         New fields.
4030         (general_thread, continue_thread): Remove.
4031         (record_currthread, set_thread, set_general_process)
4032         (remote_open_1, extended_remote_attach_1, remote_wait_as)
4033         (extended_remote_mourn_1): Update.
4034
4035 2013-08-14  Tom Tromey  <tromey@redhat.com>
4036
4037         * remote.c (struct remote_state) <remote_desc>: New field.
4038         (remote_desc): Remove.
4039         (remote_threads_info, remote_threads_extra_info, remote_close)
4040         (send_interrupt_sequence, remote_start_remote, remote_open_1)
4041         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4042         (remote_hostio_send_command, remote_file_put, remote_file_get)
4043         (remote_file_delete, remote_can_async_p, remote_is_async_p)
4044         (remote_async, remote_new_objfile, set_range_stepping): Update.
4045
4046 2013-08-14  Tom Tromey  <tromey@redhat.com>
4047
4048         * remote.c (remote_state): Now a pointer.
4049         (get_remote_state_raw): Update.
4050         (new_remote_state): New function.
4051         (_initialize_remote): Use new_remote_state.
4052
4053 2013-08-14  Tom Tromey  <tromey@redhat.com>
4054
4055         * remote.c (remote_protocol_features): Now const.
4056
4057 2013-08-14  Tom Tromey  <tromey@redhat.com>
4058
4059         * remote.c (crc32_table, crc32): Remove.
4060         (remote_verify_memory): Use xcrc32.
4061
4062 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
4063
4064         * value.h (create_internalvar_type_lazy): Adjust prototype
4065         declaration.
4066
4067 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
4068
4069         * common/format.c (parse_format_string): Don't allow '#' flag for
4070         pointer arguments in format string.
4071
4072 2013-08-13  Pierre Muller  <muller@sourceware.org>
4073
4074         * utils.c (init_page_info): Only call tgetnum function
4075         if rl_get_screen_size did not return useful values.
4076
4077 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
4078
4079         PR breakpoints/15117
4080         * linespec.c (linespec_parse_basic): Check for convenience
4081         variable or history value while parsing.
4082
4083 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
4084
4085         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4086         AVR.
4087         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
4088         different signals between the generic Linux kernel implementation
4089         and AVR's.
4090         (avr_linux_gdb_signal_from_target): Delete.
4091         (avr_linux_gdb_signal_to_target): Delete.
4092         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4093
4094 2013-08-09  Doug Evans  <dje@google.com>
4095
4096         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4097         entries.
4098
4099 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
4100
4101         * linux-tdep.c: Define enum with generic signal numbers.
4102         (linux_gdb_signal_from_target): New function.
4103         (linux_gdb_signal_to_target): Likewise.
4104         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4105         methods to the functions above.
4106         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4107         (linux_gdb_signal_to_target): Likewise.
4108         * alpha-linux-tdep.c: Define new enum with signals different
4109         from generic Linux kernel.
4110         (alpha_linux_gdb_signal_from_target): New function.
4111         (alpha_linux_gdb_signal_to_target): Likewise.
4112         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4113         with the functions mentioned above.
4114         * avr-tdep.c: Define enum with differences between Linux kernel
4115         and AVR signals.
4116         (avr_linux_gdb_signal_from_target): New function.
4117         (avr_linux_gdb_signal_to_target): Likewise.
4118         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4119         the functions mentioned above.
4120         * sparc-linux-tdep.c: Define enum with differences between SPARC
4121         and generic Linux kernel signal numbers.
4122         (sparc32_linux_gdb_signal_from_target): New function.
4123         (sparc32_linux_gdb_signal_to_target): Likewise.
4124         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4125         to the functions defined above.
4126         * xtensa-linux-tdep.c: Define enum with differences between
4127         Xtensa and Linux kernel generic signals.
4128         (xtensa_linux_gdb_signal_from_target): New function.
4129         (xtensa_linux_gdb_signal_to_target): Likewise.
4130         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4131         to the functions defined above.
4132         * mips-linux-tdep.c: Define enum with differences between
4133         signals in MIPS and Linux kernel generic ones.
4134         (mips_gdb_signal_to_target): New function.
4135         (mips_gdb_signal_from_target): Redefine to use new enum, handle
4136         only different signals from the Linux kernel generic.
4137         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4138         the functions defined above.
4139         * mips-linux-tdep.h (enum mips_signals): Remove.
4140
4141 2013-08-09  Pedro Alves  <palves@redhat.com>
4142
4143         * avr-tdep.c (XMALLOC): Delete macro.
4144         * cli/cli-dump.c (XMALLOC): Delete macro.
4145
4146 2013-08-09  Pedro Alves  <palves@redhat.com>
4147
4148         * cli/cli-dump.c: Don't include cli/cli-dump.h.
4149         (scan_expression_with_cleanup, scan_filename_with_cleanup)
4150         (fopen_with_cleanup, add_dump_command): Make static.
4151         * cli/cli-dump.h: Delete file.
4152         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4153         cli/cli-dump.h.
4154
4155 2013-08-09  Pedro Alves  <palves@redhat.com>
4156
4157         * tracepoint.c (tfile_start): Show tilde-expanded filename in
4158         error message.
4159
4160 2013-08-09  Pedro Alves  <palves@redhat.com>
4161
4162         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4163         error message.
4164
4165 2013-08-09  Pedro Alves  <palves@redhat.com>
4166
4167         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4168         (gcore_command): Use tilde_expand here, and when showing the
4169         filename to the user, show the expanded version.
4170
4171 2013-08-09  Yao Qi  <yao@codesourcery.com>
4172
4173         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4174         'entryval' is set.
4175
4176 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
4177
4178         * gcore.c (create_gcore_bfd): Use tilde_expand.
4179
4180 2013-08-08  Yao Qi  <yao@codesourcery.com>
4181
4182         * frame.h (read_frame_local): Declare.
4183         * mi/mi-cmd-stack.c (list_args_or_locals): Call
4184         read_frame_local.
4185         * stack.c (read_frame_local): New.
4186
4187 2013-08-08  Yao Qi  <yao@codesourcery.com>
4188
4189         * mi/mi-cmd-stack.c: Update comments to function
4190         list_args_or_locals.
4191
4192 2013-08-07  Tom Tromey  <tromey@redhat.com>
4193
4194         PR symtab/15028:
4195         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4196         (process_psymtab_comp_unit_reader): Use it.
4197         (process_psymtab_comp_unit): Update.  Add "pretend_language"
4198         argument.
4199         (dwarf2_build_psymtabs_hard): Update.
4200         (scan_partial_symbols): Pass CU's language to
4201         process_psymtab_comp_unit.
4202
4203 2013-08-07  Tom Tromey  <tromey@redhat.com>
4204
4205         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4206         (dwarf2_gdb_index_functions): Update.
4207         * psymtab.c (find_symbol_file_from_partial): Remove.
4208         (psym_functions): Update.
4209         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4210         Remove.
4211
4212 2013-08-07  Tom Tromey  <tromey@redhat.com>
4213
4214         * symfile.c (set_initial_language): Look up "main" symbol
4215         and use its language.
4216         * symtab.c (find_main_filename): Remove.
4217         * symtab.h (find_main_filename): Remove.
4218
4219 2013-08-07  Tom Tromey  <tromey@redhat.com>
4220
4221         * dwarf2read.c (recursively_compute_inclusions): Add
4222         "immediate_parent" argument.  Set symtab's "user" field
4223         if not set.
4224         (compute_symtab_includes): Update.
4225
4226 2013-08-07  Tom Tromey  <tromey@redhat.com>
4227
4228         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4229         when adding label symbols.
4230
4231 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4232             Ulrich Weigand  <uweigand@de.ibm.com>
4233
4234         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4235         * configure.host (powerpc64-*-aix*): Likewise.
4236
4237 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4238             Ulrich Weigand  <uweigand@de.ibm.com>
4239
4240         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4241         is defined.
4242         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4243         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4244         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4245         * configure.ac: Check for ptrace64.
4246         * configure, config.in: Regenerate.
4247
4248 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4249             Ulrich Weigand  <uweigand@de.ibm.com>
4250
4251         * aixthread.c: Call ptrace64 instead of ptracex if defined.
4252         Call ptrace64 instead of ptrace if defined.
4253         Add macro addr_ptr to take care of ptrace address argument.
4254         (pdc_read_regs): Likewise.
4255         (pdc_write_regs): Likewise.
4256         (aix_thread_resume): Likewise.
4257         (fetch_regs_kernel_thread): Likewise.
4258         (store_regs_kernel_thread): Likewise.
4259
4260 2013-08-07  Anton Blanchard  <anton@samba.org>
4261
4262         * MAINTAINERS: Add myself to Write After Approval.
4263
4264 2013-08-05  Tom Tromey  <tromey@redhat.com>
4265
4266         * aix-thread.c (_initialize_aix_thread): Use
4267         complete_target_initialization.
4268         * bsd-uthread.c (_initialize_bsd_uthread): Use
4269         complete_target_initialization.
4270         * dec-thread.c (_initialize_dec_thread): Use
4271         complete_target_initialization.
4272         * ravenscar-thread.c (_initialize_ravenscar): Use
4273         complete_target_initialization.
4274         * sol-thread.c (_initialize_sol_thread): Use
4275         complete_target_initialization.
4276         * spu-multiarch.c (_initialize_spu_multiarch): Use
4277         complete_target_initialization.
4278
4279 2013-08-05  Tom Tromey  <tromey@redhat.com>
4280
4281         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4282         * ada-lang.c (ada_lookup_simple_minsym): Return
4283         bound_minimal_symbol.
4284         * ada-lang.h (ada_lookup_simple_minsym): Update.
4285         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4286         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4287         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4288         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4289         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4290         * minsyms.c (msymbol_objfile): Remove.
4291         (lookup_minimal_symbol_internal): New function, from
4292         lookup_minimal_symbol.
4293         (lookup_minimal_symbol): Rewrite using
4294         lookup_minimal_symbol_internal.
4295         (lookup_bound_minimal_symbol): New function.
4296         * minsyms.h (msymbol_objfile): Remove.
4297         (lookup_bound_minimal_symbol): Declare.
4298         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4299         * parse.c (write_exp_msymbol): Change parameter to a
4300         bound_minimal_symbol.
4301         (write_dollar_variable): Use lookup_bound_minimal_symbol.
4302         * parser-defs.h (write_exp_msymbol): Update.
4303         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4304         * symfile.c (simple_read_overlay_table): Use
4305         lookup_bound_minimal_symbol.
4306         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4307         (search_symbols): Likewise.
4308         (print_msymbol_info): Take a bound_minimal_symbol argument.
4309         (symtab_symbol_info, rbreak_command): Update.
4310         * symtab.h (struct symbol_search) <msymbol>: Change type
4311         to bound_minimal_symbol.
4312         * valops.c (find_function_in_inferior): Use
4313         lookup_bound_minimal_symbol.
4314         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4315
4316 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4317
4318         Code cleanup.
4319         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4320         to ...
4321         (async_cleanup_sigint_signal_handler): ... this.
4322         (initialize_sigint_signal_handler): Remove declaration.
4323         (handle_remote_sigint): Rename the declaration to ...
4324         (async_handle_remote_sigint): ... this.
4325         (handle_remote_sigint_twice): Rename the declaration to ...
4326         (async_handle_remote_sigint_twice): ... this.
4327         (async_remote_interrupt, async_remote_interrupt_twice)
4328         (remote_interrupt): Remove the declarations.
4329         (remote_interrupt_twice): Rename the declaration ...
4330         (sync_remote_interrupt_twice): ... this.
4331         (sigint_remote_twice_token): Rename the variable to ...
4332         (async_sigint_remote_twice_token): ... this.
4333         (sigint_remote_token): Rename the variable to ...
4334         (async_sigint_remote_token): ... this.
4335         (initialize_sigint_signal_handler): Rename the function to ...
4336         (async_initialize_sigint_signal_handler): ... this.  Update the name
4337         inside.
4338         (handle_remote_sigint): Rename the function to ...
4339         (async_handle_remote_sigint): ... this.  Update the names inside.
4340         (handle_remote_sigint_twice): Rename the function to ...
4341         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
4342         (cleanup_sigint_signal_handler): Rename the function to ...
4343         (async_cleanup_sigint_signal_handler): ... this.
4344         (remote_interrupt): Rename the function to ...
4345         (sync_remote_interrupt): this.  Update the names inside.
4346         (remote_interrupt_twice): Rename the function to ...
4347         (sync_remote_interrupt_twice): this.  Update the names inside.
4348         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4349         (_initialize_remote): Update the names inside.
4350
4351 2013-08-02  Tom Tromey  <tromey@redhat.com>
4352
4353         PR symtab/15719:
4354         * breakpoint.c (update_watchpoint, watchpoint_check)
4355         (watch_command_1): Update.
4356         * eval.c (fetch_subexp_value): Add "preserve_errors"
4357         parameter.
4358         * ppc-linux-nat.c (check_condition): Update.
4359         * value.h (fetch_subexp_value): Update.
4360
4361 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
4362
4363         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4364         add_file_handler.
4365
4366 2013-08-01  Doug Evans  <dje@google.com>
4367
4368         PR symtab/15691
4369         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4370         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4371         Add assert of sig_entry->dwo_unit == NULL.
4372         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4373         had already been read.
4374         (read_signatured_type): Set per_cu.tu_read.
4375
4376         PR symtab/15695
4377         * valops.c (value_struct_elt): Add missing call to check_typedef.
4378         (value_find_oload_method_list): Ditto.
4379
4380         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4381         effectively, struct symbol_search **.
4382         (make_cleanup_free_search_symbols): Change arg to struct
4383         symbol_search **.  All callers updated.
4384         (compare_search_syms): Compare symtab file name and block as well.
4385         (search_symbols_equal): New function.
4386         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4387         New args new_head, new_tail.  Result is now void.  Remove dups after
4388         sorting the symbols.
4389         (search_symbols): Sort all found symbols once, after all have been
4390         found, and remove duplicates.  Simplify cleanup tracking of result.
4391         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4392
4393         Further workarounds for binutils/15021.
4394         * dwarf2read.c (recursively_compute_inclusions): Change type of result
4395         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
4396         Watch for duplicate symtabs coming from type units.
4397         (compute_symtab_includes): Update call to
4398         recursively_compute_inclusions. Build vector of included symtabs
4399         instead of per_cus.
4400         * symtab.h (symtab_ptr): New typedef.
4401         (DEF_VEC_P (symtab_ptr)): New VEC type.
4402         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
4403         instead.
4404
4405 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
4406
4407         * cli/cli-script.c (script_from_file): Remove use of
4408         error_pre_print.
4409         * main.c (captured_main): Remove use of error_pre_print and
4410         quit_pre_print.
4411         * utils.c (error_pre_print, quit_pre_print): Remove.
4412         * utils.h (error_pre_print, quit_pre_print): Likewise.
4413
4414 2013-08-01  Yao Qi  <yao@codesourcery.com>
4415
4416         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4417         with mi_getopt.
4418         (mi_cmd_stack_list_variables): Likewise.
4419
4420 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4421
4422         * exceptions.c (deprecated_throw_reason): Remove.
4423         * exceptions.h (deprecated_throw_reason): Remove.
4424
4425 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4426
4427         * remote-mips.c (mips_error): Replace use of
4428         deprecated_throw_reason with throw_verror.  Use the error message
4429         passed to mips_error as the error message for throw_verror.
4430
4431 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4432
4433         * monitor.c (monitor_interrupt_query): Replace use of
4434         deprecated_throw_reason with quit.
4435         * nto-procfs.c (interrupt_query): Likewise.
4436         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4437         * remote-mips.c (mips_kill): Likewise.
4438         * remote.c (interrupt_query): Likewise.
4439
4440 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
4441
4442         * utils.c (internal_verror): Replace use of deprecated_throw_reason
4443         with call to fatal.
4444
4445 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
4446             Yao Qi  <yao@codesourcery.com>
4447
4448         * tracepoint.c (trace_dump_command): Select the current frame.
4449
4450 2013-07-30  Doug Evans  <dje@google.com>
4451
4452         * dwarf2read.c (process_queue): Add type signature to debug output.
4453
4454 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
4455
4456         * value.c (value_fetch_lazy): Mark optimized out values as such
4457         rather than raising an error.
4458
4459 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
4460
4461         * value.c (value_fetch_lazy): Ensure parent value is not lazy
4462         before checking which bits of the parent, not the child, value are
4463         valid.
4464
4465 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
4466
4467         PR gdb/15715
4468         * top.c: Include "filenames.h".
4469         (set_history_filename): New function.
4470         (init_main): Install it as set hook of the "set history filename"
4471         command.
4472
4473 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
4474
4475         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4476         attribute parameter.
4477         (dwarf2_const_value_data): Constify struct attribute parameter.
4478         (dwarf2_const_value): Constify struct attribute parameter.
4479         (dwarf2_const_value_attr): Constify struct attribute parameter.
4480         (lookup_die_type): Constify struct attribute parameter.
4481         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4482         (follow_die_ref_or_sig): Constify struct attribute parameter.
4483         (follow_die_ref): Constify struct attribute parameter.
4484         (follow_die_sig): Constify struct attribute parameter.
4485         (get_DW_AT_signature_type): Constify struct attribute parameter.
4486         (get_type_unit_group): Constify struct attribute parameter.
4487         (fill_in_loclist_baton): Constify struct attribute parameter.
4488         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4489         (type_unit_group): Constify struct attribute parameter.
4490
4491 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
4492
4493         * dwarf2read.c (attr_form_is_block): Make argument const.
4494         (attr_form_is_section_offset): Make argument const.
4495         (attr_form_is_constant): Make argument const.
4496         (attr_form_is_ref): Make argument const.
4497
4498 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
4499
4500         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4501         All uses updated.
4502         (attr_form_is_ref): Moved below attr_form_is_constant.
4503
4504 2013-07-29  Doug Evans  <dje@google.com>
4505
4506         * main.c (captured_command_loop): Tweak comment.
4507
4508         * target.c (target_async_permitted_1): Fix comment.
4509
4510         * symtab.c (iterate_over_some_symtabs): Add comment.
4511
4512         * symtab.c (iterate_over_some_symtabs): Fix indentation.
4513
4514 2013-07-27  Yao Qi  <yao@codesourcery.com>
4515
4516         * NEWS: Mention that GDBserver now supports hardware
4517         watchpoints on the MIPS GNU/Linux target.
4518
4519 2013-07-27  Yao Qi  <yao@codesourcery.com>
4520
4521         * Makefile.in (HFILES_NO_SRCDIR): Add
4522         common/mips-linux-watch.h.
4523         (mips-linux-watch.o): New rule.
4524         * common/mips-linux-watch.c: New.
4525         * common/mips-linux-watch.h: New.
4526         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4527         * mips-linux-nat.c: Include mips-linux-watch.h.
4528         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4529         to common/mips-linux-watch.h.
4530         (MAX_DEBUG_REGISTER): Likewise.
4531         (enum pt_watch_style): Likewise.
4532         (struct mips32_watch_regs): Likewise.
4533         (struct mips64_watch_regs): Likewise.
4534         (struct pt_watch_regs): Likewise.
4535         (struct mips_watchpoint): Likewise.
4536         (mips_linux_watch_get_irw_mask): Move to
4537         common/mips-linux-watch.c.
4538         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4539         (mips_linux_watch_get_watchlo): Likewise.
4540         (mips_linux_watch_set_watchlo): Likewise.
4541         (mips_linux_watch_get_watchhi): Likewise.
4542         (mips_linux_watch_set_watchhi): Likewise.
4543         (mips_linux_read_watch_registers): Likewise.
4544         (mips_linux_watch_type_to_irw): Likewise.
4545         (mips_linux_stopped_data_address, fill_mask): Likewise.
4546         (mips_linux_watch_try_one_watch): Likewise.
4547         (mips_linux_watch_populate_regs): Likewise.
4548
4549 2013-07-27  Yao Qi  <yao@codesourcery.com>
4550
4551         * mips-linux-nat.c (get_irw_mask): Rename to ...
4552         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
4553         'set' to 'n'.  Update function comment.  All callers changed.
4554         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
4555         function comment.  All callers changed.
4556         (get_num_valid): Rename to ...
4557         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
4558         'set' to 'n'.  Update function comment.  All callers changed.
4559         (get_watchlo): Rename to ...
4560         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
4561         'set' to 'n'.  Update function comment.  All callers changed.
4562         (set_watchlo): Rename to ...
4563         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
4564         'set' to 'n'.  Update function comment.  All callers changed.
4565         (get_watchhi): Rename to ...
4566         (mips_linux_watch_get_watchhi): ... this.  Update function
4567         comment.  All callers changed.
4568         (set_watchhi): Rename to ...
4569         (mips_linux_watch_set_watchhi): ... this.  Update function
4570         comment.  All callers changed.
4571         (mips_linux_read_watch_registers): Update function comment.
4572         Add new parameters 'lwpid', 'watch_readback', and
4573         'watch_readback_valid'.  Update.
4574         (type_to_irw): Rename to ...
4575         (mips_linux_watch_type_to_irw): ... this.  Update function
4576         comment.  All callers changed.
4577         (fill_mask): Update function comment.
4578         (try_one_watch): Rename to ...
4579         (mips_linux_watch_try_one_watch): ... this.  Change the type
4580         of parameter 'irw' from 'unsigned' to 'uint32_t'.
4581         (populate_regs_from_watches): Rename to ...
4582         (mips_linux_watch_populate_regs): ... this.  Add parameter
4583         'current_watches'.  All callers changed.
4584
4585 2013-07-27  Yao Qi  <yao@codesourcery.com>
4586
4587         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4588         the code.
4589         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4590         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4591         (struct pt_watch_regs): Likewise.
4592         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4593         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4594         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4595         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4596         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4597
4598 2013-07-27  Yao Qi  <yao@codesourcery.com>
4599
4600         * breakpoint.h: Include break-common.h.
4601         (enum target_hw_bp_type): Move to ...
4602         * common/break-common.h: ... here.  New.
4603
4604 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
4605
4606         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4607         process group regardless of having tty on stdin.
4608
4609 2013-07-25  Doug Evans  <dje@google.com>
4610
4611         * linux-fork.h (detach_fork): Delete.
4612
4613 2013-07-25  Tom Tromey  <tromey@redhat.com>
4614
4615         PR remote/15256, PR remote/15266:
4616         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4617         * monitor.c (monitor_detach): Use unpush_target.
4618         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4619         * remote-mips.c (mips_detach): Use unpush_target.  Don't
4620         call mips_close.
4621         * remote-sim.c (gdbsim_detach): Use unpush_target.
4622         * target.c (pop_target): Remove.
4623         (pop_all_targets_above): Don't call target_close.
4624         (target_close): Assert that the target is unpushed.
4625         * target.h (pop_target): Don't declare.
4626         * tracepoint.c (tfile_open): Use unpush_target.
4627
4628 2013-07-25  Tom Tromey  <tromey@redhat.com>
4629
4630         * linux-thread-db.c (init_thread_db_ops): Call
4631         complete_target_initialization.
4632         (_initialize_thread_db): Don't call add_target.
4633         * target.c (complete_target_initialization): New function.
4634         (add_target_with_completer): Call it.
4635         * target.h (complete_target_initialization): Declare.
4636
4637 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
4638
4639         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4640         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4641         (HPPANBSD_SIZEOF_GREGS): New define.
4642         (hppaobsd_supply_gregset): Handle additional registers.
4643         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4644         we provide more registers now.
4645         (hppabsd_supply_gregset): Supply additional registers.
4646         (hppabsd_collect_gregset): Collect additional registers.
4647
4648 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
4649
4650         * hppabsd-tdep.c: Include "dwarf2-frame.h".
4651         (hppabsd_dwarf2_frame_init_reg): New function.
4652         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4653
4654 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
4655
4656         * mi/mi-main.c (output_register): Make MI 'r' format use standard
4657         'z' format code.  Remove error for optimized out values, standard
4658         code will handle these fine.
4659
4660 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
4661
4662         * NEWS: Mention new 'z' formatter.
4663         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4664         (_initialize_printcmd): Mention 'z' formatter in help text of the
4665         'x' command.
4666
4667 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
4668
4669         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4670         formatting.
4671
4672 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
4673
4674         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4675         interface can evaluate arguments.  Fallback to the old mode if it
4676         cannot.
4677         (create_exception_master_breakpoint): Likewise.
4678         * elfread.c (elf_can_evaluate_probe_arguments): New function.
4679         (struct sym_probe_fns elf_probe_fns): Export function above to the
4680         probe interface.
4681         * probe.c (can_evaluate_probe_arguments): New function.
4682         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4683         function pointer.
4684         (can_evaluate_probe_arguments): New function prototype.
4685         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4686         probe interface can evaluate arguments.  Fallback to the old mode
4687         if it cannot.
4688         * stap-probe.c (stap_get_probe_argument_count): Check if probe
4689         interface can evaluate arguments.  Warning the user if it cannot.
4690         (stap_can_evaluate_probe_arguments): New function.
4691         (struct probe_ops stap_probe_ops): Export function above to the
4692         probe interface.
4693         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4694         New function pointer.
4695
4696 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
4697
4698         * Makefile.in (SFILES): Add common/target-common.c.
4699         Add common/target-common.h to headers.
4700         (COMMON_OBS): Add target-common.o.
4701         (target-common.o): New target.
4702         * linux-nat.h (resume_kind): Move to common/target-common.h.
4703         * target.c (target_waitstatus_to_string): Move to
4704         common/target-common.c.
4705         * target.h: Include target-common.h.
4706         (target_waitkind): Move to common/target-common.h.
4707         (target_waitstatus): Likewise.
4708         (TARGET_WNOHANG): Likewise.
4709         * common/target-common.c: New file.
4710         * common/target-common.h: New file.
4711
4712 2013-07-24  Doug Evans  <dje@google.com>
4713
4714         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4715         a warning.
4716
4717 2013-07-23  Yao Qi  <yao@codesourcery.com>
4718
4719         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4720         parameter 'gdbarch'.
4721         (i386_stack_tramp_frame_sniffer): Caller update.
4722         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4723         parameter 'gdbarch' and 'target'.
4724         (i386_linux_core_read_description): Caller update.
4725         * amd64-linux-tdep.c (amd64_linux_core_read_description):
4726         Likewise.
4727         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4728         declaration.
4729
4730 2013-07-23  Tom Tromey  <tromey@redhat.com>
4731
4732         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4733         2013-07-22.
4734
4735 2013-07-22  Doug Evans  <dje@google.com>
4736
4737         * exec.h (remove_target_sections): Delete arg abfd.
4738         * exec.c (exec_close): Update call to remove_target_sections.
4739         (remove_target_sections): Delete arg abfd.
4740         * solib.c (update_solib_list): Ditto.
4741         (reload_shared_libraries_1): Ditto.
4742         (clear_solib): Ditto, and unconditionally call remove_target_sections.
4743         * target.h (struct target_section): Rename key to owner.
4744         All uses updated.
4745
4746 2013-07-22  Tom Tromey  <tromey@redhat.com>
4747
4748         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4749
4750 2013-07-22  Tom Tromey  <tromey@redhat.com>
4751
4752         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4753         Simplify cleanup handling.
4754
4755 2013-07-22  Tom Tromey  <tromey@redhat.com>
4756
4757         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4758         on all return paths.
4759
4760 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4761
4762         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4763         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4764         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4765
4766 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4767
4768         * top.c (print_gdb_version): Add help, apropos description and
4769         url to online documentation.
4770
4771 2013-07-19  Hui Zhu  <hui@codesourcery.com>
4772
4773         PR gdb/15692
4774         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4775
4776 2013-07-19  Yao Qi  <yao@codesourcery.com>
4777
4778         * target.c (update_current_target): Change the default action
4779         of 'to_traceframe_info' from tcomplain to return_zero.
4780         * target.h (struct target_ops) <to_traceframe_info>: Add more
4781         comments.
4782         * valops.c (read_value_memory): Call
4783         traceframe_available_memory unconditionally.
4784
4785 2013-07-18  Yao Qi  <yao@codesourcery.com>
4786
4787         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4788         if the name is prefixed by "__imp_" or "_imp_", look for minimal
4789         symbol without prefix.  If found, set its type to
4790         'mst_solib_trampoline'.
4791
4792 2013-07-17  Doug Evans  <dje@google.com>
4793
4794         * NEWS: Mention "set print raw frame-arguments".
4795         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4796         * stack.c (print_raw_frame_arguments): New static global.
4797         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4798         (_initialize_stack): New command "set/show print raw frame-arguments".
4799         * valprint.c (setprintrawlist, showprintrawlist): New globals.
4800         (set_print_raw, show_print_raw): New functions.
4801         (_initialize_valprint): New prefix command "set/show print raw".
4802         * valprint.h (value_print_options): Improve comments.
4803
4804         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4805         of all *list variables.
4806
4807         * gdbcmd.h (togglelist): Delete.
4808         * cli/cli-cmds.c (togglelist): Delete.
4809         (init_cmd_lists): Update.
4810         * cli/cli-cmds.h (togglelist): Delete.
4811
4812 2013-07-17  Tom Tromey  <tromey@redhat.com>
4813
4814         * dwarf2read.c (dwarf2_per_objfile_free): Clear
4815         dwarf2_per_objfile.
4816
4817 2013-07-16  Doug Evans  <dje@google.com>
4818
4819         * nto-tdep.c (nto_relocate_section_addresses): Update,
4820         target_section.bfd deleted.
4821         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4822         * s390-tdep.c (s390_load): Ditto.
4823         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4824
4825 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
4826
4827         * common/format.c (parse_format_string): Add checks for NULL
4828         character before calling strchr.
4829
4830 2013-07-16  Doug Evans  <dje@google.com>
4831
4832         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4833         temp_pathname argument.
4834         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4835         when opening the file fails.
4836
4837         * target.h (struct target_section): Delete member bfd.
4838         All users updated to use the_bfd_section->owner instead.
4839         * exec.c (add_to_section_table): Assert bfd is expected value.
4840         Remove initialization of target_section.bfd.
4841         (remove_target_sections): Update.
4842         (section_table_available_memory): Update.
4843         (section_table_xfer_memory_partial): Update.
4844         (print_section_info): Update.
4845         (exec_set_section_address): Update.
4846         * record-full.c (record_full_core_xfer_partial): Update.
4847         * solib-svr4.c (svr4_relocate_section_addresses): Update.
4848         * solib-target.c (solib_target_relocate_section_addresses): Update.
4849         * symfile.c (build_section_addr_info_from_section_table): Update.
4850         * target.c (memory_xfer_live_readonly_partial): Update.
4851         (memory_xfer_partial_1): Update.
4852
4853 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4854
4855         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4856         now available for embedded (BookE) and server (BookS) processors,
4857         correct mentions of 'booke' and adjust comments accordingly in order to
4858         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4859         (have_ptrace_booke_interface): Rename function and variable
4860         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4861         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4862         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4863         'hwdebug_point_cmp'. Update all uses.
4864         (booke_find_thread_points_by_tid): Rename function
4865         'booke_find_thread_points_by_tid' to
4866         'hwdebug_find_thread_points_by_tid'. Update all uses.
4867         (booke_insert_point): Rename function 'booke_insert_point' to
4868         'hwdebug_insert_point'. Update all uses.
4869         (booke_remove_point): Rename function 'booke_remove_point' to
4870         'hwdebug_remove_point'. Update all uses.
4871
4872 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
4873
4874         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4875         numbers with enum values.
4876
4877 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
4878
4879         PR threads/13217
4880         * thread.c (thread_apply_all_command): Check for valid threads
4881         and thread count.
4882         (thread_array_cleanup): New struct.
4883         (set_thread_refcount): New function.
4884
4885 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
4886
4887         * infcmd.c (default_print_one_register_info): Reuse function
4888         print_hex_chars.
4889
4890 2013-07-10  Tom Tromey  <tromey@redhat.com>
4891
4892         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4893         (ada-exp.o): New target.
4894
4895 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
4896
4897         * mt-tdep.c (mt_registers_info): Call
4898         get_no_prettyformat_print_options instead of
4899         get_raw_print_options (regression by last patch from Doug
4900         Evans).
4901
4902 2013-07-09  Pedro Alves  <palves@redhat.com>
4903
4904         Checked in by Joel Brobecker  <brobecker@adacore.com>.
4905         * ada-lang.c (coerce_unspec_val_to_type): Use
4906         value_optimized_out_const.
4907         * value.c (value_optimized_out_const): New function.
4908         * value.h (value_optimized_out_const): New declaration.
4909
4910 2013-07-09  Doug Evans  <dje@google.com>
4911
4912         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4913         Enum values rename as well.  All uses updated.
4914         * valprint.h (value_print_options): Rename member pretty to
4915         pretty format.  Rename member prettyprint_arrays to
4916         prettyformat_arrays.  Rename member prettyprint_structs to
4917         prettyformat_structs.  All uses updated.
4918         (get_no_prettyformat_print_options): Renamed from
4919         get_raw_print_options.
4920         * valprint.c (get_no_prettyformat_print_options): Renamed from
4921         get_raw_print_options.  All callers updated.
4922         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4923         All callers updated.
4924         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4925         All callers updated.
4926         (_initialize_valprint): Improve help text for "set print pretty" and
4927         "set print arrays".
4928
4929 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
4930
4931         * value.c (value_bits_valid): Revert previous change, and change
4932         by Pedro on 2013-07-04, due to regressions in
4933         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4934
4935 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
4936             Pedro Alves  <palves@redhat.com>
4937
4938         * value.c (value_bits_valid): If the value is not lval_computed
4939         or has no check validity handler then the answer is the
4940         optimized_out flag, otherwise defer to the handler.
4941
4942 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
4943
4944         * top.c (print_gdb_configuration): Explain in output of
4945         --configuration what does "relocatable" mean.
4946
4947         * main.c (print_gdb_help): Regroup options in the --help text.
4948         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4949         the relevant discussions.
4950
4951 2013-07-06  Yao Qi  <yao@codesourcery.com>
4952
4953         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4954         Remove parameter 'lsal'.
4955         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4956         to inner block.  Caller update.
4957         (base_breakpoint_create_breakpoints_sal): Update.
4958         (bkpt_create_breakpoints_sal): Likewise.
4959         (tracepoint_create_breakpoints_sal): Likewise.
4960         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4961         element 0 of vector 'canonical->sals'.
4962
4963 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
4964
4965         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4966         register number instead of the pseudo register one.
4967         (rs6000_dwarf2_reg_to_regnum): Likewise.
4968
4969 2013-07-04  Pedro Alves  <palves@redhat.com>
4970
4971         * findvar.c (value_of_register): Use allocate_optimized_out_value
4972         if the register has been optimized out, instead of
4973         set_value_optimized_out.
4974         * frame-unwind.c (frame_unwind_got_optimized): Use
4975         allocate_optimized_out_value.
4976
4977 2013-07-04  Pedro Alves  <palves@redhat.com>
4978
4979         * value.c (value_bits_valid): If the value is not lval_computed,
4980         or doesn't have a check_validity hook, assume the value is entirely
4981         valid.
4982
4983 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
4984
4985         * stack.c (read_frame_arg): No longer fetch lazy values.
4986         * value.c (value_optimized_out): If the value is not already
4987         marked optimized out, and is lazy then fetch it.
4988         (value_primitive_field): Move optimized out check to later in the
4989         function, after we have loaded any lazy values.
4990         (value_fetch_lazy): Use optimized out flag directly rather than
4991         calling optimized_out method.
4992
4993 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
4994
4995         * valops.c: Don't include "user-regs.h".
4996         (value_fetch_lazy): Moved to value.c.
4997         * value.c: Include "user-regs.h".
4998         (value_fetch_lazy): Moved from valops.c.
4999
5000 2013-07-04  Yao Qi  <yao@codesourcery.com>
5001
5002         Revert:
5003         2013-06-27  Yao Qi  <yao@codesourcery.com>
5004
5005         * common/create-version.sh: Update comments.  Handle the case
5006         that TARGET_ALIAS is empty.
5007
5008 2013-07-03  Pedro Alves  <palves@redhat.com>
5009
5010         * Makefile.in (config.status): Depend on development.sh.
5011         (aclocal_m4_deps): Add libmcheck.m4.
5012         * acinclude.m4: Include libmcheck.m4.
5013         * configure.ac: Source development.sh instead of setting
5014         'development' here.  --enable-libmcheck/--disable-libmcheck code
5015         factored out to GDB_AC_LIBMCHECK.  Run it.
5016         * development.sh: New file.
5017         * libmcheck.m4: New file.
5018         * configure: Regenerate.
5019
5020 2013-07-02  Tom Tromey  <tromey@redhat.com>
5021
5022         * contrib/ari/update-web-ari.sh: Update for version.in change.
5023
5024 2013-07-02  Tom Tromey  <tromey@redhat.com>
5025
5026         * common/ptid.h: Comment fixes.
5027
5028 2013-07-01  Tom Tromey  <tromey@redhat.com>
5029
5030         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5031         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
5032         (dwarf2_read_index, create_all_comp_units): Update.
5033
5034 2013-07-01  Tom Tromey  <tromey@redhat.com>
5035
5036         * configure.ac (build_warnings): Add -Wold-style-definition.
5037         * configure: Rebuild.
5038         * machoread.c (_initialize_machoread): Use "(void)".
5039         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5040         use "(void)".
5041
5042 2013-07-01  Tom Tromey  <tromey@redhat.com>
5043
5044         * configure.ac (build_warnings): Add -Wold-style-declaration.
5045         * configure: Rebuild.
5046         * dsrec.c (make_srec): Use "static const", not "const static".
5047         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5048         not "const static".
5049         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5050         Use "static const", not "const static".
5051         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5052         not "const static".
5053         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5054         not "const static".
5055         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5056         not "const static".
5057         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5058         not "const static".
5059         (v850_dbtrap_breakpoint_from_pc): Likewise.
5060         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5061         not "const static".
5062
5063 2013-07-01  Tom Tromey  <tromey@redhat.com>
5064
5065         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5066         * configure: Rebuild.
5067
5068 2013-07-01  Pedro Alves  <palves@redhat.com>
5069
5070         * defs.h: Include "pathmax.h".
5071         * utils.c: Don't include sys/param.h.
5072         (gdb_realpath): Remove code that checks for MAXPATHLEN.
5073         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5074         instead of MAXPATHLEN.
5075         * solib-sunos.c: Don't include sys/param.h.
5076         * xcoffread.c: Don't include sys/param.h.
5077         * bsd-kvm.c: Don't include sys/param.h.
5078         * darwin-nat.c: Don't include sys/param.h.
5079         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5080         * darwin-nat-info.c: Don't include sys/param.h.
5081         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5082         MAXPATHLEN.
5083         * i386obsd-nat.c: Don't include sys/param.h.
5084         * inf-child.c: Don't include sys/param.h.
5085         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5086         * linux-fork.c: Don't include sys/param.h.
5087         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5088         * linux-nat.c: Don't include sys/param.h.
5089         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5090         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5091         * m68klinux-nat.c: Don't include sys/param.h.
5092         * nbsd-nat.c: Don't include sys/param.h.
5093         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5094         * ppc-linux-nat.c: Don't include sys/param.h.
5095         * rs6000-nat.c: Don't include sys/param.h.
5096         * spu-linux-nat.c. Don't include sys/param.h.
5097         * windows-nat.c: Don't include sys/param.h.
5098         * xtensa-linux-nat.c: Don't include sys/param.h.
5099         * config/i386/nm-fbsd.h: Don't include sys/param.h.
5100
5101 2013-07-01  Pedro Alves  <palves@redhat.com>
5102
5103         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5104         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5105         * gnulib/aclocal.m4: Regenerate.
5106         * gnulib/config.in: Regenerate.
5107         * gnulib/configure: Regenerate.
5108         * gnulib/import/pathmax.h: New file.
5109         * gnulib/import/Makefile.am: Regenerate.
5110         * gnulib/import/Makefile.in: Regenerate.
5111         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5112         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5113         * gnulib/import/m4/pathmax.m4: New file.
5114
5115 2013-07-01  Pedro Alves  <palves@redhat.com>
5116
5117         * configure.ac (GDBINIT): Define, depending on host.
5118         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5119         * top.c (PATH_MAX): Delete fallback definition.
5120         (GDBINIT_FILENAME): Delete.
5121         (gdbinit): Reimplement as const char array set to the GDBINIT
5122         string constant.
5123         * top.h (gdbinit): Make const.
5124         * configure, config.in: Regenerate.
5125
5126 2013-07-01  Pedro Alves  <palves@redhat.com>
5127
5128         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5129         * cli/cli-cmds.h (source_script): Likewise.
5130         * exceptions.c (catch_command_errors_const): New function.
5131         * exceptions.h (catch_command_errors_const): Declare.
5132         * main.c (get_init_files): Make parameters const, and adjust.
5133         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5134         'local_gdbinit' locals const.  Adjust to use
5135         catch_command_errors_const.
5136         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5137         'local_gdbinit' locals const.
5138
5139 2013-07-01  Pedro Alves  <palves@redhat.com>
5140
5141         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5142         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5143         * tracepoint.c: Don't check HAVE_UNISTD_H before including
5144         <unistd.h>.
5145
5146 2013-07-01  Pedro Alves  <palves@redhat.com>
5147
5148         Import the "unistd" gnulib module.
5149         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5150         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5151         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5152         import/m4/unistd_h.m4.
5153         * gnulib/aclocal.m4: Renenerate.
5154         * gnulib/config.in: Renenerate.
5155         * gnulib/configure: Renenerate.
5156         * gnulib/import/Makefile.am: Renenerate.
5157         * gnulib/import/Makefile.in: Renenerate.
5158         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5159         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5160         * gnulib/import/m4/off_t.m4: New file.
5161         * gnulib/import/m4/ssize_t.m4: New file.
5162         * gnulib/import/m4/sys_types_h.m4: New file.
5163         * gnulib/import/m4/unistd_h.m4: New file.
5164         * gnulib/import/sys_types.in.h: New file.
5165         * gnulib/import/unistd.c: New file.
5166         * gnulib/import/unistd.in.h: New file.
5167
5168 2013-07-01  Pedro Alves  <palves@redhat.com>
5169
5170         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5171         defined instead of checking HAVE_UNISTD_H.
5172
5173 2013-07-01  Pedro Alves  <palves@redhat.com>
5174
5175         Reimport gnulib from scratch.
5176         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5177         import/m4/onceonly.m4.
5178         * gnulib/aclocal.m4: Renegerate.
5179         * gnulib/config.in: Renegerate.
5180         * gnulib/configure: Renegerate.
5181         * gnulib/import/Makefile.in: Renegerate.
5182         * gnulib/import/extra/update-copyright: Renegerate.
5183         * gnulib/import/m4/onceonly.m4: Delete.
5184
5185 2013-07-01  Pedro Alves  <palves@redhat.com>
5186
5187         * tui/tui-regs.c (pagination_enabled): Delete declaration.
5188
5189 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
5190
5191         Code cleanup.
5192         * remote.c (async_remote_interrupt_twice): Make it static.
5193         * remote.h (async_remote_interrupt_twice): Remove the declaration.
5194
5195 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5196
5197         * ia64-linux-tdep.c: Include <ctype.h>.
5198         (ia64_linux_stap_is_single_operand): New function.
5199         (ia64_linux_init_abi): Initialize SystemTap related attributes.
5200
5201 2013-06-28  Tom Tromey  <tromey@redhat.com>
5202
5203         * Makefile.in (version.c): Use version.in, not
5204         common/version.in.
5205         * common/create-version.sh: Likewise.
5206         * common/version.in: Move...
5207         * version.in: ...here.
5208
5209 2013-06-28  Pedro Alves  <palves@redhat.com>
5210
5211         * infrun.c (set_observer_mode): Don't declare pagination_enabled
5212         here.
5213         * utils.h (pagination_enabled): Declare.
5214
5215 2013-06-28  Pedro Alves  <palves@redhat.com>
5216
5217         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5218         Move higher up in file.
5219
5220 2013-06-28  Tom Tromey  <tromey@redhat.com>
5221
5222         * tracepoint.c (deprecated_readline_begin_hook)
5223         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5224         declare.
5225
5226 2013-06-28  Pedro Alves  <palves@redhat.com>
5227
5228         PR tui/14880
5229         * tui/tui-regs.c (tui_get_register): Fetch value contents before
5230         checking if they're available.
5231         * value.c (value_available_contents_eq): Change comment.
5232         * value.h (value_available_contents_eq): Expand comment.
5233
5234 2013-06-27  Tom Tromey  <tromey@redhat.com>
5235
5236         * target.c (find_run_target): Remove.
5237         * target.h (find_run_target): Remove.
5238
5239 2013-06-27  Tom Tromey  <tromey@redhat.com>
5240
5241         * corelow.c (core_gdbarch): Now static.
5242
5243 2013-06-27  Tom Tromey  <tromey@redhat.com>
5244
5245         * target.c (target_struct_index): Remove.
5246
5247 2013-06-27  Pedro Alves  <palves@redhat.com>
5248
5249         * infrun.c: Remove comment describing the 'stepping over runtime
5250         loader dynamic symbol resolution code' mechanism; moved to
5251         gdbint.texinfo.
5252
5253 2013-06-27  Pedro Alves  <palves@redhat.com>
5254
5255         * exceptions.c (catch_command_errors): Remove spurious space.
5256         * exceptions.h (catch_command_errors): Second parameter is "arg",
5257         not "command".
5258
5259 2013-06-27  Yao Qi  <yao@codesourcery.com>
5260
5261         * common/create-version.sh: Update comments.  Handle the case
5262         that TARGET_ALIAS is empty.
5263
5264 2013-06-26  Pedro Alves  <palves@redhat.com>
5265
5266         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5267         comment.
5268
5269 2013-06-26  Pedro Alves  <palves@redhat.com>
5270
5271         * infrun.c: Update comments on stepping over runtime loader
5272         dynamic symbol resolution code.
5273
5274 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
5275
5276         * ax-gdb.h (union exp_element): Forward declare.
5277         * parser-defs.h: Include expression.h.
5278
5279 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5280
5281         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5282
5283 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
5284
5285         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5286
5287 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
5288
5289         Fix trace-status to output proper start-time and stop-time.
5290         * tracepoint.c (trace_status_command): Fix type of printf arg to
5291         prevent improper type conversion.
5292         (trace_status_mi): Likewise.
5293
5294 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5295
5296         * mips-tdep.c (mips_next_pc): Fix a typo.
5297
5298 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5299
5300         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5301
5302 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5303             Yao Qi  <yao@codesourcery.com>
5304
5305         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5306         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5307         * mi/mi-main.c (print_variable_or_computed): New function.
5308         (mi_cmd_trace_frame_collected): New function.
5309         * tracepoint.c (find_trace_state_variable_by_number): New.
5310         (struct traceframe_info): Move to tracepoint.h
5311         (struct collection_list): Likewise.
5312         (do_collect_symbol): Include locals and arguments in the
5313         collected variables list.
5314         (clear_collection_list): Clear wholly collected variables list
5315         and computed variables list.
5316         (append_exp): New function.
5317         (encode_actions_1): Include variables in the wholly
5318         collected variables list.  Include memory ranges and
5319         full-fledged expressions in the computed expressions list.
5320         (encode_actions): Move some code to ...
5321         Return the cleanup chain.
5322         (encode_actions_rsp): ... here.  New function.
5323         (get_traceframe_location, get_traceframe_info): Remove static.
5324         * tracepoint.h (struct memrange): Moved from tracepoint.c.
5325         (struct collection_list): Moved from tracepoint.c.  Add two
5326         new fields 'wholly_collected' and 'computed'.
5327         (find_trace_state_variable_by_number): Declare.
5328         (encode_actions): Adjust declaration.
5329         (encode_actions_rsp): Declare.
5330         (get_traceframe_info, get_traceframe_location): Declare.
5331
5332         * NEWS: Mention new MI command -trace-frame-collected.
5333
5334 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5335             Yao Qi  <yao@codesourcery.com>
5336
5337         * ctf.c (ctf_traceframe_info): Push trace state variables
5338         present in the trace data into the traceframe info object.
5339         * breakpoint.c (DEF_VEC_I): Remove.
5340         * common/filestuff.c (DEF_VEC_I): Likewise.
5341         * dwarf2loc.c (DEF_VEC_I): Likewise.
5342         * mi/mi-main.c (DEF_VEC_I): Likewise.
5343         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5344         * features/traceframe-info.dtd: Add tvar element and its
5345         attributes.
5346         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5347         (build_traceframe_info): Push trace state variables present in
5348         the trace data into the traceframe info object.
5349         (traceframe_info_start_tvar): New function.
5350         (tvar_attributes): New.
5351         (traceframe_info_children): Add "tvar" element.
5352         * tracepoint.h (struct traceframe_info) <tvars>: New field.
5353
5354         * NEWS: Mention the change in GDB and GDBserver.
5355
5356 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5357             Yao Qi  <yao@codesourcery.com>
5358
5359         * tracepoint.c (trace_dump_command): Move code to ...
5360         (get_traceframe_location): ... here.  New.
5361
5362 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5363             Yao Qi  <yao@codesourcery.com>
5364
5365         * tracepoint.c (trace_dump_command): GDB emits an error
5366          instead of a warning when a traceframe is not selected.
5367
5368 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
5369             Yao Qi  <yao@codesourcery.com>
5370
5371         * tracepoint.c (tracepoint_list, stepping_list): Remove.
5372         (clear_collection_list): Free fields 'aexpre_list' and 'list'
5373         in collection_list.
5374         (do_clear_collection_list, init_collection_list): New.
5375         (encode_actions): Add local variables 'tracepoint_list' and
5376         'stepping_list'.  Call init_collection_list and make cleanup
5377         which calls do_clear_collection_list.  Don't call
5378         clear_collection_list.
5379         (_initialize_tracepoint): Delete references to
5380         'tracepoint_list' and 'stepping_list'.
5381
5382 2013-06-25  Tom Tromey  <tromey@redhat.com>
5383
5384         * common/create-version.sh (date): Use "$", not "$$" in sed
5385         expression.
5386
5387 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
5388
5389         * NEWS (New targets): Add entry for TI MSP430.
5390
5391 2013-06-25  Yao Qi  <yao@codesourcery.com>
5392
5393         * remote.c (remote_start_remote): Move code to upload tsv
5394         earlier.
5395
5396 2013-06-25  Yao Qi  <yao@codesourcery.com>
5397             Hui Zhu  <hui@codesourcery.com>
5398             Pedro Alves  <palves@redhat.com>
5399
5400         PR breakpoints/15075
5401         PR breakpoints/15434
5402         * breakpoint.c (bpstat_stop_status): Call
5403         b->ops->after_condition_true.
5404         (update_dprintf_command_list): Don't append "continue" command
5405         to the command list of dprintf breakpoint.
5406         (base_breakpoint_after_condition_true): New function.
5407         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5408         (dprintf_after_condition_true): New function.
5409         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5410         * breakpoint.h (breakpoint_ops): Add after_condition_true.
5411
5412 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
5413
5414         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5415         (ALLDEPFILES): Add msp430-tdep.c.
5416         * configure.tgt (msp430*-*-elf): New target.
5417         * msp430-tdep.c: New file.
5418
5419 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
5420
5421         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5422         microMIPS synthetic symbols.
5423
5424 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
5425
5426         * objfiles.h (pc_in_section): New prototype.
5427         (in_plt_section): Remove name argument, replace prototype with
5428         static inline function.
5429         * mips-tdep.h: Include "objfiles.h".
5430         (in_mips_stubs_section): New function.
5431         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5432         in_solib_call_trampoline member.
5433         (hppa_in_solib_call_trampoline): Remove name argument.
5434         * objfiles.c (pc_in_section): New function.
5435         (in_plt_section): Remove function.
5436         * mips-linux-tdep.c: Include "objfiles.h".
5437         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
5438         name argument.  Return 1 rather than the low 16-bit halfword of
5439         any instruction examined.
5440         (mips_linux_in_dynsym_resolve_code): Update
5441         mips_linux_in_dynsym_stub call accordingly.
5442         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5443         rather than an equivalent hand-coded sequence.
5444         * hppa-hpux-tdep.c (in_opd_section): Remove function.
5445         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5446         (hppa64_hpux_in_solib_call_trampoline): Likewise.
5447         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5448         in_opd_section.
5449         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5450         on call to tdep->in_solib_call_trampoline.
5451         (hppa_in_solib_call_trampoline): Remove name argument, update
5452         according to in_plt_section change.
5453         (hppa_skip_trampoline_code): Update according to in_plt_section
5454         change.
5455         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5456         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5457         Likewise.
5458         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5459         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5460         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5461         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5462         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5463         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5464         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5465         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5466         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5467         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5468         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5469         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5470         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5471
5472 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
5473
5474         * common/create-version.sh: Fix expansion of $host_alias
5475         and $target_alias in generation of HOST_NAME and TARGET_NAME
5476         (resp.).
5477
5478 2013-06-24  Tom Tromey  <tromey@redhat.com>
5479
5480         * common/create-version.sh: New file.
5481         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5482         create-version.sh.
5483         (HFILES_NO_SRCDIR): Use common/version.h.
5484         * version.in: Move to ...
5485         * common/version.in: ... here.  Replace date with "DATE".
5486         * version.h: Move to ...
5487         * common/version.h: ... here.
5488
5489 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
5490
5491         * gdb/gnulib/Makefile.in: Update date in copyright header.
5492         * gdb/gnulib/configure.ac: Ditto.
5493         * gdb/gnulib/update-gnulib.sh: Ditto.
5494
5495 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
5496
5497         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5498         "gdb/gnulib/import".
5499
5500 2013-06-21  Will Newton  <will.newton@linaro.org>
5501
5502         * doublest.c (ldfrexp): Remove function.
5503         (convert_doublest_to_floatformat): Call frexpl instead of
5504         ldfrexp.
5505
5506 2013-06-21  Will Newton  <will.newton@linaro.org>
5507
5508         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5509         * gnulib/aclocal.m4: Regenerate.
5510         * gnulib/config.in: Regenerate.
5511         * gnulib/configure: Regenerate.
5512         * gnulib/import/Makefile.am: Update.
5513         * gnulib/import/Makefile.in: Update.
5514         * gnulib/import/m4/gnulib-cache.m4: Update.
5515         * gnulib/import/m4/gnulib-comp.m4: Update.
5516         * gnulib/import/float+.h: Import.
5517         * gnulib/import/float.c: Import.
5518         * gnulib/import/float.in.h: Import.
5519         * gnulib/import/fpucw.h: Import.
5520         * gnulib/import/frexp.c: Import.
5521         * gnulib/import/frexpl.c: Import.
5522         * gnulib/import/isnan.c: Import.
5523         * gnulib/import/isnand-nolibm.h: Import.
5524         * gnulib/import/isnand.c: Import.
5525         * gnulib/import/isnanl-nolibm.h: Import.
5526         * gnulib/import/isnanl.c: Import.
5527         * gnulib/import/itold.c: Import.
5528         * gnulib/import/m4/exponentd.m4: Import.
5529         * gnulib/import/m4/exponentl.m4: Import.
5530         * gnulib/import/m4/float_h.m4: Import.
5531         * gnulib/import/m4/fpieee.m4: Import.
5532         * gnulib/import/m4/frexp.m4: Import.
5533         * gnulib/import/m4/frexpl.m4: Import.
5534         * gnulib/import/m4/isnand.m4: Import.
5535         * gnulib/import/m4/isnanl.m4: Import.
5536         * gnulib/import/m4/math_h.m4: Import.
5537         * gnulib/import/math.c: Import.
5538         * gnulib/import/math.in.h: Import.
5539
5540 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5541
5542         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5543         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5544         signature_INTEL_edx comparisons.
5545
5546 2013-06-20  Doug Evans  <dje@google.com>
5547
5548         symtab/15652
5549         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5550         All callers updated.
5551         (open_dwp_file): If we can't find the dwp file, search the basename
5552         in debug-file-directory.
5553
5554         * dwarf2read.c (struct dwp_file): Fix comment.
5555         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5556
5557         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5558         better.
5559
5560 2013-06-20  Yao Qi  <yao@codesourcery.com>
5561
5562         * breakpoint.c (create_breakpoint): Fix code indentation.
5563
5564 2013-06-20  Yao Qi  <yao@codesourcery.com>
5565
5566         * breakpoint.c (create_breakpoints_sal_default): Remove
5567         parameter 'lsal'.  Update declaration.
5568         (bkpt_create_breakpoints_sal): Caller update.
5569         (tracepoint_create_breakpoints_sal): Likewise.
5570
5571 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
5572             Yao Qi  <yao@codesourcery.com>
5573
5574         * NEWS: Mention the new option '--skip-unavailable' of command
5575         -data-list-register-values.
5576         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5577         --skip-unavailable option.  Adjust to use output_register.
5578         (output_register): Add new 'skip_unavailable' parameter.
5579         Handle it.
5580
5581 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
5582
5583         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5584         common/i386-gcc-cpuid.h.
5585         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5586         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5587         Copy the latest version from upstream gcc.
5588         * common/linux-btrace.c: Include i386-cpuid.h.
5589         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5590         call to i386_cpuid.
5591         (cpu_supports_btrace): Likewise.
5592         * go32-nat.c: Include i386-cpuid.h.
5593         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5594
5595 2013-06-19  Doug Evans  <dje@google.com>
5596
5597         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5598         (get_section_index): Ditto.
5599
5600 2013-06-19  Tom Tromey  <tromey@redhat.com>
5601
5602         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5603         "dprintf" help.
5604
5605 2013-06-18  Doug Evans  <dje@google.com>
5606
5607         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5608         before using it.
5609         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5610         Move test of cu_index closer to use.  Print complaint if cu_index
5611         is bad.
5612
5613 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
5614
5615         * machoread.c (oso_vector): Delete this global.
5616         (macho_register_oso): Add new parameter "oso_vector_ptr".
5617         Use it instead of the "oso_vector" global.
5618         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5619         (macho_symfile_read): Use a local oso_vector, to be free'ed
5620         at the end of this function, in place of the old "oso_vector"
5621         global.  Update various function calls accordingly.  Use one
5622         single cleanup chain for the entire function.
5623
5624 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
5625
5626         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5627         DWARF2_PER_OBJFILE by uses of DATA instead.
5628
5629 2013-06-18  Tom Tromey  <tromey@redhat.com>
5630
5631         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5632         argument.
5633         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5634         Special case signals other than GDB_SIGNAL_TRAP.
5635         (explains_signal_watchpoint): New function.
5636         (base_breakpoint_explains_signal): Add 'sig' argument.
5637         (initialize_breakpoint_ops): Set 'explains_signal' method for
5638         watchpoints.
5639         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5640         signal argument.
5641         (bpstat_explains_signal): Likewise.
5642         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5643
5644 2013-06-18  Tom Tromey  <tromey@redhat.com>
5645
5646         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5647
5648 2013-06-18  Tom Tromey  <tromey@redhat.com>
5649
5650         * python/python.c (finish_python_initialization): Decref
5651         'pythondir' on failure path as well.
5652
5653 2013-06-18  Tom Tromey  <tromey@redhat.com>
5654
5655         PR symtab/15391:
5656         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5657         after taking bits_to_skip into account.  Sign extend byte_offset.
5658         * utils.h (gdb_sign_extend): Declare.
5659         * utils.c (gdb_sign_extend): New function.
5660
5661 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5662
5663         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5664
5665 2013-06-17  Pierre Muller  <muller@sourceware.org>
5666
5667         * corelow.c (core_open): Print GDB signal name instead of target
5668         signal number.
5669
5670 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
5671
5672         * .gitignore: Add /gcore.
5673
5674 2013-06-13  Doug Evans  <dje@google.com>
5675
5676         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5677         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5678
5679 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
5680
5681         * stack.c (backtrace_command_1): Fix indentation.
5682
5683 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5684
5685         * window-nat.c (thread_rec): Add missing empty line after
5686         local variable declaration.
5687
5688 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5689
5690         * windows-nat.c (thread_rec): Revert format used to print
5691         error code returned by SuspendThread from %d back to %u.
5692
5693 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5694
5695         * windows-nat.c (windows_continue): Add "0x" prefix for thread
5696         ID in debug trace.
5697         (get_windows_debug_event): Likewise, for all debug traces.
5698
5699 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
5700
5701         * window-nat.c (thread_rec): Add thread ID in SuspendThread
5702         warning message.
5703
5704 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
5705             Yao Qi  <yao@codesourcery.com>
5706
5707         * mi/mi-main.c (get_register): Remove declaration.
5708         (output_register): Declare.
5709         (mi_cmd_data_list_register_values): Remove local variable
5710         'tuple_cleanup'.  Move some code into output_register.
5711         (get_register): Renamed to ...
5712         (output_register): ... this.  Output the register's
5713         "number" ui_out tuple here.
5714
5715 2013-06-07  Pedro Alves  <palves@redhat.com>
5716
5717         * darwin-nat.c: Fix formating in copyright header.
5718         * darwin-nat.h: Likewise.
5719         * gnu-nat.c: Likewise.
5720         * machoread.c: Likewise.
5721
5722 2013-06-07  Pedro Alves  <palves@redhat.com>
5723
5724         PR server/14823
5725         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
5726         static.  Output a global target description pointer.
5727         (init_registers_${name}): Adjust to initialize a
5728         target description structure.
5729
5730 2013-06-07  Will Newton  <will.newton@linaro.org>
5731
5732         * printcmd.c (build_address_symbolic): Call
5733         gdbarch_addr_bits_remove for text minimal symbols.
5734
5735 2013-06-07  Will Newton  <will.newton@linaro.org>
5736
5737         * MAINTAINERS: Add myself to Write After Approval.
5738
5739 2013-06-07  Yao Qi  <yao@codesourcery.com>
5740
5741         * tracepoint.c (start_tracing): Move code to ...
5742         (trace_reset_local_state): ... here.  New.
5743         (disconnect_tracing): Don't call set_current_traceframe,
5744         set_tracepoint_num, and set_traceframe_context. Call
5745         trace_reset_local_state instead.
5746         (tfile_close): Call trace_reset_local_state.
5747         * ctf.c (ctf_close): Likewise.
5748         * remote.c (remote_close): Likewise.
5749         * tracepoint.h (trace_reset_local_state): Declare.
5750
5751 2013-06-06  Doug Evans  <dje@google.com>
5752
5753         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5754         and fix header docs.
5755
5756 2013-06-05  Doug Evans  <dje@google.com>
5757             Keith Seitz  <keiths@redhat.com>
5758
5759         PR 15519
5760         * cp-namespace.c (find_symbol_in_baseclass): Call
5761         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5762         Check result of call to lookup_symbol_static.
5763         Call lookup_static_symbol_aux unconditionally.
5764         Call check_typedef on base types before accessing them.
5765         (cp_lookup_nested_symbol): Fix comment.
5766
5767 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
5768
5769         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5770         minimal symbols pointing to function descriptors.
5771
5772 2013-06-05  Tom Tromey  <tromey@redhat.com>
5773
5774         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5775
5776 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
5777             Pedro Alves  <palves@redhat.com>
5778
5779         * remote.c (remote_wait_as): Restore signal handler before returning
5780         when GDB gets a notification.
5781
5782 2013-06-04  Gary Benson  <gbenson@redhat.com>
5783
5784         PR 2328
5785         * breakpoint.h (handle_solib_event): Moved function declaration
5786         to solib.h.
5787         * breakpoint.c (handle_solib_event): Moved function to solib.c.
5788         (bpstat_stop_status): Pass new argument to handle_solib_event.
5789         * solib.h (update_solib_breakpoints): New function declaration.
5790         (handle_solib_event): Moved function declaration from
5791         breakpoint.h.
5792         * solib.c (update_solib_breakpoints): New function.
5793         (handle_solib_event): Moved function from breakpoint.c.
5794         Updated to call solib_ops->handle_event if not NULL.
5795         * solist.h (target_so_ops): New fields "update_breakpoints" and
5796         "handle_event".
5797         * infrun.c (set_stop_on_solib_events): New function.
5798         (_initialize_infrun): Use the above for "set
5799         stop-on-solib-events".
5800         (handle_inferior_event): Pass new argument to handle_solib_event.
5801         * solib-svr4.c (probe.h): New include.
5802         (svr4_free_library_list): New forward declaration.
5803         (probe_action): New enum.
5804         (probe_info): New struct.
5805         (probe_info): New static variable.
5806         (NUM_PROBES): New definition.
5807         (svr4_info): New fields "using_xfer", "probes_table" and
5808         "solib_list".
5809         (free_probes_table): New function.
5810         (free_solib_list): New function.
5811         (svr4_pspace_data_cleanup): Free probes table and solib list.
5812         (svr4_copy_library_list): New function.
5813         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5814         (svr4_read_so_list): New parameter "prev_lm".
5815         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5816         (svr4_current_sos): New function.
5817         (probe_and_action): New struct.
5818         (hash_probe_and_action): New function.
5819         (equal_probe_and_action): Likewise.
5820         (register_solib_event_probe): Likewise.
5821         (solib_event_probe_at): Likewise.
5822         (solib_event_probe_action): Likewise.
5823         (solist_update_full): Likewise.
5824         (solist_update_incremental): Likewise.
5825         (disable_probes_interface_cleanup): Likewise.
5826         (svr4_handle_solib_event): Likewise.
5827         (svr4_update_solib_event_breakpoint): Likewise.
5828         (svr4_update_solib_event_breakpoints): Likewise.
5829         (svr4_create_solib_event_breakpoints): Likewise.
5830         (enable_break): Free probes table before creating breakpoints.
5831         Use svr4_create_solib_event_breakpoints to create breakpoints.
5832         (svr4_solib_create_inferior_hook): Free the solib list.
5833         (_initialize_svr4_solib): Initialise
5834         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5835
5836 2013-06-04  Gary Benson  <gbenson@redhat.com>
5837
5838         * target.h (target_ops): New field
5839         "to_augmented_libraries_svr4_read".
5840         (target_augmented_libraries_svr4_read): New macro.
5841         * target.c (update_current_target): Handle
5842         to_augmented_libraries_svr4_read.
5843         * remote.c (remote_state): New field
5844         "augmented_libraries_svr4_read".
5845         (remote_augmented_libraries_svr4_read_feature): New function.
5846         (remote_protocol_features): Add entry for
5847         "augmented-libraries-svr4-read".
5848         (remote_augmented_libraries_svr4_read): New function.
5849         (init_remote_ops): Initialize
5850         remote_ops.to_augmented_libraries_svr4_read.
5851
5852 2013-06-04  Gary Benson  <gbenson@redhat.com>
5853
5854         * NEWS: Update.
5855
5856 2013-06-04  Gary Benson  <gbenson@redhat.com>
5857
5858         * objfiles.h (inhibit_section_map_updates): New function
5859         declaration.
5860         (resume_section_map_updates): Likewise.
5861         (resume_section_map_updates_cleanup): Likewise.
5862         * objfiles.c (objfile_pspace_info): Removed field
5863         "objfiles_changed_p".  New fields "new_objfiles_available",
5864         "section_map_dirty" and "inhibit_updates".
5865         (allocate_objfile): Set new_objfiles_available.
5866         (free_objfile): Set section_map_dirty.
5867         (objfile_relocate1): Likewise.
5868         (in_plt_section): Likewise.
5869         (find_pc_section): Update the conditions under which the
5870         section map will be updated.
5871         (inhibit_section_map_updates): New function.
5872         (resume_section_map_updates): Likewise.
5873         (resume_section_map_updates_cleanup): Likewise.
5874
5875 2013-06-04  Gary Benson  <gbenson@redhat.com>
5876
5877         * probe.h (get_probe_argument_count): New declaration.
5878         (evaluate_probe_argument): Likewise.
5879         * probe.c (get_probe_argument_count): New function.
5880         (evaluate_probe_argument): Likewise.
5881         (probe_safe_evaluate_at_pc): Use the above new functions.
5882
5883 2013-06-04  Alan Modra  <amodra@gmail.com>
5884
5885         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5886         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5887         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
5888         target mem reads on optional insns.
5889         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5890         ppc_insns_match_pattern calls.
5891         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5892         Add match for power7 thread safety insns, and new order of
5893         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
5894         invocation in comment, and update rest of comment.
5895         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5896         PPC64_STANDARD_LINKAGE3_LEN): Delete.
5897         (ppc64_standard_linkage2_target): Update insn offsets.
5898         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
5899         stubs first.  Update calls.
5900
5901 2013-06-04  Yao Qi  <yao@codesourcery.com>
5902
5903         * solib.c (solib_find): Don't need dir separator if path has
5904         drive spec.
5905
5906 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
5907
5908         Revert (indirectly causes a SIGSEGV):
5909         * machoread.c (macho_symfile_read): Assign first cleanup to
5910         'back_to'.
5911
5912 2013-06-03  Yao Qi  <yao@codesourcery.com>
5913
5914         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5915         mi-parse.c.  Make them static.
5916         (mi_all_values): Likewise.
5917         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
5918         mi_parse_print_values.  Make it external.
5919         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5920         Remove the declarations.
5921         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5922         * mi/mi-parse.h (mi_parse_print_values): Declare.
5923         * mi/mi-cmd-stack.c: Include mi-parse.h.
5924         (parse_print_values): Remove
5925         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5926         of parse_print_values.
5927         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5928
5929 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
5930             Yao Qi  <yao@codesourcery.com>
5931
5932         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5933         (encode_actions): Move code to ...
5934         (all_tracepoint_actions_and_cleanup): ... here.  New.
5935         (trace_dump_command): Likewise.
5936
5937 2013-05-30  Tom Tromey  <tromey@redhat.com>
5938
5939         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5940
5941 2013-05-30  Tom Tromey  <tromey@redhat.com>
5942
5943         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5944         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
5945         'old_chain' argument.  Add 'parser_result' argument.
5946         (gdb_xml_create_parser_and_cleanup): Remove old version.
5947         (gdb_xml_parse_quick): Update.
5948         (xml_process_xincludes): Update.
5949         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5950         declare.
5951
5952 2013-05-30  Tom Tromey  <tromey@redhat.com>
5953
5954         * probe.c (collect_probes): Check arguments for NULL before
5955         calling compile_rx_or_error.
5956         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5957         Remove NULL return.
5958
5959 2013-05-30  Tom Tromey  <tromey@redhat.com>
5960
5961         * infrun.c (adjust_pc_after_break): Introduce an outer null
5962         cleanup.
5963
5964 2013-05-30  Tom Tromey  <tromey@redhat.com>
5965
5966         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5967
5968 2013-05-30  Tom Tromey  <tromey@redhat.com>
5969
5970         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5971         for 'old_chain'.  Do not check 'head' before processing
5972         cleanups.
5973
5974 2013-05-30  Tom Tromey  <tromey@redhat.com>
5975
5976         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5977         "cleanup_tuple".
5978
5979 2013-05-30  Tom Tromey  <tromey@redhat.com>
5980
5981         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5982         inner scope.  Unconditionally call do_cleanups.
5983
5984 2013-05-30  Tom Tromey  <tromey@redhat.com>
5985
5986         * source.c (find_and_open_source): Call do_cleanups.
5987
5988 2013-05-30  Tom Tromey  <tromey@redhat.com>
5989
5990         * linux-thread-db.c (thread_db_load_search): Unconditionally
5991         call do_cleanups.
5992
5993 2013-05-30  Tom Tromey  <tromey@redhat.com>
5994
5995         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5996         for 'cleanup'; instead use a later one.
5997
5998 2013-05-30  Tom Tromey  <tromey@redhat.com>
5999
6000         * python/py-breakpoint.c (bppy_get_commands): Use
6001         explicit, unconditional return.
6002         * python/py-frame.c (frapy_read_var): Likewise.
6003         * python/python.c (gdbpy_decode_line): Likewise.
6004
6005 2013-05-30  Tom Tromey  <tromey@redhat.com>
6006
6007         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6008         do_cleanups on all return paths.
6009
6010 2013-05-30  Tom Tromey  <tromey@redhat.com>
6011
6012         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6013
6014 2013-05-30  Tom Tromey  <tromey@redhat.com>
6015
6016         * stabsread.c (read_struct_type): Call do_cleanups along
6017         all return paths.
6018
6019 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
6020
6021         * mips-linux-tdep.c: Adjust formatting throughout.
6022
6023 2013-05-30  Tom Tromey  <tromey@redhat.com>
6024
6025         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6026         along all return paths.
6027
6028 2013-05-30  Tom Tromey  <tromey@redhat.com>
6029
6030         * symfile.c (find_separate_debug_file): Call do_cleanups
6031         along all return paths.
6032
6033 2013-05-30  Tom Tromey  <tromey@redhat.com>
6034
6035         * symtab.c (search_symbols): Introduce a null cleanup for
6036         'retval_chain'.
6037
6038 2013-05-30  Tom Tromey  <tromey@redhat.com>
6039
6040         * python/py-value.c (valpy_binop): Call do_cleanups before
6041         exiting loop.
6042
6043 2013-05-30  Tom Tromey  <tromey@redhat.com>
6044
6045         * python/py-prettyprint.c (print_children): Remove extra
6046         do_cleanups call.
6047
6048 2013-05-30  Tom Tromey  <tromey@redhat.com>
6049
6050         * python/py-frame.c (frapy_read_var): Call do_cleanups along
6051         all return paths.
6052
6053 2013-05-30  Tom Tromey  <tromey@redhat.com>
6054
6055         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6056         along all return paths.
6057
6058 2013-05-30  Tom Tromey  <tromey@redhat.com>
6059
6060         * cli/cli-logging.c (set_logging_redirect): Unconditionally
6061         call do_cleanups.
6062
6063 2013-05-30  Tom Tromey  <tromey@redhat.com>
6064
6065         * varobj.c (c_value_of_root): Call do_cleanups along all
6066         return paths.
6067
6068 2013-05-30  Tom Tromey  <tromey@redhat.com>
6069
6070         * tracepoint.c (trace_dump_command): Unconditionally call
6071         do_cleanups.
6072
6073 2013-05-30  Tom Tromey  <tromey@redhat.com>
6074
6075         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6076         do_cleanups earlier.
6077
6078 2013-05-30  Tom Tromey  <tromey@redhat.com>
6079
6080         * machoread.c (macho_symfile_read): Assign first cleanup to
6081         'back_to'.
6082
6083 2013-05-30  Tom Tromey  <tromey@redhat.com>
6084
6085         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6086
6087 2013-05-30  Tom Tromey  <tromey@redhat.com>
6088
6089         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6090
6091 2013-05-30  Tom Tromey  <tromey@redhat.com>
6092
6093         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6094         call discard_cleanups.
6095         (inf_ptrace_attach): Likewise.
6096
6097 2013-05-30  Tom Tromey  <tromey@redhat.com>
6098
6099         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6100         return paths.
6101         (mips_initialize): Likewise.
6102         (common_open): Call do_cleanups.
6103
6104 2013-05-30  Tom Tromey  <tromey@redhat.com>
6105
6106         * utils.c (internal_vproblem): Call do_cleanups.
6107
6108 2013-05-30  Tom Tromey  <tromey@redhat.com>
6109
6110         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6111
6112 2013-05-30  Tom Tromey  <tromey@redhat.com>
6113
6114         * cli/cli-script.c (setup_user_args): Don't return after error.
6115
6116 2013-05-30  Tom Tromey  <tromey@redhat.com>
6117
6118         * somread.c (som_symtab_read): Call do_cleanups.
6119
6120 2013-05-30  Tom Tromey  <tromey@redhat.com>
6121
6122         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6123
6124 2013-05-30  Tom Tromey  <tromey@redhat.com>
6125
6126         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6127         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6128         * interps.c (interpreter_exec_cmd): Call do_cleanups.
6129         * source.c (show_substitute_path_command): Call do_cleanups.
6130         (unset_substitute_path_command, set_substitute_path_command):
6131         Likewise.
6132         * symfile.c (load_command): Call do_cleanups.
6133
6134 2013-05-30  Tom Tromey  <tromey@redhat.com>
6135
6136         * contrib/cleanup_check.py: New file.
6137         * contrib/gcc-with-excheck: Add option parsing.
6138
6139 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
6140
6141         * windows-nat.c (windows_delete_thread): Add missing space
6142         in cast expression.
6143
6144 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6145
6146         * inferior.c (top level): Include tilde.h.
6147         (add_inferior_command): Call tilde_expand on the value of 'exec'
6148         argument.
6149
6150 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
6151             Yao Qi  <yao@codesourcery.com>
6152
6153         * tracepoint.c (encode_actions_1): Remove parameter 't'.
6154         Caller update.
6155         (encode_actions): Likewise.
6156         * remote.c (remote_download_tracepoint): Caller update.
6157         * tracepoint.h (encode_actions): Update declaration.
6158
6159 2013-05-30  Pedro Alves  <palves@redhat.com>
6160
6161         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6162         pointer.
6163
6164 2013-05-30  Yao Qi  <yao@codesourcery.com>
6165
6166         * remote.c (remote_check_symbols): Remove unused parameter
6167         'objfile'.
6168         Declaration update.
6169         (remote_start_remote, remote_new_objfile): Caller update.
6170
6171 2013-05-30  Yao Qi  <yao@codesourcery.com>
6172
6173         * mi/mi-cmds.c (mi_cmds): Define MI command
6174         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6175         DEF_MI_CMD_CLI.
6176
6177 2013-05-29  Pedro Alves  <palves@redhat.com>
6178
6179         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6180         (remote_insert_watchpoint, remote_remove_watchpoint)
6181         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6182         (remote_verify_memory, compare_sections_command)
6183         (remote_search_memory): Set the general process/thread on the
6184         remote side.
6185
6186 2013-05-29  Pedro Alves  <palves@redhat.com>
6187
6188         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6189         (_initialize_aarch64_tdep): Don't call
6190         initialize_tdesc_aarch64_without_fpu.
6191         * features/Makefile (WHICH): Remove reference to
6192         aarch64-without-fpu.
6193         * features/aarch64-without-fpu.c: Delete file.
6194         * regformats/aarch64-without-fpu.dat: Delete file.
6195
6196 2013-05-28  Yao Qi  <yao@codesourcery.com>
6197
6198         * tracepoint.c (stringify_collection_list): Remove parameter
6199         'string'.
6200         (encode_actions): Caller update.  Remove local variables.
6201
6202 2013-05-24  Yao Qi  <yao@codesourcery.com>
6203
6204         * tracepoint.c (TFILE_PID): Remove.
6205         (tfile_open): Don't add thread and inferior.
6206         (tfile_close): Don't set 'inferior_ptid'.  Don't call
6207         exit_inferior_silent.
6208         (tfile_thread_alive): Remove.
6209         (init_tfile_ops): Don't set field 'to_thread_alive' of
6210         tfile_ops.
6211
6212 2013-05-23  Doug Evans  <dje@google.com>
6213
6214         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6215
6216 2013-05-23  Pedro Alves  <palves@redhat.com>
6217
6218         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6219         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6220         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6221         Only define if HAVE_SOCKETS is defined.
6222         * configure.ac: Check for sys/socket.h.
6223         * config.in, configure: Regenerate.
6224
6225 2013-05-23  Pedro Alves  <palves@redhat.com>
6226
6227         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6228         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6229         printing uint32_t variables.
6230
6231 2013-05-23  Pedro Alves  <palves@redhat.com>
6232
6233         * NEWS: Mention GDBserver range stepping support.
6234
6235 2013-05-23  Yao Qi  <yao@codesourcery.com>
6236             Pedro Alves  <palves@redhat.com>
6237
6238         * gdbthread.h (struct thread_control_state) <may_range_step>: New
6239         field.
6240         * infcmd.c (step_once, until_next_command): Enable range stepping.
6241         * infrun.c (displaced_step_prepare): Disable range stepping.
6242         (resume): Disable range stepping if stepping over a breakpoint or
6243         we have software watchpoints.  If range stepping is enabled,
6244         assert the thread is in the stepping range.
6245         (clear_proceed_status_thread): Clear may_range_step.
6246         (handle_inferior_event): Disable range stepping as soon as we know
6247         the thread that hit the event.  Re-enable it whenever we're going
6248         to step with a step range.
6249         * remote.c (struct vCont_action_support) <r>: New field.
6250         (use_range_stepping): New global.
6251         (remote_vcont_probe): Handle 'r' action.
6252         (append_resumption): Append an 'r' action if the thread may range
6253         step.
6254         (show_range_stepping): New function.
6255         (set_range_stepping): New function.
6256         (_initialize_remote): Call add_setshow_boolean_cmd to register the
6257         'set range-stepping' and 'show range-stepping' commands.
6258         * NEWS: Mention range stepping, the new vCont;r action, and the
6259         new "set/show range-stepping" commands.
6260
6261 2013-05-23  Yao Qi  <yao@codesourcery.com>
6262             Pedro Alves  <palves@redhat.com>
6263
6264         * remote.c (struct vCont_action_support): New struct.
6265         (struct remote_state) <support_vCont_t>: Remove field.
6266         <vCont_actions_support>: New field.
6267         (remote_vcont_probe, remote_stop_ns): Update.
6268
6269 2013-05-23  Yao Qi  <yao@codesourcery.com>
6270             Pedro Alves  <palves@redhat.com>
6271
6272         * gdbthread.h (pc_in_thread_step_range): New declaration.
6273         * thread.c (pc_in_thread_step_range): New function.
6274         * infrun.c (handle_inferior_event): Use it.
6275
6276 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
6277
6278         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6279         of sprintf.
6280
6281 2013-05-22  Keith Seitz  <keiths@redhat.com>
6282
6283         * ada-lang.c (is_known_support_routine): Add explicit free of
6284         'func_name' from find_frame_funname.
6285         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6286         for func_name from find_frame_funname.
6287         * python/py-frame.c (frapy_name): Add explicit free of
6288         'name' from find_frame_funname.
6289         * stack.c (find_frame_funname): Add comment explaining that
6290         funcp must be freed by the caller.
6291         Return copy of symbol names instead of pointers.
6292         (print_frame): Add a cleanup for 'funname' from
6293         find_frame_funname.
6294         * stack.h (find_frame_funname): Remove "const" from
6295         'funname' parameter.
6296
6297 2013-05-22  Tom Tromey  <tromey@redhat.com>
6298
6299         PR c++/15401:
6300         * c-valprint.c (c_value_print): Use value_addr for
6301         references.  Convert back to reference type with value_ref.
6302
6303 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
6304
6305         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6306         unloaded DLL, it will be done by handle_solib_event.  See
6307         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6308         details.
6309
6310 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
6311
6312         * ui-out.c: Create typedef ui_out_level_p and define vector
6313         operations for that type.
6314         (struct ui_out): Use a vector instead of an array.
6315         (current_level): Return level from a vector.
6316         (push_level): Create a level in a vector.
6317         (pop_level): Delete a level in a vector.
6318         (ui_out_new): Create initial level zero level, and store in a
6319         vector.
6320         (ui_out_destroy): Add vector cleanup.
6321
6322 2013-05-22  Pedro Alves  <palves@redhat.com>
6323
6324         * python/python-internal.h (gdb_Py_DECREF): Tag with
6325         "ARI: editCase function".
6326
6327 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
6328
6329         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6330
6331 2013-05-21  Pedro Alves  <palves@redhat.com>
6332
6333         * python/py-prettyprint.c (apply_val_pretty_printer): Check
6334         whether PRINTER is NULL before installing a Py_DECREF cleanup.
6335         * python/py-utils.c (py_decref): Don't check for NULL before
6336         calling Py_DECREF.
6337
6338 2013-05-21  Pedro Alves  <palves@redhat.com>
6339
6340         * python/py-utils.c (py_decref): Remove extra braces.
6341         (gdb_pymodule_addobject): Remove extra braces.
6342         * python-internal.h (gdb_Py_DECREF): New static inline function.
6343         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6344
6345 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6346
6347         * breakpoints.c (detach_breakpoints): Do not
6348         detach breakpoints locations with loc_type bp_loc_other.
6349
6350 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6351
6352         Workaround Python 2.6.
6353         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6354         a block.
6355
6356 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6357
6358         Code cleanup: constification.
6359         * solib.c (solib_ops): Make return type and ops variable type const.
6360         (set_solib_ops): Make the new_ops parameter and ops variable const.
6361         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6362         (solib_add, solib_keep_data_in_core, clear_solib)
6363         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6364         (reload_shared_libraries, solib_global_lookup): Make the ops variable
6365         const.
6366         * solib.h (set_solib_ops): Make the new_ops parameter const.
6367
6368 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
6369
6370         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6371         variable.
6372         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6373         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6374         (SYSTEM_GDBINIT_FILES): New variables.
6375         (all): Add stamp-system-gdbinit.
6376         (stamp-system-gdbinit): New rule.
6377         (clean-system-gdbinit, install-system-gdbinit)
6378         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
6379         (install-only): Add dependency on install-system-gdbinit.
6380         (uninstall): Add dependency on uninstall-system-gdbinit.
6381         (clean): Add dependency on clean-system-gdbinit.
6382         * system-gdbinit/elinos.py: New file.
6383         * system-gdbinit/wrs-linux.py: New file.
6384
6385 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
6386
6387         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6388
6389 2013-05-21  Hui Zhu  <hui@codesourcery.com>
6390
6391         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6392         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6393         * mi/mi-cmd-break.c (ctype.h): New include.
6394         (gdb_obstack.h): New include.
6395         (mi_argv_to_format, mi_cmd_break_insert_1): New.
6396         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6397         (mi_cmd_dprintf_insert): New.
6398         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6399         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6400
6401 2013-05-20  Tom Tromey  <tromey@redhat.com>
6402
6403         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6404
6405 2013-05-20  Tom Tromey  <tromey@redhat.com>
6406
6407         * python/py-value.c (valpy_get_dynamic_type): Simplify
6408         dynamic_type assignment.  Use Py_XINCREF.
6409
6410 2013-05-20  Tom Tromey  <tromey@redhat.com>
6411
6412         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6413
6414 2013-05-20  Tom Tromey  <tromey@redhat.com>
6415
6416         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6417         (gdbpy_selected_frame): Move object-construction code
6418         out of TRY_CATCH.
6419
6420 2013-05-20  Tom Tromey  <tromey@redhat.com>
6421
6422         * python/py-arch.c (gdbpy_initialize_arch): Use
6423         gdb_pymodule_addobject.
6424         * python/py-block.c (gdbpy_initialize_blocks): Use
6425         gdb_pymodule_addobject.
6426         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6427         gdb_pymodule_addobject.
6428         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6429         gdb_pymodule_addobject.
6430         * python/py-event.c (gdbpy_initialize_event_generic): Use
6431         gdb_pymodule_addobject.
6432         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6433         gdb_pymodule_addobject.
6434         * python/py-evts.c (add_new_registry): Use
6435         gdb_pymodule_addobject.
6436         (gdbpy_initialize_py_events): Likewise.
6437         * python/py-finishbreakpoint.c
6438         (gdbpy_initialize_finishbreakpoints): Use
6439         gdb_pymodule_addobject.
6440         * python/py-frame.c (gdbpy_initialize_frames): Use
6441         gdb_pymodule_addobject.
6442         * python/py-function.c (gdbpy_initialize_functions): Use
6443         gdb_pymodule_addobject.
6444         * python/py-inferior.c (gdbpy_initialize_inferior): Use
6445         gdb_pymodule_addobject.
6446         * python/py-infthread.c (gdbpy_initialize_thread): Use
6447         gdb_pymodule_addobject.
6448         * python/py-objfile.c (gdbpy_initialize_objfile): Use
6449         gdb_pymodule_addobject.
6450         * python/py-param.c (gdbpy_initialize_parameters): Use
6451         gdb_pymodule_addobject.
6452         * python/py-progspace.c (gdbpy_initialize_pspace): Use
6453         gdb_pymodule_addobject.
6454         * python/py-symbol.c (gdbpy_initialize_symbols): Use
6455         gdb_pymodule_addobject.
6456         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6457         gdb_pymodule_addobject.
6458         * python/py-type.c (gdbpy_initialize_types): Use
6459         gdb_pymodule_addobject.
6460         * python/py-utils.c (gdb_pymodule_addobject): New function.
6461         * python/py-value.c (gdbpy_initialize_values): Use
6462         gdb_pymodule_addobject.
6463         * python/python-internal.h (gdb_pymodule_addobject): Declare.
6464         * python/python.c (_initialize_python): Use
6465         gdb_pymodule_addobject.
6466
6467 2013-05-20  Tom Tromey  <tromey@redhat.com>
6468
6469         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6470         * python/py-param.c (get_set_value, get_show_value): Use
6471         explicit decrefs.
6472         * python/python.c (start_type_printers, apply_type_printers):
6473         Use explicit decrefs.
6474
6475 2013-05-20  Tom Tromey  <tromey@redhat.com>
6476
6477         * python/py-evts.c (gdbpy_initialize_py_events): Don't
6478         incref the module.
6479
6480 2013-05-20  Tom Tromey  <tromey@redhat.com>
6481
6482         * python/python.c (gdbpy_run_events): Decref the result
6483         of PyObject_CallObject.
6484
6485 2013-05-20  Tom Tromey  <tromey@redhat.com>
6486
6487         * python/py-symtab.c (set_sal): Use
6488         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
6489         (symtab_and_line_to_sal_object): Update.
6490
6491 2013-05-20  Tom Tromey  <tromey@redhat.com>
6492
6493         * python/py-param.c (compute_enum_values): Decref 'item'.
6494
6495 2013-05-20  Tom Tromey  <tromey@redhat.com>
6496
6497         * mi/mi-main.c: Include python-internal.h.
6498         (mi_cmd_list_features): Check gdb_python_initialized.
6499         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6500         (python_inferior_exit, python_new_objfile, add_thread_object)
6501         (delete_thread_object, py_free_inferior): Check
6502         gdb_python_initialized.
6503         * python/py-prettyprint.c (apply_val_pretty_printer): Check
6504         gdb_python_initialized.
6505         * python/py-type.c (save_objfile_types): Check
6506         gdb_python_initialized.
6507         * python/python-internal.h (gdb_python_initialized): Declare.
6508         * python/python.c (ensure_python_env): Throw exception if
6509         Python not initialized.
6510         (before_prompt_hook, source_python_script_for_objfile)
6511         (start_type_printers, apply_type_printers,
6512         free_type_printers): Check gdb_python_initialized.
6513         * varobj.c (varobj_get_display_hint)
6514         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6515         (install_new_value_visualizer, varobj_set_visualizer)
6516         (value_get_print_value): Check gdb_python_initialized.
6517
6518 2013-05-20  Tom Tromey  <tromey@redhat.com>
6519
6520         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6521         Check errors.
6522         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6523         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6524         Check errors.
6525         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6526         Check errors.
6527         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6528         Check errors.
6529         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6530         Check errors.
6531         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6532         init function to return 'int'.
6533         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6534         Return 'int'.  Check errors.
6535         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6536         Check errors.
6537         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6538         Return 'int'.  Check errors.
6539         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6540         Check errors.
6541         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6542         Check errors.
6543         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6544         Check errors.
6545         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6546         Check errors.
6547         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6548         Check errors.
6549         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6550         Check errors.
6551         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6552         Check errors.
6553         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6554         Check errors.
6555         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6556         Check errors.
6557         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6558         Check errors.
6559         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6560         Check errors.
6561         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6562         Check errors.
6563         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6564         Check errors.
6565         * python/python-internal.h (gdbpy_initialize_auto_load,
6566         gdbpy_initialize_values, gdbpy_initialize_frames,
6567         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6568         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6569         gdbpy_initialize_blocks, gdbpy_initialize_types,
6570         gdbpy_initialize_functions, gdbpy_initialize_pspace,
6571         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6572         gdbpy_initialize_finishbreakpoints,
6573         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6574         gdbpy_initialize_thread, gdbpy_initialize_inferior,
6575         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6576         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6577         gdbpy_initialize_signal_event,
6578         gdbpy_initialize_breakpoint_event,
6579         gdbpy_initialize_continue_event,
6580         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6581         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6582         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6583         * python/python.c (gdb_python_initialized): New global.
6584         (gdbpy_initialize_events): Return 'int'.  Check errors.
6585         (_initialize_python): Check errors.  Set
6586         gdb_python_initialized.
6587
6588 2013-05-20  Tom Tromey  <tromey@redhat.com>
6589
6590         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6591         Decref the reslut of PyObject_CallMethod.
6592
6593 2013-05-20  Tom Tromey  <tromey@redhat.com>
6594
6595         * python/py-event.c (gdbpy_initialize_event_generic): Return
6596         early if PyType_Ready fails.
6597
6598 2013-05-20  Tom Tromey  <tromey@redhat.com>
6599
6600         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6601         as 'default' in the switch.
6602
6603 2013-05-20  Tom Tromey  <tromey@redhat.com>
6604
6605         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
6606         get_addr_from_python calls out of TRY_CATCH.
6607         (infpy_write_memory, infpy_search_memory): Likewise.
6608         * python/py-utils.c (get_addr_from_python): Return negative
6609         value on error.  Use TRY_CATCH.
6610         * python/python-internal.h (get_addr_from_python): Use
6611         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6612
6613 2013-05-20  Tom Tromey  <tromey@redhat.com>
6614
6615         * python/py-event.c (evpy_emit_event): Decref the
6616         result of PyObject_CallFunctionObjArgs.
6617
6618 2013-05-20  Tom Tromey  <tromey@redhat.com>
6619
6620         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6621         Correctly decref.
6622
6623 2013-05-20  Tom Tromey  <tromey@redhat.com>
6624
6625         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6626
6627 2013-05-20  Tom Tromey  <tromey@redhat.com>
6628
6629         * python/py-event.h (gdbpy_initialize_event_generic): Use
6630         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6631         * python/py-evts.c (add_new_registry): Use
6632         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6633         * python/python-internal.h
6634         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6635
6636 2013-05-20  Tom Tromey  <tromey@redhat.com>
6637
6638         * python/py-arch.c (archpy_disassemble): Update.
6639         * python/py-type.c (typy_get_composite, typy_lookup_typename)
6640         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6641         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6642         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6643         macro.
6644         (GDB_PY_HANDLE_EXCEPTION): Update.
6645         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
6646
6647 2013-05-20  Tom Tromey  <tromey@redhat.com>
6648
6649         * python/python-internal.h (events_object_type): Remove.
6650
6651 2013-05-20  Tom Tromey  <tromey@redhat.com>
6652
6653         * python/py-event.h (evpy_emit_event): Use
6654         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6655         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6656         New macro.
6657
6658 2013-05-20  Tom Tromey  <tromey@redhat.com>
6659
6660         * py-evtregistry.c (create_event_object): Decref
6661         eventregistry_object if PyList_New fails.
6662
6663 2013-05-20  Tom Tromey  <tromey@redhat.com>
6664
6665         * py-cmd.c (gdbpy_string_to_argv): Check result of
6666         PyList_New.
6667
6668 2013-05-20  Tom Tromey  <tromey@redhat.com>
6669
6670         * python/python.c (before_prompt_hook): Add cleanup to
6671         decref 'hook'.
6672
6673 2013-05-20  Tom Tromey  <tromey@redhat.com>
6674
6675         * python/py-function.c (fnpy_init): Decref result of
6676         PyObject_GetAttrString.
6677
6678 2013-05-20  Tom Tromey  <tromey@redhat.com>
6679
6680         * python/py-threadevent.c (get_event_thread): Use
6681         CPYCHECKER_RETURNS_BORROWED_REF.
6682         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6683         New define.
6684         (pspace_to_pspace_object, objfile_to_objfile_object)
6685         (find_thread_object): Use it.
6686
6687 2013-05-20  Tom Tromey  <tromey@redhat.com>
6688
6689         * python/py-arch.c (arch_object_type): Use
6690         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6691         * python/py-block.c (block_syms_iterator_object_type):
6692         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6693         * python/py-bpevent.c (breakpoint_event_object_type):
6694         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6695         * python/py-cmd.c (cmdpy_object_type): Use
6696         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6697         * python/py-continueevent.c (continue_event_object_type):
6698         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6699         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6700         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6701         * python/py-events.h (thread_event_object_type):
6702         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6703         * python/py-evtregistry.c (eventregistry_object_type): Use
6704         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6705         * python/py-exitedevent.c (exited_event_object_type):
6706         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6707         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6708         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6709         * python/py-function.c (fnpy_object_type): Use
6710         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6711         * python/py-inferior.c (inferior_object_type, membuf_object_type):
6712         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6713         * python/py-infthread.c (thread_object_type): Use
6714         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6715         * python/py-lazy-string.c (lazy_string_object_type):
6716         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6717         * python/py-newobjfileevent.c (new_objfile_event_object_type):
6718         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6719         * python/py-objfile.c (objfile_object_type): Use
6720         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6721         * python/py-param.c (parmpy_object_type):
6722         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6723         * python/py-progspace.c (pspace_object_type):
6724         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6725         * python/py-signalevent.c (signal_event_object_type):
6726         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6727         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6728         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6729         * python/py-type.c (type_object_type, field_object_type)
6730         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6731         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6732         define.
6733         (value_object_type, block_object_type, symbol_object_type)
6734         (event_object_type, stop_event_object_type, breakpoint_object_type)
6735         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6736
6737 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
6738
6739         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6740         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6741
6742 2013-05-20  Doug Evans  <dje@google.com>
6743
6744         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
6745         For Fission.
6746         * dwarf2read.c (struct dwarf2_per_cu_data): New member
6747         reading_dwo_directly.
6748         (struct signatured_type): New member dwo_unit.
6749         (struct die_reader_specs): New member comp_dir.
6750         (create_signatured_type_table_from_index): Use malloc for
6751         all_type_units instead of objfile's obstack.
6752         (create_all_type_units): Ditto.
6753         (fill_in_sig_entry_from_dwo_entry): New function.
6754         (add_type_unit): New function.
6755         (lookup_dwo_signatured_type): New function.
6756         (lookup_dwp_signatured_type): New function.
6757         (lookup_signatured_type): New arg cu.  All callers updated.
6758         (init_cu_die_reader): Initialize comp_dir.
6759         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
6760         Change assert of matching type signatures to call error on mismatch.
6761         (lookup_dwo_unit): Add assert.
6762         (init_tu_and_read_dwo_dies): New function.
6763         (init_cutu_and_read_dies): Call it.
6764         (build_type_unit_groups): Handle case of no type unit groups created.
6765         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6766         (lookup_dwo_cutu): Tweak complaint.
6767         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6768         (dwarf2_per_objfile_free): Free all_type_units.
6769
6770 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
6771
6772         * windows-nat.c (handle_unload_dll): Add missing empty line.
6773
6774 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
6775
6776         * dwarf2read.c (prototyped_function_p): New function.
6777         (read_subroutine_type): Use it.
6778
6779 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
6780
6781         * rs6000-aix-tdep.c: De-indent some example code provided
6782         as a comment.
6783
6784 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6785
6786         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6787         region is ok for a hardware watchpoint using the new ptrace interface
6788         on Power servers.
6789
6790 2013-05-17  Doug Evans  <dje@google.com>
6791
6792         * NEWS: Mention new maintenance commands check-symtabs, and
6793         expand-symtabs, and renamed check-psymtabs.
6794         * psymtab.c (maintenance_check_psymtabs): Renamed from
6795         maintenance_check_symtabs.  Only process already-expanded symbol
6796         tables.
6797         (_initialize_psymtab): Update.
6798         * symmisc.c (maintenance_check_symtabs): New function.
6799         (maintenance_expand_name_matcher): New function
6800         (maintenance_expand_file_matcher): New function
6801         (maintenance_expand_symtabs): New function.
6802         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6803         commands.
6804
6805 2013-05-17  Tom Tromey  <tromey@redhat.com>
6806
6807         * python/py-inferior.c (infpy_read_memory): Don't call
6808         PyErr_SetString if PyObject_New fails.
6809         * python/py-frame.c (frame_info_to_frame_object): Don't call
6810         PyErr_SetString if PyObject_New fails.
6811
6812 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
6813
6814         * acinclude.m4: Add check for dlopen in libdl.
6815         * configure.ac: Ditto.
6816         * configure: Regenerate.
6817
6818 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
6819
6820         * frame.c (frame_stash): Convert to htab.
6821         (frame_addr_hash): New function.
6822         (frame_addr_hash_eq): New function.
6823         (frame_stash_create): Convert function to create
6824         a hash table.
6825         (frame_stash_add): Convert function to add an entry to a hash
6826         table.
6827         (frame_stash_find): Convert function to search the hash table.
6828         (frame_stash_invalidate): Convert function to empty the hash
6829         table.
6830         (get_frame_id): Only add to stash if a frame_id is created.
6831         (_initialize_frame): Call frame_stash_create.
6832
6833 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
6834
6835         * configure.ac: Ensure MIG is available when building for GNU Hurd
6836         hosts.
6837         * configure: Regenerate.
6838
6839 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
6840
6841         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6842
6843 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
6844
6845         * ada-lang.c (ada_make_symbol_completion_list): Make sure
6846         all cleanups are done before returning from this function.
6847
6848 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
6849
6850         * utils.h: #include "exceptions.h".
6851         (enum errors): Remove partial declaration.
6852
6853 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
6854
6855         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6856         * gdbarch.h, gdbarch.c: Regenerate.
6857         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6858         handling.
6859
6860         * rs6000-aix-tdep.h: New file.
6861         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6862         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6863         "xml-utils.h".
6864         (struct field_info, struct ld_info_desc): New types.
6865         (ld_info32_desc, ld_info64_desc): New static constants.
6866         (struct ld_info): New type.
6867         (rs6000_aix_extract_ld_info): New function.
6868         (rs6000_aix_shared_library_to_xml): Likewise.
6869         (rs6000_aix_ld_info_to_xml): Likewise.
6870         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6871         (rs6000_aix_init_osabi): Add call to
6872         set_gdbarch_core_xfer_shared_libraries_aix.
6873         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6874         Remove "xml-utils.h" include.
6875         (LdInfo): Delete typedef.
6876         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6877         Delete macros.
6878         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6879         Adjust code accordingly.
6880         (rs6000_core_ldinfo): Delete, folded into
6881         rs6000_aix_core_xfer_shared_libraries_aix.
6882         (rs6000_xfer_shared_library): Delete.
6883         (rs6000_xfer_shared_libraries): Reimplement.
6884
6885 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
6886
6887         * record.c (record_goto_cmdlist): New.
6888         (cmd_record_goto): Split into this ...
6889         (cmd_record_goto_begin): ... this
6890         (cmd_record_goto_end): ... and this.
6891         (_initialize_record): Change "record goto" to prefix command.
6892         Add commands for "record goto begin" and "record goto end".
6893         Add an alias for "record goto start" to "record goto begin".
6894
6895 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6896
6897         * linespec.c (convert_linespec_to_sals): New comment for
6898         SOURCE_FILENAME assignment.
6899
6900 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6901
6902         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6903         internal_warning.
6904
6905 2013-05-14  Tom Tromey  <tromey@redhat.com>
6906
6907         * eval.c (parse_and_eval_long): Make 'exp' const.
6908         * value.h (parse_and_eval_long): Update.
6909
6910 2013-05-14  Tom Tromey  <tromey@redhat.com>
6911
6912         * ui-file.c (gdb_fopen): Make arguments const.
6913         * ui-file.h (gdb_fopen): Make arguments const.
6914
6915 2013-05-14  Tom Tromey  <tromey@redhat.com>
6916
6917         * remote.c (remote_set_trace_notes): Make arguments const.
6918         * target.c (update_current_target): Update cast.
6919         * target.h (to_set_trace_notes): Make arguments const.
6920
6921 2013-05-14  Tom Tromey  <tromey@redhat.com>
6922
6923         * go32-nat.c (go32_terminal_info): Make 'args' const.
6924         * inferior.h (child_terminal_info): Update.
6925         * inflow.c (child_terminal_info): Make 'args' const.
6926         * target.c (default_terminal_info): Make 'args' const.
6927         (debug_to_terminal_save_ours): Likewise.
6928         * target.h (struct target_ops) <to_terminal_info>: Make argument
6929         const.
6930
6931 2013-05-13  Tom Tromey  <tromey@redhat.com>
6932
6933         * gcore.c (create_gcore_bfd): Make 'filename' const.
6934         * gcore.h (create_gcore_bfd): Make 'filename' const.
6935         * record-full.c (record_full_save): Make 'recfilename' const.
6936         * target.c (target_save_record): Make 'filename' const.
6937         * target.h (struct target_ops) <to_save_record>: Make 'filename'
6938         const.
6939         (target_save_record): Likewise.
6940
6941 2013-05-13  Tom Tromey  <tromey@redhat.com>
6942
6943         PR gdb/15338:
6944         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6945         ranges section has been read.
6946
6947 2013-05-13  Tom Tromey  <tromey@redhat.com>
6948
6949         PR exp/15364:
6950         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6951         STRUCTOP_PTR>: Return a not_lval value for
6952         EVAL_AVOID_SIDE_EFFECTS.
6953         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6954         for EVAL_AVOID_SIDE_EFFECTS.
6955
6956 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
6957
6958         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6959         floating point registers to register type before storing
6960         value.
6961         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6962         Likewise.
6963
6964 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6965             Tom Tromey  <tromey@redhat.com>
6966
6967         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6968         New functions.
6969         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6970         Declare.
6971         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6972         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6973         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6974         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6975
6976 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
6977             Tom Tromey  <tromey@redhat.com>
6978
6979         PR build/15414:
6980         * configure: Rebuild.
6981         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6982         with -Wno-format.
6983
6984 2013-05-10  Pedro Alves  <palves@redhat.com>
6985
6986         * remote.c (_initialize_remote): Fix spelling of
6987         qXfer:traceframe-info:read packet in packet config command.
6988
6989 2013-05-10  David Taylor  <dtaylor@emc.com>
6990
6991         PR remote/15455
6992
6993         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6994         "QTro" at start of packet.
6995
6996 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
6997
6998         * solib-aix.c (solib_aix_relocate_section_addresses):
6999         For the .bss section action, apply the same offset as
7000         the .data section.
7001
7002 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
7003
7004         * solib-aix.c (solib_aix_relocate_section_addresses):
7005         Remove FIXME comment.
7006
7007 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
7008
7009         PR tdep/15420:
7010         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7011         New functions, directly copied from sparc-sol-thread.c.
7012         * sparc-sol-thread.c: Delete.
7013         * configure.ac: Remove code handling sparc-solaris-thread.c.
7014         * configure: Regenerate.
7015
7016 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
7017
7018         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7019         filter logic.
7020         (backtrace_command): Add "no-filters" option parsing.
7021         (_initialize_stack): Alter help to reflect "no-filters" option.
7022         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7023         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7024         (py-frame.o): Add target
7025         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7026         filter files.
7027         * python/python.h: Add new frame filter constants, and flag enum.
7028         (apply_frame_filter): Add definition.
7029         * python/python.c (apply_frame_filter): New non-Python
7030         enabled function.
7031         * python/py-utils.c (py_xdecref): New function.
7032         (make_cleanup_py_xdecref): Ditto.
7033         * python/py-objfile.c: Declare frame_filters dictionary.
7034         (objfpy_dealloc): Add frame_filters dealloc.
7035         (objfpy_new): Initialize frame_filters attribute.
7036         (objfile_to_objfile_object): Ditto.
7037         (objfpy_get_frame_filters): New function.
7038         (objfpy_set_frame_filters): New function.
7039         * python/py-progspace.c: Declare frame_filters dictionary.
7040         (pspy_dealloc): Add frame_filters dealloc.
7041         (pspy_new): Initialize frame_filters attribute.
7042         (pspacee_to_pspace_object): Ditto.
7043         (pspy_get_frame_filters): New function.
7044         (pspy_set_frame_filters): New function.
7045         * python/py-framefilter.c: New file.
7046         * python/lib/gdb/command/frame_filters.py: New file.
7047         * python/lib/gdb/frames.py: New file.
7048         * python/lib/gdb/__init__.py: Initialize global frame_filters
7049         dictionary
7050         * python/lib/gdb/FrameDecorator.py: New file.
7051         * python/lib/gdb/FrameIterator.py: New file.
7052         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7053         * mi/mi-cmds.h: Declare.
7054         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7055         --no-frame-filter logic, and Python frame filter logic.
7056         (stack_enable_frame_filters): New function.
7057         (parse_no_frame_option): Ditto.
7058         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7059         filter logic.
7060         (mi_cmd_stack_list_locals): Ditto.
7061         (mi_cmd_stack_list_args): Ditto.
7062         (mi_cmd_stack_list_variables): Ditto.
7063         * NEWS: Add frame filter note.
7064
7065 2013-05-09  Doug Evans  <dje@google.com>
7066
7067         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7068         All callers updated.
7069         (syms_from_objfile): Ditto.  Make static.
7070         (symbol_file_add_with_addrs): Renamed from
7071         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
7072         num_offsets.  All callers updated.
7073         * symfile.h (syms_from_objfile): Delete.
7074
7075         * symfile.c (decrement_reading_symtab): Add assert.
7076         (increment_reading_symtab): Ditto.
7077
7078 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
7079
7080         * source.c (forward_search_command): Replace call to getc
7081         by call to fgetc.
7082         (reverse_search_command): Likewise.
7083
7084 2013-05-08  Doug Evans  <dje@google.com>
7085
7086         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7087         matching test.
7088
7089 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7090
7091         * sol-thread.c (info_cb): Factorize the code a little.
7092
7093 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7094
7095         * sol-thread.c (info_cb): Rework the output of the "maintenance
7096         info sol-threads" command a bit.
7097
7098 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7099
7100         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7101         Replace ti.ti_startfunc by ti.ti_pc.
7102
7103 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7104
7105         * solib-aix.c (solib_aix_free_library_list): New function
7106         for the case where HAVE_LIBEXPAT is not defined.
7107
7108 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7109
7110         PR breakpoints/15413:
7111         * breakpoint.c (condition_completer): Simplify the code to
7112         disconsider multiple locations of breakpoints when completing the
7113         "condition" command.
7114
7115 2013-05-07  Pierre Muller  <muller@sourceware.org>
7116
7117         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7118         instead of <sys/wait.h>.
7119
7120 2013-05-07  Pierre Muller  <muller@sourceware.org>
7121
7122         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7123         trailing new line from warning message.
7124
7125 2013-05-07  Pierre Muller  <muller@sourceware.org>
7126
7127         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7128         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7129
7130 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7131
7132         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7133         error message (ARI fix).
7134
7135 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7136
7137         * features/library-list-aix.dtd: Replace library-list by
7138         library-list-aix.
7139         * rs6000-nat.c: Replace library-list by library-list-aix
7140         throughout.
7141         * solib-aix.c: Likewise.
7142
7143 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7144
7145         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7146         Renames TARGET_OBJECT_AIX_LIBRARIES.
7147         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7148         TARGET_OBJECT_LIBRARIES_AIX throughout.
7149         * solib-aix.c: Likwise.
7150
7151 2013-05-07  Yao Qi  <yao@codesourcery.com>
7152
7153         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7154         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7155
7156 2013-05-07  Yao Qi  <yao@codesourcery.com>
7157
7158         * solib-dsbt.c (enable_break): Declare.
7159         (dsbt_current_sos): Remove call to enable_break2.
7160         (enable_break2): Rename to enable_break.  Set solib breakpoint
7161         on '_dl_debug_state'.
7162         (enable_break): Remove.
7163
7164 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
7165
7166         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7167         debug state prior to replicating existing hardware watchpoints or
7168         breakpoints.
7169
7170 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
7171
7172         * gcore.c (gcore_create_callback): Ignore sections with
7173         separate_debug_objfile_backlink != NULL.
7174
7175 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
7176             Andrew Jenner  <andrew@codesourcery.com>
7177             Chung-Lin Tang  <cltang@codesourcery.com>
7178             Julian Brown  <julian@codesourcery.com>
7179
7180         Based on the nios2-elf port from Altera Corporation.
7181
7182         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7183         nios2-linux-tdep.o.
7184         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7185         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7186         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7187         * nios2-tdep.h: New.
7188         * nios2-tdep.c: New.
7189         * nios2-linux-tdep.c: New.
7190         * features/Makefile (WHICH): Add nios2-linux.
7191         (nios2-linux-expedite): Set.
7192         * features/nios2-cpu.xml: New.
7193         * features/nios2.xml: New.
7194         * features/nios2-linux.xml: New.
7195         * features/nios2.c: New (autogenerated).
7196         * features/nios2-linux.c: New (autogenerated).
7197         * regformats/nios2-linux.dat: New (autogenerated).
7198         * NEWS (Changes since GDB 7.6): Add new Nios II targets
7199         and commands.
7200
7201 2013-05-06  Doug Evans  <dje@google.com>
7202
7203         * symfile.c: Whitespace cleanup.
7204
7205         * solist.h (struct target_so_ops): New member clear_so.
7206         * solib-svr4.c (svr4_clear_so): New function.
7207         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7208         * solib.c (clear_so): Renamed from free_so_symbols.
7209         All callers updated.  Call target clear_so if it exists.
7210
7211 2013-05-06  Tom Tromey  <tromey@redhat.com>
7212
7213         * ada-lang.c (ada_value_primitive_packed_val): Don't
7214         call value_incref.
7215         * value.c (set_value_parent): Incref the new parent and decref
7216         the old parent.
7217         (value_copy, value_primitive_field): Use set_value_parent.
7218
7219 2013-05-06  Tom Tromey  <tromey@redhat.com>
7220
7221         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7222         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7223         if needed.
7224         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7225         * dwarf2read.c (write_constant_as_bytes)
7226         (dwarf2_fetch_constant_bytes): New functions.
7227
7228 2013-05-06  Tom Tromey  <tromey@redhat.com>
7229
7230         * dwarf2read.c (dwarf2_const_value_data): Remove unused
7231         parameters.
7232         (dwarf2_const_value_attr): Update.
7233
7234 2013-05-06  Tom Tromey  <tromey@redhat.com>
7235
7236         * somread.c (som_symfile_offsets): Add 'const' to addrs.
7237         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7238         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7239         Remove declaration.
7240
7241 2013-05-06  Tom Tromey  <tromey@redhat.com>
7242
7243         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7244         objfile's obstack.
7245
7246 2013-05-06  Doug Evans  <dje@google.com>
7247
7248         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7249         * stabsread.h (process_one_symbol): Update declaration.
7250         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7251         * elfread.c (elf_symfile_relocate_probe): Ditto.
7252         * psymtab.c (relocate_psymtabs): Ditto.
7253         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7254         (objfile_relocate): Ditto.
7255         * objfiles.h (objfile_relocate): Update declaration.
7256         * symfile.c (relative_addr_info_to_section_offsets): Constify
7257         addrs parameter.
7258         (default_symfile_offsets): Ditto.
7259         (syms_from_objfile_1): Constify offsets parameter.
7260         (syms_from_objfile): Ditto.
7261         (symbol_file_add_with_addrs_or_offsets): Ditto.
7262         (symfile_map_offsets_to_segments): Constify data parameter.
7263         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7264         delta parameters of member relocate.
7265         (struct sym_probe_fns): Constify new_offsets,
7266         delta parameters of member sym_relocate_probe.
7267         (struct sym_fns): Constify section_addr_info parameter of member
7268         sym_offsets.
7269         (relative_addr_info_to_section_offsets): Update declaration.
7270         (default_symfile_offsets): Ditto.
7271         (syms_from_objfile): Ditto.
7272         (symfile_map_offsets_to_segments): Ditto.
7273
7274         * symfile.c (syms_from_objfile_1): Use correct section count when
7275         objfile->sf == NULL.
7276
7277 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
7278
7279         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7280
7281 2013-05-06  Doug Evans  <dje@google.com>
7282
7283         * psympriv.h (struct partial_symtab): Augment comment for member
7284         section_offsets.
7285
7286 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7287
7288         Reimplement shared library support on ppc-aix...
7289         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7290         * features/library-list-aix.dtd: New file.
7291         * solib-aix.h, solib-aix.c: New file.
7292         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7293         (rs6000_find_toc_address_hook): Delete.
7294         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7295         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7296         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
7297         "xml-utils.h".
7298         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7299         (vmap_symtab, fixup_breakpoints): Delete.
7300         (rs6000_xfer_shared_libraries): New function.
7301         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7302         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7303         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7304         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7305         (rs6000_xfer_shared_library): New function.
7306         (find_toc_address): Delete.
7307         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7308         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7309         * xcoffread.c (record_minimal_symbol): Reloate symbol address
7310         before creating minimal symbol.  Adjust function description
7311         accordingly.
7312         (scan_xcoff_symtab): Replace call to
7313         prim_record_minimal_symbol_and_info by call to
7314         record_minimal_symbol.
7315         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7316         around default_symfile_offsets.
7317         * configure.tgt: Add solib-aix.o to gdb_target_obs for
7318         powerpc-aix targets.
7319         * config/rs6000/nm-rs6000.h: Delete.
7320         * config/powerpc/aix.mh (NAT_FILE): Delete.
7321         (NATDEPFILES): Remove xcoffsolib.o.
7322         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7323         (ALL_TARGET_OBS): Add solib-aix.o.
7324         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7325         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
7326         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
7327         * xcoffsolib.h, xcoffsolib.c: Delete.
7328
7329         * solib.c (reload_shared_libraries): Remove reference to
7330         SOLIB_CREATE_INFERIOR_HOOK.
7331         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7332         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7333         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7334         comment.
7335         * corelow.c (deprecated_core_resize_section_table): Delete.
7336         * exec.c: Remove include of xcoffsolib.h".
7337         (map_vmap, vmap): Delete.
7338         (exec_close_1): Remove references to vmap.
7339         (exec_file_attach): Remove vmap handling code, and reference
7340         to DEPRECATED_IBM6000_TARGET.
7341         (bfdsec_to_vmap): Delete.
7342         (exec_files_info): Remove block of code handling VMAP.
7343         * infcmd.c (post_create_inferior): Remove reference to
7344         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7345         * infrun.c (follow_exec): Remove reference to
7346         SOLIB_CREATE_INFERIOR_HOOK.
7347         * stack.c (print_frame): Remove reference to PC_SOLIB.
7348         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7349         (dsbt_relocate_main_executable): Likewise.
7350         * solib-frv.c (frv_current_sos): Likewise.
7351
7352 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7353
7354         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7355         to target_write_memory and target_read_memory.
7356
7357 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7358
7359         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7360         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7361
7362 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7363
7364         * darwin-nat.c: Replace all "%x" instances in format strings
7365         into "0x%x" throughout.
7366
7367 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7368
7369         * darwin-nat.c (darwin_mourn_inferior): Replace call to
7370         gdb_assert by call to MACH_CHECK_ERROR.
7371         (darwin_attach_pid): Raise an error rather than a failed
7372         assertion when various system calls failed.  Report a warning
7373         instead of raising a failed assertion when PREV_NOT is not NULL
7374         after call to mach_port_request_notification.
7375         (darwin_ptrace_me): Raise an error rather than a failed
7376         assertion when read returns nonzero.
7377
7378 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
7379
7380         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7381
7382 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7383
7384         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7385
7386 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
7387
7388         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7389         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7390         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
7391         a stale cleanup.  Fix double free of NAME.
7392
7393 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
7394
7395         * windows-nat.c (windows_delete_thread): Accept an additional
7396         argument, the thread's exit code, and announce thread death when
7397         print_thread_events is non-zero and we are deleting a thread that
7398         is not the main thread.
7399         (get_windows_debug_event): Pass thread exit code to
7400         windows_delete_thread.
7401
7402 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
7403
7404         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7405         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7406         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7407         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7408         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7409         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7410         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7411         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7412         (gdbarch_tdep): New struct.
7413         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7414         E_NUM_REGS.
7415         (v850e3v5_register_name): New function.
7416         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7417         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
7418         code handling the struct return conventions for the RH850 ABI.
7419         Update all callers.
7420         (v850_eight_byte_align_p): New function.
7421         (v850_push_call_dummy): Push structs by value, not by reference
7422         for the RH850 ABI.  Add support for eight byte alignment.
7423         (v850_dbtrap_breakpoint_from_pc): New function.
7424         (v850_gdbarch_init): Add ABI detection code.  Register
7425         v850e3v5_register_name for the v850e3v5 architecture.  Set the
7426         number of registers for v850e3v5.  Register
7427         v850_dbtrap_breakpoint_from_pc as appropriate.
7428         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7429
7430 2013-05-03  Doug Evans  <dje@google.com>
7431
7432         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7433         of bfd_count_sections.
7434         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7435         * symfile.c (default_symfile_offsets): Ditto.
7436         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
7437         one entry, not bfd_count_sections entries.
7438
7439 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
7440
7441         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7442         `save' and `restore' register groups.  Don't include SPL
7443         or SPH in these groups.
7444         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
7445         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
7446         RL78_ES_REGNUM, and RL78_CS_REGNUM.
7447         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
7448         dwarf2_append_unwinders().
7449
7450 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7451
7452         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7453         ignore SIGINT and SIGTRAP in case these internal signals are
7454         caught explicitely.
7455
7456 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
7457
7458         * darwin-nat.c (darwin_read_write_inferior): Change types
7459         of parameters rdaddr and wraddr to "gdb_byte *". Change type
7460         of copy_count to "mach_msg_type_number_t".
7461         (darwin_read_dyld_info): Change type of parameter
7462         rdaddr to "gdb_byte *".
7463
7464 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
7465
7466         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7467         of &info->load_map from "char *" to "gdb_byte *".
7468
7469 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
7470
7471         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7472         from "char *" to "gdb_byte *".
7473         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7474
7475 2013-04-30  Doug Evans  <dje@google.com>
7476
7477         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7478         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7479         DWO stub.  If DWO isn't found, just use stub.
7480         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7481
7482         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7483         calling init_cutu_and_read_dies.
7484
7485 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7486
7487         * target-descriptions.c (maint_print_c_tdesc_cmd):
7488         Add case to parse structures as register types and
7489         bitfields.
7490
7491 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7492
7493         * MAINTAINERS (Write After Approval): Add myself to the list.
7494
7495 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7496
7497         * sol-thread.c (rw_common): Change type of parameter "buf"
7498         to "gdb_byte *".
7499         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7500         rw_common to "gdb_byte *" instead of "char *".
7501
7502 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7503
7504         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7505         of local variable msym to const struct bound_minimal_symbol.
7506         Adjust use accordingly.
7507         [ti.ti_state == TD_THR_SLEEP]: Likewise.
7508
7509 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
7510
7511         * i386gnu-nat.c (CREG_OFFSET): New macro.
7512         (creg_offset): New array.
7513         (CREG_ADDR): Use creg_offset instead of reg_offset.
7514
7515 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7516
7517         * mep-tdep.c (mep_write_pc): Delete.
7518         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7519         Add call to set_gdbarch_pc_regnum.
7520
7521 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7522
7523         * common/filestuff.c: Replace #include <dirent.h> by
7524         #include "gdb_dirent.h".
7525
7526 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
7527
7528         * common/filestuff.c: Replace #include <sys/stat.h> by
7529         #include "gdb_stat.h".
7530
7531 2013-04-29  Pierre Muller  <muller@sourceware.org>
7532
7533         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7534         editCase function rule.
7535         (get_DW_AT_signature_type): Likewise.
7536
7537 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
7538
7539         * m32r-tdep.c (m32r_write_pc): Delete.
7540         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7541         Add call to set_gdbarch_pc_regnum.
7542
7543 2013-04-29  Pierre Muller  <muller@sourceware.org>
7544
7545         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7546
7547 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
7548
7549         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7550
7551 2013-04-28  Yao Qi  <yao@codesourcery.com>
7552
7553         * solib-dsbt.c (fetch_loadmap): Re-indent.
7554         (displacement_from_map, enable_break2): Likewise.
7555         (dsbt_relocate_section_addresses): Likewise.
7556
7557 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
7558
7559         GDB 7.6 released.
7560
7561 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
7562
7563         PR corefiles/14983:
7564         * dwarf2read.c (process_full_comp_unit): Always create a static
7565         block.
7566
7567 2013-04-25  Hui Zhu  <hui@codesourcery.com>
7568
7569         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7570         to loc->cmd_bytecode.
7571
7572 2013-04-24  Doug Evans  <dje@google.com>
7573
7574         * dwarf2read.c (setup_type_unit_groups): Fix comment.
7575
7576 2013-04-22  Keith Seitz  <keiths@redhat.com>
7577
7578         * tracepoint.c (trace_save):  Call the writer's start method.
7579
7580 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
7581
7582         PR gdb/10462
7583         * cli/cli-decode.c (lookup_command): Show an error if there is no space
7584         before argument.
7585
7586 2013-04-23  Tom Tromey  <tromey@redhat.com>
7587
7588         * common/filestuff.c: Check USE_WIN32API before including
7589         sys/socket.h.
7590         (HAVE_F_GETFD): New define.
7591         (mark_cloexec): Check HAVE_F_GETFD.
7592         (gdb_open_cloexec): Change 'mode' to unsigned long.
7593         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7594         (gdb_pipe_cloexec): Check HAVE_PIPE.
7595         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7596         long.
7597
7598 2013-04-23  Hui Zhu  <hui@codesourcery.com>
7599
7600         PR gdb/15293
7601         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7602
7603 2013-04-23  Hui Zhu  <hui@codesourcery.com>
7604
7605         PR gdb/15165
7606         * breakpoint.c (dprintf_print_recreate): New.
7607         (save_breakpoints): Let it not save dprintf commands.
7608         (initialize_breakpoint_ops): Set dprintf_print_recreate.
7609
7610 2013-04-22  Tom Tromey  <tromey@redhat.com>
7611
7612         PR gdb/7912:
7613         * Makefile.in (SFILES): Add filestuff.c
7614         (COMMON_OBS): Add filestuff.o.
7615         (filestuff.o): New target.
7616         * auto-load.c (auto_load_objfile_script_1): Use
7617         gdb_fopen_cloexec.
7618         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7619         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7620         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7621         * common/agent.c (gdb_connect_sync_socket): Use
7622         gdb_socket_cloexec.
7623         * common/filestuff.c: New file.
7624         * common/filestuff.h: New file.
7625         * common/linux-osdata.c (linux_common_core_of_thread)
7626         (command_from_pid, commandline_from_pid, print_source_lines)
7627         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7628         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7629         gdb_fopen_cloexec.
7630         * common/linux-procfs.c (linux_proc_get_int)
7631         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7632         * config.in, configure: Rebuild.
7633         * configure.ac: Don't check for sys/socket.h.  Check for
7634         fdwalk, pipe2.
7635         * corelow.c (core_open): Use gdb_open_cloexec.
7636         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7637         * fork-child.c (fork_inferior): Call close_most_fds.
7638         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7639         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7640         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7641         Use gdb_fopen_cloexec.
7642         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7643         gdb_open_cloexec.
7644         (linux_async_pipe): Use gdb_pipe_cloexec.
7645         * remote-fileio.c (remote_fileio_func_open): Use
7646         gdb_open_cloexec.
7647         * remote.c (remote_file_put, remote_file_get): Use
7648         gdb_fopen_cloexec.
7649         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7650         close_most_fds.
7651         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7652         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7653         * solib.c (solib_find): Use gdb_open_cloexec.
7654         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7655         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7656         (tfile_open): Use gdb_open_cloexec.
7657         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7658         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7659         * xml-support.c (xml_fetch_content_from_file): Use
7660         gdb_fopen_cloexec.
7661         * main.c (captured_main): Call notice_open_fds.
7662
7663 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7664
7665         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7666         'char *' to 'gdb_byte *'.
7667         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7668         'gdb_byte'.
7669
7670 2013-04-22  Yao Qi  <yao@codesourcery.com>
7671
7672         * infrun.c: Fix typo in comment.
7673
7674 2013-04-22  Andrew Haley  <aph@redhat.com>
7675
7676         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7677         instead of "long".
7678
7679 2013-04-20  Yao Qi  <yao@codesourcery.com>
7680
7681         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7682         'char *' to 'gdb_byte *'.  Cast the return value of
7683         'bt_ctf_get_char_array' to 'gdb_byte *'.
7684
7685 2013-04-19  Pedro Alves  <palves@redhat.com>
7686
7687         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7688         -Wpointer-sign.
7689         * configure: Regenerate.
7690
7691 2013-04-19  Pedro Alves  <palves@redhat.com>
7692
7693         * ser-tcp.c (net_read_prim): Cast second argument to recv to
7694         'void *'.
7695
7696 2013-04-19  Pedro Alves  <palves@redhat.com>
7697
7698         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7699         Change type of 'myaddr' parameter to gdb_byte pointer.
7700         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
7701         to 'long long' pointer instead of to 'unsigned long long'.
7702         (monitor_write_memory_block, monitor_read_memory_single)
7703         (monitor_read_memory): Change type of 'myaddr' parameter to
7704         gdb_byte pointer.
7705
7706 2013-04-19  Pedro Alves  <palves@redhat.com>
7707
7708         * record.c (validate_history_size): Make parameter 'setting'
7709         unsigned.
7710
7711 2013-04-19  Pedro Alves  <palves@redhat.com>
7712
7713         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7714         to 'gdb_byte *'.
7715
7716 2013-04-19  Pedro Alves  <palves@redhat.com>
7717
7718         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7719         local to int.
7720
7721 2013-04-19  Pedro Alves  <palves@redhat.com>
7722
7723         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7724         * ada-tasks.c (read_fat_string_value): Likewise.
7725
7726 2013-04-19  Pedro Alves  <palves@redhat.com>
7727
7728         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7729         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
7730         'offset', and adjust.
7731
7732 2013-04-19  Pedro Alves  <palves@redhat.com>
7733
7734         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7735         (read_index_from_section): Add cast to 'char *'.
7736
7737 2013-04-19  Pedro Alves  <palves@redhat.com>
7738
7739         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7740
7741 2013-04-19  Pedro Alves  <palves@redhat.com>
7742
7743         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7744
7745 2013-04-19  Pedro Alves  <palves@redhat.com>
7746
7747         * record-full.c (record_full_get_bookmark): Change local 'ret'
7748         type to char * and add cast to gdb_byte *.
7749         (record_full_goto_bookmark): Handle 'bookmark' argument as a
7750         string.
7751         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7752
7753 2013-04-19  Pedro Alves  <palves@redhat.com>
7754
7755         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7756         * python/py-prettyprint.c (print_string_repr): Change type of
7757         'output' local to char *.  Add cast to gdb_byte * in
7758         LA_PRINT_STRING call.
7759         (print_children): Change type of 'output' local to char *.
7760         * python/py-value.c (valpy_string): Add cast to const char * in
7761         PyUnicode_Decode call.
7762
7763 2013-04-19  Pedro Alves  <palves@redhat.com>
7764
7765         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7766         and change its type to 'const char *'.  Adjust.
7767         (mips_send_packet): Add cast to 'char *', and remove cast to
7768         'unsigned char *'.
7769         (mips_receive_packet): Remove cast to 'unsigned char *'.
7770         (mips_load_srec): Use bfd_byte.
7771         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7772         (pmon_checkset): Make 'value' parameter unsigned.
7773
7774 2013-04-19  Pedro Alves  <palves@redhat.com>
7775
7776         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7777
7778 2013-04-19  Pedro Alves  <palves@redhat.com>
7779
7780         * remote.c (remote_write_bytes_aux, compare_sections_command)
7781         (remote_read_qxfer)
7782         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7783         (remote_hostio_readlink, remote_bfd_iovec_pread)
7784         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7785         binary buffer, and char when buffer is used as string.
7786         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7787         (trace_save, tfile_open, traceframe_walk_blocks)
7788         (tfile_fetch_registers): Likewise.
7789
7790 2013-04-19  Pedro Alves  <palves@redhat.com>
7791
7792         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7793         buffer and size_t size.  Adjust.
7794         * ser-base.h (ser_base_write): Adjust.
7795         * ser-go32.c (cnts): Change type to size_t.
7796         (dos_write): Change prototype -- take 'void *'
7797         buffer and size_t size.  Adjust.
7798         (dos_info): Print elements of 'cnts' as unsigned long.
7799         * serial.c (serial_write): Likewise.
7800         * serial.h (serial_write): Adjust.
7801         (struct serial_ops) <write>: Change prototype -- take 'void *'
7802         buffer and size_t size.  Adjust.
7803
7804 2013-04-19  Pedro Alves  <palves@redhat.com>
7805
7806         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7807         gdb_byte *.
7808         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7809
7810 2013-04-19  Pedro Alves  <palves@redhat.com>
7811
7812         * alpha-tdep.c (alpha_extract_return_value): Use
7813         regcache_cooked_read_unsigned to read 'v0'.
7814
7815 2013-04-19  Pedro Alves  <palves@redhat.com>
7816
7817         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7818         parameters 'at', 'as' and 'offset' to uint32_t.
7819
7820 2013-04-19  Pedro Alves  <palves@redhat.com>
7821
7822         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7823         'is64' to signed 'int'.
7824
7825 2013-04-19  Pedro Alves  <palves@redhat.com>
7826
7827         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7828         parameter to int *.
7829
7830 2013-04-19  Pedro Alves  <palves@redhat.com>
7831
7832         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7833         'insnbuf' buffer type to unsigned int[].
7834
7835 2013-04-19  Pedro Alves  <palves@redhat.com>
7836
7837         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7838
7839 2013-04-19  Pedro Alves  <palves@redhat.com>
7840
7841         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7842         unsigned long *.
7843
7844 2013-04-19  Pedro Alves  <palves@redhat.com>
7845
7846         * alpha-tdep.c (heuristic_fence_post): Change type to int.
7847         (alpha_heuristic_proc_start): Adjust to check -1 instead of
7848         UINT_MAX.
7849         * mips-tdep.c (heuristic_fence_post): Change type to int.
7850         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7851
7852 2013-04-19  Pedro Alves  <palves@redhat.com>
7853
7854         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7855         (struct gdbarch_tdep) <cris_version>: Make unsigned.
7856         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7857
7858 2013-04-19  Pedro Alves  <palves@redhat.com>
7859
7860         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
7861         it to get a string view of the byte buffer.
7862         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7863         type to gdb_byte *.  Adjust.
7864         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7865         Change local to char *.
7866         * solib-darwin.c (find_program_interpreter): Change return type to
7867         char *.  Adjust.
7868         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7869         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7870         * solib-frv.c (enable_break2): Change local 'buf' to char *.
7871         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7872         * solib-svr4.c (find_program_interpreter): Change return type to
7873         char *.  Adjust.
7874         (enable_break): Change local 'interp_name' to char *.
7875         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7876         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7877         (spu_pseudo_register_write_spu): Use char for string buffer.
7878         Adjust.
7879         (info_spu_event_command, info_spu_signal_command): Add casts to
7880         'char *'.
7881
7882 2013-04-19  Pedro Alves  <palves@redhat.com>
7883
7884         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7885         gdb_byte[].
7886         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7887         * ada-lang.c (ada_value_assign): Use gdb_byte.
7888         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7889         (alphanbsd_sigtramp_offset): Use gdb_byte.
7890         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7891         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7892         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7893         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7894         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7895         * arm-tdep.c (arm_stub_unwind_sniffer)
7896         (arm_displaced_init_closure): Use gdb_byte.
7897         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7898         (arm_default_thumb_le_breakpoint)
7899         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7900         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7901         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7902         * arm-wince-tdep.c (arm_wince_le_breakpoint)
7903         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7904         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7905         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7906         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7907         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7908         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7909         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7910         (cris_store_return_value, cris_extract_return_value): Use
7911         gdb_byte.
7912         (constraint): Change type of parameter to char * from signed
7913         char*.  Use gdb_byte.
7914         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7915         of local buffer to gdb_byte *.
7916         * dwarf2read.c (read_index_from_section): Use gdb_byte.
7917         (create_dwp_hash_table): Change type of locals to gdb_byte *.
7918         (add_address_entry): Change type of local buffer to gdb_byte[].
7919         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7920         (frv_push_dummy_call): Use gdb_byte.
7921         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7922         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7923         (hppa_hpux_supply_save_state): Use gdb_byte.
7924         * hppa-tdep.c (hppa32_push_dummy_call)
7925         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7926         * ia64-tdep.c (extract_bit_field, replace_bit_field)
7927         (slotN_contents, replace_slotN_contents): Change type of parameter
7928         to gdb_byte *.
7929         (fetch_instruction, ia64_pseudo_register_write)
7930         (ia64_register_to_value, ia64_value_to_register)
7931         (ia64_extract_return_value, ia64_store_return_value)
7932         (ia64_push_dummy_call): Use gdb_byte.
7933         * m32c-tdep.c (m32c_return_value): Remove cast.
7934         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7935         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7936         gdb_byte.
7937         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7938         * mn10300-tdep.c (mn10300_store_return_value)
7939         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7940         gdb_byte.
7941         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7942         (moxie_process_record): Remove casts.
7943         * ppc-ravenscar-thread.c (supply_register_at_address)
7944         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7945         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7946         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7947         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7948         * remote.c (compare_sections_command): Use gdb_byte.
7949         * score-tdep.c (score7_free_memblock): Change type of parameter to
7950         gdb_byte *.
7951         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7952         gdb_byte *.  Use gdb_byte.
7953         (sh_push_dummy_call_fpu): Use gdb_byte.
7954         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7955         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7956         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7957         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
7958         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7959         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7960         (sh64_store_return_value, sh64_register_convert_to_virtual):
7961         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
7962         (sh64_pseudo_register_write): Use gdb_byte.
7963         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7964         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
7965         buffer.
7966         (irix_current_sos): Use gdb_byte.
7967         * solib-som.c (som_current_sos): Use gdb_byte.
7968         * sparc-ravenscar-thread.c (supply_register_at_address)
7969         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7970         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7971         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7972         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7973         'gdb_byte *'.
7974         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7975         'gdb_byte *'.
7976         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7977         * xstormy16-tdep.c (xstormy16_extract_return_value)
7978         (xstormy16_store_return_value): Change parameter type to
7979         'gdb_byte *'.  Adjust.
7980         (xstormy16_push_dummy_call): Use gdb_byte.
7981         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7982         (call0_analyze_prologue, execute_code): Use gdb_byte.
7983
7984 2013-04-19  Vladimir Kargov <kargov@gmail.com>
7985             Pedro Alves  <palves@redhat.com>
7986
7987         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7988         value contents.
7989
7990 2013-04-17  Doug Evans  <dje@google.com>
7991
7992         * dwarf2read.c (struct signatured_type): New member type.
7993         (struct attribute): Replace member signatured_type with signature.
7994         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7995         (read_call_site_scope): Call follow_die_ref instead of
7996         follow_die_ref_or_sig.
7997         (read_structure_type): Rewrite handling of signatured types.
7998         (read_enumeration_type): Ditto.
7999         (read_attribute_value): Update.
8000         (build_error_marker_type): New function.
8001         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
8002         Don't call error for bad types, just build an error marker type.
8003         (dump_die_shallow): Update.
8004         (follow_die_sig_1): Renamed from follow_die_sig.
8005         Don't call error for bad types, instead return NULL.
8006         (follow_die_sig): New function.
8007         (get_signatured_type, get_DW_AT_signature_type): New functions.
8008
8009 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
8010
8011         * aarch64-tdep.c (aarch64_write_pc): Removed.
8012         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8013         function.
8014
8015 2013-04-17  Yao Qi  <yao@codesourcery.com>
8016
8017         * top.c (print_gdb_configuration): Print configure-time
8018         parameter on using libbabeltrace or not.
8019
8020 2013-04-16  Pedro Alves  <palves@redhat.com>
8021
8022         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8023
8024 2013-04-16  Pedro Alves  <palves@redhat.com>
8025
8026         * common/glibc_thread_db.h: Update from upstream glibc
8027         (git 568035b7874a099087b77f7bba3e36a1173787b0).
8028
8029 2013-04-16  Pedro Alves  <palves@redhat.com>
8030
8031         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8032         * common/glibc_thread_db.h: ... this new file ...
8033         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8034
8035 2013-04-16  Will Newton  <will.newton@gmail.com>
8036             Pedro Alves  <palves@redhat.com>
8037
8038         PR build/11881
8039
8040         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8041         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8042         HAVE_THREAD_DB_H.
8043
8044 2013-04-16  Pedro Alves  <palves@redhat.com>
8045             Eli Zaretskii  <eliz@gnu.org>
8046
8047         * NEWS: Mention "set foo unlimited".
8048
8049 2013-04-15  Doug Evans  <dje@google.com>
8050
8051         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8052         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8053         (create_dwo_cu_reader): Renamed from
8054         create_dwo_debug_info_hash_table_reader.
8055         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8056         Remove support for multiple CUs in a DWO file.
8057         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8058
8059         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8060         instead of phex.
8061         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8062         (create_dwo_in_dwp): Ditto.
8063
8064 2013-04-15  Tom Tromey  <tromey@redhat.com>
8065
8066         * NEWS: Move recent entries into "since 7.6" section.
8067
8068 2013-04-15  Tom Tromey  <tromey@redhat.com>
8069
8070         PR c++/13588:
8071         * NEWS: Update.
8072         * break-catch-throw.c (struct exception_catchpoint)
8073         <exception_rx, pattern>: New fields.
8074         (fetch_probe_arguments, dtor_exception_catchpoint)
8075         (check_status_exception_catchpoint)
8076         (print_one_detail_exception_catchpoint): New functions.
8077         (handle_gnu_v3_exceptions): Add "except_rx" argument.
8078         Compile regular expression if needed.
8079         (extract_exception_regexp): New function.
8080         (catch_exception_command_1): Use extract_exception_regexp.
8081         (compute_exception): Use fetch_probe_arguments.
8082         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8083         and check_status fields.
8084         * cp-abi.c (cplus_typename_from_type_info): New function.
8085         * cp-abi.h (cplus_typename_from_type_info): Declare.
8086         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8087         * gdb_regex.h (compile_rx_or_error): Declare.
8088         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8089         comment.
8090         (init_gnuv3_ops): Set get_type_from_type_info field.
8091         * probe.c (compile_rx_or_error): Move...
8092         * utils.c (compile_rx_or_error): ... here.
8093
8094 2013-04-15  Tom Tromey  <tromey@redhat.com>
8095
8096         PR c++/15176:
8097         * NEWS: Update.
8098         * break-catch-throw.c (compute_exception): New function.
8099         (exception_funcs): New global.
8100         (_initialize_break_catch_throw): Create $_exception.
8101         * cp-abi.c (cplus_type_from_type_info): New function.
8102         * cp-abi.h (cplus_type_from_type_info): Declare.
8103         (struct cp_abi_ops) <get_type_from_type_info>: New field.
8104         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8105         (gnuv3_get_type_from_type_info): New functions.
8106         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8107
8108 2013-04-15  Tom Tromey  <tromey@redhat.com>
8109
8110         * break-catch-throw.c (struct exception_names): New.
8111         (exception_functions): Change type.
8112         (re_set_exception_catchpoint): Look for SDT probes.
8113
8114 2013-04-15  Tom Tromey  <tromey@redhat.com>
8115
8116         PR c++/10119:
8117         * break-catch-throw.c (exception_functions): New global.
8118         (gnu_v3_exception_catchpoint_ops): Move earlier.
8119         (struct exception_catchpoint): New.
8120         (classify_exception_breakpoint): Rewrite.
8121         (re_set_exception_catchpoint): New function.
8122         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
8123         Allocate a struct exception_catchpoint.
8124         (catch_exception_command_1): Update.
8125         (initialize_throw_catchpoint_ops): Set 're_set' method.
8126
8127 2013-04-15  Tom Tromey  <tromey@redhat.com>
8128
8129         * Makefile.in (SFILES): Add break-catch-throw.c
8130         (COMMON_OBS): Add break-catch-throw.o.
8131         * break-catch-throw.c: New file.
8132         * breakpoint.c: Move exception-catching code to new file.
8133         (ep_parse_optional_if_clause): No longer static.
8134         * breakpoint.h (ep_parse_optional_if_clause): Declare.
8135
8136 2013-04-15  Tom Tromey  <tromey@redhat.com>
8137
8138         PR c++/9065:
8139         * NEWS: Update.
8140         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8141         * c-exp.y (TYPEID): New token.
8142         (exp): Add new TYPEID productions.
8143         (ident_tokens): Add "typeid".
8144         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8145         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8146         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8147         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8148         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8149         case.
8150         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8151         (build_std_type_info_type, gnuv3_get_typeid_type)
8152         (gnuv3_get_typeid): New functions.
8153         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
8154         new fields on ABI object.
8155         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8156         * std-operator.def (OP_TYPEID): New.
8157
8158 2013-04-15  Tom Tromey  <tromey@redhat.com>
8159
8160         * elfread.c (elf_symtab_read): Install versioned symbol under
8161         unversioned name as well.
8162
8163 2013-04-15  Tom Tromey  <tromey@redhat.com>
8164
8165         PR c++/11990:
8166         * c-lang.c (cplus_language_defn): Use gdb_demangle.
8167         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8168         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8169         (gdb_demangle): New function.
8170         * cp-support.h (gdb_demangle): Declare.
8171         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8172         (dwarf2_name): Use gdb_demangle.
8173         * gdbtypes.c (check_stub_method): Use gdb_demangle.
8174         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8175         suffixes from name.
8176         (gnuv3_print_method_ptr): Use gdb_demangle.
8177         * jv-lang.c (java_demangle): Use gdb_demangle.
8178         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8179         * language.c (unk_lang_demangle): Use gdb_demangle.
8180         * symtab.c (symbol_find_demangled_name)
8181         (demangle_for_lookup): Use gdb_demangle.
8182
8183 2013-04-15  Tom Tromey  <tromey@redhat.com>
8184
8185         PR c++/12824:
8186         * NEWS: Update.
8187         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8188         New constant.
8189         (classify_exception_breakpoint): New function.
8190         (print_it_exception_catchpoint, print_one_exception_catchpoint)
8191         (print_mention_exception_catchpoint)
8192         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8193         (catch_exception_command_1): Handle "rethrow" catchpoint.
8194         (catch_rethrow_command): New function.
8195         (_initialize_breakpoint): Add "catch rethrow" command.
8196
8197 2013-04-15  Pierre Muller  <muller@sourceware.org>
8198
8199         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8200         set_gdbarch_write_pc as deprecated anymore.
8201
8202 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
8203
8204         * spu-tdep.c (spu_write_pc): Add empty line after local variable
8205         declarations.
8206
8207 2013-04-13  Yao Qi  <yao@codesourcery.com>
8208
8209         * ctf.c (_initialize_ctf): Include "completer.h".
8210         Call add_target_with_completer instead of add_target.
8211
8212 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8213
8214         Fix GDB regression related to PR binutils/14813.
8215         * jit.c (mem_bfd_iovec_close): Return 0 for success.
8216         * minidebug.c (lzma_close): Add return value comment.
8217         * remote.c (remote_bfd_iovec_close): Return 0 for success.
8218         * solib-spu.c (spu_bfd_iovec_close): Likewise.
8219         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8220
8221 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8222
8223         * config.in: Regenerate.
8224
8225 2013-04-12  Tom Tromey  <tromey@redhat.com>
8226
8227         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8228         const.
8229         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8230         (struct die_reader_specs) <buffer>: Likewise.
8231         (die_reader_func_ftype): Make 'info_ptr' const.
8232         (struct line_header) <include_dirs, statement_program_start,
8233         statement_program_end>: Now const.
8234         (struct file_entry) <name>: Likewise.
8235         (struct partial_die_info) <sibling>: Likewise.
8236         (struct dwarf_block) <data>: Likewise.
8237         (dwarf2_read_section): Remove cast.
8238         (dwarf2_get_section_info): Make 'bufp' const.
8239         (read_index_from_section): Constify.
8240         (dw2_get_file_names_reader): Make 'info_ptr' const.
8241         (dw2_get_primary_filename_reader): Likewise.
8242         (read_comp_unit_head): Make 'info_ptr' and return type const.
8243         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8244         Likewise.
8245         (read_abbrev_offset): Constify.
8246         (dwarf2_create_include_psymtab): Make 'name' const.
8247         (create_debug_types_hash_table): Update.
8248         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8249         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8250         Constify.
8251         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8252         (load_partial_comp_unit_reader): Make 'info_ptr' const.
8253         (read_comp_units_from_section): Constify.
8254         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8255         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8256         const.
8257         (dwarf2_compute_name, setup_type_unit_groups): Constify.
8258         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8259         (create_dwp_hash_table, dwarf2_ranges_read)
8260         (dwarf2_record_block_ranges): Constify.
8261         (read_die_and_children, read_die_and_siblings_1)
8262         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8263         const.
8264         (read_full_die_1, read_full_die): Make 'info_ptr' const.
8265         (abbrev_table_read_table): Constify.
8266         (load_partial_dies): Make 'info_ptr' const.
8267         (read_partial_die, read_attribute_value, read_attribute): Make
8268         'info_ptr' and return type const.
8269         (read_address, read_initial_length)
8270         (read_checked_initial_length_and_offset, read_offset)
8271         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8272         const.
8273         (read_direct_string): Make 'buf' and return type const.
8274         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8275         (read_indirect_string): Make return type const.
8276         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8277         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8278         'info_ptr' const.
8279         (read_str_index): Make return type const.
8280         (add_include_dir): Make 'include_dir' const.
8281         (add_file_name): Make 'name' const.
8282         (dwarf_decode_line_header): Constify.
8283         (psymtab_include_file_name): Make return type const.
8284         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8285         (dwarf2_start_subfile): Make 'filename' const.
8286         (dwarf2_const_value_attr): Make 'bytes' const.
8287         (read_signatured_type_reader): Make 'info_ptr' const.
8288         (decode_locdesc): Constify.
8289         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8290         const.
8291         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8292         'mac_end', and return type const.
8293         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8294         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8295         type const.
8296         (per_cu_header_read_in): Constify.
8297         * symfile.h (dwarf2_get_section_info): Update.
8298
8299 2013-04-12  Tom Tromey  <tromey@redhat.com>
8300
8301         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8302
8303 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
8304
8305         * NEWS: Mention "show configuration", --configuration.
8306         * top.c (print_gdb_configuration): New function, displays the
8307         details about GDB configure-time parameters.
8308         (print_gdb_version): Mention "show configuration".
8309         * cli/cli-cmds.c (show_configuration): New function.
8310         (_initialize_cli_cmds): Add the "show configuration" command.
8311         * main.c (captured_main) <print_configuration>: New static var.
8312         <long_options>: Use it.
8313         If --configuration was given, call print_gdb_configuration.
8314
8315 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8316             Pedro Alves  <palves@redhat.com>
8317
8318         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8319         (generated_files): Add gcore.
8320         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8321         HAVE_NATIVE_GCORE_HOST.
8322         (gcore): New.
8323         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8324         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8325         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8326         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8327         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8328         Add HAVE_NATIVE_GCORE_HOST.
8329         * configure: Regenerate.
8330         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8331         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
8332         AC_CONFIG_FILES for gcore.
8333         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
8334         gdb_have_gcore.
8335         * gdb_gcore.sh: Rename to ...
8336         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
8337         and GCORE_TRANSFORM_NAME substitutions.
8338
8339         Fix parsing tabs in ${gdb_target_obs}.
8340         * configure.tgt (gdb_have_gcore): Replace case with for and if.
8341
8342 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8343
8344         * remote.c (unpush_and_perror): Add output message final dot.
8345
8346 2013-04-11  Yao Qi  <yao@codesourcery.com>
8347
8348         * tracepoint.c (tfile_interp_line): Fit parameters line and
8349         utpp in one line.
8350
8351 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
8352
8353         * solib.c (solib_map_sections): Remove code overwriting
8354         SO->SO_NAME with the bfd's filename.
8355
8356 2013-04-10  Pedro Alves  <palves@redhat.com>
8357
8358         * cli/cli-decode.c (integer_unlimited_completer): New function.
8359         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8360         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8361         completer.
8362         * cli/cli-setshow.c: Include "cli/cli-utils.h".
8363         (is_unlimited_literal): New function.
8364         (do_set_command): Handle literal "unlimited" arguments.
8365         * frame.c (_initialize_frame) <set backtrace limit>: Document
8366         "unlimited".
8367         * printcmd.c (_initialize_printcmd) <set print
8368         max-symbolic-offset>: Add help text.
8369         * record-full.c (_initialize_record_full) <set record full
8370         insn-number-max>: Likewise.
8371         * record.c (_initialize_record) <set record
8372         instruction-history-size, set record function-call-history-size>:
8373         Add help text.
8374         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8375         help text.
8376         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8377         Likewise.
8378         * source.c (_initialize_source) <set listsize>: Add help text.
8379         * utils.c (initialize_utils) <set height, set width>: Likewise.
8380         <set pagination>: Mention "set height unlimited".
8381         * valprint.c (_initialize_valprint) <set print elements, set print
8382         repeats>: Document "unlimited".
8383
8384 2013-04-10  Pedro Alves  <palves@redhat.com>
8385
8386         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8387         instead of disconnect_tracing.
8388         * infcmd.c (detach_command, disconnect_command): Call
8389         query_if_trace_running.  Adjust.
8390         * top.c: Include "tracepoint.h".
8391         (quit_target): Delete.  Contents moved ...
8392         (quit_force): ... here.  Wrap each stage of teardown in
8393         TRY_CATCH.  Call disconnect_tracing before detaching.
8394
8395 2013-04-10  Hui Zhu  <hui@codesourcery.com>
8396             Yao Qi  <yao@codesourcery.com>
8397
8398         * configure.ac: Check libbabeltrace is installed.
8399         * config.in: Regenerate.
8400         * configure: Regenerate.
8401         * Makefile.in (LIBBABELTRACE): New.
8402         (CLIBS): Add LIBBABELTRACE.
8403         * ctf.c: Include "exec.h".
8404         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8405         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8406         (ctf_save_metadata_header): Define new type aliases in
8407         metadata.
8408         (ctf_write_header): Define event type "tsv_def" and "tp_def"
8409         in metadata.  Start a new faked packet for trace status.
8410         (ctf_write_status): Write trace status to CTF.
8411         (ctf_write_uploaded_tsv): Write TSV to CTF.
8412         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8413         (ctf_write_definition_end): End the faked packet.
8414
8415         (ctx, ctf_iter, trace_dirname): New.
8416         (start_pos): New variable.
8417         (ctf_destroy, ctf_open_dir, ctf_open): New.
8418         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8419         macros.
8420         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8421         (ctf_fetch_registers, ctf_xfer_partial): New.
8422         (ctf_get_trace_state_variable_value): New.
8423         (ctf_get_tpnum_from_frame_event): New.
8424         (ctf_get_traceframe_address): New.
8425         (ctf_trace_find, ctf_has_stack): New.
8426         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8427         (ctf_get_trace_status, ctf_read_status): New.
8428         (_initialize_ctf): New.
8429         * tracepoint.c (get_tracepoint_number): New
8430         (get_uploaded_tsv): Remove 'static'.
8431         (struct traceframe_info, trace_regblock_size): Move it to ...
8432         * tracepoint.h: ... here.
8433         (get_tracepoint_number): Declare it.
8434         (get_uploaded_tsv): Declare it.
8435
8436         * NEWS: Mention new configure option.
8437
8438 2013-04-10  Pedro Alves  <palves@redhat.com>
8439             Hui Zhu  <hui@codesourcery.com>
8440
8441         * breakpoint.c (dprintf_re_set): New.
8442         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8443         to dprintf_re_set.
8444
8445 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
8446
8447         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8448         Remove solib-svr4.o from the list.
8449
8450 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
8451
8452         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8453         Use gdb_assert_not_reached instead of invalid boolean expression.
8454
8455 2013-04-09  Pedro Alves  <palves@redhat.com>
8456
8457         * remote.c (unpush_and_perror): New function.
8458         (readchar, remote_serial_write): Use it.
8459
8460 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
8461
8462         * NEWS: Mention new btrace RSP packets.
8463
8464 2013-04-08  Tom Tromey  <tromey@redhat.com>
8465
8466         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8467         long.
8468
8469 2013-04-08  Tom Tromey  <tromey@redhat.com>
8470
8471         * maint.c (print_bfd_section_info): Print the section index.
8472         * symmisc.c (dump_msymbols): Print the section index.
8473
8474 2013-04-08  Tom Tromey  <tromey@redhat.com>
8475
8476         PR symtab/8424:
8477         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8478         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8479         * breakpoint.c (resolve_sal_pc): Update.
8480         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8481         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8482         (minsym_lookup_iterator_cb): Use it.
8483         (default_read_var_value): Update.
8484         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8485         Update.
8486         * infcmd.c (jump_command): Update.
8487         * linespec.c (minsym_found): Update.
8488         * maint.c (maintenance_translate_address): Update.
8489         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8490         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8491         * parse.c (write_exp_msymbol): Update.
8492         * printcmd.c (address_info): Update.
8493         * psymtab.c (find_pc_sect_psymbol): Update.
8494         (fixup_psymbol_section): Check SYMBOL_SECTION, not
8495         SYMBOL_OBJ_SECTION.
8496         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8497         Don't initialize SYMBOL_OBJ_SECTION.
8498         * spu-tdep.c (spu_catch_start): Update.
8499         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8500         * symmisc.c (dump_msymbols, print_symbol): Update.
8501         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
8502         how fallback section is computed.
8503         (fixup_symbol_section): Update.
8504         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8505         Update.
8506         (allocate_symbol, initialize_symbol, allocate_template_symbol):
8507         Initialize SYMBOL_SECTION.
8508         * symtab.h (struct general_symbol_info) <section>: Update comment.
8509         <obj_section>: Remove.
8510         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
8511         (SYMBOL_OBJFILE): New macro.
8512
8513 2013-04-08  Tom Tromey  <tromey@redhat.com>
8514
8515         * coffread.c (record_minimal_symbol): Update.
8516         * dbxread.c (record_minimal_symbol): Update.
8517         * elfread.c (record_minimal_symbol): Update.
8518         * machoread.c (macho_symtab_add_minsym): Update.
8519         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8520         Update.
8521         * minsyms.c (prim_record_minimal_symbol): Update.
8522         (prim_record_minimal_symbol_full): Remove 'bfd_section'
8523         argument.
8524         (prim_record_minimal_symbol_and_info): Likewise.
8525         * minsyms.h (prim_record_minimal_symbol_full)
8526         (prim_record_minimal_symbol_and_info): Update.
8527         * symtab.c (allocate_symbol, initialize_symbol)
8528         (allocate_template_symbol): Initialize SYMBOL_SECTION.
8529         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8530         Update.
8531
8532 2013-04-08  Tom Tromey  <tromey@redhat.com>
8533
8534         PR symtab/8423:
8535         * solib-som.c (som_solib_section_offsets): Use BFD section
8536         indices.  Set offsets for all sections.
8537         * somread.c (som_symtab_read): Compute BFD section for
8538         symbol.  Use prim_record_minimal_symbol_and_info.
8539         (som_symfile_read): Fix comment.
8540         (struct find_section_offset_arg): New.
8541         (find_section_offset, set_section_index): New functions.
8542         (som_symfile_offsets): Use set_section_index to compute
8543         section indices.
8544
8545 2013-04-08  Tom Tromey  <tromey@redhat.com>
8546
8547         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8548         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8549         gdb_bfd_section_index.
8550         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8551         New functions.
8552         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8553         Declare.
8554         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8555         Update.
8556         * objfiles.c (add_to_objfile_sections_full): New function.
8557         (add_to_objfile_sections): Use it.
8558         (build_section_table): Rewrite.
8559         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
8560         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8561         (struct objfile) <sections>: Update comment.
8562         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8563         is NULL.
8564         (ALL_OBJSECTIONS): Use it.
8565         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8566         * solib-frv.c (frv_relocate_main_executable): Update.
8567         * solib-target.c (solib_target_relocate_section_addresses):
8568         Use gdb_bfd_section_index.
8569         * symfile.c (build_section_addr_info_from_section_table):
8570         Use gdb_bfd_section_index.
8571         (build_section_addr_info_from_bfd, place_section): Likewise.
8572         * symtab.c (fixup_section): Update.
8573         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8574
8575 2013-04-08  Tom Tromey  <tromey@redhat.com>
8576
8577         * minsyms.h (struct bound_minimal_symbol): New.
8578         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8579         Remove objfile argument.
8580         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8581         Return bound_minimal_symbol.
8582         * minsyms.c (lookup_minimal_symbol_by_pc_1)
8583         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8584         Return bound_minimal_symbol.
8585         (in_gnu_ifunc_stub): Update.
8586         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8587         Remove 'objfile_p' argument.
8588         (lookup_solib_trampoline_symbol_by_pc): Update.
8589         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8590         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8591         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8592         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8593         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8594         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8595         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8596         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8597         stack.c, symtab.c, tui/tui-disasm.c: Update.
8598
8599 2013-04-08  Tom Tromey  <tromey@redhat.com>
8600
8601         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8602         Use symbol's obstack, not an objfile.
8603         * coffread.c (process_coff_symbol): Update.
8604         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8605         * jv-lang.c (add_class_symbol): Update.
8606         * mdebugread.c (new_symbol): Update.
8607         * minsyms.c (prim_record_minimal_symbol_full)
8608         (terminate_minimal_symbol_table): Update.
8609         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
8610         * stabsread.c (define_symbol, read_enum_type): Update.
8611         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8612         Handle Ada specially.
8613         (symbol_set_language): Add 'obstack' argument.
8614         (symbol_set_names): Update.
8615         (symbol_natural_name, symbol_demangled_name): Always use
8616         ada_decode_symbol.
8617         * symtab.h (struct general_symbol_info)
8618         <language_specific::obstack>: New field.
8619         <ada_mangled>: New field.
8620         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8621         (symbol_set_language): Update.
8622
8623 2013-04-08  Tom Tromey  <tromey@redhat.com>
8624
8625         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8626         Take an obstack, not an objfile.
8627         (symbol_set_names): Update.
8628         * symtab.h (symbol_set_demangled_name): Update.
8629
8630 2013-04-08  Tom Tromey  <tromey@redhat.com>
8631
8632         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8633         allocate_symbol.
8634         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8635         (read_func_scope): Call allocate_template_symbol.
8636         (new_symbol_full): Call allocate_symbol.
8637         * jit.c (finalize_symtab): Call allocate_symbol.
8638         * jv-lang.c (add_class_symbol): Call allocate_symbol.
8639         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8640         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8641         (common_block_end): Call allocate_symbol.
8642         * symtab.c (allocate_symbol, initialize_symbol)
8643         (allocate_template_symbol): New functions.
8644         * symtab.c (allocate_symbol, initialize_symbol)
8645         (allocate_template_symbol): Declare.
8646         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8647
8648 2013-04-08  Pedro Alves  <palves@redhat.com>
8649             Keith Seitz  <keiths@redhat.com>
8650
8651         * breakpoint.c (create_breakpoint): Rename
8652         "parse_condition_and_thread" parameter to "parse_arg".  Update
8653         describing comment.  If !PARSE_ARG, then error out if ARG is not
8654         the empty string after extracting the location.
8655         * breakpoint.h (create_breakpoint): Rename
8656         "parse_condition_and_thread" parameter to "parse_arg".
8657
8658 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
8659
8660         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8661
8662 2013-04-07  Yao Qi  <yao@codesourcery.com>
8663
8664         * remote.c (remote_trace_find): Change type of parameters 'addr1'
8665         and 'addr2' to CORE_ADDR.
8666         * target.c (update_current_target): Update.
8667         * target.h (struct target_ops) <to_trace_find>: Change parameter
8668         type to CORE_ADDR.
8669         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8670         'addr2' to CORE_ADDR.
8671         (tfile_trace_find): Likewise.
8672         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8673         Change local variable 'addr' to type CORE_ADDR.
8674         * tracepoint.h (tfind_1): Update declaration.
8675
8676 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
8677
8678         * windows-nat.c (windows_get_absolute_argv0): Move from here...
8679         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8680         Include main.h.
8681
8682         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8683         here...
8684         * main.h (windows_get_absolute_argv0): ...to here.
8685
8686 2013-04-05  Doug Evans  <dje@google.com>
8687
8688         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8689         (read_cutu_die_from_dwo): Add comments.
8690         (read_structure_type): Update comment.
8691         (read_enumeration_type, read_namespace_type): Update comment.
8692         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8693
8694 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8695
8696         Convert man pages to texinfo, new gdbinit.5 texinfo page.
8697         * Makefile.in (gdb.z): Remove.
8698         (install-only): Remove $(man1dir) and gdb.1 installation.
8699         * gdb.1: Remove.
8700
8701 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8702
8703         Fix compatibility with Linux kernel 3.8.3.
8704         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8705         to more inner block.  Remove parsing of NUMBER from outer block.
8706         Parse NUMBER only if KEYWORD has been identified.
8707
8708 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8709
8710         Fix variable name shadowing.
8711         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8712         filename to mapsfilename and update its uses.
8713
8714 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
8715
8716         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8717         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8718         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8719         details of the problem.
8720
8721 2013-04-04  Pedro Alves  <palves@redhat.com>
8722             Hui Zhu  <hui@codesourcery.com>
8723
8724         * breakpoint.c (validate_commands_for_breakpoint): If validating a
8725         tracepoint, reset its STEP_COUNT and call validate_actionline.
8726
8727 2013-04-03  Doug Evans  <dje@google.com>
8728
8729         * dwarf2read.c (read_die_and_siblings_1): Renamed from
8730         read_die_and_siblings.
8731         (read_die_and_siblings): New function.
8732         (read_cutu_die_from_dwo): Dump die if requested.
8733         (read_die_and_children): Call read_full_die_1 and
8734         read_die_and_siblings_1.
8735         (read_full_die): Dump die if requested.
8736
8737         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8738
8739         * dwarf2read.c (struct dwo_file): New member comp_dir.
8740         Rename member name to dwo_name.  All uses updated.
8741         (hash_dwo_file): Include comp_dir in computation.
8742         (eq_dwo_file): Ditto.
8743         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
8744         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8745
8746         * psymtab.c (read_psymtabs_with_fullname): Don't call
8747         psymtab_to_fullname if the basenames are different.
8748
8749 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8750
8751         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8752         New entry about "fullname" presence.
8753
8754 2013-04-03  Pedro Alves  <palves@redhat.com>
8755
8756         * NEWS: Mention x86_64/Cygwin as new native configuration.
8757
8758 2013-04-02  Doug Evans  <dje@google.com>
8759
8760         * dwarf2read.c (read_structure_type): Fix typo in comment.
8761
8762 2013-04-02  Pedro Alves  <palves@redhat.com>
8763
8764         * NEWS: Mention "set/show debug aarch64", "set/show debug
8765         coff-pe-read" and "set/show debug mach-o".
8766
8767 2013-04-02  Pedro Alves  <palves@redhat.com>
8768
8769         * NEWS: Mention "set/show remote trace-buffer-size-packet".
8770
8771 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
8772
8773         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8774         gdb_string.h is now in common/.
8775
8776 2013-04-02  Pedro Alves  <palves@redhat.com>
8777
8778         * NEWS: Move "set debug notification" and "set trace-buffer-size"
8779         under "New options".
8780
8781 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8782
8783         Revert this patch:
8784         PR gdb/15275
8785         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8786
8787 2013-04-02  Pedro Alves  <palves@redhat.com>
8788
8789         PR gdb/15275
8790
8791         * remote.c (send_interrupt_sequence): Use remote_serial_write.
8792         (remote_serial_write): New function.
8793         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8794
8795 2013-04-01  Jiong Wang  <jiwang@tilera.com>
8796
8797         * NEWS: Mention TILE-Gx in "New native configurations" and
8798         "New targets" sections.
8799
8800 2013-04-01  Doug Evans  <dje@google.com>
8801
8802         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8803         (process_enumeration_scope): Simplify.
8804
8805         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8806         type_unit_group ...
8807         (struct signatured_type): ... to here.
8808         (sig_type_ptr): New typedef.
8809         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
8810         out of union 't'.  All uses updated.
8811         (dw2_get_file_names_reader): Assert not called for a type unit.
8812         (dw2_get_file_names): Assert not called for a type unit or type
8813         unit group.
8814         (build_type_psymtabs_reader): Assert called for a type unit.
8815         (build_type_psymtab_dependencies): Assert called for a type unit group.
8816
8817         * dwarf2read.c (free_dwo_file): Add comment.
8818         (dwarf2_per_objfile_free): Unref dwp bfd.
8819
8820 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
8821
8822         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8823         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8824         (read_pe_exported_syms): Remove unused 'exportix'.
8825         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8826         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8827         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8828
8829 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
8830
8831         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8832         (print_it_watchpoint): Remove unused 'bl'.
8833         (say_where): Remove unused 'uiout'.
8834         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8835         (bkpt_breakpoint_hit): Remove unused 'b'.
8836         (internal_bkpt_print_it): Remove unused 'uiout'.
8837         * buildsym.c (augment_type_symtab): Remove unused 'i'.
8838
8839 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
8840
8841         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8842         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8843
8844 2013-03-29  Doug Evans  <dje@google.com>
8845
8846         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8847         Delete arg is_dwp.  All callers updated.
8848         (open_dwp_file): New function.
8849         (open_and_init_dwp_file): Call it.
8850         (get_dwp_file): New function.
8851         (lookup_dwo_cutu): Call it.
8852
8853         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8854         unnecessary, cleanup.
8855
8856         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8857
8858         * dwarf2read.c (read_cutu_die_from_dwo): New function.
8859         (lookup_dwo_unit): New function.
8860         (init_cutu_and_read_dies): Move DWO handling to new functions.
8861
8862         * dwarf2read.c (struct signatured_type): Tweak comment.
8863         (struct dwo_unit): Tweak comment.
8864         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
8865         (create_dwo_debug_info_hash_table): Tweak comment.
8866         (dwarf2_per_cu_offset_and_type): Tweak comment.
8867
8868         * dwarf2read.c (lookup_signatured_type): Remove complaint about
8869         missing .debug_types section.
8870
8871 2013-03-29  Yao Qi  <yao@codesourcery.com>
8872
8873         * corelow.c: Include "completer.h".
8874         (_initialize_corelow): Call add_target_with_completer with
8875         argument 'filename_completer'.
8876         * tracepoint.c: Likewise.
8877         * exec.c (_initialize_exec): Likewise.
8878         * target.c (add_target): Rename to ...
8879         (add_target_with_completer): ... this.  Call set_cmd_completer
8880         if parameter completer is not NULL.
8881         (add_target): New.
8882         * target.h: Include "command.h".
8883         (add_target_with_completer): Declare it.
8884
8885 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
8886
8887         * coffread.c (is_import_fixup_symbol): New function.
8888         (record_minimal_symbol): Use is_import_fixup_symbol to
8889         detect import fixup symbols, and discard them.
8890
8891 2013-03-28  Doug Evans  <dje@google.com>
8892
8893         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8894         types hash table until we know we need it.
8895
8896         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8897         index numbers.
8898
8899         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8900         All callers updated.
8901         (dw2_print_stats): Print #read CUs too.
8902         (dump_die_shallow): Print signatured types better.
8903
8904         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8905         info_or_types_section to section.  All uses updated.
8906         (struct dwo_unit): Ditto.
8907
8908 2013-03-28  Pedro Alves  <palves@redhat.com>
8909
8910         * NEWS (New options): New section.
8911         (New options): Mention set/show remote trace-status-packet.
8912         * remote.c (PACKET_qTStatus): New enumeration value.
8913         (remote_get_trace_status): Skip sending qTStatus if the packet is
8914         disabled.  Use packet_ok.
8915         (_initialize_remote): Register a configuration command for
8916         qTStatus packet.
8917
8918 2013-03-28  Doug Evans  <dje@google.com>
8919
8920         * symfile.c (find_separate_debug_file): Add comment.
8921         (terminate_after_last_dir_separator): Tweak comment.
8922
8923         * dwarf2read.c (create_partial_symtab): Add forward decl.
8924         (create_partial_symtab): Move to be closer to other psymtab functions.
8925         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8926
8927         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8928         (compute_symtab_includes): Remove unnecessary forward declaration.
8929         (die_needs_namespace): Add comment marking group of functions for
8930         dwarf2 name computation.
8931
8932         * typeprint.c (_initialize_typeprint): Improve type help text.
8933
8934         * python/python.c (finish_python_initialization): Provide suggestion
8935         for how to tell gdb to find its python files.
8936
8937 2013-03-28  Pedro Alves  <palves@redhat.com>
8938
8939         PR gdb/15294
8940
8941         * source.c (_initialize_source): Change back "set listsize" to an
8942         integer command.
8943
8944 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
8945
8946         PR gdb/15275
8947         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8948
8949 2013-03-27  Pedro Alves  <palves@redhat.com>
8950
8951         * top.c (history_size): Rename to ...
8952         (history_size_setshow_var): ... this.  Add comment.
8953         (show_commands): Use readline's 'history_length' instead of
8954         computing the history length by calling history_get in a loop.
8955         (set_history_size_command): Error out for sizes over INT_MAX.
8956         Restore previous history size on invalid size.
8957         (init_history): If HISTSIZE is negative, leave the history size as
8958         zero.  Add comments.
8959         (init_main): Adjust.
8960
8961 2013-03-27  Pedro Alves  <palves@redhat.com>
8962
8963         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8964         coff_pe_read" command to "set debug coff-pe-read".
8965
8966 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
8967
8968         * record.c (command_size_to_target_size): Fix size comparison.
8969         Change parameter type from pointer to integer to integer.
8970         Update all users.
8971
8972 2013-03-27  Pierre Muller  <muller@sourceware.org>
8973
8974         * windows-nat.c (handle_output_debug_string): Avoid typecast
8975         from integer of different size warning.
8976
8977 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
8978
8979         * windows-nat.c (handle_output_debug_string): Add empty line
8980         after local block variable definition.
8981
8982 2013-03-26  Pedro Alves  <palves@redhat.com>
8983
8984         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8985         (net_open): Make 'polls' local unsigned.
8986
8987 2013-03-26  Pedro Alves  <palves@redhat.com>
8988
8989         * remote.c (_initialize_remote): Make "set remoteaddresssize"
8990         a zuinteger command instead of uinteger.
8991
8992 2013-03-26  Pedro Alves  <palves@redhat.com>
8993
8994         * record-full.c (record_full_insn_num): Make it unsigned.
8995         (record_full_check_insn_num, record_full_message)
8996         (record_full_registers_change, record_full_xfer_partial): Remove
8997         record_full_insn_max_num check (it's always != 0).
8998         (record_full_info, record_full_restore): Use %u as format string.
8999         (): Use %u as format string.
9000         (set_record_full_insn_max_num): Remove record_full_insn_max_num
9001         check (it's always != 0).
9002
9003 2013-03-26  Pedro Alves  <palves@redhat.com>
9004
9005         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9006         and "set dcache size" commands zuinteger instead of uinteger.
9007
9008 2013-03-26  Pedro Alves  <palves@redhat.com>
9009
9010         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9011         command zuinteger instead of uinteger.
9012
9013 2013-03-26  Pedro Alves  <palves@redhat.com>
9014
9015         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9016         zuinteger instead of uinteger.
9017
9018 2013-03-26  Pedro Alves  <palves@redhat.com>
9019
9020         * record.c (record_insn_history_size_setshow_var)
9021         (record_call_history_size_setshow_var): New globals.
9022         (command_size_to_target_size): New function.
9023         (cmd_record_insn_history, cmd_record_call_history): Use
9024         command_size_to_target_size instead of cast.
9025         (validate_history_size, set_record_insn_history_size)
9026         (set_record_call_history_size): New functions.
9027         (_initialize_record): Install set_record_insn_history_size and
9028         set_record_call_history_size as "set" hooks of "set record
9029         instruction-history-size" and "set record
9030         function-call-history-size".
9031
9032 2013-03-26  Pedro Alves  <palves@redhat.com>
9033
9034         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9035         use with history_max_entries use.  Remove FIXME note.
9036
9037 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
9038
9039         * record-btrace.c (record_btrace_close): Call
9040         record_btrace_auto_disable.
9041
9042 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
9043
9044         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9045
9046 2013-03-25  Doug Evans  <dje@google.com>
9047
9048         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9049
9050 2013-03-25  Tom Tromey  <tromey@redhat.com>
9051
9052         PR symtab/11462:
9053         * c-exp.y (exp): Add new productions for destructors after '.' and
9054         '->'.
9055         (write_destructor_name): New function.
9056
9057 2013-03-25  Tom Tromey  <tromey@redhat.com>
9058
9059         PR c++/9197:
9060         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9061         value_struct_elt, not lookup_struct_elt_type.
9062         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9063         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9064         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9065
9066 2013-03-25  Yao Qi  <yao@codesourcery.com>
9067
9068         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9069         instead of '_mkdir'.
9070
9071 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
9072
9073         * windows-nat.c (windows_get_absolute_argv0): New function.
9074         * windows-nat.h: Add its prototype.
9075
9076         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9077         Use IS_DIR_SEPARATOR instead of looking for a character inside
9078         SLASH_STRING.  Include filenames.h.
9079         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9080         relocate_gdb_directory works when passed gdb_program_name.
9081         Include windows-nat.h.
9082
9083 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9084
9085         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9086         * remote.c (trace_error): Remove the special handling of '2'.
9087         (readchar) <SERIAL_EOF>
9088         (readchar) <SERIAL_ERROR>
9089         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9090         (remote_get_trace_status): Call throw_exception if EX is
9091         TARGET_CLOSE_ERROR.
9092         * utils.c (perror_with_name): Rename to ...
9093         (throw_perror_with_name): ... here.  New parameter errcode, describe it
9094         in the function comment.
9095         (perror_with_name): New function wrapper.
9096         * utils.h (enum errors): New stub declaration.
9097         (throw_perror_with_name): New declaration.
9098
9099 2013-03-22  Pedro Alves  <palves@redhat.com>
9100             Yao Qi  <yao@codesourcery.com>
9101             Mark Kettenis  <kettenis@gnu.org>
9102
9103         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9104         Don't let the user set the value to UINT_MAX directly.
9105         <var_integer>: Don't let the user set the value to INT_MAX
9106         directly.
9107
9108 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9109
9110         * remote.c (remote_unpush_target): New function.
9111         (remote_open_1): Remove two pop_target calls, update one comment, add
9112         comment to target_preopen call.  Replace pop_target call by
9113         remote_unpush_target call.
9114         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9115         pop_target calls by remote_unpush_target calls.
9116
9117 2013-03-22  Pedro Alves  <palves@redhat.com>
9118
9119         * linux-nat.c (linux_child_follow_fork): Don't call
9120         linux_enable_event_reporting.
9121         (linux_handle_extended_wait): Don't call
9122         linux_enable_event_reporting.
9123
9124 2013-03-22  Pedro Alves  <palves@redhat.com>
9125
9126         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9127         use it to rewrite the trampoline buffers with type gdb_byte[], and
9128         undefine the macro.  Remove char* cast.
9129
9130 2013-03-21  Doug Evans  <dje@google.com>
9131
9132         New commands "mt set per-command {space,time,symtab} {on,off}".
9133         * NEWS: Add entry.
9134         * event-top.c: #include "maint.h".
9135         * main.c: #include "maint.h".
9136         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9137         timeval-utils.h, maint.h, cli/cli-setshow.h.
9138         (per_command_time, per_command_space): New static globals.
9139         (per_command_symtab): New static global.
9140         (per_command_setlist, per_command_showlist): New static globals.
9141         (struct cmd_stats): Move here from utils.c.
9142         (set_per_command_time): Renamed from set_display_time in utils.c
9143         and moved here.  All callers updated.
9144         (set_per_command_space): Renamed from set_display_space in utils.c
9145         and moved here.  All callers updated.
9146         (count_symtabs_and_blocks): New function.
9147         (report_command_stats): Moved here from utils.c.  Add support for
9148         printing symtab stats.  Only print data if enabled before command
9149         executed.
9150         (make_command_stats_cleanup): Ditto.
9151         (sert_per_command_cmd, show_per_command_cmd): New functions.
9152         (_initialize_maint_cmds): Add new commands
9153         mt set per-command {space,time,symtab} {on,off}.
9154         * maint.h: New file.
9155         * top.c: #include "maint.h".
9156         * utils.c (reset_prompt_for_continue_wait_time): New function.
9157         (get_prompt_for_continue_wait_time): New function.
9158         * utils.h (reset_prompt_for_continue_wait_time): Declare
9159         (get_prompt_for_continue_wait_time): Declare.
9160         (make_command_stats_cleanup): Moved to maint.h.
9161         (set_display_time, set_display_space): Moved to maint.h and renamed
9162         to set_per_command_time, set_per_command_space.
9163         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9164         parse_binary_operation and made non-static.  Don't call error,
9165         just return an error marker.  All callers updated.
9166         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9167
9168 2013-03-21  Tom Tromey  <tromey@redhat.com>
9169
9170         * symfile.c (alloc_section_addr_info): Update header.  Don't set
9171         'num_sections' field.
9172         (build_section_addr_info_from_section_table): Set 'num_sections'.
9173         (build_section_addr_info_from_bfd): Likewise.
9174         (build_section_addr_info_from_objfile): Remove dead loop
9175         condition.
9176         (free_section_addr_info): Unconditionally call xfree.
9177         (relative_addr_info_to_section_offsets, addrs_section_sort)
9178         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9179         condition.
9180         (syms_from_objfile_1): Remove dead 'if' condition.  Check
9181         'num_sections'.
9182         (add_symbol_file_command): Set 'num_sections'.
9183         * symfile-mem.c (symbol_file_add_from_memory): Set
9184         'num_sections'.
9185         * somread.c (som_symfile_offsets): Remove dead loop condition.
9186         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9187         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9188
9189 2013-03-21  Tom Tromey  <tromey@redhat.com>
9190
9191         * tracepoint.h (decode_agent_options): Add 'trace_string'
9192         argument.
9193         * tracepoint.c (decode_agent_options): Add 'trace_string'
9194         argument.
9195         (validate_actionline): Update.
9196         (collect_symbol): Add 'trace_string' argument.
9197         (struct add_local_symbols_data) <trace_string>: New field.
9198         (do_collect_symbol): Update.
9199         (add_local_symbols): Add 'trace_string' argument.
9200         (encode_actions_1): Update.
9201         (trace_dump_actions): Update.
9202         * dwarf2loc.c (access_memory): Update.
9203         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9204         * ax-general.c (new_agent_expr): Update.
9205         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9206         (gen_trace_for_return_address): Add argument.
9207         (trace_kludge, trace_string_kludge): Remove.
9208         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9209         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9210         (gen_trace_for_var): Add 'trace_string' argument.
9211         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9212         (gen_printf, agent_eval_command_one): Update.
9213
9214 2013-03-21  Tom Tromey  <tromey@redhat.com>
9215
9216         PR exp/15109:
9217         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9218         Handle FILENAME token.
9219
9220 2013-03-21  Tom Tromey  <tromey@redhat.com>
9221
9222         * c-exp.y (YYPRINT): Define.
9223         (c_print_token): New function.
9224
9225 2013-03-21  Tom Tromey  <tromey@redhat.com>
9226
9227         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9228
9229 2013-03-21  Yao Qi  <yao@codesourcery.com>
9230
9231         * ctf.c: Include "gdb_stat.h".
9232         [USE_WIN32API]: New macro 'mkdir'.
9233         (ctf_start): Use permission bits macros if they are defined.
9234
9235 2013-03-20  Keith Seitz  <keiths@redhat.com>
9236
9237         * breakpoint.h (struct breakpoint): Add comment to
9238         extra_string indicating that this member is mallod'd.
9239         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9240
9241 2013-03-20  Pedro Alves  <palves@redhat.com>
9242
9243         PR gdb/15289
9244
9245         * cli/cli-setshow.c (do_set_command)
9246         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9247         the result of parsing the command argument.  Throw error if the
9248         value is greater than UINT_MAX.  Print the invalid value with
9249         plongest.
9250         <var_integer, var_zinteger>: Use LONGEST for variable holding the
9251         result of parsing the command argument.  Throw error if the value
9252         is greater than INT_MAX, not greater or equal.  Also throw error
9253         if the value is less than INT_MIN.  Print the invalid value with
9254         plongest.
9255         <var_zuinteger_unlimited>: Throw error if the value is greater
9256         than INT_MAX, not greater or equal.
9257         (do_show_command) <var_integer, var_zinteger,
9258         var_zuinteger_unlimited>: Use %d for printing int, not %u.
9259
9260 2013-03-20  Tom Tromey  <tromey@redhat.com>
9261
9262         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9263         if possible.
9264         * dwarf2read.c (read_func_scope): Remove old FIXME.
9265         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9266         not LOC_COMPUTED.
9267         * findvar.c (symbol_read_needs_frame, default_read_var_value):
9268         Unconditionally call via computed ops, if possible.
9269         * printcmd.c (address_info): Unconditionally call via computed ops,
9270         if possible.
9271         * stack.c (read_frame_arg): Unconditionally call via computed ops,
9272         if possible.
9273         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9274         * tracepoint.c (scope_info): Unconditionally call via computed ops,
9275         if possible.
9276
9277 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9278             Tom Tromey  <tromey@redhat.com>
9279
9280         PR symtab/8421:
9281         * coffread.c (coff_register_index): New global.
9282         (process_coff_symbol, coff_read_enum_type): Set
9283         SYMBOL_ACLASS_INDEX.
9284         (_initialize_coffread): Initialize new global.
9285         * dwarf2loc.c (locexpr_find_frame_base_location)
9286         (dwarf2_block_frame_base_locexpr_funcs)
9287         (loclist_find_frame_base_location)
9288         (dwarf2_block_frame_base_loclist_funcs): New.
9289         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9290         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9291         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9292         (dwarf2_block_frame_base_loclist_funcs): New.
9293         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9294         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9295         globals.
9296         (read_func_scope): Update.
9297         (fixup_go_packaging, mark_common_block_symbol_computed)
9298         (var_decode_location, new_symbol_full, dwarf2_const_value):
9299         Set SYMBOL_ACLASS_INDEX.
9300         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
9301         (_initialize_dwarf2_read): Initialize new globals.
9302         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9303         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9304         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9305         globals.
9306         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9307         (_initialize_mdebugread): Initialize new globals.
9308         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9309         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9310         (stab_register_index, stab_regparm_index): New globals.
9311         (define_symbol, read_enum_type, common_block_end): Set
9312         SYMBOL_ACLASS_INDEX.
9313         (_initialize_stabsread): Initialize new globals.
9314         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9315         globals.
9316         (MAX_SYMBOL_IMPLS): New define.
9317         (register_symbol_computed_impl, register_symbol_block_impl)
9318         (register_symbol_register_impl)
9319         (initialize_ordinary_address_classes): New functions.
9320         (_initialize_symtab): Call initialize_ordinary_address_classes.
9321         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9322         (struct symbol_impl): New.
9323         (SYMBOL_ACLASS_BITS): New define.
9324         (struct symbol) <aclass, ops>: Remove fields.
9325         <aclass_index>: New field.
9326         (symbol_impls): Declare.
9327         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9328         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9329         (register_symbol_computed_impl, register_symbol_block_impl)
9330         (register_symbol_register_impl): Declare.
9331         (struct symbol_computed_ops): Add location_has_loclist.
9332         (struct symbol_block_ops): New.
9333         (SYMBOL_BLOCK_OPS): New.
9334         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9335
9336 2013-03-20  Tom Tromey  <tromey@redhat.com>
9337
9338         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9339         (print_partial_symbols, recursively_search_psymtabs): Use
9340         PSYMBOL_CLASS.
9341
9342 2013-03-20  Pierre Muller  <muller@sourceware.org>
9343
9344         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9345         addtion, subtraction, multiplication and division binary operator.
9346
9347 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9348
9349         Code cleanup.
9350         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9351         * bsd-kvm.c (bsd_kvm_close): Likewise.
9352         * bsd-uthread.c (bsd_uthread_close): Likewise.
9353         * corelow.c (core_close): Likewise.
9354         (core_close_cleanup): Remove parameter quitting from a caller.
9355         * event-top.c (async_disconnect): Likewise.
9356         * exec.c (exec_close_1): Remove parameter quitting.
9357         * go32-nat.c (go32_close): Likewise.
9358         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
9359         parameter quitting from a caller.
9360         * mips-linux-nat.c (super_close): Remove parameter quitting from the
9361         variable.
9362         (mips_linux_close): Remove parameter quitting.  Remove parameter
9363         quitting from a caller.
9364         * monitor.c (monitor_close): Remove parameter quitting.
9365         * monitor.h (monitor_close): Likewise.
9366         * record-btrace.c (record_btrace_close): Likewise.
9367         * record-full.c (record_full_close): Likewise.
9368         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9369         it also from fprintf_unfiltered.
9370         * remote-mips.c (mips_close): Remove parameter quitting.
9371         (mips_detach): Remove parameter quitting from a caller.
9372         * remote-sim.c (gdbsim_close): Remove parameter quitting.
9373         (gdbsim_close): Remove duplicate function comment.  Remove parameter
9374         quitting and remove it also from printf_filtered.
9375         * remote.c (remote_close): Remove parameter quitting.
9376         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9377         * target.c (update_current_target): Remove parameter int from to_close
9378         de_fault.
9379         (push_target, unpush_target, pop_target): Remove parameter quitting from
9380         a caller.
9381         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9382         Remove parameter quitting from a caller.
9383         (target_preopen): Remove parameter quitting from a caller.
9384         (target_close): Remove parameter quitting.  Remove parameter quitting
9385         from a caller two times.  Remove parameter quitting also from
9386         fprintf_unfiltered.
9387         * target.h (struct target_ops): Remove parameter quitting and as int
9388         from fields to_xclose and to_close.
9389         (extern struct target_ops current_target):
9390         (target_close, pop_all_targets): Remove parameter quitting.  Update the
9391         comment.
9392         (pop_all_targets_above): Remove parameter quitting.
9393         * top.c (quit_target): Remove parameter quitting from a caller.
9394         * tracepoint.c (tfile_close): Remove parameter quitting.
9395         * windows-nat.c (windows_close): Remove parameter quitting.
9396
9397 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
9398
9399         * windows-nat.c (handle_output_debug_string): Replace call
9400         to string_to_core_addr with call to strtoull.
9401
9402 2013-03-20  Yao Qi  <yao@codesourcery.com>
9403
9404         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9405         and write it to CTF metadata.
9406
9407 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
9408
9409         * windows-nat.c (handle_output_debug_string): Change type of n to
9410         SIZE_T to avoid crash on 64 bit systems.
9411
9412 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
9413
9414         * python/python-internal.h (HAVE_SNPRINTF)
9415         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9416         about redefinition of snprintf by pyerrors.h.
9417
9418 2013-03-15  Steve Ellcey  <sellcey@mips.com>
9419
9420         * remote-sim.c (sim_command_completer): Make char arguments const.
9421
9422 2013-03-15  Tom Tromey  <tromey@redhat.com>
9423
9424         PR c++/15116:
9425         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9426
9427 2013-03-14  Tom Tromey  <tromey@redhat.com>
9428
9429         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9430         New fields.
9431         (get_file_crc): Move from symfile.c.
9432         (gdb_bfd_crc): New function.
9433         * gdb_bfd.h (gdb_bfd_crc): Declare.
9434         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9435         * symfile.c (get_file_crc): Move to gdb_bfd.c.
9436         (separate_debug_file_exists): Use gdb_bfd_crc.
9437
9438 2013-03-14  Tom Tromey  <tromey@redhat.com>
9439
9440         * symfile.c (get_debug_link_info): Remove.
9441         (find_separate_debug_file_by_debuglink): Use
9442         bfd_get_debug_link_info.
9443
9444 2013-03-14  Tom Tromey  <tromey@redhat.com>
9445
9446         * symtab.c (error_in_psymtab_expansion): New function.
9447         (lookup_symbol_aux_quick)
9448         (basic_lookup_transparent_type_quick): Remove "last resort"
9449         code.  Use error_in_psymtab_expansion.
9450
9451 2013-03-14  Doug Evans  <dje@google.com>
9452             Jan Kratochvil  <jan.kratochvil@redhat.com>
9453
9454         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9455         any successful compare_filenames_for_search or FILENAME_CMP.
9456         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9457         * symtab.c (iterate_over_some_symtabs): Likewise.
9458
9459 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9460
9461         * source.c (print_source_lines_base): Make a local copy of
9462         symtab_to_fullname.
9463
9464 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
9465             Jan Kratochvil  <jan.kratochvil@redhat.com>
9466
9467         * source.c (print_source_lines_base): Suppress "file" for TUI.
9468
9469 2013-03-14  Keith Seitz  <keiths@redhat.com>
9470             Alan Matsuoka  <alanm@redhat.com>
9471
9472         PR c++/15203
9473         PR c++/15210
9474         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9475         TYPE_CODE_METHOD.
9476         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9477         symbols.
9478
9479 2013-03-14  Yao Qi  <yao@codesourcery.com>
9480
9481         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9482         status to tfile if trace is stopped by command 'tstop'.
9483
9484 2013-03-14  Yao Qi  <yao@codesourcery.com>
9485
9486         * tracepoint.c (tfile_write_status): Write trace notes and user
9487         name into tfile if they are not NULL.
9488
9489 2013-03-14  Hui Zhu  <hui@codesourcery.com>
9490             Yao Qi  <yao@codesourcery.com>
9491
9492         * Makefile.in (REMOTE_OBS): Add ctf.o.
9493         (SFILES): Add ctf.c.
9494         (HFILES_NO_SRCDIR): Add ctf.h.
9495         * ctf.c, ctf.h: New files.
9496         * tracepoint.c: Include 'ctf.h'.
9497         (collect_pseudocommand): Remove static.
9498         (trace_save_command): Parse option "-ctf".
9499         Produce different trace file writers per option.
9500         Adjust output message.
9501         (trace_save_tfile, trace_save_ctf): New.
9502         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9503         * mi/mi-main.c: Include 'ctf.h'.
9504         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
9505         trace_save_tfile or trace_save_ctf.
9506         * NEWS: Mention these changes.
9507
9508 2013-03-14  Yao Qi  <yao@codesourcery.com>
9509
9510         * tracepoint.c (trace_file_writer_xfree): New.
9511         (struct tfile_writer_data): New.
9512         (tfile_dtor, tfile_can_target_save, tfile_start): New.
9513         (tfile_write_header, tfile_write_regblock_type): New.
9514         (tfile_write_status, tfile_write_uploaded_tsv): New.
9515         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9516         (tfile_write_raw_data, (tfile_end): New.
9517         (tfile_write_ops): New global variable.
9518         (TRACE_WRITE_R_BLOCK): New macro.
9519         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9520         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9521         (TRACE_WRITE_V_BLOCK): New macro.
9522         (trace_save): Add extra one parameter WRITER.  Make it static.
9523         Use WRITER to writer trace.
9524         (tfile_trace_file_writer_new): New.
9525         (trace_save_command): Caller update.
9526         (trace_save_tfile): Write trace data in TFILE format.
9527         * tracepoint.h (struct trace_frame_write_ops): New.
9528         (struct trace_file_write_ops): New.
9529         (struct trace_file_writer): New.
9530         (trace_save): Remove its declaration.
9531         (trace_save_tfile): Declare it.
9532         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9533         instead of trace_save.
9534
9535 2013-03-13  Pedro Alves  <palves@redhat.com>
9536
9537         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9538
9539 2013-03-13  Pedro Alves  <palves@redhat.com>
9540
9541         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9542         commented out code.
9543         * demangle.c (current_demangling_style_string): Make it const.
9544         (set_demangling_command): Assert the demangling style is known.
9545         Remove all handling of unknown styles.  Set
9546         'current_demangling_style_string' to an element of the
9547         demangling_style_names array.
9548         (set_demangling_style): Delete.
9549         (_initialize_demangler): Set current_demangling_style_string to the
9550         element of the demangling_style_names array that corresponds to
9551         the default demangling style.  Remove FIXME note.  Don't call
9552         set_demangling_style.
9553         * gdb-demangle.h (set_demangling_style): Remove declaration.
9554
9555 2013-03-13  Pedro Alves  <palves@redhat.com>
9556
9557         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9558         fields const.
9559         (ada_make_symbol_completion_list): Make "text0" parameter const.
9560         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9561         * breakpoint.c (condition_completer): Make "text" and "word"
9562         parameters const.  Adjust.
9563         (check_tracepoint_command): Adjust to validate_actionline
9564         prototype change.
9565         (catch_syscall_completer): Make "text" and "word" parameters
9566         const.
9567         * cli/cli-cmds.c (show_user): Make "comname" local const.
9568         (valid_command_p): Make "command" parameter const.
9569         (alias_command): Make "alias_prefix" and "command_prefix" locals
9570         const.
9571         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9572         (add_alias_cmd): Make "name" and "oldname" parameters const.
9573         Adjust.  No longer make copy of OLDNAME.
9574         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9575         (add_setshow_cmd_full, add_setshow_enum_cmd)
9576         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9577         (add_setshow_filename_cmd, add_setshow_string_cmd)
9578         (add_setshow_string_noescape_cmd)
9579         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9580         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9581         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9582         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9583         Make "name" parameter const.
9584         (help_cmd): Rename "command" parameter to "arg".  New const local
9585         "command".
9586         (find_cmd): Make "command" parameter const.
9587         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
9588         deprecated_cmd_warning prototype change.
9589         (undef_cmd_error): Make "cmdtype" parameter const.
9590         (lookup_cmd): Make "line" parameter const.
9591         (deprecated_cmd_warning): Change type of "text" parameter to
9592         pointer to const char, from pointer to pointer to char.  Adjust.
9593         (lookup_cmd_composition): Make "text" parameter const.
9594         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9595         parameters const.
9596         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9597         const.
9598         * cli/cli-script.c (validate_comname): Make "tem" local const.
9599         (define_command): New const local "tem_c".  Use it in calls to
9600         lookup_cmd.
9601         (document_command): Make "tem" and "comfull" locals const.
9602         (show_user_1): Make "prefix" and "name" parameters const.
9603         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9604         const.
9605         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9606         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9607         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9608         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9609         (complete_on_enum, add_setshow_enum_cmd)
9610         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9611         (add_setshow_filename_cmd, add_setshow_string_cmd)
9612         (add_setshow_string_noescape_cmd)
9613         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9614         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9615         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9616         Change prototypes, constifying strings.
9617         * completer.c (noop_completer, filename_completer): Make "text"
9618         and "prefix" parameters const.
9619         (location_completer, expression_completer)
9620         (complete_line_internal): Make "text" and "prefix" parameters
9621         const and adjust.
9622         (command_completer, signal_completer): Make "text" and "prefix"
9623         parameters const.
9624         * completer.h (noop_completer, filename_completer)
9625         (expression_completer, location_completer, command_completer)
9626         (signal_completer): Change prototypes.
9627         * corefile.c (complete_set_gnutarget): Make "text" and "word"
9628         parameters const.
9629         * cp-abi.c (cp_abi_completer): Likewise.
9630         * expression.h (parse_expression_for_completion): Change
9631         prototype.
9632         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9633         parameters const.
9634         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9635         * infrun.c (handle_completer): Make "text" and "word" parameters
9636         const.
9637         * interps.c (interpreter_completer): Make "text" and "word"
9638         parameters const.
9639         * language.h (struct language_defn)
9640         <la_make_symbol_completion_list>: Make "text" and "word"
9641         parameters const.
9642         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9643         (parse_exp_in_context): Rename to ...
9644         (parse_exp_in_context_1): ... this.
9645         (parse_exp_in_context): Reimplement, with const hack from
9646         parse_exp_1.
9647         (parse_expression_for_completion): Make "string" parameter const.
9648         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9649         to pointer to const char.  Adjust.
9650         (print_command_1): Make "exp" parameter const.
9651         (output_command): Rename to ...
9652         (output_command_const): ... this.  Make "exp" parameter const.
9653         (output_command): Reimplement.
9654         (x_command): Adjust.
9655         (display_command): Rename "exp" parameter to "arg".  New "exp"
9656         local, const version of "arg".
9657         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9658         "cmd_name" local const.
9659         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9660         call.
9661         (cmdpy_completer): Make "text" and "word" parameters const.
9662         (gdbpy_parse_command_name): Make "prefix_text2" local const.
9663         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9664         const.
9665         * remote.c (_initialize_remote): Make "cmd_name" local const.
9666         * symtab.c (language_search_unquoted_string): Make "text" and "p"
9667         parameters const.  Adjust.
9668         (completion_list_add_fields): Make "sym_text", "text" and "word"
9669         parameters const.
9670         (struct add_name_data) <sym_text, text, word>: Make fields const.
9671         (default_make_symbol_completion_list_break_on): Make "text" and
9672         "word" parameters const.  Adjust locals.
9673         (default_make_symbol_completion_list)
9674         (make_symbol_completion_list, make_symbol_completion_type)
9675         (make_symbol_completion_list_fn): Make "text" and "word"
9676         parameters const.
9677         (make_file_symbol_completion_list): Make "text", "word" and
9678         "srcfile" parameters const.  Adjust locals.
9679         (add_filename_to_list): Make "text" and "word" parameters const.
9680         (struct add_partial_filename_data) <text, word>: Make fields
9681         const.
9682         (make_source_files_completion_list): Make "text" and "word"
9683         parameters const.
9684         * symtab.h (default_make_symbol_completion_list_break_on)
9685         (default_make_symbol_completion_list, make_symbol_completion_list)
9686         (make_symbol_completion_type enum type_code)
9687         (make_symbol_completion_list_fn make_file_symbol_completion_list)
9688         (make_source_files_completion_list): Change prototype.
9689         * top.c (execute_command): Adjust to pass pointer to pointer to
9690         const char to lookup_cmd, and to deprecated_cmd_warning prototype
9691         change.
9692         (set_verbose): Make "cmdname" local const.
9693         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9694         and adjust.
9695         (validate_actionline): Make "line" parameter a pointer to const
9696         char, and adjust.
9697         (encode_actions_1): Make "action_exp" local const, and adjust.
9698         (encode_actions): Adjust.
9699         (replace_comma): Delete.
9700         (trace_dump_actions): Make "action_exp" and "next_comma" locals
9701         const, and adjust.  Don't frob the action string while splitting
9702         it at commas.  Instead, make a copy of each split substring in
9703         turn.
9704         (trace_dump_command): Adjust to validate_actionline prototype
9705         change.
9706         * tracepoint.h (decode_agent_options, decode_agent_options)
9707         (encode_actions, validate_actionline): Change prototypes.
9708         * valprint.h (output_command): Delete declaration.
9709         (output_command_const): Declare.
9710         * value.c (function_destroyer): Cast const away in xfree call.
9711
9712 2013-03-13  Pedro Alves  <palves@redhat.com>
9713
9714         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9715         rather than casting 'const char * const *' to 'const char **'.
9716         * ada-lex.l (processInt): Make "trailer" local const.  Remove
9717         'const char **' cast.
9718         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9719         locals, and use those as strtol output pointer, instead than doing
9720         invalid casts to from 'const char **' to 'char **'.
9721         (_initialize_demangle): Remove cast.
9722         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9723         locals, and use those as strtol output pointer, instead than doing
9724         invalid casts to from 'const char **' to 'char **'.
9725         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9726         casts.
9727         * stap-probe.c (stap_parse_register_operand)
9728         (stap_parse_single_operand): Likewise.
9729
9730 2013-03-13  Yao Qi  <yao@codesourcery.com>
9731
9732         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9733         the last matched 'V' blcok in trace frame.
9734
9735 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
9736
9737         * NEWS: Create a new section for the next release branch.
9738         Rename the section of the current branch, now that it has
9739         been cut.
9740
9741 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
9742
9743         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9744         * version.in: Bump version to 7.6.50.20130312-cvs.
9745
9746 2013-03-12  Keith Seitz  <keiths@redhat.com>
9747
9748         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9749         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9750         Remove temporary copy of input string.
9751         (mi_execute_command_wrapper): Make "cmd" const.
9752         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9753         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9754         Use const strings.
9755         (mi_parse): Make "cmd" const.
9756         Use const strings.
9757         * mi/mi-parse.h (mi_parse): Make "cmd" const.
9758
9759 2013-03-12  Keith Seitz  <keiths@redhat.com>
9760
9761         * ada-lang.c (ada_read_renaming_var_value): Pass const
9762         pointer to expression string to parse_exp_1.
9763         (create_excep_cond_exprs): Likewise.
9764         * ax-gdb.c (agent_eval_command_one): Likewise.
9765         (maint_agent_printf_command): Likewise.
9766         Constify much of the string handling/parsing.
9767         * breakpoint.c (set_breakpoint_condition): Pass const
9768         pointer to expression string to parse_exp_1.
9769         (update_watchpoint): Likewise.
9770         (parse_cmd_to_aexpr): Constify string handling.
9771         Pass const pointer to parse_exp_1.
9772         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9773         (find_condition_and_thread): Likewise.
9774         Make TOK const.
9775         (watch_command_1): Make "arg" const.
9776         Constify string handling.
9777         Copy the expression string instead of changing the input
9778         string.
9779         (update_breakpoint_location): Pass const pointer to
9780         parse_exp_1.
9781         * eval.c (parse_and_eval_address): Make "exp" const.
9782         (parse_to_comma_and_eval): Make "expp" const.
9783         (parse_and_eval): Make "exp" const.
9784         * expression.h (parse_expression): Make argument const.
9785         (parse_exp_1): Make first argument const.
9786         * findcmd.c (parse_find_args): Treat "args" as const.
9787         * linespec.c (parse_linespec): Pass const pointer to
9788         linespec_expression_to_pc.
9789         (linespec_expression_to_pc): Make "exp_ptr" const.
9790         * parse.c (parse_exp_1): Make "stringptr" const.
9791         Make a copy of the expression to pass to parse_exp_in_context until
9792         this whole interface can be constified.
9793         (parse_expression): Make "string" const.
9794         * printcmd.c (ui_printf): Treat "arg" as const.
9795         Handle const strings.
9796         * tracepoint.c (validate_actionline): Pass const pointer to
9797         all calls to parse_exp_1.
9798         (encode_actions_1): Likewise.
9799         * value.h (parse_to_comma_and_eval): Make argument const.
9800         (parse_and_eval_address): Likewise.
9801         (parse_and_eval): Likewise.
9802         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9803         (varobj_set_value): Likewise.
9804         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9805         constify string handling.
9806         Pass const pointers to parse_and_eval_address and
9807         parse_to_comman_and_eval.
9808         * cli/cli-utils.c (skip_to_space): Rename to ...
9809         (skip_to_space_const): ... this. Handle const strings.
9810         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9811         skip_to_space_const.
9812         (skip_to_space_const): Declare.
9813         * common/format.c (parse_format_string): Make "arg" const.
9814         Handle const strings.
9815         * common/format.h (parse_format_string): Make "arg" const.
9816         * gdbserver/ax.c (ax_printf): Make "format" const.
9817         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9818         of the expression string.
9819
9820 2013-03-12  Hui Zhu  <hui@codesourcery.com>
9821
9822         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9823
9824 2013-03-12  Yao Qi  <yao@codesourcery.com>
9825             Hui Zhu  <hui@codesourcery.com>
9826
9827         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9828         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9829         DW_OP_deref_size.
9830
9831 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
9832
9833         * ada-lex.l (rules): Only recognize 'thread' as a
9834         delimiter when followed by numerals, as for c-exp.y.
9835         Use new rewind_to_char function to rewind the input for
9836         expression-delimiting tokens.
9837         (rewind_to_char): New function.
9838
9839 2013-03-11  Pedro Alves  <palves@redhat.com>
9840             Jan Kratochvil  <jan.kratochvil@redhat.com>
9841
9842         * configure: Regenerate.
9843         * configure.ac (check dynamic export flag): Link python test with
9844         $PYTHON_LIBS.
9845
9846 2013-03-11  Doug Evans  <dje@google.com>
9847             Keith Seitz  <keiths@redhat.com>
9848
9849         * linespec.c (find_linespec_symbols): Call find_function_symbols
9850         first, and then call lookup_prefix_sym/find_method.
9851
9852 2013-03-11  Pedro Alves  <palves@redhat.com>
9853
9854         * charset.c (convert_between_encodings): Don't cast between
9855         different pointer to pointer types.  Instead, make the 'inp' local
9856         be of the type iconv expects.
9857         (wchar_iterate): Don't cast between different pointer to pointer
9858         types.  Instead, use new pointer local of the type iconv expects.
9859         * target.c (target_read_stralloc, target_fileio_read_stralloc):
9860         Add new local of type char pointer, and use it to get a
9861         char/string view of the byte buffer, instead of casting between
9862         pointer to pointer types.
9863
9864 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
9865
9866         * remote.c (remote_set_trace_buffer_size): Move != operator
9867         to the start of next line to fix an ARI warning.
9868
9869 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9870
9871         * NEWS: Add record changes.
9872
9873 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9874
9875         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9876         the instruction history disassembly.
9877         * disasm.c (dump_insns): Omit the pc prefix, if requested.
9878         * disasm.h (DISASSEMBLY_OMIT_PC): New.
9879
9880 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9881
9882         * Makefile.in (SFILES): Add record-btrace.c
9883         (COMMON_OBS): Add record-btrace.o
9884         * record-btrace.c: New.
9885         * objfiles.c: Include btrace.h.
9886         (free_objfile): call btrace_free_objfile.
9887
9888 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9889
9890         * target.c (target_call_history, target_call_history_from,
9891         target_call_history_range): New.
9892         * target.h (target_ops) <to_call_history, to_call_history_from,
9893         to_call_history_range>: New fields.
9894         (target_call_history, target_call_history_from,
9895         target_call_history_range): New declaration.
9896         * record.c (get_call_history_modifiers, cmd_record_call_history,
9897         record_call_history_size): New.
9898         (_initialize_record): Add the "record function-call-history" command.
9899         Add "set/show record function-call-history-size" commands.
9900         * record.h (record_print_flag): New.
9901
9902 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9903
9904         * target.h (target_ops) <to_insn_history, to_insn_history_from,
9905         to_insn_history_range>: New fields.
9906         (target_insn_history): New.
9907         (target_insn_history_from): New.
9908         (target_insn_history_range): New.
9909         * target.c (target_insn_history): New.
9910         (target_insn_history_from): New.
9911         (target_insn_history_range): New.
9912         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9913         (record_insn_history_size): New.
9914         (get_insn_number): New.
9915         (get_context_size): New.
9916         (no_chunk): New.
9917         (get_insn_history_modifiers): New.
9918         (cmd_record_insn_history): New.
9919         (_initialize_record): Add "set/show record instruction-history-size"
9920         command. Add "record instruction-history" command.
9921
9922 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9923
9924         * record.h (record_disconnect): New.
9925         (record_detach): New.
9926         (record_mourn_inferior): New.
9927         (record_kill): New.
9928         * record-full.c (record_disconnect, record_detach,
9929         record_mourn_inferior, record_kill): Move to...
9930         * record.c: ...here.
9931         (DEBUG): New.
9932         (record_stop): New.
9933         (record_unpush): New.
9934         (cmd_record_stop): Call record_stop. Replace unpush_target
9935         call with record_unpush call.
9936         (record_disconnect, record_detach): Assert that the target
9937         is of record stratum. Call record_unpush, record_stop, and
9938         DEBUG.
9939         (record_mourn_inferior, record_kill): Assert that the target
9940         is of record stratum. Call record_unpush and DEBUG.
9941
9942 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9943
9944         * record-full.h, record-full.c (record_memory_query): Rename
9945         to ...
9946         (record_full_memory_query): ...this. Update all users.
9947         (record_arch_list_add_reg): Rename to ...
9948         (record_full_arch_list_add_reg): ...this. Update all users.
9949         (record_arch_list_add_mem): Rename to ...
9950         (record_full_arch_list_add_mem): ...this. Update all users.
9951         (record_arch_list_add_end): Rename to ...
9952         (record_full_arch_list_add_end): ...this. Update all users.
9953         (record_gdb_operation_disable_set): Rename to ...
9954         (record_full_gdb_operation_disable_set): ...this.
9955         Update all users.
9956
9957 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
9958
9959         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9960         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9961         (RECORD_IS_REPLAY): Renamed to ...
9962         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9963         (RECORD_FILE_MAGIC): Renamed to ...
9964         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9965         (record_mem_entry): Renamed to ...
9966         (record_full_mem_entry): ... this. Updated all users.
9967         (record_reg_entry): Renamed to ...
9968         (record_full_reg_entry): ... this. Updated all users.
9969         (record_end_entry): Renamed to ...
9970         (record_full_end_entry): ... this. Updated all users.
9971         (record_type) <record_end, record_reg, record_mem>: Renamed
9972         to ...
9973         (record_full_type) <record_full_end, record_full_reg,
9974         record_full_mem>: ... this. Updated all users.
9975         (record_entry): Renamed to ...
9976         (record_full_entry): ... this. Updated all users.
9977         (record_core_buf_entry): Renamed to ...
9978         (record_full_core_buf_entry): ... this. Updated all users.
9979         (record_core_regbuf): Renamed to ...
9980         (record_full_core_regbuf): ... this. Updated all users.
9981         (record_core_start): Renamed to ...
9982         (record_full_core_start): ... this. Updated all users.
9983         (record_core_end): Renamed to ...
9984         (record_full_core_end): ... this. Updated all users.
9985         (record_core_buf_list): Renamed to ...
9986         (record_full_core_buf_list): ... this. Updated all users.
9987         (record_first): Renamed to ...
9988         (record_full_first): ... this. Updated all users.
9989         (record_list): Renamed to ...
9990         (record_full_list): ... this. Updated all users.
9991         (record_arch_list_head): Renamed to ...
9992         (record_full_arch_list_head): ... this. Updated all users.
9993         (record_arch_list_tail): Renamed to ...
9994         (record_full_arch_list_tail): ... this. Updated all users.
9995         (record_stop_at_limit): Renamed to ...
9996         (record_full_stop_at_limit): ... this. Updated all users.
9997         (record_insn_max_num): Renamed to ...
9998         (record_full_insn_max_num): ... this. Updated all users.
9999         (record_insn_num): Renamed to ...
10000         (record_full_insn_num): ... this. Updated all users.
10001         (record_insn_count): Renamed to ...
10002         (record_full_insn_count): ... this. Updated all users.
10003         (record_ops): Renamed to ...
10004         (record_full_ops): ... this. Updated all users.
10005         (record_core_ops): Renamed to ...
10006         (record_full_core_ops): ... this. Updated all users.
10007         (set_record_cmdlist): Renamed to ...
10008         (set_record_full_cmdlist): ... this. Updated all users.
10009         (show_record_cmdlist): Renamed to ...
10010         (show_record_full_cmdlist): ... this. Updated all users.
10011         (record_cmdlist): Renamed to ...
10012         (record_full_cmdlist): ... this. Updated all users.
10013         (record_beneath_to_resume_ops): Renamed to ...
10014         (record_full_beneath_to_resume_ops): ... this. Updated all users.
10015         (record_beneath_to_resume): Renamed to ...
10016         (record_full_beneath_to_resume): ... this. Updated all users.
10017         (record_beneath_to_wait_ops): Renamed to ...
10018         (record_full_beneath_to_wait_ops): ... this. Updated all users.
10019         (record_beneath_to_wait): Renamed to ...
10020         (record_full_beneath_to_wait): ... this. Updated all users.
10021         (record_beneath_to_store_registers_ops): Renamed to ...
10022         (record_full_beneath_to_store_registers_ops): ... this.
10023         Updated all users.
10024         (record_beneath_to_store_registers): Renamed to ...
10025         (record_full_beneath_to_store_registers): ... this.
10026         Updated all users.
10027         (record_beneath_to_xfer_partial_ops): Renamed to ...
10028         (record_full_beneath_to_xfer_partial_ops): ... this.
10029         Updated all users.
10030         (record_beneath_to_xfer_partial): Renamed to ...
10031         (record_full_beneath_to_xfer_partial): ... this.
10032         Updated all users.
10033         (record_beneath_to_insert_breakpoint): Renamed to ...
10034         (record_full_beneath_to_insert_breakpoint): ... this.
10035         Updated all users.
10036         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10037         (record_full_beneath_to_stopped_by_watchpoint): ... this.
10038         Updated all users.
10039         (record_beneath_to_stopped_data_address): Renamed to ...
10040         (record_full_beneath_to_stopped_data_address): ... this.
10041         Updated all users.
10042         (record_beneath_to_async): Renamed to ...
10043         (record_full_beneath_to_async): ... this. Updated all users.
10044         (record_goto_insn): Renamed to ...
10045         (record_full_goto_insn): ... this. Updated all users.
10046         (record_save): Renamed to ...
10047         (record_full_save): ... this. Updated all users.
10048         (record_reg_alloc): Renamed to ...
10049         (record_full_reg_alloc): ... this. Updated all users.
10050         (record_reg_release): Renamed to ...
10051         (record_full_reg_release): ... this. Updated all users.
10052         (record_mem_alloc): Renamed to ...
10053         (record_full_mem_alloc): ... this. Updated all users.
10054         (record_mem_release): Renamed to ...
10055         (record_full_mem_release): ... this. Updated all users.
10056         (record_end_alloc): Renamed to ...
10057         (record_full_end_alloc): ... this. Updated all users.
10058         (record_end_release): Renamed to ...
10059         (record_full_end_release): ... this. Updated all users.
10060         (record_entry_release): Renamed to ...
10061         (record_full_entry_release): ... this. Updated all users.
10062         (record_list_release): Renamed to ...
10063         (record_full_list_release): ... this. Updated all users.
10064         (record_list_release_following): Renamed to ...
10065         (record_full_list_release_following): ... this.
10066         Updated all users.
10067         (record_list_release_first): Renamed to ...
10068         (record_full_list_release_first): ... this. Updated all users.
10069         (record_arch_list_add): Renamed to ...
10070         (record_full_arch_list_add): ... this. Updated all users.
10071         (record_get_loc): Renamed to ...
10072         (record_full_get_loc): ... this. Updated all users.
10073         (record_check_insn_num): Renamed to ...
10074         (record_full_check_insn_num): ... this. Updated all users.
10075         (record_arch_list_cleanups): Renamed to ...
10076         (record_full_arch_list_cleanups): ... this. Updated all users.
10077         (record_message): Renamed to ...
10078         (record_full_message): ... this. Updated all users.
10079         (record_message_wrapper): Renamed to ...
10080         (record_full_message_wrapper): ... this. Updated all users.
10081         (record_message_wrapper_safe): Renamed to ...
10082         (record_full_message_wrapper_safe): ... this. Updated all users.
10083         (record_gdb_operation_disable): Renamed to ...
10084         (record_full_gdb_operation_disable): ... this. Updated all users.
10085         (record_hw_watchpoint): Renamed to ...
10086         (record_full_hw_watchpoint): ... this. Updated all users.
10087         (record_exec_insn): Renamed to ...
10088         (record_full_exec_insn): ... this. Updated all users.
10089         (record_restore): Renamed to ...
10090         (record_full_restore): ... this. Updated all users.
10091         (record_async_inferior_event_token): Renamed to ...
10092         (record_full_async_inferior_event_token): ... this.
10093         Updated all users.
10094         (record_async_inferior_event_handler): Renamed to ...
10095         (record_full_async_inferior_event_handler): ... this.
10096         Updated all users.
10097         (record_core_open_1): Renamed to ...
10098         (record_full_core_open_1): ... this. Updated all users.
10099         (record_open_1): Renamed to ...
10100         (record_full_open_1): ... this. Updated all users.
10101         (record_open): Renamed to ...
10102         (record_full_open): ... this. Updated all users.
10103         (record_close): Renamed to ...
10104         (record_full_close): ... this. Updated all users.
10105         (record_resume_step): Renamed to ...
10106         (record_full_resume_step): ... this. Updated all users.
10107         (record_resumed): Renamed to ...
10108         (record_full_resumed): ... this. Updated all users.
10109         (record_execution_dir): Renamed to ...
10110         (record_full_execution_dir): ... this. Updated all users.
10111         (record_resume): Renamed to ...
10112         (record_full_resume): ... this. Updated all users.
10113         (record_get_sig): Renamed to ...
10114         (record_full_get_sig): ... this. Updated all users.
10115         (record_sig_handler): Renamed to ...
10116         (record_full_sig_handler): ... this. Updated all users.
10117         (record_wait_cleanups): Renamed to ...
10118         (record_full_wait_cleanups): ... this. Updated all users.
10119         (record_wait_1): Renamed to ...
10120         (record_full_wait_1): ... this. Updated all users.
10121         (record_wait): Renamed to ...
10122         (record_full_wait): ... this. Updated all users.
10123         (record_stopped_by_watchpoint): Renamed to ...
10124         (record_full_stopped_by_watchpoint): ... this. Updated all users.
10125         (record_disconnect): Renamed to ...
10126         (record_full_disconnect): ... this. Updated all users.
10127         (record_detach): Renamed to ...
10128         (record_full_detach): ... this. Updated all users.
10129         (record_mourn_inferior): Renamed to ...
10130         (record_full_mourn_inferior): ... this. Updated all users.
10131         (record_kill): Renamed to ...
10132         (record_full_kill): ... this. Updated all users.
10133         (record_stopped_data_address): Renamed to ...
10134         (record_full_stopped_data_address): ... this. Updated all users.
10135         (record_registers_change): Renamed to ...
10136         (record_full_registers_change): ... this. Updated all users.
10137         (record_store_registers): Renamed to ...
10138         (record_full_store_registers): ... this. Updated all users.
10139         (record_xfer_partial): Renamed to ...
10140         (record_full_xfer_partial): ... this. Updated all users.
10141         (record_breakpoint): Renamed to ...
10142         (record_full_breakpoint): ... this. Updated all users.
10143         (record_breakpoint_p): Renamed to ...
10144         (record_full_breakpoint_p): ... this. Updated all users.
10145         (record_breakpoints): Renamed to ...
10146         (record_full_breakpoints): ... this. Updated all users.
10147         (record_sync_record_breakpoints): Renamed to ...
10148         (record_full_sync_record_breakpoints): ... this.
10149         Updated all users.
10150         (record_init_record_breakpoints): Renamed to ...
10151         (record_full_init_record_breakpoints): ... this.
10152         Updated all users.
10153         (record_insert_breakpoint): Renamed to ...
10154         (record_full_insert_breakpoint): ... this. Updated all users.
10155         (record_remove_breakpoint): Renamed to ...
10156         (record_full_remove_breakpoint): ... this. Updated all users.
10157         (record_can_execute_reverse): Renamed to ...
10158         (record_full_can_execute_reverse): ... this. Updated all users.
10159         (record_get_bookmark): Renamed to ...
10160         (record_full_get_bookmark): ... this. Updated all users.
10161         (record_goto_bookmark): Renamed to ...
10162         (record_full_goto_bookmark): ... this. Updated all users.
10163         (record_async): Renamed to ...
10164         (record_full_async): ... this. Updated all users.
10165         (record_can_async_p): Renamed to ...
10166         (record_full_can_async_p): ... this. Updated all users.
10167         (record_is_async_p): Renamed to ...
10168         (record_full_is_async_p): ... this. Updated all users.
10169         (record_execution_direction): Renamed to ...
10170         (record_full_execution_direction): ... this. Updated all users.
10171         (record_info): Renamed to ...
10172         (record_full_info): ... this. Updated all users.
10173         (record_delete): Renamed to ...
10174         (record_full_delete): ... this. Updated all users.
10175         (record_is_replaying): Renamed to ...
10176         (record_full_is_replaying): ... this. Updated all users.
10177         (record_goto_entry): Renamed to ...
10178         (record_full_goto_entry): ... this. Updated all users.
10179         (record_goto_begin): Renamed to ...
10180         (record_full_goto_begin): ... this. Updated all users.
10181         (record_goto_end): Renamed to ...
10182         (record_full_goto_end): ... this. Updated all users.
10183         (record_goto): Renamed to ...
10184         (record_full_goto): ... this. Updated all users.
10185         (init_record_ops): Renamed to ...
10186         (init_record_full_ops): ... this. Updated all users.
10187         (record_core_resume): Renamed to ...
10188         (record_full_core_resume): ... this. Updated all users.
10189         (record_core_kill): Renamed to ...
10190         (record_full_core_kill): ... this. Updated all users.
10191         (record_core_fetch_registers): Renamed to ...
10192         (record_full_core_fetch_registers): ... this. Updated all users.
10193         (record_core_prepare_to_store): Renamed to ...
10194         (record_full_core_prepare_to_store): ... this. Updated all users.
10195         (record_core_store_registers): Renamed to ...
10196         (record_full_core_store_registers): ... this. Updated all users.
10197         (record_core_xfer_partial): Renamed to ...
10198         (record_full_core_xfer_partial): ... this. Updated all users.
10199         (record_core_insert_breakpoint): Renamed to ...
10200         (record_full_core_insert_breakpoint): ... this. Updated all users.
10201         (record_core_remove_breakpoint): Renamed to ...
10202         (record_full_core_remove_breakpoint): ... this. Updated all users.
10203         (record_core_has_execution): Renamed to ...
10204         (record_full_core_has_execution): ... this. Updated all users.
10205         (init_record_core_ops): Renamed to ...
10206         (init_record_full_core_ops): ... this. Updated all users.
10207         (cmd_record_restore): Renamed to ...
10208         (cmd_record_full_restore): ... this. Updated all users.
10209         (record_save_cleanups): Renamed to ...
10210         (record_full_save_cleanups): ... this. Updated all users.
10211         (cmd_record_start): Renamed to ...
10212         (cmd_record_full_start): ... this. Updated all users.
10213         (set_record_insn_max_num): Renamed to ...
10214         (set_record_full_insn_max_num): ... this. Updated all users.
10215         (set_record_command): Renamed to ...
10216         (set_record_full_command): ... this. Updated all users.
10217         (show_record_command): Renamed to ...
10218         (show_record_full_command): ... this. Updated all users.
10219         (_initialize_record): Renamed to ...
10220         (_initialize_record_full): ... this. Updated all users.
10221
10222 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10223
10224         * record.h: Split into this and ...
10225         * record-full.h: ... this.
10226         * record.c: Split into this and ...
10227         * record-full.c: ... this.
10228         * target.h (target_ops): Add new fields to_info_record,
10229         to_save_record, to_delete_record, to_record_is_replaying,
10230         to_goto_record_begin, to_goto_record_end, to_goto_record.
10231         (target_info_record): New.
10232         (target_save_record): New.
10233         (target_supports_delete_record): New.
10234         (target_delete_record): New.
10235         (target_record_is_replaying): New.
10236         (target_goto_record_begin): New.
10237         (target_goto_record_end): New.
10238         (target_goto_record): New.
10239         * target.c (target_info_record): New.
10240         (target_save_record): New.
10241         (target_supports_delete_record): New.
10242         (target_delete_record): New.
10243         (target_record_is_replaying): New.
10244         (target_goto_record_begin): New.
10245         (target_goto_record_end): New.
10246         (target_goto_record): New.
10247         * record.h: Declare struct cmd_list_element.
10248         (record_cmdlist): New declaration.
10249         (set_record_cmdlist): New declaration.
10250         (show_record_cmdlist): New declaration.
10251         (info_record_cmdlist): New declaration.
10252         (cmd_record_goto): New declaration.
10253         * record.c: Remove unnecessary includes.
10254         Include inferior.h.
10255         (cmd_record_goto): Remove declaration.
10256         (record_cmdlist): Now extern. Initialize.
10257         (set_record_cmdlist): Now extern. Initialize.
10258         (show_record_cmdlist): Now extern. Initialize.
10259         (info_record_cmdlist): Now extern. Initialize.
10260         (find_record_target): New.
10261         (require_record_target): New.
10262         (cmd_record_start): Update.
10263         (cmd_record_delete): Remove target-specific code.
10264         Call target_delete_record.
10265         (cmd_record_stop): Unpush any record target.
10266         (set_record_insn_max_num): Move to record-full.c
10267         (set_record_command): Add comment.
10268         (show_record_command): Add comment.
10269         (info_record_command): Update comment.
10270         Remove target-specific code.
10271         Call the record target's to_info_record.
10272         (cmd_record_start): New.
10273         (cmd_record_goto): Now extern.
10274         Remove target-specific code.
10275         Call target_goto_begin,  target_goto_end, or target_goto.
10276         (_initialize_record): Move record target ops initialization to
10277         record-full.c.
10278         Change "record" command help text.
10279         Move "record restore", "record set", and "record show" commands to
10280         record-full.c.
10281         * Makefile.in (SFILES): Add record-full.c.
10282         (HFILES_NO_SRCDIR): Add record-full.h.
10283         (COMMON_OBS): Add record-full.o.
10284         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10285         * arm-tdep.c: Include record-full.h.
10286         * i386-linux-tdep.c: Include record-full.h instead of record.h.
10287         * i386-tdep.c: Include record-full.h.
10288         * infrun.c: Include record-full.h.
10289         * linux-record.c: Include record-full.h.
10290         * moxie-tdep.c: Include record-full.h.
10291         * record-full.c: Include record-full.h.
10292         Change module comment.
10293         (set_record_full_cmdlist): New.
10294         (show_record_full_cmdlist): New.
10295         (record_full_cmdlist): New.
10296         (record_goto_insn): New declaration.
10297         (record_save): New declaration.
10298         (record_check_insn_num): Change query string.
10299         (record_info): New.
10300         (record_delete): New.
10301         (record_is_replaying): New.
10302         (record_goto_entry): New.
10303         (record_goto_begin): New.
10304         (record_goto_end): New.
10305         (record_goto): New.
10306         (init_record_ops): Update.
10307         (init_record_core_ops): Update.
10308         (cmd_record_save): Rename to record_save. Remove target and arg checks.
10309         (cmd_record_start): New.
10310         (set_record_insn_max_num): Moved from record.c
10311         (set_record_full_command): New.
10312         (show_record_full_command): New.
10313         (_initialize_record_full): New.
10314
10315 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10316
10317         * target.h (add_deprecated_target_alias): New.
10318         * target.c (add_deprecated_target_alias): New.
10319
10320 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10321
10322         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10323         and signal.h.
10324         (linux_supports_btrace): Add kernel and
10325         cpuid check.
10326         (kernel_supports_btrace): New function.
10327         (cpu_supports_btrace): New function.
10328         (intel_supports_btrace): New function.
10329
10330 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10331
10332         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10333         * remote.c: Include btrace.h.
10334         (struct btrace_target_info): New struct.
10335         (remote_supports_btrace): New function.
10336         (send_Qbtrace): New function.
10337         (remote_enable_btrace): New function.
10338         (remote_disable_btrace): New function.
10339         (remote_teardown_btrace): New function.
10340         (remote_read_btrace): New function.
10341         (init_remote_ops): Add btrace ops.
10342         (enum <unnamed>): Add btrace packets.
10343         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10344         (_initialize_remote): Add packet configuration for branch tracing.
10345
10346 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10347
10348         * features/btrace.dtd: New file.
10349         * Makefile.in (XMLFILES): Add btrace.dtd.
10350         * btrace.h (parse_xml_btrace): New declaration.
10351         * btrace.c: Include xml-support.h.
10352         (parse_xml_btrace): New function.
10353         (parse_xml_btrace_block): New function.
10354         (block_attributes): New struct.
10355         (btrace_attributes): New struct.
10356         (btrace_children): New struct.
10357         (btrace_elements): New struct.
10358
10359 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10360
10361         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10362         (amd64_linux_enable_btrace): New.
10363         (amd64_linux_disable_btrace): New.
10364         (amd64_linux_teardown_btrace): New.
10365         (_initialize_amd64_linux_nat): Initialize btrace ops.
10366         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10367         (i386_linux_enable_btrace): New.
10368         (i386_linux_disable_btrace): New.
10369         (i386_linux_teardown_btrace): New.
10370         (_initialize_i386_linux_nat): Initialize btrace ops.
10371         * config/i386/linux.mh: Add linux-btrace.o.
10372         * config/i386/linux64.mh: Add linux-btrace.o.
10373
10374 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10375
10376         * common/linux_btrace.h: New file.
10377         * common/linux_btrace.c: New file.
10378         * Makefile.in (SFILES): Add btrace.c.
10379         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10380         (COMMON_OBS): Add btrace.o.
10381         (linux-btrace.o): New rule.
10382
10383 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10384
10385         * target.h: Include btrace.h.
10386         (struct target_ops) <to_supports_btrace, to_enable_btrace,
10387         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10388         * target.c (target_supports_btrace): New function.
10389         (target_enable_btrace): New function.
10390         (target_disable_btrace): New function.
10391         (target_teardown_btrace): New function.
10392         (target_read_btrace): New function.
10393         * btrace.h: New file.
10394         * btrace.c: New file.
10395         * Makefile.in: Add btrace.c.
10396         * gdbthread.h: Include btrace.h.
10397         (struct thread_info): Add btrace field.
10398         * thread.c: Include btrace.h.
10399         (clear_thread_inferior_resources): Call target_teardown_btrace.
10400         * common/btrace-common.h: New file.
10401
10402 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10403
10404         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10405         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10406         kill_status to outer block.
10407
10408 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10409
10410         Fix entry-values if the callee called a noreturn function.
10411         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10412         get_frame_address_in_block.  Add new comment.
10413
10414 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10415
10416         Fix entry-values in C++ across CUs.
10417         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10418         lookup_minimal_symbol.  Add a comment.
10419         * dwarf2read.c
10420         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10421         DW_AT_linkage_name.
10422
10423 2013-03-08  Yao Qi  <yao@codesourcery.com>
10424
10425         * tracepoint.c (_initialize_tracepoint): Indent the code.
10426
10427 2013-03-08  Pedro Alves  <palves@redhat.com>
10428
10429         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10430         (parse_find_args, find_command): Change type of pattern buffer
10431         locals to 'gdb_byte *'.
10432
10433 2013-03-08  Stan Shebs  <stan@codesourcery.com>
10434             Hafiz Abid Qadeer  <abidh@codesourcery.com>
10435
10436         * NEWS: Mention set and show trace-buffer-size commands.
10437         Mention new packet.
10438         * target.h (struct target_ops): New method
10439         to_set_trace_buffer_size.
10440         (target_set_trace_buffer_size): New macro.
10441         * target.c (update_current_target): Set up new method.
10442         * tracepoint.c (trace_buffer_size): New global.
10443         (start_tracing): Send it to the target.
10444         (set_trace_buffer_size): New function.
10445         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10446         * remote.c (remote_set_trace_buffer_size): New function.
10447         (_initialize_remote): Use it.
10448         (QTBuffer:size) New remote command.
10449         (PACKET_QTBuffer_size): New enum.
10450         (remote_protocol_features): Add an entry for
10451         PACKET_QTBuffer_size.
10452
10453 2013-03-08  Tom Tromey  <tromey@redhat.com>
10454
10455         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10456         variable.
10457
10458 2013-03-07  Pedro Alves  <palves@redhat.com>
10459
10460         * target.c (target_read_stralloc, target_fileio_read_alloc):
10461         *Cast pointer to 'gdb_byte *' in target call.
10462
10463 2013-03-07  Pedro Alves  <palves@redhat.com>
10464
10465         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10466         call.
10467
10468 2013-03-07  Keith Seitz  <keiths@redhat.com>
10469
10470         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10471         (trace_pass_command): Likewise.
10472         * cli/cli-cmds.c: Include cli/cli-utils.h.
10473         (source_command): Use skip-spaces.
10474         (disassemble_command): Likewise.
10475         * findcmd.c: Include cli/cli-utils.h.
10476         (parse_find_args): Use skip_spaces.
10477         * go32-nat.c: Include cli/cli-utils.h.
10478         (go32_sldt): Use skip_spaces.
10479         (go32_sgdt): Likewise.
10480         (go32_sidt): Likewise.
10481         (go32_pde): Likewise.
10482         (go32_pte): Likewise.
10483         (go32_pte_for_address): Likewise.
10484         * infcmd.c: Include cli/cli-utils.h.
10485         (registers_info): Use skip_spaces.
10486         * linux-tdep.c (read_mapping): Use skip_spaces_const.
10487         (linux_info_proc): Likewise.
10488         * linux-thread-db.c: Include cli/cli-utils.h.
10489         (info_auto_load_libthread_db): Use skip_spaces_const.
10490         * m32r-rom.c: Include cli/cli-utils.h.
10491         (m32r_upload_command): Use skip_spaces.
10492         * maint.c: Include cli/cli-utils.h.
10493         (maintenance_translate_address): Use skip_spaces.
10494         * mi/mi-parse.c: Include cli/cli-utils.h.
10495         (mi_parse_argv): Use skip_spaces.
10496         (mi_parse): Likewise.
10497         * minsyms.c: Include cli/cli-utils.h.
10498         (msymbol_hash_iw): Use skip_spaces_const.
10499         * objc-lang.c: Include cli/cli-utils.h.
10500         (parse_selector): Use skip_spaces.
10501         (parse_method): Likewise.
10502         * python/python.c: Include cli/cli-utils.h.
10503         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10504         (python_command)[HAVE_PYTHON]: Likewise.
10505         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10506         * remote-m32r-sdi.c: Include cli/cli-utils.h.
10507         (m32r_load): Use skip_spaces.
10508         * serial.c: Include cli/cli-utils.h.
10509         (serial_open): Use skip_spaces_const.
10510         * stack.c: Include cli/cli-utils.h.
10511         (parse_frame_specification_1): Use skip_spaces_const.
10512         * symfile.c: Include cli/cli-utils.h.
10513         (set_ext_lang_command): Use skip_spaces.
10514         * symtab.c: Include cli/cli-utils.h.
10515         (rbreak_command): Use skip_spaces.
10516         * thread.c (thread_name_command): Use skip_spaces.
10517         * tracepoint.c (validate_actionline): Use skip_spaces.
10518         (encode_actions_1): Likewise.
10519         (trace_find_range_command): Likewise.
10520         (trace_find_outside_command): Likewise.
10521         (trace_dump_actions): Likewise.
10522
10523 2013-03-07  Pedro Alves  <palves@redhat.com>
10524
10525         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10526         * expprint.c (print_subexp_standard): Likewise.
10527         * utils.c (host_char_to_target): Likewise.
10528         * valprint.c (generic_emit_char, generic_printstr): Likewise.
10529         * varobj.c (value_get_print_value): Change type of local to char*.
10530         Cast it gdb_byte * in call to language printer.
10531
10532 2013-03-07  Pedro Alves  <palves@redhat.com>
10533
10534         * charset.c (struct wchar_iterator) <input>: Change type to 'const
10535         gdb_byte *'.
10536         (make_wchar_iterator): Remove cast to char*.
10537         (wchar_iterate): Change type of local.
10538
10539 2013-03-07  Pedro Alves  <palves@redhat.com>
10540
10541         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10542         for 'regcache->register_status'.
10543
10544 2013-03-07  Pedro Alves  <palves@redhat.com>
10545
10546         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10547         int.
10548
10549 2013-03-07  Pedro Alves  <palves@redhat.com>
10550
10551         * stap-probe.c (handle_stap_probe): Add cast to char*.
10552
10553 2013-03-07  Pedro Alves  <palves@redhat.com>
10554
10555         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10556         RECORD_MSGRCV>: Pass a signed variable to
10557         regcache_raw_read_signed, instead of an unsigned one.
10558
10559 2013-03-07  Pedro Alves  <palves@redhat.com>
10560
10561         * remote-notif.c (notif_debug): Change type to int.
10562         * remote-notif.h (notif_debug): Likewise.
10563
10564 2013-03-07  Pedro Alves  <palves@redhat.com>
10565
10566         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10567
10568 2013-03-07  Pedro Alves  <palves@redhat.com>
10569
10570         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10571         * remote.h (hex2bin, bin2hex): ... here.
10572         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10573
10574 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
10575
10576         * utils.c (initialize_utils): Improve doc strings of "set/show
10577         width", "set/show height", and "set/show pagination".
10578
10579 2013-03-06  Keith Seitz  <keiths@redhat.com>
10580
10581         * ax-gdb.c (gen_printf): Make FORMAT const.
10582         * ax-gdb.h (gen_printf): Likewise.
10583         * ax-general.c (ax_string): Make STR const.
10584         * ax.h (ax_string): Likewise.
10585
10586 2013-03-06  Doug Evans  <dje@google.com>
10587
10588         * elfread.c (elf_symfile_read): Move debugging printf to more
10589         logical location.
10590
10591 2013-03-06  Pedro Alves  <palves@redhat.com>
10592
10593         * python/py-utils.c (target_string_to_unicode): Delete function.
10594         * python/python-internal.h (target_string_to_unicode): Delete
10595         declaration.
10596
10597 2013-03-06  Pierre Muller  <muller@sourceware.org>
10598
10599         * linespec.c (get_current_search_block): ARI fix, use (void)
10600         for empty parameter list.
10601
10602 2013-03-05  Doug Evans  <dje@google.com>
10603
10604         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10605         of old ada_lookup_symbol_list.  In !full_search case, don't
10606         search superblocks.
10607         (ada_lookup_symbol_list): Delete arg full_search, all callers
10608         updated.  Call ada_lookup_symbol_list_worker.
10609         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10610         * ada-lang.h (ada_lookup_symbol_list): Update.
10611         * language.h (language_defn): Update comment for
10612         la_iterate_over_symbols.
10613         * linespec.c (iterate_over_file_blocks): New function.
10614         (iterate_over_all_matching_symtabs): Call it.
10615         (lookup_prefix_sym): Ditto.
10616         (get_current_search_block): New function.
10617         (get_search_block): Delete.
10618         (find_label_symbols): Call get_current_search_block.
10619         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10620         * symtab.c (iterate_over_symbols): Don't search superblocks.
10621
10622 2013-03-05  Yao Qi  <yao@codesourcery.com>
10623
10624         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10625         parameter VAR's type from "unsigned int" to "int".
10626         * command.h (var_zuinteger_unlimited): Update its comments.
10627         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10628
10629 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
10630
10631         * NEWS: Mention new target x86_64-*-cygwin*.
10632
10633 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
10634
10635         * configure.host: Add x86_64-*-cygwin* as host.
10636         * configure.tgt: Add x86_64-*-cygwin* as target.
10637         * config/i386/cygwin64.mh: New file.
10638
10639 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10640
10641         * linespec.c (decode_line_2): Fix duplicate request off by two message.
10642
10643 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10644
10645         * linespec.c (struct linespec_canonical_name): New.
10646         (struct linespec_state): Change canonical_names type to it.
10647         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
10648         xrealloc element size.  Initialize the different CANONICAL fields.
10649         (canonical_to_fullform): New.
10650         (filter_results): Use it.  Add variables canonical, fullform and
10651         cleanup.
10652         (struct decode_line_2_item, decode_line_2_compare_items): New.
10653         (decode_line_2): Remove variables iter and item_names, add variables
10654         items and items_count.  Modify the code for these new variables.
10655
10656 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
10657
10658         * coff-pe-read.c (read_pe_exported_syms): Don't return without
10659         calling do_cleanup.
10660
10661 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
10662
10663         * tracepoint.c (build_traceframe_info): Add code for byte order.
10664
10665 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
10666
10667         * v850-tdep.c: (v850e2_register_name): Revise system register
10668         names to match current V850E2M architecture specifications.
10669         Update register number enum comments too.
10670
10671 2013-03-01  Jiong Wang  <jiwang@tilera.com>
10672             Pedro Alves  <palves@redhat.com>
10673
10674         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10675         to END_ADDR.
10676         (tilegx_skip_prologue): Limit prologue analysis to section end.
10677
10678 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10679
10680         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10681         use it.
10682
10683 2013-03-01  Pedro Alves  <palves@redhat.com>
10684
10685         Use gdb_byte for bytes from the program being debugged.
10686
10687         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10688         Change type of local 'buf' to gdb_byte.
10689         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10690         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10691         * cris-tdep.c (cris_sigcontext_addr)
10692         (cris_sigtramp_frame_unwind_cache): Likewise.
10693         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10694         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10695         Likewise.
10696         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10697         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10698         (hppa32_hpux_search_dummy_call_sequence)
10699         (hppa_hpux_supply_save_state): Likewise.
10700         * hppa-linux-tdep.c (insns_match_pattern)
10701         (hppa_linux_find_global_pointer): Likewise.
10702         * hppa-tdep.c (hppa_in_function_epilogue_p)
10703         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10704         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10705         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10706         (i386fbsd_collect_uthread): Likewise.
10707         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10708         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10709         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10710         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10711         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10712         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10713         (ia64_libunwind_frame_prev_register)
10714         (ia64_libunwind_sigtramp_frame_this_id)
10715         (ia64_find_global_pointer_from_dynamic_section)
10716         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10717         (ia64_unwind_pc): Likewise.
10718         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10719         * m68hc11-tdep.c (m68hc11_push_dummy_call)
10720         (m68hc11_extract_return_value): Likewise.
10721         * m68klinux-nat.c (fetch_register, store_register): Likewise.
10722         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10723         (mep_get_insn, mep_push_dummy_call): Likewise.
10724         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10725         (mips_linux_in_dynsym_stub): Likewise.
10726         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10727         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10728         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10729         to gdb_byte.
10730         * remote-mips.c (mips_set_register): Likewise.
10731         * remote-sim.c (gdbsim_fetch_register): Likewise.
10732         * score-tdep.c (score7_fetch_inst): Change type of parameter
10733         'memblock' and local 'buf' to gdb_byte.
10734         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10735         Change type of local 'buf' to gdb_byte.  Adjust.
10736         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10737         to gdb_byte**.
10738         (score7_analyze_prologue): Change type of 'memblock' and
10739         'memblock_ptr' locals to gdb_byte*.
10740         * sh64-tdep.c (sh64_extract_return_value)
10741         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10742         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10743         * solib-pa64.c (pa64_solib_create_inferior_hook)
10744         (pa64_open_symbol_file_object): Remove local 'buf'.
10745         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10746         (som_open_symbol_file_object): Likewise.
10747         * solib-spu.c (spu_current_sos): Likewise.
10748         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10749         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10750         (spu_store_registers): Likewise.
10751         * target.c (debug_print_register): Likewise.
10752         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10753         * xstormy16-tdep.c (xstormy16_store_return_value)
10754         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10755         (xstormy16_find_jmp_table_entry): Likewise.
10756
10757 2013-03-01  Jiong Wang  <jiwang@tilera.com>
10758
10759         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10760         (tilegx_gdbarch_init): Install it.
10761
10762 2013-02-28  Tom Tromey  <tromey@redhat.com>
10763
10764         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10765         PyLong_Check.
10766
10767 2013-02-28  Doug Evans  <dje@google.com>
10768
10769         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10770         * python/python.c (gdbpy_find_pc_line): Ditto.
10771
10772 2013-02-28  Tom Tromey  <tromey@redhat.com>
10773
10774         * contrib/excheck.py: New file.
10775         * contrib/exsummary.py: New file.
10776         * contrib/gcc-with-excheck: New file.
10777
10778 2013-02-28  Tom Tromey  <tromey@redhat.com>
10779
10780         * python/python.c (gdbpy_print_stack): Call begin_line and
10781         fprintf_filtered inside TRY_CATCH.
10782
10783 2013-02-28  Tom Tromey  <tromey@redhat.com>
10784
10785         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10786         inside TRY_CATCH.
10787
10788 2013-02-28  Tom Tromey  <tromey@redhat.com>
10789
10790         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10791         frame_object_to_frame_info inside TRY_CATCH.
10792
10793 2013-02-28  Tom Tromey  <tromey@redhat.com>
10794
10795         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10796         TRY_CATCH.
10797
10798 2013-02-28  Tom Tromey  <tromey@redhat.com>
10799
10800         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10801
10802 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
10803
10804         * windows-nat.c: Throughout, fix format strings and casts of
10805         printf-like functions to avoid type related warnings on all
10806         platforms.
10807         (handle_output_debug_string): Fetch context information address
10808         from debug string using string_to_core_addr.
10809
10810 2013-02-27  Jiong Wang  <jiwang@tilera.com>
10811
10812         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10813         * regformats/reg-tilegx32.dat: New.
10814
10815 2013-02-27  Jiong Wang  <jiwang@tilera.com>
10816
10817         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10818
10819 2013-02-27  Jiong Wang  <jiwang@tilera.com>
10820
10821         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10822
10823 2013-02-27  Yao Qi  <yao@codesourcery.com>
10824             Pedro Alves  <palves@redhat.com>
10825
10826         * tracepoint.c (tfile_trace_find): For tfind
10827         pc/tp/range/outside, look for the next trace frame instead of
10828         always starting from frame 0.
10829
10830 2013-02-26  Anthony Green  <green@moxielogic.com>
10831
10832         * configure.tgt: Add support for moxie-*-rtems* target.
10833
10834 2013-02-25  Pedro Alves  <palves@redhat.com>
10835
10836         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10837         warning text.
10838
10839 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10840
10841         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10842         if $fp is used as the virtual frame pointer.
10843
10844 2013-02-23  Alan Modra  <amodra@gmail.com>
10845
10846         * elfread.c (elf_symtab_read): Do not use udata.p here to find
10847         symbol size.
10848         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10849         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10850         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10851         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10852
10853 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
10854
10855         Code cleanup.
10856         * elfread.c (build_id_bfd_get): Make the return type const.
10857         (build_id_verify): Make the check parameter const.
10858         (build_id_to_debug_filename): Make the build_id parameter and variable
10859         data const.
10860         (find_separate_debug_file_by_buildid): Make the variable build_id const.
10861
10862 2013-02-21  Alan Modra  <amodra@gmail.com>
10863
10864         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10865
10866 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
10867
10868         Add a new method 'disassemble' to gdb.Architecture class.
10869         * python/py-arch.c (archpy_disassmble): Implementation of the
10870         new method gdb.Architecture.disassemble.
10871         (arch_object_methods): Add entry for the new method.
10872
10873 2013-02-20  Jiong Wang  <jiwang@tilera.com>
10874
10875         * MAINTAINERS (Write After Approval): Add myself to the list.
10876
10877 2013-02-19  Pedro Alves  <palves@redhat.com>
10878
10879         Garbage collect 'struct monitor_ops'::load_routine.
10880
10881         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10882         * monitor.c (monitor_load): No longer call
10883         current_monitor->load_routine.
10884         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10885         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10886         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10887
10888 2013-02-19  Pedro Alves  <palves@redhat.com>
10889
10890         PR gdb/15161
10891
10892         Harmonize with generic_load.
10893
10894         * monitor.c: Include "readline/readline.h".
10895         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
10896         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
10897         long/strtol for the 'load_offset' local.  Error out if no argument
10898         is given or if too many arguments are given.  Tilde expand the
10899         passed in file name.
10900
10901 2013-02-19  Kai Tietz  <ktietz@redhat.com>
10902
10903         PR gdb/15161
10904         * symfile.c (load_section_data): Change type of load_offset
10905         to CORE_ADDR.
10906         (generic_load): User strtoulst instead of strtoul for conversion
10907         of load_offset.
10908
10909 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10910
10911         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10912          for return address, "lr" register, saved on stack.
10913         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10914         after we invoke tilegx_analyze_prologue.
10915
10916 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10917
10918         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10919
10920 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10921
10922         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10923
10924 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10925
10926         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10927         (tilegx_write_pc): New function.
10928         (tilegx_cannot_reference_register): Return zero if REGNO
10929         is TILEGX_FAULTNUM_REGNUM.
10930         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10931         (tilegx_register_name): Add handling of "faultnum" register.
10932         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10933         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10934         handling of TILEGX_FAULTNUM_REGNUM.
10935         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10936
10937 2013-02-19  Jiong Wang  <jiwang@tilera.com>
10938
10939         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10940         should be aligned to 64bit.
10941
10942 2013-02-19  Kai Tietz  <ktietz@redhat.com>
10943
10944         * windows-nat.c (windows_xfer_memory): Fix debug-output
10945         for LLP64.
10946
10947 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
10948
10949         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10950         Don't check DSP register number if HAVE_DSP is not set.
10951
10952 2013-02-19  Alan Modra  <amodra@gmail.com>
10953
10954         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
10955         throughout file instead.
10956         (build_id_bfd_get): Update to use new elf_tdata build_id field.
10957         Don't xmalloc return value.
10958         (build_id_verify): Similarly.  Don't xfree.
10959         (build_id_to_debug_filename): Update.
10960         (find_separate_debug_file_by_buildid): Update, don't xfree.
10961
10962 2013-02-18  Tom Tromey  <tromey@redhat.com>
10963
10964         PR gdb/15102:
10965         * dwarf2read.c (read_subrange_type): Use result of
10966         'check_typedef'.
10967
10968 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10969
10970         * frame.c: Remove one extra white space after #include
10971         directive.
10972
10973 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10974
10975         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10976
10977 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10978
10979         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10980         and dir commands into an if block.
10981
10982 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
10983
10984         * python/py-breakpoint (struct pybp_code):  Use int instead of
10985         enum type_code.
10986
10987 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
10988             Hafiz Abid Qadeer  <abidh@codesourcery.com>
10989
10990         * NEWS: Mention new field "trace-file".
10991         * tracepoint.c (trace_status_mi): Output "trace-file" field.
10992         (tfile_open): Record the trace file's filename in the trace
10993         status.
10994         (tfile_files_info): Mention the name of the trace file.
10995         Check the "filename" field explicitely.
10996         (trace_status_command): Explicitely check "filename" field.
10997         (trace_find_command): Ditto.
10998         (trace_find_pc_command): Ditto.
10999         (trace_find_tracepoint_command): Ditto.
11000         (trace_find_line_command): Ditto.
11001         (trace_find_range_command): Ditto.
11002         (trace_find_outside_command): Ditto.
11003         * tracepoint.h (struct trace_status) <from_file>: Rename it
11004         to "filename" and make it hold the trace file's filename
11005         instead of a boolean.
11006         * remote.c (remote_get_trace_status): Initialize "filename"
11007         field with NULL instead of 0.
11008
11009 2013-02-15  Yao Qi  <yao@codesourcery.com>
11010
11011         * remote.c: Fix a typo.
11012
11013 2013-02-14  Pierre Muller  <muller@sourceware.org>
11014
11015         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11016
11017 2013-02-14  Pedro Alves  <palves@redhat.com>
11018
11019         * utils.c (savestring): Don't #undef it.  Move function to
11020         common/common-utils.c.
11021         * common/common-utils.c: Include gdb_string.h.
11022         (savestring): Move here from utils.c.
11023         * common/common-utils.h (savestring): Declare.
11024
11025 2013-02-14  Pedro Alves  <palves@redhat.com>
11026
11027         * utils.c (savestring): Rename parameter 'size' to 'len'.
11028
11029 2013-02-14  Pedro Alves  <palves@redhat.com>
11030             Yufeng Zhang  <yufeng.zhang@arm.com>
11031
11032         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11033         (aarch64_inferior_data, struct aarch64_inferior_data):
11034         Delete.
11035         (struct aarch64_process_info): New.
11036         (aarch64_process_list): New global.
11037         (aarch64_find_process_pid, aarch64_add_process)
11038         (aarch64_process_info_get): New functions.
11039         (aarch64_inferior_data_get): Delete.
11040         (aarch64_process_info_get): New function.
11041         (aarch64_forget_process): New function.
11042         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
11043         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11044         aarch64_get_debug_reg_state.
11045         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11046         instead of linux_nat_iterate_watchpoint_lwps.
11047         (aarch64_linux_new_fork): New function.
11048         (aarch64_linux_child_post_startup_inferior): Use
11049         aarch64_forget_process instead of aarch64_init_debug_reg_state.
11050         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11051         (aarch64_linux_remove_hw_breakpoint)
11052         (aarch64_handle_aligned_watchpoint)
11053         (aarch64_handle_unaligned_watchpoint)
11054         (aarch64_linux_insert_watchpoint)
11055         (aarch64_linux_remove_watchpoint)
11056         (aarch64_linux_stopped_data_address): Adjust to pass the current
11057         process id to aarch64_debug_reg_state.
11058         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11059         linux_nat_new_fork hook, and aarch64_forget_process as
11060         linux_nat_forget_process hook; remove the call to
11061         register_inferior_data_with_cleanup.
11062
11063 2013-02-14  Pedro Alves  <palves@redhat.com>
11064
11065         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11066         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11067         lval_memory.
11068
11069 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
11070             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11071
11072         * tracepoint.h (validate_trace_state_variable_name): Declare.
11073         * tracepoint.c (validate_trace_state_variable_name): New.
11074         (trace_variable_command): Parse the trace state variable's name
11075         without using parse_expression.  Do several validations.
11076         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11077         trace state variable's name with parse_expression.  Validate it.
11078
11079 2013-02-14  Yao Qi  <yao@codesourcery.com>
11080
11081         * infcmd.c (breakpoint_proceeded): Remove it.
11082
11083 2013-02-14  Yao Qi  <yao@codesourcery.com>
11084
11085         * tracepoint.c (end_actions_pseudocommand): Make it static.
11086         (while_stepping_pseudocommand): Likewise.
11087         * tracepoint.h (end_actions_pseudocommand): Remove the
11088         declaration.
11089         (while_stepping_pseudocommand): Likewise.
11090
11091 2013-02-14  Yao Qi  <yao@codesourcery.com>
11092
11093         * cli/cli-decode.c (help_cmd): Remove the declaration of
11094         "cmdlist".
11095         (help_all): Likewise.
11096
11097 2013-02-13  Pedro Alves  <palves@redhat.com>
11098
11099         * amd64-linux-nat.c (update_debug_registers_callback):
11100         Update comment.
11101         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11102         iterate_over_lwps.
11103         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11104         i386_debug_reg_state.
11105         (amd64_linux_new_fork): New function.
11106         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11107         linux_nat_new_fork hook, and i386_forget_process as
11108         linux_nat_forget_process hook.
11109         * i386-linux-nat.c (update_debug_registers_callback):
11110         Update comment.
11111         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11112         iterate_over_lwps.
11113         (i386_linux_prepare_to_resume): Pass the lwp's pid to
11114         i386_debug_reg_state.
11115         (i386_linux_new_fork): New function.
11116         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11117         linux_nat_new_fork hook, and i386_forget_process as
11118         linux_nat_forget_process hook.
11119         * i386-nat.c (i386_init_dregs): Delete.
11120         (i386_inferior_data, struct i386_inferior_data):
11121         Delete.
11122         (struct i386_process_info): New.
11123         (i386_process_list): New global.
11124         (i386_find_process_pid, i386_add_process, i386_process_info_get):
11125         New functions.
11126         (i386_inferior_data_get): Delete.
11127         (i386_process_info_get): New function.
11128         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
11129         (i386_forget_process): New function.
11130         (i386_cleanup_dregs): Rewrite.
11131         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11132         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11133         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11134         (i386_remove_hw_breakpoint): Adjust to pass the current process id
11135         to i386_debug_reg_state.
11136         (i386_use_watchpoints): Don't register inferior data.
11137         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11138         adjust comment.
11139         (i386_forget_process): Declare.
11140         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11141         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11142         New static globals.
11143         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11144         (add_initial_lwp): New, factored out from ...
11145         (add_lwp): ... this.  Don't check the number of lwps before
11146         calling linux_nat_new_thread.
11147         (linux_nat_iterate_watchpoint_lwps): Delete.
11148         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11149         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11150         forks and vforks.
11151         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11152         initial lwp.
11153         (linux_nat_kill, linux_nat_mourn_inferior): Call
11154         linux_nat_forget_process.
11155         (linux_nat_set_new_fork, linux_nat_set_forget_process)
11156         (linux_nat_forget_process): New functions.
11157         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11158         type.
11159         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11160         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11161         types.
11162         (linux_nat_set_new_fork, linux_nat_set_forget_process)
11163         (linux_nat_forget_process): New declarations.
11164
11165         * amd64fbsd-nat.c (super_mourn_inferior): New global.
11166         (amd64fbsd_mourn_inferior): New function.
11167         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11168         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11169
11170 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11171
11172         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11173         Adding _().
11174
11175 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11176
11177         * aarch64-linux-nat.c (debug_reg_change_callback)
11178         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11179         %s and phex().
11180
11181 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11182
11183         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11184         with LONGEST.
11185
11186 2013-02-13  Pedro Alves  <palves@redhat.com>
11187             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11188
11189         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11190
11191 2013-02-12  Tom Tromey  <tromey@redhat.com>
11192
11193         PR symtab/11464:
11194         * c-exp.y (lex_one_token): Initialize other fields of yylval on
11195         NAME return.
11196         (classify_inner_name): Remove 'first_name' argument, add
11197         'context'.  Remove unused variable.
11198         (yylex): Explicitly maintain the context type.  Exit loop earlier
11199         if NAME result is seen.
11200
11201 2013-02-12  Pedro Alves  <palves@redhat.com>
11202
11203         * amd64-darwin-tdep.c: Add (C) after Copyright.
11204         * cli/cli-cmds.h: Ditto.
11205         * cli/cli-decode.c: Ditto.
11206         * cli/cli-decode.h: Ditto.
11207         * cli/cli-dump.c: Ditto.
11208         * cli/cli-dump.h: Ditto.
11209         * cli/cli-interp.c: Ditto.
11210         * cli/cli-logging.c: Ditto.
11211         * cli/cli-script.c: Ditto.
11212         * cli/cli-script.h: Ditto.
11213         * cli/cli-setshow.c: Ditto.
11214         * cli/cli-setshow.h: Ditto.
11215         * cli/cli-utils.c: Ditto.
11216         * cli/cli-utils.h: Ditto.
11217         * config/alpha/nm-osf3.h: Ditto.
11218         * config/djgpp/djconfig.sh: Ditto.
11219         * config/i386/nm-fbsd.h: Ditto.
11220         * config/i386/nm-i386gnu.h: Ditto.
11221         * config/nm-linux.h: Ditto.
11222         * config/nm-nto.h: Ditto.
11223         * config/rs6000/nm-rs6000.h: Ditto.
11224         * config/sparc/nm-sol2.h: Ditto.
11225         * darwin-nat-info.c: Ditto.
11226         * dfp.c: Ditto.
11227         * dfp.h: Ditto.
11228         * gdb-demangle.h: Ditto.
11229         * i386-darwin-nat.c: Ditto.
11230         * i386-darwin-tdep.c: Ditto.
11231         * linux-fork.h: Ditto.
11232         * m32c-tdep.c: Ditto.
11233         * microblaze-linux-tdep.c: Ditto.
11234         * microblaze-rom.c: Ditto.
11235         * microblaze-tdep.c: Ditto.
11236         * microblaze-tdep.h: Ditto.
11237         * mips-linux-tdep.h: Ditto.
11238         * ppc-ravenscar-thread.c: Ditto.
11239         * ppc-ravenscar-thread.h: Ditto.
11240         * prologue-value.c: Ditto.
11241         * prologue-value.h: Ditto.
11242         * ravenscar-thread.c: Ditto.
11243         * ravenscar-thread.h: Ditto.
11244         * sparc-ravenscar-thread.c: Ditto.
11245         * sparc-ravenscar-thread.h: Ditto.
11246         * tilegx-linux-tdep.c: Ditto.
11247         * unwind_stop_reasons.def: Ditto.
11248         * windows-nat.h: Ditto.
11249         * xtensa-linux-tdep.c: Ditto.
11250         * xtensa-xtregs.c: Ditto.
11251         * regformats/regdat.sh: Ditto.
11252         * regformats/regdef.h: Ditto.
11253
11254 2013-02-12  Pedro Alves  <palves@redhat.com>
11255
11256         * break-catch-sig.c: Update copyright years.
11257
11258 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
11259
11260         Add support for a destructor for ui_out data and use it to
11261         provide a ui_out destructor.
11262         * ui-out.h: Declare the new ui_out destructor.
11263         (ui_out_impl): Add a field for data destructor in ui_out_impl.
11264         * ui-out.c (default_data_destroy): Add a default data destructor
11265         which does nothing.
11266         (default_ui_out_impl): Set the new data_destroy field to
11267         default_data_destroy
11268         (uo_data_destroy): Local function which invokes the data
11269         destructor if present.
11270         (clear_table): Local function which clears the table data of a
11271         ui_out object.
11272         (ui_out_destroy): Public function which frees a ui_out object.
11273         (ui_out_table_end): Use the new clear_table function.
11274         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11275         NULL.
11276         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11277         to NULL.
11278
11279 2013-02-11  Doug Evans  <dje@google.com>
11280
11281         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11282         (printf_decfloat): New function.  Broken out from ui_printf.
11283         Remove unnecessary code to shift the entire format string down.
11284         (printf_pointer): New function.
11285         (ui_printf): Code to print C strings, wide C strings, decfloats,
11286         and pointers moved to separate functions.
11287
11288 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
11289
11290         * valops.c (value_assign): Handling bitfield offset in
11291         `lval_internalvar_component' case.
11292
11293 2013-02-08  Doug Evans  <dje@google.com>
11294
11295         * common/format.c (parse_format_string): Fix whitespace.
11296
11297 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
11298
11299         * stack.c (return_command): Work around uninitialized variable
11300         warning.
11301
11302 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
11303
11304         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11305         number of the registers from 36 to 34.
11306
11307 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11308
11309         * NEWS: Mention new AArch64 native and target support.
11310
11311 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11312
11313         * MAINTAINERS (Write After Approval): Add myself.
11314
11315 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
11316             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11317             Nigel Stephens  <nigel.stephens@arm.com>
11318             Yufeng Zhang  <yufeng.zhang@arm.com>
11319
11320         * aarch64-linux-nat.c: New file.
11321         * config/aarch64/linux.mh: New file.
11322         * configure.host: Add AArch64.
11323         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11324
11325 2013-02-07  Doug Evans  <dje@google.com>
11326
11327         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11328         disassemble command.
11329
11330 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11331
11332         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11333         set_gdbarch_fetch_tls_load_module_address.
11334
11335 2013-02-06  David S. Miller  <davem@davemloft.net>
11336
11337         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11338         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11339         * value.c (struct_return_convention): New function.
11340         (using_struct_return): Implement in terms of struct_return_convention.
11341         * value.h (struct_return_convention): Declare.
11342         * stack.c (return_command): Allow successful overriding of the return
11343         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11344
11345 2013-02-06  Tom Tromey  <tromey@redhat.com>
11346
11347         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11348         outside of TRY_CATCH.
11349
11350 2013-02-06  Yao Qi  <yao@codesourcery.com>
11351
11352         * mi/mi-interp.c: Include "tracepoint.h".
11353         (mi_tsv_modified): Declare.
11354         (mi_tsv_created, mi_tsv_deleted): Update declaration.
11355         (mi_interpreter_init): Call observer_attach_tsv_modified.
11356         (mi_tsv_modified): New.
11357         (mi_tsv_created, mi_tsv_deleted): Update.
11358         * tracepoint.c (trace_variable_command): Call
11359         observer_notify_tsv_modified if the initial value of tsv is
11360         changed.
11361         (delete_trace_state_variable): Call
11362         observer_notify_tsv_deleted earlier.
11363         (trace_variable_command): Caller update.
11364         (create_tsv_from_upload): Likewise.
11365         * observer.sh: Declare "struct trace_state_variable".
11366
11367         * NEWS: Mention the new MI notification "=tsv-modified".
11368
11369 2013-02-05  Doug Evans  <dje@google.com>
11370
11371         * completer.c (location_completer): Fix typo in comment.
11372
11373 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
11374
11375         * breakpoint.c (add_location_to_breakpoint): Insert the location with
11376         ADDRESS sorted.
11377
11378 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11379
11380         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11381         Refactor if statement to avoid trailing || operator.
11382
11383 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
11384
11385         * NEWS: Add PowerPC FreeBSD as a new native configuration.
11386
11387 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
11388
11389         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11390         * configure.host: Add powerpc*-*-freebsd* target.
11391         * configure.tgt: Add target info for powerpc*-*-freebsd*.
11392         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11393         * config/powerpc/fbsd.mh: New file.
11394
11395 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
11396             Denys Vlasenko  <dvlasenk@redhat.com>
11397             Pedro Alves  <palves@redhat.com>
11398
11399         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11400         (struct elf_internal_linux_prpsinfo): Forward declare.
11401         * gdbarch.h, gdbarch.c: Regenerate.
11402         * linux-tdep.c: Include `cli/cli-utils.h'.
11403         (linux_fill_prpsinfo): New function.
11404         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
11405         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11406         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11407         depending on gdbarch pointer bitness.
11408         * ppc-linux-tdep.c: Include elf-bfd.h.
11409         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11410         on 32-bit.
11411
11412 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11413             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11414             Nigel Stephens  <nigel.stephens@arm.com>
11415             Yufeng Zhang  <yufeng.zhang@arm.com>
11416
11417         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11418
11419 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11420             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11421             Nigel Stephens  <nigel.stephens@arm.com>
11422             Yufeng Zhang  <yufeng.zhang@arm.com>
11423
11424         * aarch64-newlib-tdep.c: New file.
11425         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11426         aarch64*-*-elf.
11427         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11428         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11429         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11430         * osabi.c (gdb_osabi_names): Add "Newlib".
11431
11432 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11433             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11434             Nigel Stephens  <nigel.stephens@arm.com>
11435             Yufeng Zhang  <yufeng.zhang@arm.com>
11436
11437         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11438         (ALLDEPFILES): Add aarch64-linux-tdep.c.
11439         * aarch64-linux-tdep.c: New file.
11440         * aarch64-linux-tdep.h: New file.
11441         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11442         * configure.tgt: Add aarch64-none-linux-gnu.
11443
11444 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
11445             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11446             Nigel Stephens  <nigel.stephens@arm.com>
11447             Yufeng Zhang  <yufeng.zhang@arm.com>
11448
11449         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11450         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11451         (ALLDEPFILES): Add aarch64-tdep.c.
11452         * aarch64-tdep.c: New file.
11453         * aarch64-tdep.h: New file.
11454         * configure.tgt: Add AArch64.
11455         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11456         (aarch64-expedite): New definition.
11457         * features/aarch64-core.xml: New file.
11458         * features/aarch64-fpu.xml: New file.
11459         * features/aarch64-without-fpu.c: New file (generated).
11460         * features/aarch64-without-fpu.xml: New file.
11461         * features/aarch64.c: New file (generated).
11462         * features/aarch64.xml: New file.
11463         * regformats/aarch64-without-fpu.dat: New file (generated).
11464         * regformats/aarch64.dat: New file (generated).
11465
11466 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11467
11468         * contrib/expect-read1.c: New file.
11469         * contrib/expect-read1.sh: New file.
11470
11471 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11472
11473         * dwarf2read.c (file_file_name): New function with code from
11474         file_full_name.
11475         (file_full_name): Move most of the code to file_file_name.
11476         (macro_start_file): Rename variable full_name to file_name and use
11477         file_file_name for it.  Add comp_dir parameter to new_macro_table.
11478         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
11479         macro_source_file->filename access by macro_source_fullname call.
11480         * macroscope.c (_initialize_macroscope): Update the new_macro_table
11481         caller.
11482         * macrotab.c (struct macro_table): New field comp_dir.
11483         (macro_include): New variables link_fullname and source_fullname.
11484         Replace any macro_source_file->filename access by macro_source_fullname
11485         call.
11486         (macro_lookup_inclusion): Remove the partial filenames checking code.
11487         (check_for_redefinition): New variables source_fullname and
11488         found_key_fullname.  Replace any macro_source_file->filename access by
11489         macro_source_fullname call.
11490         (macro_undef): New variables source_fullname and key_fullname.  Replace
11491         any macro_source_file->filename access by macro_source_fullname call.
11492         (macro_lookup_definition): New variables retval and source_fullname.
11493         Replace any macro_source_file->filename access by macro_source_fullname
11494         call.
11495         (foreach_macro): New variable key_fullname.  Replace any
11496         macro_source_file->filename access by macro_source_fullname call.
11497         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
11498         macro_source_file->filename access by macro_source_fullname call.
11499         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
11500         (macro_source_fullname): New function.
11501         * macrotab.h (struct macro_source_file): Extent the filename field
11502         comment.
11503         (new_macro_table): New parameter comp_dir, add a comment for it.
11504         (macro_source_fullname): new declaration.
11505
11506 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11507
11508         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11509         this_real_name to outer block.  Use it also for
11510         compare_filenames_for_search.
11511         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
11512         with dw2_get_real_path for file_matcher, considering also
11513         BASENAMES_MAY_DIFFER.
11514         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11515
11516 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11517
11518         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11519         to the file_matcher parameter.  Pass 0 to it.
11520         (dwarf2_create_include_psymtab): Copy also DIRNAME.
11521         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11522         NULL psymtab_to_fullname result.
11523         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
11524         an expected filename instead.
11525         (expand_symtabs_matching_via_partial): Add basenames parameter to the
11526         file_matcher parameter.  Call also psymtab_to_fullname, after newly
11527         considering BASENAMES_MAY_DIFFER.
11528         * source.c (rewrite_source_path): Remove static.
11529         * source.h (rewrite_source_path): New declaration.
11530         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11531         the expand_symtabs_matching field.  Comment it.
11532         * symtab.c (file_matches): New function comment.  Add parameter
11533         basenames, implement it.
11534         (search_symbols_file_matches): Add basenames parameter.  Update the
11535         file_matches caller.
11536         (search_symbols): Match FILES also against symtab_to_fullname.
11537         Optimize it for BASENAMES_MAY_DIFFER.
11538
11539 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11540
11541         * source.c (print_source_lines_base): Print for TUI also "fullname".
11542         * tui/tui-data.c (init_content_element): Change tui_locator_element
11543         field to full_name.
11544         * tui/tui-data.h (struct tui_locator_element): Likewise.
11545         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11546         tui_update_locator_filename calls to tui_update_locator_fullname.
11547         Replace symtab->filename refererence by symtab_to_fullname call.
11548         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11549         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11550         field to full_name.  Replace symtab->filename refererence by
11551         symtab_to_fullname call.
11552         (tui_show_symtab_source): Rename parameter to fullname.  Change
11553         tui_locator_element field to full_name.
11554         * tui/tui-stack.c: Include source.h.
11555         (tui_set_locator_filename): Rename the declaration to ...
11556         (tui_set_locator_fullname): ... here.  Rename its parameter to
11557         fullname, updates its comment.
11558         (tui_set_locator_info): Rename its parameter to fullname.
11559         (tui_set_locator_filename): Rename the definition to ...
11560         (tui_set_locator_fullname): ... here.  Rename its parameter to
11561         fullname, updates its comment.  Change tui_locator_element field to
11562         full_name.
11563         (tui_set_locator_info): Rename its parameter to fullname.
11564         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11565         (tui_update_locator_filename): Rename to ...
11566         (tui_update_locator_fullname): ... here. Rename callee to
11567         tui_set_locator_fullname.
11568         (tui_show_frame_info): Replace symtab->filename refererence by
11569         symtab_to_fullname call.
11570         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11571         (tui_update_locator_fullname): ... here.
11572         * tui/tui-winsource.c (tui_display_main): Rename the callee to
11573         tui_update_locator_fullname.  Replace symtab->filename refererence by
11574         symtab_to_fullname call.
11575         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11576         Rename the callee to tui_update_locator_fullname.
11577         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11578
11579 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11580
11581         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11582         by symtab_to_filename_for_display calls.
11583         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11584         (clear_command): New variable sal_fullname, initialize it.  Replace
11585         compare_filenames_for_search by filename_cmp with sal_fullname.
11586         (say_where, update_static_tracepoint): Replace symtab->filename
11587         refererences by symtab_to_filename_for_display calls.
11588         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11589         Likewise.
11590         * dwarf2read.c: Include source.h.
11591         (fixup_go_packaging): Replace symtab->filename refererences by
11592         symtab_to_filename_for_display calls.
11593         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11594         Replace symtab->filename refererences by symtab_to_filename_for_display
11595         calls.
11596         (create_sals_line_offset, convert_linespec_to_sals): New variable
11597         fullname, initialize it, replace symtab->filename reference by the
11598         variable.
11599         * linux-fork.c: Include source.h.
11600         (info_checkpoints_command): Replace symtab->filename refererences by
11601         symtab_to_filename_for_display calls.
11602         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11603         by symtab_to_filename_for_display calls.
11604         * mdebugread.c: Include source.h.
11605         (psymtab_to_symtab_1): Replace symtab->filename refererences by
11606         symtab_to_filename_for_display calls.
11607         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11608         (mi_cmd_file_list_exec_source_files): Likewise.
11609         * printcmd.c: Include source.h.
11610         (build_address_symbolic): Replace symtab->filename refererences by
11611         symtab_to_filename_for_display calls.
11612         * psymtab.c (partial_map_symtabs_matching_filename)
11613         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11614         with psymtab_to_fullname.
11615         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11616         by symtab_to_filename_for_display calls.
11617         (stpy_get_filename): New variable filename, initialize it, use instead
11618         of symtab->filename refererences.
11619         (salpy_str): Make variable filename const char *.  Replace
11620         symtab->filename refererences by symtab_to_filename_for_display calls.
11621         * skip.c: Include source.h and filenames.h.
11622         (skip_file_command): Remove const from the symtab variable.  Replace
11623         symtab->filename refererences by symtab_to_fullname call.
11624         (function_name_is_marked_for_skip): New variables searched_for_fullname
11625         and fullname.  Use them to search also with symtab's fullname.
11626         * source.c (find_source_lines): Replace symtab->filename refererences
11627         by symtab_to_filename_for_display calls.
11628         (print_source_lines_base): New variable filename, use it instead of
11629         symtab->filename.  Replace symtab->filename refererences by
11630         symtab_to_filename_for_display calls.
11631         (line_info, forward_search_command): Replace symtab->filename
11632         refererences by symtab_to_filename_for_display calls.
11633         (reverse_search_command): Replace symtab->filename refererences by
11634         symtab_to_filename_for_display calls.  New variable filename for it.
11635         * stack.c (frame_info): Likewise.
11636         * symmisc.c: Include source.h.
11637         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11638         (maintenance_info_symtabs): Replace symtab->filename refererences by
11639         symtab_to_filename_for_display calls.
11640         * symtab.c (iterate_over_some_symtabs): Call
11641         compare_filenames_for_search also with symtab_to_fullname.
11642         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11643         symtab->filename refererences by symtab_to_filename_for_display calls.
11644         (find_line_symtab): Replace symtab->filename refererences by
11645         symtab_to_filename_for_display calls.
11646         (file_matches): Replace filename_cmp by compare_filenames_for_search.
11647         (print_symbol_info): Make the last parameter const char *.  New
11648         variable s_filename.  Use it in the function.
11649         (symtab_symbol_info): Make the last_filename variable const char *.
11650         Replace symtab->filename refererences by symtab_to_filename_for_display
11651         calls.
11652         (rbreak_command): New variable fullname.  Use it.  Replace
11653         symtab->filename refererence by symtab_to_filename_for_display call.
11654         * tracepoint.c (set_traceframe_context, trace_find_line_command)
11655         (print_one_static_tracepoint_marker): Replace symtab->filename
11656         refererences by symtab_to_filename_for_display calls.
11657         * tui/tui-source.c (tui_set_source_content): New variables filename and
11658         s_filename.  Replace symtab->filename refererences by this variable.
11659         Replace other symtab->filename refererences by
11660         symtab_to_filename_for_display calls.
11661
11662 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11663             Jan Kratochvil  <jan.kratochvil@redhat.com>
11664
11665         Add a new variable that controls a way in which filenames are
11666         displayed.
11667         * NEWS (set filename-display): New entry.
11668         * source.c (filename_display_basename, filename_display_relative)
11669         (filename_display_absolute, filename_display_kind_names)
11670         (filename_display_string, show_filename_display_string)
11671         (symtab_to_filename_for_display): New.
11672         (_initialize_source): Added initialization of 'filename-display'
11673         variable.
11674         * source.h (symtab_to_filename_for_display): Added declaration.
11675         * stack.c (print_frame): Added new variable and calling of a new
11676         function and condition with this variable. Changed third argument of
11677         calling of a function.
11678
11679 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11680
11681         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11682         Rename field reference filename to fullname.
11683         * tui/tui-data.h (struct tui_source_info): Rename field filename to
11684         fullname.  New comment for it.
11685         * tui/tui-source.c (tui_set_source_content): Rename field reference
11686         filename to fullname.  Initialize field by symtab_to_fullname now.
11687         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11688         reference filename to fullname.  Use symtab_to_fullname during
11689         comparison.
11690
11691 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11692
11693         Code cleanup.
11694         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11695         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
11696         filename to fullname.  Rename variable this_name to this_fullname.
11697         Lowercase FILENAME_CMP call.
11698         (dw2_find_symbol_file): New comment for the returned string.
11699         (dwarf2_gdb_index_functions): Rename the function to
11700         dw2_expand_symtabs_with_fullname.
11701         * psymtab.c (read_psymtabs_with_filename): Rename to ...
11702         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
11703         fullname.
11704         (psym_functions): Rename the function to read_psymtabs_with_fullname.
11705         * symfile.h (struct quick_symbol_functions): Rename field
11706         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11707         parameter filename to fullname.  Document returned string meaning for
11708         find_symbol_file.
11709         * symtab.c (find_line_symtab): Rename the called function to
11710         expand_symtabs_with_fullname.
11711
11712 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11713
11714         Code cleanup.
11715         * breakpoint.c (clear_command): Remove variable is_abs, unify the
11716         call of filename_cmp with compare_filenames_for_search.
11717         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11718         is_abs, unify the call of FILENAME_CMP with
11719         compare_filenames_for_search.  New gdb_asserts for real_path and name.
11720         Unify the call of compare_filenames_for_search with FILENAME_CMP.
11721         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11722         * symfile.h (struct quick_symbol_functions): Extend the comment for
11723         map_symtabs_matching_filename.
11724         * symtab.c (compare_filenames_for_search): Remove the function comment
11725         relative path requirement.  Handle absolute filenames, with a comment.
11726         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11727         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
11728         real_path and name.  Unify the call of compare_filenames_for_search
11729         with FILENAME_CMP.
11730         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11731
11732 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11733
11734         Code cleanup.
11735         * breakpoint.c (print_breakpoint_location): Replace bp_location field
11736         source_file references by symtab field references.  Remove variables
11737         sal and fullname.
11738         (momentary_breakpoint_from_master, add_location_to_breakpoint):
11739         (clear_command, say_where): Replace bp_location field source_file
11740         references by symtab field references.
11741         (bp_location_dtor): Remove the source_file reference.
11742         (update_static_tracepoint): Replace bp_location field source_file
11743         references by symtab field references.
11744         (breakpoint_free_objfile): New function.
11745         * breakpoint.h (struct bp_location): Extend the comment for line_number.
11746         Replace the field source_file by field symtab, extend its comment.
11747         (breakpoint_free_objfile): New declaration.
11748         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11749         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11750         field source_file references by symtab field references.
11751
11752 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11753
11754         Replace xfullpath calls by gdb_realpath calls.
11755         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11756         function comment.
11757         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11758         Remove it from the iterate_over_some_symtabs call.
11759         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11760         Remove it from the dw2_map_expand_apply calls, remove a block handling
11761         it.
11762         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11763         Remove it from the iterate_over_some_symtabs call.
11764         (partial_map_symtabs_matching_filename): Remove parameter full_path.
11765         Remove it from the partial_map_expand_apply calls, remove a block
11766         handling it.  Drop gdb_realpath call and cleanups from the real_path
11767         handling.
11768         * source.c (openp): Drop the comment part about xfullpath.  Replace
11769         xfullpath calls by gdb_realpath calls.
11770         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11771         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11772         from method map_symtabs_matching_filename and its comment.
11773         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11774         gdb_realpath call.
11775         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11776         remove it also from the function comment, remove a block handling it.
11777         Drop gdb_realpath call and cleanups from the real_path handling.
11778         (iterate_over_symtabs): Drop variable full_path and its use.
11779         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11780         * utils.c (xfullpath): Remove.
11781         * utils.h (xfullpath): Remove.
11782
11783 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
11784
11785         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11786         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11787         (ALLDEPFILES): Add ppc64-tdep.c.
11788         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11789         ppc64-tdep.o to gdb_target_obs.
11790         * ppc64-tdep.h: New file.
11791         * ppc64-tdep.c: New file.
11792         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11793         ppc-linux-tdep.c to here.
11794         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11795         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11796         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11797         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11798         from ppc-linux-tdep.c to here.
11799         (ppc64_convert_from_func_ptr_addr): Rename from
11800         ppc64_linux_convert_from_func_ptr_addr to
11801         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11802         here.
11803         * rs6000-tdep.c:
11804         (read_insn): Move from ppc-linux-tdep.c to here.
11805         (insns_match_pattern, insn_d_field, insn_ds_field): Move
11806         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11807         * ppc-linux-tdep.c: Include ppc64-tdep.h.
11808         Removed above functions.
11809         (ppc_linux_init_abi): Adjust.
11810
11811 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
11812
11813         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11814
11815 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
11816
11817         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11818
11819 2013-02-01  Pedro Alves  <palves@redhat.com>
11820
11821         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11822         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11823
11824 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11825
11826         * elfread.c (elf_symfile_read): Limit separate debug info additions to
11827         files with no separate debug info.
11828         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11829         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11830         only for files with no separate debug info.
11831
11832 2013-01-31  Tom Tromey  <tromey@redhat.com>
11833
11834         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11835         change type.
11836         (struct jit_program_space_data): Rename from jit_inferior_data.
11837         Update comments.
11838         (get_jit_program_space_data): Rename from get_jit_inferior_data.
11839         Change return type.  Attach data to program space.
11840         (jit_program_space_data_cleanup): Rename from
11841         jit_inferior_data_cleanup; change argument type.
11842         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11843         change type.
11844         (jit_register_code): Update.
11845         (jit_update_inferior_cache): Remove.
11846         (jit_breakpoint_deleted): Get jit data from the location's program
11847         space.
11848         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11849         'ps_data', change type.
11850         (jit_inferior_init, jit_breakpoint_re_set_internal)
11851         (jit_event_handler): Update.
11852         (free_objfile_data): Get data from objfile's program space.
11853         (_initialize_jit): Update.
11854
11855 2013-01-31  Tom Tromey  <tromey@redhat.com>
11856
11857         PR gdb/13987:
11858         * jit.c (struct jit_inferior_data) <cached_code_address,
11859         jit_breakpoint>: New fields.
11860         (jit_breakpoint_re_set_internal): Fix logging.  Only create
11861         breakpoint if cached address has changed.
11862         (jit_update_inferior_cache, jit_breakpoint_deleted): New
11863         functions.
11864         (_initialize_jit): Register breakpoint deleted observer.
11865
11866 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11867
11868         * infrun.c (handle_syscall_event): Remove unused gdbarch.
11869         (save_infcall_suspend_state): Ifdef out unused inf.
11870         (restore_infcall_suspend_state): Ifdef out unused inf.
11871         * jit.c (jit_register_code): Remove unused i, b, inf_data.
11872         (jit_frame_sniffer): Remove unused inf_data.
11873
11874 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11875
11876         * c-exp.y (classify_inner_name): Remove unused type.
11877         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11878         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11879         need_escape.
11880         (c_get_string): Remove unused kind.
11881         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11882
11883 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11884
11885         * charset.c (intermediate_encoding): Remove unused i.
11886         * completer.c (signal_completer): Remove unused i.
11887         * continuations.c (discard_my_continuations_1): Remove unused
11888         continuation_ptr.
11889         * corelow.c (core_close): Remove unuseD name.
11890         (get_core_siginfo): Remove unused pid.
11891         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11892         i, cps.
11893         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11894         (loclist_describe_location): Remove unused first.
11895         * event-top.c (command_line_handler): Remove unused got_eof.
11896         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11897         (resize_section_table): Remove unused old_value.
11898         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11899         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11900         * i386-tdep.c (i386_process_record): Remove unused rex.
11901         * infcmd.c (get_return_value): Remove unused uiout.
11902         * jv-lang.c (type_from_class): Remove unused is_array.
11903         * jv-valprint.c (java_val_print): Remove unused i.
11904         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11905         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11906         * m2-typeprint.c (m2_print_type): Remove unused code.
11907         * macroexp.c (get_character_constant): Remove unused body_start.
11908         (macro_stringify): Remove unused result.
11909         * objc-lang.c (find_methods): Remove unused gdbarch.
11910         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11911         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11912         * stack.c (print_frame_args): Remove unused summary.
11913         * thread.c (thread_apply_command): Remove unused p.
11914         * valarith.c (value_x_unop): Remove unused mangle_ptr.
11915         * valops.c (search_struct_method): Remove unused skip.
11916         * valprint.c (generic_val_print): Remove unused byte_order.
11917         * varobj.c (varobj_update): Remove unused changed.
11918         * cli/cli-cmds.c (complete_command): Remove unused next_item.
11919         (alias_command): Remove unused c.
11920         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11921         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11922         format.
11923         (mi_cmd_data_write_memory): Remove unused word_format.
11924         (mi_cmd_data_write_memory_bytes): Remove unused r.
11925         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11926         p_start, p_end.
11927         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11928         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11929         line_width.
11930
11931 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11932
11933         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11934         * symtab.c (iterate_over_symtabs): Remove unused s.
11935         (find_pc_sect_symtab): Remove unused pspAce.
11936         (find_pc_sect_line): Remove unused alt_symtab.
11937         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11938         (completion_list_add_name): Remove unused newsize.
11939
11940 2013-01-31  Tom Tromey  <tromey@redhat.com>
11941
11942         PR c++/14998:
11943         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11944         TYPE_CODE_FUNC.
11945
11946 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11947
11948         * target.c (target_read_string): Remove unused origlen.
11949
11950 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11951
11952         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11953         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11954         * ax-general.c (ax_print): Remove unused is_float.
11955         * blockframe.c (block_innermost_frame): Remove unused start, end.
11956         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11957
11958 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
11959
11960         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11961         (svr4_read_so_list): Remove unused lmo.
11962         * solib-target.c (solib_target_relocate_section_addresses): Remove
11963         unused flags.
11964
11965 2013-01-30  Tom Tromey  <tromey@redhat.com>
11966
11967         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11968
11969 2013-01-30  Tom Tromey  <tromey@redhat.com>
11970
11971         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11972         * utils.c (gnu_debuglink_crc32): Remove.
11973         * utils.h (gnu_debuglink_crc32): Don't declare.
11974
11975 2013-01-30  Tom Tromey  <tromey@redhat.com>
11976
11977         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11978         (read_structure_type, read_enumeration_type): Remove cast.
11979
11980 2013-01-30  Tom Tromey  <tromey@redhat.com>
11981
11982         * dwarf2read.c (read_namespace_type): Remove cast.
11983         (read_typedef): Likewise.
11984
11985 2013-01-29  Tom Tromey  <tromey@redhat.com>
11986
11987         * dwarf2read.c (free_dwo_file): Remove assert.
11988
11989 2013-01-29  Tom Tromey  <tromey@redhat.com>
11990
11991         * value.c (deprecated_set_value_modifiable): Remove.
11992         * value.h (deprecated_set_value_modifiable): Remove.
11993
11994 2013-01-28  Doug Evans  <dje@google.com>
11995
11996         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11997         to addresses from dwo files.
11998
11999 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
12000
12001         * valops.c (find_overload_match): Remove unused argument 'lax'.
12002         * value.h: Remove unused argument 'lax' from the declaration of
12003         find_overload_match.
12004         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12005         to find_overload_match.
12006         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12007         argument to find_overload_match.
12008
12009 2013-01-25  Tom Tromey  <tromey@redhat.com>
12010
12011         * dwarf2read.c (processing_has_namespace_info): Remove.
12012         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12013         (process_die, read_func_scope, dwarf2_start_symtab)
12014         (new_symbol_full): Update.
12015
12016 2013-01-25  Tom Tromey  <tromey@redhat.com>
12017
12018         * cp-namespace.c (cp_set_block_scope): Remove.
12019         * cp-support.h (cp_set_block_scope): Remove.
12020         * dbxread.c: Include block.h.
12021         (cp_set_block_scope): New function.
12022         (process_one_symbol): Update.
12023         * dwarf2read.c (read_func_scope): Use block_set_scope.
12024
12025 2013-01-25  Pedro Alves  <palves@redhat.com>
12026
12027         * remote.c (add_current_inferior_and_thread): Tweak comment.
12028
12029 2013-01-25  Tom Tromey  <tromey@redhat.com>
12030
12031         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12032         (cp_add_using_directive): Add 'copy_names' argument.
12033         * cp-support.h (cp_add_using_directive): Update.
12034         (struct using_direct) <import_src, import_dest, alias,
12035         declaration>: Now const.
12036         * dwarf2read.c (read_import_statement): Use obconcat.
12037         Don't copy names passed to cp_add_using_directive.
12038
12039 2013-01-25  Tom Tromey  <tromey@redhat.com>
12040
12041         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12042
12043 2013-01-25  Pedro Alves  <palves@redhat.com>
12044
12045         * remote.c (stop_reply_extract_thread): New.
12046         (add_current_inferior_and_thread): New parameter 'wait_status'.
12047         Handle it.
12048         (remote_start_remote): Pass wait status to
12049         add_current_inferior_and_thread.
12050         (extended_remote_run): Update comment.
12051         (extended_remote_create_inferior_1): Pass wait status to
12052         add_current_inferior_and_thread.
12053
12054 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
12055             Ulrich Weigand  <uweigand@de.ibm.com>
12056
12057         * valarith.c (value_vector_widen): New function for replicating a
12058         scalar into a vector.
12059         (value_binop): Use value_vector_widen to widen scalar to vector
12060         rather than casting, this better matches gcc C behaviour.
12061         * valops.c (value_casst): Update logic for casting between vector
12062         types, and for casting from scalar to vector, try to match gcc C
12063         behaviour.
12064         * value.h (value_vector_widen): Declare.
12065         * opencl-lang.c (opencl_value_cast): New opencl specific casting
12066         function, handle special case for casting scalar to vector.
12067         (opencl_relop): Use opencl_value_cast.
12068         (evaluate_subexp_opencl): Use opencl_value_cast instead of
12069         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12070         in order to use opencl_value_cast.
12071
12072 2013-01-25  Yao Qi  <yao@codesourcery.com>
12073
12074         * event-loop.c: Include "queue.h".
12075         (gdb_event_p): New typedef.
12076         (DECLARE_QUEUE_P): Use.
12077         (DEFINE_QUEUE_P): Use.
12078         (async_queue_event): Remove.
12079         (gdb_event_xfree): New.
12080         (initialize_event_loop): New.
12081         (process_event): Use QUEUE macros.
12082         (event_queue): Remove.
12083         (gdb_wait_for_event): Caller update.
12084         (check_async_event_handlers): Likewise.
12085         (poll_timers): Likewise.
12086         * event-loop.h (initialize_event_loop): Declare.
12087         * event-loop.c (gdb_event_xfree): New.
12088         * top.c (gdb_init): Call initialize_event_loop.
12089
12090 2013-01-25  Yao Qi  <yao@codesourcery.com>
12091
12092         * event-loop.c (async_queue_event): Remove one parameter
12093         'position'.  Remove code handling 'position' == TAIL.
12094         (gdb_wait_for_event): Caller update.
12095         (check_async_event_handlers): Caller update.
12096         (poll_timers): Caller update.
12097         * event-loop.h (enum queue_position): Remove.
12098
12099 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
12100
12101         * MAINTAINERS: Update my email.
12102
12103 2013-01-25  Yao Qi  <yao@codesourcery.com>
12104
12105         * main.c (print_gdb_help): Remove "--epoch" from the help
12106         message.
12107
12108 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
12109
12110         * symtab.c (skip_prologue_using_sal): Consider a file
12111         change the same as an increased line number
12112
12113 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12114
12115         * MAINTAINERS (Write After Approval): Add myself to the list.
12116
12117 2013-01-24  Tom Tromey  <tromey@redhat.com>
12118
12119         * ada-lang.h (ada_decode_symbol): Make return type const.
12120         * ada-lang.c (ada_decode_symbol): Likewise.
12121
12122 2013-01-23  Doug Evans  <dje@google.com>
12123
12124         * linespec.c (find_linespec_symbols): Make static.
12125
12126 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12127
12128         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12129         type on float conversion for complex type.
12130
12131 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
12132
12133         Add a new class gdb.Architecture which exposes GDB's
12134         internal representation of architecture via GDB Python API.
12135         * Makefile.in: Add entries corresponding to the new file
12136         python/py-arch.c.
12137         * NEWS (Python Scripting): Add entries for the new class
12138         gdb.Architecture and the new method gdb.Frame.architecture.
12139         * python/py-arch.c: Implement gdb.Architecture class.
12140         * python/py-frame.c (frapy_arch): Implement the method
12141         gdb.Frame.architecture().
12142         (frame_object_methods): Add 'architecture' to the method table.
12143         * python/python-internal.h: Add declarations of new utility
12144         functions.
12145         * python/python.c (_initialize_python): Initialize
12146         gdb.Architecture class.
12147
12148 2013-01-23  Doug Evans  <dje@google.com>
12149
12150         Work around binutils/15021.
12151         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12152         type_unit_group out of union s.  All uses updated.
12153         (read_index_from_section): Watch for index version 8.
12154         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12155         an imported symtab.
12156         (write_psymtabs_to_index): Increment version number to 8.
12157
12158 2013-01-22  Pedro Alves  <palves@redhat.com>
12159
12160         * annotate.c (breakpoint_changed): Skip if breakpoint is not
12161         user-visible.
12162
12163 2013-01-22  Pedro Alves  <palves@redhat.com>
12164
12165         * annotate.c (annotate_breakpoints_changed): Rename to ...
12166         (annotate_breakpoints_invalid): ... this.  Make static.
12167         (breakpoint_changed): Adjust.
12168         (_initialize_annotate): Always install the observers.  Install a
12169         "breakpoint_created" observer.
12170         * annotate.h (annotate_breakpoints_changed): Delete declaration.
12171         * breakpoint.c (set_breakpoint_condition)
12172         (breakpoint_set_commands, do_map_commands_command)
12173         (init_raw_breakpoint, clear_command, set_ignore_count)
12174         (enable_breakpoint_disp): No longer call
12175         annotate_breakpoints_changed.
12176
12177 2013-01-22  Pedro Alves  <palves@redhat.com>
12178
12179         * annotate.c: Include "inferior.h".
12180         (frames_invalid_emitted)
12181         (breakpoints_invalid_emitted): New globals.
12182         (async_background_execution_p): New function.
12183         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12184         emitting the annotation if it has already been emitted.
12185         (annotate_display_prompt): New function.
12186         * annotate.h (annotate_display_prompt): New declaration.
12187         * event-top.c: Include annotate.h.
12188         (display_gdb_prompt): Call annotate_display_prompt.
12189
12190 2013-01-22  Pedro Alves  <palves@redhat.com>
12191
12192         * annotate.c (ignore_count_changed): Delete.
12193         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12194         (annotate_ignore_count_change): Delete.
12195         (annotate_stopped): Don't emit a delayed breakpoints-changed
12196         annotation.
12197         * annotate.h (annotate_ignore_count_change): Delete.
12198         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12199         annotate_ignore_count_change.
12200
12201 2013-01-22  Tom Tromey  <tromey@redhat.com>
12202
12203         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12204         require_rvalue for a register location.
12205
12206 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
12207
12208         * breakpoint.c (print_one_breakpoint_location): Add MI
12209         field 'thread-groups' when printing a breakpoint.
12210         (output_thread_groups): New function.
12211
12212 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
12213
12214         * python/lib/gdb/commands/explore.py
12215         (CompoundExplorer.explore_expr): Correct the name of a method
12216         being invoked.
12217         (ExploreTypeCommand.invoke): Add a missing 'return'.
12218
12219 2013-01-21  Tom Tromey  <tromey@redhat.com>
12220
12221         * gdb_obstack.h (obconcat): Move declaration here, from...
12222         * symfile.h (obconcat): ... here.
12223         * gdb_obstack.c: New file.
12224         (obconcat): Move from...
12225         * symfile.c (obconcat): ... here.
12226         * Makefile.in (SFILES): Add gdb_obstack.c.
12227         (COMMON_OBS): Add gdb_obstack.o.
12228
12229 2013-01-21  Tom Tromey  <tromey@redhat.com>
12230
12231         * symfile.h (obsavestring): Don't declare.
12232         * symfile.c (obsavestring): Remove.
12233         * ada-exp.y: Use obstack_copy0, not obsavestring.
12234         * ada-lang.c: Use obstack_copy0, not obsavestring.
12235         * coffread.c: Use obstack_copy0, not obsavestring.
12236         * cp-namespace.c: Use obstack_copy0, not obsavestring.
12237         * dbxread.c: Use obstack_copy0, not obsavestring.
12238         * dwarf2read.c: Use obstack_copy0, not obsavestring.
12239         * jit.c: Use obstack_copy0, not obsavestring.
12240         * mdebugread.c: Use obstack_copy0, not obsavestring.
12241         * psymtab.c: Use obstack_copy0, not obsavestring.
12242         * stabsread.c: Use obstack_copy0, not obsavestring.
12243         * xcoffread.c: Use obstack_copy0, not obsavestring.
12244
12245 2013-01-21  Tom Tromey  <tromey@redhat.com>
12246
12247         * dwarf2read.c (fixup_go_packaging): Save package name
12248         on objfile obstack.
12249         * gdbtypes.c (init_type): Don't copy name.
12250
12251 2013-01-21  Tom Tromey  <tromey@redhat.com>
12252
12253         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12254         const.
12255         (struct attribute) <u.str>: Now const.
12256         (struct fnfieldlist) <name>: Now const.
12257         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12258         (partial_die_parent_scope): Make return type const.
12259         (partial_die_full_name, add_partial_symbol): Update.
12260         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12261         'name' const.
12262         (find_file_and_directory): Make 'name' and 'comp_dir' const.
12263         (read_file_scope, read_func_scope, dwarf2_add_field)
12264         (dwarf2_add_member_fn, read_structure_type)
12265         (process_enumeration_scope, read_array_type, read_module_type)
12266         (read_base_type, read_subrange_type): Update.
12267         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12268         (new_symbol_full, guess_full_die_structure_name): Update.
12269         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
12270         (dwarf2_name): Return const type.
12271         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12272         const.
12273
12274 2013-01-21  Tom Tromey  <tromey@redhat.com>
12275
12276         * gdbtypes.c (init_type): Make 'name' const.
12277         * gdbtypes.h (init_type): Update.
12278
12279 2013-01-21  Tom Tromey  <tromey@redhat.com>
12280
12281         * buildsym.c (patch_subfile_names): Use set_last_source_file.
12282         (start_symtab): Make 'name' and 'dirname' const.  Use
12283         set_last_source_file.
12284         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12285         (last_source_file): Define.  Now static.
12286         (set_last_source_file, get_last_source_file): New functions.
12287         * buildsym.h (last_source_file): Don't declare.
12288         (start_symtab): Update.
12289         (set_last_source_file, get_last_source_file): Declare.
12290         * coffread.c (complete_symtab): Use set_last_source_file.
12291         (coff_end_symtab): Likewise.
12292         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12293         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12294         set_last_source_file.
12295         (process_one_symbol): Use get_last_source_file.
12296         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12297         (psymtab_to_symtab_1): Use get_last_source_file.
12298         * xcoffread.c (process_linenos): Use get_last_source_file.
12299         (complete_symtab): Use set_last_source_file.
12300         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12301         (scan_xcoff_symtab): Use set_last_source_file.
12302
12303 2013-01-21  Tom Tromey  <tromey@redhat.com>
12304
12305         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12306         (symbol_set_names): Remove casts.  Handle field const-ness.
12307
12308 2013-01-21  Tom Tromey  <tromey@redhat.com>
12309
12310         * dwarf2read.c (new_symbol_full): Remove cast.
12311         * symtab.c (symbol_set_demangled_name): Make 'name' const.
12312         * symtab.h (symbol_set_demangled_name): Update.
12313
12314 2013-01-21  Tom Tromey  <tromey@redhat.com>
12315
12316         * main.c (captured_main): Call bfd_init.
12317
12318 2013-01-21  Tom Tromey  <tromey@redhat.com>
12319
12320         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12321         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12322         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12323         * NEWS: Update.
12324
12325 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
12326
12327         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12328
12329 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
12330
12331         Fix gdb.fortran/common-block.exp crash in PIE mode.
12332         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12333         LOC_COMMON_BLOCK.
12334         * f-valprint.c (info_common_command_for_block): Expect
12335         LOC_COMMON_BLOCK in gdb_assert.
12336         * symtab.h (struct general_symbol_info): Update comment for the
12337         common_block member.
12338         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12339         (enum address_class): New member LOC_COMMON_BLOCK.
12340
12341 2013-01-18  David Blaikie  <dblaikie@gmail.com>
12342
12343         * MAINTAINERS (Write After Approval): Add "David Blaikie".
12344
12345 2013-01-18  Tom Tromey  <tromey@redhat.com>
12346
12347         PR c++/14999:
12348         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12349         Call require_rvalue.
12350
12351 2013-01-18  Yao Qi  <yao@codesourcery.com>
12352
12353         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12354         (dbx_read_symtab): New declaration.
12355         (dbx_psymtab_to_symtab): Delete.
12356         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12357         Rename parameter PST to SELF.  Exchanged two parameters.
12358         (start_psymtab): Caller update.
12359         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12360         (dwarf2_read_symtab): New declaration.
12361         (dwarf2_psymtab_to_symtab): Delete.
12362         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12363         Rename parameter PST to SELF.  Exchanged two parameters.
12364         (create_partial_symtab): Caller update.
12365         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12366         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12367         Rename parameter PST to SELF.  Exchanged two parameters.
12368         (parse_partial_symbols, new_psymtab): Caller update.
12369         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12370         two parameters.
12371         * psymtab.c (psymtab_to_symtab): Caller update.
12372         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12373         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12374         Rename parameter PST to SELF.  Exchanged two parameters.
12375         (xcoff_start_psymtab): Caller update.
12376
12377 2013-01-18  Yao Qi  <yao@codesourcery.com>
12378
12379         * infrun.c (proceed): Rename local variable 'oneproc' to
12380         'force_step'.
12381
12382 2013-01-17  Doug Evans  <dje@google.com>
12383
12384         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12385         (dw2_build_type_unit_groups): Delete.  All uses updated.
12386
12387         * symtab.h (struct symbol_search): Add comment.
12388
12389 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
12390
12391         * symtab.c (compare_filenames_for_search): New comment for
12392         HAS_DRIVE_SPEC.
12393
12394 2013-01-17  Tom Tromey  <tromey@redhat.com>
12395
12396         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12397
12398 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
12399
12400         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12401         initialize it by existing make_cleanup.  Call new do_cleanups.
12402
12403 2013-01-17  Tom Tromey  <tromey@redhat.com>
12404
12405         * cp-abi.c (cp_abi_completer): New function.
12406         (_initialize_cp_abi): Set completer for "set cp-abi".
12407
12408 2013-01-17  Tom Tromey  <tromey@redhat.com>
12409
12410         * mem-break.c: Remove obsolete comment.
12411         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12412
12413 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
12414
12415         * jit.c (jit_reader_load_command): Interpret the jit reader name
12416         as an absolute path if it begins with a forward slash.
12417
12418 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
12419
12420         PR gdb/14550
12421
12422         * jit.c (finalize_symtab): Ensure that only the global block has a
12423         NULL superblock.
12424
12425 2013-01-17  Pedro Alves  <palves@redhat.com>
12426
12427         * acinclude.m4: Include ../config/plugins.m4,
12428         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
12429         * Makefile.in (aclocal_m4_deps): Update.
12430         * aclocal.m4: Renegerate.
12431
12432 2013-01-16  Doug Evans  <dje@google.com>
12433
12434         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12435
12436 2013-01-16  Pedro Alves  <palves@redhat.com>
12437             Tom Tromey  <tromey@redhat.com>
12438
12439         PR cli/7221:
12440         * NEWS: Add "catch signal".
12441         * breakpoint.c (base_breakpoint_ops): No longer static.
12442         (bpstat_explains_signal): New function.
12443         (init_catchpoint): No longer static.
12444         (base_breakpoint_explains_signal): New function.
12445         (base_breakpoint_ops): Initialize new field.
12446         * breakpoint.h (enum bpstat_signal_value): New.
12447         (struct breakpoint_ops) <explains_signal>: New field.
12448         (bpstat_explains_signal): Remove macro, declare as function.
12449         (base_breakpoint_ops, init_catchpoint): Declare.
12450         * break-catch-sig.c: New file.
12451         * inferior.h (signal_catch_update): Declare.
12452         * infrun.c (signal_catch): New global.
12453         (handle_syscall_event): Update for change to
12454         bpstat_explains_signal.
12455         (handle_inferior_event): Likewise.  Always handle random signals
12456         via bpstats.
12457         (signal_cache_update): Check signal_catch.
12458         (signal_catch_update): New function.
12459         (_initialize_infrun): Initialize signal_catch.
12460         * Makefile.in (SFILES): Add break-catch-sig.c.
12461         (COMMON_OBS): Add break-catch-sig.o.
12462
12463 2013-01-16  Tom Tromey  <tromey@redhat.com>
12464
12465         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12466         (print_one_catch_solib, print_one_catch_syscall)
12467         (print_one_catch_exec, print_one_exception_catchpoint): Emit
12468         "catch-type".
12469
12470 2013-01-16  Yao Qi  <yao@codesourcery.com>
12471
12472         * printcmd.c (current_display_number): Make it static.
12473
12474 2013-01-16  Yao Qi  <yao@codesourcery.com>
12475
12476         * infcmd.c (step_once): Don't check '!single_inst' as it was
12477         checked before.
12478
12479 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
12480
12481         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12482
12483 2013-01-14  Tom Tromey  <tromey@redhat.com>
12484
12485         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12486         set command.
12487         * command.h (add_setshow_string_noescape_cmd): Update.
12488         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12489         (complete_set_gnutarget): New function.
12490         (_initialize_core): Set the "set gnutarget" completer.
12491
12492 2013-01-14  Tom Tromey  <tromey@redhat.com>
12493
12494         PR symtab/14442:
12495         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12496         (c_type_print_modifier): Likewise.
12497         * dwarf2read.c (read_tag_restrict_type): New function.
12498         (read_type_die_1): Handle DW_TAG_restrict_type.
12499         * gdbtypes.c (make_restrict_type): New function.
12500         (recursive_dump_type): Handle TYPE_RESTRICT.
12501         * gdbtypes.h (enum type_flag_values): Renumber.
12502         (enum type_instance_flag_value): Add
12503         TYPE_INSTANCE_FLAG_RESTRICT.
12504         (TYPE_RESTRICT): New macro.
12505         (make_restrict_type): Declare.
12506
12507 2013-01-14  Tom Tromey  <tromey@redhat.com>
12508
12509         PR symtab/14931:
12510         * psymtab.c (struct psymtab_state): New.
12511         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12512         functions.
12513         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12514         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12515
12516 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
12517             Pedro Alves  <palves@redhat.com>
12518
12519         PR remote/14786
12520
12521         * remote.c (remote_threads_info): Make a copy of the reply from
12522         qfThreadInfo and use that instead of rs->buf.
12523
12524 2013-01-14  Yao Qi  <yao@codesourcery.com>
12525
12526         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12527         (dbx_psymtab_to_symtab): Likewise.
12528         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12529         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12530         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12531
12532 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12533
12534         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
12535         make_cleanup_restore_current_language.  Call set_language.  Move
12536         OLD_CHAIN and INNER_CHAIN cleanups.
12537         * utils.c (do_restore_current_language)
12538         (make_cleanup_restore_current_language): New functions.
12539         * utils.h (make_cleanup_restore_current_language): New declaration.
12540
12541 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12542
12543         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12544         non-existing files.
12545
12546         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12547         non-existing files if FILENAME is already absolute.
12548
12549 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12550
12551         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12552         fputs_filtered.  Append trailing newline.
12553
12554 2013-01-11  Yao Qi  <yao@codesourcery.com>
12555             Stan Shebs  <stan@codesourcery.com>
12556
12557         * psymtab.c (init_psymbol_list): Clarify the comment.
12558
12559 2013-01-11  Yao Qi  <yao@codesourcery.com>
12560
12561         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12562         (update_dprintf_command_list): Assert that 'printf_line' is
12563         non-null.  Remove condition check.
12564
12565 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12566
12567         Code cleanup.
12568         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12569         type const char *.
12570         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12571         const char *.
12572         * tui/tui-source.h (tui_source_is_displayed): Likewise.
12573
12574 2013-01-09  Anthony Green  <green@moxielogic.com>
12575
12576         * cp-abi.c (cplus_print_vtable): Don't return value from void
12577         function.
12578         * ada-lang.c (re_set_catch_assert): Ditto.
12579
12580 2013-01-09  Doug Evans  <dje@google.com>
12581
12582         * symfile.h (quick_symbol_functions): Delete member
12583         pre_expand_symtabs_matching.  All uses removed.
12584         * dwarf2read.c (dw2_lookup_symbol): Implement.
12585         (dw2_do_expand_symtabs_matching): Delete.
12586         (dw2_pre_expand_symtabs_matching): Delete.
12587         (struct dw2_symtab_iterator): New type.
12588         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12589         (dw2_expand_symtabs_for_function): Rewrite.
12590         (dwarf2_gdb_index_functions): Update.
12591         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12592         (psym_functions): Update.
12593
12594 2013-01-09  Tom Tromey  <tromey@redhat.com>
12595
12596         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12597         * configure: Rebuild.
12598         * configure.ac: Add somread.o to the build if BFD has SOM
12599         support.
12600         * somread.c: Include som/aout.h, not syms.h.
12601         (som_symtab_read): Use som_external_symbol_dictionary_record.
12602         Unpack records manually.
12603         (_initialize_somread): Declare.
12604
12605 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
12606
12607         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12608         Cast return_address to 64bits.
12609
12610 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
12611
12612         * printcmd.c: Remove define of function output_command.
12613         * tracepoint.c: Remove extern of function output_command.
12614         * valprint.h: (output_command): New extern.
12615
12616 2013-01-07  Tom Tromey  <tromey@redhat.com>
12617
12618         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12619         Remove.
12620         (objc_language_defn): Use c_printchar, c_printstr,
12621         c_emit_char.
12622
12623 2013-01-07  Tom Tromey  <tromey@redhat.com>
12624
12625         PR cli/7719:
12626         * NEWS: Update.
12627         * ada-valprint.c (printstr, print_field_values): Remove
12628         "inspect_it" code.
12629         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12630         code.
12631         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12632         code.
12633         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12634         * main.c (captured_main): Remove "epoch" argument.
12635         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12636         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12637         * p-valprint.c (pascal_object_print_value_fields): Remove
12638         "inspect_it" code.
12639         * printcmd.c (print_command_1): Remove 'inspect' argument.
12640         (print_command, call_command): Update.
12641         (inspect_command): Remove.
12642         (_initialize_printcmd): Make "inspect" an alias for "print".
12643         * top.c (epoch_interface): Remove.
12644         * top.h (epoch_interface): Remove.
12645         * valprint.c (user_print_options): Update.
12646         (print_converted_chars_to_obstack): Remove "inspect_it" code.
12647         * valprint.h (struct value_print_options) <inspect_it>: Remove
12648         field.
12649
12650 2013-01-04  Tom Tromey  <tromey@redhat.com>
12651
12652         * valprint.h (read_string): Add 'extern'.
12653
12654 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
12655
12656         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12657         used to decide whether to define darwin_read_dyld_info or not.
12658
12659 2013-01-03  Pierre Muller  <muller@sourceware.org>
12660
12661         * main.c (relocate_gdb_directory): Avoid calling stat function
12662         if DIR is empty.
12663
12664 2013-01-03  Yao Qi  <yao@codesourcery.com>
12665
12666         * psymtab.c (fixup_psymbol_section): Update declaration.
12667         (fixup_psymbol_section): Remove code returning value.
12668
12669 2013-01-03  Yao Qi  <yao@codesourcery.com>
12670
12671         * symtab.h: Remove some out of date comments.
12672          (enum exception_event_kind): Move it ...
12673         * breakpoint.c: ... here.
12674
12675 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
12676
12677         PR gdb/14405
12678         * darwin-nat.c (darwin_read_dyld_info): Only build if
12679         TASK_DYLD_INFO_COUNT is defined.
12680         (darwin_xfer_partial): Call darwin_read_dyld_info only if
12681         TASK_DYLD_INFO_COUNT is defined.
12682
12683 2013-01-02  Tom Tromey  <tromey@redhat.com>
12684
12685         * symfile.h (struct ecoff_debug_hack): Remove.
12686         * objfiles.c: Don't include mdebugread.h.
12687
12688 2013-01-02  Tom Tromey  <tromey@redhat.com>
12689
12690         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12691         * configure.ac: Check for Mach-O support in BFD.  Update
12692         CONFIG_OBS.
12693         * configure: Rebuild.
12694
12695 2013-01-02  Tom Tromey  <tromey@redhat.com>
12696
12697         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12698         * configure.ac: Use GDB_AC_CHECK_BFD.
12699         * configure: Rebuild.
12700
12701 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
12702
12703         * MAINTAINERS: Update my email.
12704
12705 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
12706
12707         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12708
12709 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
12710
12711         * rs6000-nat.c (bss_data_overlap): New function.
12712         (vmap_symtab): Use it to adjust the .bss section's offset.
12713
12714 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
12715
12716         Update year range in copyright notice of all files.
12717
12718 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
12719
12720         * top.c (print_gdb_version): Update copyright year.
12721
12722 For older changes see ChangeLog-2012.
12723 \f
12724 Local Variables:
12725 mode: change-log
12726 left-margin: 8
12727 fill-column: 74
12728 version-control: never
12729 coding: utf-8
12730 End: